/* design.jamesh.studio
   A kit of five flat colors on warm black ink. Anybody (variable width) for display, Figtree for text. */

@font-face {
  font-family: "Anybody";
  src: url("../fonts/anybody-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #17130f;
  --paper: #fffaf0;
  --lilac: #bfa8ff;
  --tomato: #ff5c39;
  --green: #1fbf75;
  --cobalt: #3350f0;
  --sun: #ffd12e;
  --display: "Anybody", "Arial Narrow", Impact, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.1rem, 3.4vw, 3rem);
  --spring: cubic-bezier(.3, 1.45, .45, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  /* The hero's colors. The trade picker below swaps them. */
  --hero-bg: var(--lilac);
  --hero-on: var(--ink);
  --pop: var(--sun);
  --pop-on: var(--ink);
}
body:has(#t-brightdeep:checked) { --hero-bg: var(--tomato); --pop: var(--paper); }
body:has(#t-wrenfield:checked) { --hero-bg: var(--green); }
body:has(#t-turnbridge:checked) { --hero-bg: var(--cobalt); --hero-on: #fff; }
body:has(#t-vesper:checked) { --hero-bg: var(--paper); --pop: #5c2a2a; --pop-on: var(--paper); }

h1, h2, h3, p, figure, ol, fieldset { margin: 0; padding: 0; }
ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus, var(--ink)); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 1rem; }

.wrap { max-width: calc(84rem + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .6rem 1rem;
  background: var(--ink); color: var(--paper); font-weight: 700; border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* A small stamped label. Used for "Concept" everywhere a made-up business is shown. */
.tag {
  display: inline-block; padding: .22em .5em .2em; rotate: -3deg;
  background: var(--ink); color: var(--paper);
  font: 800 .72rem/1 var(--text); letter-spacing: .09em; text-transform: uppercase; border-radius: 3px;
}

/* ---------- Top bar ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 5; color: var(--hero-on); --focus: var(--hero-on); }
.top__bar { display: flex; align-items: center; gap: 1.6rem; padding-block: 1.1rem; }
.mark { font: 900 1.4rem/1 var(--display); font-stretch: 105%; text-decoration: none; margin-right: auto; }
.nav { display: none; gap: 1.6rem; font-weight: 600; font-size: .98rem; }
.nav a { text-decoration: none; padding-block: .3rem; }
.nav a:hover { text-decoration: underline; }
.hello {
  padding: .5em 1.05em; border-radius: 99px; background: var(--hero-on); color: var(--hero-bg);
  font-weight: 800; font-size: .98rem; text-decoration: none;
  transition: rotate .3s var(--spring), scale .3s var(--spring), background-color .45s, color .45s;
}
.hello:hover { rotate: -4deg; scale: 1.06; }

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-bg); color: var(--hero-on); --focus: var(--hero-on);
  padding: 5.4rem 0 clamp(2.5rem, 5vw, 4rem);
  transition: background-color .45s, color .3s;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "trades" "stage" "lede"; }
.hero__title {
  grid-area: title;
  font: 900 clamp(3.5rem, 9.4vw, 8.75rem)/.86 var(--display); font-stretch: 75%; letter-spacing: -.01em;
  white-space: nowrap;
}
.hero__lede { grid-area: lede; max-width: 24rem; margin-top: 1.6rem; font-size: 1.12rem; font-weight: 500; line-height: 1.45; }

.trades { grid-area: trades; position: relative; z-index: 2; margin-top: .5rem; --trade-wide: 100%; }
.trade { display: block; width: fit-content; cursor: pointer; }
.trade__text {
  display: inline-block; margin-left: -.14em; padding: .02em .14em .07em; border-radius: .1em;
  font: 900 clamp(2.15rem, 4.9vw, 4.4rem)/1.02 var(--display); font-stretch: 62%; white-space: nowrap;
  transform-origin: left center;
  transition: font-stretch .45s var(--spring), rotate .45s var(--spring), background-color .2s, color .2s;
}
.trade:hover .trade__text { font-stretch: 76%; }
.trade input:checked + .trade__text {
  font-stretch: var(--trade-wide); background: var(--pop); color: var(--pop-on); rotate: -2deg;
}
.trade input:focus-visible + .trade__text { outline: 3px solid var(--hero-on); outline-offset: 4px; }

.stage { grid-area: stage; position: relative; margin-top: 1.4rem; }
.panel { display: none; animation: wipe .55s var(--out) both; }
.panel--turnbridge { display: block; }
@supports selector(:has(*)) {
  .panel--turnbridge { display: none; }
  body:has(#t-smallhours:checked) .panel--smallhours,
  body:has(#t-brightdeep:checked) .panel--brightdeep,
  body:has(#t-wrenfield:checked) .panel--wrenfield,
  body:has(#t-turnbridge:checked) .panel--turnbridge,
  body:has(#t-vesper:checked) .panel--vesper { display: block; }
  body:has(#t-vesper:checked) .stamp { display: none; }
}
@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); translate: -1.5rem 0; }
  to { clip-path: inset(-2rem); translate: 0 0; }
}
.panel__cap { display: flex; align-items: baseline; gap: .7rem; margin-top: .9rem; font-size: .98rem; font-weight: 500; line-height: 1.4; }
.panel__cap .tag { flex: none; }
.panel__cap a { font-weight: 700; white-space: nowrap; }

/* A screenshot of a live site, linked to it. */
.shot {
  display: block; overflow: hidden; border: 2px solid var(--ink); border-radius: 12px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  transition: box-shadow .3s;
}
.shot-wrap { position: relative; transition: transform .4s var(--spring); }
@media (hover: hover) {
  .shot-wrap:hover { transform: translateY(-6px) rotate(-.5deg); }
  .shot-wrap:hover .shot { box-shadow: 0 8px 0 var(--ink); }
  .pin:hover { scale: 1.2; }
}
/* The callouts sit over the screenshot, below its address bar, and are not part of the link. */
.pins { position: absolute; inset: calc(1.65rem + 4px) 2px 2px; pointer-events: none; }
.pins .pin { pointer-events: auto; }
.shot__bar {
  display: flex; align-items: center; gap: .5rem; padding: .38rem .8rem;
  border-bottom: 2px solid var(--ink); font: 700 .74rem/1.2 var(--text); letter-spacing: .01em;
}
.shot__bar::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--green); border: 1.5px solid var(--ink); }
.shot__view, .shot picture { display: block; }
.shot__view { position: relative; }
.shot img { display: block; width: 100%; height: auto; }
/* On phones the hero shows each site's phone view, cropped to its first screen. */
@media (max-width: 699px) {
  .panel .shot picture { aspect-ratio: 39 / 46; overflow: hidden; }
  .panel .shot img { height: 100%; object-fit: cover; object-position: top; }
}

.stamp {
  position: absolute; top: -1.6rem; right: -.4rem; z-index: 3; width: 6.4rem; height: 6.4rem; padding: .5rem;
  display: grid; place-content: center; text-align: center; rotate: 11deg;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--sun); color: var(--ink);
  font: 700 .68rem/1.15 var(--text);
}
.stamp b { display: block; margin-bottom: .15rem; font: 900 1.05rem/1 var(--display); font-stretch: 80%; text-transform: uppercase; }

/* ---------- Work intro ---------- */
.intro { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }
.intro__grid { display: grid; gap: 1.6rem; }
.intro__title { font: 900 clamp(2.6rem, 6.6vw, 6rem)/.9 var(--display); font-stretch: 72%; letter-spacing: -.005em; max-width: 13ch; }
.intro__note { max-width: 27rem; font-size: 1.12rem; }

/* ---------- Projects ---------- */
.case { background: var(--c-bg); color: var(--c-on, var(--ink)); padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4.5rem, 8vw, 7rem); }
.case--brightdeep { padding-bottom: clamp(5.5rem, 11vw, 10rem); }
.case--smallhours { --c-bg: var(--lilac); }
.case--brightdeep { --c-bg: var(--tomato); }
.case--wrenfield { --c-bg: var(--green); }
.case--turnbridge { --c-bg: var(--cobalt); --c-on: #fff; --focus: #fff; }
.case--vesper { --c-bg: var(--paper); }
.case--vesper .tag { background: #5c2a2a; }
.case__tag { display: flex; align-items: center; gap: .8rem; font-weight: 700; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; }
.case--turnbridge .tag { background: #fff; color: var(--ink); }
.case__name {
  margin: .22em 0 .42em; font: 900 clamp(3rem, 8.6vw, 8rem)/.86 var(--display); font-stretch: 66%;
  letter-spacing: -.005em; text-wrap: balance;
}
.case__body { display: flex; flex-direction: column; gap: 2.4rem; }
.case__art { position: relative; }
.case__text { max-width: 33rem; }
.case__biz { margin-bottom: 1.5rem; font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 700; line-height: 1.22; text-wrap: balance; }
.visit { display: inline-block; margin-top: 1.3rem; font-weight: 800; }
.visit::after {
  content: ""; display: inline-block; width: .68em; height: .68em; margin-left: .4em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 10 2M4 2h6v6' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 10 2M4 2h6v6' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: translate .25s var(--spring);
}
.visit:hover::after { translate: .2em -.2em; }

/* Phone views and detail crops that sit on top of the big screenshots. */
.phone, .chip { overflow: hidden; border: 2px solid var(--ink); background: var(--paper); }
.phone { border-radius: 22px; }
.chip { border-radius: 12px; }
.phone img, .chip img { display: block; width: 100%; height: auto; }
.phone--menu { position: relative; width: 54%; margin: -2.4rem .4rem 0 auto; rotate: 3deg; }
.chip--map { position: relative; width: 60%; margin: -2.2rem auto 0 .4rem; rotate: -4deg; }
.phone--yard, .phone--program { position: relative; width: 46%; margin: -3rem auto 0 .6rem; rotate: -3deg; }
.flow .phone { position: relative; }
/* These two phones show only the top of the screen, at every size, so the callouts land in the same place. */
.phone--menu, .phone--program { aspect-ratio: 39 / 60; }
.phone--menu img, .phone--program img { height: 100%; object-fit: cover; object-position: top; }

/* Numbered callouts on the screenshots, and the matching numbered notes. */
.pin, .notes > li::before {
  display: grid; place-content: center; width: 1.75rem; height: 1.75rem; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--sun); color: var(--ink); font: 800 .88rem/1 var(--text);
}
.pin {
  position: absolute; left: var(--x); top: var(--y); margin: -.875rem 0 0 -.875rem; box-shadow: 0 0 0 3px rgb(255 250 240 / .85);
  text-decoration: none; cursor: pointer; transition: scale .25s var(--spring), background-color .15s, color .15s;
}
/* A larger invisible target around each dot, for fingers. */
.pin::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.pin.is-lit { background: var(--ink); color: var(--sun); scale: 1.2; }
.pin:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 50%; }
.notes { display: grid; gap: 1.15rem; counter-reset: note; }
.notes > li { position: relative; padding-left: 2.6rem; counter-increment: note; }
.notes > li::before { content: counter(note); position: absolute; left: 0; top: -.1rem; }
.notes h4 { width: fit-content; margin: 0 0 .2rem; font: 800 1.12rem/1.25 var(--text); transition: background-color .2s, box-shadow .2s, color .2s; }
.notes > li { scroll-margin-top: 35vh; }
.notes > li:target h4, .notes > li.is-lit h4 { background: var(--sun); color: var(--ink); box-shadow: 0 0 0 .3em var(--sun); border-radius: 2px; }
.notes > li:target::before, .notes > li.is-lit::before { background: var(--ink); color: var(--sun); }

/* The note shown beside a callout when it is clicked. */
.bubble {
  position: absolute; z-index: 30; width: max-content; max-width: min(19rem, calc(100vw - 1.5rem)); padding: .75rem .95rem .85rem;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink);
  box-shadow: 0 5px 0 var(--ink); font-size: .95rem; line-height: 1.45; animation: pop .22s var(--spring);
}
.bubble strong { display: block; margin-bottom: .2rem; font-weight: 800; font-size: 1.02rem; line-height: 1.25; }
@keyframes pop { from { scale: .85; } }

/* The live site, opened over the page. */
.try {
  margin: 1.3rem 1.1rem 0 0; padding: .6em 1em .64em; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--ink); color: var(--paper); font: 800 1rem/1 var(--text); cursor: pointer;
  transition: rotate .3s var(--spring), scale .3s var(--spring);
}
.try:hover { rotate: -2deg; scale: 1.04; }
.case--turnbridge .try { border-color: #fff; background: #fff; color: var(--ink); }
.live {
  width: min(96vw, 96rem); height: 92vh; height: 92dvh; max-width: none; max-height: none; padding: 0; overflow: hidden;
  border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink);
}
.live::backdrop { background: rgb(23 19 15 / .62); }
/* The page behind stays put while a site is open. */
html:has(.live[open]) { overflow: hidden; }
.live__in { display: flex; flex-direction: column; height: 100%; }
.live__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; padding: .55rem .8rem; border-bottom: 2px solid var(--ink); font-size: .95rem; }
.live__name { margin-right: auto; font: 900 1.15rem/1 var(--display); font-stretch: 90%; }
.live__sizes { display: none; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.live__sizes button { padding: .38em .8em; border: 0; background: none; color: inherit; font: 700 .9rem/1 var(--text); cursor: pointer; }
.live__sizes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.live__tab { font-weight: 700; }
.live__close { padding: .5em .95em; border: 0; border-radius: 8px; background: var(--ink); color: var(--sun); font: 800 .95rem/1 var(--text); cursor: pointer; }
.live__stage { flex: 1; min-height: 0; display: flex; justify-content: center; background: #e9e4d8; }
.live__frame { width: 100%; height: 100%; border: 0; background: #fff; }
.live.is-phone .live__frame { width: 390px; max-width: 100%; border-inline: 2px solid var(--ink); }
@media (min-width: 700px) { .live__sizes { display: flex; } }
.notes p { line-height: 1.5; }

/* Each project's own typefaces and colors. */
.kit { display: grid; gap: .9rem; margin-top: 2rem; }
.kit picture { display: block; max-width: 21rem; overflow: hidden; border: 2px solid var(--ink); border-radius: 10px; }
.kit img { display: block; width: 100%; height: auto; }
.kit__colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .5rem 1rem; max-width: 23rem; margin: 0; padding: 0; list-style: none; font: 700 .76rem/1 var(--text); letter-spacing: .03em; }
.kit__colors li { display: flex; align-items: center; gap: .4rem; font-weight: 500; }
.kit__colors b { font-weight: 800; }
.kit__colors span { width: 1.35rem; height: 1.35rem; border: 2px solid var(--ink); border-radius: 50%; }


.flow { display: flex; align-items: flex-start; margin-right: -4%; }
.flow .phone { flex: 0 0 42%; }
.flow .phone + .phone { margin-left: -11%; }
.flow .phone:nth-child(1) { rotate: -3deg; }
.flow .phone:nth-child(2) { margin-top: 2.4rem; rotate: 1deg; }
.flow .phone:nth-child(3) { margin-top: 4.8rem; rotate: 4deg; }

/* ---------- About ---------- */
.about { background: var(--lilac); padding-block: clamp(4rem, 9vw, 8rem); }
.about__grid { display: grid; gap: 2.5rem; }
.about__title { margin-bottom: .35em; font: 900 clamp(3rem, 8.6vw, 8rem)/.86 var(--display); font-stretch: 66%; }
.about__lede { margin-bottom: 1rem; font-size: clamp(1.15rem, 1.7vw, 1.35rem); font-weight: 500; line-height: 1.42; max-width: 33rem; }
.about__text p:not(.about__lede) { max-width: 31rem; }
.about__more { margin-top: 1rem; font-weight: 700; }
.county { position: relative; max-width: 34rem; rotate: -4deg; }
.county svg { display: block; width: 100%; height: auto; overflow: visible; }
.county__land { fill: var(--ink); }
.county__towns circle { fill: var(--sun); stroke: var(--ink); stroke-width: 2.5; }
.county__towns text { fill: var(--paper); font: 700 21px var(--text); }
.county__cap {
  position: absolute; left: 0; bottom: 6%; max-width: 16rem; padding: .4em .7em; rotate: 7deg;
  background: var(--sun); border-radius: 4px; font-weight: 700; font-size: 1rem; line-height: 1.25;
}

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding-block: 2.2rem 2.6rem; font-size: .96rem; --focus: var(--sun); }
.foot__bar { display: grid; gap: .8rem; }
.foot__sign { font: 900 1.4rem/1 var(--display); font-stretch: 105%; color: var(--sun); }
.foot__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 700; }

