/* ==========================================================
   STILL SOCIETY — shared styles
   Ink-on-paper, halftone motion. Archivo (expanded) + JetBrains Mono.
   ========================================================== */

:root {
  --paper: #efede8;
  --paper-2: #e6e3dc;
  --ink: #0c0c0c;
  --ink-2: #2a2a2a;
  --muted: #6b6862;
  --line: rgba(12, 12, 12, 0.14);
  --line-strong: rgba(12, 12, 12, 0.85);
  --radius: 14px;
  --gutter: clamp(18px, 3.2vw, 72px);
  --max: none; /* content spans the full screen; gutters set the side spacing */
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin: 0;
}
.h2 { font-size: clamp(2rem, 4.2vw, 4.4rem); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 52ch; }
.mono { font-family: var(--mono); }

/* ---------- halftone texture (echoes the logo's motion trail) ---------- */
.halftone {
  background-image: radial-gradient(circle, var(--ink) 1.15px, transparent 1.5px);
  background-size: 6px 6px;
}
.trail {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 100%);
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn--light { --bg: var(--paper); --fg: var(--ink); border-color: var(--paper); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand span {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  text-transform: uppercase; font-size: 15px; letter-spacing: 0.02em; line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; position: relative; padding: 6px 0;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links .btn { padding: 11px 18px; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.3s var(--ease), opacity 0.2s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.2s, visibility 0.3s;
  }
  .nav-links a:not(.btn) { font-size: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 20px; justify-content: center; padding: 16px; }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
}
.hero h1 { font-size: clamp(2.9rem, 7.6vw, 7.2rem); margin-top: 22px; }
.hero h1 .strike { display: inline-block; position: relative; }
.hero .lede { margin: 28px 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark { position: relative; aspect-ratio: 1 / 0.9; }
.hero-mark img { position: relative; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.hero-mark .trail-lines {
  position: absolute; inset: 20% 30% 20% -40%; z-index: 0; opacity: 0.35;
}
.hero-meta {
  margin-top: clamp(48px, 7vw, 90px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.hero-meta div { padding: 18px 18px 0 0; }
.hero-meta b {
  display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800;
  text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1;
}
.hero-meta span { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; max-width: 420px; width: 70%; margin-left: auto; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
}

/* intro motion: the runner slides in and leaves a trail */
.js .hero-mark img { animation: run-in 1.2s var(--ease) both 0.1s; }
.js .hero-mark .trail-lines { animation: trail-in 1.4s var(--ease) both 0.1s; }
@keyframes run-in { from { transform: translateX(-18%); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes trail-in { from { transform: scaleX(0.2); transform-origin: right; opacity: 0; } to { transform: none; opacity: 0.35; } }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1.5px solid var(--ink);
  overflow: hidden; background: var(--ink); color: var(--paper);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.4rem); padding: 16px 0; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.marquee-track span::after {
  content: ""; width: 0.42em; height: 0.42em; border-radius: 50%; background: currentColor;
  margin-inline: 0.8em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head .h2 { margin-top: 16px; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow, .section--ink .lede { color: rgba(239, 237, 232, 0.7); }
.section--ink .halftone { background-image: radial-gradient(circle, var(--paper) 1.15px, transparent 1.5px); }

/* ---------- elastic gallery (home services) ---------- */
.elastic {
  display: flex; gap: 16px; height: 600px;
}
.el-item {
  --ease-el: cubic-bezier(0.25, 1, 0.5, 1);
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--ink); color: var(--paper); text-decoration: none;
  filter: brightness(0.5);
  transition: flex-grow 0.7s var(--ease-el), filter 0.7s var(--ease-el);
}
.el-item:hover { filter: brightness(0.75); }
.el-item.is-active { flex-grow: 4; filter: brightness(1); }
.el-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.el-media, .el-shade, .el-content { position: absolute; inset: 0; }
.el-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1); transition: transform 1s var(--ease-el);
}
.el-item.is-active .el-media img { transform: scale(1); }
.el-shade {
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2) 50%, transparent);
  opacity: 0; transition: opacity 0.5s;
}
.el-item.is-active .el-shade { opacity: 1; }
.el-content {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: clamp(16px, 2.4vw, 32px);
  opacity: 0; transform: translateY(48px);
  transition: opacity 0.5s, transform 0.5s var(--ease-el);
}
.el-item.is-active .el-content { opacity: 1; transform: none; transition-delay: 0.2s; }
.el-tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.el-title {
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 0.92; letter-spacing: -0.02em;
}
.el-desc { max-width: 40ch; font-size: 15.5px; color: rgba(239,237,232,0.82); }
.el-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(239,237,232,0.85);
}
.el-cta svg { transition: transform 0.3s var(--ease); }
.el-item:hover .el-cta svg { transform: translate(2px, -2px); }
.el-label {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  transition: opacity 0.5s, transform 0.5s; transition-delay: 0.5s;
}
.el-item.is-active .el-label { opacity: 0; transform: translateX(-50%) scale(0.5); transition-delay: 0s; }
.el-vert {
  display: block; white-space: nowrap; writing-mode: vertical-rl;
  font-family: var(--display); font-stretch: 115%; font-weight: 700; text-transform: uppercase;
  font-size: 1.15rem; letter-spacing: 0.12em;
}
.el-num { display: none; font-family: var(--mono); font-size: 12px; font-weight: 500; }

@media (max-width: 767px) {
  .elastic { flex-direction: column; gap: 8px; height: 560px; }
  .el-label { bottom: 50%; transform: translate(-50%, 50%); }
  .el-item.is-active .el-label { transform: translate(-50%, 50%) scale(0.5); }
  .el-vert { writing-mode: horizontal-tb; font-size: 0.95rem; }
  .el-desc { font-size: 14px; }
}

/* ---------- project cards ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px);
}
.work-grid--page { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .work-grid, .work-grid--page { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid, .work-grid--page { grid-template-columns: 1fr; } }

.card {
  display: block; text-align: left; width: 100%;
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none;
}
.card-media, .card-title, .card-client { display: block; }
.card-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); background: var(--paper-2);
}
.card--wide .card-media { aspect-ratio: 16 / 10; }
.card-media img, .card-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
}
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.04); }
.card-media .play {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  display: grid; place-items: center;
  transform: scale(0.85); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.25s;
}
.card:hover .play, .card:focus-visible .play { transform: none; opacity: 1; }
.card-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); padding: 6px 10px; border-radius: 999px;
}
.card-body { display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px 0; }
.card-title { font-family: var(--display); font-stretch: 115%; font-weight: 700; text-transform: uppercase; font-size: 1.05rem; line-height: 1.15; margin: 0; }
.card-client { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.card-year { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: var(--radius); }

/* empty "slot" placeholder */
.slot {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; color: var(--ink);
}
.slot::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--ink) 1.1px, transparent 1.45px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 95%);
          mask-image: linear-gradient(115deg, transparent 20%, #000 95%);
  opacity: 0.55;
}
.slot b { position: relative; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 2.6rem; line-height: 1; }
.slot span { position: relative; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--paper); align-self: flex-start; padding: 4px 8px; margin-top: 10px; border-radius: 4px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chip:hover { background: var(--paper-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip sup { font-size: 10px; margin-left: 4px; opacity: 0.7; }

.work-empty { padding: 40px 0; color: var(--muted); font-family: var(--mono); font-size: 14px; }

/* ---------- lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent; color: var(--paper);
  width: min(1200px, 94vw); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 8, 8, 0.92); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lb-in 0.35s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.lb-media { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.lb-media.is-image { aspect-ratio: auto; background: none; }
.lb-media iframe, .lb-media video, .lb-media img { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; max-height: 78vh; }
.lb-info { display: flex; justify-content: space-between; gap: 24px; padding: 18px 2px 0; flex-wrap: wrap; }
.lb-info h3 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.4rem; }
.lb-info p { margin: 4px 0 0; color: rgba(239,237,232,0.7); max-width: 60ch; font-size: 15px; }
.lb-close {
  position: absolute; top: -52px; right: 0; background: none; border: 1.5px solid rgba(239,237,232,0.5);
  color: var(--paper); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.lb-close:hover { background: var(--paper); color: var(--ink); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(239,237,232,0.3); }
.step { padding: 28px 24px 0 0; }
.step .n { font-family: var(--mono); font-size: 12px; color: rgba(239,237,232,0.55); }
.step h3 { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 14px 0 10px; line-height: 1; }
.step p { margin: 0; color: rgba(239,237,232,0.72); font-size: 15.5px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ownership band */
.own {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
}
.own .display { font-size: clamp(2.4rem, 8vw, 7.5rem); }
.own .display em { font-style: normal; -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
@media (max-width: 760px) { .own { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper); border-radius: calc(var(--radius) * 1.6);
  padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 72px);
}
.cta .display { font-size: clamp(2.2rem, 4.8vw, 4.8rem); position: relative; z-index: 1; }
.cta p { position: relative; z-index: 1; color: rgba(239,237,232,0.72); max-width: 46ch; margin: 22px 0 32px; }
.cta .btn { position: relative; z-index: 1; }
.cta-mark {
  position: absolute; right: -4%; bottom: -12%; width: min(46%, 520px); opacity: 0.9; pointer-events: none;
}
@media (max-width: 760px) { .cta-mark { width: 60%; opacity: 0.25; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 110px) clamp(32px, 5vw, 64px); position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 6.5vw, 6rem); margin-top: 18px; }
.page-hero .lede { margin-top: 24px; }
.page-hero .trail-bar { height: 22px; margin-top: 36px; }

/* ---------- pricing (services page) ---------- */
.svc-block { padding-block: clamp(56px, 7vw, 96px); border-top: 1.5px solid var(--ink); }
.svc-block-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; margin-bottom: 40px; align-items: end; }
.svc-block-head h2 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); margin-top: 14px; }
.svc-block-head p { margin: 0; font-size: 1.12rem; color: var(--ink-2); max-width: 48ch; }
.svc-block-head .note { display: block; margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
@media (max-width: 820px) { .svc-block-head { grid-template-columns: 1fr; } }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  position: relative; display: flex; flex-direction: column;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper);
}
.tier--feature { background: var(--ink); color: var(--paper); }
.tier--feature .tier-list li { border-color: rgba(239,237,232,0.18); }
.tier--feature .tier-list li::before { background: var(--paper); }
.tier--feature .btn { --bg: var(--paper); --fg: var(--ink); border-color: var(--paper); }
.tier--feature .tier-sub, .tier--feature .tier-cadence { color: rgba(239,237,232,0.7); }
.tier-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tier-name { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap;
}
.tier-price { margin: 22px 0 4px; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: 0; }
.tier-price small { font-size: 0.34em; font-family: var(--mono); font-stretch: 100%; font-weight: 400; letter-spacing: 0.04em; margin-left: 4px; }
.tier-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.tier-cadence {
  margin: 20px 0 0; padding: 14px 16px; border-radius: 10px;
  background: color-mix(in srgb, currentColor 7%, transparent);
  font-size: 14.5px;
}
.tier-cadence b { display: block; font-size: 15.5px; }
.tier-list { list-style: none; margin: 22px 0 28px; padding: 0; flex: 1; }
.tier-list li {
  position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px;
}
.tier-list li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink);
}
.tier-list li.inherit { font-weight: 700; }
.tier--solo { grid-column: 1 / -1; }
.tier--solo .tier-list { columns: 2; column-gap: 40px; }
.tier--solo .tier-list li { break-inside: avoid; }
@media (max-width: 820px) { .tier--solo .tier-list { columns: 1; } }

