/* ==========================================================================
   Arlo — Baxter / content & copy
   Hand-rolled, no build step. Tokens first, then layout, then components.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper:      #FBF9F6;
  --surface:    #FFFFFF;
  --surface-2:  #F4F0EA;
  --ink:        #17130F;
  --ink-soft:   #4A423B;
  --muted:      #7A716A;
  --line:       #E6DED4;
  --line-soft:  #F0E9E1;
  --accent:     #B4441F;
  --accent-ink: #8E3315;
  --accent-wash:#F7EAE3;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap:  1120px;
  --prose: 660px;

  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.09rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.44rem);
  --step-2:  clamp(1.50rem, 1.34rem + 0.80vw, 2.05rem);
  --step-3:  clamp(1.95rem, 1.62rem + 1.60vw, 3.00rem);
  --step-4:  clamp(2.45rem, 1.80rem + 3.10vw, 4.40rem);

  --radius: 14px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #131110;
    --surface:    #1B1817;
    --surface-2:  #221E1C;
    --ink:        #F2EDE7;
    --ink-soft:   #CFC6BD;
    --muted:      #9C928A;
    --line:       #2E2926;
    --line-soft:  #272220;
    --accent:     #E8763F;
    --accent-ink: #F39468;
    --accent-wash:#2A1E18;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: #fff; }

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

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.prose { max-width: var(--prose); }

section { padding-block: clamp(56px, 8vw, 104px); }
section.tight { padding-block: clamp(40px, 5vw, 64px); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Small caps label ---------- */
.label {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.label .dot { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.wordmark .mark { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.94rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(64px, 11vw, 132px) clamp(48px, 7vw, 84px); }

.hero h1 {
  font-size: var(--step-4);
  max-width: 15ch;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 60;
  color: var(--accent);
}

.hero-sub {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}

.fade-up { opacity: 0; animation: fadeUp 0.75s var(--ease) forwards; }
.fade-up.d1 { animation-delay: 0.04s; }
.fade-up.d2 { animation-delay: 0.16s; }
.fade-up.d3 { animation-delay: 0.28s; }
.fade-up.d4 { animation-delay: 0.40s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: #fff; }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

.arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow, .work-item:hover .arrow { transform: translateX(4px); }

/* ---------- Statement / positioning ---------- */
.statement .lead {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.32;
  letter-spacing: -0.015em;
  max-width: 22ch;
  color: var(--ink);
  margin: 0;
}
.statement .cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
}
@media (min-width: 860px) {
  .statement .cols { grid-template-columns: 1.1fr 1fr; align-items: start; }
}
.statement .aside {
  color: var(--ink-soft);
  max-width: 48ch;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
}

/* ---------- Work index ---------- */
.work-list { border-top: 1px solid var(--line); }

.work-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  align-items: start;
  padding: clamp(26px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease);
}
.work-item:hover { background: color-mix(in srgb, var(--accent-wash) 55%, transparent); }

.work-num {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.6em;
  font-variant-numeric: tabular-nums;
}

.work-body { display: grid; gap: 10px; }

.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.work-item h3 {
  font-size: var(--step-2);
  transition: color 0.2s var(--ease);
}
.work-item:hover h3 { color: var(--accent); }

.work-client {
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.work-desc { color: var(--ink-soft); max-width: 62ch; margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  background: var(--surface);
}

.work-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 2px;
}

/* ---------- Capability grid ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 700px)  { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cap-grid { grid-template-columns: repeat(4, 1fr); } }

.cap {
  background: var(--surface);
  padding: clamp(22px, 3vw, 30px);
  display: grid;
  gap: 12px;
  align-content: start;
}
.cap h3 { font-size: var(--step-1); }
.cap ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.cap li {
  font-size: 0.93rem;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}
.cap li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 1px;
  background: var(--accent);
}

.footnote {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Book strip ---------- */
.book {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 52px);
}
@media (min-width: 800px) { .book { grid-template-columns: 200px 1fr; } }

.book-cover {
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  background:
    linear-gradient(150deg, var(--accent) 0%, var(--accent-ink) 100%);
  color: #fff;
  display: grid;
  align-content: space-between;
  padding: 22px 20px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.5);
}
.book-cover .t {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.book-cover .b { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }

.book h2 { font-size: var(--step-2); margin-bottom: 14px; }
.book p { color: var(--ink-soft); max-width: 56ch; }

/* ---------- Quote ---------- */
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.36;
  letter-spacing: -0.015em;
  max-width: 26ch;
}
.quote figcaption { margin-top: 20px; font-size: 0.92rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { text-align: left; }
.contact h2 { font-size: var(--step-3); max-width: 16ch; margin-bottom: 20px; }
.contact p { color: var(--ink-soft); max-width: 46ch; margin-bottom: 32px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 34px 44px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Case study page ---------- */
.cs-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); }
.cs-eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.cs-hero h1 { font-size: var(--step-3); max-width: 18ch; margin-bottom: 22px; }
.cs-standfirst {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px 32px;
  padding-block: 26px;
  border-block: 1px solid var(--line);
}
.cs-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.cs-meta dd { margin: 0; font-size: 0.95rem; color: var(--ink); }