/* ---------- Motion that needs JavaScript ---------- */
/* The class is added by site.js only when it can also remove the offset, so nothing stays shifted or hidden. */
.reveals [data-reveal] { translate: 0 3.2rem; transition: translate .9s var(--out), transform .4s var(--spring), box-shadow .3s; }
.reveals [data-reveal].is-in { translate: 0 0; }
.reveals .flow .phone:nth-child(2) { transition-delay: .09s; }
.reveals .flow .phone:nth-child(3) { transition-delay: .18s; }

.sticker { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; }
.sticker span {
  display: grid; place-content: center; width: 6rem; height: 6rem; margin: -3rem 0 0 -3rem; padding: .6rem; text-align: center;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--sun); color: var(--ink);
  font: 800 .84rem/1.08 var(--text); scale: 0; rotate: -30deg;
  transition: scale .3s var(--spring), rotate .3s var(--spring);
}
.sticker.is-on span { scale: 1; rotate: -9deg; }

/* ---------- Wider screens ---------- */
@media (min-width: 700px) {
  .nav { display: flex; }
  .stamp { top: -2.4rem; right: -1.1rem; width: 8.2rem; height: 8.2rem; font-size: .76rem; }
  .stamp b { font-size: 1.4rem; }
  .intro__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; gap: 3rem; }
  .foot__bar { grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 2rem; }
  .county__towns text { font-size: 17px; }
  .flow { margin-right: 0; gap: 4%; }
  .flow .phone { flex: 1 1 0; }
  .flow .phone + .phone { margin-left: 0; }
}

