/* Diama Tech — styles (redesign 2026-11-25; aligned to the official logo 2026-11-25)
   Visual system: warm "paper" bands alternate with graphite "ink" bands. Colors come from
   the official logo: graphite (wordmark), green (the "I", used for interaction) and bronze
   (the Africa mark, used sparingly as the brand signal: headline period, label ticks,
   active nav, founder corner). Monospace indices give an engineered voice.
   Components read semantic tokens (--bg, --fg, --line, ...); `.on-ink` re-scopes them,
   so any block can sit on a paper or an ink band. Swap values here when the official
   Diama Tech branding arrives. All text pairs are checked to WCAG AA (docs/STATUS.md). */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  /* paper (default) */
  --bg: #f5f3ee;
  --bg-2: #ece9e1;
  --surface: #ffffff;
  --fg: #14161a;
  --fg-2: #464a52;
  --fg-3: #5b5f68;
  --line: rgb(20 22 26 / 0.12);
  --line-strong: rgb(20 22 26 / 0.24);
  --brand: #0a7246;           /* logo green, darkened for AA with white text */
  --brand-hover: #075a37;
  --on-brand: #ffffff;
  --signal: #b98a4a;          /* logo bronze: decorative only on paper (marks), never body text */
  --danger: #b42318;
  --danger-soft: #fbe9e6;
  --success: #1e6b3a;
  --success-soft: #e5f2e9;
  --focus: #0a7246;
  --field: #ffffff;

  /* ink band values (shared by both themes, deepened in dark) */
  --ink: #131518;
  --ink-2: #1a1d21;
  --ink-3: #22262b;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  --fs-mono: 0.75rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --fs-h2: clamp(2rem, 1.55rem + 2vw, 3.25rem);
  --fs-display: clamp(1.5rem, 1.2rem + 1.5vw, 2.375rem);
  --fs-h1: clamp(2.75rem, 1.7rem + 4.6vw, 5rem);

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --section-y: clamp(5rem, 3.2rem + 7vw, 9rem);
  --container: 76rem;
  --gutter: clamp(1.25rem, 0.7rem + 2.4vw, 3rem);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181b1f;
  --bg-2: #1c1f24;
  --surface: #22262c;
  --fg: #eef0f3;
  --fg-2: #aeb2ba;
  --fg-3: #9296a0;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.2);
  --brand: #3fcf8e;
  --brand-hover: #6fdcab;
  --on-brand: #131518;
  --signal: #d3a461;
  --danger: #f2877d;
  --danger-soft: #2d1716;
  --success: #7fd39c;
  --success-soft: #11261a;
  --focus: #3fcf8e;
  --field: #181b1f;
  --ink: #0d0f12;
  --ink-2: #14171b;
  --ink-3: #1b1f24;
}

/* Ink scope: dark band in both themes */
.on-ink {
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --surface: var(--ink-2);
  --fg: #f2f0ea;
  --fg-2: #b0b3ba;
  --fg-3: #8f939b;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.22);
  --brand: #3fcf8e;
  --brand-hover: #6fdcab;
  --on-brand: #131518;
  --signal: #d3a461;
  --focus: #3fcf8e;
  --field: var(--ink);
  color-scheme: dark;
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--brand); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-hover); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--brand) 28%, transparent); }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s4); top: -3rem; z-index: 100;
  padding: var(--s2) var(--s4); background: var(--surface); color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--s3); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.band { padding-block: var(--section-y); background: var(--bg); color: var(--fg); }
.band--alt { --bg: var(--bg-2); }

