/* ==========================================================================
   Digital Takhleeq website
   Layout concept: one long page on alternating navy and cream grounds.
   Shapes are soft rounded rectangles, matching the rounded corners in the logo.
   Gold is used for action and emphasis only.
   ========================================================================== */

:root {
  --navy: #0B1020;
  --navy-2: #111833;
  --navy-3: #161F3D;
  --deep: #070B16;
  --cream: #F7F5EF;
  --cream-2: #EFEBE0;
  --white: #FFFFFF;
  --gold: #D4AF37;
  --gold-ink: #7A5F0B;
  --muted-d: #A9B0C8;
  --muted-l: #4A5068;
  --line-d: rgba(247, 245, 239, .12);
  --line-l: #DDD8CB;
  --danger: #B3261E;

  --f-display: 'Montserrat', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-ur: 'Noto Naskh Arabic', 'Segoe UI', serif;

  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--navy); }
section[id] { scroll-margin-top: calc(var(--header-h) - 8px); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }

.skip { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: var(--r-s); font-weight: 700; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

.progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); z-index: 70; pointer-events: none; }

.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Themes ------------------------------------------------------------------ */
.on-dark { --fg: var(--cream); --muted: var(--muted-d); --line: var(--line-d); --surface: var(--navy-2); background: var(--navy); color: var(--fg); }
.on-light { --fg: var(--navy); --muted: var(--muted-l); --line: var(--line-l); --surface: var(--white); background: var(--cream); color: var(--fg); }

