/* ==========================================================================
   rajnish.dev — shared stylesheet
   Expressive direction (productionized from the approved mockup #2).
   Sections: tokens · base · nav · buttons · hero · stat-bar · ribbon ·
   section shells · services lanes · work (rows + grid + list) · testimonials ·
   page-hero · prose · case-study · forms · footer · reveal · view-transitions ·
   responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-body: "General Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* signature accent: warm coral — deepened for AA + a more premium feel */
  --accent: #e8431f;        /* UI + large display text (>=3:1) */
  --accent-deep: #c93914;   /* button hover / pressed */
  --accent-text: #bd3717;   /* small body links on light (>=4.5:1) */
  --accent-soft: #ffe9e2;

  --bg: #f7f4ef;            /* warm paper */
  --bg-elev: #fffdfa;
  --ink: #161311;          /* near-black warm ink */
  --ink-soft: #5a534d;
  --ink-faint: #8a827b;
  --line: #e6dfd5;
  --line-strong: #d8cfc2;

  /* dark band tokens (used inside inverted sections in light mode) */
  --band-bg: #161311;
  --band-ink: #f7f4ef;
  --band-ink-soft: #b9b1a8;
  --band-line: #2c2722;
  --band-accent: #ff7a59;  /* accent that reads on the dark band */

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22,19,17,.06), 0 6px 18px rgba(22,19,17,.05);
  --shadow-lift: 0 18px 50px -18px rgba(22,19,17,.28);
  --maxw: 1240px;
  --measure: 68ch;
  --ease: cubic-bezier(.22,.61,.36,1);

  color-scheme: light dark;
}

[data-theme="dark"] {
  --accent: #ff6f4d;
  --accent-deep: #ff8a6e;
  --accent-text: #ff8a6b;
  --accent-soft: #2a1812;

  --bg: #100e0c;
  --bg-elev: #18150f;
  --ink: #f4efe7;
  --ink-soft: #b1a99f;
  --ink-faint: #847c72;
  --line: #2a251f;
  --line-strong: #3a342c;

  --band-bg: #1c1812;
  --band-ink: #f4efe7;
  --band-ink-soft: #b1a99f;
  --band-line: #322c24;
  --band-accent: #ff6f4d;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4);
  --shadow-lift: 0 22px 60px -20px rgba(0,0,0,.7);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

/* subtle grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::before { opacity: .06; mix-blend-mode: screen; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.04; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* two-color focus ring (survives high-contrast; >=3:1) */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--bg);
  border-radius: 6px;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
}
.accent-text { color: var(--accent-text); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.wordmark .dot { color: var(--accent); }
.wordmark:hover .dot { animation: pop .5s var(--ease); }
@keyframes pop { 0%{transform:scale(1)} 40%{transform:scale(1.6)} 100%{transform:scale(1)} }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 14px; }

.toggle {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .2s var(--ease), background .3s var(--ease);
}
.toggle:hover { transform: translateY(-2px) rotate(-8deg); border-color: var(--accent); }
.toggle svg { width: 19px; height: 19px; }
.toggle .moon { display: none; }
[data-theme="dark"] .toggle .sun { display: none; }
[data-theme="dark"] .toggle .moon { display: block; }

/* mobile menu */
.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.burger svg { width: 20px; height: 20px; }
.mobile-menu {
  position: fixed;
  inset: 74px 0 0;
  z-index: 49;
  background: var(--bg);
  padding: 28px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a.m-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.m-link[aria-current="page"] { color: var(--accent-text); }
.mobile-menu .btn { margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 13px;
  padding: 12px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px -12px var(--accent);
}
[data-theme="dark"] .btn--primary { color: #1a0d09; }
.btn--primary:hover { background: var(--accent-deep); box-shadow: 0 16px 34px -12px var(--accent); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--lg { padding: 16px 28px; font-size: 16.5px; border-radius: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.magnetic { will-change: transform; }

/* text link with animated arrow */
.tlink {
  color: var(--accent-text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  width: fit-content;
}
.tlink .arrow { transition: transform .3s var(--ease); }
.tlink:hover .arrow { transform: translateX(5px); }

/* ---------- Hero (home) ---------- */
.hero { padding: 70px 0 40px; position: relative; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  padding: 8px 15px 8px 12px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-2.2deg);
  margin-bottom: 30px;
}
.badge .pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: #1fbf6b;
  box-shadow: 0 0 0 0 rgba(31,191,107,.55);
  animation: pulse 2.2s infinite var(--ease);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31,191,107,.5); }
  70% { box-shadow: 0 0 0 10px rgba(31,191,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,191,107,0); }
}

.hero__h1 {
  font-size: clamp(44px, 7.2vw, 96px);
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.1;
  max-width: 20ch;
  margin-bottom: 28px;
}
.hero__h1 .lead { color: var(--ink); }
.hero__h1 .accent { color: var(--accent); position: relative; white-space: nowrap; }
.hero__h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 8px;
  background: var(--accent);
  opacity: .22;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  animation: draw 1s .5s var(--ease) forwards;
}
@keyframes draw { to { transform: scaleX(1); } }

