/* ============================================================
   ADHERE LABS — shared design system
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0d0b08;
  --ink-2: #14110c;
  --ink-3: #1c1812;
  --cream: #faf7ef;
  --cream-dim: #e9e3d4;
  --muted: #beb6a2;
  --gold: #c9a35f;
  --gold-bright: #e7c98c;
  --gold-dim: rgba(201,163,95,0.55);
  --line: rgba(201,163,95,0.16);
  --line-strong: rgba(201,163,95,0.34);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', sans-serif;
  --mono: 'Spline Sans Mono', monospace;
  --pad: clamp(1.5rem, 5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

::selection { background: var(--gold); color: var(--ink); }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- grain ---------- */
body::after {
  content: '';
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 2000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-3%,-5%); }
  20% { transform: translate(-7%,3%); } 30% { transform: translate(4%,-6%); }
  40% { transform: translate(-3%,8%); } 50% { transform: translate(-7%,3%); }
  60% { transform: translate(6%,0); } 70% { transform: translate(0,5%); }
  80% { transform: translate(2%,8%); } 90% { transform: translate(-5%,4%); }
}

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(to right, var(--gold), var(--gold-bright));
  z-index: 300;
}

.label {
  font-family: var(--mono);
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 0.9rem;
}
.label::before { content: ''; width: 2rem; height: 1px; background: var(--gold-dim); flex-shrink: 0; }
.label.center { justify-content: center; }
.label.center::after { content: ''; width: 2rem; height: 1px; background: var(--gold-dim); flex-shrink: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
em { font-style: italic; color: var(--gold-bright); font-weight: 300; }

/* ---------- nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem var(--pad);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(13,11,8,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding-top: 1rem; padding-bottom: 1rem;
}
.logo {
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.01em;
  color: var(--cream); text-decoration: none; display: flex; align-items: baseline; gap: 0.45rem;
}
.logo-mark {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); display: inline-block;
  box-shadow: 0 0 12px rgba(201,163,95,0.8);
  transform: translateY(-1px);
}
.logo small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 2.6rem; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; position: relative; transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

/* hamburger + mobile menu */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  z-index: 400; position: relative;
}
.nav-burger span { width: 22px; height: 1.5px; background: var(--cream); display: block; transition: transform 0.35s var(--ease), opacity 0.25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 190; /* below nav (200) so the logo + burger stay visible/clickable */
  background: rgba(13,11,8,0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--pad) 3rem;
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mm-link {
  font-family: var(--serif); font-size: 2.1rem; color: var(--cream); text-decoration: none;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
  transform: translateY(16px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), color 0.25s;
}
.mobile-menu.open .mm-link { transform: translateY(0); opacity: 1; }
.mobile-menu.open .mm-link:nth-child(2) { transition-delay: 0.06s; }
.mobile-menu.open .mm-link:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.open .mm-link:nth-child(4) { transition-delay: 0.18s; }
.mm-link:active, .mm-link:hover { color: var(--gold-bright); }
.mm-link .idx { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--gold-dim); }
.mobile-menu .btn { margin-top: 2.2rem; justify-content: center; }
.mm-foot {
  margin-top: auto; padding-top: 2rem;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  text-align: center;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding: 0.9rem 1.9rem;
  border-radius: 2px; position: relative; overflow: hidden;
  transition: color 0.35s; cursor: pointer; border: none;
}
.btn-solid { background: var(--gold); color: var(--ink); font-weight: 500; }
.btn-solid::before {
  content: ''; position: absolute; inset: 0; background: var(--gold-bright);
  transform: translateY(101%); transition: transform 0.4s var(--ease);
}
.btn-solid:hover::before { transform: translateY(0); }
.btn-solid span { position: relative; z-index: 1; }
.btn-outline { border: 1px solid var(--line-strong); color: var(--cream-dim); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn .arrow { transition: transform 0.3s var(--ease); position: relative; z-index: 1; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- page hero (subpages) ---------- */
.page-hero {
  padding: clamp(9rem, 16vw, 12rem) var(--pad) clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-hero .glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 80% 10%, rgba(201,163,95,0.12) 0%, transparent 60%);
}
.page-hero .crumb {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.8rem; position: relative;
}
.page-hero .crumb a { color: var(--muted); text-decoration: none; }
.page-hero .crumb a:hover { color: var(--gold-bright); }
.page-hero .crumb b { color: var(--gold); font-weight: 400; }
.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.08; letter-spacing: -0.015em;
  max-width: 18ch; position: relative;
}
.page-hero .lede {
  font-size: 1.15rem; color: var(--muted); max-width: 56ch; line-height: 1.8;
  margin-top: 1.8rem; position: relative;
}
.page-hero .lede strong { color: var(--cream-dim); font-weight: 500; }

