/* ============================================================
   ZINGIBER — studio site
   Dark base, gradient accent (lime → cyan → violet)
   Syne (display) / Instrument Sans (body)
   ============================================================ */

:root {
  --bg: #0b0b0f;
  --bg-2: #111118;
  --bg-3: #16161f;
  --ink: #f5f4f0;
  --ink-dim: rgba(245, 244, 240, 0.64);
  --ink-faint: rgba(245, 244, 240, 0.38);
  --line: rgba(245, 244, 240, 0.1);
  --line-strong: rgba(245, 244, 240, 0.18);
  --g1: #f5f4f0;
  --g2: #b8b4ab;
  --g3: #6e6a62;
  --grad: linear-gradient(100deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  --font-display: "Syne", "Archivo Black", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
  --gutter: clamp(20px, 4vw, 64px);
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
}

::selection { background: var(--ink); color: #0b0b0f; }

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--g2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   Reveal system — hidden states only apply when JS is running
   ------------------------------------------------------------ */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { opacity: 1; }

.js .hero-line > span {
  display: inline-block;
  transform: translateY(110%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .hero-line > span { transform: none !important; }
  .footer-marquee-track, .reel-strip { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------
   Cursor (fine pointers only)
   ------------------------------------------------------------ */
.cursor-dot, .cursor-ring { display: none; }

@media (pointer: fine) {
  .js .cursor-dot, .js .cursor-ring {
    display: block;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    will-change: transform;
  }
  .js .cursor-dot {
    width: 8px; height: 8px;
    background: var(--ink);
    mix-blend-mode: difference;
  }
  .js .cursor-ring {
    width: 40px; height: 40px;
    border: 1.5px solid rgba(245,244,240,0.4);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
                border-color 0.3s, background-color 0.3s, opacity 0.3s;
  }
  /* No backdrop blur here: over the light hero it smeared the button
     labels. A neutral grey tint reads correctly on both themes. */
  .js .cursor-ring.is-link {
    width: 64px; height: 64px;
    border-color: transparent;
    background: rgba(128, 128, 128, 0.18);
  }
  .js .cursor-ring.is-view::after {
    content: "View";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ink);
  }
  .js .cursor-ring.is-view {
    width: 84px; height: 84px;
    background: rgba(11, 11, 15, 0.72);
    border-color: var(--line-strong);
    backdrop-filter: blur(6px);
  }
}

/* ------------------------------------------------------------
   Gradient mesh backdrop
   ------------------------------------------------------------ */
.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.mesh .blob {
  position: absolute;
  width: 55vmax; height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
/* deep tinted variants: ambience without washing out white text */
.blob-1 { background: #1d1c22; top: -20vmax; left: -12vmax; }
.blob-2 { background: #17181b; bottom: -25vmax; right: -15vmax; }
.blob-3 { background: #1c1a16; top: 30%; left: 55%; width: 30vmax; height: 30vmax; opacity: 0.5; }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  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='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-footer { position: relative; z-index: 2; }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.wordmark i {
  font-style: normal;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
  transform: translateY(-1px);
}

.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.site-nav a.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-dim);
  transition: color 0.25s;
  position: relative;
}
.site-nav a.nav-link:hover, .site-nav a.nav-link[aria-current="page"] { color: var(--ink); }
.site-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.site-nav a.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--ink); color: #0b0b0f; }
.btn-solid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s;
}
.btn-solid:hover::before { opacity: 1; }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(245,244,240,0.02);
}
.btn-ghost:hover { border-color: var(--ink); box-shadow: 0 0 24px rgba(245,244,240,0.12); }
.btn svg { flex: none; }

/* Nav: the curved menu is the primary navigation at every width, the way
   Cuberto and Zajno do it. The inline links are gone; the hamburger and the
   "Start a project" button are all that sit in the bar on desktop. */
.site-nav .nav-link { display: none; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: border-color 0.3s, background-color 0.3s;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* on a phone the CTA lives inside the menu instead of the bar */
@media (max-width: 760px) {
  .site-nav .btn { display: none; }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
/* Light paper hero (Cuberto / Neutomni register) */
:root {
  --paper: #f4f2ee;
  --paper-ink: #0e0e10;
  --paper-ink-dim: rgba(14, 14, 16, 0.64);
  --paper-line: rgba(14, 14, 16, 0.12);
}

.hero-paper {
  background: var(--paper);
  color: var(--paper-ink);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 8px) 0 clamp(20px, 3vh, 40px);
  position: relative;
  z-index: 2;
}
.hero-paper ::selection { background: var(--paper-ink); color: var(--paper); }

/* edge-to-edge wordmark */
.giant-mark {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 max(2vw, 16px) 0.08em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 13vw, 240px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  user-select: none;
  overflow: hidden;
}
.gm-letter { display: inline-block; will-change: transform; }
.js .gm-letter { transform: translateY(112%); }

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 6vh, 72px) var(--gutter);
  gap: clamp(20px, 3vh, 30px);
}

.hero-title {
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.hero-line { display: block; overflow: hidden; padding-block: 0.06em; }

.serif-accent {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.06em;
}

.hero-sub-p {
  max-width: 52ch;
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--paper-ink-dim);
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn-dark { background: var(--paper-ink); color: var(--paper); }
.btn-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #2c2c31;
  opacity: 0;
  transition: opacity 0.35s;
}
.btn-dark:hover::before { opacity: 1; }
.btn-outline-dark {
  border: 1px solid rgba(14,14,16,0.28);
  color: var(--paper-ink);
}
.btn-outline-dark:hover { border-color: var(--paper-ink); }

/* the reel: dark rounded block of real work.
   Natively scrollable (trackpad, touch, keyboard) with a drag handler and a
   slow auto-drift in main.js; each tile opens that site in a new tab. */
.reel {
  position: relative;
  margin: 0 clamp(10px, 2vw, 28px);
  border-radius: clamp(14px, 2vw, 26px);
  background: var(--bg);
  overflow: hidden;
  padding: clamp(16px, 2.4vw, 34px) 0 clamp(34px, 4vw, 52px);
  transform-origin: center bottom;
  will-change: transform;
}

.reel-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track.is-dragging { cursor: grabbing; }
.reel-track:focus-visible { outline: 2px solid var(--g2); outline-offset: -4px; border-radius: 8px; }

.reel-strip {
  display: flex;
  flex: none;
  gap: clamp(12px, 1.6vw, 24px);
  padding-right: clamp(12px, 1.6vw, 24px);
}

.reel-item {
  position: relative;
  display: block;
  flex: none;
  width: clamp(240px, 26vw, 420px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.35s, transform 0.5s var(--ease-out);
}
.reel-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform 0.7s var(--ease-out), opacity 0.35s;
}
.reel-item:hover { border-color: var(--line-strong); }
.reel-item:hover img { transform: scale(1.04); }

/* name plate, revealed on hover */
.reel-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(to top, rgba(11,11,15,0.88), transparent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
}
.reel-item:hover .reel-name,
.reel-item:focus-visible .reel-name { opacity: 1; transform: none; }
.reel-item:focus-visible { outline: 2px solid var(--g2); outline-offset: 3px; }

.reel-hint {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(12px, 1.6vw, 20px);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .reel-item img { transition: none; }
}

/* header over the light hero */
.site-header.over-light { color: var(--paper-ink); }
.site-header.over-light .site-nav a.nav-link { color: var(--paper-ink-dim); }
.site-header.over-light .site-nav a.nav-link:hover { color: var(--paper-ink); }
.site-header.over-light .btn-solid { background: var(--paper-ink); color: var(--paper); }
.site-header.over-light .nav-toggle { border-color: rgba(14,14,16,0.25); }
.site-header.over-light .nav-toggle span,
.site-header.over-light .nav-toggle span::before,
.site-header.over-light .nav-toggle span::after { background: var(--paper-ink); }
body.nav-open .site-header.over-light .nav-toggle span { background: transparent; }
.site-header.over-light.is-scrolled {
  background: rgba(244, 242, 238, 0.78);
  border-bottom-color: var(--paper-line);
}
.site-header.over-light .wordmark i { background: var(--paper-ink); }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section { padding: clamp(80px, 12vh, 160px) var(--gutter); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(40px, 6vh, 80px);
}
.section-head h2 {
  font-size: clamp(40px, 6vw, 88px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.section-head .aside {
  max-width: 38ch;
  color: var(--ink-dim);
  font-size: 17px;
}

/* ------------------------------------------------------------
   Work — featured cards
   ------------------------------------------------------------ */
.work-feature {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
/* an odd card out spans the full row instead of leaving a hole */
.work-feature > .project-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.work-feature > .project-card:last-child:nth-child(odd) .shot-clip { aspect-ratio: 2 / 1; }
@media (max-width: 860px) {
  .work-feature { grid-template-columns: 1fr; }
}

.project-card {
  display: block;
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out), box-shadow 0.5s;
  cursor: pointer;
}
.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,244,240,0.14);
}
.project-card .frame {
  margin: clamp(14px, 2vw, 26px) clamp(14px, 2vw, 26px) 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #1a1a22;
}
.project-card .chrome {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.project-card .chrome i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.project-card .shot-clip {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.project-card .shot-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transform: scale(1.01);
  transition: transform 0.9s var(--ease-out);
}
.project-card:hover .shot-clip img { transform: scale(1.06); }
.project-card .card-hit { display: block; }
.project-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 2vw, 28px) 24px;
}
.card-titles { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.card-titles h3 { text-wrap: balance; }
.project-card .card-meta h3 {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
}
.project-card .card-meta h3 a { transition: opacity 0.25s; }
.project-card .card-meta h3 a:hover { opacity: 0.72; }

/* "Visit the site" pill */
.visit-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.visit-pill:hover {
  background: var(--ink);
  color: #0b0b0f;
  border-color: var(--ink);
}
.visit-pill:active { transform: scale(0.97); }

/* mini-card "Visit" badge */
.mini-visit {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(11,11,15,0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
}
.mini-card:hover .mini-visit, .mini-card:focus-visible .mini-visit {
  opacity: 1;
  transform: none;
}
.project-card .card-meta .tag {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-faint);
  white-space: nowrap;
}
.project-card .card-arrow {
  position: absolute;
  top: 26px; right: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(11,11,15,0.6);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
  z-index: 3;
}
.project-card:hover .card-arrow { opacity: 1; transform: none; }

/* Work — dense grid of the rest */
.work-grid {
  margin-top: clamp(20px, 3vw, 48px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

.mini-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  transition: border-color 0.35s, box-shadow 0.35s;
}
.mini-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}
.mini-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.8s var(--ease-out), opacity 0.4s;
}
.mini-card:hover img { transform: scale(1.05); }
.mini-card .mini-label {
  display: flex;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(11,11,15,0.85), transparent);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
}
.mini-card .mini-label small {
  font-weight: 400;
  color: var(--ink-dim);
  font-size: 12.5px;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Services rows
   ------------------------------------------------------------ */
.svc-rows { border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) 2fr auto;
  gap: 20px 40px;
  align-items: center;
  padding: clamp(26px, 4vh, 44px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.svc-row > * { transition: transform 0.4s var(--ease-out); }
.svc-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 3px;
  background: var(--grad);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease-out);
}
.svc-row:hover > * { transform: translateX(22px); }
.svc-row:hover::before { transform: scaleY(1); }
.svc-row h3 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.svc-row p { color: var(--ink-dim); max-width: 56ch; }
.svc-row .svc-ico {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink-dim);
}
@media (max-width: 760px) {
  .svc-row { grid-template-columns: 1fr; gap: 10px; }
  .svc-row .svc-ico { display: none; }
}

