/* ==========================================================================
   Techmave Solutions — styles.css
   Palette: warm ivory / near-black ink / copper accent (no blue anywhere)
   Type: Space Grotesk (display) · Manrope (body) · JetBrains Mono (labels)
   Grid: 8px · radii mixed (editorial 0–4px, cards 8px, buttons pill)
   ========================================================================== */

:root {
  /* — colors — */
  --ivory:        #F5F3ED;   /* page */
  --ivory-2:      #EDEAE1;   /* media surfaces */
  --card:         #FBFAF6;   /* raised card */
  --ink:          #14141A;   /* primary text / dark surfaces */
  --ink-2:        #0F0F14;   /* darkest surface */
  --muted:        #75736B;   /* secondary text on light */
  --muted-dark:   #93908A;   /* secondary text on dark */
  --line:         rgba(20, 20, 26, 0.14);
  --line-dark:    rgba(245, 243, 237, 0.13);
  --copper:       #B4654A;   /* accent */
  --copper-dark:  #C8825F;   /* accent on dark surfaces */
  /* copper darkened with ink — the button fill. Plain copper fails AA
     for 14px text in either ivory or ink (3.86 / 4.28); this tint clears it:
     ivory on it = 5.2:1, ink on --copper-dark = 5.95 */
  --copper-fill:  color-mix(in srgb, var(--copper) 80%, var(--ink));

  /* — type — */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'SFMono-Regular', monospace;

  /* — motion — */
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 700ms;

  /* — radius — */
  --r-0: 0px;
  --r-xs: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;

  /* — shadow (warm-tinted) — */
  --shadow-md: 0 6px 24px rgba(20, 20, 26, 0.08);
  --shadow-lg: 0 16px 48px rgba(20, 20, 26, 0.10);
}

/* ————————————————————————— base ————————————————————————— */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

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

::selection { background: var(--copper); color: var(--ivory); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
}

p { margin: 0; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* skip link */
.skip {
  position: absolute;
  left: 16px; top: -48px;
  background: var(--ink);
  color: var(--ivory);
  padding: 8px 16px;
  border-radius: var(--r-xs);
  z-index: 100;
  transition: top var(--t-base) var(--ease-quart);
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* ————————————————————————— motion primitives ————————————————————————— */

/* scroll reveal */
[data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity  var(--t-slow) var(--ease-expo) var(--d, 0s),
    transform var(--t-slow) var(--ease-expo) var(--d, 0s);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* hero line-mask reveal */
.hero__title .ln {
  display: block;
  overflow: hidden;
}
.hero__title .ln > span {
  display: block;
  transform: translateY(110%);
  animation: rise 0.9s var(--ease-expo) forwards;
  animation-delay: calc(0.15s + var(--l, 0) * 0.1s);
}
@keyframes rise { to { transform: translateY(0); } }
.hero__title .ln:nth-child(1) > span { --l: 0; }
.hero__title .ln:nth-child(2) > span { --l: 1; }
.hero__title .ln:nth-child(3) > span { --l: 2; }

/* ————————————————————————— nav ————————————————————————— */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: color-mix(in srgb, var(--ivory) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease-quart);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav__mark-dot { color: var(--copper); }

.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--t-fast) var(--ease-quart);
}
.nav__links a:hover { color: var(--ink); }

.nav__end { display: flex; align-items: center; gap: 16px; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: transparent;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-base) var(--ease-quart), opacity var(--t-base) var(--ease-quart);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 24px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* mobile menu */
.nav__menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 96px 24px 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow) var(--ease-quart), visibility 0s calc(var(--t-slow) + 100ms);
}
.nav__menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t-slow) var(--ease-quart);
}
.nav__menu nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav__menu nav a {
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 44px);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.6s var(--ease-expo), opacity 0.6s var(--ease-expo);
}
.nav__menu.is-open nav a { transform: translateY(0); opacity: 1; }
.nav__menu.is-open nav a:nth-child(2) { transition-delay: 0.06s; }
.nav__menu.is-open nav a:nth-child(3) { transition-delay: 0.12s; }
.nav__menu.is-open nav a:nth-child(4) { transition-delay: 0.18s; }
.nav__menu.is-open nav a:nth-child(5) { transition-delay: 0.24s; }

