/* ==========================================================================
   Inkyy — minimal homepage
   Direction: white page, ink type, neutral accents (3D elements to come)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f3;
  --surface: #f5f5f3;
  --ink: #141414;
  --ink-2: #5d5c57;
  --ink-3: #8e8c85;
  --line: rgba(20, 20, 20, 0.1);
  --accent: #141414;
  --accent-hover: #3a3a38;
  --accent-deep: #141414;
  --accent-soft: #ececea;
  --warm: #d6d4cf;
  --graphite: #3a3a38;
  --orange: #141414; /* the site UI is black and white; colour lives in the 3D renders */

  --font: "Funnel Display", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(96px, 12vw, 176px) 0; }
.section--tight { padding: clamp(64px, 8vw, 112px) 0; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.h2 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 32px var(--gutter);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head .h2 { max-width: 18ch; }
.section-head__side { display: grid; gap: 20px; align-content: start; padding-top: 6px; }
.section-head__side .lead { max-width: 44ch; }
.section-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.section-head--center .h2 { max-width: none; }
.section-head--center .section-head__side { justify-items: center; }
.section-head--left { grid-template-columns: 1fr; }
.section-head--left .h2 { max-width: none; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease);
}
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
/* "Book a call" buttons carry a small photo of who you'll talk to */
.btn--avatar { padding-left: 6px; }
.btn__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  transition: transform 0.6s var(--ease);
}
.btn--sm .btn__avatar { width: 32px; height: 32px; }
.btn--light .btn__avatar { box-shadow: 0 0 0 2px var(--ink); }
.btn--avatar:hover .btn__avatar { transform: rotate(-8deg) scale(1.06); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.22);
}
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--block { width: 100%; justify-content: center; }

/* fill sweep */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent-hover);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--ghost:hover { --btn-fg: #fff; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--accent-hover); }
.btn--light:hover { --btn-fg: #fff; }

/* text roll */
.btn__text {
  position: relative;
  display: block;
  overflow: hidden;
  height: 1.3em;
  line-height: 1.3em;
}
.btn__text span {
  display: block;
  transition: transform 0.6s var(--ease);
}
.btn__text span + span { position: absolute; top: 100%; left: 0; }
.btn:hover .btn__text span { transform: translateY(-100%); }
.btn__arrow { width: 14px; height: 14px; transition: transform 0.6s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.4s var(--ease), color 0.3s;
}
.link-arrow:hover { gap: 14px; color: var(--ink-2); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: transform 0.6s var(--ease), background-color 0.4s, box-shadow 0.4s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; letter-spacing: -0.05em; }
.logo__mark { width: 28px; height: 26px; transition: transform 0.6s var(--ease); }
.logo:hover .logo__mark { transform: translateY(-2px) rotate(-6deg); }
.nav { display: flex; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color 0.3s, background-color 0.3s;
}
.nav a:hover { color: var(--ink); background: rgba(20, 20, 20, 0.05); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(20, 20, 20, 0.05); }
.header__cta { justify-self: end; display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.2);
  place-items: center;
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease); }
.menu-btn span + span { margin-top: 5px; }
.menu-btn__lines { display: grid; }
body.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  font-size: 44px;
  letter-spacing: -0.04em;
  line-height: 1.15;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

