/* =====================================================================
   وكالة الإلهام الراقي للدعاية والإعلان — Digital design system
   Layout concept: architectural RTL grid · charcoal "night facade" stages
   alternating with paper "daylight" stages · yellow used as light, not paint.
   Single brand theme by choice (identity-driven), colours set explicitly.
   ===================================================================== */

@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans-regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans-medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyah-sans-bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Display"; src: url("../fonts/thmanyah-serif-display-medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Display"; src: url("../fonts/thmanyah-serif-display-bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  /* brand (from the visual identity guide) */
  --yellow: #FFDE17;
  --charcoal: #1D1D1B;
  --white: #FFFFFF;
  --blue: #164E9F;
  --paper: #F5F4EF;
  /* derived neutrals (warm, biased to the charcoal) */
  --paper-deep: #E9E7DF;
  --charcoal-soft: #262624;
  --charcoal-raise: #2E2E2B;
  --charcoal-line: #3B3B37;
  --ink: #5F5D57;
  --stone: #A3A199;
  --hair: #D9D6CC;
  --yellow-ink: #8A7400;          /* yellow-family text on paper (AA on paper) */
  --scrim: rgba(18, 18, 16, .78);

  /* type */
  --f-sans: "Thmanyah Sans", "Segoe UI", "Tahoma", "Arial", sans-serif;
  --f-display: "Thmanyah Serif Display", "Thmanyah Sans", "Times New Roman", serif;
  --t-hero: clamp(2.6rem, 1.4rem + 5.2vw, 5.75rem);
  --t-h1: clamp(2.2rem, 1.4rem + 3.4vw, 4.1rem);
  --t-h2: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  --t-h3: clamp(1.25rem, 1.05rem + .7vw, 1.6rem);
  --t-lead: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-label: .8125rem;

  /* space & grid */
  --gutter: clamp(16px, 4vw, 56px);
  --container: 1320px;
  --sec: clamp(72px, 9vw, 136px);
  --gap: clamp(16px, 2vw, 28px);

  /* radius & elevation — architectural: near-square, shadows only when lifted */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-pill: 999px;
  --sh-lift: 0 22px 44px -26px rgba(29, 29, 27, .55);
  --sh-float: 0 30px 60px -30px rgba(0, 0, 0, .75);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0; background: var(--paper); color: var(--charcoal);
  font-family: var(--f-sans); font-size: var(--t-body); line-height: 1.85; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: var(--r-xs); }
.sec--paper :focus-visible, .sec--white :focus-visible, .sec--yellow :focus-visible { outline-color: var(--charcoal); }
::selection { background: var(--yellow); color: var(--charcoal); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 999; background: var(--yellow); color: var(--charcoal); padding: 10px 18px; border-radius: var(--r-pill); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); position: relative; }
.sec--tight { padding-block: clamp(56px, 6vw, 88px); }
.sec--dark { background: var(--charcoal); color: var(--white); }
.sec--soft { background: var(--charcoal-soft); color: var(--white); }
.sec--paper { background: var(--paper); color: var(--charcoal); }
.sec--white { background: var(--white); color: var(--charcoal); }
.sec--yellow { background: var(--yellow); color: var(--charcoal); }
.sec--blue { background: var(--blue); color: var(--white); }
.grid { display: grid; gap: var(--gap); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.split--top { align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.d-hero { font-family: var(--f-display); font-size: var(--t-hero); line-height: 1.14; font-weight: 700; letter-spacing: 0; }
.d-1 { font-family: var(--f-display); font-size: var(--t-h1); line-height: 1.2; font-weight: 700; }
.d-2 { font-family: var(--f-display); font-size: var(--t-h2); line-height: 1.28; font-weight: 700; }
.h-2 { font-size: var(--t-h2); line-height: 1.3; }
.h-3 { font-size: var(--t-h3); line-height: 1.4; }
p { margin: 0; }
.lead { font-size: var(--t-lead); line-height: 1.85; font-weight: 500; max-width: 60ch; }
.body { max-width: 62ch; }
.muted { color: var(--ink); }
.sec--dark .muted, .sec--soft .muted, .on-dark .muted { color: var(--stone); }
.hl { color: var(--yellow); }
.sec--paper .hl, .sec--white .hl { color: inherit; background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%); }
.num { font-family: var(--f-sans); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; direction: ltr; unicode-bidi: isolate; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-label); font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.sec--dark .eyebrow, .sec--soft .eyebrow, .on-dark .eyebrow { color: var(--stone); }
.sec--yellow .eyebrow { color: var(--charcoal); }
.eyebrow::before { content: ""; width: 22px; height: 11px; background:
  linear-gradient(var(--yellow), var(--yellow)) 50% 0 / 100% 3px no-repeat,
  linear-gradient(var(--yellow), var(--yellow)) 50% 50% / 80% 3px no-repeat,
  linear-gradient(var(--yellow), var(--yellow)) 50% 100% / 60% 3px no-repeat; }
.sec--yellow .eyebrow::before, .sec--paper .eyebrow--k::before { background:
  linear-gradient(var(--charcoal), var(--charcoal)) 50% 0 / 100% 3px no-repeat,
  linear-gradient(var(--charcoal), var(--charcoal)) 50% 50% / 80% 3px no-repeat,
  linear-gradient(var(--charcoal), var(--charcoal)) 50% 100% / 60% 3px no-repeat; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 760px; min-width: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }
.btn--primary { background: var(--yellow); color: var(--charcoal); }
.btn--primary:hover { background: var(--white); }
.sec--paper .btn--primary:hover, .sec--white .btn--primary:hover { background: var(--charcoal); color: var(--yellow); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: var(--charcoal-raise); color: var(--yellow); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--yellow); border-color: var(--yellow); color: var(--charcoal); }
.btn--sm { padding: 10px 18px; font-size: .9375rem; }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; border-bottom: 1.5px solid currentColor; padding-bottom: 4px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(-5px); }