/* Mono label: "(01) Our Services" */
.label {
  display: inline-flex; align-items: center; gap: 0.625rem; margin-bottom: var(--s5);
  font-family: var(--mono); font-size: var(--fs-mono); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3);
}
.label::before { content: ""; width: 1.5rem; height: 2px; background: var(--signal); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.section-head h2 { font-size: var(--fs-h2); letter-spacing: -0.035em; }
/* :not(.label) so the mono section labels ("01 Our Services") keep their own 12px style. */
.section-head p:not(.label) { margin-top: var(--s5); font-size: var(--fs-lg); color: var(--fg-2); max-width: 38rem; }
.dot { color: var(--signal); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--fg); --btn-border: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  min-height: 3rem; padding: 0.75rem 1.375rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-border); border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.btn:hover { color: var(--btn-fg); border-color: var(--fg-3); }
.btn--primary { --btn-bg: var(--brand); --btn-fg: var(--on-brand); --btn-border: var(--brand); }
.btn--primary:hover { --btn-bg: var(--brand-hover); border-color: var(--brand-hover); }
.btn .arrow { width: 1rem; height: 1rem; flex: none; transition: transform 200ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.text-link {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 600; font-size: var(--fs-sm); color: var(--fg); text-decoration: none;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}
.text-link:hover { color: var(--brand); border-color: currentColor; }
.text-link .arrow { width: 0.9rem; height: 0.9rem; transition: transform 200ms var(--ease); }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---------- Preview banner (localhost only, added by main.js) ---------- */
.preview-banner {
  padding: 0.375rem var(--gutter); text-align: center;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.02em;
  background: #ffe7a3; color: #4a3500;
}

/* ---------- Header (ink in both themes) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--fg); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--fg); }
.brand__logo { height: 2.5rem; width: auto; flex: none; }   /* official lockup, 600×198 source */
.site-footer .brand__logo { height: 3.5rem; }

.nav-list { display: flex; align-items: center; gap: var(--s1); list-style: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.875rem;
  color: var(--fg-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
  border-radius: var(--radius-sm);
}
.nav-link:hover { color: var(--fg); }
.nav-link[aria-current="true"] { color: var(--fg); }
.nav-link[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 0.25rem; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--signal);
}
.nav-link--cta {
  margin-left: var(--s3); color: var(--on-brand); background: var(--brand); font-weight: 600;
}
.nav-link--cta:hover { color: var(--on-brand); background: var(--brand-hover); }
.nav-link--cta[aria-current="true"] { color: var(--on-brand); }
.nav-link--cta[aria-current="true"]::after { display: none; }

.header-tools { display: flex; align-items: center; gap: 2px; padding-left: var(--s3); border-left: 1px solid var(--line); }
.icon-btn, .lang-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 0.5rem;
  border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--fg-2); cursor: pointer; text-decoration: none;
  font-family: var(--mono); font-size: var(--fs-mono); font-weight: 600; letter-spacing: 0.06em;
}
.icon-btn:hover, .lang-link:hover { color: var(--fg); background: var(--line); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 900px) {
  .header-inner { gap: var(--s2); }
  .header-tools { border-left: 0; padding-left: 0; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: var(--s2) var(--gutter) var(--s5);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { display: flex; min-height: 3.25rem; padding: 0 var(--s1); font-size: var(--fs-base); border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-link[aria-current="true"]::after { left: auto; right: var(--s2); bottom: 50%; margin: 0 0 -2px; }
  .nav-link--cta { margin: var(--s5) 0 0; justify-content: center; border-radius: var(--radius-sm); border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4.5rem, 2.5rem + 8vw, 9.5rem) 0; }
/* blueprint grid, fading out from the top-right */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 78% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 78% 30%, #000 10%, transparent 70%);
  opacity: 0.55;
}
.hero__motif { position: absolute; z-index: -1; top: 50%; right: -4%; width: min(40rem, 70vw); height: auto; transform: translateY(-56%); opacity: 0.09; pointer-events: none; user-select: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: end; gap: clamp(2.5rem, 2rem + 4vw, 6rem); }
.hero__eyebrow { margin-bottom: var(--s6); }
.hero h1 { font-size: var(--fs-h1); letter-spacing: -0.045em; line-height: 1.02; max-width: 14ch; }
.hero__lead { margin-top: var(--s6); max-width: 36rem; font-size: var(--fs-lg); color: var(--fg-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s7); }

/* Featured product card (real product only) */
.feature-card {
  position: relative; padding: var(--s5); border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: color-mix(in srgb, var(--ink-2) 80%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.feature-card__label { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.feature-card__row { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s4); }
.feature-card__row img { width: 3.5rem; height: 3.5rem; border-radius: 12px; flex: none; }
.feature-card__name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.feature-card p { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--fg-2); }
.feature-card .text-link { margin-top: var(--s5); }
.status { display: inline-flex; align-items: center; gap: var(--s2); margin-top: 2px; font-size: var(--fs-xs); color: var(--fg-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fbf72; box-shadow: 0 0 0 3px rgb(63 191 114 / 0.18); }

.hero__index {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(4rem, 3rem + 5vw, 7rem); border-top: 1px solid var(--line); list-style: none;
}
.hero__index a {
  display: flex; flex-direction: column; gap: var(--s2); height: 100%;
  padding: var(--s5) var(--s5) var(--s6) 0; color: var(--fg); text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  border-right: 1px solid var(--line); transition: color 160ms var(--ease);
}
.hero__index li + li a { padding-left: var(--s5); }
.hero__index li:last-child a { border-right: 0; }
.hero__index a:hover { color: var(--brand); }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .feature-card { max-width: 26rem; }
  .hero__motif { top: 2rem; right: -22%; width: 30rem; transform: none; opacity: 0.07; }
}
@media (max-width: 640px) {
  .hero__index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__index li:nth-child(2) a { border-right: 0; }
  .hero__index li:nth-child(3) a { padding-left: 0; }
  .hero__index li:nth-child(n+3) a { border-top: 1px solid var(--line); }
}

/* ---------- Services: editorial index ---------- */
.services-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 1.5rem + 5vw, 7rem); align-items: start; }
.services-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
.services-layout .section-head .text-link { margin-top: var(--s6); }
.service-list { list-style: none; border-top: 1px solid var(--line-strong); }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s5); align-items: start;
  padding: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem) 0; border-bottom: 1px solid var(--line-strong);
}
.service h3 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); letter-spacing: -0.03em; }
.service p { margin-top: var(--s3); color: var(--fg-2); max-width: 34rem; }
.service__icon { width: 2.75rem; height: 2.75rem; padding: 0.625rem; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--brand); }
@media (max-width: 900px) {
  .services-layout { grid-template-columns: minmax(0, 1fr); }
  .services-layout .section-head { position: static; }
}

