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

:root {
  --bg: #EBEBEB;
  --white: #fff;
  --black: #000;
  --ink60: rgba(0,0,0,.6);
  --ink40: rgba(0,0,0,.4);
  --ink20: rgba(0,0,0,.2);
  --ink10: rgba(0,0,0,.1);
  --gutter: 40px;
}
@media (max-width: 768px) { :root { --gutter: 24px; } }

html { background: var(--bg); color: var(--black); -webkit-font-smoothing: antialiased; }

body {
  /* SF Pro Text when installed; other Apple devices fall back to the system SF */
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: #000; color: #fff; }

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

main { flex: 1; }

/* ── NAV ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}
.logo img { height: 22px; width: auto; display: block; }

nav { display: flex; gap: 32px; }
nav a { font-size: 14px; color: var(--ink40); transition: color .15s; }
nav a:hover, nav a.active { color: var(--black); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.burger span { display: block; width: 24px; height: 1px; background: #000; transition: transform .2s, opacity .2s; }

.mobile-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--ink10);
  padding: 24px 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 100;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 28px; letter-spacing: -0.02em; font-weight: 400; }

/* ── FOOTER ── a short line, then large links to email, Instagram and LinkedIn */
footer {
  padding: 72px 40px 28px; margin-top: 96px; border-top: 1px solid var(--ink10);
}
.footer-lede { font-size: 15px; color: var(--ink60); margin-bottom: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px clamp(28px, 4.5vw, 72px); }
.footer-links a {
  font-size: clamp(36px, 5.2vw, 84px); letter-spacing: -0.045em; line-height: 1; color: var(--black); transition: color .2s;
}
.footer-links a::after { content: '↗'; display: inline-block; font-size: .42em; letter-spacing: 0; margin-left: .15em; vertical-align: top; transform: translateY(.18em); transition: transform .3s cubic-bezier(.2,.7,.1,1); }
.footer-links a:hover { color: var(--ink40); }
.footer-links a:hover::after { transform: translate(.12em, .06em); }
html.olive .footer-links a:hover { color: #fff; }
html.olive footer { border-top-color: #fff; }  /* About: a white line above the footer on the olive page */
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 110px); }
.footer-base p, .footer-base a { font-size: 13px; color: var(--ink40); transition: color .15s; }
.footer-base a:hover { color: var(--black); }

/* ── PAGE WRAP ── */
.page { padding: 0 40px; }

/* ── SECTION ── */
.section-header {
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--ink10);
}
.section-header h1 {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ── HOME HERO ── */
.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 72px 24px 0;
}
/* ── HERO LOGO INTRO ── */
/* Two copies of the logo, clipped: .hl-word = "STUDY", .hl-mark = the circled SI */
.hero-logo { position: relative; width: 100%; aspect-ratio: 2961 / 628; }
.hero-logo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hl-word { clip-path: inset(0 11.2% 0 0); }
.hl-mark { clip-path: inset(0 0 0 88.8%); transform-origin: 94.5% 26%; }
.hl-sheen {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(logo-black.png) 0 0 / 100% 100% no-repeat;
          mask: url(logo-black.png) 0 0 / 100% 100% no-repeat;
  background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.6) 50%, transparent 60%);
  background-size: 300% 100%;
  background-position: 100% 0;
  opacity: 0;
}

/* 1 — Sheen: logo fades in, a soft light passes across it */
.intro-sheen .hl-word, .intro-sheen .hl-mark { animation: fade-in .8s ease both; }
.intro-sheen .hl-sheen { animation: sheen 1.6s .6s cubic-bezier(.4,0,.2,1) both; }

/* 2 — SI spin: word settles, the mark rolls in with one full turn */
.intro-spin .hl-word { animation: rise .9s cubic-bezier(.2,.7,.1,1) both; }
.intro-spin .hl-mark { animation: spin-in 1.5s .4s cubic-bezier(.2,.7,.1,1) both; }

/* 3 — SI late: word first, the mark arrives a beat later */
.intro-late .hl-word { animation: rise .9s cubic-bezier(.2,.7,.1,1) both; }
.intro-late .hl-mark { animation: pop-in .6s 1.1s cubic-bezier(.3,1.5,.5,1) both; }

/* 4 — Wipe: word is drawn left to right, then the mark turns once */
.intro-wipe .hl-word { animation: wipe 1.2s cubic-bezier(.7,0,.2,1) both; }
.intro-wipe .hl-mark { animation: spin-in 1.2s 1s cubic-bezier(.2,.7,.1,1) both; }

/* 5 — Drift and 6 — Follow: logo fades in, then script.js moves the mark */
.intro-drift .hl-word, .intro-drift .hl-mark,
.intro-follow .hl-word, .intro-follow .hl-mark { animation: fade-in .8s ease both; }
.intro-drift .hl-mark, .intro-follow .hl-mark { will-change: transform; }

/* Where the moving mark crosses the letters it turns gray:
   .hl-overlap is masked to the letter shapes of STUDY, and holds a gray mark
   that script.js moves together with .hl-mark */
.hl-overlap {
  display: none; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(logo-black.png) 0 0 / 100% 100% no-repeat;
          mask: url(logo-black.png) 0 0 / 100% 100% no-repeat;
  clip-path: inset(0 11.2% 0 0);
}
.intro-drift .hl-overlap, .intro-follow .hl-overlap { display: block; }

/* Same idea over the studio text: a gray copy of the text, cut to the shape of the mark.
   .hl-text-gray moves with the mark; .hl-text-inner undoes that move so the copy stays
   exactly on top of the real text (script.js sets both transforms and the copy's position). */
