/* ==========================================================================
   TechZilla — Night Grid v2.1
   Single stylesheet for the whole site. Tokens mirror DESIGN.md §1 verbatim.
   RTL is the master layout: logical properties only, never left/right.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color — night theme (default) */
  --bg: #0B1520;
  --surface: #122230;
  --surface-2: #16293A;
  --text: #F2F7FA;
  --muted: #8CA0B3;
  --slate: #708098;
  --green: #6FB040;
  --green-glow: #8FD653;
  --blue: #1E82C4;
  --blue-glow: #4AA8E0;

  /* Semantic */
  --success: #6FB040;
  --warning: #E0A834;
  --error: #D64545;
  --info: #1E82C4;

  /* Borders & overlays */
  --border-subtle: rgba(140, 160, 179, .14);
  --border-strong: rgba(140, 160, 179, .35);
  --overlay: rgba(4, 10, 16, .70);

  /* Typography */
  --ar-display: 'Alexandria', sans-serif;
  --ar-body: 'IBM Plex Sans Arabic', sans-serif;
  --en-body: 'General Sans', sans-serif;

  /* Spacing (8px base) */
  --sp-2xs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;
  --sp-4xl: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-full: 999px;

  /* Motion */
  --dur-micro: 100ms;
  --dur-short: 200ms;
  --dur-med: 300ms;
  --dur-long: 450ms;
  --ease-enter: ease-out;
  --ease-exit: ease-in;
  --ease-move: ease-in-out;

  /* Z-index */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 800;
  --z-modal: 900;
  --z-toast: 1000;

  /* Layout */
  --maxw: 1280px;
}

/* Day pocket — light mode (DESIGN.md §2). Dark stays the default. */
[data-theme="light"] {
  --bg: #F6F9FB;
  --surface: #FFFFFF;
  --surface-2: #EDF3F7;
  --text: #16232E;
  --muted: #708098;
  --border-subtle: #E2EAF0;
  --border-strong: #C9D6E0;
  /* glow accents darken to keep AA text contrast on light surfaces */
  --green-glow: #4C7A28;
  --blue-glow: #1E82C4;
  --overlay: rgba(22, 35, 46, .45);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ar-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="en"] body { font-family: var(--en-body); }

img, svg, video { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-xl); }

section { padding-top: var(--sp-4xl); }

.en { font-family: var(--en-body); }

.num {
  font-family: var(--en-body);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Accessibility
   -------------------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: var(--z-toast);
  background: var(--green); color: #0B1520; font-weight: 600;
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { inset-inline-start: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Scroll reveal — single fade + 8px rise, once (DESIGN.md §7) */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-long) var(--ease-enter), transform var(--dur-long) var(--ease-enter);
}
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   4. Typography scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--ar-display); font-weight: 700; line-height: 1.3; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 {
  font-family: var(--en-body); font-weight: 600; letter-spacing: -.01em;
}

.kicker {
  font-family: var(--ar-body); font-size: 13px; font-weight: 500;
  color: var(--blue-glow); margin-bottom: 10px;
}
html[lang="en"] .kicker { font-family: var(--en-body); }

h2.section { font-size: 32px; margin-bottom: var(--sp-xs); }
p.section-sub { color: var(--muted); margin-bottom: 40px; max-width: 60ch; }

/* --------------------------------------------------------------------------
   5. Dots motif — the logo's Z network (DESIGN.md §6)
   -------------------------------------------------------------------------- */