/* ---------- sections ---------- */
section { padding: clamp(4.5rem, 8vw, 7rem) var(--pad); position: relative; }
.sec-head { margin-bottom: clamp(2.5rem, 5vw, 3.8rem); }
.sec-head .label { margin-bottom: 1.4rem; }
.sec-head h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); line-height: 1.18; letter-spacing: -0.01em; max-width: 24ch; }
.sec-head .sub { font-size: 1.08rem; color: var(--muted); max-width: 56ch; margin-top: 1.2rem; line-height: 1.8; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- home hero ---------- */
.hero {
  min-height: 100svh; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem var(--pad) 0; overflow: hidden;
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 75% 25%, rgba(201,163,95,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 8% 75%, rgba(201,163,95,0.07) 0%, transparent 55%);
}
.hero-main {
  position: relative; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(520px, 44vw, 660px);
  gap: clamp(2rem, 3.5vw, 4.5rem);
  align-items: center;
}
.hero-inner { max-width: 760px; }
.hero .label { margin-bottom: 2.2rem; opacity: 0; animation: rise 1s var(--ease) 0.15s forwards; }
.hero h1 {
  font-size: clamp(2.3rem, 3.4vw, 3.6rem);
  line-height: 1.16; letter-spacing: -0.01em;
}
/* padding/negative-margin keeps descenders (y, g) from being clipped by the reveal mask */
.hero h1 .line { display: block; overflow: hidden; padding: 0.09em 0; margin: -0.09em 0; }
.hero h1 .line span {
  display: block; transform: translateY(110%);
  animation: lineUp 1.1s var(--ease) forwards;
}
.hero h1 .line:nth-child(1) span { animation-delay: 0.25s; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.38s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.51s; }
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.hero-sub {
  font-size: 1.15rem; color: var(--muted); max-width: 46ch; line-height: 1.8;
  margin-top: 2rem;
  opacity: 0; animation: rise 1s var(--ease) 0.75s forwards;
}
.hero-sub strong { color: var(--cream-dim); font-weight: 500; }
.hero-actions {
  display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap;
  opacity: 0; animation: rise 1s var(--ease) 0.9s forwards;
}

/* ---- live operations console: all bots in one unified panel ---- */
.bots {
  position: relative; width: 100%;
  opacity: 0; animation: rise 1.1s var(--ease) 1.05s forwards;
  perspective: 1400px;
}
.glass {
  background: rgba(20,17,12,0.78);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.55), 0 0 60px rgba(201,163,95,0.06);
  overflow: hidden;
}
.console {
  width: 100%;
  transform: rotateY(-5deg) rotateX(1deg); transition: transform 0.6s var(--ease);
}
.bots:hover .console { transform: rotateY(0) rotateX(0); }
.console-head {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.console-head b { color: var(--cream-dim); font-weight: 400; }
.win-dots { display: flex; gap: 5px; }
.win-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.win-dots i:first-child { background: var(--gold); }
.console-live { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; color: var(--gold-bright); }
.console-body { display: grid; grid-template-columns: 0.92fr 1.08fr; align-items: stretch; }
.agent-col { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.agent-tile {
  flex: 1; padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; gap: 0.35rem;
  transition: background 0.3s;
}
.agent-tile:last-child { border-bottom: none; }
.agent-tile:hover { background: rgba(201,163,95,0.05); }
.agent-line { font-size: 12.5px; color: var(--cream-dim); line-height: 1.5; }
.chat-col { display: flex; flex-direction: column; min-width: 0; }
.chat-head {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.chat-head b { color: var(--cream-dim); font-weight: 400; }
.chat-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; justify-content: center; }
.bubble {
  max-width: 90%; padding: 0.6rem 0.9rem; border-radius: 12px;
  font-size: 13px; line-height: 1.55;
  opacity: 0; transform: translateY(14px) scale(0.97);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.bubble.on { opacity: 1; transform: translateY(0) scale(1); }
.bubble .t { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--muted); margin-top: 0.35rem; }
.bubble.in { align-self: flex-start; background: #262017; color: var(--cream-dim); border-bottom-left-radius: 3px; }
.bubble.out { align-self: flex-end; background: rgba(201,163,95,0.18); border: 1px solid var(--line); color: var(--cream); border-bottom-right-radius: 3px; }
.typing { align-self: flex-end; display: flex; gap: 4px; padding: 0.7rem 0.9rem; opacity: 0; transition: opacity 0.3s; }
.typing.on { opacity: 1; }
.typing i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  animation: blink 1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }
.chat-flag {
  align-self: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-bright); border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 0.3rem 0.9rem; background: rgba(201,163,95,0.07);
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s var(--ease);
}
.chat-flag.on { opacity: 1; transform: translateY(0); }
.chat-foot {
  border-top: 1px solid var(--line); padding: 0.85rem 1.2rem;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 0.7rem;
  opacity: 0; transition: opacity 0.6s;
}
.chat-foot.on { opacity: 1; }
.chat-foot b { color: var(--gold); font-weight: 400; }

.mini-head {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}
.mini-head b { color: var(--cream-dim); font-weight: 400; }
.mini-status { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright); }
/* voice equalizer */
.eq { display: flex; gap: 3px; align-items: flex-end; height: 22px; margin: 0.15rem 0; }
.eq i { width: 3px; border-radius: 2px; background: var(--gold); animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(1) { animation-delay: 0s; height: 40%; }
.eq i:nth-child(2) { animation-delay: 0.12s; height: 75%; }
.eq i:nth-child(3) { animation-delay: 0.24s; height: 55%; }
.eq i:nth-child(4) { animation-delay: 0.06s; height: 90%; }
.eq i:nth-child(5) { animation-delay: 0.3s; height: 60%; }
.eq i:nth-child(6) { animation-delay: 0.18s; height: 85%; }
.eq i:nth-child(7) { animation-delay: 0.42s; height: 45%; }
.eq i:nth-child(8) { animation-delay: 0.27s; height: 70%; }
.eq i:nth-child(9) { animation-delay: 0.09s; height: 50%; }
.eq i:nth-child(10) { animation-delay: 0.36s; height: 80%; }
@keyframes eq { 0%,100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
.wa-dot { width: 7px; height: 7px; border-radius: 50%; background: #5fc97f; box-shadow: 0 0 8px rgba(95,201,127,0.8); flex-shrink: 0; }

.hero-strip-wrap { margin: 3.2rem calc(-1 * var(--pad)) 0; position: relative; }
.pulse-strip {
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr);
  opacity: 0; animation: rise 1s var(--ease) 1.2s forwards;
}
.pulse-cell {
  padding: 1.5rem var(--pad);
  display: flex; align-items: center; gap: 1.1rem;
  border-right: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.pulse-cell:last-child { border-right: none; }
.pulse-cell b { color: var(--cream); font-weight: 400; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; position: relative; }
.dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--gold); animation: ping 2.2s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1.5rem 0; position: relative;
  background: var(--ink-2);
}
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--ink-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--ink-2), transparent); }
.marquee-track { display: flex; gap: 4.5rem; width: max-content; animation: scrollX 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 4.5rem; white-space: nowrap;
  transition: color 0.25s;
}
.marquee-item:hover { color: var(--gold-bright); }
.marquee-item::after { content: '◆'; font-size: 7px; color: var(--gold-dim); }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- ticker ---------- */
.ticker {
  background: var(--gold); color: var(--ink);
  overflow: hidden; padding: 0.9rem 0;
  transform: rotate(-1.2deg) scale(1.02); transform-origin: center;
  position: relative; z-index: 5;
  margin: clamp(3rem, 6vw, 5rem) -2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.ticker-track {
  display: flex; gap: 3rem; width: max-content;
  animation: scrollX 22s linear infinite;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; white-space: nowrap;
}
.ticker-track span { display: flex; align-items: center; gap: 3rem; }
.ticker-track span::after { content: '●'; font-size: 6px; }

/* ---------- problem ---------- */
.problem { border-top: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 7vw, 7rem); }
.problem h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); line-height: 1.18; }
.problem h2 .strike { position: relative; white-space: nowrap; }
.problem h2 .strike::after {
  content: ''; position: absolute; left: -2%; right: -2%; top: 54%; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease) 0.5s;
}
.problem-grid.visible h2 .strike::after { transform: scaleX(1); }
.problem-copy { color: var(--muted); font-size: 1.12rem; line-height: 1.85; display: flex; flex-direction: column; gap: 1.6rem; padding-top: 0.4rem; }
.problem-copy strong { color: var(--cream-dim); font-weight: 500; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
}
.stat { padding: 2.4rem 2rem 0 0; }
.stat + .stat { padding-left: 2.4rem; border-left: 1px solid var(--line); }
.stat-num {
  font-family: var(--serif); font-size: clamp(2.8rem, 5.2vw, 4.5rem);
  color: var(--gold-bright); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-num sub { font-size: 0.38em; vertical-align: baseline; color: var(--gold-dim); font-family: var(--mono); letter-spacing: 0.1em; margin-left: 0.3em; }
.stat-desc { font-size: 15px; color: var(--muted); margin-top: 0.9rem; max-width: 24ch; line-height: 1.65; }

/* ---------- services list ---------- */
.services { border-top: 1px solid var(--line); background: var(--ink-2); }
.services-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; flex-wrap: wrap; }
.services-note {
  font-size: 15px; color: var(--muted); max-width: 36ch; line-height: 1.75;
  border-left: 1px solid var(--line-strong); padding-left: 1.4rem;
}
.services-note strong { color: var(--gold-bright); font-weight: 500; }