.hl-text-gray {
  display: none; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(logo-black.png) 0 0 / 100% 100% no-repeat;
          mask: url(logo-black.png) 0 0 / 100% 100% no-repeat;
  clip-path: inset(0 0 0 88.8%);
  transform-origin: 94.5% 26%;
}
.intro-drift .hl-text-gray, .intro-follow .hl-text-gray { display: block; }
.hl-text-inner { position: absolute; inset: 0; transform-origin: 94.5% 26%; }
.hl-text-inner .studio-statement { position: absolute; padding: 0; }
.hl-text-inner .statement { color: #BFBFBF; }
.hl-mark-gray {
  position: absolute; inset: 0;
  background: #BFBFBF;
  -webkit-mask: url(logo-black.png) 0 0 / 100% 100% no-repeat;
          mask: url(logo-black.png) 0 0 / 100% 100% no-repeat;
  clip-path: inset(0 0 0 88.8%);
  transform-origin: 94.5% 26%;
}

/* 7 — Roll: the mark rolls in like a wheel from the left edge, then the word appears.
   Circle radius ≈ 5.5% of logo width, so travelling 95% takes ≈ 990° of turn. */
.intro-roll .hl-mark { animation: roll-in 2.2s cubic-bezier(.25,.6,.2,1) both; }
.intro-roll .hl-word { animation: rise .9s 1.9s cubic-bezier(.2,.7,.1,1) both; }
@keyframes roll-in { from { transform: translateX(-95%) rotate(-990deg); } }

@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8%); } }
@keyframes sheen {
  0% { opacity: 1; background-position: 100% 0; }
  90% { opacity: 1; }
  100% { opacity: 0; background-position: 0 0; }
}
@keyframes spin-in { from { opacity: 0; transform: rotate(-360deg) scale(.6); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } }

@media (prefers-reduced-motion: reduce) {
  .hero-logo * { animation: none !important; }
}

/* Fixed header on home — transparent until scrolled */
body.home header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s;
}
body.home.scrolled header {
  background: var(--bg);
  border-bottom: 1px solid var(--ink10);
}
body.home header .logo {
  opacity: 0;
  transition: opacity 0.4s;
}
body.home.scrolled header .logo {
  opacity: 1;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 14px;
  border: 1px solid var(--ink20);
  border-radius: 999px;
  padding: 10px 20px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #000; color: #fff; border-color: #000; }

/* ── SELECTED WORK (home) ── */
.selected-work { padding-bottom: 96px; scroll-margin-top: 24px; }
html { scroll-behavior: smooth; }
.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--ink10);
  padding-top: 24px;
  margin-bottom: 0;
}
.list-head .label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink40); }
.list-head a { font-size: 12px; color: var(--ink40); transition: color .15s; }
.list-head a:hover { color: var(--black); }

