/* ============================================================
   Deltara Dynamics — design system
   Dark, hairline typography, fuzzy gradient ambience
   ============================================================ */

:root {
  --bg: #050807;        /* near-black, faint green */
  --bg-2: #070b09;
  --ink: #eaf4ee;
  --ink-dim: #9fb2a8;
  --ink-faint: #62766c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-2: rgba(255, 255, 255, 0.055);

  /* brand gradient stops — BCG forest green, brightened for dark, no teal */
  --c-violet: #16a34a;  /* green 600 */
  --c-blue: #22c55e;    /* green 500 */
  --c-cyan: #4ade80;    /* green 400 (bright accent) */
  --c-magenta: #a3e635; /* lime-leaf accent */

  /* grassy green glows — deliberately no cyan/turquoise */
  --glow-1: #22c55e;
  --glow-2: #16a34a;
  --glow-3: #4ade80;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Wide, light, squashed display face — mimics the logo wordmark */
.hero__title, .section__title, .cta__title, .work__item h3,
.card h3, .step h3, .nav__word {
  font-family: "Archivo Expanded", "Archivo", sans-serif;
  font-stretch: expanded;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Ambient fuzzy gradient field ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 70% -10%, rgba(34, 197, 94, 0.08), transparent 60%),
    radial-gradient(1000px 700px at 10% 20%, rgba(22, 163, 74, 0.08), transparent 55%),
    radial-gradient(900px 600px at 90% 90%, rgba(132, 204, 22, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.32;
  will-change: transform;
}
.blob--1 {
  width: 640px; height: 640px;
  top: -160px; left: -120px;
  background: radial-gradient(circle at 30% 30%, var(--glow-1), transparent 70%);
  animation: drift1 26s var(--ease) infinite alternate;
}
.blob--2 {
  width: 560px; height: 560px;
  top: 5%; right: -140px;
  background: radial-gradient(circle at 60% 40%, var(--glow-2), transparent 70%);
  animation: drift2 32s var(--ease) infinite alternate;
}
.blob--3 {
  width: 720px; height: 720px;
  bottom: -260px; left: 30%;
  background: radial-gradient(circle at 50% 50%, var(--glow-3), transparent 72%);
  opacity: 0.42;
  animation: drift3 38s var(--ease) infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(120px, 80px, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-100px, 120px, 0) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(-140px, -80px, 0) scale(1.2); } }

/* faint grid + film grain overlays */
.grid { display: none; }
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
}