.svc-list { margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 4rem 3rem 1fr 1.15fr 3rem;
  gap: 2rem; align-items: center;
  padding: 2.2rem 0; border-bottom: 1px solid var(--line);
  position: relative; cursor: default;
  transition: padding-left 0.45s var(--ease);
  text-decoration: none; color: inherit;
}
.svc::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(to right, rgba(201,163,95,0.07), transparent);
  transition: width 0.5s var(--ease);
}
.svc:hover { padding-left: 1.2rem; }
.svc:hover::before { width: 100%; }
.svc-num { font-family: var(--mono); font-size: 12px; color: var(--gold-dim); letter-spacing: 0.1em; transition: color 0.3s; }
.svc:hover .svc-num { color: var(--gold-bright); }
.svc-icon { width: 32px; height: 32px; color: var(--gold-dim); transition: color 0.3s, transform 0.4s var(--ease); }
.svc:hover .svc-icon { color: var(--gold-bright); transform: scale(1.12); }
.svc-icon svg { width: 100%; height: 100%; }
.svc h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.3; letter-spacing: -0.01em; }
.svc p { font-size: 16px; color: var(--muted); line-height: 1.75; }
.svc-arrow {
  font-family: var(--serif); font-size: 1.3rem; color: var(--gold);
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.35s, transform 0.35s var(--ease);
  justify-self: end;
}
.svc:hover .svc-arrow { opacity: 1; transform: translateX(0); }