.cs-block { padding-block: clamp(38px, 5vw, 60px); border-bottom: 1px solid var(--line-soft); }
.cs-block:last-of-type { border-bottom: 0; }

.cs-block > .wrap { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 3vw, 48px); }
@media (min-width: 900px) {
  .cs-block > .wrap { grid-template-columns: 200px 1fr; align-items: start; }
}
.cs-block h2 {
  font-size: var(--step-1);
  color: var(--ink);
  position: sticky;
  top: 96px;
}
@media (max-width: 899px) { .cs-block h2 { position: static; } }

.cs-body { max-width: var(--prose); color: var(--ink-soft); }
.cs-body strong { color: var(--ink); font-weight: 600; }
.cs-body h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 28px 0 8px;
}
.cs-body ul { margin: 0 0 1.15em; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.cs-body ul li { padding-left: 20px; position: relative; }
.cs-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 8px; height: 1px;
  background: var(--accent);
}

.deliverables { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.deliverable { background: var(--surface); padding: 20px 22px; }
.deliverable h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 5px;
  color: var(--ink);
}
.deliverable p { font-size: 0.93rem; margin: 0; color: var(--ink-soft); }

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.result { background: var(--surface); padding: 24px 22px; }
.result .n {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.result p { font-size: 0.9rem; margin: 0; color: var(--ink-soft); }

/* Pull quote inside a case study */
.pull {
  margin: 30px 0;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--ink);
}

/* Next/prev */
.cs-next { border-top: 1px solid var(--line); padding-block: 40px 56px; }
.cs-next a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  text-decoration: none;
  flex-wrap: wrap;
}
.cs-next .k { font-size: 0.78rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.cs-next h3 { font-size: var(--step-2); transition: color 0.2s var(--ease); }
.cs-next a:hover h3 { color: var(--accent); }

/* ---------- Placeholder marker (v1 drafting aid) ---------- */
.ph {
  background: var(--accent-wash);
  border-bottom: 1px dotted var(--accent);
  color: var(--accent-ink);
  padding: 0 3px;
  border-radius: 2px;
  font-style: normal;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   v2 — Arlo's copy pass
   ========================================================================== */

/* Anchor jumps clear the sticky header */
section[id] { scroll-margin-top: 72px; }

/* Multi-paragraph standfirst */
div.cs-standfirst p { margin: 0 0 0.8em; }
div.cs-standfirst p:last-child { margin-bottom: 0; }

/* Inline accent link with arrow */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}
.text-link:hover { border-bottom-color: var(--accent); }
.text-link:hover .arrow { transform: translateX(4px); }

.cs-body p a,
.book p a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Client intro line at the top of a block */
.cs-body .lead-in { color: var(--ink); font-size: 1.06rem; }

/* Example-type label on deliverable cards */
.ex-type {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.deliverable p + p { margin-top: 0.7em; }

/* Section label sitting between case-study blocks */
.cs-section-label { padding-top: clamp(38px, 5vw, 60px); }
.cs-section-label .label { margin: 0; }

/* Compact "More work" cards — deliberately quieter than the main three */
.more-label { margin-top: clamp(44px, 6vw, 68px); }
.more-work {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) { .more-work { grid-template-columns: repeat(3, 1fr); } }

.more-item {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.more-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.more-item h3 { font-size: var(--step-1); transition: color 0.2s var(--ease); }
.more-item:hover h3 { color: var(--accent); }
.more-item p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }
.more-item .tag { background: var(--paper); }
.more-item:hover .arrow { transform: translateX(4px); }

/* Language switcher — sits right of the nav on desktop */
.nav { margin-left: auto; order: 2; }
.lang {
  order: 3;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.lang a {
  text-decoration: none;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 999px;
  line-height: 1.2;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }

/* Narrow screens: wordmark + switcher on row one, nav on row two */
@media (max-width: 600px) {
  .site-header .wrap {
    height: auto;
    flex-wrap: wrap;
    row-gap: 6px;
    padding-block: 12px;
  }
  .lang { order: 2; margin-left: auto; }
  .nav { order: 3; margin-left: 0; width: 100%; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
}

/* ==========================================================================
   v4 — testimonials, About portrait, Spanish language note
   ========================================================================== */

/* Testimonials: two cards, quotes set smaller than the old single pull-quote */
.quotes .label { margin-bottom: 24px; }
.quote-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .quote-grid { grid-template-columns: 1fr 1fr; } }
.quote-card {
  margin: 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 22px;
  align-content: space-between;
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.quote-card figcaption {
  display: grid;
  gap: 2px;
  font-size: 0.92rem;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quote-card figcaption strong { font-weight: 600; color: var(--ink); }
.quote-card figcaption span { color: var(--muted); }
.quotes .footnote { margin-top: 16px; }

/* About: intro text left, portrait right (he faces left, into the copy) */
.about-hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}
@media (min-width: 860px) {
  .about-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); }
}
.about-photo { margin: 0; }
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-2);
}
@media (max-width: 859px) { .about-photo { max-width: 320px; } }