/* ————————————————————————— buttons ————————————————————————— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--ivory);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform var(--t-base) var(--ease-quart),
              box-shadow var(--t-base) var(--ease-quart),
              background var(--t-base) var(--ease-quart),
              color var(--t-base) var(--ease-quart),
              border-color var(--t-base) var(--ease-quart);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 100ms; }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
/* dominant primary — copper-family fill with ivory text.
   AA check at 14px/600 (needs 4.5:1): plain --copper is 3.87:1 vs ivory, so
   we darken with 20% ink → 4.9:1. Hover flips to ink (14.6:1). */
.btn--primary {
  background: var(--copper-fill);
  border-color: var(--copper-fill);
  color: var(--ivory);
}
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }
.btn__label, .btn__arrow {
  transition: transform var(--t-base) var(--ease-quart);
}
.btn:hover .btn__label { transform: translateX(2px); }
.btn:hover .btn__arrow { transform: translateX(4px); }
/* dark-section CTA echoes the same copper fill; hover lights to copper-dark w/ ink text (5.6:1) */
.btn--on-dark {
  background: var(--copper-fill);
  color: var(--ivory);
  border-color: var(--copper-fill);
}
.btn--on-dark:hover { background: var(--copper-dark); color: var(--ink); border-color: var(--copper-dark); }

/* ————————————————————————— hero ————————————————————————— */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 0 56px;
  overflow: hidden;
}
/* giant outlined wordmark bleeding off the right edge — quiet ink-14% stroke */
.hero__ghost {
  position: absolute;
  top: 46%;
  right: -2vw;
  transform: translateY(-50%);
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(240px, 34vw, 620px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  user-select: none;
  pointer-events: none;
}
.hero__ghost .hero__ghost-dot { -webkit-text-stroke-color: var(--copper); }
.hero .container { position: relative; z-index: 1; }
/* double underline on the keyword — copper, generous offset; solid fallback is fine */
.hero__hl {
  text-decoration-line: underline;
  text-decoration-style: double;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 32px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-expo) 0.05s forwards;
}
.hero__title {
  font-size: clamp(56px, 9.6vw, 150px);
  font-weight: 500;
  max-width: 15ch;
}
.hero__title em { font-style: italic; }
.hero__sub {
  margin-top: 40px;
  max-width: 44ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-expo) 0.65s forwards;
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-expo) 0.8s forwards;
}
.hero__meta {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-expo) 0.95s forwards;
}
.hero__meta-now { color: var(--copper); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ————————————————————————— capability ticker ————————————————————————— */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  background: var(--ivory);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tick 46s linear infinite;
}
.ticker__track span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  padding-right: 34px;
}
.ticker__track i {
  color: var(--copper);
  font-style: normal;
  padding-right: 34px;
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ————————————————————————— section scaffolding ————————————————————————— */

.work, .services, .ai { padding-block: 128px; }
/* rhythm: not every section runs 128 — the breathing statement opens up
   (144px) and the journal eases off to 104px, so the page stops feeling metronomic */

.secno {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}
.secno::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--copper);
}
.secno span { color: var(--copper); }

.h2 {
  font-size: clamp(34px, 4.6vw, 52px);
}
.h2 em { font-style: italic; color: var(--copper); }
.h2--light { color: var(--ivory); }

/* ————————————————————————— work carousel ————————————————————————— */

.work__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
}
.work__ctrl { text-align: right; }
.work__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.work__arrows { display: flex; gap: 8px; justify-content: flex-end; }
.arr {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  transition: background var(--t-base) var(--ease-quart),
              color var(--t-base) var(--ease-quart),
              transform var(--t-base) var(--ease-quart),
              border-color var(--t-base) var(--ease-quart);
}
.arr:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); transform: translateY(-2px); }
.arr:active { transform: translateY(0) scale(0.96); }