.dots-divider {
  height: 10px;
  margin-top: var(--sp-4xl);
  background: linear-gradient(to left, var(--green), var(--blue));
  -webkit-mask-image: radial-gradient(circle at 5px 5px, #000 3px, transparent 3.6px);
  mask-image: radial-gradient(circle at 5px 5px, #000 3px, transparent 3.6px);
  -webkit-mask-size: 16px 10px;
  mask-size: 16px 10px;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  opacity: .8;
}
html[dir="ltr"] .dots-divider { background: linear-gradient(to right, var(--green), var(--blue)); }

.node { display: flex; gap: 6px; }
.node i { width: 10px; height: 10px; border-radius: var(--radius-full); }

ul.dot-list { list-style: none; }
ul.dot-list li { margin-bottom: 10px; font-size: 15.5px; }
ul.dot-list li::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: var(--radius-full); background: var(--green);
  margin-inline-end: 12px; box-shadow: 0 0 8px rgba(111, 176, 64, .6);
}

.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-full);
  background: var(--green-glow); box-shadow: 0 0 10px var(--green-glow);
  margin-inline-start: 8px; vertical-align: middle;
  animation: livepulse 2s var(--ease-move) infinite;
}
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
header.site {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-lg); padding: 18px 0; }

.wordmark {
  font-family: var(--en-body); font-weight: 600; letter-spacing: .32em;
  font-size: 18px; text-decoration: none; color: var(--text); white-space: nowrap;
}
.wordmark .t { color: var(--green); }
.wordmark .z { color: var(--blue); }

nav.main { display: flex; gap: 26px; font-size: 14px; }
nav.main a { color: var(--muted); text-decoration: none; transition: color var(--dur-short); white-space: nowrap; }
nav.main a:hover { color: var(--text); }
nav.main a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline; text-decoration-color: var(--green);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}

.header-cta { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  font-family: var(--en-body); font-size: 13px; font-weight: 500;
  color: var(--muted); text-decoration: none; padding: 8px 10px;
  border-radius: var(--radius-sm); transition: color var(--dur-short);
}
.lang-switch:hover { color: var(--green-glow); }

.theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--muted); color: var(--text);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color var(--dur-short), color var(--dur-short);
}
.theme-btn:hover { border-color: var(--green); color: var(--green-glow); }
.theme-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .ic-moon { display: none; }
[data-theme="light"] .theme-btn .ic-sun { display: none; }
[data-theme="light"] .theme-btn .ic-moon { display: block; }

.menu-btn {
  display: none; background: transparent; border: 1px solid var(--muted); color: var(--text);
  border-radius: var(--radius-sm); padding: 8px 14px;
  font-family: inherit; font-size: 14px; cursor: pointer; min-height: 44px;
}

/* Mobile sheet */
.sheet { display: none; position: fixed; inset: 0; z-index: var(--z-modal); background: var(--surface); padding: var(--sp-xl); overflow-y: auto; }
.sheet[open], .sheet.open { display: flex; flex-direction: column; gap: var(--sp-xs); }
.sheet a.nav-link {
  font-family: var(--ar-display); font-weight: 700; font-size: 20px;
  color: var(--text); text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0; transform: translateY(8px);
  animation: sheetin var(--dur-med) var(--ease-enter) forwards;
}
html[lang="en"] .sheet a.nav-link { font-family: var(--en-body); font-weight: 600; }
.sheet a.nav-link:nth-of-type(1) { animation-delay: 0ms; }
.sheet a.nav-link:nth-of-type(2) { animation-delay: 40ms; }
.sheet a.nav-link:nth-of-type(3) { animation-delay: 80ms; }
.sheet a.nav-link:nth-of-type(4) { animation-delay: 120ms; }
.sheet a.nav-link:nth-of-type(5) { animation-delay: 160ms; }
.sheet a.nav-link:nth-of-type(6) { animation-delay: 200ms; }
@keyframes sheetin { to { opacity: 1; transform: none; } }
.sheet .close { align-self: flex-end; margin-bottom: var(--sp-sm); }