.project-list { border-top: none; }
.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--ink10);
  transition: opacity .15s;
  gap: 16px;
}
.project-row:hover { opacity: .55; }
.project-row-left { display: flex; align-items: baseline; gap: 24px; min-width: 0; }
.project-num { font-size: 13px; color: var(--ink30, rgba(0,0,0,.3)); width: 24px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.project-name { font-size: clamp(18px,2.5vw,24px); letter-spacing: -0.02em; }
.project-cat { font-size: 13px; color: var(--ink40); margin-left: 16px; }
.project-year { font-size: 13px; color: var(--ink30,rgba(0,0,0,.3)); flex-shrink:0; font-variant-numeric: tabular-nums; }
.arrow { font-size: 18px; color: rgba(0,0,0,.2); transition: all .15s; flex-shrink: 0; }
.project-row:hover .arrow { color: rgba(0,0,0,.6); transform: translateX(4px); }

/* ── SELECTED WORK (home, large list) ── */
.selected-work .label { font-size: 15px; color: var(--ink60); }
.sw-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--ink10);
  transition: opacity .3s;
}
.sw-name {
  font-size: clamp(30px, 4.4vw, 68px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
  transition: color .3s;
}
.sw-meta { font-size: 13px; color: var(--ink40); white-space: nowrap; display: flex; gap: 24px; }
.sw-meta span { font-variant-numeric: tabular-nums; }
.selected-work > .label { margin-bottom: 16px; }
.sw-row:hover .sw-name { color: var(--hover); }
.home-grid .sw-row:hover .sw-name { color: inherit; }

/* Project covers (images/_home/<folder>.jpg, made by tools/sync_from_tool.py) */
.sw-media { display: block; overflow: hidden; background: var(--ink10); border-radius: 8px; }
.sw-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.1,1); }
:root { --lock-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 11'%3E%3Cpath d='M2 4.5V3a2.5 2.5 0 0 1 5 0v1.5h1a1 1 0 0 1 1 1V10a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V5.5a1 1 0 0 1 1-1h1zm1 0h3V3a1.5 1.5 0 0 0-3 0v1.5z'/%3E%3C/svg%3E"); }
.sw-row { position: relative; }

/* Homepage projects: a symmetric two-column grid of covers (index.html sets class="home-grid" on <html>).
   The page stays light all the way down. */
html:not(.home-grid) .sw-media { display: none; }
.home-grid .sw-list { display: grid; grid-template-columns: 1fr 1fr; gap: 64px clamp(24px, 3vw, 48px); }
/* Caption under each cover, at reading size: name in black, sector in gray beside it, year on the right */
.home-grid .sw-row { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 0; align-items: baseline; padding: 0; border: 0; }
.home-grid .sw-media { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 4 / 3; margin-bottom: 8px; }
.home-grid .sw-name { grid-column: 1; grid-row: 2; font-size: 15px; letter-spacing: -0.01em; line-height: 1.4; }
.home-grid .sw-meta { grid-column: 2; grid-row: 2; display: flex; justify-content: space-between; gap: 14px; font-size: 15px; line-height: 1.4; }
@media (hover: hover) { .home-grid .sw-row:hover .sw-media img { transform: scale(1.03); } }
/* the floating SI can travel over the projects: keep it above them, and let clicks pass through it */
.home-grid .hero-logo { z-index: 20; }
.hl-mark, .hl-overlap, .hl-text-gray, .hl-sheen { pointer-events: none; }
/* SI over a project image: the logo is set in 'difference', so the circle inverts the photo under it;
   elsewhere it behaves as usual (black, gray over the letters and the text) */
.home-grid.si-invert .hero-logo.si-on-image { filter: invert(1); mix-blend-mode: difference; }  /* only over an image; over the text it keeps the gray of the normal mark */
@media (max-width: 768px) {
  .home-grid .sw-list { grid-template-columns: 1fr; gap: 40px; }

}



/* Page colour changes (the About page's olive) fade in */
html { --hover: #BFBFBF; transition: background-color .6s ease, color .6s ease; }
header .logo img, .burger span, .sw-row { transition: filter .6s, background-color .6s, border-color .6s; }

/* ── STUDIO STATEMENT (home) ── */
.studio-statement { padding: 40px 0 180px; }
.studio-statement .statement {
  max-width: 18em;
  font-size: clamp(34px, 5.6vw, 88px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: pretty;
}
.studio-statement .statement p + p { margin-top: .6em; }

/* ── APPROACH STRIP ── */
.approach-strip {
  padding: 32px 0 96px;
  border-top: 1px solid var(--ink10);
}
.approach-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 48px 80px; }
.approach-grid h2 { font-size: clamp(44px,6vw,64px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
.approach-right { display: flex; flex-direction: column; justify-content: center; }
.approach-right p { font-size: 14px; color: var(--ink60); line-height: 1.7; }
.approach-right a { margin-top: 24px; font-size: 14px; color: var(--ink40); transition: color .15s; }
.approach-right a:hover { color: #000; }

/* ── WORK PAGE ── */
.work-header {
  padding: 48px 0 48px;
  border-bottom: 1px solid var(--ink10);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.work-header h1 { font-size: clamp(48px,8vw,72px); font-weight: 400; letter-spacing: -0.04em; }
.work-header .count { font-size: 13px; color: rgba(0,0,0,.3); padding-bottom: 6px; }

/* ── ABOUT PAGE v2 (text + services) ── */
.about-text { padding: 64px 0 160px; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.3; }
.about-text p:not(.lead) { max-width: 30em; }
.about-text .lead {
  max-width: 18em; margin-bottom: 1.4em;
  font-size: clamp(34px, 5.6vw, 88px); letter-spacing: -0.045em; line-height: 1.02; text-wrap: pretty;
}
.about-text p + p:not(.lead) { margin-top: 1em; }
.about-text .lead + p { margin-top: 0; }
.about-text { position: relative; }


/* Services: a small eyebrow title, then the services as one sentence with footnote numbers.
   Hovering (or tapping) a service fades the rest and shows its text as a footnote under the sentence. */
.services { position: relative; padding-bottom: 140px; }
/* the title is a small eyebrow, like "Process" below */
.svc-big { font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--ink60); margin: 0 0 20px; }
.svc-list {
  position: relative; padding-bottom: 180px; max-width: 14em;
  font-size: clamp(38px, 6.4vw, 104px); letter-spacing: -0.045em; line-height: 1.02;
}
.svc { display: inline; cursor: default; transition: color .25s; }
/* the number's top lines up with the top of the capitals: raised by (cap 0.7em − its own cap 0.14em) = 0.56em of the name = 2.8em of the number */
.svc-num { font-size: .2em; letter-spacing: 0; position: relative; top: -2.8em; margin-left: .12em; margin-right: .1em; font-variant-numeric: tabular-nums; }
.svc-title { display: inline; font: inherit; letter-spacing: inherit; }
/* the number comes before the punctuation: "Brand Strategy⁰¹," — the "and" sits outside the services, so it never highlights */
.svc-and { letter-spacing: inherit; }
/* Hover: the service under the cursor turns white */
.svc:hover { color: #fff; }
/* before the page has turned olive, white would vanish on the light gray: use gray there */
html:not(.olive) .svc:hover { color: var(--ink40); }
html:not(.olive) .svc-desc { color: var(--black); }
.svc-body {
  position: absolute; left: 0; bottom: 0; width: min(520px, 46vw);
  opacity: 0; transition: opacity .25s; pointer-events: none; letter-spacing: 0;
}

.svc-desc { font-size: 15px; line-height: 1.5; color: #fff; }  /* the footnote is white, like the service it belongs to */
.svc:hover .svc-body { opacity: 1; }

/* The About page turns olive once the services reach the middle of the screen (script.js adds .olive to <html>).
   The type stays black; the olive is a touch lighter than first tried so black text reads well on it. */
html.olive {
  --bg: #7E7C4E;
  --ink60: rgba(0,0,0,.68); --ink40: rgba(0,0,0,.55);
  --ink20: rgba(0,0,0,.28); --ink10: rgba(0,0,0,.16);
}

/* Phones: no hover, so tapping a service opens its footnote under the sentence (script.js toggles .open);
   until one is open, a short hint sits there instead */
.svc.open { color: #fff; }
html:not(.olive) .svc.open { color: var(--ink40); }
.svc.open .svc-body { opacity: 1; }
.svc-notes { display: none; }
@media (max-width: 768px) {
  .about-text { padding: 32px 0 96px; }
  .services { padding-bottom: 96px; }
  .svc-list { padding-bottom: 200px; }
  .svc { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .services .svc:hover:not(.open) { color: inherit; }   /* a tap leaves no sticky hover */
  .services .svc:hover:not(.open) .svc-body { opacity: 0; }
  .svc-body { width: 100%; bottom: auto; top: calc(100% - 200px + 28px); }
  .svc-list::after {
    content: "Tap a service to read about it"; position: absolute; left: 0; top: calc(100% - 200px + 28px);
    font-size: 15px; letter-spacing: 0; line-height: 1.5; color: var(--ink60); transition: opacity .25s;
  }
  .svc-list:has(.svc.open)::after { opacity: 0; }
}

/* ── ABOUT PAGE ── */
.about-intro { padding: 64px 0; border-bottom: 1px solid var(--ink10); max-width: 700px; }
.about-intro p.big { font-size: clamp(20px,2.8vw,30px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.35; }
.about-intro p.body { margin-top: 24px; font-size: 15px; color: var(--ink60); line-height: 1.7; }

.about-cols { padding: 64px 0; border-bottom: 1px solid var(--ink10); display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; max-width: 900px; }
.about-col .label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink40); margin-bottom: 24px; }
.about-col p { font-size: 14px; color: rgba(0,0,0,.7); line-height: 1.75; }
.about-col p + p { margin-top: 16px; }

.process { padding: 64px 0; border-bottom: 1px solid var(--ink10); }
.process .label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink40); margin-bottom: 48px; }
.process-list { max-width: 900px; }
.process-item {
  display: grid;
  grid-template-columns: 64px 1fr 2fr;
  gap: 0 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--ink10);
  align-items: start;
}
.process-item:last-child { border-bottom: none; }
.process-num { font-size: 13px; color: rgba(0,0,0,.3); font-variant-numeric: tabular-nums; }
.process-title { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.process-desc { font-size: 14px; color: var(--ink60); line-height: 1.7; }

.about-cta {
  padding: 64px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.about-cta h2 { font-size: clamp(22px,3vw,32px); font-weight: 400; letter-spacing: -0.03em; max-width: 360px; }

/* ── PROCESS (about) ── */
.process2 { padding: 40px 0 120px; }
.process2 > .label { font-size: 15px; color: var(--ink60); margin-bottom: 20px; }
.process-lede {
  max-width: 22em; font-size: clamp(28px, 3.6vw, 56px); letter-spacing: -0.04em; line-height: 1.06; text-wrap: pretty;
}
.process-lede span { color: rgba(0,0,0,.28); }
:root { --pm-discovery: #F0524F; --pm-creation: #1F6FEB; --pm-implementation: #16A06A; }

.process-map { margin-top: 72px; }
.process-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.process-map svg * { vector-effect: non-scaling-stroke; }
.pm-discovery { --pm-color: var(--pm-discovery); }
.pm-creation { --pm-color: var(--pm-creation); }
.pm-implementation { --pm-color: var(--pm-implementation); }
.pm-shape { fill: none; stroke: var(--pm-color); stroke-width: 1.5; }
.pm-stage text { font-size: 20px; letter-spacing: -0.01em; fill: #000; }
.pm-seg { stroke: var(--pm-color); stroke-width: 1.5; }
.pm-loop { fill: none; stroke: var(--pm-color); stroke-width: 1; stroke-opacity: .6; }
.pm-dot { fill: var(--pm-color); }

/* Draw-in, left to right (script.js adds .drawn when the diagram scrolls into view) */
.process-map :is(.pm-shape, .pm-seg, .pm-loop) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.process-map :is(.pm-stage text, .pm-dot, .pm-phase) { opacity: 0; transition: opacity .6s ease; }
.process-map.drawn .pm-shape { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.5,0,.2,1) calc(var(--i) * .35s); }
.process-map.drawn .pm-stage text { opacity: 1; transition-delay: calc(.6s + var(--i) * .35s); }
.process-map.drawn .pm-seg { stroke-dashoffset: 0; transition: stroke-dashoffset .6s linear calc(1.2s + var(--i) * .6s); }
.process-map.drawn .pm-dot { opacity: 1; transition-delay: calc(1.3s + var(--i) * .35s); }
.process-map.drawn .pm-loop { stroke-dashoffset: 0; transition: stroke-dashoffset .8s ease calc(1.5s + var(--i) * .35s); }
.process-map.drawn .pm-phase { opacity: 1; }
.process-map.drawn .pm-phase:nth-child(2) { transition-delay: .35s; }
.process-map.drawn .pm-phase:nth-child(3) { transition-delay: .7s; }
.process-map.drawn .pm-phase:nth-child(4) { transition-delay: 1.05s; }
@media (prefers-reduced-motion: reduce) {
  .process-map * { stroke-dashoffset: 0 !important; opacity: 1 !important; transition: none !important; }
}

.pm-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 0; padding-top: 28px; border-top: 1px solid var(--ink20); }
.pm-tag { font-size: 13px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--ink60); }
.pm-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pm-phase h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
.pm-phase p:not(.pm-tag) { font-size: 15px; color: var(--ink60); line-height: 1.5; }

@media (max-width: 768px) {
  .process-map { margin-top: 56px; }
  .pm-stage text { font-size: 30px; }
  .pm-phases { grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-top: 32px; }
}

/* ── CASE STUDY ── */
.cs-cover {
  padding: 96px 40px 80px;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cs-cover .eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.4); margin-bottom: 24px; }
.cs-cover h1 { font-size: clamp(44px,8vw,88px); font-weight: 400; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.cs-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; font-size: 14px; color: rgba(255,255,255,.5); }

.cs-overview { padding: 64px 0; border-bottom: 1px solid var(--ink10); max-width: 720px; }
.cs-overview .label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink40); margin-bottom: 24px; }
.cs-overview p { font-size: 18px; font-weight: 400; line-height: 1.65; color: rgba(0,0,0,.8); }

.cs-details { padding: 48px 0; border-bottom: 1px solid var(--ink10); display: flex; flex-wrap: wrap; gap: 40px 60px; max-width: 900px; }
.cs-detail { min-width: 120px; }
.cs-detail .label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink40); margin-bottom: 12px; }
.cs-detail p, .cs-detail li { font-size: 15px; list-style: none; }
.cs-detail li + li { margin-top: 4px; }

.cs-images { padding: 64px 0; border-bottom: 1px solid var(--ink10); }
.cs-img-main { width: 100%; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: #111; }
.cs-img-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.cs-img-sq { width: 100%; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: #111; }
.cs-img-sq img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-img-single { margin-top: 16px; width: 100%; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: #111; }
.cs-img-single img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-confidential { padding: 64px 0; border-bottom: 1px solid var(--ink10); }
.cs-confidential p { font-size: 14px; color: var(--ink40); font-style: italic; }

/* ── CASE STUDY GALLERY ── */
.cs-gallery { padding: 64px 0; border-bottom: 1px solid var(--ink10); display: flex; flex-direction: column; gap: 16px; }
.cs-gallery img.full { width: 100%; height: auto; display: block; border-radius: 4px; }
.cs-gallery-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs-gallery-pair img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 4px; background: #111; }
.cs-gallery-text {
  padding: 32px 0;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: rgba(0,0,0,.7);
  max-width: 600px;
  border-top: 1px solid var(--ink10);
}

/* ── CASE STUDY v2 (light page, image grid, credits) ── */
.cs-head { padding: 72px 0 96px; }
.cs-head h1 {
  font-size: clamp(56px, 10vw, 160px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: .9;
}
.cs-lede {
  margin-top: 56px;
  max-width: 21em;
  font-size: clamp(24px, 3vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: pretty;
}
.cs-facts {
  margin-top: 72px; padding-top: 20px;
  border-top: 1px solid var(--ink10);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 40px;
}
.cs-facts dt, .cs-credits .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink40); margin-bottom: 10px;
}
.cs-facts dd { font-size: 15px; line-height: 1.5; }

.cs-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cs-grid img, .cs-grid video { width: 100%; height: auto; display: block; border-radius: 8px; background: #ddd; }
.cs-grid .g-full { grid-column: 1 / -1; }
.cs-grid .g-half { grid-column: span 6; aspect-ratio: 4 / 3; object-fit: cover; }
/* Edge to edge: breaks out of the page margins to the full window width */
.cs-grid .g-bleed { grid-column: 1 / -1; width: 100vw; max-width: none; margin-left: calc(50% - 50vw); border-radius: 0; }
body.cs main { overflow-x: clip; }
/* Blend: a white background drops into the page colour */
.cs-grid .g-blend { mix-blend-mode: multiply; background: transparent; }
/* Notes take a whole row; the text sits in the left or right half */
.g-note { grid-column: 1 / -1; padding: 96px 0; }
.g-note > * { max-width: min(42%, 34em); }
.g-note--right { padding-left: calc(50% + 8px); }
.g-note--right > * { max-width: 34em; }
.g-note .label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink40); margin-bottom: 16px; }
.g-note p:not(.label) { font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.02em; line-height: 1.35; }

.cs-credits { margin-top: 140px; padding-top: 24px; border-top: 1px solid var(--ink10); }
.credits-list { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 40px; }
.credits-list li { list-style: none; font-size: 15px; color: var(--ink60); line-height: 1.6; }
/* Optional subheading: takes its own row, names follow below it */
.credits-list li.sub { grid-column: 1 / -1; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.credits-list li + li.sub { margin-top: 28px; }
/* Columns: each with its own heading, on the same 4-column grid as the facts */
.credits-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.credits-col { min-width: 0; }
.credits-col .credits-list { margin-top: 0; grid-template-columns: 1fr; gap: 4px; }
.credits-col .credits-list li.sub { margin-bottom: 2px; }
.credits-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink20); transition: border-color .2s ease; }
.credits-links a:hover { border-color: var(--ink); }
.credits-links a::after { content: " ↗"; color: var(--ink40); }

body.cs .cs-next { margin-top: 96px; border-top: 1px solid var(--ink10); padding-top: 24px; }

@media (max-width: 768px) {
  .cs-head { padding: 40px 0 64px; }
  .cs-lede { margin-top: 32px; }
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .credits-list, .credits-cols { grid-template-columns: 1fr; }
  .credits-cols { gap: 32px 24px; }
  .credits-col .credits-list { grid-template-columns: 1fr; }
  .cs-grid { gap: 8px; }
  .cs-grid .g-half { grid-column: 1 / -1; }
  .g-note, .g-note--right { padding: 56px 0; }
  .g-note > * { max-width: none; }
}

/* ── EXTRAS LOOP ── */
.extras-loop { overflow: hidden; padding: 80px 0; border-bottom: 1px solid var(--ink10); }
.extras-track { display: flex; gap: 16px; width: max-content; animation: loop-scroll 90s linear infinite; }
.extras-track:hover { animation-play-state: paused; }
.extras-track img { height: 420px; width: auto; flex-shrink: 0; display: block; border-radius: 4px; }
@keyframes loop-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.cs-next { padding: 64px 0; }
.cs-next .label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink40); margin-bottom: 24px; }
.cs-next a { display: flex; align-items: center; justify-content: space-between; transition: opacity .15s; }
.cs-next a:hover { opacity: .55; }
.cs-next h2 { font-size: clamp(28px,5vw,56px); font-weight: 400; letter-spacing: -0.04em; }
.cs-next .arrow { font-size: 28px; color: rgba(0,0,0,.25); transition: all .2s; }
.cs-next a:hover .arrow { color: rgba(0,0,0,.7); transform: translateX(8px); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 80px; padding: 64px 0; max-width: 900px; }
.contact-left h2 { font-size: clamp(22px,3vw,32px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.3; }
.contact-left p { margin-top: 16px; font-size: 14px; color: var(--ink60); line-height: 1.7; }
.contact-info { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.contact-info .label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink40); margin-bottom: 4px; }
.contact-info p, .contact-info a { font-size: 14px; }
.contact-info a:hover { opacity: .6; }