/* ------------------------------------------------------------
   Studio
   ------------------------------------------------------------ */
.studio-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) { .studio-wrap { grid-template-columns: 1fr; } }

.studio-lede {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.studio-copy { display: flex; flex-direction: column; gap: 18px; color: var(--ink-dim); }
.studio-copy strong { color: var(--ink); font-weight: 600; }

.studio-strip {
  margin-top: clamp(48px, 8vh, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 860px) { .studio-strip { grid-template-columns: repeat(2, 1fr); } }
.studio-strip .cell {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  background: rgba(245,244,240,0.02);
}
.studio-strip .cell b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 6px;
}
.studio-strip .cell span { color: var(--ink-dim); font-size: 14.5px; line-height: 1.5; display: block; }

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact {
  text-align: center;
  padding-bottom: clamp(60px, 8vh, 120px);
}
.contact h2 {
  font-size: clamp(40px, 6vw, 88px);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 20px;
}
.contact .contact-sub {
  color: var(--ink-dim);
  max-width: 52ch;
  margin: 0 auto 40px;
  font-size: clamp(17px, 1.4vw, 20px);
}
.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-lg { padding: 18px 34px; font-size: 17px; }
.contact-aside {
  margin-top: clamp(22px, 3vh, 34px);
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink-dim);
}
.contact-note {
  margin-top: 26px;
  color: var(--ink-faint);
  font-size: 14.5px;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); overflow: hidden; }
