/* BrandBildr site styles. Tokens follow Brand Guidelines v1.1 (Signature mode). */
:root {
  --bg: #0a0a0c;
  --bg-2: #0e0e12;
  --ink: #efece4;
  --ink-dim: #8a8a92;
  --accent: #2A47ED;
  --accent-dim: #17246A;
  --line: #1f1f26;
  --line-2: #333338;
  --error: #e2554c;
  --on-accent: #efece4;
  --dot: #24242c;
  --modal: #000;
  --modal-line: #2a2a30;
  --check: #444449;
  --fade: rgba(10,10,12,0);
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
/* Inverse mode: the core palette flipped. Accent never changes. */
:root[data-mode="inverse"] {
  --bg: #efece4;
  --bg-2: #e6e3da;
  --ink: #0a0a0c;
  --ink-dim: #6e6e76;
  --accent-dim: #a9b5f5;
  --line: #d9d6cd;
  --line-2: #c4c1b8;
  --error: #c23b32;
  --dot: #cdcac1;
  --modal: #f5f3ee;
  --modal-line: #d9d6cd;
  --check: #b5b2aa;
  --fade: rgba(239,236,228,0);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.dim { color: var(--ink-dim); }

/* The label: Space Grotesk Medium, all caps, Ink Dim, never accent */
.label {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 16px;
}
.label a { text-decoration: none; }
.label a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.4rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-dim); max-width: 46ch; margin: 24px 0 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 18px;
  background: linear-gradient(var(--bg) 40%, var(--fade));
}
.brand-mark, .site-nav a, .nav-toggle {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand-mark { color: var(--ink); }
.brand-mark sup { font-size: 0.6em; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--ink-dim); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--ink); padding: 8px 14px; cursor: pointer; border-radius: 0; }

@media (max-width: 640px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 8px;
    padding: 0 var(--gutter);
    background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .site-nav a { font-size: 2.2rem; text-transform: none; color: var(--ink); font-weight: 600; border: 0; }
  .site-nav a[aria-current="page"] { color: var(--accent); }
  body.nav-open .site-nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  line-height: 1.3;
  text-align: center;
  border-radius: 0;
  border: 1px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--accent); color: var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.text-link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent-dim); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-y; }