form { display: flex; flex-direction: column; gap: 28px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink40); }
.form-field input, .form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink20);
  padding: 12px 0;
  font-size: 15px;
  font-family: inherit;
  color: #000;
  outline: none;
  transition: border-color .15s;
  resize: none;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(0,0,0,.3); }
.form-field input:focus, .form-field textarea:focus { border-color: #000; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .home-hero { padding: 80px 16px 0; }
  header { padding: 16px 24px; position: relative; }
  nav { display: none; }
  .burger { display: flex; }
  footer { padding: 48px 24px 24px; margin-top: 64px; }
  .page { padding: 0 24px; }
  .hero { padding: 40px 0 64px; }
  .cs-cover { padding: 64px 24px 48px; }
  .approach-grid, .about-cols, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-item { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; }
  .process-desc { grid-column: 2; }
  .cs-details { grid-template-columns: 1fr 1fr; }
  .project-cat, .project-year { display: none; }
  .sw-meta { display: none; }
  .studio-statement { padding: 24px 0 112px; }
}
[hidden] { display: none !important; }

/* Private projects (see lock.js and tools/build_live.py)
   Homepage: the cover is clear; on hover it blurs and says "Private project". */
.sw-media { position: relative; }
.sw-veil {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.15); opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.sw-veil-t, .lock-eyebrow { display: inline-flex; align-items: center; gap: 7px; }
.sw-veil-t { font-size: 0; color: #fff; }  /* lock icon only; the words stay for screen readers */
.sw-veil-t::before { width: 20px !important; height: 24px !important; }
.sw-veil-t::before, .lock-eyebrow::before {
  content: ""; width: 10px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: var(--lock-icon) center / contain no-repeat; mask: var(--lock-icon) center / contain no-repeat;
}
.is-private .sw-media img { transition: filter .45s ease, transform .45s ease; }
.sw-veil, .is-private .sw-media img { transition-duration: .7s; }
@media (hover: hover) {
  .is-private:hover .sw-media img { filter: blur(18px); transform: scale(1.1); }
  .is-private:hover .sw-veil { opacity: 1; }
}
/* phones: the cover blurs and shows the lock once it scrolls into view (script.js adds .in-view) */
@media (hover: none) { .is-private.in-view .sw-veil { opacity: 1; } .is-private.in-view .sw-media img { filter: blur(18px); transform: scale(1.1); } }

/* Project page on the live site: the blurred cover fills the screen, the name and password field on top in white */
.lock {
  position: relative; height: 100vh; min-height: 520px; overflow: hidden; color: #fff;
  margin: 0 calc(var(--gutter) * -1);
}
.lock-bg { position: absolute; inset: -40px; background: #777 center / cover; filter: blur(36px) saturate(1.1); transform: scale(1.08); }
.lock-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.lock-in { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 72px; }
.lock-eyebrow { font-size: 13px; }
.lock-title { font-size: clamp(56px, 10vw, 160px); font-weight: 400; letter-spacing: -0.045em; line-height: .95; margin: 14px 0 40px; }
.lock-form { display: flex; flex-direction: row; gap: 0; align-items: center; max-width: 420px; border-bottom: 1px solid rgba(255,255,255,.8); }
.lock-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: #fff;
  font: inherit; font-size: 20px; padding: 10px 0; outline: none; letter-spacing: -0.01em;
}
.lock-form input::placeholder { color: rgba(255,255,255,.55); }
.lock-form button {
  border: 0; background: none; color: #fff; font: inherit; font-size: 24px; cursor: pointer; padding: 6px 0 6px 16px;
  transition: transform .2s ease;
}
.lock-form button:hover { transform: translateX(4px); }
.lock-form.busy { opacity: .5; }
.lock-form.shake { animation: lock-shake .4s ease; }
@keyframes lock-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.lock-msg { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.75); min-height: 1.4em; }
main:has(.lock) + footer { margin-top: 0; }