@media (min-width: 960px) {
  .top__bar { padding-block: 1.5rem; }
  .hero { padding-top: 6.4rem; }
  .hero__grid {
    grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); column-gap: clamp(1.5rem, 3vw, 3rem);
    grid-template-areas: "title lede" "trades stage";
  }
  .hero__lede { justify-self: end; align-self: end; max-width: 21.5rem; margin: 0 0 1.1rem; }
  .trades { margin-top: 1.1rem; --trade-wide: 86%; }
  .stage { margin-top: 1.6rem; }

  .case__body { display: grid; align-items: start; gap: clamp(4rem, 7vw, 6.5rem); }
  .case--smallhours .case__body { grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); }
  .case--brightdeep .case__body { grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); }
  .case--brightdeep .case__text, .case--turnbridge .case__text { padding-top: .4rem; }

  .stage .shot__bar { justify-content: center; }

  /* Small Hours: the phone hangs off the screenshot's lower left, clear of the headline and the photo. */
  .case--smallhours { padding-bottom: clamp(11rem, 16vw, 15rem); }
  .phone--menu { position: absolute; left: 7%; bottom: -13rem; width: 15.5rem; margin: 0; aspect-ratio: 39 / 60; rotate: -3deg; }
  .phone--menu img { height: 100%; object-fit: cover; object-position: top; }

  .case--brightdeep .case__art { margin-bottom: 9rem; }
  .chip--map { position: absolute; left: 6%; bottom: -8.5rem; width: 16.5rem; margin: 0; rotate: -4deg; }

  .case--wrenfield .case__art { padding-left: 13%; }
  .phone--yard { position: absolute; left: 0; top: 14%; width: clamp(9.5rem, 16.5vw, 15rem); margin: 0; }
  .case--wrenfield .case__text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 0 3.5rem; max-width: none; padding-left: 13%; }
  .case--wrenfield .case__biz { grid-column: 1 / -1; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
  .case--wrenfield .notes { grid-column: 1; grid-row: 2 / span 2; }
  .case--wrenfield .kit { grid-column: 2; margin-top: 0; }
  .case--wrenfield .visit { grid-column: 2; align-self: start; }
  /* Turnbridge: text first; the report on a phone hangs off the screenshot's lower right. */
  .case--turnbridge .case__body { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); }
  .case--turnbridge { padding-bottom: clamp(11rem, 15vw, 14rem); }
  .phone--report { position: absolute; right: 4%; bottom: -12rem; width: clamp(10rem, 15vw, 13.5rem); margin: 0; aspect-ratio: 39 / 60; rotate: 3deg; }
  .phone--report img { height: 100%; object-fit: cover; object-position: top; }
  .case--vesper .case__body { grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); }
  .case--vesper { padding-bottom: clamp(11rem, 15vw, 14rem); }
  .phone--program { position: absolute; right: calc(-1 * clamp(1.5rem, 3.6vw, 5rem)); bottom: -12rem; width: clamp(10rem, 15vw, 13.5rem); margin: 0; aspect-ratio: 39 / 60; rotate: 3deg; }
  .phone--program img { height: 100%; object-fit: cover; object-position: top; }

  .flow { padding-top: .5rem; }
  .flow .phone:nth-child(2) { margin-top: 3.6rem; }
  .flow .phone:nth-child(3) { margin-top: 7.2rem; }

  .about__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 4rem; }
  .county { justify-self: end; width: 100%; }
}

/* Narrow phones: keep the selected trade inside the screen. */
@media (max-width: 379px) {
  .trades { --trade-wide: 84%; }
  .hero__title { font-size: 14.6vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