.footer-marquee {
  display: flex;
  overflow: hidden;
  padding: clamp(24px, 4vh, 48px) 0 0;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%);
  mask-image: linear-gradient(to bottom, transparent, #000 55%);
}
.footer-marquee-track {
  display: flex;
  flex: none;
  animation: footer-marquee 110s linear infinite;
  white-space: nowrap;
}
@keyframes footer-marquee {
  to { transform: translateX(-100%); }
}
.footer-marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 170px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding-right: 0.4em;
  color: var(--ink);
  opacity: 0.07;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 32px;
  padding: 32px var(--gutter) 40px;
  color: var(--ink-faint);
  font-size: 14.5px;
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { color: var(--ink-dim); transition: color 0.25s; }
.footer-bottom a:hover { color: var(--ink); }

/* ------------------------------------------------------------
   Case study pages
   ------------------------------------------------------------ */
.case-hero {
  padding: calc(var(--header-h) + clamp(48px, 10vh, 120px)) var(--gutter) 0;
}
.case-hero .case-kicker {
  color: var(--ink-dim);
  font-size: 16px;
  margin-bottom: 18px;
}
.case-hero h1 {
  font-size: clamp(40px, 7.4vw, 112px);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: clamp(28px, 5vh, 56px);
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 7vh, 88px);
}
@media (max-width: 760px) { .case-meta { grid-template-columns: repeat(2, 1fr); } }
.case-meta div {
  padding: 20px 18px;
  border-right: 1px solid var(--line);
}
.case-meta div:last-child { border-right: 0; }
@media (max-width: 760px) { .case-meta div:nth-child(2) { border-right: 0; } }
.case-meta dt {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.case-meta dd { font-weight: 600; font-size: 16px; }

/* scroll-panned full-page preview */
.case-preview {
  margin: 0 var(--gutter);
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 40px 120px rgba(0,0,0,0.55);
}
.case-preview .chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.case-preview .chrome .dots { display: flex; gap: 5px; }
.case-preview .chrome .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.case-preview .chrome .url {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
  background: rgba(245,244,240,0.04);
  border-radius: 6px;
  padding: 5px 14px;
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-pan {
  height: min(78vh, 900px);
  overflow: hidden;
  position: relative;
}
.case-pan img {
  width: 100%;
  will-change: transform;
}

.case-body {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(64px, 10vh, 140px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 7vh, 72px);
}
.case-block h2 {
  font-size: clamp(26px, 3vw, 40px);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.case-block p { color: var(--ink-dim); margin-bottom: 14px; max-width: 68ch; }
.case-block p strong { color: var(--ink); font-weight: 600; }
.case-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.case-block ul li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-dim);
}
.case-block ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad);
}
.case-block ul li strong { color: var(--ink); font-weight: 600; }