/* ── PHONES, measured on Porto Rocha's case-study pages ──
   images 8px from the screen edge with 8px between them, 8px rounded corners (desktop too),
   text 16px from the edge; facts and credits in one column, the role above the names */
@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .page { padding: 0 16px; }
  header { padding: 16px; }
  footer { padding: 48px 16px 24px; }

  /* home: the statement sits right under STUDY, larger and with more open letter spacing */
  .home-hero { min-height: 0; padding: 76px 16px 0; }
  .studio-statement { padding: 36px 0 72px; }
  .studio-statement .statement, .about-text .lead { font-size: 36px; letter-spacing: -0.025em; line-height: 1.08; }
  .home-grid .sw-list { gap: 28px; }
  .home-grid .sw-row { margin: 0 -8px; padding: 0 8px; }
  .home-grid .sw-media { margin: 0 -8px 8px; }

  /* project page */
  .cs-head { padding: 28px 0 48px; }
  .cs-head h1 { font-size: 18vw; letter-spacing: -0.05em; line-height: .92; }
  .cs-lede { margin-top: 28px; font-size: 26px; letter-spacing: -0.015em; line-height: 1.2; }
  .cs-facts { margin-top: 40px; padding-top: 16px; grid-template-columns: 1fr; gap: 12px; }
  .cs-facts dt { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--black); margin-bottom: 0; line-height: 1.35; }
  .cs-facts dd { font-size: 14px; line-height: 1.35; color: var(--ink60); }

  .cs-grid { gap: 8px; margin: 0 -8px; }
  .g-note, .g-note--right { padding: 40px 8px; }
  .g-note p:not(.label) { font-size: 16px; letter-spacing: .015em; line-height: 1.3; }
  .g-note .label { font-size: 14px; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }

  .cs-credits { margin-top: 64px; padding-top: 16px; }
  .credits-cols { grid-template-columns: 1fr; gap: 12px; }
  .credits-col .label { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--black); margin-bottom: 0; line-height: 1.35; }
  .credits-list { gap: 0; }
  .credits-list li { font-size: 14px; line-height: 1.35; }
  .credits-list li.sub { color: var(--ink40); font-weight: 400; margin-bottom: 4px; }
  .credits-list li + li.sub { margin-top: 24px; }
  body.cs .cs-next { margin-top: 64px; padding-top: 16px; }
}