/* ---------- header ---------- */
.site-header { position: fixed; inset-inline: 0; top: env(safe-area-inset-top, 0px); z-index: 90; height: var(--header-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease), color .4s var(--ease); color: var(--white); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.site-header.is-solid { background: rgba(245, 244, 239, .94); color: var(--charcoal); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--hair); --header-h: 72px; }
.site-header.is-light { color: var(--charcoal); }
.brand { display: block; flex: 0 0 auto; width: 150px; position: relative; height: 60px; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: right center; transition: opacity .35s var(--ease); }
.brand .logo-pos { opacity: 0; }
.site-header.is-solid .brand .logo-pri, .site-header.is-light .brand .logo-pri { opacity: 0; }
.site-header.is-solid .brand .logo-pos, .site-header.is-light .brand .logo-pos { opacity: 1; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; margin: 0; padding: 0; gap: 2px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-weight: 500; font-size: 1rem; border-radius: var(--r-pill); position: relative; background: none; border: 0; color: inherit; }
.nav-link::after { content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-item:focus-within > .nav-link::after { transform: scaleX(1); }
.nav-link .chev { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.nav-item:hover .chev, .nav-item.open .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 240px; background: var(--charcoal); color: var(--white); border-radius: var(--r-sm);
  padding: 10px; box-shadow: var(--sh-float); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
.dropdown::before { content: ""; position: absolute; inset-inline: 0; top: -12px; height: 12px; }
.nav-item:hover > .dropdown, .nav-item.open > .dropdown, .nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown a { display: flex; justify-content: space-between; gap: 18px; padding: 10px 14px; border-radius: var(--r-xs); font-size: .9375rem; transition: background .2s, color .2s; }
.dropdown a:hover { background: var(--charcoal-raise); color: var(--yellow); }
.dropdown small { color: var(--stone); font-size: .75rem; }
.nav-item.has-mega { position: static; }
.nav { position: relative; }
.mega { width: min(880px, 92vw); padding: 22px; display: grid; grid-template-columns: 1.15fr 1fr .9fr; gap: 22px; inset-inline-start: auto; inset-inline-end: 0; }
.mega h4 { font-size: .8125rem; color: var(--stone); font-weight: 700; margin: 0 0 8px; padding-inline: 14px; }
.mega-feature { position: relative; border-radius: var(--r-sm); overflow: hidden; min-height: 240px; display: flex; align-items: end; padding: 18px; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,18,16,.92), rgba(18,18,16,.1) 70%); }
.mega-feature span { position: relative; z-index: 1; font-weight: 700; line-height: 1.5; }
.mega-feature b { display: block; font-family: var(--f-display); font-size: 1.3rem; color: var(--yellow); }
.header-cta { margin-inline-start: 10px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; align-items: center; justify-content: center; margin-inline-start: auto; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; inset-inline: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; width: 70%; }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 120; background: var(--charcoal); color: var(--white); padding: calc(env(safe-area-inset-top, 0px) + 22px) 22px calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex; flex-direction: column; gap: 22px; overflow-y: auto; clip-path: circle(0% at 8% 4%); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
.mnav.open { clip-path: circle(150% at 8% 4%); visibility: visible; transition: clip-path .7s var(--ease); }
.mnav-top { display: flex; justify-content: space-between; align-items: center; }
.mnav-top img { width: 130px; }
.mnav-close { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--charcoal-line); background: none; color: var(--white); font-size: 1.4rem; line-height: 1; }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav > ul > li { border-bottom: 1px solid var(--charcoal-line); }
.mnav > ul > li > a, .mnav summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; list-style: none; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::after { content: "+"; font-family: var(--f-sans); color: var(--yellow); font-size: 1.5rem; transition: transform .3s; }
.mnav details[open] summary::after { transform: rotate(45deg); }
.mnav details ul { padding: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.mnav details a { display: block; padding: 7px 0; color: var(--stone); font-size: 1rem; }
.mnav details a:hover { color: var(--yellow); }
.mnav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.mnav-foot .num { font-size: 1.5rem; color: var(--yellow); }

/* ---------- home hero ---------- */
.hero { position: relative; min-height: clamp(640px, 92vh, 920px); background: radial-gradient(120% 90% at 20% 30%, #2b2a24 0%, var(--charcoal) 55%, #121211 100%); color: var(--white); overflow: hidden; isolation: isolate; display: flex; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.hero-fallback { position: absolute; inset: 0; z-index: -1; background-position: 35% 50%; background-size: cover; opacity: .55; }
.hero.has-3d .hero-fallback { opacity: 0; transition: opacity 1.2s; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to left, rgba(18,18,16,.92) 0%, rgba(18,18,16,.55) 40%, rgba(18,18,16,0) 70%), linear-gradient(to top, rgba(18,18,16,.85), transparent 35%); }
.hero-inner { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(36px, 5vw, 64px); }
.hero-copy { max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .lead { color: #E6E4DC; }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-label); font-weight: 700; color: var(--yellow); }
.hero-kicker i { width: 36px; height: 1.5px; background: var(--yellow); }
.hero-meta { margin-top: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.16); }
.hero-meta div { padding: 18px 0 0; display: flex; flex-direction: column; gap: 2px; padding-inline-end: 18px; }
.hero-meta .num { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); color: var(--yellow); line-height: 1.2; text-align: right; }
.hero-meta span { font-size: var(--t-small); color: var(--stone); }
.hero-scroll { position: absolute; z-index: 2; inset-inline-start: var(--gutter); bottom: 40px; display: flex; align-items: center; gap: 12px; font-size: .8125rem; color: var(--stone); writing-mode: vertical-rl; }
.hero-scroll i { width: 1.5px; height: 56px; background: linear-gradient(var(--yellow), transparent); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-load > * { animation: rise 1s var(--ease) both; }
.hero-load > *:nth-child(2) { animation-delay: .12s; } .hero-load > *:nth-child(3) { animation-delay: .24s; } .hero-load > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { transform: translateY(26px); } to { transform: none; } }

/* ticker */
.ticker { background: var(--yellow); color: var(--charcoal); overflow: hidden; padding-block: 16px; position: relative; z-index: 3; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: tick 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 22px; padding-inline: 22px; font-weight: 700; font-size: 1.125rem; white-space: nowrap; }
.ticker span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--charcoal); }
@keyframes tick { to { transform: translateX(50%); } }