@media (max-width: 960px) {
  .header__inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header__cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  isolation: isolate;
}
/* faint construction grid behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(20, 20, 20, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 20, 0.045) 1px, transparent 1px);
  background-size: 152px 152px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero__inner { position: relative; }
.hero__title {
  margin-top: 28px;
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero__title em { font-style: normal; }

/* hero cursors: a "Figma" cursor selects "design", a "code" cursor types "dev team." (assets/js/hero-cursors.js) */
.hero-cursors { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hc-select {
  position: absolute;
  border: 1.5px solid #141414;
  background: rgba(20, 20, 20, 0.04);
  opacity: 0;
}
.hc-select i {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 1.5px solid #141414;
}
.hc-select i:nth-child(1) { left: -5px; top: -5px; }
.hc-select i:nth-child(2) { right: -5px; top: -5px; }
.hc-select i:nth-child(3) { left: -5px; bottom: -5px; }
.hc-select i:nth-child(4) { right: -5px; bottom: -5px; }
.hc-size {
  position: absolute;
  left: 50%;
  bottom: -30px;
  translate: -50% 0;
  padding: 3px 7px;
  border-radius: 4px;
  font: 500 11px/1.2 var(--mono);
  color: #fff;
  background: #141414;
  white-space: nowrap;
}
.hc-cursor { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.hc-cursor img { display: block; width: clamp(44px, 4.2vw, 64px); height: auto; filter: drop-shadow(0 6px 10px rgba(40, 20, 90, 0.14)); }
.hc-tag {
  position: absolute;
  left: 78%;
  top: 82%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px 999px 999px 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(20, 20, 20, 0.14);
  transform-origin: 0 0;
}
.hc-tag--design { background: #141414; }
.hc-tag--dev { background: #141414; }
.hc-tag code { font: 500 12px/1 var(--mono); opacity: 0.85; }
.hc-caret {
  display: inline-block;
  width: 0.06em;
  height: 0.82em;
  margin-left: 0.04em;
  vertical-align: -0.04em;
  background: #141414;
  animation: hc-blink 1s steps(1) infinite;
}
@keyframes hc-blink { 50% { opacity: 0; } }
.hero-dev .hc-ch { display: none; }
.hero-dev .hc-ch.is-on { display: inline; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .hero-cursors, .hc-caret { display: none; }
  .hero-dev .hc-ch { display: inline; }
}
.hero__sub { margin-top: 28px; max-width: 60ch; }
.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.hero__trust {
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.hero__trust .stars {
  color: #141414;
  font-size: 18px;
  letter-spacing: 2px;
}
@media (max-width: 640px) {
  .hero__trust { margin-left: 0; width: 100%; margin-top: 8px; }
}

/* ---------- Rotating work strip ---------- */
.strip {
  margin-top: clamp(56px, 7vw, 88px);
  overflow: hidden;
}
.strip__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip__group { display: flex; gap: 10px; padding-right: 10px; }
.tile {
  position: relative;
  flex: none;
  width: clamp(200px, 19vw, 280px);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  isolation: isolate;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile:hover img { transform: scale(1.06); }
.tile__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: #fff;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tile__caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 40px 14px 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.72), transparent);
}
.tile--ink {
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 70% at 25% 85%, var(--graphite) 0%, transparent 70%),
    radial-gradient(55% 60% at 80% 20%, #b9b7b0 0%, transparent 72%),
    linear-gradient(160deg, #e9e8e4, #d6d4cf);
}
.tile__chip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px -12px rgba(20, 20, 20, 0.35);
  font-size: 13px;
  line-height: 1.3;
}
.tile__chip small { display: block; color: var(--ink-3); font-size: 11px; }
.tile__check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
}

/* split-line reveal */
.split .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.split .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + 100ms);
}
.split.is-in .line > span { transform: none; }

/* ---------- Paper grain (used on painterly tiles) ---------- */
.ink-stage__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Proof strip ---------- */
.proof__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 40px var(--gutter);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.proof__title {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.stats { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 4.4vw, 64px); }
.stat { display: grid; gap: 8px; }
.stat__num {
  font-size: clamp(36px, 3.6vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
@media (max-width: 640px) {
  .stats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
}

.marquee {
  margin-top: 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(48px, 7vw, 96px); padding-right: clamp(48px, 7vw, 96px); }
.wordmark {
  font-size: 22px;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.3s;
}
.wordmark:hover { color: var(--ink); }
.wordmark--serif { font-family: Georgia, serif; font-style: italic; }
.wordmark--bold { font-weight: 700; letter-spacing: -0.04em; }
.wordmark--caps { font-family: var(--mono); letter-spacing: 0.12em; font-size: 16px; text-transform: uppercase; }
.wordmark--box { font-weight: 600; font-size: 14px; letter-spacing: 0.14em; padding: 4px 8px; border: 1.5px solid currentColor; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Process (tab list + visual, Calendly-style) ---------- */
.process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: center;
}
.process__copy { display: grid; gap: 22px; align-content: start; }
.process__copy .h2 { max-width: none; font-size: clamp(34px, 3.9vw, 56px); }
.process__list { margin-top: 24px; border-bottom: 1px solid var(--line); }
.process__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 26px 0;
  text-align: left;
  border-top: 1px solid var(--line);
  opacity: 0.38;
  transition: opacity 0.5s var(--ease);
}
.process__item:hover,
.process__item.is-active { opacity: 1; }
/* progress line that fills while a step is active */
.process__bar {
  position: absolute;
  left: 0;
  top: -1px;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.process__item.is-active .process__bar { animation: process-fill var(--process-ms, 5200ms) linear forwards; }
.process.is-paused .process__item.is-active .process__bar { animation-play-state: paused; }
@keyframes process-fill { to { transform: scaleX(1); } }
.process__row { display: flex; align-items: center; gap: 14px; }
.process__icon { flex: none; width: 20px; height: 20px; }
.process__title { font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -0.02em; }
.process__meta { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.process__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.process__item.is-active .process__body { grid-template-rows: 1fr; }
.process__text {
  overflow: hidden;
  max-width: 44ch;
  padding-left: 34px;
  color: var(--ink-2);
}
.process__item.is-active .process__text { padding-top: 12px; }

/* big visual card in the purple pattern */
.process__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background: #6aa2f5 url("../img/visuals/process-bg.webp") center / cover no-repeat;
}
.process__visual .ink-stage__grain { opacity: 0.15; }
.process__scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  z-index: 2;
}
.process__scene.is-active { opacity: 1; transform: none; }
.process__scene svg { width: 86%; height: auto; overflow: visible; }

/* vector scenes */
.process__scene text { font-family: var(--font); }
.process__scene .ill-mono { font-family: var(--mono); letter-spacing: 0.04em; }
.ill-shadow { filter: drop-shadow(0 14px 24px rgba(40, 10, 90, 0.22)); }

/* glass cards: blurred copy of the background clipped to each card, then a translucent sheen */
.process__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.process__scene .ill-glass {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 0.8;
}
.process__scene .ill-glass.ill-shadow { filter: drop-shadow(0 12px 22px rgba(40, 20, 110, 0.18)); }
.process__scene [fill="#e9e7e1"],
.process__scene [fill="#ececea"],
.process__scene [fill="#eceae4"] { fill: rgba(20, 20, 20, 0.12); }
.process__scene [fill="#f5f5f3"] { fill: rgba(255, 255, 255, 0.55); }
.process__scene g { transform-box: fill-box; transform-origin: center; transition: transform 0.9s var(--ease) 0.35s, opacity 0.6s; }
.process__scene .ill-btn { transition: fill 0.4s 0.8s; }

/* idle float */
.ill-pill { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* active: step 1 — cursor clicks the button */
.process__scene.is-active .ill-cursor { transform: translate(-46px, -8px); }
.process__scene.is-active .ill-btn { fill: var(--accent-hover); }

/* active: step 2 — tasks reshuffle */
.process__scene.is-active .ill-row--1 { transform: translateY(42px); }
.process__scene.is-active .ill-row--2 { transform: translateY(-42px); }
.process__scene.is-active .ill-row--3 { transform: translateX(6px); }
.process__scene.is-active .ill-new { transform: scale(1.03); }

/* active: step 3 — delivered stamp */
.process__scene.is-active .ill-stamp { transform: scale(1.15) rotate(-12deg); }

@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.services { border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr) 40px;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: color 0.5s var(--ease), padding 0.6s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--accent-deep);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.service:hover { color: #fff; }
.service:hover::before { transform: scaleY(1); }
.service__idx { font-family: var(--mono); font-size: 12px; color: var(--ink-3); transition: color 0.5s; }
.service__title {
  font-size: clamp(40px, 6.4vw, 96px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
  transition: transform 0.6s var(--ease);
}
.service:hover .service__title { transform: translateX(16px); }
.service__desc { color: var(--ink-2); max-width: 42ch; transition: color 0.5s; }
.service:hover .service__idx,
.service:hover .service__desc { color: rgba(255, 255, 255, 0.72); }
.service__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px currentColor;
  transition: transform 0.6s var(--ease), background-color 0.4s, color 0.4s;
}
.service:hover .service__arrow { transform: rotate(-45deg); background: #fff; color: var(--accent-deep); box-shadow: none; }
.services__more { margin-top: 40px; }

/* dark section variant (used by Services) */
.section--dark { background: #0d0d0d; color: #fff; }
.section--dark .label { color: rgba(255, 255, 255, 0.6); }
.section--dark .label::before { background: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, 0.62); }
.section--dark .services { border-top-color: rgba(255, 255, 255, 0.14); }
.section--dark .service { border-bottom-color: rgba(255, 255, 255, 0.14); }
.section--dark .service::before { background: #fff; }
.section--dark .service:hover { color: var(--ink); }
.section--dark .service__idx,
.section--dark .service__desc { color: rgba(255, 255, 255, 0.55); }
.section--dark .service:hover .service__idx,
.section--dark .service:hover .service__desc { color: var(--ink-2); }
.section--dark .service:hover .service__arrow { background: var(--ink); color: #fff; }
.section--dark .link-arrow:hover { color: rgba(255, 255, 255, 0.7); }

/* service rows: the explanation shows on hover, and a buddy peeks over the row's top line */
.service__desc {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color 0.5s;
}
.service:hover .service__desc { opacity: 1; transform: none; }
.service__peek {
  position: absolute;
  z-index: -2;              /* behind the row fill, so only the part above the line shows */
  top: 0;
  right: 92px;
  width: 150px;
  height: auto;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20%) rotate(var(--tilt, -6deg));
  transition: transform 0.75s var(--ease), opacity 0.35s;
}
.service:hover .service__peek { opacity: 1; transform: translateY(-58%) rotate(var(--tilt, -6deg)); }
.service:nth-child(2) .service__peek { --tilt: 5deg; right: 120px; }
.service:nth-child(3) .service__peek { --tilt: -3deg; right: 100px; }
.service:nth-child(4) .service__peek { --tilt: 8deg; right: 128px; }
@media (max-width: 860px) {
  .service { grid-template-columns: 40px 1fr; row-gap: 12px; }
  .service__desc { grid-column: 2; }
  .service__arrow { display: none; }
}

/* ---------- Selected work (portfolio) ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.section-head__side .link-arrow { justify-self: start; }
.work__item { grid-column: span 2; display: grid; gap: 16px; }
.work__item--lg { grid-column: span 3; }
.work__media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.work__item:hover .work__media img { transform: scale(1.04); }
.work__meta { display: grid; gap: 4px; }
.work__name { font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.02em; }
.work__tags { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
@media (max-width: 860px) {
  .work__item, .work__item--lg { grid-column: 1 / -1; }
}

/* ---------- Benefits (painterly cards) ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit__art {
  position: relative;
  aspect-ratio: 4 / 3.3;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.benefit__art .ink-stage__grain { opacity: 0.4; }
.benefit__art--a { background: radial-gradient(60% 70% at 30% 85%, var(--graphite) 0%, transparent 70%), radial-gradient(50% 60% at 80% 15%, #fff 0%, transparent 70%), linear-gradient(160deg, #e6e5e1, #cfcdc8); }
.benefit__art--b { background: radial-gradient(55% 60% at 70% 70%, #1c1c1b 0%, transparent 72%), radial-gradient(60% 70% at 20% 20%, #d6d4cf 0%, transparent 70%), linear-gradient(200deg, #eeede9, #c9c7c2); }
.benefit__art--c { background: radial-gradient(60% 60% at 35% 30%, #fff 0%, transparent 70%), radial-gradient(60% 60% at 80% 85%, var(--graphite) 0%, transparent 70%), linear-gradient(180deg, #e3e2de, #c4c2bd); }
.benefit__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  color: #fff;
  font-size: clamp(56px, 6vw, 88px);
  letter-spacing: -0.06em;
  text-shadow: 0 10px 40px rgba(20, 20, 20, 0.3);
  transition: transform 0.8s var(--ease);
}
.benefit:hover .benefit__glyph { transform: scale(1.06); }
.benefit h3 { margin-top: 20px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.benefit p { margin-top: 6px; color: var(--ink-2); max-width: 36ch; }
@media (max-width: 860px) {
  .benefits { grid-template-columns: 1fr; }
}

/* ---------- Reach / map ---------- */
.reach__map {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
}
.map__svg { width: 100%; height: auto; }
.map__dots { fill: rgba(20, 20, 20, 0.16); }
.map__dots--hi { fill: var(--accent); }
.map__dots circle { transition: opacity 0.6s; }
.map__pin { fill: var(--orange); }
.map__pulse { fill: var(--orange); opacity: 0.25; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.5; } 100% { transform: scale(3); opacity: 0; } }
.map__legend {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  bottom: clamp(20px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}
.map__legend span { display: inline-flex; align-items: center; gap: 8px; }
.map__legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.map__legend i.pin { background: var(--orange); }
.map__big {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(16px, 2.6vw, 32px);
  text-align: right;
}
.map__big strong { display: block; font-size: clamp(56px, 8vw, 120px); font-weight: 400; letter-spacing: -0.06em; line-height: 0.9; }
.map__big small { font-family: var(--mono); font-size: 11px; color: var(--ink-2); text-transform: uppercase; }
@media (max-width: 640px) {
  .map__legend, .map__big { position: static; margin-top: 20px; text-align: left; }
}

.quotes {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quote {
  min-height: 380px;
  margin: 0;
  padding: clamp(28px, 2.8vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.quote:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(20, 20, 20, 0.35); }
.quote__stars { color: #141414; font-size: 20px; letter-spacing: 3px; line-height: 1; }
.quote blockquote {
  margin: 0;
  font-size: clamp(21px, 1.75vw, 25px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.quote figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}
.quote figcaption small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; font-weight: 400; }
/* initials until a real client photo is dropped in as <img> */
.avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #e9e7e1;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--b { background: #e9e7e1; }
.avatar--c { background: #e9e7e1; color: var(--ink); }
@media (max-width: 960px) {
  .quotes { grid-template-columns: 1fr; }
}

/* ---------- Pricing ---------- */
.pricing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
}
.plan {
  --plan-pad: clamp(28px, 3.4vw, 48px);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--plan-pad) var(--plan-pad) 0;
  border-radius: var(--radius-lg);
  background: #0d0d0d;   /* matches the black of the hill render so they blend */
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
/* fluffy hill + infinity render, bleeding to the card edges, with the CTA sitting on the hill */
.plan__visual {
  position: relative;
  margin: -24px calc(var(--plan-pad) * -1) 0;
  aspect-ratio: 3 / 2;
}
.plan__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%);
}
.plan__visual .btn {
  position: absolute;
  left: var(--plan-pad);
  right: var(--plan-pad);
  bottom: var(--plan-pad);
  width: auto;
}
.plan__top { display: flex; justify-content: space-between; align-items: center; }
.plan__name { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.plan__badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.plan .btn { --btn-bg: #fff; --btn-fg: var(--ink); }
.plan .btn:hover { --btn-fg: #fff; }
.plan__price { margin-top: 40px; display: flex; align-items: baseline; gap: 8px; }
.plan__price strong { font-size: clamp(64px, 8vw, 112px); font-weight: 400; letter-spacing: -0.06em; line-height: 0.9; }
.plan__price span { color: rgba(255, 255, 255, 0.6); }
.plan__desc { margin-top: 12px; color: rgba(255, 255, 255, 0.6); }
.plan__list { margin: 36px 0; display: grid; gap: 12px; }
.plan__list li { display: flex; gap: 12px; align-items: flex-start; }
.plan__list li::first-letter { text-transform: uppercase; }
.check {
  flex: none;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.check svg { width: 10px; height: 10px; }

.pricing__side { display: grid; gap: 16px; grid-template-rows: 1fr auto; }
.side-card {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 40px);
  background: var(--surface);
}
.side-card h3 { font-size: 24px; font-weight: 400; letter-spacing: -0.03em; }
.side-card p { margin-top: 10px; color: var(--ink-2); }
.side-card .tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s, color 0.3s;
}
.tag:hover { background: var(--ink); color: #fff; }
.side-card--ink {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: none;
  background: radial-gradient(70% 90% at 90% 100%, #4a4a47 0%, transparent 70%), radial-gradient(60% 80% at 10% 0%, #2a2a29 0%, transparent 70%), #1a1a1a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.side-card--ink p { color: rgba(255, 255, 255, 0.7); }
.side-card--ink .btn { align-self: flex-start; }
@media (max-width: 960px) {
  .pricing__grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 48px var(--gutter);
  align-items: start;
}
.faq__aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 28px; }
.faq__aside p { color: var(--ink-2); }
.faq__aside .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.faq__aside .actions a:not(.btn) { color: var(--ink); border-bottom: 1px solid rgba(20, 20, 20, 0.3); }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--ink-2); }
.qa__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.2);
  transition: transform 0.5s var(--ease), background-color 0.3s;
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.5s var(--ease); }
.qa[open] .qa__icon { background: var(--accent); color: #fff; box-shadow: none; transform: rotate(180deg); }
.qa[open] .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__answer { overflow: hidden; }
.qa__answer p { padding: 0 64px 28px 0; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
  .qa__answer p { padding-right: 0; }
}

/* ---------- Closing CTA with the Inkyy buddies ---------- */
.buddies-cta { padding: clamp(80px, 9vw, 150px) 0 clamp(110px, 10vw, 170px); }
.buddies-cta__panel {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 60% at 50% 0%, #2a2a28 0%, transparent 70%),
    #0d0d0d;
  color: #fff;
  min-height: clamp(420px, 34vw, 520px);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.buddies-cta__head {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 40px var(--gutter) 48px;
  text-align: center;
  pointer-events: none;   /* let hovers reach the buddies behind the text block */
}
.buddies-cta__head a { pointer-events: auto; }
.buddies-cta__head .label { color: rgba(255, 255, 255, 0.6); }
.buddies-cta__head .label::before { background: #fff; }
.buddies-cta__head .h2 { max-width: none; }
.buddies-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
/* dark panel: primary button turns white, ghost button gets a light outline */
.buddies-cta__panel .btn:not(.btn--ghost) { --btn-bg: #fff; --btn-fg: var(--ink); }
.buddies-cta__panel .btn:not(.btn--ghost):hover { --btn-fg: #fff; }
.buddies-cta__panel .btn--avatar .btn__avatar { box-shadow: 0 0 0 2px #0d0d0d; }
.buddies-cta__panel .btn--ghost { --btn-fg: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
/* the 3D stage is larger than the panel so the buddies can break out of its edges */
.buddies-cta__stage {
  display: block;
  position: absolute;
  inset: -170px -120px -150px;
  z-index: 1;
  filter: blur(0.7px);   /* soft, dreamy render instead of a crisp CG edge */
}
.buddies-cta__hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .buddies-cta__panel { min-height: 800px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #fff;
  padding: clamp(64px, 8vw, 112px) 0 24px;
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 48px var(--gutter);
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer__mark { width: 48px; height: 44px; margin-bottom: 24px; }
.footer__about { max-width: 40ch; color: rgba(255, 255, 255, 0.62); }
.footer h4 { font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 16px; }
.footer__links { display: grid; gap: 6px; }
.footer__links a { color: rgba(255, 255, 255, 0.82); transition: color 0.3s; width: fit-content; }
.footer__links a:hover { color: #fff; }
.footer__mail { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.footer__address { font-style: normal; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.86); }
.socials { margin-top: 28px; display: flex; gap: 10px; }
.socials a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 0 0 1px #5a5a5a;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
}
.socials a svg { width: 19px; height: 19px; }
.socials a:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #fff; transform: translateY(-2px); }
.footer__word {
  margin-top: clamp(56px, 8vw, 120px);
  font-size: clamp(120px, 27vw, 420px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 1;
  padding-bottom: 0.04em;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.08) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.footer__bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  [data-reveal], .split .line > span { opacity: 1 !important; transform: none !important; }
}

/* Pricing side card extras (homepage and pricing page) */
.pricing__side .side-card:first-child { display: flex; flex-direction: column; }
.pricing__side .side-card:first-child .tags { margin-bottom: 40px; }
.side-card h3.side-card__sub { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0; color: var(--ink-3); }
.side-card__svcs { margin: 8px 0 40px; display: grid; }
.side-card__svcs a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(20px, 1.7vw, 24px);
  letter-spacing: -0.03em;
  transition: padding 0.5s var(--ease), color 0.3s;
}
.side-card__svcs span { font-family: var(--mono); font-size: 11px; letter-spacing: 0; color: var(--ink-3); }
.side-card__svcs i { margin-left: auto; font-style: normal; font-size: 18px; transition: transform 0.5s var(--ease); }
.side-card__svcs a:hover { padding-left: 8px; }
.side-card__svcs a:hover i { transform: translateX(4px); }
.side-card__facts {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.side-card__facts li { display: grid; gap: 6px; }
.side-card__facts strong { font-size: clamp(30px, 2.8vw, 40px); font-weight: 400; letter-spacing: -0.045em; line-height: 1; }
.side-card__facts span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
@media (max-width: 640px) { .side-card__facts { grid-template-columns: 1fr 1fr; } }