/* ---------- Shared ---------- */
.grad-text {
  background: linear-gradient(100deg, var(--c-cyan), var(--c-blue) 40%, var(--c-violet) 75%, var(--c-magenta));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.94rem; font-weight: 400; letter-spacing: 0.02em;
  padding: 0.85em 1.6em; border-radius: 100px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn--solid {
  background: linear-gradient(100deg, #1eb453, #178f47);
  color: #f5fcf8;
  box-shadow: 0 8px 40px -12px rgba(28, 160, 74, 0.55);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 50px -12px rgba(28, 160, 74, 0.75); }
.btn--ghost {
  background: var(--glass);
  border-color: var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: var(--glass-2); border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 78px 32px;   /* uniform vertical rhythm */
}
/* land anchor jumps just below the fixed nav (section padding adds the breathing room) */
main section[id], .clients[id] { scroll-margin-top: 72px; }
.section__head { max-width: 720px; margin-bottom: 64px; }
.section-kicker {
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(234, 244, 238, 0.72); font-weight: 500; margin-bottom: 20px;
}
.section__title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 200; line-height: 1.12; letter-spacing: -0.02em;
}
.section__sub {
  margin-top: 20px; font-size: 1.08rem; color: var(--ink-dim); font-weight: 300;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(4, 18, 11, 0.65);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 30px; width: auto; opacity: 0.95; }
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 0.92rem; color: var(--ink-dim); font-weight: 300;
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { font-size: 0.88rem; padding: 0.6em 1.3em; }

/* mobile hamburger + dropdown */
.nav__toggle { display: none; width: 34px; height: 30px; padding: 7px 5px; background: transparent;
  border: none; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav__toggle span { display: block; height: 1.6px; width: 100%; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(6.7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-6.7px) rotate(-45deg); }
.nav__mobile { display: none; flex-direction: column; padding: 6px 28px 18px;
  background: rgba(5, 12, 9, 0.6); backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--line); }
.nav__mobile a { padding: 14px 2px; font-size: 1rem; font-weight: 300; color: var(--ink-dim);
  border-bottom: 1px solid var(--line); }
.nav__mobile a:last-child { border-bottom: none; color: var(--c-cyan); }
.nav.open { background: rgba(5, 12, 9, 0.6); backdrop-filter: blur(20px) saturate(140%); }
.nav.open .nav__mobile { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 92svh;
  display: flex; align-items: center;
  padding: 120px 32px 64px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* in landscape, the video hero fills the viewport so nothing below peeks in */
@media (orientation: landscape) { .hero { min-height: 100svh; } }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,10,7,0.7) 0%, rgba(4,10,7,0.44) 55%, rgba(4,10,7,0.38) 100%),
    linear-gradient(180deg, rgba(4,10,7,0.24) 0%, rgba(5,8,7,0.55) 62%, var(--bg) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__copy { max-width: 720px; }
.hero__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 24px; align-items: center;
}
.hero__art {
  position: relative;
  aspect-ratio: 1.43 / 1;         /* JS refines this to the logo's exact ratio */
  width: 100%;
  max-width: 760px;
  min-height: 300px;              /* fallback so it never collapses */
  margin-left: auto;
  cursor: grab;
  background: none;   /* transparent so the dd sits over the video, not in a box */
}
.hero__art:active { cursor: grabbing; }
.hero__art canvas { display: block; width: 100%; height: 100%; }
.hero__art-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint); opacity: 0.5; pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.hero__art:hover .hero__art-hint { opacity: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim); font-weight: 400;
  padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 100px;
  background: var(--glass); backdrop-filter: blur(10px);
  margin-bottom: 34px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-cyan); box-shadow: 0 0 12px 2px var(--c-cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 100; line-height: 1.05; letter-spacing: -0.035em;
  max-width: 22ch;
}
.hero__nowrap { white-space: nowrap; } /* keep "are built to last." on one line */
.hero__lede {
  margin-top: 30px; max-width: 60ch;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ink-dim); font-weight: 300;
}
.hero__actions { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats {
  margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 860px;
  border-top: 1px solid var(--line); padding-top: 32px;
}
.stat__num {
  display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 200;
  letter-spacing: -0.02em; line-height: 1;
}
.stat__unit { color: var(--c-blue); font-weight: 300; }
.stat__label { display: block; margin-top: 5px; font-size: 0.92rem; color: rgba(234, 244, 238, 0.72); }

/* ---------- Marquee ---------- */
.marquee-wrap { max-width: var(--maxw); margin: 0 auto; padding: 40px 32px 20px; text-align: center; }
.marquee-wrap .section-kicker { margin-bottom: 28px; color: rgba(234, 244, 238, 0.72); }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: inline-flex; gap: 64px; white-space: nowrap;
  animation: scroll 40s linear infinite;
}
.marquee__track span {
  font-size: 1.25rem; font-weight: 200; color: rgba(234, 244, 238, 0.72);
  letter-spacing: 0.02em;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Clients ---------- */
.clients {
  max-width: var(--maxw); margin: 0 auto; padding: 78px 32px 52px; text-align: center;
}
.clients .section-kicker { margin-bottom: 34px; color: rgba(234, 244, 238, 0.72); }
.clients__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 32px 24px; align-items: center; justify-items: center;
}
.clients__logo {
  max-height: 38px; max-width: 122px; width: auto; object-fit: contain;
  opacity: 0.9;                       /* original brand colors, as-is */
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.clients__logo { transition: opacity 0.35s var(--ease), filter 0.35s var(--ease); }
.clients__logo:hover { opacity: 1; filter: drop-shadow(0 0 9px rgba(74, 222, 128, 0.55)); }
/* EGA has a black matte; screen blending makes it disappear on the dark section. */
.clients__logo--ega { mix-blend-mode: screen; }
/* row-based scroll reveal (row delay set in JS) */
.clients__logo.cl-reveal { opacity: 0; transform: translateY(20px);
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease); }
.clients__logo.cl-reveal.in { opacity: 0.9; transform: none; }