/* ---------- inner page hero ---------- */
.phero { position: relative; color: var(--white); background: var(--charcoal); min-height: clamp(460px, 64vh, 640px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.phero-img { position: absolute; inset: -6% 0 0; z-index: -2; }
.phero-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(18,18,16,.9), rgba(18,18,16,.35) 62%, rgba(18,18,16,.15)), linear-gradient(to top, rgba(18,18,16,.92), transparent 55%); }
.phero .wrap { padding-top: calc(var(--header-h) + 72px); padding-bottom: clamp(40px, 5vw, 72px); display: flex; flex-direction: column; gap: 18px; }
.phero--plain { min-height: auto; background: var(--charcoal); }
.phero--plain::before { background: radial-gradient(70% 120% at 15% 0%, rgba(255,222,23,.13), transparent 60%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t-small); color: var(--stone); list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--charcoal-line); }
.crumbs a:hover { color: var(--yellow); }
.phero-num { font-family: var(--f-sans); font-weight: 700; color: var(--yellow); font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: 1; }
.phero p.lead { color: #E6E4DC; }
.ref-tag { position: absolute; z-index: 3; inset-inline-end: 16px; bottom: 16px; background: rgba(29,29,27,.88); color: var(--white); font-size: .75rem; padding: 6px 12px; border-radius: var(--r-pill); display: inline-flex; gap: 8px; align-items: center; }
.ref-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }

/* ---------- media & reveal ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-xs); background: var(--charcoal-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media--4x3 { aspect-ratio: 4 / 3; } .media--16x9 { aspect-ratio: 16 / 9; } .media--3x4 { aspect-ratio: 3 / 4; } .media--1x1 { aspect-ratio: 1; } .media--tall { aspect-ratio: 3 / 4.4; }
.media { max-width: 100%; }
.rv img { transform: scale(1.08); }
.rv.in img { transform: scale(1); }
.cap { margin-top: 10px; font-size: var(--t-small); color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.sec--dark .cap, .sec--soft .cap { color: var(--stone); }

/* ---------- intro ---------- */
.intro-statement { font-family: var(--f-display); font-size: var(--t-h2); line-height: 1.45; font-weight: 700; max-width: 22ch; }
.intro-media { position: relative; }
.intro-media .m1 { width: 78%; }
.intro-media .m2 { position: absolute; width: 46%; inset-inline-start: 0; bottom: -12%; border: 8px solid var(--paper); box-shadow: var(--sh-lift); }
.badge-3d { position: absolute; inset-inline-end: -10px; top: -26px; width: 116px; height: 116px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b0, var(--yellow) 45%, #d9b800 100%);
  box-shadow: 0 18px 36px -14px rgba(138,116,0,.7), inset -8px -10px 20px rgba(0,0,0,.12); display: grid; place-items: center; text-align: center; font-weight: 700; color: var(--charcoal); font-size: .8125rem; line-height: 1.35; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-4deg); } }