/* ---------- Our Apps (ink band) ---------- */
/* Product showcase keeps the product's own identity via --product-accent.
   Layout: an identity "stage" (large app icon on the product's own glow) + the details.
   Screenshots are intentionally not shown (owner decision 2026-11-25): the stores have them. */
.product {
  --product-accent: #d9b25a;           /* Sougou gold, from its logo (not Diama bronze) */
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: var(--ink-2);
}
.product__stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s6);
  padding: clamp(2.5rem, 2rem + 4vw, 5rem) var(--s5);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--product-accent) 18%, transparent), transparent) center 42% / 90% 80% no-repeat,
    var(--ink);
}
.product__stage::before {             /* faint concentric rings around the icon */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-radial-gradient(circle at 50% 42%, transparent 0 63px, color-mix(in srgb, var(--product-accent) 18%, transparent) 64px 65px);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 15%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 42%, #000 15%, transparent 62%);
}
.product__icon {
  width: clamp(7.5rem, 6rem + 5vw, 10rem); height: auto; aspect-ratio: 1; border-radius: 24%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 60px -20px rgb(0 0 0 / 0.8);
}
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); list-style: none; }
.platforms li {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--product-accent) 40%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.04em; color: var(--fg);
}
.platforms svg { width: 0.95rem; height: 0.95rem; color: var(--product-accent); }
.product__body { padding: clamp(1.75rem, 1rem + 3.5vw, 4rem); }
.product__kicker { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--product-accent); }
.product__name { margin-top: var(--s3); font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem); letter-spacing: -0.035em; }
.product__body > .status { margin-top: var(--s3); }
.product__desc { margin-top: var(--s5); font-size: var(--fs-lg); color: var(--fg-2); max-width: 36rem; }
.product__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line); list-style: none; }
.product__features li { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-sm); color: var(--fg); }
.product__features svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--product-accent); }
.store-links { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s7); }
.store-btn {
  display: inline-flex; align-items: center; gap: 0.625rem; min-height: 3.125rem; padding: 0.45rem 1.125rem 0.45rem 0.875rem;
  border-radius: var(--radius-sm); background: #f2f0ea; color: #14161a; text-decoration: none; line-height: 1.15;
  border: 1px solid #f2f0ea; transition: background-color 160ms var(--ease);
}
.store-btn:hover { background: #ffffff; color: #14161a; }
.store-btn svg { width: 1.5rem; height: 1.5rem; flex: none; }
.store-btn small { display: block; font-size: 0.6875rem; color: #464a52; }
.store-btn strong { display: block; font-size: 1rem; font-weight: 650; }
@media (max-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .product__stage { border-right: 0; border-bottom: 1px solid var(--line); padding-block: var(--s7); }
}
@media (max-width: 480px) {
  .product__features { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: end; }
.about-statement { font-size: var(--fs-display); line-height: 1.25; font-weight: 600; letter-spacing: -0.03em; color: var(--fg); }
.about-statement em { font-style: normal; color: var(--brand); }
.nowrap { white-space: nowrap; }   /* keeps hyphenated words like "founder-led" from breaking at the hyphen */
.about-copy { font-size: var(--fs-lg); color: var(--fg-2); }
@media (max-width: 900px) { .about-intro { grid-template-columns: minmax(0, 1fr); } }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); list-style: none; border-top: 1px solid var(--line-strong); }
.principle { padding: var(--s6) var(--s6) var(--s2) 0; }
.principle + .principle { padding-left: var(--s6); border-left: 1px solid var(--line); }
.principle::before { content: ""; display: block; width: 1.25rem; height: 2px; background: var(--signal); } /* accent dash (numbers removed 2026-11-25) */
.principle h3 { margin-top: var(--s5); font-size: var(--fs-h3); letter-spacing: -0.02em; }
.principle p { margin-top: var(--s3); color: var(--fg-2); }
@media (max-width: 860px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle, .principle + .principle { padding: var(--s6) 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
}

/* ---------- Founder ---------- */
.founder {
  display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center;
  margin-top: clamp(4rem, 3rem + 5vw, 7.5rem);
}
.founder__media { position: relative; }
.founder__media::after {  /* signature corner mark */
  content: ""; position: absolute; right: -0.75rem; bottom: -0.75rem; width: 3.5rem; height: 3.5rem;
  border-right: 2px solid var(--signal); border-bottom: 2px solid var(--signal); border-bottom-right-radius: 6px;
}
.founder__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--bg-2); }
.founder__photo--pending {
  display: grid; place-items: center; border: 1.5px dashed var(--line-strong);
  font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg-3);
}
.founder__name { font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem); letter-spacing: -0.035em; }
.founder__role { margin-top: var(--s2); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-3); }
.founder__bio { margin-top: var(--s6); max-width: 40rem; color: var(--fg-2); font-size: var(--fs-lg); }
.founder__bio p + p { margin-top: var(--s4); }
.founder__links { display: flex; gap: var(--s3); margin-top: var(--s6); list-style: none; }
@media (max-width: 720px) {
  .founder { grid-template-columns: minmax(0, 1fr); }
  .founder__media { max-width: 13rem; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: var(--surface);
}
.contact__intro { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: clamp(1.75rem, 1rem + 3.5vw, 4rem); }
.contact__intro::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: 0.6;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 65%); mask-image: linear-gradient(to top, #000, transparent 65%);
}
.contact__intro h2 { font-size: var(--fs-h2); letter-spacing: -0.035em; }
.contact__intro > p:not(.label) { margin-top: var(--s5); font-size: var(--fs-lg); color: var(--fg-2); }
.contact__steps { margin-top: var(--s7); list-style: none; display: grid; gap: var(--s4); }
.contact__steps li { color: var(--fg-2); font-size: var(--fs-sm); }
.contact__direct { margin-top: auto; padding-top: var(--s7); }
.contact__direct p { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.contact__direct a { display: inline-block; margin-top: var(--s2); font-size: var(--fs-lg); font-weight: 600; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; border-bottom: 1px solid var(--line-strong); }
.contact__direct a:hover { color: var(--brand); border-color: currentColor; }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } }

.form { padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem); }
.form__notice {
  margin-bottom: var(--s6); padding: var(--s3) var(--s4);
  border-left: 3px solid var(--signal); border-radius: var(--radius-sm);
  background: var(--bg); font-size: var(--fs-sm); color: var(--fg-2);
}
.form__notice strong { color: var(--fg); }
.form__notice a { overflow-wrap: anywhere; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form__grid { grid-template-columns: minmax(0, 1fr); } }
/* Budget: currency beside the range; stacked on small screens. */
.budget { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--s4); align-items: end; }
@media (max-width: 560px) { .budget { grid-template-columns: minmax(0, 1fr); } }
.field label { display: block; margin-bottom: var(--s2); font-size: var(--fs-sm); font-weight: 600; }
.field .optional { font-weight: 400; color: var(--fg-3); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 3rem; padding: 0.6875rem 0.875rem;
  background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 1rem; /* 16px prevents iOS zoom */
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23888' stroke-width='1.6'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 1rem;
}
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); margin-top: var(--s2); }
.field__hint { font-size: var(--fs-xs); color: var(--fg-3); }
.field__counter { flex: none; font-family: var(--mono); font-size: var(--fs-mono); color: var(--fg-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.field__counter.is-near { color: var(--fg); }
.field__counter.is-max { color: var(--danger); font-weight: 600; }
.field__error { margin-top: var(--s2); font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }
.field__error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.form__privacy { flex: 1 1 16rem; font-size: var(--fs-xs); color: var(--fg-3); }
.form__status { margin-top: var(--s5); padding: var(--s4); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.form__status:empty { display: none; }
.form__status--error { background: var(--danger-soft); color: var(--danger); }
.form__status--success { background: var(--success-soft); color: var(--success); }
.form__status strong { display: block; margin-bottom: var(--s1); }
.spinner { width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer (ink) ---------- */
.site-footer { padding-top: var(--s9); overflow: hidden; font-size: var(--fs-sm); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: var(--s6); }
.footer-top > div > p { margin-top: var(--s4); max-width: 24rem; color: var(--fg-2); }
.footer-col h2 { font-family: var(--mono); font-size: var(--fs-mono); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.footer-col ul { display: grid; gap: var(--s3); margin-top: var(--s4); list-style: none; }
.footer-col a { color: var(--fg-2); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--fg); text-decoration: underline; }
.footer-wordmark {
  margin-top: var(--s8); font-size: clamp(3.5rem, 1rem + 13vw, 12.5rem); font-weight: 750; letter-spacing: -0.06em; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong); white-space: nowrap; user-select: none;
  transform: translateY(0.08em);
}
.footer-bottom { position: relative; padding-block: var(--s5); border-top: 1px solid var(--line); color: var(--fg-3); font-size: var(--fs-xs); background: var(--bg); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); }
.footer-bottom a { color: var(--fg-2); }
@media (max-width: 720px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Simple pages (privacy, 404) ---------- */
.page { padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.prose { max-width: 44rem; }
.prose h1 { font-size: var(--fs-h2); letter-spacing: -0.035em; }
.prose .updated { margin-top: var(--s4); font-family: var(--mono); font-size: var(--fs-mono); color: var(--fg-3); }
.prose h2 { margin-top: var(--s7); font-size: var(--fs-h3); }
.prose p, .prose ul { margin-top: var(--s4); color: var(--fg-2); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--s2); }

/* ---------- Very small phones (320–380px) ---------- */
@media (max-width: 380px) {
  .header-inner { gap: 0; }
  .brand { gap: 0.5rem; }
  .brand__logo { height: 2.25rem; }
  .icon-btn, .lang-link { min-width: 2.25rem; padding: 0 0.25rem; }
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