/* edge-to-edge track; cards align to the 1200px container via matched gutters */
.car-wrap { }
.car {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px max(24px, calc((100% - 1200px) / 2)) 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.car::-webkit-scrollbar { display: native; display: none; }
.car:focus-visible { outline-offset: -6px; }

.card {
  flex: 0 0 auto;
  width: clamp(280px, 38vw, 480px);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-quart), box-shadow var(--t-base) var(--ease-quart);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card__media {
  aspect-ratio: 4 / 3;
  background: var(--ivory-2);
  overflow: hidden;
}

/* placeholder artwork — ink on ivory, one pattern per card */
.ph {
  width: 100%; height: 100%;
  transition: transform 0.8s var(--ease-expo);
}
.card:hover .ph { transform: scale(1.05); }

.ph--rings {
  background:
    repeating-radial-gradient(circle at 72% 28%,
      transparent 0 26px,
      var(--ink) 26px 28px,
      transparent 28px 54px,
      var(--ink) 54px 55.5px,
      transparent 55.5px) ;
  opacity: 0.85;
}
.ph--stripes {
  background: repeating-linear-gradient(90deg,
    transparent 0 22px,
    var(--ink) 22px 24px);
  opacity: 0.55;
}
.ph--dots {
  background-image: radial-gradient(var(--ink) 1.6px, transparent 1.7px);
  background-size: 26px 26px;
  background-position: 13px 13px;
  opacity: 0.6;
}
.ph--num {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.ph--num b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 180px;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.14;
  margin: 0 24px 12px;
}
.ph--arc {
  background:
    radial-gradient(circle at 50% 132%, transparent 0 44%, var(--ink) 45% 46%, transparent 46.5% 62%, var(--ink) 63% 64%, transparent 64.5%) ;
  opacity: 0.8;
}

.card__body { padding: 26px 28px 30px; }
.card__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.card__title {
  font-size: 24px;
  margin: 0 0 10px;
}
.card__line {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 18px;
}
.card__more {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  width: max-content;
  transition: color var(--t-base) var(--ease-quart), border-color var(--t-base) var(--ease-quart);
}
.card__more:hover { color: var(--copper); border-color: var(--copper); }

.card--cta {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}
.card__body--cta { display: flex; flex-direction: column; justify-content: center; min-height: 280px; }
.card--cta .card__meta { color: var(--muted-dark); }
.card--cta .card__title { color: var(--ivory); font-size: 28px; }
.card--cta .card__line { color: var(--muted-dark); }

.work__foot {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  padding-inline: max(24px, calc((100% - 1200px) / 2));
}
.car__bar {
  flex: 1;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.car__bar span {
  display: block;
  height: 100%;
  width: 12%;
  background: var(--ink);
  transition: width 120ms linear;
}
.car__idx { color: var(--muted); min-width: 64px; text-align: right; }

/* ————————————————————————— statement (breathing section) ————————————————————————— */

.statement {
  padding-block: 144px;
  text-align: left;
}
.statement__q {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.14;
  max-width: 24ch;
}
.statement__dot { color: var(--copper); }
/* copper punctuation flourish — oversized open/close ticks in a low-contrast wash */
.statement__tick {
  color: var(--copper);
  opacity: 0.35;
  font-weight: 400;
  font-size: 1.35em;
  line-height: 0;
  vertical-align: -0.12em;
  margin-right: 0.08em;
  letter-spacing: 0;
}
.statement__tick--end {
  margin: 0 0 0 0.14em;
}

/* ————————————————————————— services index ————————————————————————— */

.services__head { max-width: 640px; margin-bottom: 40px; }
.services__sub {
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
}

.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.svc {
  border-bottom: 1px solid var(--line);
  transition: background var(--t-base) var(--ease-quart);
}
.svc:hover { background: color-mix(in srgb, var(--ivory-2) 45%, transparent); }

.svc__head {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 20px;
  background: none;
  border: 0;
  padding: 26px 8px;
  text-align: left;
}
.svc__num { color: var(--muted); }
.svc__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 38px);
  letter-spacing: -0.015em;
  transition: color var(--t-base) var(--ease-quart);
}
.svc__head:hover .svc__name { color: var(--copper); }
.svc__note {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.svc__plus {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--muted);
  transition: transform var(--t-base) var(--ease-quart), color var(--t-base) var(--ease-quart);
}
.svc.is-open .svc__plus { transform: rotate(45deg); color: var(--copper); }

