/* Underwood Projects, style draft v1
   One family (Host Grotesk), white paper, a quiet dot grid, a full width 12 column grid. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #5f5f5f;
  --line: #e3e3e3;
  --wash: #f5f5f5;
  --dot: rgba(0, 0, 0, 0.13);
  --dot-lit: rgba(0, 0, 0, 0.36);

  --edge: 20px;
  --gap: 20px;
  --pitch: 28px;
  --radius: 4px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-mid: 320ms;

  --font: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #bdbdbd transparent;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.25px);
  background-size: var(--pitch) var(--pitch);
  background-position: calc(var(--edge) - var(--pitch) / 2) calc(var(--edge) - var(--pitch) / 2);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The one signature: the dots sharpen a little under the pointer, like light on a cutting mat. */
.spot {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dot-lit) 1px, transparent 1.25px);
  background-size: var(--pitch) var(--pitch);
  background-position: calc(var(--edge) - var(--pitch) / 2) calc(var(--edge) - var(--pitch) / 2 - var(--sy, 0px));
  -webkit-mask-image: radial-gradient(170px circle at var(--mx, -400px) var(--my, -400px), #000 0%, transparent 100%);
  mask-image: radial-gradient(170px circle at var(--mx, -400px) var(--my, -400px), #000 0%, transparent 100%);
  opacity: 0;
  transition: opacity 400ms linear;
}
.spot.on { opacity: 1; }
@media (hover: none) { .spot { display: none; } }

::selection { background: var(--ink); color: var(--paper); }

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.skip {
  position: absolute;
  left: var(--edge);
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
}
.skip:focus { top: 12px; }

/* ---------- grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-inline: var(--edge);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding-inline: var(--edge);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) linear;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { height: 20px; width: auto; transform: translateY(3px); }
.brand span { font-size: 14px; color: var(--ink-2); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding-inline: 12px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-2);
  transition: color var(--t-fast) linear;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 500; }
.nav .btn { margin-left: 12px; }

.site-header .menu-toggle { display: none; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-menu { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) linear, color var(--t-fast) linear, transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { height: 36px; padding-inline: 16px; font-size: 14px; }

.text-link {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color var(--t-fast) linear;
}
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- views ---------- */

main { position: relative; z-index: 1; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.08; }
h3 { font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }

.section { padding-top: clamp(72px, 9vw, 140px); padding-bottom: 0; }
.section-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head a { font-size: 15px; white-space: nowrap; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(56px, 9vw, 132px); padding-bottom: clamp(48px, 6vw, 88px); row-gap: clamp(32px, 4vw, 56px); }
.hero h1 {
  grid-column: 1 / span 10;
  font-size: clamp(2.75rem, 7.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero h1 .line > span { display: block; }
.hero-lede { grid-column: 1 / span 5; }
.hero-lede p { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-facts { grid-column: 9 / span 4; align-self: end; font-size: 15px; }
.hero-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-top: 10px; padding-bottom: 10px; border-top: 1px solid var(--line); }
.hero-facts div:last-child { border-bottom: 1px solid var(--line); }
.hero-facts dt { color: var(--ink-2); }

/* load moment, once */
.js .hero h1 .line > span { transform: translateY(105%); }
.js .hero-lede, .js .hero-facts { opacity: 0; }
.js.ready .hero h1 .line > span { transform: none; transition: transform 900ms var(--ease); }
.js.ready .hero h1 .line:nth-child(2) > span { transition-delay: 70ms; }
.js.ready .hero h1 .line:nth-child(3) > span { transition-delay: 140ms; }
.js.ready .hero-lede, .js.ready .hero-facts { opacity: 1; transition: opacity 700ms linear 380ms; }

/* ---------- project tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px var(--gap);
  padding-inline: var(--edge);
}
.tile { display: block; text-decoration: none; }
.tile-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1708 / 996;
  background: var(--wash);
  border-radius: var(--radius);
}
.tile-media img, .tile-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 700ms var(--ease);
}
.tile-media video { opacity: 0; transition: opacity 240ms linear, transform 700ms var(--ease); }
.tile-media video.playing { opacity: 1; }
.tile:hover .tile-media img, .tile:hover .tile-media video { transform: scale(1.025); }
.tile-media .motion-flag {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  color: var(--ink-2);
  opacity: 0.7;
  transition: opacity var(--t-fast) linear;
}
.tile:hover .motion-flag { opacity: 0; }
.tile-text { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: 15px; }
.tile-text strong { font-weight: 500; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size 420ms var(--ease); padding-bottom: 2px; }
.tile:hover .tile-text strong, .tile:focus-visible .tile-text strong { background-size: 100% 1px; }
.tile-text span { color: var(--ink-2); text-align: right; }

/* ---------- about ---------- */

.about h2 { grid-column: 1 / span 5; }
.about-copy { grid-column: 7 / span 6; }
.about-copy p { max-width: 62ch; }
.about-copy p + p { margin-top: 1.1em; }
.about-copy p:first-child { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; }
.about-copy .btn { margin-top: 32px; }

/* ---------- clients ---------- */

.clients h2 { grid-column: 1 / span 5; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }
.clients p {
  grid-column: 1 / -1;
  margin-top: 20px;
  font-size: clamp(1.75rem, 4.2vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: #767676;
}
.clients p span { color: var(--ink); white-space: nowrap; }

/* ---------- process ---------- */

.process h2 { grid-column: 1 / span 5; }
.process-intro { grid-column: 7 / span 6; max-width: 52ch; color: var(--ink-2); }
.stepper { grid-column: 1 / -1; margin-top: 48px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps button {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px 16px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  transition: color var(--t-fast) linear;
}
.steps button .num { font-size: 13px; font-variant-numeric: tabular-nums; }
.steps button .name { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.steps button:hover, .steps button[aria-selected="true"] { color: var(--ink); }
.steps .marker {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: calc(100% / 7);
  background: var(--ink);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 520ms var(--ease);
}
.step-panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-top: 28px;
  min-height: 190px;
}
.step-panel .what { grid-column: 1 / span 6; font-size: clamp(1.375rem, 2.2vw, 2rem); line-height: 1.3; letter-spacing: -0.025em; font-weight: 500; max-width: 24ch; }
.step-panel .out { grid-column: 9 / span 4; font-size: 15px; }
.step-panel .out h3 { font-size: 15px; font-weight: 400; color: var(--ink-2); margin-bottom: 6px; }
.step-panel .out li { padding-top: 9px; padding-bottom: 9px; border-top: 1px solid var(--line); }
.step-panel.swap .what, .step-panel.swap .out { animation: swap 420ms var(--ease) both; }
.step-panel.swap .out { animation-delay: 50ms; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- services index ---------- */

.services h2 { grid-column: 1 / span 5; }
.services-list { grid-column: 1 / -1; margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.services-list li { padding-top: 14px; padding-bottom: 14px; border-top: 1px solid var(--line); font-size: 17px; }
.services-more { grid-column: 1 / -1; margin-top: 28px; }

/* ---------- faq ---------- */

.faq h2 { grid-column: 1 / span 5; }
.faq-list { grid-column: 7 / span 6; border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
  padding-top: 14px; padding-bottom: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: none; width: 16px; height: 16px; transition: transform var(--t-mid) var(--ease); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 22px; max-width: 62ch; color: #333; }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--t-mid) var(--ease), content-visibility var(--t-mid) allow-discrete; }
  .faq-list details[open]::details-content { block-size: auto; }
}

/* ---------- footer ---------- */

.site-footer { position: relative; z-index: 1; margin-top: clamp(96px, 12vw, 180px); padding-top: 0; padding-bottom: 28px; row-gap: 56px; }
.footer-cta { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.footer-cta .mail { font-size: clamp(1.75rem, 5.4vw, 4.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; text-decoration: none; overflow-wrap: anywhere; }
.footer-cta .mail:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); font-size: 15px; color: var(--ink-2); }
.footer-cols address { grid-column: 1 / span 4; font-style: normal; }
.footer-cols ul { grid-column: 7 / span 3; }
.footer-cols ul a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.footer-cols ul a:hover { color: var(--ink); }
.footer-cols small { grid-column: 10 / span 3; text-align: right; font-size: 15px; }

/* ---------- projects view ---------- */

.page-head { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(36px, 4vw, 56px); row-gap: 24px; }
.page-head h1 { grid-column: 1 / span 8; font-size: clamp(2.75rem, 7.2vw, 6rem); line-height: 0.98; letter-spacing: -0.04em; }
.page-head p { grid-column: 1 / span 5; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; max-width: 36ch; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-inline: var(--edge); margin-bottom: 28px; }
.filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 15px;
  cursor: pointer;
  transition: border-color var(--t-fast) linear, background-color var(--t-fast) linear, color var(--t-fast) linear;
}
.filters button span { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 13px; transition: color var(--t-fast) linear; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters button[aria-pressed="true"] span { color: #bdbdbd; }

.pending { padding-inline: var(--edge); margin-top: 56px; }
.pending h2 { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); margin-bottom: 4px; }
.pending ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.pending li { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.pending li span { color: var(--ink-2); text-align: right; }

/* ---------- project view ---------- */

.case-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(32px, 4vw, 56px); row-gap: 28px; }
.case-back { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; width: max-content; }
.case-back:hover { color: var(--ink); }
.case-back svg { width: 14px; height: 14px; }
.case-head h1 { grid-column: 1 / span 9; font-size: clamp(2.5rem, 6.2vw, 5.25rem); line-height: 1; letter-spacing: -0.04em; }
.case-head .tagline { grid-column: 1 / span 5; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; max-width: 30ch; }
.case-meta { grid-column: 9 / span 4; align-self: end; font-size: 15px; }
.case-meta div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-top: 10px; padding-bottom: 10px; border-top: 1px solid var(--line); }
.case-meta div:last-child { border-bottom: 1px solid var(--line); }
.case-meta dt { color: var(--ink-2); }

.case-hero { padding-inline: var(--edge); }
.shot { position: relative; overflow: hidden; background: var(--wash); border-radius: var(--radius); }
.shot img { width: 100%; height: auto; mix-blend-mode: multiply; }
.shot.photo img { mix-blend-mode: normal; }
button.shot { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }

.case-text { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(28px, 3vw, 40px); }
.case-text h2 { grid-column: 1 / span 5; }
.case-text div { grid-column: 7 / span 6; }
.case-text p { max-width: 62ch; }
.case-text p + p { margin-top: 1.1em; }

.shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-inline: var(--edge); align-items: start; }
.shots .shot { aspect-ratio: 3 / 2; }
.shots .shot img { position: absolute; inset: 0; height: 100%; object-fit: contain; padding: 3%; transition: transform 700ms var(--ease); }
.shots .shot.photo img { object-fit: cover; padding: 0; }
.shots .shot:hover img { transform: scale(1.02); }
.shots .c12 { grid-column: span 12; }
.shots .c6 { grid-column: span 6; }
.shots .c4 { grid-column: span 4; }

.case-next { margin-top: clamp(72px, 9vw, 140px); }
.case-next a { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; border-block: 1px solid var(--line); text-decoration: none; }
.case-next small { font-size: 15px; color: var(--ink-2); }
.case-next strong { font-size: clamp(1.75rem, 4.2vw, 3.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }

/* ---------- booking drawer + lightbox (native dialogs) ---------- */

dialog { padding: 0; border: 0; color: var(--ink); }

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(460px, 100vw);
  height: 100dvh;
  max-height: none;
  max-width: none;
  margin: 0;
  background: var(--paper);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 460ms var(--ease), overlay 460ms allow-discrete, display 460ms allow-discrete;
}
.drawer[open] { transform: none; }
@starting-style { .drawer[open] { transform: translateX(100%); } }
.drawer::backdrop { background: rgba(255, 255, 255, 0); transition: background-color 460ms linear, overlay 460ms allow-discrete, display 460ms allow-discrete; }
.drawer[open]::backdrop { background: rgba(245, 245, 245, 0.78); }
@starting-style { .drawer[open]::backdrop { background: rgba(255, 255, 255, 0); } }

.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 64px; padding-inline: 24px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 17px; letter-spacing: -0.01em; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; cursor: pointer; transition: background-color var(--t-fast) linear; }
.icon-btn:hover { background: var(--wash); }
.icon-btn svg { display: block; width: 16px; height: 16px; }
.drawer-body { padding: 24px; }
.drawer-body > p { color: #333; max-width: 40ch; }
.drawer-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 15px; color: var(--ink-2); }

.cal { margin-top: 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-weight: 500; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { font-size: 13px; color: var(--ink-2); text-align: center; padding-top: 8px; padding-bottom: 8px; }
.cal-grid button, .cal-grid span.day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius); background: none; font-size: 15px; font-variant-numeric: tabular-nums; }
.cal-grid span.day { color: #c4c4c4; }
.cal-grid button { background: var(--wash); cursor: pointer; transition: background-color var(--t-fast) linear, color var(--t-fast) linear; }
.cal-grid button:hover { background: #e6e6e6; }
.cal-grid button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.slots { margin-top: 24px; }
.slots h3 { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.slots ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slots button { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color var(--t-fast) linear, background-color var(--t-fast) linear, color var(--t-fast) linear; }
.slots button:hover { border-color: var(--ink); }
.slots button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.draft-note { margin-top: 24px; padding: 14px 16px; background: var(--wash); border-radius: var(--radius); font-size: 14px; line-height: 1.45; color: #333; }
.drawer-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.drawer-foot .btn { width: 100%; }
.drawer-foot p { font-size: 15px; color: var(--ink-2); text-align: center; margin-top: 6px; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(255, 255, 255, 0.97); }
.lightbox[open] { display: grid; place-items: center; animation: fade 220ms linear; }
.lightbox img { max-width: calc(100vw - 40px); max-height: calc(100dvh - 40px); object-fit: contain; cursor: zoom-out; }
.lightbox .icon-btn { position: absolute; right: 12px; top: 10px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) linear, transform var(--t-mid) var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* view to view cross fade */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: linear; }
::view-transition-group(*) { animation-duration: 520ms; animation-timing-function: var(--ease); }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .hero h1, .page-head h1, .case-head h1 { grid-column: 1 / -1; }
  .hero-lede, .page-head p, .case-head .tagline { grid-column: 1 / span 7; }
  .hero-facts, .case-meta { grid-column: 8 / span 5; }
  .about h2, .process h2, .faq h2, .case-text h2 { grid-column: 1 / -1; margin-bottom: 24px; }
  .about-copy, .process-intro, .faq-list, .case-text div { grid-column: 1 / span 10; }
  .step-panel .what { grid-column: 1 / span 7; }
  .step-panel .out { grid-column: 8 / span 5; }
}

@media (max-width: 820px) {
  :root { --edge: 16px; --gap: 12px; }
  body { font-size: 16px; }
  .brand span { display: none; }
  .site-header .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--edge) 24px;
    background: var(--paper);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-fast) linear, transform var(--t-mid) var(--ease), visibility 0s linear var(--t-mid);
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav a { height: 60px; padding-inline: 0; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 24px 0 0; height: 52px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--paper); border-bottom: 1px solid var(--ink); }
  .nav .btn:hover { color: var(--ink); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .tile-text { flex-direction: column; gap: 0; }
  .tile-text span { text-align: left; }
  .hero-lede, .page-head p, .case-head .tagline, .hero-facts, .case-meta, .about-copy, .process-intro, .faq-list, .case-text div { grid-column: 1 / -1; }
  .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 132px; overflow-x: auto; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .steps .marker { width: 132px; }
  .step-panel .what, .step-panel .out { grid-column: 1 / -1; }
  .step-panel .out { margin-top: 24px; }
  .services-list, .pending ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols address, .footer-cols ul { grid-column: span 6; }
  .footer-cols small { grid-column: 1 / -1; text-align: left; margin-top: 24px; }
  .shots .c4 { grid-column: span 6; }
}

@media (max-width: 560px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile-text { flex-direction: row; }
  .tile-text span { text-align: right; }
  .services-list, .pending ul { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn, .footer-actions .btn { flex: 1 1 100%; height: 52px; }
  .shots .c6, .shots .c4 { grid-column: span 12; }
  .case-next a { flex-direction: column; gap: 6px; }
  .footer-cols address, .footer-cols ul { grid-column: 1 / -1; }
  .footer-cols ul { margin-top: 20px; }
  .slots ul { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .hero h1 .line > span { transform: none; }
  .js .hero-lede, .js .hero-facts { opacity: 1; }
  .spot { display: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ================= v2 ================= */
:root { --pitch: 22px; --dot-lit: rgba(0, 0, 0, 0.6); }
body { background-image: radial-gradient(circle, var(--dot) 0.9px, transparent 1.1px); }
.spot {
  background-image: radial-gradient(circle, var(--dot-lit) 0.9px, transparent 1.1px);
  -webkit-mask-image: radial-gradient(220px circle at var(--mx, -400px) var(--my, -400px), #000 0%, transparent 100%);
  mask-image: radial-gradient(220px circle at var(--mx, -400px) var(--my, -400px), #000 0%, transparent 100%);
}

.brand { align-items: center; gap: 10px; }
.brand .mark { flex: none; height: 19px; width: auto; fill: var(--ink); }
.brand strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.brand span { font-size: 15px; line-height: 1; color: var(--ink-2); }
.nav a { padding-inline: 10px; }

/* hero with rolling image */
.hero2 { grid-template-rows: auto auto 1fr; align-items: start; padding-top: clamp(40px, 6vw, 88px); }
.hero2 h1 { grid-column: 1 / span 8; grid-row: 1; }
.hero2 .roller { grid-column: 9 / span 4; grid-row: 1 / span 3; }
.hero2 .hero-lede { grid-column: 1 / span 5; grid-row: 2; }
.hero2 .hero-facts { grid-column: 1 / span 5; grid-row: 3; align-self: end; }
.roller { position: relative; aspect-ratio: 479 / 643; overflow: hidden; background: var(--wash); border-radius: var(--radius); }
.roller img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: 0; transition: opacity 900ms linear; }
.roller img.on { opacity: 1; }
.js .roller { opacity: 0; }
.js.ready .roller { opacity: 1; transition: opacity 800ms linear 250ms; }
.pulse { position: relative; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: #2f9e5b; vertical-align: 2px; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #2f9e5b; opacity: 0; animation: ping 2600ms ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

/* client logos */
.clients2 h2 { grid-column: 1 / span 5; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }
.logos { grid-column: 1 / -1; margin-top: 20px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.logos li { display: flex; align-items: center; justify-content: center; height: 108px; border-bottom: 1px solid var(--line); }
.logos img { width: auto; height: auto; max-width: 60%; max-height: 46px; mix-blend-mode: multiply; opacity: 0.78; transition: opacity var(--t-fast) linear; }
.logos li:hover img { opacity: 1; }

/* the tangled line */
.sq { display: block; width: 100%; height: 250px; overflow: visible; }
.sq path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sq-base { stroke: #c2c2c2; stroke-width: 1.5; stroke-dasharray: 1000 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2800ms cubic-bezier(0.5, 0, 0.2, 1); }
.sq.drawn .sq-base { stroke-dashoffset: 0; }
.sq-hi { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 0 0 0 1000; transition: stroke-dasharray 900ms var(--ease); }
.teaser h2 { grid-column: 1 / span 5; }
.teaser .process-intro { grid-column: 7 / span 6; color: #333; }
.sq-wrap { grid-column: 1 / -1; display: block; margin-top: 32px; text-decoration: none; }
.sq-teaser { height: 250px; }
.sq-wrap .sq-hi { transition-duration: 2200ms; }
.sq-ends { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.process .stepper { margin-top: 0; }
.sq-main { height: 340px; margin-bottom: 12px; }
.step-fig { grid-column: 1 / span 8; margin-top: 40px; aspect-ratio: 16 / 7; }
.step-fig img { width: 100%; height: 100%; object-fit: contain; object-position: left top; mix-blend-mode: multiply; }
.step-svc { grid-column: 9 / span 4; margin-top: 40px; }
.step-svc h3, .svc-stages h3 { font-size: 15px; font-weight: 400; color: var(--ink-2); margin-bottom: 10px; }
.step-panel.swap .step-fig, .step-panel.swap .step-svc { animation: swap 520ms var(--ease) 90ms both; }
.chip { display: inline-flex; align-items: center; min-height: 38px; margin: 0 6px 8px 0; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; line-height: 1.2; text-decoration: none; transition: border-color var(--t-fast) linear; }
.chip:hover { border-color: var(--ink); }
.endcap h2 { grid-column: 1 / span 5; }
.endcap div { grid-column: 7 / span 6; }
.endcap p { max-width: 52ch; }

/* services */
.svc-home { grid-column: 1 / -1; margin-top: 28px; border-bottom: 1px solid var(--line); }
.svc-home a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 15px; padding-bottom: 15px; border-top: 1px solid var(--line); text-decoration: none; }
.svc-home strong { font-weight: 500; font-size: clamp(1.125rem, 1.6vw, 1.5rem); letter-spacing: -0.02em; transition: transform 420ms var(--ease), color var(--t-fast) linear; }
.svc-home span { font-size: 15px; color: var(--ink-2); text-align: right; opacity: 0; transform: translateX(-10px); transition: opacity 200ms linear, transform 420ms var(--ease); }
.svc-home a:hover strong, .svc-home a:focus-visible strong { transform: translateX(12px); }
.svc-home a:hover span, .svc-home a:focus-visible span { opacity: 1; transform: none; }
.svc-home:hover a:not(:hover) strong { color: #8a8a8a; }
@media (hover: none) { .svc-home span { opacity: 1; transform: none; } }
.svc-list { grid-column: 1 / span 6; border-bottom: 1px solid var(--line); }
.svc-list > li > button { display: block; width: 100%; padding: 14px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font-size: clamp(1.25rem, 2vw, 1.875rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; color: #8a8a8a; cursor: pointer; transition: color var(--t-fast) linear, padding-left 420ms var(--ease); }
.svc-list > li > button:hover { color: var(--ink); }
.svc-list > li > button[aria-pressed="true"] { color: var(--ink); padding-left: 14px; }
.svc-pane { grid-column: 8 / span 5; position: sticky; top: 96px; align-self: start; }
.svc-pane h2 { margin-bottom: 14px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.svc-pane #svc-desc { max-width: 52ch; }
.svc-tag { margin-top: 20px; font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; max-width: 22ch; }
.svc-stages { margin: 28px 0 22px; }
.svc-pane.swap > * { animation: swap 420ms var(--ease) both; }

/* about and insights */
.about-head h1 { grid-column: 1 / -1; }
.about-portrait { grid-column: 1 / span 4; }
.about-portrait img { width: 100%; height: auto; border-radius: var(--radius); }
.about-body { grid-column: 6 / span 7; }
.about-body p { max-width: 62ch; }
.about-body p + p { margin-top: 1.1em; }
.about-body p:first-child { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; }
.about-body .hero-actions { margin-top: 32px; }
.tools h2 { grid-column: 1 / span 5; }
.tools ul { grid-column: 1 / -1; margin-top: 28px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: var(--gap); }
.tools li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.posts { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
.posts a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none; }
.posts strong { max-width: 32ch; font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 2rem); letter-spacing: -0.025em; line-height: 1.15; transition: transform 420ms var(--ease); }
.posts span { font-size: 15px; color: var(--ink-2); }
.posts a:hover strong { transform: translateX(12px); }
.footer-cols address .mark { display: block; height: 46px; width: auto; margin-bottom: 18px; fill: var(--ink); }

@media (max-width: 1100px) {
  .hero2 h1 { grid-column: 1 / -1; }
  .hero2 .roller { grid-column: 8 / span 5; grid-row: 2 / span 2; }
  .hero2 .hero-lede, .hero2 .hero-facts { grid-column: 1 / span 6; }
  .teaser h2, .endcap h2, .tools h2 { grid-column: 1 / -1; margin-bottom: 20px; }
  .teaser .process-intro, .endcap div { grid-column: 1 / span 10; }
  .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .svc-list { grid-column: 1 / span 6; }
  .svc-pane { grid-column: 7 / span 6; }
  .step-fig { grid-column: 1 / span 7; }
  .step-svc { grid-column: 8 / span 5; }
  .about-portrait { grid-column: 1 / span 5; }
  .about-body { grid-column: 6 / span 7; }
  .tools ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero2 { grid-template-rows: none; }
  .hero2 h1, .hero2 .hero-lede, .hero2 .hero-facts, .hero2 .roller { grid-column: 1 / -1; grid-row: auto; }
  .hero2 .roller { aspect-ratio: 4 / 3.6; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos li { height: 88px; }
  .sq { height: 170px; }
  .sq-base { stroke-width: 3.5; }
  .sq-hi { stroke-width: 5; }
  .sq-ends span:nth-child(2) { display: none; }
  .teaser .process-intro, .endcap div, .step-fig, .step-svc, .svc-list, .about-portrait, .about-body { grid-column: 1 / -1; }
  .step-fig, .step-svc { margin-top: 24px; }
  .svc-pane { position: static; padding: 6px 0 26px; }
  .svc-home a { flex-direction: column; gap: 2px; }
  .svc-home span { text-align: left; }
  .about-portrait { max-width: 420px; }
  .tools ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .roller { opacity: 1; }
  .sq-base { stroke-dashoffset: 0; }
  .pulse::after { animation: none; }
}

/* ================= v3: quieter pass. Smaller text, more air, SF Pro (system) with Inter fallback, proposal green ================= */
:root {
  --ink: #090909;
  --ink-2: #6a6a6a;
  --green: #009951;
  --dot: rgba(0, 0, 0, 0.085);
  --dot-lit: rgba(0, 0, 0, 0.3);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
}
body { font-size: 16px; line-height: 1.55; }
::selection { background: var(--green); color: #fff; }
.spot {
  -webkit-mask-image: radial-gradient(140px circle at var(--mx, -400px) var(--my, -400px), #000 0%, transparent 100%);
  mask-image: radial-gradient(140px circle at var(--mx, -400px) var(--my, -400px), #000 0%, transparent 100%);
}

/* type roles: display, section heading, lede, body, meta */
h1, h2, h3 { font-weight: 700; }
h2 { font-size: clamp(1.375rem, 1.9vw, 1.75rem); line-height: 1.15; letter-spacing: -0.022em; }
.hero h1, .page-head h1 { font-size: clamp(2.75rem, 6.4vw, 5.5rem); line-height: 0.98; letter-spacing: -0.04em; }
.case-head h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); }
.hero-lede p, .page-head p, .case-head .tagline, .about-copy p:first-child, .about-body p:first-child { font-size: 1.125rem; line-height: 1.45; color: var(--ink); }
.about-copy p, .about-body p, .case-text p, .faq-list details p, .svc-pane #svc-desc, .endcap p, .teaser .process-intro, .process-intro { font-size: 1rem; line-height: 1.55; color: #3d3d3d; max-width: 58ch; }
.hero-facts, .case-meta, .tile-text, .section-head a, .footer-cols, .footer-cols small, .nav a, .brand strong, .brand span, .filters button, .pending li, .tools li, .step-panel .out, .step-svc, .sq-ends, .case-back { font-size: 14px; }
.btn { font-size: 14px; }
.btn.small { font-size: 13px; }
.faq-list summary { font-size: 1rem; min-height: 56px; }
.step-panel .what { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; max-width: 26ch; }
.case-next strong { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.footer-cta .mail { font-size: clamp(1.5rem, 3.6vw, 3rem); letter-spacing: -0.035em; }

/* more air around the big headings */
.section { padding-top: clamp(104px, 12vw, 192px); }
.hero2 { padding-top: clamp(64px, 9vw, 136px); padding-bottom: clamp(72px, 9vw, 136px); }
.page-head { padding-top: clamp(80px, 10vw, 160px); padding-bottom: clamp(56px, 6vw, 96px); }
.section-head { margin-bottom: 32px; }
.site-footer { margin-top: clamp(120px, 14vw, 220px); }

/* green, used only on small graphics and hover lines */
.pulse { background: var(--green); }
.pulse::after { border-color: var(--green); }
.sq-hi { stroke: var(--green); stroke-width: 2.25; }
.steps .marker { background: var(--green); }
.text-link:hover { text-decoration-color: var(--green); }
.tile-text strong { background-image: linear-gradient(var(--green), var(--green)); }

/* hover video replaces the still instead of sitting on top of it */
.tile-media img { transition: transform 700ms var(--ease), opacity 240ms linear; }
.tile-media:has(video.playing) img { opacity: 0; }

/* images never shown larger than their files allow */
.hero2 .roller { max-width: 340px; }
.step-fig { aspect-ratio: auto; max-width: 560px; }
.step-fig img { height: auto; }
.about-portrait { max-width: 380px; }

/* home services: quiet index */
.svc-home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); border-bottom: 0; }
.svc-home a { display: block; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; transition: padding-left 420ms var(--ease), color var(--t-fast) linear; }
.svc-home a:hover, .svc-home a:focus-visible { padding-left: 8px; }
.svc-home:hover a:not(:hover) { color: var(--ink-2); }

/* services page: name plus one plain line, detail on demand */
.svc-list > li > button { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 15px 0; font-size: 1rem; letter-spacing: 0; color: var(--ink); }
.svc-list > li > button strong { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.svc-list > li > button span { font-size: 14px; font-weight: 400; color: var(--ink-2); text-align: right; }
.svc-list > li > button[aria-pressed="true"] { padding-left: 0; }
.svc-list > li > button[aria-pressed="true"] strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--green); vertical-align: 2px; }
.svc-list > li > button:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.svc-pane h2 { margin-bottom: 12px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.svc-tag { display: none; }
.svc-stages { margin: 24px 0 22px; }

/* insights: cards with thumbnails */
.post-cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px var(--gap); }
.post-cards a { display: block; text-decoration: none; }
.post-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); border-radius: var(--radius); }
.post-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 9%; mix-blend-mode: multiply; transition: transform 700ms var(--ease); }
.post-cards a:hover .post-thumb img { transform: scale(1.03); }
.post-cards strong { display: block; max-width: 30ch; margin-top: 16px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.post-more { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.post-cards a:hover .post-more { color: var(--green); }

@media (min-width: 1101px) {
  .hero2 .roller { grid-column: 10 / span 3; justify-self: end; width: 100%; }
  .svc-list { grid-column: 1 / span 7; }
  .svc-pane { grid-column: 9 / span 4; }
  .about-portrait { grid-column: 1 / span 3; }
  .about-body { grid-column: 5 / span 7; }
}
@media (min-width: 1900px) {
  #project-grid, .post-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 2600px) {
  :root { --edge: 32px; --gap: 24px; }
  #project-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero2 .roller { max-width: 300px; aspect-ratio: 479 / 643; }
  .svc-home, .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-list > li > button { flex-direction: column; gap: 2px; }
  .svc-list > li > button span { text-align: left; }
}
@media (max-width: 560px) {
  .svc-home, .post-cards { grid-template-columns: minmax(0, 1fr); }
}

.mini { margin-bottom: 8px; font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--ink-2); }

/* ================= v4: semibold headings, tidier footer, process and services layouts ================= */
h1, h2, h3, .footer-cta .mail, .svc-pane h2, .tile-text strong { font-weight: 600; }
.hero h1, .page-head h1, .case-head h1 { letter-spacing: -0.035em; }

/* home: more room for the title, smaller rolling image */
.hero2 { padding-top: clamp(88px, 12vw, 208px); padding-bottom: clamp(88px, 10vw, 168px); row-gap: clamp(36px, 4vw, 64px); }
.hero2 .roller { max-width: 260px; }

/* home services: a faded image sits behind the hovered line */
.svc-home-wrap { grid-column: 1 / -1; position: relative; margin-top: 28px; }
.svc-home-wrap .svc-home { position: relative; z-index: 1; margin-top: 0; }
.svc-ghost { position: absolute; z-index: 0; left: 50%; top: 50%; width: 250px; height: 170px; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transform: translate(-50%, -50%) scale(0.96); pointer-events: none; transition: opacity 260ms linear, transform 520ms var(--ease); }
.svc-ghost.on { opacity: 0.24; transform: translate(-50%, -50%) scale(1); }

/* services page: list and detail sit together instead of at opposite edges */
.svc { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 440px); column-gap: clamp(40px, 7vw, 120px); align-items: start; }
.svc .svc-list, .svc .svc-pane { grid-column: auto; }
.svc-fig { aspect-ratio: 4 / 3; margin-bottom: 24px; overflow: hidden; background: var(--wash); border-radius: var(--radius); }
.svc-fig img { width: 100%; height: 100%; object-fit: contain; padding: 9%; mix-blend-mode: multiply; }
.svc-pane.swap .svc-fig { animation: none; }
.svc-pane.swap .svc-fig img { animation: swap 520ms var(--ease) both; }
.svc-stages { margin: 24px 0 0; }

/* process panel: statement and lists left, image right */
.step-panel { row-gap: 32px; padding-top: 36px; }
.step-panel .what { grid-column: 1 / span 6; grid-row: 1; }
.step-panel .out { grid-column: 1 / span 3; grid-row: 2; }
.step-svc { grid-column: 4 / span 3; grid-row: 2; margin-top: 0; }
.step-fig { grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: start; margin-top: 0; max-width: 520px; }
.sq-main { height: 360px; }

/* footer */
.site-footer { row-gap: 64px; }
.footer-cta { align-items: center; padding-top: 44px; border-top-color: var(--line); }
.footer-cols { align-items: start; line-height: 1.6; }
.footer-cols .f-brand { grid-column: 1 / span 3; display: flex; align-items: flex-start; gap: 12px; }
.footer-cols .f-brand .mark { flex: none; height: 30px; width: auto; margin-top: 3px; fill: var(--ink); }
.footer-cols .f-brand strong { font-weight: 600; color: var(--ink); }
.footer-cols address { grid-column: 4 / span 3; }
.footer-cols ul { grid-column: 7 / span 3; }
.footer-cols ul a { display: inline; min-height: 0; }
.footer-cols small { grid-column: 10 / span 3; }

@media (max-width: 1100px) {
  .step-panel .what, .step-panel .out, .step-svc, .step-fig { grid-column: 1 / -1; grid-row: auto; }
  .step-panel .out, .step-svc { grid-column: span 6; }
}
@media (max-width: 820px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc-fig { max-width: 360px; }
  .step-panel .out, .step-svc { grid-column: 1 / -1; }
  .footer-cols .f-brand, .footer-cols address, .footer-cols ul, .footer-cols small { grid-column: 1 / -1; margin: 0 0 18px; text-align: left; }
  .svc-ghost { display: none; }
}
.svc-list > li > button { flex-direction: column; gap: 3px; }
.svc-list > li > button span { text-align: left; }

/* ================= v5: line keeps its shape on wide screens and follows the pointer on the home page ================= */
.sq, .sq-main, .sq-teaser { height: auto; aspect-ratio: 1400 / 340; }
.process .stepper, .sq-wrap { max-width: 1400px; }
.teaser-head { grid-column: 1 / span 6; }
.teaser-head .process-intro { margin-top: 14px; }
.sq-wrap .sq-hi { transition: stroke-dasharray 160ms linear; }
.sq-stages { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.sq-stages a { display: flex; flex-direction: column; gap: 3px; padding: 14px 8px 0 0; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color var(--t-fast) linear; }
.sq-stages a:hover, .sq-stages a:focus-visible { color: var(--ink); }
.sq-stages .num { font-size: 12px; font-variant-numeric: tabular-nums; }
.svc-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 820px) {
  .sq, .sq-main, .sq-teaser { aspect-ratio: auto; height: 170px; }
  .teaser-head { grid-column: 1 / -1; }
  .sq-stages { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 560px) { .svc-home { grid-template-columns: minmax(0, 1fr); } }

/* ================= v6: the line runs edge to edge, with the tangle centred and wider on big screens ================= */
main { overflow-x: clip; }
.process .stepper, .sq-wrap { max-width: max(1400px, 72vw); margin-inline: auto; width: 100%; }
.sq-line { position: relative; }
.sq-line::before, .sq-line::after { content: ""; position: absolute; top: 50%; width: 100vw; height: clamp(1.5px, 0.077vw, 2.6px); background: #c2c2c2; transform: translateY(-50%); transition: background-color 300ms linear; }
.sq-line::before { right: 100%; }
.sq-line::after { left: 100%; }
.sq-wrap.live .sq-line::before { background: var(--green); }
@media (min-width: 821px) { .svc-home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .sq-line::before, .sq-line::after { height: 1.5px; } }
/* v6: the right hand run appears as the drawn line arrives, so it never sits disconnected */
.sq-line::after { opacity: 0; transition: opacity 500ms linear 2300ms, background-color 300ms linear; }
.sq-line:has(.sq.drawn)::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sq-line::after { opacity: 1; transition: none; } }


/* ================= full build: case studies, articles, gallery, booking ================= */
/* case study media. Images never display larger than their files, so nothing goes soft on wide screens */
/* media runs the full page width on the same edges as the text, up to the 2,400px that the largest files hold */
.case .case-hero, .case .shots { max-width: calc(2400px + 2 * var(--edge)); margin-inline: auto; width: 100%; }
.case-hero .shot { max-height: 84vh; width: 100%; margin-inline: auto; }
/* natural size media: the box keeps the full row width, the image sits inside at no more than its file size */
.shots .shot.nat { width: 100%; }
.case-hero .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.case-hero .shot.photo.wide img { object-fit: cover; }
.case-hero .shot.tall { aspect-ratio: 16 / 9 !important; background: none; }
.case-hero .shot.video { max-height: none; }
.shots { margin-top: var(--gap); }
.case-text + .shots, .case-hero + .shots { margin-top: 0; }
.case-hero + .shots { margin-top: var(--gap); }
.shots .shot img { object-fit: scale-down; }
.shots .shot.photo img { object-fit: cover; }
.shots .shot.fit img { object-fit: contain; padding: 0; }
.shots .shot.nat img, .shots .shot.nat.photo img { padding: 0; object-fit: contain; }
.shots .c8 { grid-column: span 8; }
.shots .c8.mid { grid-column: 3 / span 8; }
.shots .c6.mid { grid-column: 4 / span 6; }
.shot.video video, .embed iframe, .yt, .yt img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shot.video video { object-fit: cover; background: var(--wash); }
.shots .shot.nat.video video, .case-hero .shot.nat.video video { object-fit: contain; }
.yt { padding: 0; cursor: pointer; background: #111; }
.yt img { object-fit: cover; opacity: 0.82; mix-blend-mode: normal; transition: opacity var(--t-mid) linear; }
.yt:hover img { opacity: 0.95; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; }
.yt-play svg { width: 20px; height: 20px; }
.shots.cols { align-items: start; }
.shots.cols .col { display: grid; gap: var(--gap); align-content: start; min-width: 0; }
.shots.cols .s2 { grid-column: span 2; } .shots.cols .s3 { grid-column: span 3; } .shots.cols .s4 { grid-column: span 4; } .shots.cols .s5 { grid-column: span 5; }
.shots.cols .s6 { grid-column: span 6; } .shots.cols .s7 { grid-column: span 7; } .shots.cols .s8 { grid-column: span 8; } .shots.cols .s9 { grid-column: span 9; } .shots.cols .s10 { grid-column: span 10; } .shots.cols .s11 { grid-column: span 11; } .shots.cols .s12 { grid-column: span 12; }
.shots.cols .col .shot { width: 100%; }
.col-text { padding-top: clamp(20px, 3vw, 48px); padding-bottom: clamp(12px, 2vw, 28px); padding-right: clamp(0px, 2vw, 32px); }
.col-text h2 { margin-bottom: 16px; }
.col-text p, .col-text li { font-size: 1rem; line-height: 1.55; color: #3d3d3d; max-width: 58ch; }
.col-text p + p, .case-text ul, .col-text ul { margin-top: 1.1em; }
.case-text ul, .col-text ul { list-style: disc; padding-left: 1.15em; }
.case-text li, .col-text li { margin-top: 0.4em; }
.case-text h3 { margin-top: 1.6em; margin-bottom: 0.5em; }
.case-text h2:empty { display: none; }
.case-text h2:empty + div { grid-column: 7 / span 6; }
.case-text .hero-actions { margin-top: 28px; }
.more-work { margin-top: clamp(72px, 9vw, 140px); }
.more-work .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* lightbox: previous and next */
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; right: auto; left: 12px; transform: translateY(-50%); background: rgba(255, 255, 255, 0.9); }
.lightbox .lb-next { left: auto; right: 12px; }
.lightbox .lb-next svg { transform: rotate(180deg); }
.lightbox .lb-prev svg, .lightbox .lb-next svg { width: 16px; height: 16px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* gallery */
.gallery { columns: 4; column-gap: var(--gap); padding-inline: var(--edge); }
.g-item { display: block; width: 100%; margin: 0 0 var(--gap); padding: 0; border: 0; break-inside: avoid; overflow: hidden; background: var(--wash); border-radius: var(--radius); cursor: zoom-in; }
.g-item img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; transition: transform 700ms var(--ease); }
.g-item.photo img { mix-blend-mode: normal; }
.g-item:hover img { transform: scale(1.02); }

/* insights: cards with real thumbnails, and the article page */
.post-thumb.photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.post-cards .post-more time { color: inherit; }
.post-excerpt { display: block; max-width: 44ch; margin-top: 8px; font-size: 14px; line-height: 1.5; color: #3d3d3d; }
.section-head.wide { grid-column: 1 / -1; }
.home-insights .post-cards { margin-top: 0; }
.more-in { grid-column: 1 / -1; margin-bottom: 32px; }
.post-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(28px, 3vw, 44px); row-gap: 24px; }
.post-head h1 { grid-column: 1 / span 10; font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 22ch; }
.post-meta { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.post-hero { grid-column: 4 / span 7; margin-bottom: clamp(28px, 4vw, 56px); }
.post-hero .shot { max-height: 70vh; }
.post-hero .shot img { width: 100%; height: 100%; max-height: 70vh; object-fit: cover; }
.post-body { grid-column: 4 / span 7; max-width: 68ch; }
.post-body > * + * { margin-top: 1.15em; }
.post-body p, .post-body li { font-size: 1.0625rem; line-height: 1.65; color: #2b2b2b; }
.post-body h2 { margin-top: 2.2em; font-size: clamp(1.375rem, 1.9vw, 1.75rem); scroll-margin-top: 90px; }
.post-body h3, .post-body h4 { margin-top: 1.8em; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; scroll-margin-top: 90px; }
.post-body ul, .post-body ol { padding-left: 1.25em; }
.post-body ul { list-style: disc; } .post-body ol { list-style: decimal; }
.post-body li + li { margin-top: 0.45em; }
.post-body a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color var(--t-fast) linear; }
.post-body a:hover { text-decoration-color: var(--green); }
.post-body blockquote { margin: 1.6em 0; padding-left: 18px; border-left: 2px solid var(--green); font-size: 1.125rem; line-height: 1.5; }
.post-body hr { height: 1px; border: 0; background: var(--line); margin: 2.4em 0; }
.post-fig { margin: 2em 0; }
.post-fig > div { display: grid; gap: var(--gap); align-items: start; }
.post-fig.n2 > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-fig.n3 > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-fig .shot { width: 100%; }
.post-fig .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.post-fig .shot.photo img { object-fit: cover; }
.post-fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.post-body th, .post-body td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none !important; padding: 0 !important; margin-top: 3em !important; }
.post-tags li { margin: 0 !important; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px !important; line-height: 1.4 !important; color: var(--ink-2) !important; }

/* services: the full text of every service is in the page for readers without scripts */
.js .svc-all { display: none; }
.svc-all h2 { grid-column: 1 / span 5; }
.svc-all dl { grid-column: 1 / -1; margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap); }
.svc-all dt { font-weight: 600; margin-bottom: 6px; }
.svc-all dd { font-size: 15px; line-height: 1.5; color: #3d3d3d; }

/* booking panel: the real calendar */
.drawer { width: min(560px, 100vw); }
.book-frame { position: relative; margin-top: 20px; height: min(680px, 68dvh); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.book-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 240ms linear; }
.book-frame.ready iframe { opacity: 1; }
.book-wait { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--ink-2); }
.book-frame.ready .book-wait { display: none; }

@media (min-width: 1900px) { .gallery { columns: 5; } .more-work .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .gallery { columns: 3; }
  .post-hero, .post-body { grid-column: 2 / span 10; }
  .case-text h2:empty + div { grid-column: 1 / -1; }
  .svc-all dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .shots .c8, .shots .c8.mid, .shots .c6.mid { grid-column: span 12; }
  .shots.cols .col { grid-column: span 12 !important; }
  .col-text { padding-right: 0; }
  .post-head h1, .post-hero, .post-body { grid-column: 1 / -1; }
  .more-work .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-work .tiles .tile:nth-child(3) { display: none; }
  .post-fig.n3 > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .shots .c4.many, .shots .c6.many { grid-column: span 6; }
  .gallery { columns: 2; column-gap: 12px; }
  .g-item { margin-bottom: 12px; }
  .more-work .tiles { grid-template-columns: minmax(0, 1fr); }
  .more-work .tiles .tile:nth-child(3) { display: block; }
  .post-fig.n2 > div, .post-fig.n3 > div { grid-template-columns: minmax(0, 1fr); }
  .svc-all dl { grid-template-columns: minmax(0, 1fr); }
  .book-frame { height: 62dvh; }
}

/* ================= green as hierarchy (Barney, 21 Nov 2026). One green action per view, one green moment in the hero ================= */
:root { --green-deep: #007f43; }   /* button green: white text on it passes the 4.5 contrast guideline, the brand green does not at this size */
.btn:not(.ghost) { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn:not(.ghost):hover { background: var(--ink); border-color: var(--ink); color: #fff; }
/* hero highlight: the green block wipes in from the left and the letters turn white exactly where its edge passes, in one movement.
   Two background layers on one element: the top one is clipped to the letters, the bottom one is the green block */
.hero h1 .hl { display: inline-block; padding: 0 0.1em 0.03em; border-radius: var(--radius); color: transparent;
  background-image: linear-gradient(90deg, #fff 50%, var(--ink) 50%), linear-gradient(var(--green), var(--green)); background-repeat: no-repeat;
  background-size: 200% 100%, 100% 100%; background-position: 0 0, 0 0; -webkit-background-clip: text, padding-box; background-clip: text, padding-box; }
.js .hero h1 .hl { background-position: 100% 0, 0 0; background-size: 200% 100%, 0% 100%; }
.js.ready .hero h1 .hl { background-position: 0 0, 0 0; background-size: 200% 100%, 100% 100%; transition: background-position 950ms cubic-bezier(0.65, 0, 0.35, 1) 180ms, background-size 950ms cubic-bezier(0.65, 0, 0.35, 1) 180ms; }
@media (prefers-reduced-motion: reduce) { .js .hero h1 .hl { background-position: 0 0, 0 0; background-size: 200% 100%, 100% 100%; transition: none; } }
/* the rule above the stage names runs to both screen edges, like the tangled line above it */
@media (min-width: 1101px) {
  .sq-stages { position: relative; }
  .sq-stages::before, .sq-stages::after, .process .steps::before, .process .steps::after { content: ""; position: absolute; top: -1px; width: 100vw; height: 1px; background: var(--line); }
  .sq-stages::before, .process .steps::before { right: 100%; }
  .sq-stages::after, .process .steps::after { left: 100%; }
}
/* 3 by 2 tiles: a small file stops growing at its limit and sits centred in the tile. Video embeds stop at 1,600px */
.shots .shot:not(.nat) img { max-width: var(--mw, none); max-height: var(--mh, none); margin: auto; }
.shots .shot.embed { max-width: 1600px; justify-self: center; width: 100%; }
/* availability: the quarters slide in on hover or keyboard focus. Always shown where there is no hover (phones) */
.avail { cursor: default; outline: none; }
.avail-more { display: inline-block; margin-left: 12px; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green-deep); font-size: 13px; font-weight: 500;
  opacity: 0; transform: translateX(-8px); transition: opacity var(--t-mid) linear, transform 420ms var(--ease); }
.avail:hover .avail-more, .avail:focus-visible .avail-more { opacity: 1; transform: none; }
@media (hover: none) { .avail-more { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .avail-more { transition: none; transform: none; } }
/* gallery: a small file stops at its own width and sits centred in its box. Arriving images fade in */
.g-item img { max-width: var(--mw, 100%); margin-inline: auto; transition: transform 700ms var(--ease), opacity 420ms linear; }
.g-item img.pending { opacity: 0; }

/* ================= small hover moments (Barney, 21 Nov 2026). Same quiet green label everywhere ================= */
.avail-more:empty { display: none; }
.mail-wrap { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mail-copy { padding: 5px 11px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green-deep); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  opacity: 0; transform: translateX(-8px); transition: opacity var(--t-mid) linear, transform 420ms var(--ease); }
.mail-wrap:hover .mail-copy, .mail-copy:focus-visible, .mail-copy.done { opacity: 1; transform: none; }
@media (hover: none) { .mail-copy { display: none; } }
.tools li { position: relative; transition: color var(--t-fast) linear; }
.tools li::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease); }
.tools ul:hover li:not(:hover) { color: #8a8a8a; }
.tools li:hover::before { transform: scaleX(1); }
.chip { transition: border-color var(--t-fast) linear, color var(--t-fast) linear; }
.chip:hover { border-color: var(--green-deep); color: var(--green-deep); }
@media (prefers-reduced-motion: reduce) { .mail-copy, .tools li::before { transition: none; } }

/* proficiencies: eight across so sixteen tools sit in two rows. What a tool is used for appears on hover or keyboard focus, always shown on phones */
@media (min-width: 1101px) { .tools ul { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.tools li { outline: none; }
.tools li small { display: block; margin-top: 3px; padding-right: 8px; font-size: 12.5px; line-height: 1.3; color: var(--green-deep); opacity: 0; transform: translateY(-3px); transition: opacity var(--t-mid) linear, transform 420ms var(--ease); }
.tools li:hover small, .tools li:focus-visible small { opacity: 1; transform: none; }
.tools li:focus-visible::before { transform: scaleX(1); }
@media (hover: none) { .tools li small { opacity: 1; transform: none; color: var(--ink-2); } }
/* a link out of the site, with its address shown above it on hover */
.out-link { position: relative; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.18em; transition: text-decoration-color var(--t-fast) linear; }
.out-link:hover, .out-link:focus-visible { text-decoration-color: var(--green); }
.out-link .tip { position: absolute; left: 0; bottom: 100%; margin-bottom: 6px; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--green) 12%, #fff); color: var(--green-deep); font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap;
  pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity var(--t-mid) linear, transform 420ms var(--ease); }
.out-link:hover .tip, .out-link:focus-visible .tip { opacity: 1; transform: none; }
@media (hover: none) { .out-link .tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .tools li small, .out-link .tip { transition: none; transform: none; } }

/* ================= line drawing hero (home page). Outer lines are heavier than inner ones ================= */
.roller.lines { background: none; }
@media (min-width: 1101px) { .hero-lines .hero2 .roller { justify-self: center; grid-column: 8 / span 5; max-width: 440px; } }
.roller.lines .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: 0; transition: opacity 900ms linear; }
.roller.lines .ph.on { opacity: 1; }
.roller.lines .art, .roller.lines svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.roller.lines .art.fade { opacity: 0; transition: opacity 1600ms linear; }
.roller.lines path { stroke-dasharray: 1; stroke-dashoffset: 1; shape-rendering: geometricPrecision; }
.roller.lines path.o { stroke-width: 3; }    /* the outside of the product: the heaviest line. Widths are in drawing units, so they thin down on small screens */
.roller.lines path.g { stroke-width: 0.85; opacity: 0.5; }   /* a lighter second pass on some outer lines */
.roller.lines path.i { stroke-width: 1.25; }   /* long inside lines */
.roller.lines path.d { stroke-width: 0.75; }   /* shorter inside lines */
.roller.lines path.m { stroke-width: 17; opacity: 0.075; stroke-linecap: butt; }   /* marker shading, light layer */
.roller.lines path.n { stroke-width: 17; opacity: 0.1; stroke-linecap: butt; }    /* marker shading, dark layer */  /* marker strokes */

/* ================= process diagram runs the full page width, like every other section (Barney, 21 Nov 2026) ================= */
.process .stepper, .sq-wrap { max-width: none; }
@media (min-width: 1401px) { .sq { height: clamp(250px, 17.8vw, 520px); } }   /* the tangle grows taller as it grows wider, so it keeps its shape */
/* second tier button: a green outline for links that lead deeper into the site. Filled green stays for Book a call only */
.btn.ghost.go { border-color: var(--green); color: var(--green-deep); }
.btn.ghost.go:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.teaser .services-more { text-align: center; }

/* ================= services page: grouped list, sketch then photo, shorter text (21 Nov 2026) ================= */
.svc-list > li.svc-group { display: flex; gap: 10px; align-items: baseline; padding: 30px 0 10px; font-size: 13px; color: var(--ink-2); }
.svc-list > li.svc-group:first-child { padding-top: 0; }
.svc-list > li.svc-group .num { font-variant-numeric: tabular-nums; color: var(--green-deep); }
.svc-fig { position: relative; }
.svc-fig .art { position: absolute; left: 9%; right: 9%; top: 12%; bottom: 12%; pointer-events: none; }   /* the same box the photo sits in */
.svc-fig .art svg { width: 100%; height: 100%; }
.svc-fig .art.fade { opacity: 0; transition: opacity 1200ms linear; }
.svc-fig img { transition: opacity 800ms linear; }
.svc-fig.drawing img { opacity: 0; transition: none; animation: none !important; }
.svc-fig .art path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.svc-fig .art path.o { stroke-width: 3; } .svc-fig .art path.g { stroke-width: 0.85; opacity: 0.5; } .svc-fig .art path.i { stroke-width: 1.25; } .svc-fig .art path.d { stroke-width: 0.75; }
.svc-fig .art path.m { stroke-width: 17; opacity: 0.075; stroke-linecap: butt; } .svc-fig .art path.n { stroke-width: 17; opacity: 0.1; stroke-linecap: butt; }
.svc-more { margin-top: 12px; }
.svc-more summary { display: inline-block; cursor: pointer; font-size: 14px; color: var(--green-deep); list-style: none; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
.svc-more summary::-webkit-details-marker { display: none; }
.svc-more[open] summary { display: none; }
.svc-more p { font-size: 1rem; line-height: 1.55; color: #3d3d3d; max-width: 58ch; }

/* ================= round six (21 Nov 2026) ================= */
.avail-more.on { opacity: 1; transform: none; }                       /* the availability quarters are always shown */
/* home page services, in the same five groups as the Services page */
.svc-home-groups { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; }
.svc-home-groups .svc-home { display: block; margin-top: 0; }
.svc-home-groups .svc-group { display: flex; gap: 10px; align-items: baseline; padding-bottom: 10px; font-size: 13px; color: var(--ink-2); }
.svc-home-groups .svc-group .num { font-variant-numeric: tabular-nums; color: var(--green-deep); }
.svc-home-groups:hover a:not(:hover) { color: var(--ink-2); }
@media (max-width: 1100px) { .svc-home-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .svc-home-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .svc-home-groups { grid-template-columns: minmax(0, 1fr); } }
/* awards: badge, project, award and level, category */
.awards h2 { grid-column: 1 / span 5; }
.awards ul { grid-column: 1 / -1; margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px var(--gap); }   /* as many across as fit, so five sit in one row on a laptop */
.awards li { display: flex; gap: 18px; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); position: relative; }
.awards li::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease); }
.awards li:hover::before { transform: scaleX(1); }
.awards img { flex: none; width: 62px; height: auto; transition: transform 420ms var(--ease); }
.awards li:hover img { transform: translateY(-3px); }
.awards li div { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.awards strong { font-size: 15px; font-weight: 600; }
.awards li div span { color: var(--ink-2); }
.awards .text-link { align-self: flex-start; text-decoration: none; }
@media (max-width: 700px) { .awards h2 { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .awards li::before, .awards img { transition: none; } }

/* password gate on locked case studies */
.gate { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 420px; }
.gate label { display: block; margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
.gate > div { display: flex; gap: 10px; }
.gate input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; }
.gate input:focus-visible { outline: none; border-color: var(--ink); }
.gate-msg { min-height: 1.4em; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
#gate[hidden] { display: none; }

/* about page: studio and availability lines */
.js .about-facts, .about-facts { opacity: 1; max-width: 460px; margin-top: 36px; }
.about-facts + .hero-actions { margin-top: 28px; }

/* hover notes on the enquiry button and on the home page stages, in the same green pill language as the other small notes */
.btn:has(> .tip), .sq-stages a { position: relative; }
.btn > .tip, .sq-stages a > .tip { position: absolute; left: 0; z-index: 3; width: max-content; max-width: 260px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--green) 12%, #fff); color: var(--green-deep);
  font-size: 13px; font-weight: 500; line-height: 1.4; text-align: left; white-space: normal; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity var(--t-fast) linear, transform var(--t-mid) var(--ease); }
.btn > .tip { bottom: 100%; margin-bottom: 8px; }
.sq-stages a > .tip { top: 100%; margin-top: 10px; max-width: 220px; }
.sq-stages a:nth-child(n+6) > .tip { left: auto; right: 0; }
.btn:hover > .tip, .btn:focus-visible > .tip, .sq-stages a.on > .tip, .sq-stages a:focus-visible > .tip { opacity: 1; transform: none; }
@media (hover: none) { .btn > .tip, .sq-stages a > .tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .btn > .tip, .sq-stages a > .tip { transition: none; transform: none; } }

/* home page: green marker above the stage the pointer is in, as on the process page */
.sq-stages { position: relative; }
.sq-stages .marker { position: absolute; top: -1px; left: 0; height: 2px; width: calc(100% / 7); background: var(--green); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 320ms var(--ease), opacity var(--t-fast) linear; opacity: 0; pointer-events: none; }
.sq-stages.live .marker { opacity: 1; }
.sq-stages a.on { color: var(--ink); }
/* the enquiry note takes no space until it is shown, so it can never widen the page */
.btn > .tip { display: none; opacity: 1; transform: none; }
.btn:hover > .tip, .btn:focus-visible > .tip { display: block; animation: tip-in var(--t-mid) var(--ease); }
@keyframes tip-in { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 700px) { .btn > .tip { max-width: 220px; } }

/* small hover notes: "Shared on request" on locked project tiles, and product and year on the award badges */
.tile-note, .awards li > .tip { position: absolute; z-index: 2; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--green) 12%, #fff); color: var(--green-deep); font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap;
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity var(--t-fast) linear, transform var(--t-mid) var(--ease); }
.tile-note { left: 12px; top: 12px; }
.awards li > .tip { left: 0; bottom: 100%; margin-bottom: 8px; }
.tile:hover .tile-note, .tile:focus-visible .tile-note, .awards li:hover > .tip { opacity: 1; transform: none; }
@media (hover: none) { .tile-note { opacity: 1; transform: none; } .awards li > .tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .tile-note, .awards li > .tip { transition: none; transform: none; } }

/* ================= phone pass, 22 Nov 2026 (Barney) ================= */
/* desktop: the stage note sits above the stage names, so it never covers the "See the full process" button */
.sq-stages a > .tip { top: auto; bottom: 100%; margin: 0 0 12px; }
.step-now, .step-nav, .sq-now { display: none; }
@media (max-width: 820px) {
  /* all seven stages fit the screen as numbers, no sideways scrolling. The stage picked is named underneath */
  .steps, .sq-stages { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
  .steps .marker, .sq-stages .marker { width: calc(100% / 7); height: 3px; top: -2px; }
  .steps button, .sq-stages a { align-items: center; justify-content: center; min-height: 46px; padding: 0; text-align: center; }
  .steps button .name, .sq-stages a .name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .steps button .num, .sq-stages .num { font-size: 14px; }
  .steps button[aria-selected="true"] .num, .sq-stages a.on .num { color: var(--green-deep); font-weight: 600; }
  /* the tangle is drawn flatter and the green heavier, so the lit part is easy to find */
  .sq, .sq-main, .sq-teaser { height: 120px; }
  .sq-hi { stroke-width: 6.5; }
  /* process page: the stage numbers and the current stage name stay under the header while its detail is read */
  .stepper { scroll-margin-top: 64px; }
  .steps { position: sticky; top: 64px; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
  .step-now { display: flex; align-items: baseline; gap: 8px; grid-column: 1 / -1; padding: 2px 0 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
  .step-now .num, .sq-now-name .num { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--green-deep); }
  .step-now small { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--ink-2); }
  .step-panel { padding-top: 24px; }
  .step-nav { display: flex; gap: 10px; grid-column: 1 / -1; margin-top: 8px; }
  .step-nav .btn { flex: 1 1 0; min-width: 0; justify-content: center; }
  .step-nav .btn[hidden] { display: none; }
  /* home page: the stage picked, in words */
  .sq-now { display: block; padding-top: 14px; min-height: 132px; }
  .sq-now-name { display: flex; align-items: baseline; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
  .sq-now p + p { margin: 6px 0 10px; font-size: 15px; line-height: 1.5; color: #3d3d3d; }
  .sq-now .text-link { font-size: 14px; }
}
/* phone: three selected projects on the home page, the rest are one tap away under "All projects" */
@media (max-width: 700px) { .home .tiles > .tile:nth-child(n+4) { display: none; } }
