/* ==========================================================================
   AETHON INTELLIGENCE · consultancy
   beige · saffron · black — light and dark themes
   Fraunces display serif · Inter text
   ========================================================================== */

:root {
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --sec-pad: clamp(90px, 12vw, 170px);

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

/* dark: black canvas, beige type, saffron accent */
:root[data-theme="dark"] {
  --bg: #0c0b09;
  --bg-2: #11100d;
  --tint: #14120e;

  --ink: #e9e1d0;
  --ink-2: #cfc6b2;
  --muted: #97907e;
  --faint: #6d675a;

  --saffron: #ffa41c;
  --saffron-glow: rgba(255, 164, 28, 0.45);

  --line: rgba(233, 225, 208, 0.14);
  --line-soft: rgba(233, 225, 208, 0.07);

  --nav-bg: rgba(12, 11, 9, 0.82);
  --grain: 0.05;
}

/* light: beige canvas, black type, saffron accent */
:root[data-theme="light"] {
  --bg: #f1ebdd;
  --bg-2: #ebe4d2;
  --tint: #e7dfca;

  --ink: #191510;
  --ink-2: #433b2d;
  --muted: #716a58;
  --faint: #938b74;

  --saffron: #c77300;
  --saffron-glow: rgba(199, 115, 0, 0.45);

  --line: rgba(25, 21, 16, 0.16);
  --line-soft: rgba(25, 21, 16, 0.08);

  --nav-bg: rgba(241, 235, 221, 0.85);
  --grain: 0.035;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain, very quiet */
body::after {
  content: "";
  position: fixed;
  inset: -100px;
  z-index: 60;
  pointer-events: none;
  opacity: var(--grain, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%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)'/%3E%3C/svg%3E");
}

::selection { background: var(--saffron); color: var(--bg); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

/* ==========================================================================
   Type
   ========================================================================== */

h1, h2 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 em, h2 em {
  font-style: normal;
  font-weight: 300;
  color: var(--saffron);
}

h2 { font-size: clamp(32px, 4.6vw, 58px); }

h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--saffron);
  flex: none;
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--ink-2);
}

.sec-note {
  color: var(--muted);
  max-width: 56ch;
  margin-top: 26px;
  font-size: 16.5px;
}
.sec-note a { color: var(--ink-2); border-bottom: 1px solid var(--saffron); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-solid {
  background: var(--saffron);
  color: var(--bg);
  border: 1px solid var(--saffron);
}
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }

.btn-line {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-line:hover { border-color: var(--saffron); color: var(--saffron); }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform 0.5s var(--ease), background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav.hidden { transform: translateY(-100%); }

/* over the photo hero (before scroll) the nav is always light-on-dark */
.nav.on-hero:not(.scrolled) .brand-name,
.nav.on-hero:not(.scrolled) .nav-links a,
.nav.on-hero:not(.scrolled) .theme-toggle { color: #ede6d6; }
.nav.on-hero:not(.scrolled) .brand-name em { color: #cfc6b2; }
.nav.on-hero:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav.on-hero:not(.scrolled) .burger span { background: #ede6d6; }
.nav.on-hero:not(.scrolled) .theme-toggle { border-color: rgba(237, 230, 214, 0.3); }
.nav.on-hero:not(.scrolled) .brand-mark,
.nav.on-hero:not(.scrolled) .nav-links a::after { background: #ffa41c; }

/* theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--saffron); border-color: var(--saffron); transform: rotate(15deg); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
:root[data-theme="dark"] .ic-moon { display: none; }
:root[data-theme="light"] .ic-sun { display: none; }

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
  height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 9px; height: 9px;
  background: var(--saffron);
  transform: rotate(45deg);
  flex: none;
}
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.brand-name em { font-style: normal; font-weight: 300; color: var(--ink-2); }

.nav-links {
  display: flex;
  gap: 34px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 450;
  color: var(--ink-2);
  letter-spacing: 0.03em;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { padding: 11px 24px; font-size: 12.5px; }

.burger {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-left: auto;
}
.burger span {
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease);
}
body.menu-open .burger span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* mobile menu */
.m-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gut);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}
body.menu-open .m-menu { opacity: 1; visibility: visible; }
.m-menu nav { display: flex; flex-direction: column; gap: 6px; }
.m-menu a {
  font-family: var(--serif);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 300;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.m-menu a:hover { color: var(--saffron); padding-left: 10px; }
.m-menu .m-cta { color: var(--saffron); border-bottom: 0; }
.m-foot {
  position: absolute;
  bottom: 32px; left: var(--gut);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(140px, 18vh, 200px) 0 clamp(64px, 9vh, 110px);
  overflow: hidden;
}

/* background slideshow */
.hero-slides { position: absolute; inset: 0; z-index: -2; background: #0c0b09; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.85);
}
.slide.is-active { opacity: 1; }
.slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .slide.is-active img { animation: none; } }

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.62) 0%, rgba(10, 9, 8, 0.28) 42%, rgba(10, 9, 8, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 9, 8, 0.42) 0%, rgba(10, 9, 8, 0) 60%);
}