.svc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-quart);
}
.svc.is-open .svc__panel { grid-template-rows: 1fr; }
.svc__inner { overflow: hidden; min-height: 0; }
.svc__inner p {
  padding: 0 8px 0 76px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.svc__inner p:last-of-type { padding-bottom: 30px; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 0 30px 34px !important; }
.svc__tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}

/* ————————————————————————— dark sections ————————————————————————— */

.dark {
  background: var(--ink);
  color: var(--ivory);
}
.dark .secno { color: var(--muted-dark); }
.dark .secno span { color: var(--copper-dark); }
.dark .secno::before { background: var(--copper-dark); }

/* ————————————————————————— joint ventures ————————————————————————— */

.jv { padding-block: 128px; background: var(--ink-2); }

.jv__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.jv__lead {
  margin-top: 28px;
  font-size: 18px;
  color: var(--ivory);
  opacity: 0.92;
  max-width: 46ch;
}
.jv__body {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted-dark);
  max-width: 46ch;
}

.jv__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
}
.jv__steps li {
  display: grid;
  grid-template-columns: 48px 150px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
}
.jv__steps .mono { color: var(--copper-dark); }
.jv__steps h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.jv__steps li p:last-child {
  margin: 0;
  color: var(--muted-dark);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ————————————————————————— AI agents ————————————————————————— */

.ai__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 56px;
}
.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid var(--copper);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  white-space: nowrap;
}
.ai__sub {
  grid-column: 1 / -1;
  margin-top: 24px;
  max-width: 64ch;
  color: var(--muted);
  font-size: 17px;
}

.ai__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: start;
}

/* chat demo card */
.chat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.chat__head .mono { color: var(--muted); }
.chat__live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}
.chat__live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.8); }
}