.svc-jump { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- booking ---------- */
.book-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
.book-aside { position: sticky; top: 104px; }
@media (max-width: 900px) { .book-aside { position: static; } }
.book-aside ol { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: s; border-top: 1px solid var(--line-strong); }
.book-aside li { counter-increment: s; padding: 18px 0 18px 48px; border-bottom: 1px solid var(--line); position: relative; font-size: 15.5px; }
.book-aside li::before { content: "0" counter(s); position: absolute; left: 0; top: 19px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.book-aside li b { display: block; }

.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > span, .field legend {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
}
.field > span i, .field legend i { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line-strong);
  padding: 12px 2px; border-radius: 0; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 14px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px;
}
.field input:focus, .field select:focus { border-bottom-color: var(--ink); background: rgba(12,12,12,0.03); }
.field textarea:focus { border-color: var(--ink); background: rgba(12,12,12,0.03); }
.field input:user-invalid, .field select:user-invalid { border-bottom-color: #b3261e; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg .opt {
  display: block; border: 1.5px solid var(--ink); border-radius: 12px; padding: 16px 18px;
  transition: background 0.2s, color 0.2s;
}
.seg .opt b { display: block; font-family: var(--display); font-stretch: 125%; text-transform: uppercase; font-size: 1.05rem; }
.seg .opt small { font-size: 13.5px; color: var(--muted); }
.seg input:checked + .opt { background: var(--ink); color: var(--paper); }
.seg input:checked + .opt small { color: rgba(239,237,232,0.7); }
.seg input:focus-visible + .opt { outline: 2px solid var(--ink); outline-offset: 3px; }
.pkg-summary {
  font-size: 14px; color: var(--muted); font-family: var(--mono); min-height: 1.2em; margin-top: -6px;
}
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot small { color: var(--muted); font-size: 13px; max-width: 38ch; }
.form-error { color: #b3261e; font-size: 14px; margin: 0; }
.hp { position: absolute; left: -9999px; }
.form-success {
  border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
}
.form-success h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 16px 0 12px; }

/* ---------- footer ---------- */
.site-footer { padding-block: clamp(56px, 8vw, 96px) 32px; border-top: 1.5px solid var(--ink); margin-top: clamp(72px, 10vw, 140px); }
.site-footer.flush { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand img { width: 88px; }
.foot-brand p { color: var(--muted); max-width: 34ch; margin: 18px 0 0; font-size: 15px; }
.foot-col h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.foot-col a { display: block; text-decoration: none; padding: 5px 0; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-word {
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: min(9.6vw, 9.1rem); line-height: 0.85; letter-spacing: -0.03em;
  margin: clamp(48px, 7vw, 88px) 0 24px; white-space: nowrap;
}
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- fixes ---------- */
[hidden] { display: none !important; }
.tier--feature .btn--ghost { --bg: transparent; --fg: var(--paper); border-color: var(--paper); }
.tier--feature .btn--ghost:hover { --bg: var(--paper); --fg: var(--ink); }
.tier-price--tbd { font-size: clamp(1.9rem, 4vw, 3rem); }

/* ---------- ink reveal band (vanilla port of blueprint-ink-reveal) ---------- */
.ink-reveal {
  position: relative; width: 100%; overflow: hidden;
  border-block: 1px solid #b3b3af; background: var(--paper);
  cursor: crosshair; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.ink-cross { position: absolute; z-index: 2; color: #b3b3af; pointer-events: none; line-height: 0; }
.ink-cross.tl { top: 8px; left: 8px; } .ink-cross.tr { top: 8px; right: 8px; }
.ink-cross.bl { bottom: 8px; left: 8px; } .ink-cross.br { bottom: 8px; right: 8px; }
.ink-ruler { position: absolute; pointer-events: none; opacity: 0.4; }
.ink-ruler.top, .ink-ruler.bottom {
  left: 32px; right: 32px; height: 7px;
  background-image: repeating-linear-gradient(90deg, #72726f 0, #72726f 1px, transparent 1px, transparent 18px);
}
.ink-ruler.top { top: 0; } .ink-ruler.bottom { bottom: 0; }
.ink-ruler.left, .ink-ruler.right {
  top: 32px; bottom: 32px; width: 7px;
  background-image: repeating-linear-gradient(0deg, #72726f 0, #72726f 1px, transparent 1px, transparent 18px);
}
.ink-ruler.left { left: 0; } .ink-ruler.right { right: 0; }
.ink-coords {
  position: absolute; top: 14px; right: 24px; z-index: 2; pointer-events: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: rgba(114, 114, 111, 0.75);
}
.ink-coords b { font-weight: 400; display: inline-block; min-width: 3ch; }
.ink-plate { padding: clamp(28px, 4vw, 52px) clamp(28px, 4vw, 56px); }
.ink-plate svg { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .ink-coords { display: none; } }

/* ---------- hero live gradient (velaris port) ---------- */
.hero { isolation: isolate; }
.velaris {
  position: absolute; left: 0; right: 0; bottom: 0; top: -72px; /* runs up under the translucent header */
  width: 100%; height: calc(100% + 72px);
  z-index: -1; pointer-events: none; display: block;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.velaris.is-ready { opacity: 1; }
/* header stays clear at the very top so the hero gradient runs under it without a seam */
.js .site-header:not(.scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header { transition: border-color 0.3s, background 0.3s; }
/* collapsed panels: keep the vertical label readable over busy photos */
.el-item:not(.is-active) .el-shade { opacity: 0.55; background: rgba(0,0,0,0.55); }
.el-label { text-shadow: 0 1px 14px rgba(0,0,0,0.7); }
/* darker hero gradient: lift the small grey text so it stays readable */
.hero .eyebrow, .hero .hero-meta span { color: var(--ink-2); }
.hero .lede { color: var(--ink); }

/* vertical (9:16) video in the player */
.lightbox.is-vertical { width: min(94vw, calc(78vh * 9 / 16)); }
.lightbox.is-vertical .lb-media:not(.is-image) { aspect-ratio: 9 / 16; }
.lightbox.is-vertical .lb-info { flex-direction: column; gap: 8px; }

/* phones: the player fills the screen, so pin Close inside the video's corner */
@media (max-width: 700px) {
  .lb-close {
    top: 10px; right: 10px; z-index: 3;
    background: rgba(12,12,12,0.6); border-color: rgba(239,237,232,0.6);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
}
/* Book / Get a quote choices: equal height side by side */
.seg label { display: flex; }
.seg .opt { flex: 1; }

/* ==========================================================
   PHONE TYPE SCALE — keep the desktop proportions, not blown up.
   Desktop is untouched; this only applies at phone widths.
   ========================================================== */
@media (max-width: 600px) {
  body { font-size: 15px; line-height: 1.55; }
  .wrap { padding-inline: 20px; }

  /* type */
  .eyebrow { font-size: 10.5px; letter-spacing: 0.12em; gap: 8px; }
  .eyebrow::before { width: 6px; height: 6px; }
  .h2 { font-size: 1.75rem; }
  .lede { font-size: 0.95rem; line-height: 1.6; }
  .display { letter-spacing: -0.015em; }

  /* buttons */
  .btn { padding: 12px 18px; font-size: 11px; gap: 10px; letter-spacing: 0.1em; }
  .hero-cta { gap: 8px; }

  /* header */
  .nav { height: 64px; }
  .brand img { width: 32px; }
  .brand span { font-size: 12.5px; }
  .nav-links { inset: 64px 0 auto 0; }
  .nav-links a:not(.btn) { font-size: 13px; padding: 14px 0; }

  /* home hero */
  .hero { padding-block: 20px 44px; }
  .hero-mark { width: 52%; }
  .hero h1 { font-size: 2.05rem; margin-top: 14px; }
  .hero .lede { margin: 16px 0 22px; }
  .hero-meta { margin-top: 36px; row-gap: 16px; }
  .hero-meta div { padding: 12px 12px 0 0; }
  .hero-meta b { font-size: 0.95rem; }
  .hero-meta span { font-size: 10.5px; }

  /* marquee */
  .marquee-track span { font-size: 1rem; padding: 10px 0; }

  /* sections */
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 26px; gap: 16px; }
  .section-head .h2 { margin-top: 10px; }

  /* elastic services gallery */
  .elastic { height: 460px; gap: 6px; }
  .el-content { padding: 16px; gap: 6px; }
  .el-tag { font-size: 9.5px; padding: 5px 10px; }
  .el-title { font-size: 1.45rem; }
  .el-desc { font-size: 13px; }
  .el-cta { font-size: 10.5px; margin-top: 4px; }
  .el-vert { font-size: 0.8rem; }

  /* project cards */
  .work-grid, .work-grid--page { gap: 22px; }
  .card-media { border-radius: 12px; }
  .card-tag { font-size: 9.5px; padding: 5px 9px; left: 10px; top: 10px; }
  .card-media .play { width: 38px; height: 38px; right: 10px; bottom: 10px; }
  .card-body { padding-top: 10px; }
  .card-title { font-size: 0.9rem; }
  .card-client { font-size: 12.5px; margin-top: 2px; }
  .card-year { font-size: 10.5px; }
  .filters { gap: 6px; margin-bottom: 24px; }
  .chip { font-size: 10.5px; padding: 8px 12px; }

  /* blueprint band */
  .ink-plate { padding: 22px 18px; }

  /* process */
  .step { padding-top: 20px; }
  .step h3 { font-size: 1.2rem; margin: 10px 0 6px; }
  .step p { font-size: 14px; }
  .steps { row-gap: 26px; }

  /* ownership + CTA */
  .own .display { font-size: 1.9rem; }
  .own { gap: 18px; }
  .cta { padding: 34px 22px; border-radius: 18px; }
  .cta .display { font-size: 1.9rem; }
  .cta p { font-size: 14px; margin: 14px 0 22px; }

  /* inner page heroes */
  .page-hero { padding-block: 32px 24px; }
  .page-hero h1 { font-size: 2.5rem; margin-top: 12px; }
  .page-hero .lede { margin-top: 14px; }
  .page-hero .trail-bar { height: 14px; margin-top: 24px; }

  /* services / pricing */
  .svc-block { padding-block: 44px; }
  .svc-block-head { gap: 12px; margin-bottom: 22px; }
  .svc-block-head h2 { font-size: 1.8rem; margin-top: 10px; }
  .svc-block-head p { font-size: 0.95rem; }
  .svc-block-head .note { font-size: 10.5px; }
  .tier { padding: 20px; border-radius: 12px; }
  .tier-name, .badge { font-size: 10px; }
  .badge { padding: 5px 9px; }
  .tier-price { font-size: 2rem; margin: 14px 0 2px; }
  .tier-price--tbd { font-size: 1.45rem; }
  .tier-sub { font-size: 10.5px; }
  .tier-cadence { font-size: 13px; padding: 12px 14px; margin-top: 14px; }
  .tier-cadence b { font-size: 13.5px; }
  .tier-list { margin: 14px 0 20px; }
  .tier-list li { font-size: 14px; padding: 9px 0 9px 20px; }
  .tier-list li::before { top: 16px; width: 6px; height: 6px; }

  /* booking */
  .book-aside ol { margin-top: 22px; }
  .book-aside li { font-size: 14px; padding: 14px 0 14px 40px; }
  .book-aside li::before { top: 15px; font-size: 10.5px; }
  .form { gap: 18px; }
  .field > span, .field legend { font-size: 10.5px; }
  .field input, .field select, .field textarea { font-size: 16px; } /* 16px stops iOS zooming into fields */
  .seg .opt { padding: 12px 14px; border-radius: 10px; }
  .seg .opt b { font-size: 0.85rem; }
  .seg .opt small { font-size: 12px; }
  .pkg-summary { font-size: 12px; }
  .form-foot small { font-size: 12px; }
  .form-success h2 { font-size: 1.9rem; }

  /* player */
  .lb-info h3 { font-size: 1.05rem; }
  .lb-info p { font-size: 13.5px; }

  /* footer */
  .site-footer { padding-block: 44px 24px; margin-top: 64px; }
  .foot-grid { gap: 26px; }
  .foot-brand img { width: 64px; }
  .foot-brand p { font-size: 13.5px; margin-top: 12px; }
  .foot-col h4 { font-size: 10.5px; margin-bottom: 8px; }
  .foot-col a { font-size: 14px; padding: 4px 0; }
  .foot-word { margin: 36px 0 16px; }
  .foot-bottom { font-size: 10.5px; }
}

/* phones: compact project layouts */
@media (max-width: 600px) {
  /* home — featured projects as a swipe row, next card peeking in */
  .work-grid[data-featured] {
    display: flex; gap: 12px; overflow-x: auto;
    margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .work-grid[data-featured]::-webkit-scrollbar { display: none; }
  .work-grid[data-featured] .card { flex: 0 0 72%; scroll-snap-align: start; }

  /* work page — two columns */
  .work-grid--page { grid-template-columns: 1fr 1fr; gap: 20px 10px; }
  .work-grid--page .card-media { border-radius: 10px; }
  .work-grid--page .card-tag { font-size: 8.5px; padding: 4px 7px; left: 7px; top: 7px; }
  .work-grid--page .card-media .play { width: 28px; height: 28px; right: 7px; bottom: 7px; }
  .work-grid--page .card-media .play svg { width: 9px; height: 10px; }
  .work-grid--page .card-body { padding-top: 8px; gap: 6px; }
  .work-grid--page .card-title { font-size: 0.76rem; line-height: 1.2; }
  .work-grid--page .card-client { font-size: 11.5px; }
  .work-grid--page .card-year { display: none; }
}

/* stacked hero (phones / small tablets): headline layers over the logo */
@media (max-width: 900px) {
  .hero-grid { position: relative; display: block; }
  .hero-mark {
    position: absolute; top: 0; right: -4%; z-index: 0;
    width: 64%; max-width: 380px; margin: 0; order: 0;
    pointer-events: none;
  }
  .hero-grid > div:first-child { position: relative; z-index: 1; padding-top: 38%; }
}
@media (max-width: 600px) {
  .hero-mark { width: 66%; right: -6%; top: -4px; }
  .hero-grid > div:first-child { padding-top: 34%; }
}
@media (max-width: 600px) {
  .hero-mark { width: 62%; right: 0; top: -10px; }
}
@media (max-width: 900px) {
  /* small text that crosses the logo keeps a soft paper halo for legibility */
  .hero .eyebrow { text-shadow: 0 0 6px var(--paper), 0 0 12px var(--paper); }
}
/* hero text starts at the very top; smaller logo behind it on the right */
@media (max-width: 900px) {
  .hero-grid > div:first-child { padding-top: 0; }
  .hero-mark { width: 50%; max-width: 320px; top: -6px; right: 0; }
}
@media (max-width: 600px) {
  .hero-grid > div:first-child { padding-top: 0; }
  .hero-mark { width: 50%; top: -6px; right: 0; }
}
@media (max-width: 900px) {
  /* headline crosses the logo: a tight paper halo keeps the letters crisp against it */
  .hero h1 { text-shadow: 0 0 2px var(--paper), 0 0 10px rgba(239, 237, 232, 0.95), 0 0 22px rgba(239, 237, 232, 0.7); }
}

.foot-brand a { display: inline-block; }

/* ---------- legal pages (privacy / terms / cookies) ---------- */
.page-hero--legal h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.legal-meta { margin: 18px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; border-top: 1.5px solid var(--ink); padding-top: clamp(32px, 5vw, 56px); }
.legal-toc { position: sticky; top: 96px; }
.legal-toc ol { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: t; }
.legal-toc li { counter-increment: t; }
.legal-toc a { display: block; padding: 6px 0; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.legal-toc a::before { content: counter(t, decimal-leading-zero) "  "; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 70ch; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.legal section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.legal section:last-child { border-bottom: 0; }
.legal h2 { font-family: var(--display); font-stretch: 115%; font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1.1; color: var(--ink); margin: 0 0 14px; }
.legal h3 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin: 22px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal strong { color: var(--ink); }
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .legal-toc ol { columns: 2; column-gap: 20px; }
}
@media (max-width: 600px) {
  .page-hero--legal h1 { font-size: 2.1rem; }
  .legal-meta { font-size: 10.5px; }
  .legal { font-size: 15px; line-height: 1.65; }
  .legal h2 { font-size: 1.1rem; }
  .legal section { padding-bottom: 26px; margin-bottom: 26px; }
  .legal-toc ol { columns: 1; }
  .legal-toc a { font-size: 13.5px; padding: 5px 0; }
}

/* footer: four columns (brand / navigate / services / legal) */
@media (min-width: 761px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* booking form: consent line */
.form-foot small a { color: var(--ink); text-underline-offset: 3px; }

/* footer: Instagram handle */
.foot-social {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-decoration: none; color: var(--ink);
}
.foot-social svg { transition: transform 0.3s var(--ease); }
.foot-social:hover span { text-decoration: underline; text-underline-offset: 4px; }
.foot-social:hover svg { transform: rotate(-8deg) scale(1.08); }
@media (max-width: 600px) { .foot-social { font-size: 12px; margin-top: 14px; } }
.foot-brand .foot-social { display: inline-flex; }

/* footer: Contact column (brand / navigate / services / legal / contact) */
@media (min-width: 761px) { .foot-grid { grid-template-columns: 1.3fr 0.8fr 0.9fr 0.9fr 1.3fr; } }
.foot-contact .foot-email { overflow-wrap: anywhere; }
.foot-contact .foot-social { margin-top: 2px; padding: 5px 0; font-family: var(--body); font-size: inherit; letter-spacing: 0; }
.foot-contact .foot-book { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.foot-contact .foot-book .arr { display: inline-block; transition: transform 0.3s var(--ease); }
.foot-contact .foot-book:hover .arr { transform: translateX(4px); }
@media (max-width: 600px) { .foot-contact .foot-social { font-size: 14px; } }
.foot-contact .foot-social { display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  .foot-contact { grid-column: 1 / -1; }
  .foot-contact .foot-email { overflow-wrap: normal; }
}

/* ---------- full-width layout: big screens fill the space, readably ---------- */
/* header: logo pinned far left, links far right, at every screen size */
.site-header .nav { max-width: none; width: 100%; }
@media (min-width: 1600px) {
  .work-grid--page { grid-template-columns: repeat(4, 1fr); }
  .elastic { height: clamp(600px, 34vw, 860px); }
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
  .steps p, .svc-desc { max-width: 42ch; }
}
@media (min-width: 2200px) {
  .work-grid--page { grid-template-columns: repeat(5, 1fr); }
}
/* let the big type keep scaling on large screens so it fills the width */
.foot-word { font-size: clamp(2.4rem, 5.2vw, 6rem); letter-spacing: 0.01em; }
@media (min-width: 1600px) {
  .hero h1 { font-size: clamp(7.2rem, 6.6vw, 11rem); }
  .page-hero h1 { font-size: clamp(6rem, 5vw, 7.5rem); }
  .page-hero--legal h1 { font-size: clamp(4.6rem, 3.6vw, 5.4rem); }
  .h2 { font-size: clamp(4.4rem, 3.4vw, 5.2rem); }
}

/* ==========================================================
   MOTION LAYER (all pages): smooth scroll, custom cursor, header theme
   ========================================================== */
/* Lenis smooth scroll (from lenis.css) — native smooth scroll must be off while it runs */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* custom cursor (mouse / trackpad only — added by motion.js) */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
html.has-cursor select { cursor: default !important; }
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  width: 7px; height: 7px; border-radius: 50%; background: #fff; mix-blend-mode: difference;
  opacity: 0; will-change: transform;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.25s;
}
html.cursor-on .cursor-dot { opacity: 1; }
html.cursor-hot .cursor-dot { width: 18px; height: 18px; }

/* header flips to light-on-dark over dark sections */
.site-header { transition: border-color 0.3s, background 0.3s, color 0.3s; }
.site-header.is-dark { color: var(--paper); }
.site-header.is-dark .brand img { filter: invert(1); }
.site-header.is-dark .nav-toggle span { background: var(--paper); }
.site-header.is-dark .nav-links .btn { --bg: var(--paper); --fg: var(--ink); border-color: var(--paper); }
.js .site-header.is-dark.scrolled { background: color-mix(in srgb, #0b0b0b 72%, transparent); border-bottom-color: rgba(239, 237, 232, 0.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (max-width: 760px) {
  .site-header.is-dark .nav-links { color: var(--ink); }
  .site-header.is-dark .nav-links .btn { --bg: var(--ink); --fg: var(--paper); border-color: var(--ink); }
  .nav-open .site-header.is-dark { color: var(--ink); background: var(--paper); }
  .nav-open .site-header.is-dark .brand img { filter: none; }
  .nav-open .site-header.is-dark .nav-toggle span { background: var(--ink); }
}

/* services: three crafts side by side; budget-range chips on the brief form */
.tiers--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .tiers--3 { grid-template-columns: 1fr; } }
.tier-lede { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.tier--feature .tier-lede { color: rgba(239, 237, 232, 0.75); }
.seg--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seg--chips label { display: block; }
.seg--chips .opt { padding: 10px 16px; border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }

/* ==========================================================
   BACKDROPS — quiet, film-inspired background layers.
   Global grain on every page; sections opt in with data-bg:
   grid · rings · frame · lighttable · beam
   Everything is hairline-thin and faded at the edges.
   ========================================================== */

/* film grain over the whole site — barely there, moves at ~8fps */
body::after {
  content: ""; position: fixed; inset: -60%; z-index: 120; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.75s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-4%, 3%); } 33% { transform: translate(3%, -5%); }
  50% { transform: translate(-6%, -2%); } 67% { transform: translate(5%, 4%); } 83% { transform: translate(-2%, 6%); } 100% { transform: translate(0, 0); }
}

[data-bg] { position: relative; isolation: isolate; }
[data-bg]::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* GRID — a storyboard / cutting-mat grid that fades out toward the edges */
[data-bg="grid"]::after {
  background-image:
    linear-gradient(rgba(12, 12, 12, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 12, 12, 0.055) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 78%);
}

/* RINGS — a lens focus target sitting off to the right */
[data-bg="rings"]::after {
  background-image: repeating-radial-gradient(circle at 82% 50%, transparent 0 33px, rgba(12, 12, 12, 0.065) 33px 34px);
  -webkit-mask-image: radial-gradient(circle at 82% 50%, #000 0, #000 16%, transparent 46%);
  mask-image: radial-gradient(circle at 82% 50%, #000 0, #000 16%, transparent 46%);
}

/* FRAME — camera safe-area guides plus a soft light leak (dark sections) */
[data-theme][data-bg="frame"], [data-bg="frame"] { background-image: radial-gradient(900px 560px at 0% 0%, rgba(239, 237, 232, 0.06), transparent 65%); }
[data-bg="frame"]::after {
  inset: clamp(16px, 2.6vw, 36px);
  border: 1px solid rgba(239, 237, 232, 0.07);
  background-image:
    linear-gradient(rgba(239, 237, 232, 0.16), rgba(239, 237, 232, 0.16)),
    linear-gradient(rgba(239, 237, 232, 0.16), rgba(239, 237, 232, 0.16)),
    linear-gradient(90deg, rgba(239, 237, 232, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(239, 237, 232, 0.05) 1px, transparent 1px);
  background-size: 28px 1px, 1px 28px, 33.333% 100%, 100% 33.333%;
  background-position: 50% 50%, 50% 50%, -1px 0, 0 -1px;
  background-repeat: no-repeat, no-repeat, repeat-x, repeat-y;
}

/* LIGHT TABLE — glow under the frames, ruler ticks along the top and bottom */
[data-theme][data-bg="lighttable"], [data-bg="lighttable"] { background-image: radial-gradient(ellipse 65% 38% at 50% 64%, rgba(239, 237, 232, 0.075), transparent 72%); }
[data-bg="lighttable"]::after {
  inset: 22px 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(239, 237, 232, 0.22) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(239, 237, 232, 0.11) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(239, 237, 232, 0.22) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(239, 237, 232, 0.11) 0 1px, transparent 1px 12px);
  background-size: 100% 14px, 100% 7px, 100% 14px, 100% 7px;
  background-position: 0 0, 0 0, 0 100%, 0 100%;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* BEAM — a projector beam falling from the top (dark sections) */
[data-bg="beam"]::after {
  background: conic-gradient(from 162deg at 50% -6%, transparent 0deg, rgba(239, 237, 232, 0.05) 11deg, rgba(239, 237, 232, 0.085) 18deg, rgba(239, 237, 232, 0.05) 25deg, transparent 36deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 88%);
}

@media (max-width: 600px) {
  [data-bg="grid"]::after { background-size: 48px 48px; }
  [data-bg="rings"]::after {
    background-image: repeating-radial-gradient(circle at 92% 28%, transparent 0 25px, rgba(12, 12, 12, 0.065) 25px 26px);
    -webkit-mask-image: radial-gradient(circle at 92% 28%, #000 0, #000 20%, transparent 58%); mask-image: radial-gradient(circle at 92% 28%, #000 0, #000 20%, transparent 58%); }
  [data-bg="frame"]::after { background-size: 22px 1px, 1px 22px, 50% 100%, 100% 50%; }
}
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* ==========================================================
   WORK page — black-and-white gallery; a tile blooms into color when picked
   ========================================================== */
.wk-filters { margin: 0 0 clamp(26px, 3.4vw, 44px); }
.wk-filters .chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 11px 18px; }
.wk-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15.5vw, 280px); gap: clamp(10px, 1.3vw, 20px); grid-auto-flow: dense; }
.wk-tile { position: relative; grid-column: span 2; grid-row: span 2; overflow: hidden; padding: 0; border: 0; border-radius: 3px; background: #121212; color: var(--paper); cursor: pointer; text-align: left;
  opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.wk-grid.is-in .wk-tile { opacity: 1; transform: none; }
/* bento rhythm (repeats every 7): small · tall · small / small · small / wide · wide */
.wk-grid--bento .wk-tile { grid-row: span 1; }
.wk-grid--bento .wk-tile:nth-child(7n+2) { grid-row: span 2; }
.wk-grid--bento .wk-tile:nth-child(7n+6), .wk-grid--bento .wk-tile:nth-child(7n+7) { grid-column: span 3; grid-row: span 2; }
.wk-grid--bento .wk-tile:last-child:nth-child(7n+1), .wk-grid--bento .wk-tile:last-child:nth-child(7n+6) { grid-column: 1 / -1; grid-row: span 2; }
.wk-grid[data-count="1"] .wk-tile { grid-column: 1 / -1; grid-row: span 3; }
.wk-grid[data-count="2"] .wk-tile, .wk-grid[data-count="4"] .wk-tile { grid-column: span 3; }

.wk-tile video, .wk-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.86); transform: scale(1.02); transition: filter 0.9s var(--ease), transform 1.2s var(--ease); }
.wk-tile:hover video, .wk-tile:hover img, .wk-tile:focus-visible video { filter: grayscale(1) contrast(1.08) brightness(1); transform: scale(1.05); }
.wk-tile.is-color video, .wk-tile.is-color img { filter: none; transform: scale(1.04); }
.wk-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 26%); }
.wk-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 42%); opacity: 0; transition: opacity 0.5s; }
.wk-tile:hover::after, .wk-tile:focus-visible::after { opacity: 1; }
.wk-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wk-tc { position: absolute; left: 14px; top: 14px; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.85); font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.wk-play { position: absolute; right: 14px; top: 12px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; padding-left: 2px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85); color: #fff; transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.wk-tile:hover .wk-play { background: #fff; color: #0c0c0c; transform: scale(1.08); }
.wk-info { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: grid; gap: 4px; opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.wk-tile:hover .wk-info, .wk-tile:focus-visible .wk-info { opacity: 1; transform: none; }
.wk-info b { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1; }
.wk-info i { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }

@media (max-width: 760px) {
  .wk-grid, .wk-grid--bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .wk-grid .wk-tile, .wk-grid--bento .wk-tile { grid-column: 1 / -1 !important; grid-row: auto !important; aspect-ratio: 4 / 3; }
  .wk-info { opacity: 1; transform: none; }
  .wk-tile::after { opacity: 1; }
  .wk-info b { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .wk-tile { opacity: 1; transform: none; transition: none; } }