/* ---------- Full-bleed film ---------- */
.film { width: 100%; margin: 8px 0 24px; }
.film__frame {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9; max-height: 78vh; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 42%, rgba(34,197,94,0.12), transparent 66%),
    linear-gradient(180deg, #071a10, #050807);
}
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.film__play {
  position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #04120b; border: none;
  background: linear-gradient(140deg, var(--c-cyan), var(--c-blue));
  box-shadow: 0 14px 55px -12px rgba(34,197,94,0.85);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.film__play:hover { transform: scale(1.08); }
.film__play svg { margin-left: 3px; }
.film__play.is-hidden { opacity: 0; pointer-events: none; transform: scale(0.6); }
@media (max-width: 620px) { .film__play { width: 64px; height: 64px; } }

/* ---------- Cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  position: relative;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(76,175,80,0.16), transparent 40%);
  opacity: 0; transition: opacity 0.5s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--glass-2); }
.card:hover::before { opacity: 1; }
.card__glyph {
  width: 72px; height: 72px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 14px;
  margin-bottom: 22px; background: rgba(255,255,255,0.02); overflow: hidden;
}
.glyph-canvas { display: block; width: 100%; height: 100%; }
.card h3 { font-size: 1.2rem; font-weight: 400; margin-bottom: 12px; letter-spacing: -0.01em; }
.card p { font-size: 0.96rem; color: var(--ink-dim); font-weight: 300; }

/* ---------- Platform ---------- */
.platform__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.ticks { list-style: none; margin: 28px 0 34px; display: grid; gap: 14px; }
.ticks li {
  position: relative; padding-left: 30px; color: var(--ink-dim); font-weight: 300;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 14px; height: 8px; border-left: 1.5px solid var(--c-cyan); border-bottom: 1.5px solid var(--c-cyan);
  transform: rotate(-45deg);
}
.panel {
  border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; overflow: hidden;
  background: #0c1512; backdrop-filter: blur(20px);
  box-shadow: 0 40px 90px -40px rgba(6, 78, 59, 0.55);
}
.panel__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.panel__bar span { width: 11px; height: 11px; border-radius: 50%; opacity: 0.68; }
.panel__bar span:nth-child(1) { background: #ff5f57; }
.panel__bar span:nth-child(2) { background: #febc2e; }
.panel__bar span:nth-child(3) { background: #28c840; }
.panel__bar em { margin-left: auto; font-style: normal; font-size: 0.8rem; color: #7f8c7a; letter-spacing: 0.04em; }
.panel__code {
  padding: 26px 24px; font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86rem; line-height: 1.9; color: #c2cdbc; overflow-x: auto;
}
.c-dim { color: #7f8c7a; }
.c-key { color: #86efac; }
.c-str { color: #c5e6a0; }
.c-num { color: #a5d66a; }
.c-ok { color: #86efac; }

/* ---------- Work ---------- */
#work .section__head { margin-bottom: 30px; }
.work { display: grid; gap: 0; border-top: 1px solid var(--line); }
.work__item { border-bottom: 1px solid var(--line); }

/* clickable header row */
.work__head {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  color: inherit; font: inherit;
  display: grid; grid-template-columns: 300px 1fr auto; gap: 56px; align-items: center;
  padding: 30px 0; transition: opacity 0.3s var(--ease);
}
.work__head h3 { transition: color 0.3s var(--ease); }
@media (hover: hover) {  /* only on real pointers — avoids sticky hover on touch */
  .work__head:hover h3 { color: var(--c-cyan); }
  .work__item.is-open .work__head:hover h3 { color: inherit; }  /* black once expanded */
}

/* +/− toggle */
.work__toggle { position: relative; width: 22px; height: 22px; flex: none; color: var(--c-cyan); }
.work__toggle::before, .work__toggle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease);
}
.work__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.work__item.is-open .work__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

/* collapsible body */
.work__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.work__item.is-open .work__body { grid-template-rows: 1fr; }
.work__body-inner {
  overflow: hidden;
  display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: stretch;
}
.work__item.is-open .work__body-inner { padding-bottom: 44px; }
.work__left { display: flex; flex-direction: column; justify-content: flex-start; gap: 20px; }
.work__industry {
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-cyan); font-weight: 600;
}
.work__signals {
  font-size: 0.8rem; letter-spacing: 0.03em; line-height: 1.75;
  color: rgba(234, 244, 238, 0.72);
}
.work__item h3 { font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 300; line-height: 1.3; letter-spacing: -0.01em; }
.work__desc { margin-top: 14px; font-size: 1rem; color: var(--ink); font-weight: 300; line-height: 1.65; }

/* ---- refined per-industry line animations (left column) ---- */
.work__anim { width: 100%; max-width: 272px; height: 66px; margin: 10px 0; color: var(--c-cyan); }
.wa { width: 100%; height: 100%; overflow: hidden; fill: none;
  stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 2.5px rgba(74, 222, 128, 0.22)); }
.wa .faint { opacity: 0.15; }
.wa .mid { opacity: 0.5; }

/* Marine — boats with tapered wakes on a flowing aerial current */
.wa-current { stroke-dasharray: 3 8; opacity: 0.16; animation: wa-flow 4s linear infinite; }
@keyframes wa-flow { to { stroke-dashoffset: -22; } }
.wa-boat { animation: wa-sail 8s linear infinite; }
.wa-boat.s2 { animation-duration: 6s; animation-delay: -2s; }
.wa-boat.s3 { animation-duration: 10s; animation-delay: -4.5s; opacity: 0.72; }
.wa-boat .bob { animation: wa-bob 3s ease-in-out infinite; }
.wa-boat.s2 .bob { animation-duration: 2.3s; }
.wa-boat.s3 .bob { animation-duration: 3.7s; }
@keyframes wa-sail { from { transform: translateX(-40px); } to { transform: translateX(322px); } }
@keyframes wa-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }

/* Transport — detailed trucks, spinning wheels, moving lane */
.wa-lane2 { stroke-dasharray: 9 9; opacity: 0.42; animation: wa-lane 0.5s linear infinite; }
@keyframes wa-lane { to { stroke-dashoffset: -18; } }
.wa-truck { animation: wa-drive 4.4s linear infinite; }
.wa-truck.k2 { animation-duration: 6.2s; animation-delay: -3.1s; opacity: 0.62; }
.wa-wheel { stroke-dasharray: 2.2 3.2; animation: wa-spin 0.5s linear infinite; }
@keyframes wa-spin { to { stroke-dashoffset: -11; } }
@keyframes wa-drive { from { transform: translateX(-50px); } to { transform: translateX(322px); } }

/* Beverage — bottles riding a conveyor with rollers */
.wa-roller { stroke-dasharray: 2.5 3.5; animation: wa-spin 0.45s linear infinite; }
.wa-bottle { animation: wa-belt 5s linear infinite; }
@keyframes wa-belt { from { transform: translateX(-18px); } to { transform: translateX(320px); } }

/* Oil & Gas — flowing fluid, scanning magnifier, pulsing anomaly */
.wa-fluid { stroke-dasharray: 2 6; opacity: 0.55; animation: wa-fluid 1.6s linear infinite; }
@keyframes wa-fluid { to { stroke-dashoffset: -24; } }
.wa-mag { animation: wa-scan 5s ease-in-out infinite alternate; }
@keyframes wa-scan { from { transform: translateX(4px); } to { transform: translateX(232px); } }
.wa-ping { transform-box: fill-box; transform-origin: center; animation: wa-ping 2s ease-out infinite; }
@keyframes wa-ping { 0% { opacity: .9; transform: scale(.3); } 70%,100% { opacity: 0; transform: scale(2.4); } }
.wa-anom { fill: #ff6b6b; stroke: none; transform-box: fill-box; transform-origin: center;
  animation: wa-pulse 1.6s ease-in-out infinite; }
@keyframes wa-pulse { 0%,100% { opacity: .3; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.25); } }

/* Consumer Goods — a map continuously plotting green data points */
.wa-grat { opacity: 0.12; }
.wa-coast { opacity: 0.2; }
.wa-dot { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: center;
  animation: wa-plot 6s ease-out infinite; }
@keyframes wa-plot {
  0%, 3%   { opacity: 0; transform: scale(0); }
  7%       { opacity: 1; transform: scale(1.4); }
  11%      { transform: scale(0.9); }
  88%      { opacity: 0.95; transform: scale(0.9); }
  100%     { opacity: 0; transform: scale(0.9); }
}

@media (prefers-reduced-motion: reduce) { .wa * { animation: none !important; } }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  padding: 30px 26px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--glass); backdrop-filter: blur(12px);
  transition: border-color 0.4s, background 0.4s;
}
.step:hover { border-color: var(--line-2); background: var(--glass-2); }
.step__no {
  display: block; font-size: 0.9rem; color: var(--c-violet); font-weight: 500;
  letter-spacing: 0.1em; margin-bottom: 22px;
}
.step h3 { font-size: 1.12rem; font-weight: 400; margin-bottom: 10px; }
.step p { font-size: 0.94rem; color: var(--ink-dim); font-weight: 300; }

/* ---------- CTA ---------- */
.cta { padding-bottom: 40px; }  /* tighten gap to the footer */
.cta__card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 28px;
  padding: 80px 48px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  backdrop-filter: blur(16px);
}
.cta__glow {
  position: absolute; inset: -2px; z-index: -1;
  background: radial-gradient(600px 300px at 50% -20%, rgba(34,197,94,0.4), transparent 60%);
  filter: blur(40px);
}
.cta__title { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 100; letter-spacing: -0.03em; line-height: 1.1; }
.cta__sub { margin: 20px auto 0; max-width: 52ch; color: var(--ink-dim); font-weight: 300; font-size: 1.08rem; }
.cta__form {
  margin: 40px auto 0; max-width: 480px;
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.cta__form input {
  flex: 1; min-width: 240px;
  padding: 0.9em 1.3em; border-radius: 100px;
  border: 1px solid var(--line-2); background: rgba(0,0,0,0.3); color: var(--ink);
  font-family: inherit; font-size: 0.96rem; font-weight: 300;
}
.cta__form input::placeholder { color: var(--ink-faint); }
.cta__form input:focus { outline: none; border-color: var(--c-blue); }
.cta__form .hp { display: none !important; }
/* button loading spinner */
.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.cta__status { margin-top: 16px; font-size: 0.94rem; color: var(--c-cyan); }
.cta__fine { margin-top: 24px; font-size: 0.9rem; color: rgba(234, 244, 238, 0.48); }
.cta__fine a { color: var(--ink-dim); border-bottom: 1px solid var(--line-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; background: rgba(0, 0, 0, 0.3); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 60px 32px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer__logo { height: 28px; width: auto; align-self: flex-start; opacity: 0.9; }
.footer__copy { font-size: 0.84rem; color: var(--ink-faint); font-weight: 300; }
.footer__location { font-size: 0.94rem; color: rgba(234, 244, 238, 0.72); font-weight: 300; text-align: right; line-height: 1.6; }
.footer__inner { padding-bottom: 56px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  main section[id], .clients[id] { scroll-margin-top: 48px; }  /* section padding provides the rest */
  .cards { grid-template-columns: 1fr 1fr; }
  .platform__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { align-items: flex-start; padding-top: 104px; }  /* start from top, not centered */
  .hero__grid { grid-template-columns: 1fr; gap: 2px; }   /* text sits close under the dd */
  .hero__art { order: -1; max-width: 360px; margin: 0 auto; }  /* bigger dd, original size */
  .hero__actions { margin-top: 24px; }  /* lift the button when stacked */
}
@media (max-width: 620px) {
  /* uniform, tighter vertical rhythm on mobile */
  .section, .clients { padding: 50px 22px; }
  main section[id], .clients[id] { scroll-margin-top: 64px; }
  .hero { padding: 92px 22px 44px; }
  .hero__art { max-width: 300px; }
  .hero__stats { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; padding-top: 24px; }
  .hero__stats .stat__num { font-size: 1.65rem; }
  .hero__stats .stat__label { font-size: 0.86rem; }
  .cta__card { padding: 48px 22px; }

  /* smaller capability cards */
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 24px 22px; }
  .card__glyph { width: 56px; height: 56px; }
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: 0.92rem; }

  /* smaller client logos */
  .clients__grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 24px 16px; }
  .clients__logo { max-height: 26px; max-width: 92px; }

  /* smaller solver / code panel */
  .panel__code { font-size: 0.7rem; line-height: 1.75; padding: 16px 14px; }

  /* work items stack */
  .work__head { grid-template-columns: 1fr auto; gap: 18px; padding: 22px 0; }
  .work__head h3 { grid-column: 1 / -1; }
  .work__head .work__toggle { grid-row: 1; grid-column: 2; }
  .work__body-inner { grid-template-columns: 1fr; gap: 14px; }
  .work__item.is-open .work__body-inner { padding-bottom: 30px; }

  /* footer order: location text → logo → copyright */
  .footer__inner { flex-direction: column; align-items: center; text-align: center; gap: 22px; }
  .footer__location { order: -1; text-align: center; }
  .footer__brand { align-items: center; gap: 18px; }
  .footer__logo { align-self: center; height: 40px; }
  .footer__copy { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Rescale the ambient gradients to the viewport as soon as the layout stacks
   (same 900px breakpoint as the nav/hero), so background + layout shift together. */
@media (max-width: 900px) {
  .aurora {
    background:
      radial-gradient(80vh 60vh at 84% 2%, rgba(34, 197, 94, 0.12), transparent 62%),
      radial-gradient(75vh 58vh at 6% 22%, rgba(22, 163, 74, 0.11), transparent 58%),
      radial-gradient(70vh 55vh at 96% 96%, rgba(132, 204, 22, 0.07), transparent 62%),
      linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  }
  .blob { filter: blur(90px); opacity: 0.4; }
  .blob--1 { width: 58vw; height: 58vw; top: -8vw; left: -14vw; }
  .blob--2 { width: 52vw; height: 52vw; top: 9%; right: -16vw; }
  .blob--3 { width: 66vw; height: 66vw; bottom: -18vw; left: 8%; }
}

/* ============================================================
   Light industries strip + Capabilities (white band, dark text).
   ============================================================ */
.marquee-wrap, #capabilities { position: relative; }
.marquee-wrap::before, #capabilities::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 100vw; z-index: -1; background: #ffffff;
}
.marquee-wrap .section-kicker { color: #46564f; }
.marquee__track span { color: #16a34a; }  /* green industry names */
#capabilities .section-kicker { color: #46564f; }
#capabilities .section__title { color: #0e1a15; }
#capabilities .section__sub { color: #4a5a52; }
#capabilities .card {
  background: #ffffff; border-color: rgba(14, 26, 21, 0.10);
  box-shadow: 0 14px 34px -26px rgba(14, 26, 21, 0.4);
}
#capabilities .card:hover { background: #ffffff; border-color: rgba(14, 26, 21, 0.2); }
#capabilities .card h3 { color: #0e1a15; }
#capabilities .card p { color: #4a5a52; }
#capabilities .card__glyph { border-color: rgba(14, 26, 21, 0.14); background: rgba(14, 26, 21, 0.02); }

/* no cursor-follow light glow on cards */
.card::before { display: none; }

/* compress the cards vertically */
.card { padding: 24px 26px; }
.card__glyph { width: 54px; height: 54px; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }

/* ============================================================
   Capabilities strip — full-bleed row of 6, wide & short
   ============================================================ */
.caps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(14, 26, 21, 0.1);            /* thin dividers show through the gap */
  border-top: 1px solid rgba(14, 26, 21, 0.1);
  border-bottom: 1px solid rgba(14, 26, 21, 0.1);
}
.caps__item {
  background: #ffffff; padding: 30px 28px;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: background 0.3s var(--ease);
}
.caps__item:hover { background: #fbfdfc; }
.caps__ico { width: 56px; height: 56px; margin-bottom: 18px; }
.caps__ico canvas { width: 100%; height: 100%; display: block; }
.caps__item h3 {
  font-family: "Archivo Expanded","Archivo",sans-serif; font-weight: 300;
  font-size: 1.02rem; letter-spacing: -0.01em; color: #0e1a15; margin-bottom: 10px;
}
.caps__item p { font-size: 0.8rem; line-height: 1.55; color: #4a5a52; }

@media (max-width: 620px) { .caps { grid-template-columns: repeat(2, 1fr); } .caps__item { padding: 22px 18px; } }

#capabilities { padding-top: 52px; padding-bottom: 60px; }
#capabilities .section__head { margin-bottom: 30px; }

/* ============================================================
   Light section — Selected Work (bright white band)
   ============================================================ */
#work { position: relative; }
#work::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 100vw; z-index: -1; background: #ffffff;
}
#work .section-kicker { color: #46564f; }
#work .section__title { color: #0e1a15; }
#work .work { border-top-color: rgba(14, 26, 21, 0.12); }
#work .work__item { border-bottom-color: rgba(14, 26, 21, 0.12); }
#work .work__industry { color: #16a34a; }
#work .work__signals { color: #5a6960; }
#work .work__item h3 { color: #0e1a15; }
#work .work__desc { color: #46564f; }
#work .work__anim { color: #16a34a; }
#work .work__toggle { color: #16a34a; }
@media (hover: hover) {
  #work .work__head:hover h3 { color: #16a34a; }
  #work .work__item.is-open .work__head:hover h3 { color: #0e1a15; }
}

/* ============================================================
   Living terminal — JS types / edits / retypes on a loop
   ============================================================ */
.term { display: block; white-space: pre; height: 17.5em; overflow: hidden; }  /* fixed → no resize */
.term-cursor { color: var(--c-cyan); animation: term-cursor 1s steps(1) infinite; }
@keyframes term-cursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