.hero__sub {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 36px;
  line-height: 1.5;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

/* ---------- Stat bar ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 0;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  font-variant-numeric: tabular-nums;
}
.stat { display: flex; align-items: center; gap: 10px; padding-right: 26px; }
.stat:not(:last-child) { border-right: 1px solid var(--line); margin-right: 26px; }
.stat__big { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.stat__lbl { font-size: 14px; color: var(--ink-soft); }
.stat__lbl b { color: var(--ink); font-weight: 600; }
.star { color: var(--accent-text); }

/* ---------- Ribbon (signature marquee) ---------- */
.ribbon {
  margin-top: 56px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  transform: rotate(-1deg);
  box-shadow: var(--shadow-lift);
}
[data-theme="dark"] .ribbon { background: var(--accent); color: #1a0d09; }
.ribbon__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 28s linear infinite;
}
.ribbon:hover .ribbon__track, .ribbon:focus-within .ribbon__track { animation-play-state: paused; }
.ribbon__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
}
.ribbon__item .sep { color: var(--accent); font-size: 22px; }
[data-theme="dark"] .ribbon__item .sep { color: #1a0d09; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section shells ---------- */
.section { padding: 96px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section__title { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.03em; max-width: 16ch; }
.section__note { font-size: 16px; color: var(--ink-soft); max-width: 34ch; }

/* ---------- Services lanes (dark band) ---------- */
.band { background: var(--band-bg); color: var(--band-ink); border-radius: 40px; margin: 0 16px; }
.band .wrap { padding-top: 92px; padding-bottom: 92px; }
.band .eyebrow { color: var(--band-accent); }
.band .section__title { color: var(--band-ink); }
.band .section__note { color: var(--band-ink-soft); }

/* Services — editorial card grid on the band */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.svc-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 32px 28px;
  border: 1px solid var(--band-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0));
  color: inherit;
  transition: transform .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}
.svc-card--lg   { grid-column: span 7; min-height: 268px; }
.svc-card--sm   { grid-column: span 5; min-height: 268px; }
.svc-card--full { grid-column: span 12; }

/* animated top accent rule */
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
}
.svc-card:hover::before { transform: scaleX(1); }

.svc-card__num {
  position: absolute;
  top: 14px; right: 24px;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(82px, 9vw, 128px);
  line-height: .8;
  color: var(--band-ink);
  opacity: .05;
  pointer-events: none;
  transition: opacity .45s var(--ease), color .45s var(--ease);
}
.svc-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 1px solid var(--band-line);
  display: grid; place-items: center;
  color: var(--band-ink);
  transition: transform .45s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.svc-card__icon svg { width: 24px; height: 24px; }
.svc-card__head { display: flex; flex-direction: column; gap: 8px; }
.svc-card__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -0.02em; }
.svc-card--lg .svc-card__title,
.svc-card--full .svc-card__title { font-size: clamp(25px, 3vw, 36px); }
.svc-card__desc { font-size: 15.5px; line-height: 1.55; color: var(--band-ink-soft); max-width: 44ch; }

.svc-card__foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-top: 8px;
}
.svc-tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.svc-tags li {
  font-size: 12px; font-weight: 500; letter-spacing: .02em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--band-line);
  color: var(--band-ink-soft);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.svc-card__go {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; white-space: nowrap;
  color: var(--band-ink);
  transition: gap .35s var(--ease), color .35s var(--ease);
}
.svc-card__go svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }

.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
}
.svc-card:hover .svc-card__num { opacity: .13; color: var(--band-accent); }
.svc-card:hover .svc-card__icon { background: var(--accent); color: #1a0d09; border-color: var(--accent); transform: rotate(-6deg) scale(1.06); }
.svc-card:hover .svc-card__go { gap: 12px; color: var(--band-accent); }
.svc-card:hover .svc-card__go svg { transform: translate(3px,-3px); }
.svc-card:hover .svc-tags li { border-color: rgba(255,122,89,.4); color: var(--band-ink); }

/* ---------- Work: alternating full-bleed rows ---------- */
.work-rows { display: flex; flex-direction: column; gap: clamp(48px, 8vw, 110px); }
.work-row { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.work-row__media {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10;
  background: var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s var(--ease);
}
.work-row__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.work-row__media:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.work-row__media:hover img { transform: scale(1.04); }
.work-row:nth-child(even) .work-row__media { order: 2; }
.work-row__body { display: flex; flex-direction: column; }
.work-row__num { font-family: var(--font-display); font-size: 15px; color: var(--ink-faint); margin-bottom: 14px; }
.work-row__title { font-size: clamp(30px, 4vw, 50px); letter-spacing: -0.03em; margin-bottom: 14px; }
.work-row__host { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-weight: 500; font-size: 13.5px; letter-spacing: 0; color: var(--ink-faint); margin: 0 0 18px; }
.work-row__host svg { width: 14px; height: 14px; opacity: .85; flex: none; }
.work-row__desc { color: var(--ink-soft); font-size: 17px; line-height: 1.55; max-width: 46ch; margin-bottom: 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--accent-soft) 60%, var(--bg));
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: 100px;
}
[data-theme="dark"] .tag { background: var(--accent-soft); }
.work-row .tlink { margin-top: 22px; }

/* work coda + see-all */
.work-coda {
  margin-top: 48px;
  padding: 26px 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 17px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 14px;
}
.work-coda .plus { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--accent); line-height: 1; }
.work-coda b { color: var(--ink); font-weight: 600; }

/* ---------- Work: rest list (index) ---------- */
.work-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.work-list__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  align-items: center;
  padding: 28px 6px;
  border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease);
}
.work-list__item:hover { padding-left: 16px; }
.work-list__lead { display: flex; flex-direction: column; gap: 8px; }
.work-list__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
.work-list__desc { color: var(--ink-soft); font-size: 16px; max-width: 60ch; }
.work-list__item .tlink { white-space: nowrap; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.quote {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 38px 32px;
  position: relative;
  min-width: 0;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.quote:nth-child(odd) { transform: rotate(-1deg); }
.quote:nth-child(even) { transform: rotate(1deg); }
.quote:hover { transform: rotate(0deg) translateY(-6px); box-shadow: var(--shadow-lift); }
.quote__mark { font-family: var(--font-display); font-weight: 700; font-size: 84px; color: var(--accent); line-height: .6; margin-bottom: 8px; display: block; opacity: .9; }
.quote__text { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.2vw, 27px); letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 26px; }
.quote--sm .quote__text { font-size: clamp(18px, 2vw, 22px); }
.quote__by { display: flex; align-items: center; gap: 12px; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 16px; background: var(--accent); color: #fff; }
[data-theme="dark"] .quote__avatar { color: #1a0d09; }
.quote__name { font-weight: 600; font-size: 15.5px; }
.quote__src { font-size: 13.5px; color: var(--ink-faint); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 64px 0 36px; }
.page-hero__title { font-size: clamp(40px, 6.5vw, 84px); letter-spacing: -0.035em; max-width: 16ch; margin: 16px 0 0; }
.page-hero__sub { font-size: clamp(17px, 1.8vw, 21px); color: var(--ink-soft); max-width: 60ch; margin-top: 20px; line-height: 1.5; }

/* ---------- Services page blocks ---------- */
.svc-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.svc { padding: 48px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 28px; scroll-margin-top: 96px; }
.svc__num { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--accent-text); }
.svc__title { font-size: clamp(26px, 3.6vw, 42px); letter-spacing: -0.025em; margin-bottom: 14px; }
.svc__lead { color: var(--ink-soft); font-size: 17px; line-height: 1.55; max-width: 62ch; margin: 0 0 16px; }
.svc__who { font-size: 15px; color: var(--ink-faint); margin: 0 0 20px; }
.svc__who b { color: var(--ink); font-weight: 600; }
.svc__actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.svc__note { font-size: 14px; color: var(--ink-faint); margin: 16px 0 0; }
@media (max-width: 640px) { .svc { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Prose (long-form) ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; margin-top: 1.6em; }
.prose h3 { font-size: clamp(19px, 2.2vw, 23px); margin-top: 1.4em; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.2em; }
.prose li + li { margin-top: .5em; }
.prose a { color: var(--accent-text); border-bottom: 1px solid var(--accent); }

/* ---------- Case study ---------- */
.cs-hero { padding: 48px 0 8px; }
.cs-hero__eyebrow { color: var(--accent-text); }
.cs-hero__title { font-size: clamp(40px, 6.5vw, 88px); letter-spacing: -0.035em; margin: 14px 0 0; }
.cs-hero__sub { font-size: clamp(18px, 2vw, 24px); color: var(--ink-soft); max-width: 52ch; margin-top: 18px; line-height: 1.4; }
.cs-hero__img {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  background: var(--line);
}
.cs-hero__img img { width: 100%; height: auto; display: block; }

.cs-layout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 5vw, 72px); align-items: start; padding: 64px 0; }
.cs-meta { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.cs-meta__row { display: flex; flex-direction: column; gap: 4px; }
.cs-meta__k { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); font-weight: 600; }
.cs-meta__v { font-size: 16px; color: var(--ink); font-weight: 500; }
.cs-meta__v a { color: var(--accent-text); border-bottom: 1px solid var(--accent); }
.cs-summary { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.35; letter-spacing: -0.01em; }

.cs-figure { margin: 40px 0; }
.cs-figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--line); }
.cs-figure figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-faint); max-width: var(--measure); }
.cs-figure--wide img { border-radius: var(--radius-lg); }
.cs-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0; }
.cs-gallery figure { margin: 0; }

