/* ==========================================================================
   Brandon Grainger — portfolio
   Plain CSS, no build step. Edit the tokens below to retheme the whole site.
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Colour */
  --paper: #f4f5f1;      /* page background: cool off-white */
  --card: #e9ebe5;       /* project cards, quiet surfaces */
  --white: #fcfdfb;
  --ink: #121c2b;        /* text and dark sections: deep channel navy */
  --ink-soft: #4a5565;   /* secondary text */
  --line: #d4d8cf;       /* hairlines */
  --sun: #f2b33d;        /* the one accent, used for small marks only */

  /* Project stage colours, sampled from each brand */
  --allos: #1b0f2e;
  --visionsafe: #292824;
  --mauimyo: #639979;
  --mauimyo-mist: #e3ede6;

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1320px;
  --section: clamp(72px, 10vw, 144px);
  --radius-l: 24px;
  --radius-m: 14px;
  --nav-h: 60px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 40px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--sun); color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.display,
.title,
.heading,
.lede,
.project__name,
.list-serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-synthesis: none;
}

.display {
  font-size: clamp(2.25rem, 1.15rem + 3.3vw, 3.75rem);
  font-weight: 380;
  line-height: 1.05;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.title {
  font-size: clamp(3.25rem, 1.4rem + 8vw, 7.5rem);
  font-weight: 360;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.heading {
  font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem);
  font-weight: 380;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.heading--sticky { position: sticky; top: calc(var(--nav-h) + 48px); }
.nowrap { white-space: nowrap; }

.lede {
  font-size: clamp(1.3125rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 360;
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 34em;
  text-wrap: pretty;
}

.prose p {
  max-width: 62ch;
  text-wrap: pretty;
}
.prose p + p { margin-top: 1.1em; }

.small {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s;
}
.link:hover { text-decoration-color: var(--sun); text-decoration-thickness: 2px; }

/* --------------------------------------------------------------------------
   Buttons and pills
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: transparent; color: var(--ink); }

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

.btn--sun {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
}
.btn--sun:hover { background: transparent; color: var(--paper); border-color: var(--paper); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Navigation: a floating bar that stays with you
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 14px 0 auto 0;
  z-index: 50;
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
  padding: 0 10px 0 22px;
  border: 1px solid rgba(18, 28, 43, 0.08);
  border-radius: 16px;
  background: rgba(244, 245, 241, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.nav__name {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 420;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.nav__links a:hover { background: rgba(18, 28, 43, 0.07); }

/* --------------------------------------------------------------------------
   Home: intro on the left stays put while the work scrolls on the right
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.intro {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--nav-h) + 48px) 48px;
}
.intro__text {
  margin-top: 28px;
  max-width: 30em;
  color: var(--ink-soft);
  font-size: 1.125rem;
  text-wrap: pretty;
}
.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.place {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.place__sun {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
}
.place time { font-variant-numeric: tabular-nums; }

.work {
  display: grid;
  gap: 20px;
  padding-block: calc(var(--nav-h) + 40px) 24px;
}

/* Project card */

.project {
  display: block;
  padding: 10px;
  border-radius: var(--radius-l);
  background: var(--card);
  color: inherit;
  text-decoration: none;
}
.project__caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  align-items: start;
  padding: 20px 14px 14px;
}
.project__name {
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.project__line {
  grid-column: 1;
  max-width: 34em;
  color: var(--ink-soft);
}
.project .pills { grid-column: 1; margin-top: 12px; }
.project__go {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.project__go svg { width: 18px; height: 18px; }
.project:hover .project__go,
.project:focus-visible .project__go {
  background: var(--sun);
  border-color: var(--sun);
  transform: rotate(-45deg);
}

/* Stage: the tinted frame each project sits in */

.stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  aspect-ratio: 16 / 10.5;
  background: var(--card);
}
.stage--allos {
  background:
    radial-gradient(120% 90% at 85% 110%, rgba(254, 13, 162, 0.38), transparent 60%),
    var(--allos);
}
.stage--visionsafe {
  background:
    radial-gradient(90% 70% at 10% 0%, rgba(255, 226, 150, 0.12), transparent 60%),
    var(--visionsafe);
}
.stage--mauimyo { background: var(--mauimyo); }

/* Allos preview: four screens at staggered heights */
.phones {
  position: absolute;
  inset: 9% 7% auto 7%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3.2%;
}
.phones img {
  width: 100%;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.35));
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.phones img:nth-child(1) { transform: translateY(16%); }
.phones img:nth-child(2) { transform: translateY(3%); }
.phones img:nth-child(3) { transform: translateY(22%); }
.phones img:nth-child(4) { transform: translateY(9%); }

/* Browser window used for website screenshots */
.browser {
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.5);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  background: #2b2b2b;
}
.browser__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.browser--light .browser__bar { background: #ece9df; }
.browser--light .browser__bar i { background: rgba(18, 28, 43, 0.2); }
.browser__view img { width: 100%; }

/* Inside a card, the browser is cropped and scrolls on hover */
.stage .browser {
  position: absolute;
  inset: 11% 9% 0 9%;
  display: flex;
  flex-direction: column;
  border-radius: 10px 10px 0 0;
}
.stage .browser__view {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  container-type: size;
}
.stage .browser__view img { transition: transform 1.1s cubic-bezier(0.3, 0, 0.2, 1); }

.stage--mauimyo .browser { inset: 11% 6% 0 24%; }
.stage__card {
  position: absolute;
  left: 5%;
  bottom: 11%;
  width: 36%;
  border-radius: 6px;
  box-shadow: 0 22px 40px -16px rgba(18, 28, 43, 0.5);
  transform: rotate(-5deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project:hover .phones img:nth-child(1) { transform: translateY(8%); }
  .project:hover .phones img:nth-child(2) { transform: translateY(10%); }
  .project:hover .phones img:nth-child(3) { transform: translateY(10%); }
  .project:hover .phones img:nth-child(4) { transform: translateY(15%); }
  .project:hover .stage .browser__view img {
    transform: translateY(calc(-100% + 100cqh));
    transition-duration: 6s;
    transition-timing-function: cubic-bezier(0.45, 0, 0.3, 1);
  }
  .project:hover .stage__card { transform: rotate(-1deg) translateY(-6px); }
}

/* --------------------------------------------------------------------------
   Sections that follow the split
   -------------------------------------------------------------------------- */

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.rule { border-top: 1px solid var(--line); }

.about__body { display: grid; gap: clamp(40px, 5vw, 64px); }
.about__body .prose { font-size: 1.125rem; }

/* Experience: years are real sequence markers, so they lead each row */
.timeline li {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 4px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__years {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  padding-top: 0.15em;
}
.timeline__role { font-weight: 600; }
.timeline__note { color: var(--ink-soft); max-width: 52ch; }

.subhead {
  margin-bottom: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.list-serif {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 360;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.list-serif li {
  padding: 13px 0 12px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Contact: the one dark block on the page
   -------------------------------------------------------------------------- */

.contact {
  padding: clamp(28px, 5vw, 72px);
  border-radius: var(--radius-l);
  background: var(--ink);
  color: var(--paper);
}
.contact :focus-visible { outline-color: var(--sun); }
.contact .split { align-items: start; }
.contact__lead { margin-top: 20px; max-width: 28em; color: rgba(244, 245, 241, 0.72); }
.contact__email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 36px;
}
.contact__email a {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 360;
  letter-spacing: -0.01em;
}
.copy {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(244, 245, 241, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.copy:hover { border-color: var(--paper); }
.contact__links { margin-top: 18px; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(244, 245, 241, 0.2);
  border-radius: 12px;
  background: rgba(244, 245, 241, 0.06);
  color: var(--paper);
  font: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sun);
  background: rgba(244, 245, 241, 0.1);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { justify-self: start; margin-top: 6px; }
.hidden { position: absolute; left: -9999px; }

/* Shorter version used at the foot of case studies */
.contact--short {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  padding-block: 28px 36px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* --------------------------------------------------------------------------
   Case study pages
   -------------------------------------------------------------------------- */

.case-head { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px)); }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 48px);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }
.case-head .lede { margin-top: clamp(24px, 3vw, 40px); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.facts dt { font-size: 0.875rem; color: var(--ink-soft); }
.facts dd { margin-top: 2px; max-width: 30ch; }

.case-hero { margin-top: clamp(40px, 5vw, 72px); }
.case-hero .stage { aspect-ratio: 16 / 8.2; border-radius: var(--radius-l); }
.case-hero .phones { inset: 12% 6% auto 6%; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.4%; }
.stage--six .phones img:nth-child(5) { transform: translateY(18%); }
.stage--six .phones img:nth-child(6) { transform: translateY(5%); }
.case-hero .stage .browser { inset: 9% 16% 0 16%; }
.case-hero .stage--mauimyo .browser { inset: 9% 9% 0 30%; }
.case-hero .stage__card { left: 8%; width: 30%; bottom: 14%; }
.case-hero .stage--logo { background: #fefaef; display: grid; place-items: center; }
.case-hero .stage--logo img { width: min(78%, 900px); }

.block { padding-top: var(--section); }
.block .prose { font-size: 1.125rem; }
.block .heading { max-width: 12em; }

.figure { margin-top: clamp(40px, 6vw, 80px); }
.figure figcaption { margin-top: 12px; }
.panel {
  padding: clamp(20px, 5vw, 72px);
  border-radius: var(--radius-l);
}
.panel--allos { background: var(--allos); }
.panel--visionsafe { background: var(--visionsafe); }
.panel--mist { background: var(--mauimyo-mist); }
.panel--cream { background: #ebe6d6; }
.panel > .browser { max-width: 900px; margin-inline: auto; }
.panel > .plain { width: min(100%, 1040px); margin-inline: auto; border-radius: 8px; }

.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 48px);
  max-width: 940px;
  margin-inline: auto;
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
}
.pair--cards { align-items: center; max-width: 980px; margin-inline: auto; }
.pair--cards img { border-radius: 8px; box-shadow: 0 24px 44px -22px rgba(18, 28, 43, 0.45); }
.pair--cards img.portrait { width: 62%; justify-self: center; }

.aside-figure {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.aside-figure img { border-radius: var(--radius-m); width: min(100%, 440px); justify-self: center; }

.next {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(200px, 26vw, 340px);
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--radius-l);
  color: var(--paper);
  text-decoration: none;
}
.next--allos { background: var(--allos); }
.next--visionsafe { background: var(--visionsafe); }
.next--mauimyo { background: var(--mauimyo); color: var(--ink); }
.next__label { font-size: 0.9375rem; opacity: 0.75; }
.next__name {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.4rem + 5vw, 5.5rem);
  font-weight: 360;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.next .project__go { flex: none; background: transparent; border-color: currentColor; color: inherit; }
.next:hover .project__go { background: var(--sun); border-color: var(--sun); color: var(--ink); transform: rotate(-45deg); }

/* Simple pages: thanks, 404 */
.simple {
  display: grid;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--nav-h) + 64px) 64px;
}
.simple p { margin-top: 20px; max-width: 34em; color: var(--ink-soft); }
.simple .btn { margin-top: 32px; justify-self: start; }

/* --------------------------------------------------------------------------
   Motion: one load sequence, plus a soft reveal as work scrolls in
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise:nth-child(2) { animation-delay: 0.08s; }
  .rise:nth-child(3) { animation-delay: 0.16s; }
  .rise:nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Short, wide screens: let the intro scroll normally so nothing is cut off */
@media (max-height: 620px) {
  .intro { position: static; min-height: 0; }
}

@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .intro {
    position: static;
    min-height: 0;
    padding-block: calc(var(--nav-h) + clamp(56px, 12vw, 96px)) clamp(40px, 8vw, 64px);
  }
  .work { padding-top: 0; gap: 16px; }

  .split--stack { gap: 28px; }
  .heading--sticky { position: static; }
  .contact .split { gap: 40px; }
  .aside-figure { grid-template-columns: minmax(0, 1fr); }
  .aside-figure img { margin-inline: auto; }
  .case-hero .stage { aspect-ratio: 16 / 10.5; }
  .case-hero .phones { inset: 9% 7% auto 7%; }
  .case-hero .stage .browser { inset: 11% 9% 0 9%; }
  .case-hero .stage--mauimyo .browser { inset: 11% 6% 0 24%; }
  .case-hero .stage__card { left: 5%; width: 36%; bottom: 11%; }
}

@media (max-width: 640px) {
  :root { --radius-l: 18px; --radius-m: 12px; --nav-h: 54px; }
  body { font-size: 1rem; }
  .nav { inset: 10px 0 auto 0; }
  .nav__bar { padding: 0 6px 0 16px; border-radius: 14px; }
  .nav__name { font-size: 1.125rem; }
  .nav__links a { padding: 8px 9px; font-size: 0.875rem; }

  .intro__text, .about__body .prose, .block .prose { font-size: 1.0625rem; }
  .project { padding: 8px; }
  .project__caption { padding: 16px 8px 10px; }
  .project__go { width: 40px; height: 40px; }
  .stage { aspect-ratio: 5 / 4; }
  .case-hero .stage { aspect-ratio: 5 / 4; }
  .phones, .case-hero .phones {
    inset: 10% 6% auto 6%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4%;
  }
  .phones img:nth-child(n + 4) { display: none; }
  .stage .browser, .case-hero .stage .browser { inset: 11% 7% 0 7%; }
  .stage--mauimyo .browser, .case-hero .stage--mauimyo .browser { inset: 11% 5% 0 20%; }
  .stage__card, .case-hero .stage__card { width: 42%; left: 4%; bottom: 9%; }
  .browser__bar { height: 20px; padding: 0 9px; gap: 4px; }
  .browser__bar i { width: 5px; height: 5px; }

  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .list-serif { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair--cards img.portrait { width: 56%; }

  /* App screens become a swipeable row */
  .screens {
    display: flex;
    gap: 10px;
    margin-inline: calc(clamp(20px, 5vw, 72px) * -1);
    padding-inline: clamp(20px, 5vw, 72px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens img { flex: 0 0 58%; scroll-snap-align: center; }
}