/* Type -------------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.06; font-weight: 700; letter-spacing: -.022em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.1; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }
.gold { color: var(--gold); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.on-light .eyebrow { color: var(--gold-ink); }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--muted); max-width: 40rem; }

.section { padding-block: clamp(64px, 8vw, 112px); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 + .lead { margin-top: 0; }

/* Buttons ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border: 0; border-radius: var(--r-m); font-weight: 700; font-size: .95rem; line-height: 1; white-space: nowrap; transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 11px 18px; font-size: .875rem; border-radius: 12px; }
.btn-block { width: 100%; padding-block: 18px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #E3C25A; box-shadow: 0 12px 30px -12px rgba(212, 175, 55, .7); }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(247, 245, 239, .28); }
.btn-ghost:hover { background: rgba(247, 245, 239, .07); box-shadow: inset 0 0 0 1px rgba(247, 245, 239, .5); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: #1A2347; box-shadow: 0 12px 30px -14px rgba(11, 16, 32, .7); }
.btn-line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.btn-line:hover { background: rgba(11, 16, 32, .05); }

.link { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--fg); padding-bottom: 4px; background: linear-gradient(var(--gold), var(--gold)) left bottom / 36% 2px no-repeat; transition: background-size .35s var(--ease); }
.link .ic { transition: transform .25s var(--ease); }
.link:hover { background-size: 100% 2px; }
.link:hover .ic { transform: translateX(3px); }

/* Header ------------------------------------------------------------------ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); display: flex; align-items: center; transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(11, 16, 32, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: rgba(247, 245, 239, .08); }
.header-row { display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 20px; height: 29px; color: var(--cream); flex: none; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: translateY(-2px); }
.brand-word { font-family: var(--f-display); font-size: 1.2rem; line-height: 1; color: var(--gold); white-space: nowrap; }
.brand-word span { font-weight: 300; }
.brand-word b { font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 10px 14px; font-size: .9rem; font-weight: 600; color: rgba(247, 245, 239, .78); border-radius: 10px; transition: color .25s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--cream); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.menu-btn { display: none; width: 46px; height: 46px; margin-left: auto; background: transparent; border: 0; position: relative; border-radius: 12px; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--navy); padding: calc(var(--header-h) + 28px) max(24px, env(safe-area-inset-right)) 32px max(24px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 28px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; overflow-y: auto; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; padding: 12px 0; border-bottom: 1px solid var(--line-d); opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(1) { transition-delay: .06s; }
.menu.is-open nav a:nth-child(2) { transition-delay: .11s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .16s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .21s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .26s; }
.menu.is-open nav a:nth-child(6) { transition-delay: .31s; }
.menu .btn { align-self: flex-start; }
.menu-note { color: var(--muted-d); font-size: .95rem; }

/* Reveal motion ----------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(212, 175, 55, .11), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }
.hero-note { font-size: .9rem; color: var(--muted-d); }

.sys { max-width: 520px; width: 100%; margin-inline: auto; background: var(--navy-2); border: 1px solid var(--line-d); border-radius: 24px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; align-items: center; }
.sys-chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: var(--navy); border: 1px solid var(--line-d); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sys-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s ease-in-out infinite; }
.sys-link { position: relative; width: 1px; height: 30px; background: rgba(247, 245, 239, .2); }
.sys-link i { position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: travel 2.4s ease-in-out infinite; }
.sys-core { width: 100%; display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: var(--navy); border: 1px solid rgba(212, 175, 55, .5); border-radius: var(--r-l); }
.sys-mark { width: 26px; height: 38px; color: var(--cream); flex: none; }
.sys-core div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sys-core strong { font-family: var(--f-display); font-size: 1.1rem; }
.sys-core span { font-size: .875rem; color: var(--muted-d); }
.sys-mods { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sys-mods li { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--navy); border-radius: var(--r-m); font-size: .85rem; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line-d); animation: lit 7.2s ease-in-out infinite; }
.sys-mods li .ic { color: var(--gold); width: 22px; height: 22px; }
.sys-mods li:nth-child(1) { animation-delay: 0s; }
.sys-mods li:nth-child(2) { animation-delay: 1.2s; }
.sys-mods li:nth-child(3) { animation-delay: 2.4s; }
.sys-mods li:nth-child(4) { animation-delay: 3.6s; }
.sys-mods li:nth-child(5) { animation-delay: 4.8s; }
.sys-mods li:nth-child(6) { animation-delay: 6s; }
@keyframes lit { 0%, 18%, 100% { box-shadow: inset 0 0 0 1px var(--line-d); transform: none; } 4%, 12% { box-shadow: inset 0 0 0 1px var(--gold); transform: translateY(-3px); } }
@keyframes travel { 0% { transform: translateY(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .5); } 50% { box-shadow: 0 0 0 6px rgba(212, 175, 55, 0); } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-d); padding-block: 36px 56px; }
.facts li { display: flex; flex-direction: column; gap: 8px; padding-right: 28px; }
.facts strong { font-family: var(--f-display); font-size: 1.05rem; }
.facts span { font-size: .95rem; line-height: 1.55; color: var(--muted-d); }

/* Services ---------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 32px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.card p { color: var(--muted); font-size: 1rem; flex: 1; }
.svc:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 24px 48px -28px rgba(11, 16, 32, .35); }
.svc-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--gold); display: grid; place-items: center; transition: background-color .3s var(--ease), color .3s var(--ease), transform .35s var(--ease); }
.svc-ic .ic { width: 24px; height: 24px; }
.svc:hover .svc-ic { background: var(--gold); color: var(--navy); transform: rotate(-6deg); }
.svc .link { align-self: flex-start; }

/* System / journey -------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.split-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
#system .split-copy { position: sticky; top: calc(var(--header-h) + 32px); }

.journey { background: var(--navy-2); border: 1px solid var(--line-d); border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.journey-title { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); margin-bottom: 12px; }
.step { border-top: 1px solid var(--line-d); position: relative; }
.step-btn { position: relative; width: 100%; display: flex; align-items: center; gap: 18px; text-align: left; background: none; border: 0; padding: 18px 0; }
.step-num { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: .8rem; color: var(--gold); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .4); transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }
.step-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.step-text b { font-weight: 600; font-size: 1rem; line-height: 1.4; transition: color .3s var(--ease); }
.step-text em { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); opacity: .85; }
.step:not(.is-active) .step-text b { color: rgba(247, 245, 239, .62); }
.step:not(.is-active):hover .step-text b { color: var(--cream); }
.step.is-active .step-num { background: var(--gold); color: var(--navy); box-shadow: none; }
.step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.step-body > div { overflow: hidden; }
.step-body p { padding: 0 0 20px 58px; color: var(--muted-d); font-size: .975rem; }
.step.is-active .step-body { grid-template-rows: 1fr; }
.step-btn::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.journey.is-playing .step.is-active .step-btn::after { animation: fill var(--dur, 5s) linear forwards; }
.journey.is-paused .step.is-active .step-btn::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* Process ----------------------------------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.timeline li { position: relative; padding-top: 38px; display: flex; flex-direction: column; gap: 10px; }
.timeline li::before { content: ""; position: absolute; top: 7px; left: 16px; right: -28px; height: 1px; background: var(--line-l); }
.timeline li:last-child::before { display: none; }
.t-dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 2px var(--navy); transition: background-color .3s var(--ease), transform .3s var(--ease); }
.timeline li:hover .t-dot { background: var(--gold); transform: scale(1.25); }
.t-num { font-family: var(--f-display); font-weight: 800; font-size: .8rem; color: var(--gold-ink); }
.timeline p { color: var(--muted); font-size: .975rem; }
.timeline .t-out { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line-l); color: var(--navy); font-weight: 700; font-size: .95rem; }
.t-out small { display: block; margin-bottom: 2px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-l); }

/* Work -------------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.work-card:hover { transform: translateY(-6px); border-color: rgba(212, 175, 55, .55); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .8); }
.shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0E1428; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover .shot img { transform: scale(1.04); }
.shot-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; background: linear-gradient(135deg, #131B3A, #0E1428); }
.shot-fallback .bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(11, 16, 32, .7); }
.shot-fallback .bar i { width: 8px; height: 8px; border-radius: 50%; background: #2A3358; }
.shot-fallback .bar em { margin-left: 10px; font-style: normal; font-size: .75rem; color: var(--muted-d); }
.shot-fallback strong { flex: 1; display: grid; place-items: center; font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--cream); }
.work-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 28px; flex: 1; }
.work-body p { color: var(--muted); font-size: .975rem; }
.work-body .link { margin-top: auto; align-self: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .72rem; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: rgba(212, 175, 55, .12); color: #E3C466; }
.work-next { background: transparent; border: 1px dashed rgba(212, 175, 55, .5); justify-content: center; }
.work-next:hover { background: rgba(212, 175, 55, .05); }
.work-next-in { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px; }
.work-next-in p { color: var(--muted-d); }
.pill { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--navy); }

/* Pricing ----------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 32px; align-items: start; }
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cap { display: flex; align-items: flex-start; gap: 14px; text-align: left; padding: 18px 20px; background: var(--white); border: 1px solid var(--line-l); border-radius: var(--r-m); color: var(--navy); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.cap:hover { border-color: var(--navy); transform: translateY(-2px); }
.box { flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--white); box-shadow: inset 0 0 0 2px var(--navy); display: grid; place-items: center; color: var(--gold); transition: background-color .25s var(--ease); margin-top: 2px; }
.box .ic { width: 14px; height: 14px; stroke-width: 3.2; transform: scale(0); transition: transform .3s var(--ease); }
.cap.is-on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.cap.is-on .box { background: var(--navy); }
.cap.is-on .box .ic { transform: scale(1); }
.cap-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cap-t b { font-size: 1rem; }
.cap-t em { font-style: normal; font-size: .875rem; line-height: 1.45; color: var(--muted-l); }

.quote { position: sticky; top: calc(var(--header-h) + 24px); background: var(--navy); color: var(--cream); border-radius: 24px; padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.quote-label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); }
.quote-figure { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.05; color: var(--gold); font-variant-numeric: tabular-nums; }
.quote-scope { display: flex; flex-direction: column; gap: 10px; padding-block: 16px; border-block: 1px solid var(--line-d); }
.quote-count { font-size: .85rem; font-weight: 700; color: var(--muted-d); }
.quote-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 32px; }
.quote-tags li { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(247, 245, 239, .09); animation: pop .35s var(--ease); }
.quote-note { font-size: .875rem; line-height: 1.6; color: var(--muted-d); }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* About ------------------------------------------------------------------- */
.about-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: start; margin-bottom: 56px; }
.about-text { display: flex; flex-direction: column; gap: 18px; color: var(--muted-d); font-size: 1.0625rem; line-height: 1.75; }
.about-text b { color: var(--cream); }
.ur { font-family: var(--f-ur); font-size: 1.15em; color: var(--gold); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card-d { background: var(--navy-2); border: 1px solid var(--line-d); border-radius: var(--r-l); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: border-color .35s var(--ease), transform .35s var(--ease); }
.card-d:hover { border-color: rgba(212, 175, 55, .5); transform: translateY(-4px); }
.card-d p { color: var(--muted-d); font-size: .975rem; }
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line-d); }
.stack dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.stack dd { font-size: .95rem; line-height: 1.55; color: #D9DDEB; }

/* FAQ --------------------------------------------------------------------- */
.split-faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
.faq { border-bottom: 1px solid var(--line-l); }
.faq-item { border-top: 1px solid var(--line-l); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; text-align: left; background: none; border: 0; font-family: var(--f-body); font-size: 1.1rem; font-weight: 700; color: var(--navy); transition: color .25s var(--ease); }
.faq-q:hover { color: var(--gold-ink); }
.faq-i { position: relative; flex: none; width: 18px; height: 18px; }
.faq-i::before, .faq-i::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.faq-i::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-i::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 48px 24px 0; color: var(--muted-l); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* Contact ----------------------------------------------------------------- */
.split-contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.contact-list { width: 100%; margin-top: 12px; border-bottom: 1px solid var(--line-d); }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line-d); }
.contact-list .ic { color: var(--gold); width: 22px; height: 22px; margin-top: 3px; }
.contact-list small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
.contact-list a, .contact-list span { font-size: 1.125rem; font-weight: 600; transition: color .25s var(--ease); }
.contact-list a:hover { color: var(--gold); }