/* --------------------------------------------------------------------------
   7. Buttons (DESIGN.md §6)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ar-body); font-weight: 600; border: none; cursor: pointer;
  border-radius: var(--radius-sm); min-height: 44px; text-decoration: none;
  transition: background var(--dur-short), box-shadow var(--dur-short),
              border-color var(--dur-short), color var(--dur-short), transform var(--dur-micro);
}
html[lang="en"] .btn { font-family: var(--en-body); }
.btn:active { transform: scale(.98); }
.btn-lg { font-size: 16px; padding: 14px 32px; }
.btn-md { font-size: 15px; padding: 10px 20px; }
.btn-sm { font-size: 13px; padding: 6px 14px; min-height: 36px; }

.btn-primary { background: var(--green); color: #0B1520; }
.btn-primary:hover { background: var(--green-glow); box-shadow: 0 0 24px rgba(111, 176, 64, .35); }
.btn-secondary { background: transparent; color: var(--blue-glow); border: 1px solid var(--blue); }
.btn-secondary:hover { border-color: var(--blue-glow); box-shadow: 0 0 18px rgba(30, 130, 196, .3); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--muted); }
.btn-ghost:hover { border-color: var(--green-glow); color: var(--green-glow); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

.textlink { color: var(--blue-glow); font-weight: 500; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

.icon-sm { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   8. Hero (home) + page hero (inner pages)
   -------------------------------------------------------------------------- */
.hero { padding-top: 88px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 6.5vw, 76px); line-height: 1.25; }
.hero h1 .grad {
  background: linear-gradient(to left, var(--green-glow), var(--blue-glow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[dir="ltr"] .hero h1 .grad { background: linear-gradient(to right, var(--green-glow), var(--blue-glow)); -webkit-background-clip: text; background-clip: text; }
.hero p.lede { font-size: 19px; color: var(--muted); margin: 22px 0 38px; max-width: 38ch; }
.live { font-size: 13px; color: var(--muted); }

.hero-visual {
  aspect-ratio: 4/3; position: relative; overflow: hidden; border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse 90% 70% at 30% 25%, rgba(30, 130, 196, .28) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 75% 80%, rgba(111, 176, 64, .22) 0%, transparent 55%),
    linear-gradient(155deg, #101E2C 0%, #0B1520 60%, #081019 100%);
  border: 1px solid var(--border-subtle);
}
.net { position: absolute; inset: 0; }
.net i { position: absolute; border-radius: var(--radius-full); }
.hero-visual .caption { position: absolute; bottom: 14px; inset-inline-start: 16px; font-size: 12px; color: var(--muted); }

.page-hero { padding: 72px 0 0; max-width: 62ch; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; line-height: 1.25; }
.page-hero p { font-size: 18px; color: var(--muted); margin-top: 18px; }

.crumbs { font-size: 13px; color: var(--slate); padding-top: var(--sp-lg); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 6px; }

/* --------------------------------------------------------------------------
   9. Trust bar + brands
   -------------------------------------------------------------------------- */
.trust { display: flex; justify-content: space-between; gap: var(--sp-lg); flex-wrap: wrap; padding-top: 40px; }
.trust div { font-size: 14.5px; color: var(--muted); }
.trust b { display: block; font-family: var(--ar-display); font-weight: 700; font-size: 22px; color: var(--text); }
html[lang="en"] .trust b { font-family: var(--en-body); font-weight: 600; }

.brands { display: flex; gap: 32px 48px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 34px; }
.brands span { font-family: var(--en-body); font-weight: 600; letter-spacing: .12em; font-size: 15px; color: var(--muted); opacity: .8; }

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }

.card {
  background: var(--surface); padding: 26px 24px; border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(to left, var(--green), var(--blue));
  opacity: 0; transition: opacity var(--dur-short);
}
html[dir="ltr"] .card::before { background: linear-gradient(to right, var(--green), var(--blue)); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 20px; margin: 14px 0 6px; }
.card p { font-size: 14px; color: var(--muted); flex: 1; }
.card .textlink { margin-top: 14px; font-size: 14px; align-self: flex-start; }

.quote-card p.q { font-size: 14.5px; color: var(--text); flex: 1; margin-top: 16px; }
.quote-card .who { margin-top: 16px; font-size: 13px; color: var(--muted); }
.quote-card .who b { display: block; color: var(--text); font-weight: 600; font-size: 14px; }

/* --------------------------------------------------------------------------
   11. Steps timeline
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-lg); position: relative; }
.steps.cols-4 { grid-template-columns: repeat(4, 1fr); }
.steps::before {
  content: ""; position: absolute; top: 20px; inset-inline: 40px; height: 2px;
  background: linear-gradient(to left, var(--green), var(--blue)); opacity: .35;
}
html[dir="ltr"] .steps::before { background: linear-gradient(to right, var(--green), var(--blue)); }
.step { position: relative; }
.step .dot {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--surface-2); border: 1px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--en-body); font-variant-numeric: tabular-nums;
  font-size: 15px; font-weight: 600; color: var(--green-glow);
  margin-bottom: 18px; transition: box-shadow var(--dur-short), background var(--dur-short);
}
.step:hover .dot { box-shadow: 0 0 14px rgba(111, 176, 64, .5); background: var(--surface); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   12. Sector rows (business)
   -------------------------------------------------------------------------- */
.biz-list { display: flex; flex-direction: column; }
.biz {
  display: grid; grid-template-columns: 90px 1fr auto; gap: var(--sp-lg); align-items: center;
  padding: 28px 4px; border-bottom: 1px solid var(--border-subtle);
  transition: background var(--dur-short);
}
.biz:hover { background: var(--surface); }
.biz .no { font-family: var(--en-body); font-variant-numeric: tabular-nums; font-size: 15px; color: var(--slate); direction: ltr; }
.biz h3 { font-size: 21px; }
.biz p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.biz .textlink { font-size: 14px; white-space: nowrap; }

/* --------------------------------------------------------------------------
   13. Detail blocks (category / vertical pages)
   -------------------------------------------------------------------------- */
.detail {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--sp-2xl);
  align-items: start; padding: var(--sp-2xl) 0;
  border-bottom: 1px solid var(--border-subtle); scroll-margin-top: 96px;
}
.detail:last-of-type { border-bottom: none; }
.detail h3 { font-size: 26px; margin-bottom: 10px; }
.detail .story { font-size: 16px; color: var(--text); }
.detail .proof { font-size: 14px; color: var(--muted); margin-top: 14px; }
.detail .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-size: 12.5px; padding: 4px 12px; border-radius: var(--radius-full);
  background: rgba(30, 130, 196, .12); color: var(--blue-glow);
}
.detail .personas { display: grid; gap: 14px; }
.persona {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-inline-start: 3px solid var(--green); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 14.5px;
}
.persona b { display: block; font-weight: 600; font-size: 13px; color: var(--green-glow); margin-bottom: 4px; }

