/* ==========================================================================
   Prism Elite — v2 "Nightfall Spectrum"
   Dark, luminous, gradient-rich. The prism concept turned up: aurora light,
   flowing spectrum type, glowing glass. Committed dark aesthetic.
   Plain CSS, no build step.
   ========================================================================== */

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  color-scheme: dark;

  --bg:       #06060B;   /* deep near-black, hint of indigo */
  --bg-2:     #0B0B14;
  --panel:    rgba(255,255,255,0.035);
  --panel-2:  rgba(255,255,255,0.06);
  --card:     #0E0E17;   /* opaque card base */
  --ink:      #F5F4FB;
  --ink-2:    #B4B1C6;
  --muted:    #77748C;
  --line:     rgba(255,255,255,0.09);
  --line-2:   rgba(255,255,255,0.16);

  /* Vivid, luminous spectrum (brighter than v1 for glow on dark) */
  --sp-1: #FF5D73;  /* rose   */
  --sp-2: #FF9052;  /* orange */
  --sp-3: #FFD152;  /* gold   */
  --sp-4: #46E08A;  /* green  */
  --sp-5: #29D3EE;  /* cyan   */
  --sp-6: #5B8DEF;  /* blue   */
  --sp-7: #8B7BF0;  /* indigo */
  --sp-8: #C471ED;  /* violet */

  --spectrum: linear-gradient(90deg,
    var(--sp-1), var(--sp-2), var(--sp-3), var(--sp-4),
    var(--sp-5), var(--sp-6), var(--sp-7), var(--sp-8));
  /* Signature cohesive gradient — "prism at night" */
  --aurora: linear-gradient(100deg, #8B7BF0, #C471ED 38%, #FF6B81 72%, #FF9052);
  --aurora-cool: linear-gradient(120deg, #29D3EE, #5B8DEF 45%, #8B7BF0 100%);

  --radius:    16px;
  --radius-lg: 26px;
  --radius-sm: 11px;
  --maxw:      1180px;

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Atmosphere: drifting aurora + grain ---------- */
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; mix-blend-mode: screen; will-change: transform; }
.blob.b1 { width: 620px; height: 620px; top: -220px; right: -140px; background: radial-gradient(circle, rgba(139,123,240,0.9), transparent 62%); animation: drift1 22s ease-in-out infinite; }
.blob.b2 { width: 540px; height: 540px; top: -80px; right: 180px;   background: radial-gradient(circle, rgba(196,113,237,0.8), transparent 62%); animation: drift2 26s ease-in-out infinite; }
.blob.b3 { width: 520px; height: 520px; top: 44%; left: -180px;      background: radial-gradient(circle, rgba(41,211,238,0.55), transparent 62%);  animation: drift3 30s ease-in-out infinite; }
.blob.b4 { width: 480px; height: 480px; bottom: -160px; right: -80px; background: radial-gradient(circle, rgba(255,109,129,0.5), transparent 62%);  animation: drift1 28s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,50px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(40px,70px) scale(0.92); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px,-40px) scale(1.1); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Mouse spotlight (set via JS on the hero) */
.spotlight { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(340px 340px at var(--mx, 70%) var(--my, 30%), rgba(139,123,240,0.16), transparent 70%);
  opacity: 0; transition: opacity .6s var(--ease); }
.hero:hover .spotlight { opacity: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(139,123,240,0.32); color: #fff; }
:focus-visible { outline: 2px solid var(--sp-7); outline-offset: 3px; border-radius: 4px; }

.wrap { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Top spectrum bar with a travelling shimmer */
.brandbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--spectrum); background-size: 200% 100%; animation: barflow 6s linear infinite; }
@keyframes barflow { to { background-position: 200% 0; } }

/* ---------- Type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow .tick { width: 24px; height: 2px; border-radius: 2px; background: var(--spectrum); box-shadow: 0 0 12px rgba(196,113,237,0.7); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }

.gtext { background: linear-gradient(100deg, var(--sp-8), var(--sp-1) 30%, var(--sp-3) 50%, var(--sp-5) 70%, var(--sp-7)); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 9s linear infinite; }
@keyframes flow { to { background-position: 220% center; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; line-height: 1; letter-spacing: -0.01em; padding: 16px 26px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: transform .3s var(--ease), box-shadow .35s var(--ease), border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { position: relative; color: #14091a; background: var(--aurora); background-size: 160% 160%; box-shadow: 0 14px 40px -12px rgba(196,113,237,0.6), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 22px 55px -12px rgba(196,113,237,0.8), inset 0 1px 0 rgba(255,255,255,0.45); }
.btn-ghost { color: var(--ink); background: var(--panel); border-color: var(--line-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); background: var(--panel-2); }

.arrow-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); transition: gap .25s var(--ease), color .25s var(--ease); }
.arrow-link svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.arrow-link:hover { color: var(--sp-8); }
.arrow-link:hover svg { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px 0; transition: padding .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.site-header.scrolled { padding: 10px 0; background: rgba(6,6,11,0.6); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand .mark { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 0 10px rgba(139,123,240,0.5)); }
.brand .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.brand .wordmark em { font-style: normal; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.94rem; font-weight: 500; color: var(--ink-2); position: relative; transition: color .2s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--spectrum); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { padding: 9px 18px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line-2); color: var(--ink) !important; font-weight: 600; background: var(--panel); transition: border-color .2s var(--ease), background .2s var(--ease); }
.nav-cta::after { display: none; }
.nav-cta:hover { border-color: var(--sp-7); background: var(--panel-2); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 2; padding: clamp(44px, 8vw, 104px) 0 clamp(40px, 6vw, 76px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero-copy { max-width: 35rem; }
.hero .eyebrow { margin-bottom: 26px; }
.hero .status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 26px; }
.hero .status-pill .live { width: 7px; height: 7px; border-radius: 50%; background: var(--sp-4); box-shadow: 0 0 0 0 rgba(70,224,138,0.6); animation: pulse 2.4s ease-out infinite; }
.hero h1 { font-size: clamp(3.2rem, 9.4vw, 6.4rem); line-height: 0.92; letter-spacing: -0.04em; margin: 0 0 26px; text-wrap: balance; font-optical-sizing: auto; }
.hero .lede { font-size: clamp(1.1rem, 2.3vw, 1.32rem); line-height: 1.55; color: var(--ink-2); max-width: 40ch; margin: 0 0 36px; }
.hero .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero .hero-foot { margin: 32px 0 0; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero .hero-foot .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sp-7); }

/* Prism visual */
.hero-media { position: relative; }
.prism-stage { position: relative; width: 100%; aspect-ratio: 5 / 4.4; }
.prism-stage::before { content: ""; position: absolute; inset: -8% -6% -18% 2%; z-index: 0; background: radial-gradient(58% 46% at 62% 46%, rgba(139,123,240,0.28), transparent 66%); filter: blur(12px); }
.prism-stage svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; display: block; }