/* Spanish-only note under the hero */
.lang-note { margin: 18px 0 0; font-size: 0.86rem; color: var(--muted); }

/* ==========================================================================
   v6 — contact form
   ========================================================================== */
:root { --ok-wash: #E7F3EA; --ok-ink: #1E5B32; --err: #B3261E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ok-wash: #16261B; --ok-ink: #8FD3A4; --err: #F2B8B5; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact .contact-form p { max-width: none; margin: 0; }

.field { display: grid; gap: 7px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--err); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.contact-form button.btn { font-family: inherit; cursor: pointer; }
.contact-form button.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.contact .contact-form .form-note { font-size: 0.82rem; color: var(--muted); }

.contact .contact-form .form-status { font-size: 0.93rem; padding: 12px 14px; border-radius: 10px; }
.form-status[data-state="sending"] { background: var(--surface-2); color: var(--ink-soft); }
.form-status[data-state="success"] { background: var(--ok-wash); color: var(--ok-ink); }
.form-status[data-state="error"]   { background: var(--accent-wash); color: var(--accent-ink); }

/* Honeypot: invisible to people, tempting to bots */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   v7 — homepage hero banner
   Espresso ground, cream type, terracotta duotone portrait in an arch.
   Stays dark in both themes, so its colours are local to the banner.
   ========================================================================== */
.hero-banner {
  --hb-bg: #1A1411;
  --hb-ink: #F4EEE7;
  --hb-soft: #D3C7BC;
  --hb-muted: #A89B90;
  --hb-line: rgba(244, 238, 231, 0.14);
  --hb-accent: #EC7A45;
  background:
    radial-gradient(110% 90% at 100% 100%, rgba(180, 68, 31, 0.38) 0%, rgba(180, 68, 31, 0) 58%),
    radial-gradient(60% 50% at 0% 0%, rgba(244, 238, 231, 0.05) 0%, rgba(244, 238, 231, 0) 70%),
    var(--hb-bg);
  color: var(--hb-ink);
  padding-block: clamp(56px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr); }
}

.hero-banner h1 { color: var(--hb-ink); }
.hero-banner h1 em { color: var(--hb-accent); }
.hero-banner .hero-sub { color: var(--hb-soft); }
.hero-banner .hero-meta { color: var(--hb-muted); border-top-color: var(--hb-line); }
.hero-banner .lang-note { color: var(--hb-muted); }

.hero-banner .btn { background: var(--hb-ink); color: var(--hb-bg); border-color: var(--hb-ink); }
.hero-banner .btn:hover { background: var(--hb-accent); border-color: var(--hb-accent); color: var(--hb-bg); }
.hero-banner .btn.ghost { background: transparent; color: var(--hb-ink); border-color: rgba(244, 238, 231, 0.3); }
.hero-banner .btn.ghost:hover { color: var(--hb-accent); border-color: var(--hb-accent); }
.hero-banner :focus-visible { outline-color: var(--hb-accent); }

/* Duotone portrait: greyscale photo multiplied over terracotta */
.hero-portrait {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  background: #B4441F;
  border-radius: 999px 999px 22px 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  isolation: isolate;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  filter: grayscale(1) contrast(1.12) brightness(1.04);
  mix-blend-mode: multiply;
}
@media (max-width: 899px) {
  .hero-portrait { max-width: 300px; }
}

/* v7.1 — banner balance: tags on one line on desktop, slightly larger portrait */
.hero-banner .hero-meta { max-width: none; gap: 8px 22px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr); }
  .hero-portrait { max-width: 420px; justify-self: end; width: 100%; }
}

/* v7.2 — give the copy column room so the three tags sit on one line (≥1200px) */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr); column-gap: 56px; }
}
.hero-banner .hero-meta { font-size: 0.86rem; gap: 8px 20px; }

/* v8 — remove the hairline under the hero buttons */
.hero-banner .hero-meta { border-top: 0; padding-top: 0; margin-top: 28px; }

/* v9 — hero tags in orange with small circle dividers.
   Narrow: a short stacked list, each item led by a dot (no stranded dividers).
   ≥1200px: one row, dots only *between* items. */