/* ---------- service detail blocks (services page) ---------- */
.svc-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.svc-detail:last-child { border-bottom: none; }
.svc-detail .meta { position: sticky; top: 7rem; }
.svc-detail .num-big {
  font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.6rem); font-style: italic;
  color: var(--gold-dim); line-height: 1; margin-bottom: 1.2rem;
}
.svc-detail h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.25; max-width: 16ch; }
.svc-detail .stack-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.stack-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 2px; padding: 0.35rem 0.8rem;
}
.svc-detail .body p { font-size: 1.05rem; color: var(--muted); line-height: 1.85; }
.deliverables { margin-top: 1.8rem; border-top: 1px solid var(--line); }
.deliverables li {
  list-style: none; display: flex; gap: 1rem; align-items: baseline;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
  font-size: 16px; color: var(--cream-dim);
}
.deliverables li::before { content: '◆'; font-size: 8px; color: var(--gold); flex-shrink: 0; }

/* ---------- image break ---------- */
.img-break {
  position: relative; min-height: 62vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; padding: 6rem var(--pad);
}
.img-break .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: sepia(0.55) saturate(0.7) contrast(1.05) brightness(0.55);
}
.img-break .tint {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--ink) 0%, rgba(13,11,8,0.45) 35%, rgba(13,11,8,0.45) 65%, var(--ink) 100%);
}
.img-break .inner { position: relative; max-width: 950px; }
.img-break h2 {
  font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 1.15; letter-spacing: -0.015em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.img-break .label { justify-content: center; margin-bottom: 1.8rem; }
.img-break .label::after { content: ''; width: 2rem; height: 1px; background: var(--gold-dim); }

/* ---------- process ---------- */
.process { border-top: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); margin-top: 1rem; }
.step { position: relative; padding-top: 2.2rem; }
.step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.step::after {
  content: ''; position: absolute; top: -3px; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px rgba(201,163,95,0.7);
}
.step-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; }
.step h3 { font-size: 1.6rem; margin: 1rem 0 0.9rem; }
.step p { font-size: 16px; color: var(--muted); line-height: 1.8; }
.step-dur { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); margin-top: 1.2rem; display: block; }