/* ---------- journey (6 stages) ---------- */
.journey { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 72px); align-items: stretch; }
.journey-list { list-style: none; margin: 0; padding: 0; counter-reset: st; display: flex; flex-direction: column; }
.journey-list button { width: 100%; display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; text-align: start; background: none; border: 0; border-top: 1px solid var(--charcoal-line); color: var(--stone); padding: 18px 0; transition: color .3s; }
.journey-list li:last-child button { border-bottom: 1px solid var(--charcoal-line); }
.journey-list .num { font-size: 1rem; color: var(--charcoal-line); transition: color .3s; }
.journey-list strong { font-family: var(--f-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 700; color: inherit; }
.journey-list small { font-size: var(--t-small); max-width: 26ch; text-align: end; opacity: 0; transform: translateX(10px); transition: opacity .3s, transform .4s var(--ease); }
.journey-list button.on, .journey-list button:hover { color: var(--white); }
.journey-list button.on .num { color: var(--yellow); }
.journey-list button.on small { opacity: 1; transform: none; color: var(--stone); }
.journey-stage { position: relative; min-height: 460px; border-radius: var(--r-xs); overflow: hidden; background: var(--charcoal-soft); }
.journey-stage figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s var(--ease); }
.journey-stage figure.on { opacity: 1; }
.journey-stage img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 6s linear; }
.journey-stage figure.on img { transform: scale(1); }
.journey-stage figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 22px; background: linear-gradient(to top, rgba(18,18,16,.9), transparent); font-size: var(--t-small); color: var(--white); }
.journey-idea { position: absolute; inset: 0; background: var(--yellow); color: var(--charcoal); display: grid; place-items: center; text-align: center; padding: 28px; }
.journey-idea p { font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); font-weight: 700; line-height: 1.5; }
.journey-bar { position: absolute; z-index: 2; top: 18px; inset-inline-end: 18px; display: flex; gap: 5px; }
.journey-bar i { width: 26px; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; transition: background .3s; }
.journey-bar i.on { background: var(--yellow); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: clamp(22px, 3vw, 40px); border-inline-start: 1px solid rgba(29,29,27,.18); display: flex; flex-direction: column; gap: 10px; }
.stat:first-child { border-inline-start: 0; }
.stat .num { font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: .95; text-align: right; color: var(--charcoal);
  text-shadow: 1px 1px 0 #e6c800, 2px 2px 0 #d9bc00, 3px 3px 0 #ccb000, 4px 4px 0 #bfa400, 10px 14px 18px rgba(80,66,0,.35); }
.stat p { font-weight: 500; max-width: 22ch; }

/* ---------- service cards & rail ---------- */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 380px); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter); padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--yellow) transparent; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--charcoal-line); background: transparent; color: var(--white); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.rail-nav button:hover { background: var(--yellow); color: var(--charcoal); border-color: var(--yellow); }
.rail-nav svg { width: 20px; height: 20px; }
.scard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 500px; border-radius: var(--r-xs); overflow: hidden; color: var(--white); isolation: isolate;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.scard:hover { box-shadow: var(--sh-float); }
.scard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.scard:hover img { transform: scale(1.06); }
.scard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18,18,16,.95) 8%, rgba(18,18,16,.2) 62%, rgba(18,18,16,.05)); }
.scard-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; transform: translateZ(40px); }
.scard .num { color: var(--yellow); font-size: .9375rem; }
.scard h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); }
.scard p { color: #DAD8D0; font-size: var(--t-small); line-height: 1.75; }
.scard .go { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); font-weight: 700; font-size: .9375rem; }
.scard .go svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.scard:hover .go svg { transform: translateX(-5px); }
.ext-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 28px; border-top: 1px solid var(--charcoal-line); margin-top: clamp(40px, 5vw, 64px); }
.ext-list a { display: flex; align-items: center; gap: 14px; padding: 22px 6px; border-bottom: 1px solid var(--charcoal-line); font-weight: 700; font-size: 1.125rem; transition: color .3s, padding .3s var(--ease); }
.ext-list a:hover { color: var(--yellow); padding-inline-start: 14px; }
.ext-list .ico { width: 42px; height: 42px; flex: 0 0 42px; }
.ext-list small { display: block; font-weight: 400; font-size: .8125rem; color: var(--stone); }