.cs-mcover { display: none; }

/* Phones, round 2: compact captions, portrait covers, STUDY without the SI in the header,
   and the project page opens on its first image (script.js moves it above the title) */
@media (max-width: 768px) {
  .home-grid .sw-row { row-gap: 0; }
  .home-grid .sw-media { aspect-ratio: 3 / 4; margin-bottom: 6px; }
  .home-grid .sw-name, .home-grid .sw-meta { font-size: 14px; line-height: 1.3; }
  .home-grid .sw-list { gap: 20px; }
  header .logo { overflow: hidden; }
  header .logo img { clip-path: inset(0 11.6% 0 0); }
  /* project page: opens on the homepage cover at 3:4, the name is left out (pages without a cover keep it) */
  .cs-mcover { display: block; width: calc(100% + 16px); aspect-ratio: 3 / 4; object-fit: cover; margin: 4px -8px 0; border-radius: 8px; background: var(--ink10); }
  .cs-mcover + h1 { display: none; }
  .cs-head:has(.cs-mcover) { padding-top: 0; }
  .cs-head:has(.cs-mcover) .cs-lede { margin-top: 28px; }
  /* images marked "3:4 mobile" in the editor */
  .cs-grid .g-m34 { aspect-ratio: 3 / 4; object-fit: cover; }
  .studio-statement { padding-top: 72px; }
  .cs-lede { font-size: 30px; line-height: 1.17; }
}