.form-card { background: var(--cream); color: var(--navy); border-radius: 24px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.form-card form { display: flex; flex-direction: column; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: .8125rem; font-weight: 700; padding: 0; margin-bottom: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; height: 50px; padding: 0 16px; background: var(--white); color: var(--navy); border: 1px solid #CFCABB; border-radius: var(--r-m); font: inherit; font-size: 1rem; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.field textarea { height: auto; padding: 14px 16px; line-height: 1.55; resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(212, 175, 55, .35); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.err { min-height: 0; font-size: .8125rem; color: var(--danger); font-weight: 600; }
.err:empty { display: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; padding: 10px 16px; background: var(--white); border: 1px solid #CFCABB; border-radius: 999px; font-size: .875rem; font-weight: 600; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.chip input:active + span { transform: scale(.96); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; line-height: 1.55; color: var(--muted-l); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check-box { flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--white); box-shadow: inset 0 0 0 2px var(--navy); display: grid; place-items: center; color: var(--gold); transition: background-color .25s var(--ease); margin-top: 1px; }
.check-box .ic { width: 14px; height: 14px; stroke-width: 3.2; transform: scale(0); transition: transform .3s var(--ease); }
.check input:checked + .check-box { background: var(--navy); }
.check input:checked + .check-box .ic { transform: scale(1); }
.check input:focus-visible + .check-box { outline: 2px solid var(--gold); outline-offset: 3px; }
.check a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.field.consent { position: relative; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 0; font-size: .9rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(247, 245, 239, .3); border-top-color: var(--cream); border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: .7; }
.btn[disabled] { pointer-events: none; opacity: .9; }
@keyframes spin { to { transform: rotate(360deg); } }

.success, .fallback { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 0; animation: pop .5s var(--ease); }
[hidden] { display: none !important; }
.success p, .fallback p { color: var(--muted-l); }
.success-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.success-ic .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--deep); color: var(--muted-d); padding-block: 64px 32px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.foot-brand p { max-width: 20rem; line-height: 1.6; }
.foot-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-col h4 { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); margin-bottom: 4px; }
.foot-col a { transition: color .25s var(--ease); }
.foot-col a:hover { color: var(--cream); }
.social { display: flex; gap: 10px; margin-top: 4px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(247, 245, 239, .18); transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.social a:hover { background: var(--gold); color: var(--navy); box-shadow: none; transform: translateY(-3px); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #1C2440; font-size: .875rem; }
.foot-legal { display: flex; gap: 24px; }
.foot-legal a:hover { color: var(--cream); }

.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--cream); color: var(--navy); border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .25s var(--ease); }
.wa-float .ic { width: 22px; height: 22px; color: #1B7F4A; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--white); transform: translateY(-3px); }

/* Legal and 404 pages ----------------------------------------------------- */
.page-bar { background: var(--navy); padding-block: 20px; border-bottom: 1px solid var(--line-d); }
.page-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.back { font-weight: 700; font-size: .9rem; color: var(--muted-d); display: inline-flex; gap: 8px; align-items: center; transition: color .25s var(--ease); }
.back:hover { color: var(--cream); }
.back .ic { transform: rotate(180deg); }
.legal { background: var(--cream); color: var(--navy); padding-block: clamp(48px, 7vw, 96px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.legal .meta { color: var(--muted-l); margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: #2B3148; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px; background: var(--navy); }
.notfound div { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 34rem; }
.notfound .big { font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--gold); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .cards, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .timeline li:nth-child(3)::before { display: none; }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  .hero-grid, .split, .split-faq, .split-contact, .pricing, .about-top { grid-template-columns: minmax(0, 1fr); }
  #system .split-copy, .quote { position: static; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .sys { margin-inline: 0; max-width: 560px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .cards, .work-grid, .caps { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .timeline li { padding: 0 0 0 36px; }
  .timeline li::before { top: 22px; bottom: -28px; left: 7px; right: auto; width: 1px; height: auto; }
  .timeline li:nth-child(3)::before { display: block; }
  .timeline li:last-child::before { display: none; }
  .stack, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
  .sys-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-body p { padding-left: 0; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .brand-word { font-size: 1.1rem; }
}

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