/* icon tile (3D-lit glyph) */
.ico { display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #3c3b36, var(--charcoal) 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 18px -10px rgba(0,0,0,.6); color: var(--yellow); }
.ico svg { width: 55%; height: 55%; }
.sec--paper .ico--light, .sec--white .ico--light { background: radial-gradient(circle at 32% 28%, #fff, var(--paper-deep) 75%); color: var(--charcoal); box-shadow: inset 0 -2px 0 rgba(0,0,0,.05), 0 10px 18px -12px rgba(29,29,27,.45); }

/* ---------- service index (services page) ---------- */
.sindex { border-top: 1px solid var(--hair); }
.sindex a { display: grid; grid-template-columns: 70px minmax(0, 1.2fr) minmax(0, 1fr) 160px 40px; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--hair); position: relative; transition: background .3s; }
.sindex .num { color: var(--ink); font-size: .9375rem; }
.sindex h3 { font-family: var(--f-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); }
.sindex p { color: var(--ink); font-size: var(--t-small); }
.sindex .thumb { aspect-ratio: 16/10; border-radius: var(--r-xs); overflow: hidden; }
.sindex .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sindex svg.arr { width: 26px; height: 26px; transition: transform .35s var(--ease); }
.sindex a:hover h3 { color: var(--charcoal); }
.sindex a:hover { background: linear-gradient(to left, rgba(255,222,23,.18), transparent 70%); }
.sindex a:hover svg.arr { transform: translateX(-6px); }
.sindex a:hover .thumb img { transform: scale(1.07); }
.tier-label { display: flex; align-items: center; gap: 14px; font-weight: 700; margin: 48px 0 6px; }
.tier-label span { color: var(--ink); font-weight: 400; font-size: var(--t-small); }

/* ---------- capabilities map ---------- */
.cmap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; position: relative; padding-top: 44px; }
.cmap::before { content: ""; position: absolute; inset-inline: 2%; top: 16px; height: 1.5px; background: linear-gradient(to left, var(--charcoal-line), var(--yellow)); }
.cmap li { list-style: none; position: relative; display: flex; flex-direction: column; gap: 8px; }
.cmap li::before { content: attr(data-n); position: absolute; top: -44px; inset-inline-start: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--charcoal); border: 1.5px solid var(--yellow); color: var(--yellow); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.cmap li:last-child::before { background: var(--yellow); color: var(--charcoal); box-shadow: 0 0 0 8px rgba(255,222,23,.15), 0 0 34px rgba(255,222,23,.6); }
.cmap h3 { font-family: var(--f-display); font-size: 1.4rem; }
.cmap li:last-child h3 { color: var(--yellow); }
.cmap p { color: var(--stone); font-size: var(--t-small); line-height: 1.8; }
.cmap { margin: 0; padding-inline: 0; }

/* ---------- projects ---------- */
.pgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.pcard { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; }
.pcard--wide { grid-column: span 8; }
.pcard--half { grid-column: span 6; }
.pcard .media { aspect-ratio: 4/3; }
.pcard--wide .media { aspect-ratio: 16/9.6; }
.pcard .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,18,16,.55), transparent 45%); opacity: 0; transition: opacity .5s; }
.pcard:hover .media::after { opacity: 1; }
.pcard:hover .media img { transform: scale(1.05); }
.pcard .tag { position: absolute; z-index: 2; top: 14px; inset-inline-end: 14px; background: var(--yellow); color: var(--charcoal); font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); }
.pcard .count { position: absolute; z-index: 2; bottom: 14px; inset-inline-start: 14px; color: var(--white); font-size: .8125rem; display: flex; gap: 6px; align-items: center; }
.pcard h3 { font-family: var(--f-display); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--t-small); color: var(--ink); }
.sec--dark .pcard .meta, .sec--soft .pcard .meta { color: var(--stone); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { padding: 10px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--hair); background: transparent; color: var(--charcoal); font-weight: 500; transition: all .3s var(--ease); }
.filters button[aria-pressed="true"] { background: var(--charcoal); color: var(--yellow); border-color: var(--charcoal); }
.filters button:hover { border-color: var(--charcoal); }
.pcard.is-hidden { display: none; }

/* ---------- facade spotlight (parallax band) ---------- */
.spot { position: relative; min-height: clamp(520px, 80vh, 760px); color: var(--white); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.spot-bg { position: absolute; inset: -12% 0; z-index: -2; }
.spot-bg img { width: 100%; height: 100%; object-fit: cover; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(18,18,16,.9) 10%, rgba(18,18,16,.2) 70%); }
.spot-copy { max-width: 560px; display: flex; flex-direction: column; gap: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 7px 16px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.3); font-size: var(--t-small); }
.sec--paper .chips span, .sec--white .chips span { border-color: var(--hair); background: var(--white); }
.sec--yellow .chips span { border-color: rgba(29,29,27,.35); }

/* ---------- pillars (why us) ---------- */
.pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--charcoal-line); }
.pillar { padding: 32px 22px 30px; border-inline-start: 1px solid var(--charcoal-line); display: flex; flex-direction: column; gap: 14px; position: relative; transition: background .4s var(--ease); }
.pillar:first-child { border-inline-start: 0; }
.pillar:hover { background: var(--charcoal-soft); }
.pillar .num { color: var(--charcoal-line); font-size: 3.4rem; line-height: 1; transition: color .4s; }
.pillar:hover .num { color: var(--yellow); }
.pillar h3 { font-family: var(--f-display); font-size: 1.75rem; }
.pillar p { color: var(--stone); font-size: var(--t-small); }
.pillar:last-child h3 { color: var(--yellow); }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); counter-reset: p; }
.pstep { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 2px solid var(--charcoal); }
.pstep .num { font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3.2rem); line-height: 1; }
.pstep .bar { width: 34px; height: 4px; background: var(--yellow); border-radius: 2px; }
.pstep h3 { font-family: var(--f-display); font-size: 1.6rem; }
.pstep p { color: var(--ink); font-size: var(--t-small); }
.sec--dark .pstep { border-top-color: var(--yellow); } .sec--dark .pstep p { color: var(--stone); }