.hero-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; pointer-events: none;
}
.hero-inner > * { pointer-events: auto; }
.hero-inner .wordmark { pointer-events: none; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 9vw, 6.5rem); letter-spacing: -0.02em; line-height: 1; margin: 0; }
.tagline {
  font-size: 0.95rem; color: var(--ink-dim); letter-spacing: 0.02em; margin: 18px 0 0;
  display: flex; align-items: center; justify-content: center; gap: 0.32em; flex-wrap: wrap;
  pointer-events: none;
}
.word-cube-wrap { display: inline-flex; perspective: 420px; padding: 5px 16px; overflow: hidden; }
.word-cube { position: relative; display: inline-block; width: 10.8ch; height: 1.2em; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.65,0,.35,1); }
.word-face {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; font-family: var(--display); font-weight: 500; color: var(--accent);
  background: var(--bg-2); border: 1px solid var(--accent-dim);
}
.word-face.f1 { transform: rotateX(0deg) translateZ(.6em); }
.word-face.f2 { transform: rotateX(90deg) translateZ(.6em); }
.word-face.f3 { transform: rotateX(180deg) translateZ(.6em); }
.word-face.f4 { transform: rotateX(270deg) translateZ(.6em); }
.hero .btn { margin-top: 34px; }
.hero-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(22px, env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; pointer-events: none;
}
.hero-foot .label { margin: 0; }
.scroll-cue { animation: cue 3s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@media (max-width: 700px) {
  .hero-inner { justify-content: flex-start; padding-top: max(110px, 19vh); }
}
@media (prefers-reduced-motion: reduce) {
  .hero canvas { display: none; }
  .word-cube { transition: none; }
  .scroll-cue { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.statement { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.8vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 22ch; margin: 0; }
.statement em { font-style: normal; color: var(--accent); }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 64px; }
.service-tile { background: var(--bg); padding: 32px 26px 36px; text-decoration: none; display: flex; flex-direction: column; min-height: 240px; transition: background .2s; }
.service-tile:hover { background: var(--bg-2); }
.service-tile .num { font-family: var(--display); font-size: .8rem; color: var(--ink-dim); }
.service-tile h3 { margin: 56px 0 10px; }
.service-tile p { margin: 0; color: var(--ink-dim); font-size: .92rem; line-height: 1.5; }
.service-tile:hover h3 { color: var(--accent); }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .service-grid { grid-template-columns: 1fr; } .service-tile { min-height: 0; } .service-tile h3 { margin-top: 24px; } }

/* Work cards */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
@media (min-width: 1100px) { .work-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 761px) and (max-width: 1099px) { .work-grid > :nth-child(3):last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { text-decoration: none; display: block; }
.work-media {
  aspect-ratio: 4 / 3; background-color: var(--bg-2);
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.4px);
  background-size: 22px 22px; background-position: center;
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.work-media.large { aspect-ratio: 16 / 7; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card-mark { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; color: var(--ink); padding: 24px; text-align: center; transition: color .3s; }
.work-card:hover .card-mark { color: var(--accent); }
.work-card:hover .work-media img { transform: scale(1.03); }
.work-meta { padding-top: 20px; }
.work-meta .label { margin-bottom: 8px; }
.work-meta h3, .work-meta h2 { margin-bottom: 6px; }
.work-meta h2 { font-size: 1.35rem; line-height: 1.2; }
.work-meta p.dim { margin: 0; font-size: .95rem; }

/* CTA band */
.cta { text-align: left; }
.cta h2 { max-width: 16ch; }
.cta-actions { display: flex; gap: 20px 28px; align-items: center; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Inner pages ---------- */
.page-head { padding-top: clamp(140px, 20vw, 220px); padding-bottom: clamp(56px, 8vw, 96px); }
.page-head h1 { max-width: 16ch; }

.service-row:first-child { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.service-row .num { font-family: var(--display); color: var(--ink-dim); font-size: .9rem; padding-top: 6px; }
.service-row h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.service-row p { color: var(--ink-dim); margin: 0; max-width: 40ch; }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.tick-list li:first-child { padding-top: 0; }
@media (max-width: 760px) { .service-row { grid-template-columns: 1fr; gap: 20px; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 1px solid var(--line-2); padding-top: 22px; }
.step .num { font-family: var(--display); color: var(--accent); font-size: .85rem; }
.step h3 { margin: 14px 0 10px; }
.step p { color: var(--ink-dim); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.prose p { margin: 0 0 1.2em; max-width: 62ch; }
.prose p.label { margin-top: 2.4em; }
.prose p.label:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .6em; }
.prose ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--accent); font-family: var(--display); font-size: 1.3rem; line-height: 1.35; }
.prose figure { margin: 2em 0; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principle { background: var(--bg); padding: 32px 26px; }
.principle h3 { margin-bottom: 10px; }
.principle p { margin: 0; color: var(--ink-dim); font-size: .95rem; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* Case study */
.case-hero { margin-bottom: clamp(48px, 7vw, 96px); }
.case-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(80px, 10vw, 140px); }
.case-facts { margin: 0; }
.case-facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.case-facts div:first-child { padding-top: 0; }
.case-facts dt { margin-bottom: 4px; }
.case-facts dd { margin: 0; }
.next-case { background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; padding-top: 48px; padding-bottom: 96px; }
.next-case a { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.02em; text-decoration: none; }
.next-case a:hover { color: var(--accent); }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 120px); padding-bottom: clamp(80px, 10vw, 140px); }
.contact-details > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-details > div:first-child { padding-top: 0; }
.contact-details .label { margin-bottom: 6px; }
.contact-details p { margin: 0; }
.panel { background: var(--bg-2); padding: clamp(24px, 4vw, 40px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.field { margin-bottom: 18px; }
.field label, .field-label { display: block; font-size: .78rem; color: var(--ink-dim); letter-spacing: .02em; margin: 0 0 7px; }
.field input, .field select, .field textarea {
  width: 100%; margin: 0; display: block; background: var(--bg); border: 1px solid var(--line-2); border-radius: 0;
  color: var(--ink); font-family: var(--body); font-size: 16px; padding: 11px 12px; outline: none; transition: border-color .15s;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a8a92'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field-error { display: none; font-size: .75rem; color: var(--error); margin: 6px 0 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .checkbox-groups { border-color: var(--error); }
.field.invalid .field-error { display: block; }
.checkbox-groups { border: 1px solid var(--line-2); padding: 10px 12px; }
label.checkbox-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink); padding: 6px 0; margin: 0; cursor: pointer; line-height: 1.3; letter-spacing: 0; }
.checkbox-item input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 16px; height: 16px; min-width: 16px; margin: 0;
  border: 1px solid var(--check); border-radius: 0; background: var(--bg); cursor: pointer; position: relative; flex-shrink: 0;
}
.checkbox-item input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.checkbox-item input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.form-error { display: none; font-size: .8rem; color: var(--error); margin: 14px 0 0; text-align: center; }
.form-error.show { display: block; }
.form-success { display: none; padding: 20px 0 8px; }
.form-success p { margin: 0; font-size: 1rem; }
.query-form.sent > :not(.form-success) { display: none; }
.query-form.sent .form-success { display: block; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.72);
  display: none; align-items: center; justify-content: center; padding: 24px; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal { background: var(--modal); border: 1px solid var(--modal-line); width: 100%; max-width: 480px; padding: 32px; margin: auto; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 0; letter-spacing: -0.02em; }
.modal-close { background: none; border: 0; color: var(--ink-dim); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 0 0 12px; }
.modal-close:hover { color: var(--ink); }
body.modal-open { overflow: hidden; }
@media (max-width: 480px) { .modal { padding: 22px; } .modal-backdrop { padding: 14px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--accent-dim); padding: 64px 0 max(28px, env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.2fr; gap: 40px; }
.footer-wordmark { font-family: var(--display); font-weight: 600; font-size: 1.8rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.footer-grid p.dim { margin: 0; font-size: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-base { margin-top: 56px; font-size: .78rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* 404 */
.not-found { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }

/* =========================================================
   Mode toggle (Black / Inverse)
   ========================================================= */
.site-nav { margin-left: auto; }
.mode-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-left: 32px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  flex-shrink: 0;
}
.mode-toggle button {
  position: relative; z-index: 1;
  background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 500; font-size: 0.7rem;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: 8px 14px;
  min-width: 68px;
  transition: color .35s;
  -webkit-tap-highlight-color: transparent;
}
.mode-toggle button[aria-pressed="true"] { color: var(--bg); }
.mode-toggle button:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.mode-thumb {
  position: absolute; top: 2px; bottom: 2px; left: 2px;
  width: calc(50% - 2px);
  background: var(--ink);
  transition: transform .5s cubic-bezier(.65,0,.35,1);
}
:root[data-mode="inverse"] .mode-thumb { transform: translateX(calc(100% - 2px)); }
@media (max-width: 640px) {
  .mode-toggle { margin-left: auto; margin-right: 10px; position: relative; z-index: 2; }
  .mode-toggle button { min-width: 0; padding: 8px 11px; }
}

/* Circular reveal when switching mode (View Transitions API) */
:root.mode-switching .site-header { view-transition-name: none; }
:root.mode-switching::view-transition-old(root),
:root.mode-switching::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:root.mode-switching::view-transition-new(root) { z-index: 2; }

/* =========================================================
   Page-to-page transitions (cross-document View Transitions)
   ========================================================= */
@view-transition { navigation: auto; }
.site-header { view-transition-name: header; }
::view-transition-old(root) { animation: vt-out .28s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vt-in .42s cubic-bezier(0,0,.2,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.65,0,.35,1); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* =========================================================
   Dot-matrix work cards
   ========================================================= */
.work-media canvas.dotmark { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.work-media.dm-ready .card-mark { opacity: 0; }

/* =========================================================
   Scroll-lit text, reveals and the process line.
   Driven by fx.js so they behave the same in Safari, Chrome and Firefox.
   Only active once the script has run (html.fx), so content is never stuck hidden.
   ========================================================= */
.fx .scrub .w { color: var(--ink-dim); opacity: .3; transition: color .7s cubic-bezier(.16,1,.3,1) var(--wd, 0ms), opacity .7s cubic-bezier(.16,1,.3,1) var(--wd, 0ms); }
.fx .scrub.lit-all .w { color: var(--ink); opacity: 1; }
.fx .scrub.lit-all em .w { color: var(--accent); }
.fx .reveal { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .9s cubic-bezier(.16,1,.3,1) var(--d, 0ms), transform .9s cubic-bezier(.16,1,.3,1) var(--d, 0ms); }
.fx .reveal.in { opacity: 1; transform: none; }
.fx .proc-fill { transition: transform .35s cubic-bezier(.16,1,.3,1); }
/* =========================================================
   Scroll marquee
   ========================================================= */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: clamp(28px, 5vw, 56px) 0;
  user-select: none;
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3.4rem, 11vw, 9rem);
  letter-spacing: -0.03em; line-height: 1;
  padding-right: .45em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-dim);
  transition: color .4s, -webkit-text-stroke-color .4s;
}
.marquee-track span.hot { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

/* =========================================================
   Cursor follower, magnetic buttons, touch press states
   ========================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transition: width .25s, height .25s, margin .25s, background-color .25s, opacity .25s;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.big { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: transparent; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.btn { transition: background .2s, color .2s, border-color .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
.btn:active, .work-card:active .work-media, .service-tile:active { transform: scale(.97); }
.work-media, .service-tile { transition: background .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
.tap-flash { position: fixed; z-index: 99; width: 8px; height: 8px; margin: -4px 0 0 -4px; border: 1px solid var(--accent); border-radius: 50%; pointer-events: none; animation: tap 0.6s ease-out forwards; }
@keyframes tap { to { transform: scale(9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tap-flash { display: none; } }

/* =========================================================
   Monochrome client logos (drawn as a mask, so they follow the mode)
   ========================================================= */
.logo-mark {
  position: absolute; inset: 19% 15%;
  background: var(--ink);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  pointer-events: none;
}
.work-media.has-logo.dm-ready .logo-mark { opacity: 0; }

/* =========================================================
   Let's chat
   ========================================================= */
.chat .lede { max-width: 40ch; }
.chat-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-top: 56px;
}
.chat-option { background: var(--bg); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; }
.chat-option h3, .chat-option h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.chat-option p { color: var(--ink-dim); margin: 0 0 32px; max-width: 34ch; }
.chat-option .btn { margin-top: auto; }
@media (max-width: 700px) { .chat-options { grid-template-columns: 1fr; } }
.logo-mark.logo-img {
  inset: auto; left: 15%; top: 19%; width: 70%; height: 62%;
  object-fit: contain; background: none; -webkit-mask: none; mask: none; max-width: none;
}

/* =========================================================
   Home v2
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-mark { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; text-transform: none; }

.home .hero-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  text-align: left;
  padding-top: 120px; padding-bottom: clamp(84px, 11vh, 120px);
  pointer-events: none;
}
.home .hero-inner .label { margin-bottom: 20px; }
.hero-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.7rem, 8.2vw, 7.4rem);
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 0; pointer-events: none;
}
.ht-line { display: block; }
.hero-title .word-cube-wrap { vertical-align: -0.12em; padding: 0.06em 0.12em; margin-left: -0.08em; }
.hero-title .word-face { font-weight: 600; letter-spacing: -0.035em; border-width: 1px; }
.hero-title .word-cube { width: 5.4em; }
.hero-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
  width: 100%; margin-top: clamp(28px, 4vw, 44px); flex-wrap: wrap;
}
.hero-lede { margin: 0; max-width: 34ch; color: var(--ink-dim); font-size: clamp(1rem, 1.4vw, 1.15rem); pointer-events: none; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; pointer-events: auto; }
.home .hero .btn { margin-top: 0; }
@media (max-width: 700px) {
  .home .hero-inner { justify-content: flex-end; padding-top: 0; }
  .hero-title .word-cube { width: 5.2em; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* Service accordion (native details, exclusive via name) */
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc-body { overflow: hidden; }
.svc summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 16px;
  padding: clamp(20px, 3vw, 32px) 0;
  -webkit-tap-highlight-color: transparent;
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.svc .num { font-family: var(--display); color: var(--ink-dim); font-size: .85rem; }
.svc-name {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(1.9rem, 5.6vw, 4.6rem);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), color .3s;
}
.svc summary:hover .svc-name, .svc[open] .svc-name { transform: translateX(clamp(6px, 1.4vw, 20px)); }
.svc summary:hover .svc-name { color: var(--accent); }
.svc-icon { justify-self: end; width: 22px; height: 22px; position: relative; }
.svc-icon::before, .svc-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink); transition: transform .4s cubic-bezier(.65,0,.35,1); }
.svc-icon::after { transform: rotate(90deg); }
.svc[open] .svc-icon::after { transform: rotate(0deg); }
.svc-body { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 16px 32px; padding: 0 0 clamp(28px, 4vw, 44px); }
.svc-body p { grid-column: 2; margin: 0; color: var(--ink-dim); max-width: 42ch; font-size: 1.05rem; }
.svc-tags { grid-column: 3; list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.svc-tags li { border: 1px solid var(--line-2); padding: 6px 12px; font-size: .85rem; }
@media (max-width: 760px) {
  .svc summary { grid-template-columns: 36px 1fr 28px; gap: 10px; }
  .svc-body { grid-template-columns: 36px 1fr; }
  .svc-body p, .svc-tags { grid-column: 2; }
}

/* Founder band */
.founder-quote {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.12;
  font-size: clamp(1.9rem, 4.6vw, 3.9rem);
  max-width: 24ch; margin: 0;
}
.founder-quote em { font-style: normal; color: var(--accent); }
.founder-foot { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 40px; }
.founder-foot p { margin: 0; }

/* Process with a line that fills as you scroll */
.process h2 { margin-bottom: clamp(48px, 6vw, 72px); }
.proc-wrap { position: relative; }
.proc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.proc-step { position: relative; padding-top: 36px; }
.proc-dot { position: absolute; top: 0; left: 0; width: 11px; height: 11px; background: var(--bg); border: 1px solid var(--ink-dim); transform: translateY(-5px); }
.proc-step .num { font-family: var(--display); color: var(--ink-dim); font-size: .8rem; }
.proc-step h3 { margin: 10px 0 10px; }
.proc-step p { margin: 0; color: var(--ink-dim); font-size: .95rem; max-width: 30ch; }
.proc-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.proc-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; }
@media (max-width: 760px) {
  .proc { grid-template-columns: 1fr; gap: 36px; padding-left: 32px; }
  .proc-step { padding-top: 0; }
  .proc-dot { left: -37px; top: 4px; transform: none; }
  .proc-line { left: 0; right: auto; top: 4px; bottom: 0; width: 1px; height: auto; }
  .proc-fill { transform-origin: center top; }
}
.fx .proc-fill { transform: scaleX(var(--p, 0)); }
.proc-dot { transition: background .3s, border-color .3s; }
.proc-dot.lit { background: var(--accent); border-color: var(--accent); }
@media (max-width: 760px) { .fx .proc-fill { transform: scaleY(var(--p, 0)); } }
.hero-title .word-cube-wrap { padding: 0.04em 0; margin-left: -0.1em; }
.hero-title .word-cube { width: 4.95em; }
.hero-title .word-face { justify-content: flex-start; padding: 0 0.1em; }
.hero-title .word-cube-wrap { perspective: 14em; overflow: visible; padding: 0; margin-left: 0; }
.hero-title .word-face { padding: 0; background: transparent; border: 0; }
.hero-title .word-cube-wrap { clip-path: inset(0.03em -2em); margin-left: 0.05em; }

/* =========================================================
   No question too small (chat)
   ========================================================= */
.asks-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.asks-intro h2 { max-width: 13ch; }
.asks-intro .lede { max-width: 38ch; }
.asks-hint { margin: 28px 0 0; font-size: .9rem; }
@media (min-width: 901px) { .asks-intro { position: sticky; top: 120px; } }
@media (max-width: 900px) { .asks-grid { grid-template-columns: minmax(0, 1fr); } }

.chat-panel { border: 1px solid var(--line-2); background: var(--bg-2); display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 34px; height: 34px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 600; font-size: 1rem; }
.chat-name { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.chat-status { margin: 0; font-size: .78rem; color: var(--ink-dim); line-height: 1.3; }

.chat-thread {
  height: clamp(280px, 38vh, 360px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 18px; display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
}
.msg { max-width: 82%; animation: msg-in .35s cubic-bezier(.2,.8,.2,1) both; }
.msg p { margin: 0; padding: 11px 14px; font-size: .95rem; line-height: 1.5; }
.msg.from-george { align-self: flex-start; }
.msg.from-george p { background: var(--bg); border: 1px solid var(--line-2); }
.msg.from-you { align-self: flex-end; }
.msg.from-you p { background: var(--ink); color: var(--bg); }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.msg.typing { display: flex; gap: 5px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-2); }
.msg.typing span:not(.sr-only) { width: 6px; height: 6px; background: var(--accent); animation: dot-bounce 1s infinite ease-in-out; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .msg, .msg.typing span { animation: none; } }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.ask-chip {
  font-family: var(--body); font-size: .84rem; line-height: 1.35; text-align: left;
  color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 0;
  padding: 9px 12px; cursor: pointer; transition: border-color .2s, color .2s, background .2s, opacity .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.ask-chip:hover { border-color: var(--accent); color: var(--accent); }
.ask-chip:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.ask-chip:active { transform: scale(.97); }
.ask-chip.asked { opacity: 0; transform: scale(.94); pointer-events: none; }

.chat-own {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0 18px 18px; padding: 13px 14px; border: 1px solid var(--line-2); background: var(--bg);
  text-decoration: none; color: var(--ink-dim); font-size: .95rem; transition: border-color .2s, color .2s;
}
.chat-own:hover { border-color: var(--accent); color: var(--ink); }
.chat-send { font-family: var(--display); font-weight: 500; color: var(--accent); white-space: nowrap; }

/* Phones: suggested questions scroll sideways like quick replies in a messaging app */
@media (max-width: 700px) {
  .asks .wrap.asks-grid { gap: 32px; }
  .chat-panel { margin: 0 calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .chat-thread { height: 360px; padding: 18px var(--gutter); }
  .chat-head { padding: 12px var(--gutter); }
  .chip-row {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding: 12px var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .chip-row::-webkit-scrollbar { display: none; }
  .ask-chip { flex: 0 0 auto; max-width: 78vw; white-space: normal; scroll-snap-align: start; }
  .chat-own { margin: 0 var(--gutter) 16px; }
  .msg { max-width: 88%; }
}

/* =========================================================
   Founder band with photo
   ========================================================= */
.founder-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder-photo { margin: 0; position: relative; }
.founder-photo picture { display: block; }
.founder-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; filter: grayscale(.25) contrast(1.05); transition: filter .6s ease; }
.founder-photo:hover img { filter: none; }
.founder-photo::after { content: ''; position: absolute; left: 16px; right: -16px; top: 16px; bottom: -16px; border: 1px solid var(--accent); z-index: -1; }
@media (max-width: 860px) {
  .founder-grid { grid-template-columns: minmax(0, 1fr); }
  .founder-photo { order: -1; max-width: 420px; margin-right: 16px; }
}

/* =========================================================
   About me (inside the No question too small section)
   ========================================================= */
.about-me { padding-bottom: clamp(72px, 10vw, 140px); margin-bottom: clamp(72px, 10vw, 140px); border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.about-head h2 { max-width: 16ch; }
.about-head h2 em { font-style: normal; color: var(--accent); }
.about-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(32px, 4vw, 56px); align-items: start; }
.about-body .prose p { font-size: 1.05rem; color: var(--ink-dim); }
.about-body .prose p:first-child { color: var(--ink); font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.proof { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proof > div { background: var(--bg); padding: clamp(20px, 2.4vw, 28px); }
.proof dt { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(1.35rem, 2.3vw, 2.05rem); line-height: 1; color: var(--accent); margin-bottom: 10px; white-space: nowrap; }
.proof dd { margin: 0; color: var(--ink-dim); font-size: .92rem; line-height: 1.45; }
.journey { list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.journey li { padding: 20px 20px 0 0; position: relative; }
.journey li::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--accent); }
.journey li:last-child::before { background: var(--ink); }
.journey .label { margin-bottom: 8px; }
.journey h3 { margin-bottom: 8px; }
.journey p { margin: 0; color: var(--ink-dim); font-size: .92rem; }
@media (max-width: 860px) {
  .about-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .journey { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--line-2); margin-left: 4px; gap: 24px; }
  .journey li { padding: 0 0 0 24px; }
  .journey li::before { top: 6px; left: -5px; }
}
@media (max-width: 420px) { .proof { grid-template-columns: minmax(0, 1fr); } }

/* About page */
.page-head h1 em { font-style: normal; color: var(--accent); }
.about-intro { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-bottom: clamp(72px, 10vw, 140px); }
.about-intro .prose p { font-size: 1.05rem; color: var(--ink-dim); }
.about-intro .prose p:first-child { color: var(--ink); font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
@media (max-width: 860px) { .about-intro { grid-template-columns: minmax(0, 1fr); } .about-intro .founder-photo { max-width: 420px; margin-right: 16px; } }
.journey { margin-top: clamp(40px, 5vw, 64px); }

/* =========================================================
   Phone polish (spacing, header, tap sizes)
   ========================================================= */
.site-header { transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: var(--bg); border-bottom-color: var(--line); }

@media (max-width: 700px) {
  :root { --gutter: 20px; }

  /* Header: solid once you scroll, everything 40px tall and evenly spaced */
  .site-header { padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px; gap: 10px; background: var(--bg); }
  .site-header:not(.scrolled) { background: linear-gradient(var(--bg) 55%, var(--fade)); }
  .brand-mark { font-size: 1.12rem; }
  .mode-toggle { margin-right: 0; }
  .mode-toggle button { min-height: 40px; padding: 0 10px; font-size: .64rem; }
  .nav-toggle { min-height: 40px; padding: 0 14px; }
  .site-nav { gap: 4px; }
  .site-nav a { padding: 8px 0; }

  /* Rhythm: a little tighter between sections */
  .section { padding: 64px 0; }
  .page-head { padding-top: 112px; padding-bottom: 40px; }
  .section-head { margin-bottom: 32px; }
  h2 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .lede { margin-top: 16px; }

  /* Buttons and chips comfortable to tap */
  .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .ask-chip { min-height: 44px; }
  label.checkbox-item { min-height: 40px; }

  /* Home: services accordion lines up, founder photo sized to the screen */
  .svc summary { padding: 18px 0; }
  .svc-body { gap: 14px 10px; padding-bottom: 28px; }
  .svc-body p { font-size: 1rem; }
  .founder-photo { max-width: 340px; }
  .founder-quote { font-size: clamp(1.7rem, 7.6vw, 2.1rem); }
  .founder-foot { margin-top: 28px; gap: 16px 24px; }
  .asks-hint { margin-top: 18px; }
  .work-grid { gap: 40px; }
  .work-meta { padding-top: 16px; }
  .marquee { padding: 24px 0; }
  .chat-options { margin-top: 36px; }

  /* Services page: number sits as a small label above each heading */
  .service-row { gap: 12px; padding: 36px 0; }
  .service-row .num { padding-top: 0; font-size: .8rem; }
  .service-row h2 { margin-bottom: 10px; }
  .tick-list { margin-top: 8px; }
  .steps { gap: 28px; }

  /* About page */
  .about-intro { gap: 32px; padding-bottom: 56px; }
  .about-intro .founder-photo { max-width: 340px; }

  /* Case studies: a taller banner so the logo has room */
  .work-media.large { aspect-ratio: 4 / 3; }
  .case-hero { margin-bottom: 40px; }
  .case-grid { gap: 32px; padding-bottom: 64px; }
  .next-case { padding-top: 36px; padding-bottom: 64px; }
  .next-case a { font-size: 1.75rem; display: inline-block; }

  /* Contact */
  .contact-grid { gap: 32px; padding-bottom: 0; }
  .panel { padding: 22px 18px; margin: 0 calc(var(--gutter) * -1); }

  /* Footer */
  .site-footer { padding-top: 48px; }
  .footer-grid { gap: 32px 24px; }
  .footer-links li { margin-bottom: 4px; }
  .footer-links a { display: inline-block; padding: 6px 0; }
  .footer-base { margin-top: 40px; }
}

/* Very narrow phones (iPhone SE / mini) */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .mode-toggle button { padding: 0 8px; font-size: .6rem; }
  .nav-toggle { padding: 0 11px; }
  .brand-mark { font-size: 1.02rem; }
  .hero-title { font-size: 2.45rem; }
  .hero-actions .btn { padding: 0 18px; }
  .proof { grid-template-columns: minmax(0, 1fr); }
}

.svc.closing .svc-icon::after { transform: rotate(90deg); }
.svc.closing .svc-name { transform: none; }

/* Header + footer: 3D lockup, swapped by colour mode */
.brand-mark { display: inline-flex; align-items: center; line-height: 0; }
.brand-lockup { height: 1.5em !important; width: auto !important; display: block; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.brand-mark:hover .brand-lockup { transform: translateY(-1px); }
.footer-wordmark { display: flex; align-items: center; line-height: 0; margin-bottom: 14px; }
.footer-lockup { height: 1.35em !important; width: auto !important; max-width: 100%; display: block; }
.lockup-inverse { display: none !important; }
:root[data-mode="inverse"] .lockup-black { display: none !important; }
:root[data-mode="inverse"] .lockup-inverse { display: block !important; }
/* Mobile: match the original header logo size */
@media (max-width: 700px) { .brand-lockup { height: 0.86em !important; } }

/* =========================================================
   Nav dropdown (About)
   ========================================================= */
.nav-group { position: relative; display: flex; }
.nav-group.in-group .nav-parent { color: var(--ink); border-bottom-color: var(--accent); }
.nav-sub {
  position: absolute; top: 100%; left: -18px; z-index: 5;
  display: flex; flex-direction: column; min-width: 210px; padding: 8px 0; margin-top: 10px;
  background: var(--bg); border: 1px solid var(--line-2);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub, .nav-group.open .nav-sub { opacity: 1; visibility: visible; transform: none; }
.site-nav .nav-sub a { padding: 10px 18px; border: 0; white-space: nowrap; }
.site-nav .nav-sub a[aria-current="page"] { color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
@media (max-width: 640px) {
  .nav-group { display: flex; flex-direction: column; align-items: flex-start; }
  .nav-parent { display: inline-flex; align-items: center; gap: .32em; }
  .nav-parent::after { content: ""; width: .32em; height: .32em; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-.12em) rotate(45deg); transition: transform .25s; }
  .nav-group.open .nav-parent::after { transform: translateY(.06em) rotate(-135deg); }
  .nav-group.in-group .nav-parent { color: var(--accent); }
  .nav-sub, .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { position: static; display: none; opacity: 1; visibility: inherit; transform: none; border: 0; background: none; padding: 2px 0 6px; margin: 0; min-width: 0; }
  .nav-sub::before { display: none; }
  .nav-group.open .nav-sub { display: flex; }
  .site-nav .nav-sub a { padding: 6px 0 6px 2px; white-space: normal; font-size: 1.45rem; font-weight: 500; color: var(--ink-dim); }
  .site-nav .nav-sub a[aria-current="page"] { box-shadow: none; color: var(--accent); }
}

/* =========================================================
   About the Brand: cocoon to logo
   ========================================================= */
.bfly-stage { position: relative; height: clamp(440px, 72vh, 680px); border: 1px solid var(--line); overflow: hidden; }
.bfly-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bfly { position: absolute; left: 50%; top: 50%; width: min(46%, 340px); transform: translate(-50%, -50%); color: var(--accent); opacity: 0; pointer-events: none; }
.bfly.is-mark { opacity: 1; transition: opacity .45s ease; }
.bfly-body { position: relative; aspect-ratio: 837.4 / 700; }
.bfly-body svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.brand-story { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.brand-story .prose p { font-size: 1.05rem; color: var(--ink-dim); }
.brand-story .prose p:first-child { color: var(--ink); font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.brand-story-close { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem) !important; line-height: 1.2; color: var(--ink) !important; margin-top: 1.6em !important; }
@media (max-width: 860px) { .brand-story { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 700px) { .bfly { width: min(58%, 260px); } .bfly-stage { height: clamp(400px, 66vh, 560px); } }

/* FAQ disclosure blocks on service pages */
.faq { border-top: 1px solid var(--line, rgba(127,127,127,.25)); padding: 14px 0; max-width: 62ch; }
.faq:last-child { border-bottom: 1px solid var(--line, rgba(127,127,127,.25)); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); transition: transform .3s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; }
.service-more { display: inline-block; margin-top: 14px; }
.prose h2 { margin: 0 0 .6em; }

/* ---------- Guides ---------- */
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 40px; }
.guide-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); text-decoration: none; transition: border-color .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
.guide-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.guide-card .label { margin: 0; }
.guide-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.12; max-width: 24ch; }
.guide-card p.dim { margin: 0; max-width: 56ch; }
.guide-card-big { grid-column: 1 / -1; min-height: 280px; justify-content: flex-end; background: linear-gradient(135deg, var(--bg-2) 55%, var(--accent-dim)); }
.guide-card-big h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 20ch; }
.guide-more { margin-top: auto; padding-top: 8px; font-family: var(--display); font-weight: 600; color: var(--accent); }
.guide-head h1 { max-width: 22ch; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; color: var(--ink-dim); font-size: .92rem; }
.guide-meta a { color: var(--ink); }
.guide-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: 24px; padding-bottom: 64px; }
.guide-toc { position: sticky; top: 100px; align-self: start; }
.guide-toc ol { list-style: none; margin: 12px 0 0; padding: 0; border-left: 1px solid var(--line); }
.guide-toc li a { display: block; padding: 6px 0 6px 14px; color: var(--ink-dim); text-decoration: none; font-size: .9rem; line-height: 1.35; border-left: 2px solid transparent; margin-left: -1px; transition: color .2s, border-color .2s; }
.guide-toc li a:hover { color: var(--ink); border-color: var(--accent); }
.guide-body { max-width: 68ch; font-size: 1.06rem; line-height: 1.7; }
.guide-body p { max-width: none; }
.guide-body > p:first-of-type { font-size: 1.18rem; line-height: 1.6; }
.guide-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 2.2em 0 .6em; scroll-margin-top: 100px; }
.guide-body h3 { margin: 1.6em 0 .5em; }
.guide-body a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.guide-body ol, .guide-body ul { padding-left: 1.3em; margin: 0 0 1.4em; }
.guide-body li { margin-bottom: .5em; }
.guide-body strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border: 1px solid var(--line); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.45; min-width: 560px; }
.table-wrap th { text-align: left; font-family: var(--display); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-dim); padding: 12px 14px; border-bottom: 1px solid var(--line-2); background: var(--bg-2); }
.table-wrap td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:nth-child(2) { color: var(--accent); font-weight: 600; white-space: nowrap; }
.table-wrap td:first-child { font-weight: 500; }
.guide-related { padding-top: 24px; }
.draft-note { background: #ffe58a; color: #0a0a0c; padding: 1px 4px; }
.draft-banner { font-family: var(--display); font-size: .85rem !important; background: #ffe58a; color: #0a0a0c; padding: 8px 12px; }
@media (max-width: 860px) {
  .guide-list { grid-template-columns: minmax(0, 1fr); }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .guide-toc { position: static; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .guide-card-big { min-height: 220px; }
  .guide-body { font-size: 1rem; }
}

/* Guide visual components */
.g-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 1.8em 0 2.2em; }
.g-stat { border: 1px solid var(--line); background: var(--bg-2); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.g-stat-v { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -.03em; line-height: 1.05; color: var(--ink); }
.g-stat-l { font-size: .82rem; line-height: 1.35; color: var(--ink-dim); }
.g-stat:first-child { border-color: var(--accent); }
.g-callout { margin: 2em 0; padding: 26px 28px; background: var(--accent); color: #efece4; }
.g-callout .label { color: #efece4; opacity: .8; margin: 0 0 8px; }
.g-callout p:last-child { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.3; letter-spacing: -.02em; }
.g-quote { margin: 2.4em 0; padding: 0; }
.g-quote blockquote { margin: 0; padding: 0 0 0 24px; border-left: 3px solid var(--accent); font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.g-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1.6em 0 2em; }
.g-compare-col { border: 1px solid var(--line); padding: 22px 22px 10px; background: var(--bg-2); }
.g-compare-col h3 { margin: 6px 0 14px !important; font-size: 1.1rem; }
.g-compare-col ul { list-style: none; padding: 0 !important; margin: 0 0 12px !important; }
.g-compare-col li { padding: 8px 0 8px 26px; border-top: 1px solid var(--line); position: relative; font-size: .95rem; line-height: 1.45; margin: 0 !important; }
.g-compare-col li::before { position: absolute; left: 0; top: 8px; font-weight: 700; }
.g-compare-col.is-bad li::before { content: '✕'; color: var(--ink-dim); }
.g-compare-col.is-good li::before { content: '✓'; color: var(--accent); }
.g-compare-col.is-bad { opacity: .8; }
.g-compare-col.is-good { border-color: var(--accent); }
.g-compare-tag { margin: 0; width: 30px; height: 30px; display: grid; place-items: center; font-weight: 700; border: 1px solid var(--line-2); }
.is-good .g-compare-tag { background: var(--accent); border-color: var(--accent); color: #efece4; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 1.6em 0 2em; }
.g-card { border: 1px solid var(--line); padding: 20px 18px; background: var(--bg-2); transition: border-color .3s; }
.g-card:hover { border-color: var(--accent); }
.g-card .num { color: var(--accent); font-family: var(--display); font-size: .8rem; }
.g-card h3 { margin: 10px 0 6px !important; font-size: 1.05rem; }
.g-card p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-dim); }
.g-timeline { list-style: none; padding: 0 !important; margin: 1.6em 0 2.2em !important; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; position: relative; }
.g-timeline::before { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-dim)); }
.g-timeline li { position: relative; padding-top: 26px; margin: 0 !important; }
.g-timeline .g-dot { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.g-timeline li:last-child .g-dot { background: var(--accent); }
.g-timeline h3 { margin: 0 0 6px !important; font-size: 1rem; }
.g-timeline p { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--ink-dim); }
.g-direction { margin: 1.4em 0 1.8em; padding: 18px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); }
.g-direction svg { width: 100%; height: auto; display: block; }
.g-svg-l { font-family: var(--display); font-size: 16px; font-weight: 600; fill: currentColor; }
.g-svg-dim { fill: var(--ink-dim); }
.g-svg-acc { fill: #2A47ED; }
@media (max-width: 720px) {
  .g-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-compare { grid-template-columns: minmax(0, 1fr); }
  .g-timeline { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 28px !important; }
  .g-timeline::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), var(--accent-dim)); }
  .g-timeline li { padding: 0 0 18px; }
  .g-timeline .g-dot { left: -28px; top: 2px; }
  .g-direction { padding: 10px; }
  .g-svg-l { font-size: 24px; }
}