/* text over the photo is always light, in both themes */
.hero-title {
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.04;
  color: #f0e9da;
  margin-bottom: clamp(30px, 4.5vw, 52px);
  max-width: 14em;
}
.hero-title em { color: #ffa41c; }
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: block; transform: translateY(110%); }
.loaded .hero-line > span {
  animation: rise 1.1s var(--ease) forwards;
}
.loaded .hero-line:nth-child(2) > span { animation-delay: 0.1s; }
.loaded .hero-line:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-el { opacity: 0; transform: translateY(24px); }
.loaded .hero-el {
  animation: fadeUp 1s var(--ease) forwards;
  animation-delay: 0.55s;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.hero-sub {
  max-width: 52ch;
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  color: rgba(240, 233, 218, 0.82);
}
.hero-actions { display: flex; gap: 14px; flex: none; }
.hero .btn-solid { background: #ffa41c; border-color: #ffa41c; color: #14120e; }
.hero .btn-solid:hover { background: #f0e9da; border-color: #f0e9da; }
.hero .btn-line { border-color: rgba(240, 233, 218, 0.38); color: #f0e9da; }
.hero .btn-line:hover { border-color: #ffa41c; color: #ffa41c; }

/* slide indicator bars */
.hero-slidenav {
  display: flex;
  gap: 10px;
  margin-top: clamp(36px, 5vh, 56px);
}
.hero-slidenav button {
  width: 34px; height: 20px;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
}
.hero-slidenav button::before {
  content: "";
  display: block;
  height: 2px;
  background: rgba(240, 233, 218, 0.35);
  transition: background 0.4s ease;
}
.hero-slidenav button.on::before { background: #ffa41c; }

/* stats strip under the hero */
.stats-strip { border-bottom: 1px solid var(--line-soft); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-soft);
}
.hero-stats li {
  padding: clamp(28px, 4vw, 48px) 28px clamp(28px, 4vw, 48px) 0;
  border-left: 1px solid var(--line-soft);
  padding-left: 28px;
}
.hero-stats li:first-child { border-left: 0; padding-left: 0; }
.hero-stats li { border-top: 0; }
.hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 12px;
}
.hero-stats span:not(.count) { font-size: 13.5px; color: var(--muted); line-height: 1.5; display: block; max-width: 24ch; }
.hero-stats strong span.count { display: inline; font-size: inherit; color: inherit; }

/* ==========================================================================
   Approach: sticky scrollytelling
   ========================================================================== */

.story {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.story-step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 0;
  opacity: 0.28;
  transition: opacity 0.55s ease;
}
.story-step.active { opacity: 1; }
.story-step:first-child { min-height: 52vh; padding-top: 0; }
.story-step:last-child { min-height: 52vh; padding-bottom: 0; }

.story-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 18px;
}
.story-num::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--saffron);
}
.story-step h3 {
  font-size: clamp(26px, 2.8vw, 38px);
  margin-bottom: 16px;
}
.story-step p {
  color: var(--muted);
  font-size: clamp(15.5px, 1.2vw, 17px);
  max-width: 46ch;
  margin-bottom: 26px;
}
.story-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.story-tags li {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.story-visual { align-self: stretch; }
.story-sticky {
  position: sticky;
  top: calc(50vh - min(46vh, 310px));
}
.story-panels {
  position: relative;
  aspect-ratio: 4 / 4.6;
  max-height: 560px;
  width: 100%;
}
.story-panel {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.6s ease, transform 0.9s var(--ease);
}
.story-panel.is-active { opacity: 1; transform: translateY(0) scale(1); }

/* product style mock panels: fixed dark, like a screenshot in both themes */
.mock {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #14110b;
  border: 1px solid rgba(233, 225, 208, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.7);
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(233, 225, 208, 0.08);
}
.mock-head i { width: 9px; height: 9px; border-radius: 50%; background: rgba(233, 225, 208, 0.14); flex: none; }
.mock-head span {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #97907e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-body {
  flex: 1;
  padding: clamp(16px, 1.8vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.mock-row, .mock-approve {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(233, 225, 208, 0.08);
  border-radius: 10px;
  background: rgba(233, 225, 208, 0.02);
}
.mock-row strong, .mock-approve strong { display: block; color: #e9e1d0; font-size: 13.5px; font-weight: 600; }
.mock-row span, .mock-approve span { color: #6d675a; font-size: 12px; }
.mock-row em, .mock-approve em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffa41c;
  border: 1px solid rgba(255, 164, 28, 0.35);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  flex: none;
}
.mock-approve em { background: #ffa41c; color: #14110b; border-color: #ffa41c; }
.mock-lines { display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.mock-lines i { height: 8px; border-radius: 4px; background: rgba(233, 225, 208, 0.07); }
.mock-greet { color: #cfc6b2; font-size: 13.5px; }
.mock-greet b { color: #ffa41c; font-weight: 600; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-tile {
  border: 1px solid rgba(233, 225, 208, 0.08);
  border-radius: 10px;
  padding: 13px 12px;
  background: rgba(233, 225, 208, 0.02);
}
.mock-tile strong {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 1.7vw, 24px);
  color: #e9e1d0;
  margin-bottom: 4px;
}
.mock-tile span { font-size: 10.5px; color: #6d675a; letter-spacing: 0.04em; }
.mock-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(233, 225, 208, 0.06);
  font-size: 13px;
}
.mock-file strong { color: #e9e1d0; font-weight: 500; }
.mock-file span {
  color: #ffa41c;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mock-note { margin-top: auto; color: #97907e; font-size: 12.5px; line-height: 1.5; }
.mock-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 20px;
  border-top: 1px solid rgba(233, 225, 208, 0.08);
}
.mock-foot span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #ffa41c;
}
.mock-foot strong {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  color: #f0e9da;
}

.story-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.story-rail {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
}
.story-rail b {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 33.3%;
  background: var(--saffron);
  transition: width 0.6s var(--ease);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.sec { padding: var(--sec-pad) 0; }
.sec-tint { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.sec-head { margin-bottom: clamp(48px, 7vw, 90px); max-width: 880px; }

/* ==========================================================================
   Capabilities: stacked deck
   ========================================================================== */

.deck {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.deck-card {
  position: sticky;
  top: calc(96px + var(--i, 0) * 16px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(30px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: 320px;
  box-shadow: 0 -24px 48px -36px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.deck-num {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--saffron);
  margin-bottom: 22px;
}
.deck-copy h3 { font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 14px; }
.deck-copy p { color: var(--muted); font-size: 15.5px; line-height: 1.7; max-width: 54ch; }

.deck-stat {
  border-left: 1px solid var(--line);
  padding-left: clamp(28px, 3vw, 48px);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.deck-stat strong {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 1;
  color: var(--saffron);
  margin-bottom: 14px;
}
.deck-stat span { color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 22ch; }

/* ==========================================================================
   Feature band
   ========================================================================== */

.feature {
  position: relative;
  padding: clamp(140px, 24vw, 280px) 0;
  overflow: hidden;
}
.feature-img {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
}
.feature-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.55) brightness(0.6);
}
.feature-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(12, 11, 9, 0.55) 30%, rgba(12, 11, 9, 0.55) 70%, var(--bg) 100%);
}
.feature-inner { max-width: 1000px; }
.feature h2 { font-size: clamp(30px, 4.2vw, 54px); color: #f0e9da; }
.feature h2 em { color: #ffa41c; }
.feature .kicker { color: rgba(240, 233, 218, 0.7); }
.feature .kicker::before { background: #ffa41c; }

/* ==========================================================================
   Results / cases
   ========================================================================== */

.cases { border-top: 1px solid var(--line); }
.case {
  display: grid;
  grid-template-columns: 230px 1fr 260px;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(34px, 4.4vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.45s ease;
  position: relative;
}
.case::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--saffron);
  transition: width 0.7s var(--ease);
}
.case:hover::before { width: 100%; }

.case-ind { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.case-ind span:first-child {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.case-loc { font-size: 12.5px; color: var(--faint); letter-spacing: 0.04em; }

.case-body h3 { margin-bottom: 12px; }
.case-body p { color: var(--muted); font-size: 15.5px; max-width: 62ch; }

.case-meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 2;
  padding-top: 6px;
  text-align: right;
}

/* ==========================================================================
   Process
   ========================================================================== */

.proc-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.proc-sticky { position: sticky; top: 120px; }
.proc-img {
  margin-top: 44px;
  overflow: hidden;
  border-radius: 2px;
  max-width: 440px;
}
.proc-img img {
  filter: saturate(0.7) brightness(0.85) sepia(0.12);
  transition: transform 1.2s var(--ease);
}
.proc-img:hover img { transform: scale(1.04); }

.steps { position: relative; padding-left: 40px; }
.steps::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.steps::after {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 1px;
  height: calc((100% - 16px) * var(--prog, 0));
  background: var(--saffron);
  transition: height 0.2s linear;
}
.step { position: relative; padding: 0 0 clamp(44px, 5.5vw, 72px); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: -40px; top: 7px;
  width: 9px; height: 9px;
  background: var(--bg-2);
  border: 1px solid var(--muted);
  transform: rotate(45deg);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.step.in::before { background: var(--saffron); border-color: var(--saffron); }
.step-wk {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 56ch; }

/* ==========================================================================
   Product demo
   ========================================================================== */

.demo { margin: 0 0 clamp(56px, 8vw, 100px); }
.demo-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #14110b;
  box-shadow: 0 50px 110px -60px rgba(0, 0, 0, 0.85);
}
.demo-frame video { width: 100%; display: block; }
.demo-cap {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 78ch;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.contact-points { margin-top: 36px; }
.contact-points li {
  padding: 15px 0 15px 32px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 15px;
  position: relative;
}
.contact-points li:last-child { border-bottom: 1px solid var(--line-soft); }
.contact-points li::before {
  content: "";
  position: absolute;
  left: 4px; top: 24px;
  width: 6px; height: 6px;
  background: var(--saffron);
  transform: rotate(45deg);
}

.cal-shell {
  background: #f5f2ea;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 620px;
  padding: 10px;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-hero { padding: clamp(150px, 20vh, 210px) 0 clamp(40px, 6vw, 64px); }
.legal-hero h1 { font-size: clamp(38px, 5.4vw, 72px); margin-bottom: 20px; }
.legal-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-body { max-width: 780px; padding-bottom: var(--sec-pad); }
.legal-body h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin: clamp(40px, 5vw, 56px) 0 16px;
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line-soft);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body p { color: var(--muted); margin-bottom: 16px; font-size: 15.5px; }
.legal-body strong { color: var(--ink-2); font-weight: 600; }
.legal-body ul { margin: 0 0 16px; }
.legal-body li {
  color: var(--muted);
  font-size: 15.5px;
  padding: 8px 0 8px 26px;
  position: relative;
}
.legal-body li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 6px; height: 6px;
  background: var(--saffron);
  transform: rotate(45deg);
}
.legal-body .legal-callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--saffron);
  border-radius: 4px;
  padding: 20px 24px;
  color: var(--ink-2);
  margin: 20px 0;
  font-size: 15.5px;
}
.legal-body a { color: var(--ink-2); border-bottom: 1px solid var(--saffron); transition: color 0.3s ease; }
.legal-body a:hover { color: var(--saffron); }

.foot-legal { display: flex; gap: 22px; }
.foot-legal a { transition: color 0.3s ease; }
.foot-legal a:hover { color: var(--saffron); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: clamp(56px, 8vw, 96px) 0 40px;
  background: var(--bg-2);
}
.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.foot-line {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 34ch;
}
.foot-nav { display: flex; flex-direction: column; gap: 12px; text-align: right; }
.foot-nav a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.3s ease;
}
.foot-nav a:hover { color: var(--saffron); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.06em;
}
.foot-bottom span:last-child { letter-spacing: 0.22em; text-transform: uppercase; }

/* ==========================================================================
   Scroll progress
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 110;
}

/* ==========================================================================
   Function ticker
   ========================================================================== */

.ticker {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-row { overflow: hidden; padding: 20px 0 0; }
.ticker-row:last-child { padding-bottom: 4px; }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: slide 42s linear infinite;
}
.ticker-track.ticker-rev { animation: slide-rev 46s linear infinite; }
.ticker-track span {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 300;
  color: var(--faint);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.ticker-track span:hover { color: var(--saffron); }
.ticker-track i {
  width: 6px; height: 6px;
  background: var(--saffron);
  transform: rotate(45deg);
  opacity: 0.55;
  flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes slide-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ==========================================================================
   Integrations wall
   ========================================================================== */

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 980px;
}
.chip {
  padding: 15px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 450;
  color: var(--ink-2);
  transition: border-color 0.35s ease, color 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease,
              opacity 0.9s var(--ease);
  cursor: default;
}
.chip:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -18px var(--saffron-glow);
}
.chip-hl { border-color: var(--saffron); color: var(--saffron); }

.stack-foot {
  margin-top: clamp(36px, 5vw, 56px);
  color: var(--muted);
  font-size: 16.5px;
  max-width: 62ch;
}

/* ==========================================================================
   Word split reveal
   ========================================================================== */

.wsplit .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.wsplit .w > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.85s var(--ease);
  transition-delay: var(--wd, 0s);
}
.wsplit.in .w > span { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .wsplit .w > span { transform: none !important; transition: none !important; } }

/* ==========================================================================
   Deck card spotlight
   ========================================================================== */

.deck-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), var(--saffron-glow), transparent 70%);
}
.deck-card:hover::after { opacity: 0.14; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.rv.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .rv, .hero-el, .hero-line > span { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .story-step { opacity: 1 !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .case { grid-template-columns: 190px 1fr; }
  .case-meta { grid-column: 2; text-align: left; padding-top: 14px; }
  .hero-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; margin-left: 0; }
  .theme-toggle { margin-left: auto; }

  .proc-grid, .contact-grid { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .story-visual { display: none; }
  .story-step { min-height: 0; padding: 34px 0; opacity: 1; border-top: 1px solid var(--line-soft); }
  .story-step:first-child { border-top: 0; }
  .proc-sticky { position: static; }
  .proc-img { display: none; }
  .deck-card {
    grid-template-columns: 1fr;
    min-height: 0;
    top: calc(80px + var(--i, 0) * 10px);
  }
  .deck-stat {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }
  .deck-stat strong { margin-bottom: 0; }
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats li { border-left: 0; padding-left: 0; padding-top: 20px; padding-bottom: 20px; }
  .hero-stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .case { grid-template-columns: 1fr; gap: 14px; }
  .case-meta { grid-column: 1; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .foot-nav { text-align: left; }
}