.hero-banner .hero-meta {
  color: var(--hb-accent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.86rem;
}
.hero-banner .hero-meta span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.hero-banner .hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}
@media (min-width: 1200px) {
  .hero-banner .hero-meta { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 10px; font-size: 0.82rem; }
  .hero-banner .hero-meta span:first-child::before { display: none; }
}

/* ==========================================================================
   v10 — light hero. Warm sand ground, ink type, terracotta accents.
   Follows the site theme: the dark espresso version now only shows in dark mode.
   ========================================================================== */
.hero-banner {
  --hb-bg: #F3E8DD;
  --hb-ink: #17130F;
  --hb-soft: #4A423B;
  --hb-muted: #6B5D52;
  --hb-line: rgba(23, 19, 15, 0.12);
  --hb-ghost: rgba(23, 19, 15, 0.22);
  --hb-accent: #B4441F;
  --hb-glow: rgba(180, 68, 31, 0.16);
  --hb-sheen: rgba(255, 255, 255, 0.55);
  --hb-shadow: 0 30px 60px -32px rgba(110, 45, 20, 0.35);
  background:
    radial-gradient(110% 90% at 100% 100%, var(--hb-glow) 0%, transparent 58%),
    radial-gradient(60% 50% at 0% 0%, var(--hb-sheen) 0%, transparent 70%),
    var(--hb-bg);
  color: var(--hb-ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-banner {
    --hb-bg: #1A1411;
    --hb-ink: #F4EEE7;
    --hb-soft: #D3C7BC;
    --hb-muted: #A89B90;
    --hb-line: rgba(244, 238, 231, 0.14);
    --hb-ghost: rgba(244, 238, 231, 0.3);
    --hb-accent: #EC7A45;
    --hb-glow: rgba(180, 68, 31, 0.38);
    --hb-sheen: rgba(244, 238, 231, 0.05);
    --hb-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  }
}
.hero-banner .btn.ghost { border-color: var(--hb-ghost); }
.hero-portrait { box-shadow: var(--hb-shadow); }

/* ==========================================================================
   v11 — orange primary button in the hero; tags inline at every width.
   Tags wrap freely: each dot sits in its item's left padding, and the list is
   pulled left by that padding then clipped back, so a dot that would start a
   new line is always hidden. No stranded dividers, no JS.
   ========================================================================== */
.hero-banner {
  --hb-btn-bg: #B4441F;
  --hb-btn-ink: #FFFFFF;
  --hb-btn-hover: #8E3315;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-banner {
    --hb-btn-bg: #EC7A45;
    --hb-btn-ink: #1A1411;
    --hb-btn-hover: #F39468;
  }
}
.hero-banner .btn:not(.ghost) { background: var(--hb-btn-bg); border-color: var(--hb-btn-bg); color: var(--hb-btn-ink); }
.hero-banner .btn:not(.ghost):hover { background: var(--hb-btn-hover); border-color: var(--hb-btn-hover); color: var(--hb-btn-ink); }

.hero-banner .hero-meta {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin-left: -22px;
  clip-path: inset(-6px 0 -6px 22px);
}
.hero-banner .hero-meta span { position: relative; padding-left: 22px; }
.hero-banner .hero-meta span::before,
.hero-banner .hero-meta span:first-child::before {
  display: block;
  position: absolute;
  left: 8.5px;
  top: 50%;
  transform: translateY(-50%);
}

/* v11.1 — tags as one running line of text (truly inline at every width).
   The dot is glued to the END of each item, so any line break happens after a dot,
   never before one: a divider can end a line like a comma, but never start one. */
.hero-banner .hero-meta {
  display: block;
  margin-left: 0;
  clip-path: none;
  line-height: 1.9;
}
.hero-banner .hero-meta span {
  display: inline;
  position: static;
  padding-left: 0;
  white-space: normal;
}
.hero-banner .hero-meta span::before,
.hero-banner .hero-meta span:first-child::before { display: none; }
.hero-banner .hero-meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 8px 0 11px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
  vertical-align: 0.2em;
}

/* v12 — orange active state on the language toggle; portrait above the headline on small screens */
.lang a[aria-current="true"] { background: var(--accent); color: var(--paper); }
.lang a[aria-current="true"]:hover { color: var(--paper); }

@media (max-width: 899px) {
  .hero-portrait { order: -1; max-width: 260px; }
}

/* v13 — serif titles in the accent colour across all pages.
   Left in ink on purpose: the homepage hero h1 (keeps the orange "job" as its accent) and
   linked titles (work list, More work cards, next-page links), which turn orange on hover. */
.statement .lead,
.cs-hero h1,
.cs-block h2,
.book h2,
.contact h2,
.cap h3 { color: var(--accent); }