/* ---------- verticals ---------- */
.verticals { border-top: 1px solid var(--line); background: var(--ink-2); }
.vert-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(3rem, 7vw, 7rem); }
.vert-copy { font-size: 16px; color: var(--muted); margin-top: 1.4rem; line-height: 1.8; max-width: 38ch; }
.vert-list { border-top: 1px solid var(--line); }
.vert-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  padding: 1.8rem 0; border-bottom: 1px solid var(--line);
  cursor: default; position: relative;
  transition: padding-left 0.4s var(--ease);
}
.vert-item:hover { padding-left: 1rem; }
.vert-name { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2.1rem); transition: color 0.3s; }
.vert-item:hover .vert-name { color: var(--gold-bright); }
.vert-sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.vert-idx { font-family: var(--mono); font-size: 11px; color: var(--gold-dim); margin-right: 1.6rem; }

.vert-float {
  position: fixed; z-index: 150; pointer-events: none;
  width: 290px; height: 190px; border-radius: 6px;
  background-size: cover; background-position: center;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  transform: translate(-50%, -115%) rotate(-3deg) scale(0.92);
  opacity: 0; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  filter: sepia(0.4) saturate(0.85) contrast(1.05);
}
.vert-float.on { opacity: 1; transform: translate(-50%, -115%) rotate(-3deg) scale(1); }

/* ---------- results ---------- */
.results { border-top: 1px solid var(--line); }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.result {
  background: var(--ink); padding: clamp(2rem, 3.5vw, 3rem);
  position: relative; overflow: hidden; transition: background 0.4s;
}
.result .result-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.2; transition: opacity 0.6s, transform 0.8s var(--ease);
  filter: sepia(0.6) saturate(0.6) brightness(0.7);
}
.result:hover .result-img { opacity: 0.32; transform: scale(1.05); }
.result .result-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,11,8,0.94) 30%, rgba(13,11,8,0.55));
}
.result::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; z-index: 2;
  background: linear-gradient(to right, var(--gold), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.result:hover::before { transform: scaleX(1); }
.result-inner { position: relative; z-index: 1; }
.result-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); display: inline-block; margin-bottom: 1.6rem;
  padding: 0.4rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 2px;
  background: rgba(13,11,8,0.5);
}
.result-metric {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  line-height: 1.25; margin-bottom: 1rem; letter-spacing: -0.01em;
}
.result p { font-size: 16px; color: var(--muted); line-height: 1.8; }

/* ---------- quotes ---------- */
.quotes { border-top: 1px solid var(--line); background: var(--ink-2); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.quote {
  border: 1px solid var(--line); border-radius: 4px; padding: 2.2rem;
  display: flex; flex-direction: column; gap: 1.4rem;
  background: var(--ink); transition: border-color 0.3s, transform 0.4s var(--ease);
}
.quote:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.quote .q-mark { font-family: var(--serif); font-style: italic; font-size: 3rem; line-height: 0.5; color: var(--gold-dim); }
.quote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.6; font-style: italic; color: var(--cream-dim); flex: 1; }
.quote .q-who { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.quote .q-who b { color: var(--gold); font-weight: 400; display: block; margin-bottom: 0.2rem; }

/* ---------- team ---------- */
.team { border-top: 1px solid var(--line); background: var(--ink-2); }
.team-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(3rem, 7vw, 7rem); }
.team-copy { font-size: 16px; color: var(--muted); margin-top: 1.4rem; line-height: 1.8; max-width: 38ch; }
.team-cards { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.member { background: var(--ink-2); padding: clamp(2rem, 3vw, 2.8rem); transition: background 0.4s; }
.member:hover { background: var(--ink-3); }
.member-head { display: flex; align-items: center; gap: 1.3rem; margin-bottom: 1.2rem; }
.avatar {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--gold-dim); position: relative;
  background: radial-gradient(circle at 35% 30%, rgba(201,163,95,0.3), rgba(201,163,95,0.06));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-bright);
}
.avatar::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px dashed var(--line-strong);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.member-name { font-family: var(--serif); font-size: 1.35rem; }
.member-role { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.member p { font-size: 16px; color: var(--muted); line-height: 1.8; }

/* ---------- values (about) ---------- */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value-wide { grid-column: 1 / -1; }
.value {
  background: var(--ink); padding: clamp(2rem, 3.2vw, 2.8rem);
  transition: background 0.4s; position: relative; overflow: hidden;
}
.value::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.value:hover { background: var(--ink-3); }
.value:hover::before { transform: scaleX(1); }
.value .v-num { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--gold-dim); margin-bottom: 1rem; }
.value h3 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.value p { font-size: 16px; color: var(--muted); line-height: 1.8; }