/* ── Round 3 ── */
/* Footer: the three links large, one under the other, with open letter spacing */
.footer-links { flex-direction: column; gap: 0; }
.footer-links a { font-size: clamp(56px, 9vw, 150px); letter-spacing: -0.025em; line-height: 1.04; align-self: flex-start; }
/* Next project: a larger name */
.cs-next h2 { font-size: clamp(44px, 8vw, 128px); letter-spacing: -0.04em; line-height: 1; }
/* Private page on the live site: the lock screen, then the way on to the next project */
.page > .cs-next { margin-top: 0; }
@media (max-width: 768px) {
  /* the menu opens over the page wherever you are (it used to open at the top of the page, out of view) */
  header { z-index: 100; }
  /* inner pages: the header stays at the top, so the menu button is always within reach */
  body:not(.home) header { position: sticky; top: 0; background: var(--bg); }
  .burger { padding: 14px 10px; margin: -14px -10px; }
  .mobile-menu { position: fixed; top: 0; padding: 76px 16px 28px; z-index: 99; border-top: 0; border-bottom: 1px solid var(--ink10); }
  /* the cover already opens the page: don't show it again further down */
  .cs-grid .g-is-cover { display: none; }
  .cs-next h2 { font-size: 48px; }
}

/* a phone-only cover (<picture> on the homepage) behaves like the plain image */
.sw-media picture { display: contents; }

/* phones: every 3:4 crop keeps the left side of the image (instead of the centre) */
@media (max-width: 768px) {
  .home-grid .sw-media img, .cs-mcover, .cs-grid .g-m34 { object-position: left center; }
}

/* About on phones: the same type system as the project pages
   (opening paragraph = the project lede, running text = project text, labels = credit labels) */
@media (max-width: 768px) {
  .about-text { padding: 28px 0 88px; font-size: 16px; letter-spacing: .015em; line-height: 1.3; }
  .about-text .lead { font-size: 30px; letter-spacing: -0.015em; line-height: 1.17; margin-bottom: 28px; max-width: none; }
  .about-text p + p:not(.lead) { margin-top: 1.3em; }
  .svc-big { font-size: 14px; line-height: 1.3; margin-bottom: 16px; }
  .svc-list { font-size: 30px; letter-spacing: -0.015em; line-height: 1.17; max-width: none; }
  .svc-desc { font-size: 14px; line-height: 1.35; letter-spacing: .01em; }
}

/* Phones: the menu is a rounded card floating 8px from the edges, over a dimmed page */
@media (max-width: 768px) {
  .mobile-menu {
    display: flex; position: fixed; top: 8px; left: 8px; right: 8px; bottom: auto;
    padding: 84px 8px 18px; gap: 0; border: 0; border-radius: 12px;
    background: var(--bg); z-index: 99;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s ease, transform .4s cubic-bezier(.2,.7,.1,1), visibility 0s .4s;
  }
  .mobile-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .4s cubic-bezier(.2,.7,.1,1); }
  .mobile-menu > a { font-size: 44px; letter-spacing: -0.035em; line-height: 1.04; align-self: flex-start; }
  .mm-social { display: flex; gap: 18px; margin-top: 44px; }
  .mm-social a { font-size: 14px; color: var(--ink60); }
  /* links rise in one after another */
  .mobile-menu > a, .mm-social { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s cubic-bezier(.2,.7,.1,1); }
  .mobile-menu.open > a, .mobile-menu.open .mm-social { opacity: 1; transform: none; }
  .mobile-menu.open > a:nth-of-type(1) { transition-delay: .06s; }
  .mobile-menu.open > a:nth-of-type(2) { transition-delay: .12s; }
  .mobile-menu.open .mm-social { transition-delay: .2s; }
  /* the page behind dims; tapping it closes the menu (script.js) */
  body::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.28); z-index: 98; opacity: 0; pointer-events: none; transition: opacity .3s; }
  html.menu-open body::after { opacity: 1; pointer-events: auto; }
  html.menu-open { overflow: hidden; }
  /* the header sits inside the card while it is open */
  html.menu-open header, html.menu-open body.home.scrolled header { background: transparent; border-bottom-color: transparent; }
  html.menu-open body.home header .logo { opacity: 1; }
  header { transition: background .3s, border-color .3s; }
}

/* Project pages: the small labels are gray sentence case at running-text size (no more small capitals) */
.cs-facts dt, .cs-credits .label, .credits-col .label, .g-note .label, .cs-next .label {
  font-size: 16px; text-transform: none; letter-spacing: .015em; line-height: 1.3; color: var(--ink40);
}
.cs-facts dd { font-size: 16px; line-height: 1.3; }
@media (max-width: 768px) {
  .cs-facts dt, .credits-col .label { color: var(--ink40); }
  .cs-facts dd { color: var(--black); }
  .cs-facts dd, .credits-col li { font-size: 16px; line-height: 1.3; letter-spacing: .015em; }
  .g-note .label { margin-bottom: 8px; }
}

/* Desktop header: the SI circle is as tall as the capitals of STUDY
   (logo-black.png: capitals 396/424 of the height from 19/424 down; the circle 218/424 wide at x 1780/2000) */