/* ---------- clients ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: tick 60s linear infinite; padding-block: 6px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee--rev .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.logo-tile { width: 170px; height: 98px; flex: 0 0 auto; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-xs); display: grid; place-items: center; padding: 10px 14px; transition: border-color .3s, transform .4s var(--ease); }
.logo-tile img { max-height: 76px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .4s, opacity .4s; }
.logo-tile:hover { border-color: var(--charcoal); transform: translateY(-3px); }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); border-top: 1px solid var(--hair); border-inline-start: 1px solid var(--hair); }
.logo-wall .logo-tile { width: auto; height: 116px; border: 0; border-bottom: 1px solid var(--hair); border-inline-end: 1px solid var(--hair); border-radius: 0; }
.logo-wall .logo-tile:hover { transform: none; background: var(--paper); }
.featured-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.featured-logos .logo-tile { width: auto; height: 150px; }
.featured-logos .logo-tile img { filter: none; opacity: 1; max-height: 110px; }
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--charcoal-line); }
.sector { padding: 26px 22px 26px 0; border-bottom: 1px solid var(--charcoal-line); display: flex; flex-direction: column; gap: 8px; padding-inline-start: 22px; border-inline-start: 1px solid var(--charcoal-line); }
.sector:nth-child(3n+1) { border-inline-start: 0; padding-inline-start: 0; }
.sector h3 { color: var(--yellow); font-size: 1.125rem; }
.sector p { color: #DAD8D0; font-size: var(--t-small); }

/* ---------- CTA band with 3D ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta-canvas { position: absolute; inset-block: 0; inset-inline-end: 0; width: 46%; z-index: -1; }
.cta-canvas canvas { width: 100% !important; height: 100% !important; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.cta-copy { display: flex; flex-direction: column; gap: 22px; }
.cta-bars { display: none; }
.phone-block { display: flex; flex-direction: column; gap: 4px; }
.phone-block .num { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); line-height: 1.2; text-align: right; }
.phone-block small { font-size: var(--t-small); font-weight: 500; }

/* ---------- service page blocks ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--charcoal); }
.feature { padding: 26px 22px 26px 0; border-inline-start: 1px solid var(--hair); padding-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--hair); }
.feature:nth-child(4n+1) { border-inline-start: 0; padding-inline-start: 0; }
.feature .num { font-size: 2.4rem; line-height: 1; }
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--ink); font-size: var(--t-small); }
.sec--yellow .feature { border-color: rgba(29,29,27,.2); } .sec--yellow .feature p { color: var(--charcoal); }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.app { display: flex; flex-direction: column; gap: 14px; }
.app .media { aspect-ratio: 4/5; }
.app h3 { font-size: 1.125rem; }
.app-text { display: flex; gap: 14px; align-items: center; padding: 20px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-xs); font-weight: 700; transition: border-color .3s, transform .4s var(--ease); }
.app-text:hover { border-color: var(--charcoal); transform: translateY(-3px); }
.app-text .ico { width: 46px; height: 46px; flex: 0 0 46px; }
.focus { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.focus div { aspect-ratio: 1 / 1.05; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--r-xs); background: var(--paper-deep); }
.focus div:nth-child(odd) { background: var(--yellow); }
.focus div:nth-child(3) { background: var(--charcoal); color: var(--white); }
.focus .num { font-size: .875rem; }
.focus b { font-family: var(--f-display); font-size: clamp(1.2rem, 1rem + .8vw, 1.7rem); }
.light-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.light-types article { display: flex; flex-direction: column; gap: 14px; }
.light-types .media { aspect-ratio: 4/3.2; }
.light-types h3 { font-size: 1.35rem; } .light-types p { color: var(--stone); font-size: var(--t-small); }
.types-list { columns: 2; column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.types-list li { break-inside: avoid; display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--hair); font-weight: 700; }
.types-list li span { color: var(--ink); font-weight: 400; font-size: .8125rem; }
.sys-path { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; position: relative; padding-top: 38px; margin: 0; }
.sys-path::before { content: ""; position: absolute; top: 12px; inset-inline: 4%; height: 1.5px; background: rgba(255,255,255,.35); }
.sys-path li { list-style: none; position: relative; font-weight: 700; }
.sys-path li::before { content: ""; position: absolute; top: -32px; inset-inline-start: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--yellow); }
.sys-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.sys-rules div { background: var(--white); color: var(--blue); padding: 22px; border-radius: var(--r-xs); display: flex; flex-direction: column; gap: 22px; }
.sys-rules b { font-family: var(--f-display); font-size: 1.8rem; }
.venn { position: relative; width: min(360px, 100%); aspect-ratio: 1; margin-inline: auto; }
.venn i { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--charcoal); display: grid; place-items: center; font-style: normal; font-weight: 700; }
.venn i:nth-child(1) { top: 4%; inset-inline-end: 4%; place-items: start end; padding: 22% 18% 0 0; }
.venn i:nth-child(2) { top: 4%; inset-inline-start: 4%; place-items: start start; padding: 22% 0 0 18%; }
.venn i:nth-child(3) { bottom: 2%; left: 20%; place-items: end center; padding-bottom: 18%; }
.venn b { position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle, var(--yellow), rgba(255,222,23,0) 70%); display: grid; place-items: center; font-size: .75rem; }
.gallery { columns: 3 260px; column-gap: var(--gap); }
.gallery a { display: block; margin-bottom: var(--gap); break-inside: avoid; position: relative; border-radius: var(--r-xs); overflow: hidden; background: var(--charcoal-soft); }
.gallery img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery a::after { content: ""; position: absolute; inset: auto 12px 12px auto; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1B' stroke-width='2'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat; opacity: 0; transform: scale(.7); transition: all .35s var(--ease); }
.gallery a:hover::after { opacity: 1; transform: none; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--charcoal-line); }
.pager a { padding: 34px 0; display: flex; flex-direction: column; gap: 6px; transition: color .3s; }
.pager a:last-child { text-align: end; border-inline-start: 1px solid var(--charcoal-line); padding-inline-start: 28px; }
.pager small { color: var(--stone); }
.pager b { font-family: var(--f-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); }
.pager a:hover b { color: var(--yellow); }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.stages figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.stages .media { aspect-ratio: 3/4; }
.stages figcaption { display: flex; gap: 12px; align-items: baseline; font-weight: 700; font-size: 1.125rem; }
.stages figcaption .num { color: var(--yellow); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.facts div { padding: 18px 0; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--hair); }
.facts small { color: var(--ink); font-size: .8125rem; }
.facts b { font-size: 1.0625rem; }

/* ---------- about ---------- */
.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.vm article { padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xs); display: flex; flex-direction: column; gap: 22px; min-height: 380px; position: relative; overflow: hidden; }
.vm article:first-child { background: var(--charcoal); color: var(--white); }
.vm article:last-child { background: var(--yellow); }
.vm .ring { position: absolute; inset-inline-start: -70px; bottom: -70px; width: 240px; height: 240px; border-radius: 50%; border: 1.5px solid var(--yellow); box-shadow: 0 0 0 26px rgba(255,222,23,.06); }
.vm article:last-child .ring { border-color: var(--charcoal); box-shadow: 0 0 0 26px rgba(29,29,27,.05); }
.vm p { font-family: var(--f-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.85rem); line-height: 1.6; font-weight: 700; position: relative; }
.words { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.words div { aspect-ratio: 3 / 3.6; border-radius: var(--r-xs); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper-deep); }
.words div:first-child { background: var(--charcoal); color: var(--white); } .words div:first-child .num { color: var(--yellow); }
.words div:last-child { background: var(--yellow); }
.words b { font-family: var(--f-display); font-size: clamp(1.2rem, .9rem + 1vw, 1.75rem); }
.philo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.philo div { border-top: 1px solid var(--charcoal-line); padding-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.philo b { font-family: var(--f-display); font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); line-height: 1.3; }
.philo div:last-child b { color: var(--yellow); }
.philo i { display: block; height: 3px; background: var(--yellow); border-radius: 2px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); }
.cinfo { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--charcoal-line); }
.cinfo > div { padding: 22px 0; border-bottom: 1px solid var(--charcoal-line); display: flex; flex-direction: column; gap: 6px; }
.cinfo small { color: var(--stone); }
.cinfo .num { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); text-align: right; }
.cinfo a.num:hover { color: var(--yellow); }
.copy-btn { align-self: flex-start; background: none; border: 1px solid var(--charcoal-line); color: var(--stone); border-radius: var(--r-pill); padding: 4px 12px; font-size: .75rem; }
.copy-btn:hover { color: var(--yellow); border-color: var(--yellow); }
.form { background: var(--white); color: var(--charcoal); border-radius: var(--r-xs); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9375rem; }
.field input, .field select, .field textarea { font: inherit; padding: 14px 16px; border: 1.5px solid var(--hair); background: var(--paper); border-radius: var(--r-xs); color: var(--charcoal); transition: border-color .3s, background .3s; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--charcoal); background: var(--white); }
.field .err { color: #B3261E; font-size: .8125rem; min-height: 1em; }
.svc-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-pick label { font-weight: 500; font-size: .875rem; padding: 8px 14px; border: 1.5px solid var(--hair); border-radius: var(--r-pill); cursor: pointer; transition: all .25s; }
.svc-pick { position: relative; }
.field .svc-pick input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; padding: 0; margin: 0; border: 0; inset-inline-start: 0; }
.svc-pick input:checked + label { background: var(--charcoal); color: var(--yellow); border-color: var(--charcoal); }
.svc-pick input:focus-visible + label { outline: 2px solid var(--charcoal); outline-offset: 2px; }
.form-ok { grid-column: 1 / -1; background: var(--yellow); padding: 18px 20px; border-radius: var(--r-xs); font-weight: 700; }
.qr { width: 132px; background: var(--white); padding: 10px; border-radius: var(--r-xs); }