/* story two-col */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.story-copy { font-size: 1.12rem; color: var(--muted); line-height: 1.9; display: flex; flex-direction: column; gap: 1.6rem; }
.story-copy strong { color: var(--cream-dim); font-weight: 500; }
.story-copy .drop::first-letter {
  font-family: var(--serif); font-style: italic; font-size: 3.4em; float: left;
  line-height: 0.8; margin: 0.08em 0.12em 0 0; color: var(--gold-bright);
}
.story-img {
  position: relative; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line-strong); aspect-ratio: 4/4.6;
}
.story-img .im {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: sepia(0.5) saturate(0.75) brightness(0.75);
  transition: transform 1.2s var(--ease);
}
.story-img:hover .im { transform: scale(1.05); }
.story-img .cap {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.2rem 1.4rem;
  background: linear-gradient(to top, rgba(13,11,8,0.92), transparent);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 1.7rem 0;
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem);
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-bright); }
.faq-item summary .pm {
  font-family: var(--mono); font-size: 1.1rem; color: var(--gold);
  transition: transform 0.35s var(--ease); flex-shrink: 0;
}
.faq-item[open] summary .pm { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 0 1.8rem; max-width: 64ch; font-size: 1.02rem; color: var(--muted); line-height: 1.85; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.contact-ways { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.way { background: var(--ink); padding: 1.9rem 2rem; display: flex; gap: 1.4rem; align-items: flex-start; text-decoration: none; color: inherit; transition: background 0.35s; }
.way:hover { background: var(--ink-3); }
.way-icon { width: 38px; height: 38px; flex-shrink: 0; color: var(--gold); border: 1px solid var(--line-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.way-icon svg { width: 17px; height: 17px; }
.way h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.way p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.way .way-val { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--gold-bright); margin-top: 0.5rem; display: block; }

.form-card { border: 1px solid var(--line-strong); border-radius: 6px; padding: clamp(1.8rem, 3.5vw, 2.8rem); background: var(--ink-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--ink); border: 1px solid var(--line); border-radius: 3px;
  padding: 0.9rem 1rem; color: var(--cream); font-family: var(--sans); font-size: 16px;
  transition: border-color 0.3s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; }

/* ---------- CTA ---------- */
.cta {
  border-top: 1px solid var(--line);
  text-align: center; padding-top: clamp(7rem, 13vw, 11rem); padding-bottom: clamp(7rem, 13vw, 11rem);
  position: relative; overflow: hidden;
}
.cta .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: sepia(0.5) saturate(0.8) brightness(0.4);
}
.cta .tint {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(13,11,8,0.55) 0%, var(--ink) 90%);
}
.cta .label { justify-content: center; margin-bottom: 2rem; }
.cta .label::after { content: ''; width: 2rem; height: 1px; background: var(--gold-dim); }
.cta h2 {
  font-size: clamp(2.5rem, 5.6vw, 4.8rem); line-height: 1.12; letter-spacing: -0.015em;
  max-width: 16ch; margin: 0 auto 1.8rem; position: relative;
  text-shadow: 0 4px 40px rgba(0,0,0,0.7);
}
.cta-body { color: var(--cream-dim); font-size: 1.12rem; max-width: 48ch; margin: 0 auto 3rem; line-height: 1.85; position: relative; }
.cta-actions { display: flex; justify-content: center; gap: 1.1rem; flex-wrap: wrap; position: relative; }
.cta-note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 2rem; position: relative; }
.cta-note b { color: var(--gold); font-weight: 400; }
.cta .reveal { position: relative; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--ink-2); }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad);
}
.foot-brand .logo { font-size: 1.5rem; margin-bottom: 1.2rem; }
.foot-brand p { font-size: 15px; color: var(--muted); line-height: 1.8; max-width: 32ch; }
.foot-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 400; margin-bottom: 1.4rem;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.foot-col a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.25s; }
.foot-col a:hover { color: var(--gold-bright); }
.foot-col .fc-line { font-size: 15px; color: var(--muted); line-height: 1.8; }
.foot-col .fc-line b { color: var(--cream-dim); font-weight: 500; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 1.6rem var(--pad);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.foot-bottom a { color: var(--muted); text-decoration: none; }
.foot-bottom a:hover { color: var(--gold-bright); }

/* ---------- big numbers band ---------- */
.numbers-band {
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink-2);
}
.nb-cell {
  padding: clamp(2.2rem, 4vw, 3.2rem) var(--pad);
  border-right: 1px solid var(--line); text-align: center;
}
.nb-cell:last-child { border-right: none; }
.nb-num { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.2rem); color: var(--gold-bright); line-height: 1.1; }
.nb-num i { font-style: italic; font-size: 0.55em; color: var(--gold-dim); }
.nb-desc { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 0.7rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-main { display: flex; flex-direction: column; align-items: flex-start; }
  .bots { width: min(560px, 100%); margin-top: 1.5rem; }
  .console { transform: none; }
  .svc-detail { grid-template-columns: 1fr; gap: 1.8rem; }
  .svc-detail .meta { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .problem-grid, .vert-grid, .team-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc { grid-template-columns: 3rem 1fr; grid-template-rows: auto auto auto; row-gap: 0.6rem; }
  .svc-icon { grid-row: 1; }
  .svc h3 { grid-column: 2; }
  .svc p { grid-column: 2; }
  .svc-arrow { display: none; }
  .process-grid { grid-template-columns: 1fr; gap: 3rem; }
  .results-grid, .values-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .img-break .bg { background-attachment: scroll; }
  .vert-float { display: none; }
  .numbers-band { grid-template-columns: repeat(2, 1fr); }
  .nb-cell:nth-child(2) { border-right: none; }
  .nb-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  nav > .btn { display: none; }
  .logo { font-size: 1.15rem; white-space: nowrap; }
  .logo small { display: none; }
  .pulse-strip { grid-template-columns: 1fr; }
  .pulse-cell { border-right: none; border-bottom: 1px solid var(--line); padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .pulse-cell:last-child { border-bottom: none; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: none; border-top: 1px solid var(--line); margin-top: 0.5rem; }
  .vert-item { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .console-body { grid-template-columns: 1fr; }
  .agent-col { border-right: none; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
  .agent-tile { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .agent-tile:nth-child(odd) { border-right: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero h1 .line span { transform: none; }
  .hero .label, .hero-sub, .hero-actions, .bots, .pulse-strip { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .bubble, .chat-flag, .chat-foot, .typing { opacity: 1; transform: none; }
  .img-break .bg { background-attachment: scroll; }
}

/* ============================================================
   BLOG — index grid + article reading view
   ============================================================ */

/* ---- index grid ---- */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.4vw, 2rem);
}
.blog-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--ink-2); text-decoration: none; color: var(--cream);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.blog-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.blog-card-top {
  position: relative; aspect-ratio: 16 / 10;
  display: flex; align-items: flex-end; padding: 1.2rem;
  background: linear-gradient(150deg, var(--ink-3) 0%, #241d13 55%, rgba(201,163,95,0.22) 130%);
  overflow: hidden;
}
.blog-card-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s var(--ease);
}
.blog-card:hover .blog-card-img { transform: scale(1.06); }
.blog-card-top::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(155deg, rgba(13,11,8,0.30) 0%, rgba(13,11,8,0.55) 55%, rgba(13,11,8,0.88) 100%);
}
.blog-card-num {
  font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: rgba(231,201,140,0.55); line-height: 1; position: relative; z-index: 2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.blog-card-cat {
  position: absolute; top: 1.2rem; left: 1.2rem; z-index: 2;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-bright); background: rgba(13,11,8,0.55);
  border: 1px solid var(--line); border-radius: 40px; padding: 0.35rem 0.8rem;
  backdrop-filter: blur(6px);
}
.blog-card-body { padding: 1.5rem 1.4rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h3 { font-size: 1.3rem; line-height: 1.28; letter-spacing: -0.01em; }
.blog-card-body p { font-size: 0.96rem; color: var(--muted); line-height: 1.75; margin-top: 0.8rem; flex: 1; }
.blog-card-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold); margin-top: 1.4rem; display: flex; gap: 0.6rem; align-items: center;
}
.blog-card-meta span { color: var(--muted); }

/* ---- article reading view ---- */
.article { padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(4rem, 8vw, 6rem); }
.article-wrap { max-width: 720px; margin: 0 auto; }
.article-head { max-width: 720px; margin: 0 auto clamp(2.2rem, 4vw, 3rem); }
.article-cat {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.article-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.14; letter-spacing: -0.015em;
  margin-top: 1.2rem;
}
.article-meta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 1.6rem; display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap;
}
.article-meta b { color: var(--cream-dim); font-weight: 400; }
.article-hr { border: none; border-top: 1px solid var(--line); max-width: 720px; margin: 0 auto; }

.prose { font-size: 1.08rem; line-height: 1.85; color: var(--cream-dim); }
.prose > p { margin-bottom: 1.5rem; }
.prose .lead { font-size: 1.25rem; line-height: 1.7; color: var(--cream); margin-bottom: 2rem; }
.prose h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.25; color: var(--cream);
  margin: 2.8rem 0 1.1rem; letter-spacing: -0.01em;
}
.prose h3 { font-size: 1.25rem; color: var(--cream); margin: 2rem 0 0.8rem; }
.prose strong { color: var(--cream); font-weight: 600; }
.prose a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.5rem 1.2rem; }
.prose li { margin-bottom: 0.6rem; padding-left: 0.4rem; }
.prose li::marker { color: var(--gold); }
.prose blockquote {
  border-left: 2px solid var(--gold); padding: 0.4rem 0 0.4rem 1.5rem; margin: 2rem 0;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--cream);
}
.prose .callout {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.5rem 1.6rem; margin: 2rem 0;
}
.prose .callout p { margin: 0; font-size: 1rem; color: var(--muted); }
.prose .callout b { color: var(--gold-bright); font-weight: 500; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.98rem;
}
.prose table th, .prose table td {
  text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
.prose table th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}
.prose table td { color: var(--cream-dim); }