/* Founder-to-founder note at the end of guides */
.founder-note { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; margin: 3em 0 0; padding: 28px; border: 1px solid var(--line-2); border-top: 3px solid var(--accent); background: var(--bg-2); }
.founder-note img { width: 96px; height: 120px; object-fit: cover; display: block; filter: grayscale(.25) contrast(1.05); }
.founder-note .label { margin: 0 0 10px; }
.founder-note p { margin: 0 0 12px; font-size: 1rem; line-height: 1.6; color: var(--ink-dim); }
.founder-note .founder-note-lead { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.founder-sign { margin: 16px 0 0 !important; font-family: var(--display); font-weight: 600; color: var(--ink) !important; }
.founder-sign span { display: block; font-family: var(--body); font-weight: 400; font-size: .85rem; color: var(--ink-dim); }
@media (max-width: 560px) { .founder-note { grid-template-columns: minmax(0, 1fr); } .founder-note img { width: 72px; height: 90px; } }

/* Case studies: semantic h2s styled as section labels; shared guide components */
.case-body h2 { font-family: var(--display); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 2.6em 0 .9em; }
.case-body h2:first-child { margin-top: 0; }
.case-body .g-cards { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.case-body .g-timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-testimonial { margin: 2.6em 0 0; padding: 34px 32px 28px; border: 1px solid var(--accent); background: var(--bg-2); position: relative; }
.g-testimonial-mark { position: absolute; top: -6px; left: 24px; font-family: var(--display); font-size: 5rem; line-height: 1; color: var(--accent); }
.g-testimonial blockquote { margin: 12px 0 18px; padding: 0; border: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; color: var(--ink); }
.g-testimonial figcaption { font-family: var(--display); font-weight: 600; color: var(--ink-dim); font-size: .9rem; }
@media (max-width: 720px) { .case-body .g-timeline { grid-template-columns: minmax(0, 1fr); } .g-testimonial { padding: 30px 20px 22px; } }

/* Case study media: figures, browser frame, gallery, palette */
.g-figure { margin: 1.8em 0 2em; }
.g-figure img, .g-gallery img, .g-browser img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.g-figure figcaption, .g-gallery figcaption, .g-browser figcaption { margin-top: 10px; font-size: .88rem; line-height: 1.5; color: var(--ink-dim); }
.g-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1.8em 0 2em; }
.g-gallery figure { margin: 0; }
.g-gallery img { aspect-ratio: 1 / 1; object-fit: cover; }
.g-gallery.is-natural img { aspect-ratio: auto; object-fit: contain; }
.g-browser { margin: 2em 0; }
.g-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; }
.g-browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.g-browser-bar em { font-style: normal; font-size: .78rem; color: var(--ink-dim); margin-left: 10px; padding: 3px 12px; background: var(--bg); border: 1px solid var(--line); }
.g-browser figcaption a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; white-space: nowrap; }
.g-palette { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 1.2em 0 2em; }
.g-swatch { display: flex; flex-direction: column; gap: 4px; }
.g-swatch-c { aspect-ratio: 1 / 1.15; border: 1px solid var(--line-2); display: block; }
.g-swatch-n { font-family: var(--display); font-weight: 600; font-size: .85rem; margin-top: 4px; }
.g-swatch-h { font-size: .75rem; color: var(--ink-dim); letter-spacing: .03em; }
@media (max-width: 560px) {
  .g-gallery { grid-template-columns: minmax(0, 1fr); }
  .g-palette { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .g-swatch-n { font-size: .7rem; }
  .g-swatch-h { font-size: .62rem; }
}

/* Case study goal line */
.goal { margin: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: .95rem; line-height: 1.35; color: var(--ink); }
.goal span { color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: .78em; margin-right: 4px; }
.goal-lg { margin-top: 28px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--bg-2); font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 46ch; }