@media (min-width: 769px) {
  header .logo { --h: 22px; display: flex; align-items: flex-start; }
  header .logo img { clip-path: inset(0 11.6% 0 0); margin-right: calc(var(--h) * -0.547); }
  header .logo::after {
    content: ''; flex: none; width: calc(var(--h) * .934); height: calc(var(--h) * .934);
    margin: calc(var(--h) * .045) 0 0 calc(var(--h) * .11);
    background: url(logo-black.png) no-repeat;
    background-size: calc(var(--h) * 8.568) auto;
    background-position: calc(var(--h) * -7.626) calc(var(--h) * -.0086);
  }
}

/* Phone menu: bigger words, with thin lines between them (like option C) */
@media (max-width: 768px) {
  .mobile-menu { padding-top: 72px; }
  .mobile-menu > a {
    font-size: 64px; letter-spacing: -0.05em; line-height: 1; align-self: stretch;
    padding: 8px 0 10px; border-top: 1px solid var(--ink20);
  }
  .mobile-menu > a:nth-of-type(2) { border-bottom: 1px solid var(--ink20); }
  .mm-social { margin-top: 36px; }
}

/* Round 5 (phone notes) */
/* 3:4 crops go back to the centre; only these two keep their left side: Gist's cover (the tote bag) and OHR's image 8 */
@media (max-width: 768px) {
  .home-grid .sw-media img, .cs-mcover, .cs-grid .g-m34 { object-position: center; }
  img[src*="_home/gst."], .cs-grid img.g-m34[src*="ohr/OHR.9."] { object-position: left center; }
  /* menu words: looser, like the footer links */
  .mobile-menu > a { letter-spacing: -0.025em; }
  /* About: the opening paragraph and the services sentence at the size of the homepage's opening text */
  .about-text .lead, .svc-list { font-size: 36px; letter-spacing: -0.025em; line-height: 1.08; }
}
/* Next project (phones): like the footer links, big with a small ↗ */
@media (max-width: 768px) {
  .cs-next a { display: inline-block; }
  .cs-next .arrow { display: none; }
  .cs-next h2 { font-size: 56px; letter-spacing: -0.025em; line-height: 1.04; transition: color .2s; }
  .cs-next h2::after { content: '↗'; display: inline-block; font-size: .42em; letter-spacing: 0; margin-left: .15em; vertical-align: top; transform: translateY(.18em); }
}

/* Desktop header: the studio's own lockup (logo-header.svg: STUDY with the SI circle at full height), replacing the pieced-together version */
@media (min-width: 769px) {
  header .logo { display: block; width: calc(24.7px * 518 / 111); height: 24.7px; background: url(logo-header.svg?v=2) no-repeat 0 0 / contain; }  /* letters 94 of 111 high: the same ~21px as before */
  header .logo img { visibility: hidden; clip-path: none; margin: 0; width: 100%; height: 100%; }
  header .logo::after { content: none; }
}

/* Round 6 */
/* the contact links use the Display cut of SF Pro */
.footer-links a { font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }

/* phone versions of project images (images/<folder>/_m/…): desktop shows only the original */
.cs-grid .g-only-m { display: none; }

@media (max-width: 768px) {
  /* homepage opening text and About opening paragraph: 15% bigger (36 → 41px) */
  .studio-statement .statement, .about-text .lead { font-size: 41px; }
  /* About: the services at the size of the contact links; numbers at running-text size, at the top of the capitals */
  .svc-list { font-size: 56px; letter-spacing: -0.025em; line-height: 1.04; }
  .svc-num { font-size: 16px; letter-spacing: 0; line-height: 1; vertical-align: top; top: .4em; }
  .cs-grid .g-hide-m { display: none; }
  .cs-grid .g-only-m { display: block; }
  /* menu: the SI mark instead of STUDY; the contact links are gone but their space stays */
  .mm-social { visibility: hidden; }
  html.menu-open header .logo { display: block; width: 26px; height: 26px; background: url(logo-header.svg?v=2) no-repeat right center / auto 100%; }
  html.menu-open header .logo img { visibility: hidden; }
}

/* About on phones: a tapped service opens its text right under its own name (instead of under the whole list),
   and each number sits at the top of the capitals (script.js moves each text after its name) */
@media (max-width: 768px) {
  .svc-list { padding-bottom: 0; }
  .svc-num { position: relative; vertical-align: top; line-height: 1; top: var(--num-drop, 4px); }
  .svc-body { position: static; width: auto; display: none; opacity: 1; padding: 8px 0 16px; pointer-events: auto; }
  .svc.open .svc-body { display: block; }
  .svc-desc { font-size: 16px; line-height: 1.3; letter-spacing: .015em; }
  .svc-list::after { position: static; display: block; margin-top: 24px; font-size: 16px; letter-spacing: .015em; line-height: 1.3; }
  .svc-list:has(.svc.open)::after { display: none; }
}

/* About on phones: the tapped service stays white in the sentence; its text opens in a card at the bottom
   (rounded, 8px from the edges, like the menu) with arrows to the previous / next service (script.js) */
.svc-sheet { display: none; }
@media (max-width: 768px) {
  .svc.open .svc-body { display: none; }
  .svc-list:has(.svc.open)::after { display: block; }
  .svc-sheet {
    display: block; position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 90;
    background: #EBEBEB; color: var(--black); border-radius: 12px;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity .3s ease, transform .4s cubic-bezier(.2,.7,.1,1), visibility 0s .4s;
  }
  .svc-sheet.open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .4s cubic-bezier(.2,.7,.1,1); }
  .svc-sheet button { background: none; border: 0; padding: 8px; margin: -8px; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .svc-sheet-x { position: absolute; top: 14px; right: 16px; font-size: 16px; line-height: 1; }
  .svc-sheet-t { font-size: 16px; line-height: 1.3; letter-spacing: .015em; padding-right: 28px; min-height: 5.2em; }
  .svc-sheet-nav { display: flex; gap: 32px; margin-top: 16px; font-size: 18px; color: var(--ink60); }
}