.case-shot {
  margin: 0 var(--gutter);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.case-shot img { width: 100%; }

/* prev / next */
.case-next {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 10vh, 120px) var(--gutter);
  text-align: center;
}
.case-next .cn-label { color: var(--ink-faint); font-size: 15px; margin-bottom: 14px; display: block; }
.case-next a.cn-link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6.5vw, 88px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  transition: color 0.3s;
}
.case-next a.cn-link:hover { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
/* the link goes color:transparent for the gradient text, so the arrow needs
   an explicit stroke or it inherits transparent and vanishes */
.case-next a.cn-link svg {
  width: 0.7em;
  height: 0.7em;
  stroke: var(--ink);
  transition: transform 0.45s var(--ease-out);
}
.case-next a.cn-link:hover svg, .case-next a.cn-link:focus-visible svg {
  transform: translateX(0.18em);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Inner page heroes (work / studio / contact)
   ------------------------------------------------------------ */
.page-hero {
  padding: calc(var(--header-h) + clamp(56px, 12vh, 140px)) var(--gutter) clamp(24px, 5vh, 56px);
  border-bottom: 1px solid var(--line);
}
.page-hero-center { text-align: center; }
.page-hero-center .page-lede { margin-left: auto; margin-right: auto; }

.page-kicker {
  font-size: 15px;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(42px, 7.5vw, 118px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: clamp(20px, 3vh, 34px);
}
.page-lede {
  max-width: 60ch;
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-dim);
}

.section-tight { padding-block: clamp(56px, 9vh, 120px); }

/* inline text links */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: border-color 0.3s, gap 0.3s var(--ease-out);
}
.text-link:hover { border-color: var(--ink); gap: 13px; }
.section-more { margin-top: clamp(28px, 4vh, 48px); }

/* contact page extras */
.contact-page { padding-top: clamp(48px, 8vh, 96px); }
.contact-detail {
  margin: clamp(48px, 8vh, 96px) auto 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}
@media (max-width: 760px) { .contact-detail { grid-template-columns: 1fr; } }
.contact-detail .cell {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  background: rgba(245,244,240,0.02);
}
.contact-detail .cell b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
.contact-detail .cell span { color: var(--ink-dim); font-size: 14.5px; line-height: 1.5; display: block; }

/* minimal sub-page helpers */
.work-grid-spaced { margin-top: clamp(14px, 2vw, 28px); }
.svc-rows-topline { border-top: 1px solid var(--line); }
.studio-copy-wide { max-width: 68ch; font-size: clamp(17px, 1.35vw, 20px); }
.studio-copy-wide p { color: var(--ink-dim); }

/* case study: open the live build */
.case-visit { margin-top: clamp(20px, 3vh, 32px); margin-bottom: clamp(28px, 5vh, 56px); }

/* ------------------------------------------------------------
   Curved slide-in menu
   Ported from a React/framer-motion component to vanilla JS.
   The panel slides with a CSS transition; the SVG curve morphs
   by rebuilding its `d` each frame in main.js.
   ------------------------------------------------------------ */
.curved-menu {
  position: fixed;
  top: 0; right: 0;
  z-index: 90;
  height: 100dvh;
  width: 100%;
  background: var(--paper);
  color: var(--paper-ink);
  transform: translateX(calc(100% + 100px));
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.8s;
  visibility: hidden;
}
body.nav-open .curved-menu { transform: translateX(0); visibility: visible; }

/* the bulge that trails the panel */
.cm-curve {
  position: absolute;
  top: 0;
  left: -99px;
  width: 100px;
  height: 100%;
  fill: var(--paper);
  stroke: none;
}

.cm-inner {
  height: 100%;
  padding: calc(var(--header-h) + 12px) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.cm-top {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(28px, 8vw, 72px);
}

.cm-label {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(14, 14, 16, 0.55);
  border-bottom: 1px solid rgba(14, 14, 16, 0.28);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.cm-links { display: flex; flex-direction: column; }

.cm-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(16px, 3.4vh, 30px) 0;
  border-bottom: 1px solid rgba(14, 14, 16, 0.22);
  text-transform: uppercase;
  color: var(--paper-ink);
  min-height: 48px;
}
.cm-link[aria-current="page"] { opacity: 0.42; }

.cm-num {
  font-family: var(--font-body);
  font-size: clamp(20px, 4.4vw, 30px);
  font-weight: 300;
  line-height: 1.05;
  color: rgba(14, 14, 16, 0.55);
  flex: none;
}

.cm-word {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.cm-word span {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 26ms);
}
/* letters fan out from the word's left edge */
.cm-link:hover .cm-word, .cm-link:focus-visible .cm-word { transform: translateX(-14px); }
.cm-link:hover .cm-word span, .cm-link:focus-visible .cm-word span { transform: translateX(14px); }

.cm-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px clamp(28px, 8vw, 72px) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(14, 14, 16, 0.18);
  font-size: 15px;
  font-weight: 600;
}
.cm-footer a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--paper-ink);
  transition: opacity 0.25s;
}
.cm-footer a:hover { opacity: 0.6; }
.cm-footer a:focus-visible { outline-color: var(--paper-ink); }