/* ---------- Sections ---------- */
section { position: relative; z-index: 2; }
/* Contain decorative glows (e.g. the spinning .pcard-wrap::before halo) so their
   rotating/blurred bounding box can't push document width and expand the mobile
   layout viewport — which otherwise destabilises touch scrolling. overflow-x:clip
   clips paint on x only: it does not create a scroll container or affect the y-axis. */
.section-pad { padding: clamp(72px, 11vw, 150px) 0; overflow-x: clip; }
.section-head { max-width: 60ch; margin-bottom: clamp(38px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0; text-wrap: balance; font-optical-sizing: auto; }

/* ---------- Company ---------- */
.company-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.company-lead p { font-family: var(--font-display); font-optical-sizing: auto; font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 500; line-height: 1.24; letter-spacing: -0.02em; color: var(--ink); margin: 0; text-wrap: pretty; }
.company-lead p .soft { color: var(--muted); }
.company-body p { color: var(--ink-2); margin: 0 0 18px; max-width: 46ch; }
.company-body p strong { color: var(--ink); font-weight: 600; }
.company-body .founder { display: inline-flex; align-items: center; gap: 13px; margin-top: 8px; padding-top: 26px; border-top: 1px solid var(--line); }
.company-body .founder .avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #14091a; background: var(--aurora); box-shadow: 0 8px 24px -8px rgba(196,113,237,0.7); }
.company-body .founder .who { line-height: 1.3; }
.company-body .founder .who b { font-weight: 600; color: var(--ink); }
.company-body .founder .who span { display: block; font-size: 0.86rem; color: var(--muted); }

/* Glowing stat cards */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(52px, 6vw, 84px); }
.stat { position: relative; padding: clamp(26px, 3vw, 38px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); overflow: hidden; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.stat::before { content: ""; position: absolute; top: -50%; left: -20%; width: 90%; height: 120%; background: radial-gradient(circle, var(--glow, rgba(139,123,240,0.4)), transparent 66%); opacity: 0.6; filter: blur(24px); transition: opacity .3s var(--ease); pointer-events: none; }
.stat:hover { transform: translateY(-5px); border-color: var(--line-2); }
.stat:hover::before { opacity: 1; }
.stat .k { position: relative; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.stat .v { position: relative; font-family: var(--font-display); font-optical-sizing: auto; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.stat .v small { font-size: 0.86rem; font-family: var(--font-body); font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 5px; }
.stat.s1 { --glow: rgba(255,145,82,0.45); } .stat.s2 { --glow: rgba(41,211,238,0.4); } .stat.s3 { --glow: rgba(196,113,237,0.5); }

/* ---------- Portfolio ---------- */
.pcard-wrap { position: relative; }
.pcard-wrap::before { content: ""; position: absolute; inset: -60px; z-index: 0; background: conic-gradient(from 0deg, var(--sp-6), var(--sp-8), var(--sp-1), var(--sp-3), var(--sp-5), var(--sp-6)); filter: blur(80px); opacity: 0.28; border-radius: 50%; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pcard { position: relative; z-index: 1; overflow: hidden; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9); }
.pcard-body { padding: clamp(32px, 4vw, 56px); }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); }
.tag.live { color: var(--sp-4); border-color: color-mix(in srgb, var(--sp-4) 45%, transparent); box-shadow: 0 0 20px -6px rgba(70,224,138,0.6); }
.pcard h3 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); letter-spacing: -0.035em; line-height: 1; margin: 0 0 6px; font-optical-sizing: auto; }
.pcard .pcard-sub { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.pcard p { color: var(--ink-2); margin: 0 0 30px; max-width: 44ch; }
.pcard-visual { position: relative; border-left: 1px solid var(--line); background: radial-gradient(80% 80% at 68% 24%, rgba(91,141,239,0.28), transparent 60%), radial-gradient(70% 70% at 28% 88%, rgba(196,113,237,0.26), transparent 62%), #0A0A12; display: grid; place-items: center; min-height: 260px; overflow: hidden; }
.pcard-visual .radar { width: clamp(120px, 20vw, 200px); height: auto; }
.pcard-visual .ping { transform-box: fill-box; transform-origin: center; }
.pcard-visual .ping.p1 { animation: ping 3.2s ease-out infinite; }
.pcard-visual .ping.p2 { animation: ping 3.2s ease-out infinite .8s; }
.pcard-visual .ping.p3 { animation: ping 3.2s ease-out infinite 1.6s; }
@keyframes ping { 0% { opacity: .7; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.8); } }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 44px; }
.contact h2 { font-family: var(--font-display); font-optical-sizing: auto; font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.04em; line-height: 0.98; margin: 18px 0 0; text-wrap: balance; }
.contact .lede { color: var(--ink-2); margin: 22px 0 0; max-width: 40ch; }
.contact .email-link { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: -0.02em; padding: 4px 0; transition: color .25s var(--ease); }
.contact .email-link .u { border-bottom: 2px solid var(--line-2); padding-bottom: 4px; transition: border-color .25s var(--ease); }
.contact .email-link:hover { color: var(--sp-8); }
.contact .email-link:hover .u { border-color: var(--sp-8); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(52px, 6vw, 76px) 0 46px; position: relative; z-index: 2; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.foot-brand { max-width: 30ch; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.foot-cols { display: flex; gap: clamp(40px, 8vw, 96px); flex-wrap: wrap; }
.foot-col h4 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 500; }
.foot-col a, .foot-col span { display: block; font-size: 0.94rem; color: var(--ink-2); margin-bottom: 10px; transition: color .2s var(--ease); }
.foot-col a:hover { color: var(--ink); }
.foot-legal { margin-top: clamp(40px, 5vw, 60px); padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: var(--muted); }
.foot-legal .reg { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; }

/* ---------- Reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .07s; } .js .reveal.d2 { transition-delay: .15s; } .js .reveal.d3 { transition-delay: .23s; } .js .reveal.d4 { transition-delay: .31s; }

/* Hero load-in */
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > .status-pill { animation-delay: .05s; }
.hero-copy > h1 { animation-delay: .14s; }
.hero-copy > .lede { animation-delay: .26s; }
.hero-copy > .cta-row { animation-delay: .38s; }
.hero-copy > .hero-foot { animation-delay: .48s; }
.hero-media { animation: rise 1.2s var(--ease) both; animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Prism animation ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(70,224,138,0.55); } 70% { box-shadow: 0 0 0 8px rgba(70,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(70,224,138,0); } }
.beam-in { animation: beam-pulse 4.5s var(--ease) infinite; }
@keyframes beam-pulse { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
.ray { transform-box: fill-box; transform-origin: left center; animation: ray-shimmer 5s ease-in-out infinite; }
.ray-0 { animation-delay: 0s; } .ray-1 { animation-delay: .16s; } .ray-2 { animation-delay: .32s; } .ray-3 { animation-delay: .48s; }
.ray-4 { animation-delay: .64s; } .ray-5 { animation-delay: .8s; } .ray-6 { animation-delay: .96s; } .ray-7 { animation-delay: 1.12s; }
@keyframes ray-shimmer { 0%,100% { opacity: .82; } 50% { opacity: 1; } }
.prism-body { animation: prism-float 9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes prism-float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(-1deg); } }
.core-burst { transform-box: fill-box; transform-origin: center; animation: burst 4.5s ease-in-out infinite; }
@keyframes burst { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .95; transform: scale(1.15); } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: clamp(20px, 6vw, 40px); }
  .hero-media { order: 2; max-width: 500px; width: 100%; margin: 0 auto; }
  .company-grid { grid-template-columns: 1fr; gap: 34px; }
  .facts { grid-template-columns: 1fr; }
  .pcard { grid-template-columns: 1fr; }
  .pcard-visual { border-left: 0; border-top: 1px solid var(--line); order: -1; min-height: 220px; }
  .contact-inner { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  /* Compact nav so the header row can't overflow the viewport on small phones. */
  .nav { gap: 12px; }
  .nav-links { gap: 12px; }
  .nav-links .nav-hide { display: none; }
  .nav-cta { padding: 8px 11px; font-size: 0.875rem; }
  .brand .mark { width: 28px; height: 28px; }
  .brand .wordmark { font-size: 1.04rem; }
  .foot-top { flex-direction: column; }
  .btn { width: 100%; }
  .hero .cta-row { width: 100%; }
  .pcard-wrap::before { inset: -30px; filter: blur(50px); }
}
@media (max-width: 400px) {
  .nav-links .nav-links-more { display: none; }
}
@media (max-width: 359px) {
  /* Tiniest screens: drop the wordmark (keep the logo mark) so the nav still fits. */
  .brand .wordmark { display: none; }
}

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