.cs-decision { padding: 24px 0; border-top: 1px solid var(--line); }
.cs-decision h3 { font-size: clamp(19px, 2.2vw, 24px); margin-bottom: 8px; }
.cs-decision p { color: var(--ink-soft); margin: 0; max-width: var(--measure); }

.cs-next { display: block; border-top: 1px solid var(--line); padding: 56px 0 0; margin-top: 24px; }
.cs-next__k { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); font-weight: 600; }
.cs-next__title { font-size: clamp(32px, 5vw, 60px); letter-spacing: -0.03em; margin-top: 10px; display: inline-flex; align-items: center; gap: 16px; }
.cs-next:hover .cs-next__title { color: var(--accent-text); }

/* ---------- Forms / contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: 40px; }
.contact-layout > * { min-width: 0; }
.form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; position: relative; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field .err { font-size: 13px; color: var(--accent-text); display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14.5px; color: var(--ink-soft); }
.form-status { font-size: 15px; font-weight: 600; }
.form-status.ok { color: #1f9d57; }
.form-status.bad { color: var(--accent-text); }
.contact-aside { display: flex; flex-direction: column; gap: 22px; }
.contact-aside .quote { transform: none; }

/* ---------- 3-step process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-elev); }
.step__n { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--accent); line-height: 1; }
.step__t { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 12px 0 6px; }
.step__d { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--band-bg); color: var(--band-ink); border-radius: 40px 40px 0 0; margin: 96px 16px 0; }
.footer .wrap { padding-top: 80px; padding-bottom: 50px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 64px; }
.footer__lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.03em; max-width: 13ch; line-height: 1.02; }
.footer__lead .accent { color: var(--band-accent); }
.footer__cta { display: flex; flex-direction: column; gap: 12px; }
.footer__email { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 30px); color: var(--band-ink); letter-spacing: -0.02em; position: relative; width: fit-content; }
.footer__email::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--band-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.footer__email:hover::after { transform: scaleX(1); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--band-line); padding-top: 28px; }
.footer__wordmark { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.footer__wordmark .dot { color: var(--band-accent); }
.footer__credit { font-size: 14px; color: var(--band-ink-soft); }
.footer__credit a { color: var(--band-ink); border-bottom: 1px solid var(--band-accent); }
.footer__socials { display: flex; gap: 22px; }
.footer__social { font-size: 14.5px; font-weight: 500; color: var(--band-ink-soft); display: inline-flex; align-items: center; gap: 6px; transition: color .25s var(--ease); }
.footer__social:hover { color: var(--band-accent); }
.footer__social svg { width: 15px; height: 15px; }

/* ---------- WhatsApp click-to-chat FAB ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 20px 0 15px;
  border-radius: 100px;
  background: #25d366; color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.55), 0 4px 14px rgba(0,0,0,.18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-fab:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 18px 38px -8px rgba(37,211,102,.7), 0 6px 18px rgba(0,0,0,.22); }
.wa-fab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 4px var(--bg); }
.wa-fab svg { width: 30px; height: 30px; flex: none; }
.wa-fab__label { white-space: nowrap; }
.wa-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 100px; pointer-events: none;
  animation: waPulse 2.8s var(--ease) infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 600px) {
  .wa-fab { width: 56px; height: 56px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
  .wa-fab__label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-fab::after { animation: none; } }

/* ---------- Easter egg (Konami code) ---------- */
.egg-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  z-index: 80; max-width: 92vw;
  background: var(--ink); color: var(--bg);
  padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow-lift);
  font-size: 15px; opacity: 0;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.egg-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.egg-toast a { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent); margin-left: 5px; }