/* header sits over the paper panel while it's open */
body.nav-open .site-header { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
body.nav-open .wordmark { color: var(--paper-ink); }
body.nav-open .wordmark i { background: var(--paper-ink); }
body.nav-open .nav-toggle { border-color: rgba(14, 14, 16, 0.3); }
body.nav-open .nav-toggle span::before,
body.nav-open .nav-toggle span::after { background: var(--paper-ink); }
body.nav-open .nav-toggle span { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .curved-menu { transition: none; }
  .cm-word, .cm-word span { transition: none; }
}

/* ------------------------------------------------------------
   Studio: areas covered + FAQ
   ------------------------------------------------------------ */
.faq {
  margin-top: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--line);
  max-width: 900px;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.6vh, 26px) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.7vw, 22px);
  letter-spacing: -0.01em;
  color: var(--ink);
  min-height: 48px;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ink-dim); }
.faq-item summary:focus-visible { outline: 2px solid var(--g2); outline-offset: 4px; }

/* the +/- marker */
.faq-item summary i {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}
.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.faq-item summary i::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-item summary i::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] summary i::after { transform: rotate(90deg); opacity: 0; }

.faq-body {
  padding-bottom: clamp(18px, 2.6vh, 26px);
  max-width: 72ch;
}
.faq-body p {
  color: var(--ink-dim);
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary i::before, .faq-item summary i::after { transition: none; }
}