/* Sub-branches inside a category (TAXONOMY second level) */
.subcats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.subcat {
  background: var(--surface-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.subcat h4 { font-family: var(--ar-body); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
html[lang="en"] .subcat h4 { font-family: var(--en-body); }
.subcat h4 .en { font-size: 12.5px; color: var(--slate); font-weight: 500; margin-inline-start: 6px; }
.subcat p { font-size: 13.5px; color: var(--muted); font-weight: 300; }

/* Tech corner — the engineer's layer. Blue informs (DESIGN.md §2). */
details.tech-corner {
  margin-top: 22px; border-radius: var(--radius-sm);
  background: rgba(30, 130, 196, .08);
  border: 1px solid rgba(30, 130, 196, .25);
  border-inline-start: 3px solid var(--blue);
  padding: 14px 18px;
}
details.tech-corner summary {
  cursor: pointer; list-style: none; font-size: 14px; font-weight: 600;
  color: var(--blue-glow); display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.tech-corner summary::-webkit-details-marker { display: none; }
details.tech-corner summary::after {
  content: "+"; font-family: var(--en-body); font-size: 20px; line-height: 1;
  transition: transform var(--dur-short);
}
details.tech-corner[open] summary::after { transform: rotate(45deg); }
details.tech-corner .tc-body { margin-top: 12px; font-size: 14px; color: var(--muted); }
details.tech-corner .tc-body p { margin-bottom: 10px; max-width: 75ch; }
details.tech-corner .tc-body ul { list-style: none; margin: 0 0 10px; }
details.tech-corner .tc-body li { margin-bottom: 7px; padding-inline-start: 18px; position: relative; }
details.tech-corner .tc-body li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em;
  width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--blue);
}
details.tech-corner .tc-body b { color: var(--text); font-weight: 600; }
details.tech-corner .tc-body .en { direction: ltr; unicode-bidi: isolate; }

/* --------------------------------------------------------------------------
   14. Materials (switch finishes)
   -------------------------------------------------------------------------- */
.materials { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); }
.material { aspect-ratio: 4/3; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); position: relative; overflow: hidden; }
.material span {
  position: absolute; bottom: 0; inset-inline: 0; padding: 26px 14px 10px; font-size: 13.5px;
  background: linear-gradient(to top, rgba(11, 21, 32, .85), transparent);
  color: #F2F7FA; /* scrim is dark in both themes */
}
.m-wood { background: repeating-linear-gradient(100deg, #4A3220 0 14px, #59401F 14px 22px, #503722 22px 38px); }
.m-steel { background: repeating-linear-gradient(90deg, #5E6B76 0 2px, #6E7C88 2px 4px, #66747F 4px 7px); }
.m-glass { background: linear-gradient(135deg, rgba(74, 168, 224, .35) 0%, rgba(18, 34, 48, .9) 50%, rgba(143, 214, 83, .15) 100%); }
.m-leather { background: radial-gradient(circle at 30% 30%, #4E342A 0%, #3B2620 60%, #2E1D18 100%); }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--sp-2xl); align-items: center; }

/* Planned-photo placeholder — doubles as the photography brief.
   Replace each .ph with the real shot; the caption IS the shot description. */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(30, 130, 196, .14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 85%, rgba(111, 176, 64, .10) 0%, transparent 55%),
    var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: var(--sp-lg); text-align: center; min-height: 180px;
}
.ph.r-16x9 { aspect-ratio: 16/9; }
.ph.r-4x3 { aspect-ratio: 4/3; }
.ph.r-1x1 { aspect-ratio: 1/1; }
.ph svg { width: 30px; height: 30px; stroke: var(--slate); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.ph .ph-label {
  font-family: var(--en-body); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate);
}
.ph .ph-desc { font-size: 13px; color: var(--muted); max-width: 44ch; font-weight: 300; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-md); }

/* --------------------------------------------------------------------------
   15. Photography frame
   -------------------------------------------------------------------------- */
.photo-frame {
  border-radius: var(--radius-md); border: 1px solid var(--border-subtle);
  overflow: hidden; position: relative; aspect-ratio: 16/7;
  background:
    radial-gradient(ellipse 60% 90% at 70% 100%, rgba(224, 168, 52, .25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(30, 130, 196, .15) 0%, transparent 55%),
    linear-gradient(165deg, #17293B 0%, #0B1520 70%);
}
.photo-frame .scrim {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px 20px 14px;
  background: linear-gradient(to top, rgba(11, 21, 32, .85), transparent);
  font-size: 13px; color: var(--muted);
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq details {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-md);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--en-body); font-size: 22px; line-height: 1;
  color: var(--green-glow); transition: transform var(--dur-short);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 14.5px; margin-top: 10px; max-width: 70ch; }

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.form-card { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--sp-xl); }
.field { margin-bottom: var(--sp-md); }
.field label { display: block; font-size: 13.5px; margin-bottom: var(--sp-2xs); font-weight: 500; }
.field label .req { color: var(--green-glow); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--ar-body); font-size: 15px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
html[lang="en"] .field input, html[lang="en"] .field select, html[lang="en"] .field textarea { font-family: var(--en-body); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.field input[type="tel"] { font-family: var(--en-body); direction: ltr; text-align: start; }
.field .hint { font-size: 12.5px; color: var(--slate); margin-top: 6px; }
.field .msg { font-size: 13px; color: var(--error); margin-top: var(--sp-2xs); display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field.invalid .msg { display: block; }

fieldset { border: none; }
fieldset legend { font-size: 13.5px; font-weight: 500; margin-bottom: var(--sp-xs); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: 8px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--border-strong); font-size: 13.5px; cursor: pointer;
  transition: border-color var(--dur-short), color var(--dur-short), background var(--dur-short);
}
.chip input:checked + span { border-color: var(--green); color: var(--green-glow); background: rgba(111, 176, 64, .12); }
.chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 10px; border-inline-start: 3px solid; }
.alert.ok { background: rgba(111, 176, 64, .12); border-color: var(--success); }
.alert.err { background: rgba(214, 69, 69, .12); border-color: var(--error); }

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  margin-top: var(--sp-4xl); padding: var(--sp-3xl) 0; text-align: center;
  background:
    radial-gradient(ellipse 60% 90% at 50% 110%, rgba(111, 176, 64, .14) 0%, transparent 60%),
    var(--surface);
  border-block: 1px solid var(--border-subtle);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: var(--sp-sm); }
.cta-band p { color: var(--muted); margin-bottom: var(--sp-xl); }
.cta-band .cta-row { justify-content: center; }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
footer.site { padding: 56px 0 var(--sp-3xl); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--sp-xl); margin-top: 40px; }
.foot h3 { font-family: var(--ar-body); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
html[lang="en"] .foot h3 { font-family: var(--en-body); }
.foot a { display: block; color: var(--muted); font-size: 13.5px; text-decoration: none; margin-bottom: 8px; }
.foot a:hover { color: var(--text); }
.foot .about { color: var(--muted); font-size: 13.5px; max-width: 34ch; }
.legal {
  margin-top: 40px; padding-top: var(--sp-lg); border-top: 1px solid var(--border-subtle);
  color: var(--slate); font-size: 12.5px; display: flex; justify-content: space-between;
  gap: var(--sp-md); flex-wrap: wrap;
}

/* Floating WhatsApp — the front door (BRAND.md) */
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: var(--z-sticky);
  width: 56px; height: 56px; border-radius: var(--radius-full);
  background: var(--green); color: #0B1520;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(4, 10, 16, .5);
  transition: background var(--dur-short), box-shadow var(--dur-short);
}
.wa-float:hover { background: var(--green-glow); box-shadow: 0 0 24px rgba(111, 176, 64, .45); }
.wa-float svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   20. 404
   -------------------------------------------------------------------------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; padding: var(--sp-4xl) 0; }
.notfound .code { font-family: var(--en-body); font-size: 88px; font-weight: 600; line-height: 1; color: var(--green); }

/* --------------------------------------------------------------------------
   21. Print — day pocket (DESIGN.md §2)
   -------------------------------------------------------------------------- */
@media print {
  :root {
    --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F6F9FB;
    --text: #16232E; --muted: #445566; --border-subtle: #D8E2EA;
  }
  header.site, .wa-float, .sheet, .menu-btn, .cta-band, .hero-visual, .photo-frame { display: none !important; }
  body { background: #fff; color: #16232E; font-size: 12pt; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { text-decoration: none; color: #16232E; }
  .card, .form-card, .persona { border: 1px solid #D8E2EA; break-inside: avoid; }
  section { padding-top: 24px; }
}

/* --------------------------------------------------------------------------
   22. Responsive — collapse below 900px (DESIGN.md §4)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  nav.main { gap: 18px; font-size: 13.5px; }
  .foot { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  html { scroll-padding-top: 76px; }
  nav.main { display: none; }
  .header-cta .btn-lg, .header-cta .btn-md { display: none; }
  .menu-btn { display: block; }
  .hero, .split, .detail { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .steps, .steps.cols-4 { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .steps::before { display: none; }
  .biz { grid-template-columns: 48px 1fr; }
  .biz .textlink { grid-column: 2; }
  .foot { grid-template-columns: 1fr 1fr; }
  section { padding-top: var(--sp-3xl); }
  .dots-divider { margin-top: var(--sp-3xl); }
  h2.section { font-size: 27px; }
}

@media (max-width: 520px) {
  .materials { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .trust { gap: var(--sp-md); }
  .trust div { flex: 1 1 45%; }
}