.article-foot {
  max-width: 720px; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; padding-top: 2rem;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; flex-wrap: wrap;
}
.article-foot .back { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.article-foot .back:hover { color: var(--gold-bright); }

@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---- article hero image ---- */
.article-figure { max-width: 960px; margin: 0 auto clamp(2rem, 4vw, 3.2rem); }
.article-figure .fig-img {
  aspect-ratio: 16 / 9; background-size: cover; background-position: center;
  border-radius: 14px; border: 1px solid var(--line); overflow: hidden;
}
.article-figure .fig-cap {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.9rem; text-align: center;
}

/* ============================================================
   CASE STUDIES — grid of client outcomes
   ============================================================ */
.case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.case-card {
  background: var(--ink-2); padding: clamp(1.6rem, 2.4vw, 2.2rem);
  display: flex; flex-direction: column; gap: 0.85rem;
  transition: background 0.4s var(--ease); position: relative; overflow: hidden;
}
.case-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.case-card:hover { background: var(--ink-3); }
.case-card:hover::before { transform: scaleX(1); }
a.case-card { text-decoration: none; color: inherit; cursor: pointer; }
a.case-card:hover .case-name { color: var(--gold-bright); }
.case-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.case-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.case-metric { font-family: var(--serif); font-size: 1.12rem; color: var(--gold-bright); line-height: 1.35; }
.case-metric em { font-style: italic; color: var(--cream-dim); }
.case-card p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.case-who { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: auto; padding-top: 0.4rem; }
.case-who b { color: var(--cream-dim); font-weight: 400; }
@media (max-width: 980px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }

/* ---- centered section link ---- */
.sec-cta { margin-top: clamp(2.2rem, 4vw, 3rem); text-align: center; }

/* ---- team: full-width member grid + name links ---- */
.team-cards.team-full {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.member-name a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--gold-dim); transition: color 0.25s, border-color 0.25s;
}
.member-name a:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
@media (max-width: 980px) { .team-cards.team-full { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-cards.team-full { grid-template-columns: 1fr; } }