/* ------------------------------------------------------------
   Pricing
   ------------------------------------------------------------ */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
  align-items: start;
}
@media (max-width: 1000px) { .tiers { grid-template-columns: 1fr; max-width: 620px; } }

.tier {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 38px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(245, 244, 240, 0.02);
  height: 100%;
  transition: border-color 0.35s, background-color 0.35s;
}
.tier:hover { border-color: var(--line-strong); background: rgba(245, 244, 240, 0.04); }
.tier-feature { border-color: var(--line-strong); background: rgba(245, 244, 240, 0.05); }

.tier h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tier-note { font-size: 13.5px; color: var(--ink-faint); margin-top: -6px; }
.tier-blurb { color: var(--ink-dim); font-size: 15.5px; line-height: 1.6; }

.tier-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 2px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.tier-items li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.tier-items li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 9px; height: 5px;
  border-left: 1.8px solid var(--ink);
  border-bottom: 1.8px solid var(--ink);
  transform: rotate(-45deg);
  opacity: 0.75;
}
.tier .btn { margin-top: auto; align-self: flex-start; }

.price-notes {
  margin-top: clamp(48px, 7vh, 90px);
  padding-top: clamp(32px, 5vh, 56px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 56px);
}
@media (max-width: 900px) { .price-notes { grid-template-columns: 1fr; } }
.price-notes h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}
.price-notes p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.65; }

/* ------------------------------------------------------------
   Guides: index list + long-form article
   ------------------------------------------------------------ */
.guide-list { border-top: 1px solid var(--line); }
.guide-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px 40px;
  padding: clamp(24px, 3.4vh, 38px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: padding-left 0.45s var(--ease-out);
}
.guide-row h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.guide-row-text p { color: var(--ink-dim); font-size: 16px; line-height: 1.6; max-width: 62ch; }
.guide-row-meta { font-size: 14px; color: var(--ink-faint); white-space: nowrap; }
.guide-row-arrow {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color 0.35s, color 0.35s, transform 0.45s var(--ease-out);
}
.guide-row:hover { padding-left: 12px; }
.guide-row:hover .guide-row-arrow { background: var(--ink); color: #0b0b0f; transform: translateX(4px); }
.guide-row:focus-visible { outline: 2px solid var(--g2); outline-offset: 4px; }
@media (max-width: 760px) {
  .guide-row { grid-template-columns: 1fr auto; }
  .guide-row-meta { grid-column: 1; grid-row: 2; }
  .guide-row-arrow { grid-column: 2; grid-row: 1 / span 2; width: 42px; height: 42px; }
  .guide-row:hover { padding-left: 0; }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.breadcrumb a { color: var(--ink-dim); transition: color 0.25s; }
.breadcrumb a:hover { color: var(--ink); }
.article-meta { font-size: 15px; color: var(--ink-faint); margin-bottom: 16px; }
.article-body {
  max-width: calc(780px + var(--gutter) * 2);
  padding: clamp(20px, 3vh, 36px) var(--gutter) clamp(56px, 9vh, 110px);
}
.article-body h2 {
  font-size: clamp(26px, 3vw, 40px);
  text-transform: uppercase;
  line-height: 1.04;
  margin: clamp(48px, 7vh, 76px) 0 18px;
  color: var(--ink);
}
.article-body h3 {
  font-size: clamp(17px, 1.6vw, 21px);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 34px 0 10px;
  color: var(--ink);
}
.article-body p {
  font-size: clamp(16.5px, 1.25vw, 18.5px);
  line-height: 1.75;
  color: var(--ink-dim);
  margin-bottom: 1.15em;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.25s;
}
.article-body a:hover { text-decoration-color: var(--ink); }
.article-body ul {
  list-style: none;
  margin: 4px 0 1.4em;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.article-body li {
  position: relative;
  padding-left: 26px;
  font-size: clamp(16.5px, 1.25vw, 18.5px);
  line-height: 1.65;
  color: var(--ink-dim);
}
.article-body li::before {
  content: "";
  position: absolute;
  left: 3px; top: 0.72em;
  width: 8px; height: 2px;
  background: var(--ink);
  opacity: 0.6;
}