/* ---------- footer ---------- */
.site-footer { background: #141413; color: var(--white); padding-top: clamp(64px, 8vw, 110px); position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); padding-bottom: 56px; border-bottom: 1px solid var(--charcoal-line); }
.footer-brand { display: flex; flex-direction: column; gap: 22px; max-width: 380px; }
.footer-brand img { width: 190px; }
.footer-brand p { color: var(--stone); font-size: var(--t-small); }
.site-footer h4 { font-size: .875rem; color: var(--yellow); margin-bottom: 18px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer li a { color: #CFCDC5; font-size: var(--t-small); transition: color .25s; }
.site-footer li a:hover { color: var(--yellow); }
.footer-giant { font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 1rem + 9vw, 10rem); line-height: 1.1; color: transparent; -webkit-text-stroke: 1px var(--charcoal-line); padding-block: 26px 6px; white-space: nowrap; text-align: center; overflow: hidden; }
.footer-giant span { color: var(--yellow); -webkit-text-stroke: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-block: 22px 28px; color: var(--stone); font-size: .8125rem; border-top: 1px solid var(--charcoal-line); }
.footer-bottom a:hover { color: var(--yellow); }
.footer-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; inset-inline-start: -200px; top: -220px; background: radial-gradient(circle, rgba(255,222,23,.14), transparent 65%); pointer-events: none; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(12,12,11,.96); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 16px 24px; }
.lb[hidden] { display: none !important; }
.lb img { max-height: 78vh; width: auto; max-width: min(1200px, 100%); border-radius: var(--r-xs); }
.lb-bar { display: flex; gap: 14px; align-items: center; color: var(--stone); padding-top: 16px; }
.lb button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--charcoal-line); background: transparent; color: var(--white); font-size: 1.3rem; }
.lb button:hover { background: var(--yellow); color: var(--charcoal); border-color: var(--yellow); }
.lb .lb-x { position: absolute; top: 14px; inset-inline-end: 14px; }