.g-stats.g-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Animated before/after bars and flow strip */
.g-bars { margin: 1.8em 0 2.2em; padding: 24px; border: 1px solid var(--line); background: var(--bg-2); }
.g-bars .label { margin: 0 0 18px; }
.g-bar { display: grid; grid-template-columns: 90px minmax(0, 1fr) 80px; align-items: center; gap: 14px; margin-bottom: 12px; }
.g-bar:last-child { margin-bottom: 0; }
.g-bar-l { font-family: var(--display); font-weight: 600; font-size: .95rem; }
.g-bar-t { height: 34px; background: var(--bg); border: 1px solid var(--line); position: relative; overflow: hidden; }
.g-bar-f { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--line-2); transition: width 1.4s cubic-bezier(.16,1,.3,1) .2s; }
.g-bar.is-hi .g-bar-f { background: var(--accent); transition-delay: .5s; }
.g-bar-v { font-family: var(--display); font-weight: 600; font-size: 1.1rem; text-align: right; }
.g-bar.is-hi .g-bar-v { color: var(--accent); font-size: 1.5rem; }
.fx .g-bars.reveal:not(.in) .g-bar-f { width: 0; }
.g-flow { list-style: none; padding: 0 !important; margin: 1.6em 0 2em !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.g-flow li { margin: 0 !important; padding: 18px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; position: relative; background: var(--bg-2); }
.g-flow li:last-child { border-right: 0; background: var(--accent); color: #efece4; }
.g-flow li:last-child span:not(.g-flow-n) { color: rgba(239,236,228,.8); }
.g-flow li:not(:last-child)::after { content: '→'; position: absolute; right: -9px; top: 18px; background: var(--bg); color: var(--accent); font-weight: 700; z-index: 1; line-height: 1; padding: 2px; }
.g-flow-n { font-family: var(--display); font-size: .75rem; color: var(--accent); }
.g-flow li:last-child .g-flow-n { color: #efece4; }
.g-flow strong { font-family: var(--display); font-size: 1rem; }
.g-flow span:not(.g-flow-n) { font-size: .85rem; line-height: 1.45; color: var(--ink-dim); }
@media (max-width: 720px) {
  .g-flow { grid-template-columns: minmax(0, 1fr); }
  .g-flow li { border-right: 0; border-bottom: 1px solid var(--line); }
  .g-flow li:not(:last-child)::after { content: '↓'; right: auto; left: 16px; top: auto; bottom: -11px; }
  .g-bar { grid-template-columns: 64px minmax(0, 1fr) 64px; gap: 10px; }
}

/* Founder strip on service pages */
.founder-strip { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.founder-strip img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; filter: grayscale(.25) contrast(1.05); }
.founder-strip .prose h2 { margin-top: 0; }
@media (max-width: 640px) { .founder-strip { grid-template-columns: 1fr; } .founder-strip picture { max-width: 200px; } }

/* ---------- Loyalty card demo (::: stampcard): a replica of the real wallet pass ---------- */
.g-stamp { margin: 2em 0 2.4em; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .g-stamp { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: stretch; } }
.g-stamp figcaption { grid-column: 1 / -1; color: var(--ink-dim); font-size: .85em; }
.g-stamp-wrap { display: grid; place-items: center; padding: clamp(12px, 3vw, 24px); background: radial-gradient(120% 90% at 50% 40%, #1b1b1d 0%, #050505 70%); border: 1px solid var(--line); }
.g-pass { container-type: inline-size; width: min(100%, 380px); }
.g-pass-in { aspect-ratio: 1184 / 1660; display: flex; flex-direction: column; background: #000; color: #fff; border: 1.5px solid #5e5e5e; border-radius: 4.2cqw; padding: 6cqw 5.5cqw 5.5cqw; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.g-pass-brand { margin: 0 0 6.5cqw; padding-left: 4cqw; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 800; font-size: 7.4cqw; line-height: 1; letter-spacing: -.01em; color: #ff3b30; text-shadow: 0 0 1.4cqw rgba(255, 59, 48, .85), 0 0 3cqw rgba(255, 59, 48, .45); }
.prose .g-pass-grid, .g-pass-grid { list-style: none; margin: 0; padding: 0 1cqw; display: grid; grid-template-columns: repeat(5, 1fr); row-gap: 5cqw; }
.prose .g-pass-grid li, .g-pass-grid li { position: relative; margin: 0; display: grid; place-items: center; padding-top: 3.2cqw; }
.prose .g-pass-grid li::before { content: none; }
.g-pass-c { font-size: 10.2cqw; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; filter: brightness(0) invert(.36); transition: filter .35s ease; }
.g-pass-grid li.on .g-pass-c { filter: none; }
.g-pass-grid li.pop .g-pass-c { animation: stamp-pop .55s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes stamp-pop { 0% { transform: scale(.55) rotate(-10deg); } 100% { transform: none; } }
.g-pass-v { position: absolute; top: 0; right: 4%; font-size: max(9px, 2.35cqw); font-weight: 800; color: #fff; letter-spacing: -.01em; }
.g-pass-fields { display: flex; justify-content: space-between; gap: 4cqw; margin-top: 7cqw; padding: 0 1cqw; }
.g-pass-fields .is-right { text-align: left; }
.g-pass-k { display: block; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: max(8px, 2.55cqw); letter-spacing: .02em; text-transform: uppercase; color: #c9c9c9; margin-bottom: 1.2cqw; white-space: nowrap; }
.g-pass-val { display: block; font-size: max(14px, 4.3cqw); font-weight: 300; color: #fff; }
.g-pass-qr { margin: auto auto 0; width: 39%; aspect-ratio: 1; background: #fff; border-radius: 1.8cqw; padding: 2.6cqw; }
.g-pass-qr img { width: 100%; height: 100%; display: block; border: 0; image-rendering: pixelated; }
.g-stamp-side { border: 1px solid var(--line); background: var(--bg-2); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.g-stamp-side .label { margin: 0; }
.g-stamp-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-height: 196px; align-content: start; }
.g-stamp-feed li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 7%, transparent); font-size: .9rem; line-height: 1.4; opacity: 0; transform: translate3d(0, -8px, 0); transition: opacity .45s ease, transform .45s cubic-bezier(.16, 1, .3, 1); }
.g-stamp-feed li.in, .g-stamp-feed li.is-hint { opacity: 1; transform: none; }
.g-stamp-feed li.is-hint { background: none; padding: 0; color: var(--ink-dim); }
.g-stamp-feed strong { display: block; font-weight: 600; }
.g-stamp-feed li > span:last-child > span { color: var(--ink-dim); }
.g-stamp-app { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #050505; color: #ff3b3b; font-weight: 800; font-size: .9rem; border: 1px solid #2a2a2a; }
.g-stamp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.g-stamp-actions .btn { flex: 1 1 auto; }
.g-stamp-actions .btn[disabled] { opacity: .55; cursor: default; }
@media (min-width: 700px) { .g-gallery:has(> figure:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prose .g-stamp-feed { padding: 0; margin: 0; }
.prose .g-stamp-feed li { margin: 0; }
.prose .g-stamp-feed li::before { content: none; }
.g-figure.is-portrait { max-width: 400px; margin-left: auto; margin-right: auto; }

.g-pass { width: min(100%, 360px); }
@media (max-width: 899px) {
  .g-stamp-side .g-stamp-actions { order: -1; margin-top: 0; }
  .g-stamp-side .label { order: -2; }
  .g-stamp-feed { min-height: 0; }
}
@media (min-width: 700px) { .case-body .g-cards:has(> .g-card:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .case-body .g-cards:has(> .g-card:nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 699px) {
  .g-gallery.is-natural { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .g-gallery.is-natural::-webkit-scrollbar { display: none; }
  .g-gallery.is-natural figure { flex: 0 0 78%; scroll-snap-align: center; }
}

/* Proudly supporting British business */
.british { display: inline-flex; align-items: center; gap: 8px; }
.uk-flag { width: 20px; height: 10px; flex: none; border-radius: 1px; box-shadow: 0 0 0 1px var(--line-2); }
.hero-foot { align-items: flex-end; }
.hero-foot-meta { display: flex; gap: 10px 28px; flex-wrap: wrap; align-items: center; }
@media (max-width: 700px) {
  .hero-foot-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.site-footer .british { margin-top: 14px; color: var(--ink-dim); }
.globe-ic { width: 20px; height: 14px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; }