.chat__msgs {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--ivory-2);
}
.chat__msg {
  max-width: 88%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px 10px 10px 10px;
  padding: 12px 16px;
}
.chat__who {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.chat__msg > p:last-child { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.chat__msg--agent {
  align-self: flex-end;
  background: var(--ink);
  border-color: var(--ink);
  border-radius: 10px 2px 10px 10px;
}
.chat__msg--agent .chat__who { color: var(--copper-dark); }
.chat__msg--agent p:last-child { color: var(--ivory); }

.chat__caret {
  display: inline-block;
  width: 2px; height: 14px;
  background: var(--copper-dark);
  margin-left: 3px;
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chat__status {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--card);
}
.chat__status.is-done { color: var(--copper); }

/* agent list */
.ai__item {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.ai__item:first-child { border-top: 0; padding-top: 0; }
.ai__item h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.ai__item p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 52ch;
}
.ai__item em { font-style: italic; color: var(--ink); }
.ai__spec {
  margin-top: 14px !important;
  font-size: 10px !important;
  color: var(--copper) !important;
}
.ai__note {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 2px solid var(--copper);
  background: color-mix(in srgb, var(--ivory-2) 55%, transparent);
  font-size: 15px;
  color: var(--ink);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

/* ————————————————————————— CTA ————————————————————————— */

.cta {
  padding-block: 144px;
  background: var(--ink);
}
.cta__inner { max-width: 720px; }
.cta__title {
  font-size: clamp(44px, 7vw, 96px);
  margin: 0;
}
.cta__sub {
  margin-top: 32px;
  font-size: 17px;
  color: var(--muted-dark);
  max-width: 46ch;
}
.cta .btn { margin-top: 44px; }

/* ————————————————————————— footer ————————————————————————— */

.footer {
  background: var(--ink-2);
  padding: 40px 0 32px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
}
.footer__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ivory);
  text-decoration: none;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__nav a, .footer__social a {
  color: var(--muted-dark);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--t-base) var(--ease-quart);
}
.footer__nav a:hover, .footer__social a:hover { color: var(--ivory); }
.footer__social { display: flex; gap: 20px; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.footer__est { color: var(--copper-dark); }

/* ————————————————————————— journal (blog) ————————————————————————— */

.journal { padding-block: 104px; }

.journal__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
/* small asymmetric offset — the journal is the editorial section, so its
   heading steps in from the container edge, matching the 5/4/3 post grid */
.journal__head > div { margin-left: 24px; }
.journal__all {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.journal__all span { color: var(--copper); }
.journal__all:hover { border-bottom: 1px solid var(--ink); }

.journal__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
/* asymmetric: first post wide, two medium, one tall CTA tile */
.post {
  grid-column: span 5;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.post:nth-child(2) { grid-column: span 4; }
.post:nth-child(3) { grid-column: span 3; }
.post:nth-child(4) { grid-column: 1 / 7; }

.post__media {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background-color: var(--ivory-2);
  margin-bottom: 20px;
  transition: transform 0.5s var(--ease-expo);
}
.post:hover .post__media { transform: translateY(-3px); }
.post__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.post__title {
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 20ch;
  transition: color var(--t-base) var(--ease-quart);
}
.post:hover .post__title { color: var(--copper); }
.post__line {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}

.post--more {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  justify-content: flex-end;
}
.post__body--more { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.post--more .mono { color: var(--copper-dark); }
.post--more .post__title { color: var(--ivory); font-size: 19px; max-width: none; }
.post--more:hover { background: var(--ink-2); }

/* ————————————————————————— preloader ————————————————————————— */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ivory);
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease-quart), visibility 0s linear 0.6s;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader__box { width: min(280px, 60vw); text-align: center; }
.preloader__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
}
.preloader__mark em { color: var(--copper); font-style: normal; margin-left: 2px; }
.preloader__bar {
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--ink);
  border-radius: 2px;
  animation: slide-bar 1.1s var(--ease-in-out, ease-in-out) infinite;
}
@keyframes slide-bar {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ————————————————————————— responsive ————————————————————————— */

@media (max-width: 860px) {
  .nav__links, .nav__end .btn { display: none; }
  .nav__toggle { display: block; }

  .work, .services, .ai { padding-block: 88px; }
  .hero { padding-top: 128px; }

  .work__head { grid-template-columns: 1fr; }
  .work__ctrl { text-align: left; }
  .work__arrows { justify-content: flex-start; }

  .card { width: min(76vw, 420px); }

  .jv { padding-block: 88px; }
  .jv__grid { grid-template-columns: 1fr; gap: 48px; }
  .jv__steps li { grid-template-columns: 40px 1fr; }
  .jv__steps li p:last-child { grid-column: 2; }

  .ai__head { grid-template-columns: 1fr; }
  .ai__grid { grid-template-columns: 1fr; gap: 48px; }

  .journal { padding-block: 88px; }
  .journal__grid { grid-template-columns: 1fr 1fr; }
  .journal__head { margin-bottom: 36px; }
  .journal__all { display: none; }
  .post { grid-column: auto !important; }
  .post--more { grid-column: 1 / -1 !important; }

  .cta { padding-block: 96px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .svc__head { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 22px 4px; }
  .svc__inner p { padding-left: 4px; }
  .svc__inner p:last-of-type { padding-bottom: 26px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

/* ————————————————————————— reduced motion ————————————————————————— */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate],
  .hero__title .ln > span,
  .hero__eyebrow, .hero__sub, .hero__actions, .hero__meta,
  .nav__menu nav a {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .ticker__track { animation: none; }
  .chat__live i { animation: none; }
  .chat__caret { animation: none; opacity: 0; }
  .ph, .card, .btn, .arr { transition: none !important; }
}