/* v14 — hero intro at body size (16px) */
.hero-banner .hero-sub { font-size: 1rem; line-height: 1.6; }

/* v15 — work list hover: white card instead of the peach wash.
   Drawn on a pseudo-element that reaches a little past the text, so the content and the
   divider lines don't move, and "01" gets breathing room from the card edge. */
.work-item { position: relative; isolation: isolate; }
.work-item:hover { background: transparent; }
.work-item::before {
  content: "";
  position: absolute;
  inset: 0 clamp(-24px, -2vw, -12px);
  z-index: -1;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 14px 34px -22px rgba(23, 19, 15, 0.28);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.work-item:hover::before,
.work-item:focus-visible::before { opacity: 1; }

/* v16 — secondary ("ghost") buttons: solid white, no grey stroke, on every page.
   A very soft shadow keeps them visible on the off-white page; dark mode gets a lifted dark fill. */
:root {
  --btn-soft-bg: #FFFFFF;
  --btn-soft-shadow: 0 1px 2px rgba(23, 19, 15, 0.05), 0 6px 18px -10px rgba(23, 19, 15, 0.22);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --btn-soft-bg: #2A2420; --btn-soft-shadow: none; }
}
.btn.ghost,
.hero-banner .btn.ghost {
  background: var(--btn-soft-bg);
  border-color: transparent;
  color: var(--ink);
  box-shadow: var(--btn-soft-shadow);
}
.btn.ghost:hover,
.hero-banner .btn.ghost:hover {
  background: var(--btn-soft-bg);
  border-color: transparent;
  color: var(--accent);
}

/* v16.1 — no shadow on secondary buttons */
:root { --btn-soft-shadow: none; }
.btn.ghost, .hero-banner .btn.ghost { box-shadow: none; }

/* v17 — LinkedIn icon in the header, after the language switcher */
.header-social {
  order: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: -10px;               /* sit closer to the switcher than the header gap */
  border-radius: 8px;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.header-social:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
@media (max-width: 600px) {
  .header-social { order: 2; margin-left: -14px; }
}

/* ==========================================================================
   v18 — animated menu underline, full-width capabilities note, footer icon
   ========================================================================== */
/* Menu: the line slides in from the left on hover, out to the right on leave,
   and stays on the current page (or the homepage section in view). */
.nav a { position: relative; border-bottom: 0; padding-block: 6px; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.nav a[aria-current="page"]::after,
.nav a.is-active::after { transform: scaleX(1); transform-origin: left center; }
.nav a[aria-current="page"],
.nav a.is-active { color: var(--ink); }

/* "I'm not a UX designer…" spans the full width under the four-column panel */
#capabilities .footnote { max-width: none; }

/* Footer LinkedIn icon */
.footer-links { align-items: center; }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: -4px;
  border-radius: 7px;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.footer-social:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* v18.1 — keep the footer LinkedIn icon on the same line as the links on phones */
@media (max-width: 600px) {
  .footer-links { gap: 10px 15px; }
}

/* v19 — orange (accent) button, used for Download CV. Matches the hero's primary button. */
:root { --accent-btn: #B4441F; --accent-btn-ink: #FFFFFF; --accent-btn-hover: #8E3315; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --accent-btn: #EC7A45; --accent-btn-ink: #1A1411; --accent-btn-hover: #F39468; }
}
.btn.btn-accent { background: var(--accent-btn); border-color: var(--accent-btn); color: var(--accent-btn-ink); }
.btn.btn-accent:hover { background: var(--accent-btn-hover); border-color: var(--accent-btn-hover); color: var(--accent-btn-ink); }

/* ==========================================================================
   v20 — contact form: Send disabled until complete (then orange), thank-you state
   ========================================================================== */
.form-body { display: grid; gap: 18px; }
.form-body[hidden], .form-thanks[hidden] { display: none; }

.contact-form button[type="submit"] {
  background: var(--accent-btn);
  border-color: var(--accent-btn);
  color: var(--accent-btn-ink);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.contact-form button[type="submit"]:hover:not(:disabled) { background: var(--accent-btn-hover); border-color: var(--accent-btn-hover); color: var(--accent-btn-ink); }
.contact-form button[type="submit"]:disabled {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
  opacity: 1;
}
.contact-form.is-sending button[type="submit"] {
  background: var(--accent-btn);
  border-color: var(--accent-btn);
  color: var(--accent-btn-ink);
  opacity: 0.7;
  cursor: progress;
}

/* Thank-you panel, shown in place of the fields */
.contact-form.is-thanked { align-content: center; }
.form-thanks {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 12px;
  animation: fadeUp 0.5s var(--ease) both;
}
.thanks-mark { width: 56px; height: 56px; margin-bottom: 6px; }
.thanks-mark circle { fill: var(--accent-wash); }
.thanks-mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: drawCheck 0.5s 0.25s var(--ease) forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.contact .contact-form .thanks-title { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3; color: var(--ink); }
.contact .contact-form .thanks-sub { color: var(--ink-soft); }

/* ==========================================================================
   v21 — hero portrait motion
   Load: the arch rises into view from the bottom while the photo settles from a slight zoom.
   Hover (mouse devices only): the terracotta tint fades out to reveal the original
   black-and-white photo, with a gentle zoom. Reduced-motion users get the end states instantly.
   ========================================================================== */
.hero-portrait.fade-up {
  opacity: 1;
  animation: archReveal 1.1s 0.2s cubic-bezier(0.65, 0, 0.35, 1) backwards;
}
@keyframes archReveal {
  from { clip-path: inset(100% -40px -60px -40px); }   /* negative sides/bottom keep the shadow */
  to   { clip-path: inset(0 -40px -60px -40px); }
}
.hero-portrait { transition: background-color 0.7s var(--ease); }
.hero-portrait img {
  animation: portraitSettle 1.8s 0.2s var(--ease) backwards;
  transition: transform 0.8s var(--ease);
}
@keyframes portraitSettle {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}
@media (hover: hover) {
  .hero-portrait:hover { background-color: #F7F2EC; }     /* multiply over near-white = the original photo */
  .hero-portrait:hover img { transform: scale(1.04); }
}

/* ==========================================================================
   v22 — sitemap footer: brand + Selected work + More work + Menu, then © and language links
   ========================================================================== */
.site-footer { padding-block: clamp(48px, 6vw, 72px) 32px; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 24px;
  align-items: start;
  justify-content: stretch;
}
.footer-brand { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; justify-items: start; }
@media (min-width: 960px) {
  .site-footer .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
.footer-brand p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 30ch; }
.footer-brand .footer-social { margin-left: -5px; }

.footer-head {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-col a:hover,
.footer-col a[aria-current="page"] { color: var(--accent); }

.site-footer .footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-lang { display: flex; gap: 16px; }
.footer-lang a { color: var(--ink-soft); text-decoration: none; }
.footer-lang a:hover { color: var(--accent); }
.footer-lang a[aria-current="true"] { color: var(--ink); font-weight: 600; }

/* v22.1 — two-column footer (below 960px): headings share a height so both lists start level,
   even when a Spanish heading wraps to two lines */
@media (max-width: 959px) {
  .footer-head { min-height: 2.9em; display: flex; align-items: flex-end; }
}
@media (max-width: 959px) {
  .footer-head { line-height: 1.4; min-height: 2.8em; }   /* two lines = exactly the reserved height */
}

/* v23 — footer on white (surface token, so dark mode gets the matching dark panel) */
.site-footer { background: var(--surface); }

/* v24 — case-study titles on the homepage (Selected work list + More work cards) in orange.
   Hover deepens them (accent-ink), alongside the existing white card / border lift. */
.work-item h3,
.more-item h3 { color: var(--accent); }
.work-item:hover h3,
.more-item:hover h3 { color: var(--accent-ink); }

/* ==========================================================================
   v25 — mobile menu: burger in the header, bottom sheet with nav, language switcher and LinkedIn
   ========================================================================== */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle:hover { color: var(--accent); }

@media (max-width: 600px) {
  .site-header .wrap { height: 64px; flex-wrap: nowrap; padding-block: 0; }
  .site-header .nav,
  .site-header .lang,
  .site-header .header-social { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
}

html.sheet-open { overflow: hidden; }

.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 88dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 -16px 48px -24px rgba(23, 19, 15, 0.35);
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet[open] { animation: sheetUp 0.32s var(--ease) both; }
.sheet.is-closing { animation: sheetDown 0.24s ease-in both; }
.sheet::backdrop { background: rgba(23, 19, 15, 0.42); animation: sheetFadeIn 0.32s ease both; }
.sheet.is-closing::backdrop { animation: sheetFadeOut 0.24s ease both; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { from { transform: none; } to { transform: translateY(100%); } }
@keyframes sheetFadeIn { from { opacity: 0; } }
@keyframes sheetFadeOut { to { opacity: 0; } }

.sheet-inner { padding: 10px 24px calc(28px + env(safe-area-inset-bottom)); }
.sheet-handle { width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 4px; background: var(--line); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sheet-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.sheet-close:hover { color: var(--accent); }

.sheet-nav ul { list-style: none; margin: 0; padding: 0; }
.sheet-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.sheet-nav a .arrow { font-family: var(--font-body); font-size: 1.1rem; color: var(--muted); }
.sheet-nav a:hover,
.sheet-nav a[aria-current="page"],
.sheet-nav a.is-active { color: var(--accent); }
.sheet-nav a[aria-current="page"] .arrow,
.sheet-nav a.is-active .arrow { color: var(--accent); }

.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.sheet-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}
.sheet-linkedin:hover { color: var(--accent); }
.sheet .lang { order: 0; margin-left: 0; font-size: 0.85rem; }
.sheet .lang a { padding: 7px 14px; }

/* v26 — bottom sheet: 70% of the viewport, no label/dividers/arrows, icon-only LinkedIn,
   generous space at the base so mobile browser controls never cover anything */
.sheet { height: 70vh; height: 70dvh; max-height: none; }
.sheet-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 24px calc(96px + env(safe-area-inset-bottom));
}
.sheet-top { justify-content: flex-end; margin-bottom: 8px; }
.sheet-nav a { border-bottom: 0; padding: 12px 0; font-size: 1.8rem; }
.sheet-foot { margin-top: auto; padding-top: 24px; }
.sheet-linkedin { width: 44px; height: 44px; justify-content: center; margin-left: -10px; gap: 0; }
.sheet-linkedin svg { width: 24px; height: 24px; }

/* v26.1 — more breathing room between the sheet's menu links */
.sheet-nav a { padding: 18px 0; }

/* v26.2 — 70% is a minimum, not a cap: short phones (e.g. iPhone SE) grow the sheet to fit
   rather than scrolling the LinkedIn/language row out of view */
.sheet { height: auto; min-height: 70vh; min-height: 70dvh; max-height: 92vh; max-height: 92dvh; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet-inner { flex: 1 0 auto; min-height: 0; }

/* v27 — supporting text at 14px on mobile. Headings, buttons, menus and testimonial quotes keep
   their sizes. Form inputs stay at 16px: below that, iOS Safari zooms the page when you tap in. */
@media (max-width: 600px) {
  .hero-banner .hero-sub,
  .hero-banner .hero-meta,
  .lang-note,
  .statement .aside,
  .work-desc,
  .more-item p,
  .cap li,
  .footnote,
  .book p,
  .contact p,
  .contact .contact-form .form-note,
  .contact .contact-form .form-status,
  .contact .contact-form .thanks-sub,
  .field label,
  .cs-standfirst,
  .cs-body,
  .cs-body .lead-in,
  .deliverable p,
  .cs-meta dd,
  .quote-card figcaption,
  .footer-brand p,
  .footer-col a,
  .site-footer .footer-base { font-size: 14px; }
}

/* ==========================================================================
   v28 — typeface: Inter Tight (bold, Helvetica-style) for display type; Inter for body.
   Replaces Fraunces. Weights: headings bold, quotes medium so long quotes stay readable.
   ========================================================================== */
:root { --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; font-variation-settings: normal; }
.hero h1, .hero-banner h1 { letter-spacing: -0.045em; line-height: 1.02; }
.hero h1 em { font-variation-settings: normal; font-weight: 700; }
.wordmark { font-weight: 700; letter-spacing: -0.035em; }
.statement .lead { font-weight: 600; letter-spacing: -0.03em; }
.work-item h3, .more-item h3, .cs-hero h1, .contact h2 { letter-spacing: -0.035em; }
.quote-card blockquote, .pull { font-weight: 500; letter-spacing: -0.015em; }
.contact .contact-form .thanks-title { font-weight: 600; letter-spacing: -0.02em; }
.sheet-nav a { font-weight: 600; letter-spacing: -0.025em; }
.label, .cs-eyebrow, .footer-head, .sheet-title { font-family: var(--font-body); }

/* ==========================================================================
   v29 — case-study photo galleries + real book cover
   ========================================================================== */
.cs-media { padding-block: 8px clamp(28px, 4vw, 48px); }
.media-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .media-grid { grid-template-columns: var(--cols, 1fr 1fr); } }
.cs-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  max-width: 100%;
}
.cs-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-body .results { margin-top: 4px; }
.cs-body .result p { margin: 0; color: var(--ink); font-size: 0.98rem; line-height: 1.5; }

.book-cover-img { margin: 0; width: 100%; max-width: 200px; }
.book-cover-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
}
@media (max-width: 799px) { .book-cover-img { max-width: 160px; } }
@media (max-width: 600px) { .cs-body .result p { font-size: 14px; } }

/* ==========================================================================
   v30 — testimonial size on mobile, site-wide scroll reveal, dark-mode groundwork
   ========================================================================== */
@media (max-width: 600px) {
  .quote-card blockquote { font-size: 16px; line-height: 1.55; letter-spacing: -0.005em; }
}

/* Sections rise gently; items inside rows follow in sequence (capped so nothing waits long) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(min(var(--i, 0), 3) * 90ms);
}
.reveal-item.in { opacity: 1; transform: none; }
.more-item.reveal-item { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.2s var(--ease); }
.more-item.reveal-item.in:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-item { opacity: 1; transform: none; transition: none; }
}

/* Native controls (scrollbars, textarea grip, autofill) follow the theme */
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }

/* ==========================================================================
   v31 — dark-mode audit fixes
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  /* Hero: a shade lighter than the page plus a hairline, so the banner reads as its own band */
  :root:not([data-theme="light"]) .hero-banner { --hb-bg: #201915; border-bottom: 1px solid var(--line); }

  /* Photos: take the glare off on a dark page; white-background product shots most of all */
  :root:not([data-theme="light"]) .cs-figure img,
  :root:not([data-theme="light"]) .book-cover-img img,
  :root:not([data-theme="light"]) .about-photo img { filter: brightness(0.92); }
  :root:not([data-theme="light"]) .cs-figure img[src*="hot-front"],
  :root:not([data-theme="light"]) .cs-figure img[src*="hot-back"] { filter: brightness(0.8) contrast(1.05); }

  /* Mobile menu sheet: lifted surface, hairline top edge and a deeper backdrop */
  :root:not([data-theme="light"]) .sheet { background: var(--surface-2); border-top: 1px solid var(--line); box-shadow: none; }
  :root:not([data-theme="light"]) .sheet::backdrop { background: rgba(0, 0, 0, 0.62); }
}

/* ==========================================================================
   v32 — no section dividers; a consistent 60px gap between sections on every page
   (list separators, card outlines and the sticky-header edge stay)
   ========================================================================== */
:root { --section-gap: 60px; }
section,
section.tight { padding-block: calc(var(--section-gap) / 2); }

/* Coloured hero keeps its inner padding; the content after it starts a full gap below */
.hero-banner + section { padding-top: var(--section-gap); }
main > section:last-child { padding-bottom: var(--section-gap); }
hr.rule { display: none; }

/* Case studies and About */
.cs-hero { padding-bottom: calc(var(--section-gap) / 2); }
.cs-meta { border-block: 0; padding-block: calc(var(--section-gap) / 2); }
.cs-block { border-bottom: 0; padding-block: calc(var(--section-gap) / 2); }
.cs-media { padding-block: calc(var(--section-gap) / 2); }
.cs-section-label { padding-top: calc(var(--section-gap) / 2); }
.cs-next { border-top: 0; padding-block: calc(var(--section-gap) / 2) var(--section-gap); }

/* Footer: the white band needs no rule above it, and the © row no rule either */
.site-footer { border-top: 0; }
.site-footer .footer-base { border-top: 0; padding-top: 0; margin-top: 40px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-banner { border-bottom: 0; }
}

/* ==========================================================================
   v33 — client logos on the homepage (Selected work + More work)
   Every logo sits in the same 120×60 box: wordmarks fill the width, the round #1 mark
   is capped by the height so it doesn't dominate. Dark mode turns the dark wordmarks light.
   ========================================================================== */
.client-logo { display: block; width: 120px; height: 60px; object-fit: contain; }
.work-head { align-items: flex-start; }
.work-client { flex-shrink: 0; line-height: 0; }
.work-client .client-logo { object-position: right center; }
.more-item h3 { line-height: 0; }
.more-item h3 .client-logo { object-position: left center; }
@media (max-width: 600px) {
  .client-logo { width: 104px; height: 52px; }
  .work-client .client-logo { object-position: left center; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .client-logo:not(.logo-keep) { filter: invert(1) hue-rotate(180deg); }
}

/* v33.1 — keep every Selected work logo on the right on wider screens; the headline wraps beside it */
@media (min-width: 701px) {
  .work-head { flex-wrap: nowrap; gap: 24px; }
  .work-head h3 { flex: 1 1 auto; min-width: 0; }
}

/* v34 — client logos at the top of every case study page (larger than on the homepage) */
.cs-client { margin: 4px 0 22px; line-height: 0; }
.cs-logo-title { margin: 4px 0 22px; line-height: 0; }
.cs-client .client-logo,
.cs-logo-title .client-logo { width: 200px; height: 88px; object-position: left center; }
@media (max-width: 600px) {
  .cs-client .client-logo,
  .cs-logo-title .client-logo { width: 156px; height: 68px; }
}

/* ==========================================================================
   v35 — page heroes animate in; portrait motion on touch screens
   About and case study heroes use the same staggered fade-up as the homepage
   (classes set in the build). Touch screens have no hover, so site.js shows the
   original photo briefly once the arch is up, and a tap toggles it.
   ========================================================================== */
@media (hover: none) {
  .hero-portrait { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .hero-portrait.show-original { background-color: #F7F2EC; }
  .hero-portrait.show-original img { transform: scale(1.04); }
}