/* ---------- style guide ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.swatch { border-radius: var(--r-xs); overflow: hidden; border: 1px solid var(--hair); background: var(--white); }
.swatch i { display: block; height: 110px; }
.swatch div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: .875rem; }
.swatch code { direction: ltr; text-align: right; color: var(--ink); font-size: .8125rem; }
.spec { display: grid; grid-template-columns: 200px 1fr; gap: 10px 28px; border-top: 1px solid var(--hair); padding-top: 18px; }
.spec dt { color: var(--ink); font-size: .875rem; } .spec dd { margin: 0; }
.tokens-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tokens-table th, .tokens-table td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.tokens-table code { direction: ltr; unicode-bidi: isolate; font-size: .8125rem; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav > ul, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillar:nth-child(4) { border-inline-start: 0; }
  .pillar { border-bottom: 1px solid var(--charcoal-line); }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .cmap { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 64px; }
  .cmap::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .sindex a { grid-template-columns: 56px minmax(0, 1fr) 140px 30px; }
  .sindex a p { display: none; }
  .words { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .split, .journey, .contact-grid, .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .g-3, .g-4, .light-types, .stages, .featured-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat { border-top: 1px solid rgba(29,29,27,.18); }
  .pgrid .pcard, .pgrid .pcard--wide, .pgrid .pcard--half { grid-column: span 6; }
  .pgrid .pcard--wide { grid-column: span 12; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(4n+1) { border-inline-start: 1px solid var(--hair); padding-inline-start: 22px; }
  .feature:nth-child(2n+1) { border-inline-start: 0; padding-inline-start: 0; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector:nth-child(3n+1) { border-inline-start: 1px solid var(--charcoal-line); padding-inline-start: 22px; }
  .sector:nth-child(2n+1) { border-inline-start: 0; padding-inline-start: 0; }
  .vm, .philo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .journey-stage { min-height: 340px; order: -1; }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-meta div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); margin-top: 14px; }
  .cta-canvas { width: 100%; opacity: .35; }
  .sys-path { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 48px; }
  .sys-path::before { display: none; }
  .sys-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-media { margin-bottom: 40px; }
  .hero-scroll { display: none; }
}
@media (max-width: 600px) {
  :root { --t-body: 1rem; }
  .g-2, .g-3, .g-4, .light-types, .stages, .vm, .philo, .featured-logos, .sectors, .feature-grid, .facts { grid-template-columns: minmax(0, 1fr); }
  .feature, .sector { border-inline-start: 0 !important; padding-inline-start: 0 !important; }
  .g-6, .words, .focus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 12px; }
  .pillars, .process { grid-template-columns: minmax(0, 1fr); }
  .pillar { border-inline-start: 0; }
  .pgrid .pcard, .pgrid .pcard--wide, .pgrid .pcard--half { grid-column: span 12; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-auto-columns: 82%; }
  .scard { min-height: 420px; }
  .sindex a { grid-template-columns: 40px minmax(0, 1fr) 28px; }
  .sindex .thumb { display: none; }
  .types-list { columns: 1; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager a:last-child { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--charcoal-line); text-align: start; }
  .sys-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: auto; }
  .hero-inner { padding-top: calc(var(--header-h) + 250px); }
  .hero::after { background: linear-gradient(to top, rgba(18,18,16,.96) 45%, rgba(18,18,16,.35) 75%, rgba(18,18,16,.1)); }
  .intro-media .m1 { width: 100%; }
  .intro-media .m2 { width: 52%; bottom: -14%; }
  .badge-3d { width: 92px; height: 92px; font-size: .6875rem; top: -18px; inset-inline-end: 6px; }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .journey-list small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv img { transform: none; }
}

/* philosophy on yellow */
.sec--yellow .philo div { border-top-color: rgba(29,29,27,.28); }
.sec--yellow .philo div:last-child b { color: var(--charcoal); }
.sec--yellow .philo i { background: var(--charcoal); }
.sec--yellow .philo .num { color: var(--charcoal); }

.sec-head > .rail-nav { flex-direction: row; }

/* digits are LTR runs inside an RTL layout: keep them on the reading edge */
.num { text-align: right; }
.phero-num { align-self: flex-start; }