.egg-confetti {
  position: fixed; top: -14px; width: 9px; height: 14px; z-index: 79;
  pointer-events: none; border-radius: 2px; will-change: transform, opacity;
  animation: eggFall linear forwards;
}
@keyframes eggFall { to { transform: translateY(106vh) rotate(720deg); opacity: .15; } }

/* ---------- Dev terminal (easter-egg hub + games) ---------- */
.term-overlay { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(8,8,6,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.term-overlay.open { display: flex; }
.term {
  width: min(760px, 100%); height: min(70vh, 560px);
  display: flex; flex-direction: column;
  background: #0c0d0b; color: #e8e6df;
  border: 1px solid #23261f; border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); overflow: hidden;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 14px; line-height: 1.5;
}
.term__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #121410; border-bottom: 1px solid #23261f; }
.term__dots { display: inline-flex; gap: 6px; }
.term__dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term__dots i:nth-child(1) { background: #ff5f57; } .term__dots i:nth-child(2) { background: #febc2e; } .term__dots i:nth-child(3) { background: #28c840; }
.term__title { flex: 1; text-align: center; color: #8a917f; font-size: 12.5px; }
.term__x { background: none; border: 0; color: #8a917f; cursor: pointer; font-size: 14px; line-height: 1; }
.term__x:hover { color: #e8e6df; }
.term__out { flex: 1; overflow-y: auto; padding: 14px 16px; }
.term__line { white-space: pre-wrap; word-break: break-word; margin: 2px 0; }
.term__line a { color: #ff6f4d; text-decoration: underline; }
.term__form { display: flex; align-items: center; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid #23261f; }
.term__prompt { color: #28c840; flex: none; }
.term__input { flex: 1; background: none; border: 0; outline: none; color: #e8e6df; font-family: inherit; font-size: inherit; }
.term .b { color: #ff6f4d; font-weight: 600; }
.term .dim { color: #6b7280; }
.term .err { color: #ff8a6b; }
.term-game { margin: 10px 0; }
.term-matrix { display: block; width: 100%; border-radius: 8px; margin: 8px 0; }
@media (max-width: 560px) { .term { height: 82vh; } }

/* footer terminal hint */
.term-hint { background: none; border: 0; cursor: pointer; color: var(--band-ink-soft); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; transition: color .2s var(--ease); }
.term-hint:hover { color: var(--band-accent); }
.term-hint__caret { color: var(--band-accent); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__h1 .accent::after { transform: scaleX(1); }
  .badge { transform: rotate(0); }
  .ribbon, .quote, .work-row__media { transform: none; }
}

/* ---------- View transitions (progressive enhancement) ---------- */
@view-transition { navigation: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cs-layout { grid-template-columns: 1fr; }
  .cs-meta { position: static; order: -1; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__right .btn--primary { display: none; }
  .burger { display: grid; }
  .work-row { grid-template-columns: 1fr; gap: 22px; }
  .work-row:nth-child(even) .work-row__media { order: 0; }
  .quotes { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .cs-gallery { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .svc-card,
  .svc-card--lg,
  .svc-card--sm,
  .svc-card--full { grid-column: 1 / -1; min-height: 0; }
  .band, .footer { margin-left: 8px; margin-right: 8px; border-radius: 28px; }
  .footer { border-radius: 28px 28px 0 0; }
  .wrap { padding: 0 20px; }
  .stat { padding-right: 18px; }
  .stat:not(:last-child) { margin-right: 18px; }
  .footer__top { flex-direction: column; }
  .work-list__item { grid-template-columns: 1fr; }
}
/* Tablet: use the extra width — two columns for cards & quotes */
@media (min-width: 600px) and (max-width: 900px) {
  .svc-card--lg, .svc-card--sm { grid-column: span 6; min-height: 0; }
  .svc-card--full { grid-column: 1 / -1; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 44px; }
  .hero__h1 { font-size: clamp(30px, 8.6vw, 44px); max-width: none; }
  /* let the highlighted phrase wrap instead of overflowing the viewport */
  .hero__h1 .accent { white-space: normal; }
  .hero__h1 .accent::after { display: none; }
  .section { padding: 64px 0; }
  .stat { border-right: none !important; margin-right: 0 !important; padding-right: 14px; }
  .quote, .cs-meta { padding-left: 24px; padding-right: 24px; }
  /* drop the playful tilt on small screens so cards don't bleed past the edge */
  .quote:nth-child(odd), .quote:nth-child(even) { transform: none; }
  .nav__inner { height: 64px; }
  .mobile-menu { inset: 64px 0 0; }
}
