/* ==========================================================================
   Susanna Smith - Portfolio
   One stylesheet. Tokens → base → layout → components → pages.
   ========================================================================== */

/* Self-hosted variable fonts (SIL Open Font License) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-standard-normal.woff2") format("woff2-variations"), url("../fonts/newsreader-latin-standard-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-standard-italic.woff2") format("woff2-variations"), url("../fonts/newsreader-latin-standard-italic.woff2") format("woff2");
}

:root {
  /* Color */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --stage: #FFFFFF;
  /* image stages are white, defined by a hairline border */
  --stage-2: #FFFFFF;
  --line: #E2E0D9;
  --line-strong: #CFCCC3;
  --ink: #14161B;
  --ink-2: #363941;
  --muted: #5F626B;
  /* 5.6:1 on --bg */
  --accent: #0F8080;
  /* brand teal (decorative) */
  --accent-ink: #0F8080;
  /* brand teal for text on light: 4.8:1 */
  --accent-wash: #E4F5F5;
  --dark: #15171C;
  --dark-2: #22252C;

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

  --fs-xs: 0.875rem;
  /* 14 */
  --fs-sm: 0.9375rem;
  /* 15 */
  --fs-base: 1.0625rem;
  /* 17 */
  --fs-lg: 1.25rem;
  /* 20 */
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --fs-h1: clamp(2.4rem, 1.4rem + 3.4vw, 4.25rem);
  --fs-display: clamp(2.6rem, 1.3rem + 4.4vw, 5rem);

  /* Space & shape */
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1280px;
  --measure: 40rem;
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --nav-h: 68px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-shot: 0 0 0 1px var(--line), 0 14px 32px -18px rgba(20, 22, 27, .22);
}

/* Per-project stage tint (set on <body>) */
/* (per-project tints removed: site uses a white base with #E2E0D9 borders) */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 1em;
}

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.06;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
}

h3 {
  font-family: var(--sans);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

h4 {
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.4;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: #C4EAEA;
  color: var(--ink);
}

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
}

.skip:focus {
  top: 12px;
}

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

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
  line-height: 1.4;
}

.eyebrow--muted {
  color: var(--muted);
}

.lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-2);
}

.muted {
  color: var(--muted);
}

/* ---------- Links & buttons ---------- */
.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .2s;
}

.link:hover {
  text-decoration-color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}

.btn svg {
  transition: transform .25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: #2C2F37;
}

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

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: #E9E8E3;
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: #fff;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.arrow-link svg {
  transition: transform .25s var(--ease);
}

.arrow-link:hover svg {
  transform: translateX(4px);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand span {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand small {
  font-weight: 400;
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-left: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.nav__links a:hover {
  background: rgba(20, 22, 27, .05);
  color: var(--ink);
}

.nav__links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(20, 22, 27, .06);
}

.nav__links a.nav__cta {
  background: var(--ink);
  color: #fff;
  margin-left: 8px;
}

.nav__links a.nav__cta:hover {
  background: #2C2F37;
}

.nav__links a.nav__cta[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: -10px;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform .3s var(--ease), background-color .2s;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle span::before {
  top: -6px;
}

.nav__toggle span::after {
  top: 6px;
}

.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

@media (max-width: 760px) {
  .brand small {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s linear .3s;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav__links a {
    height: 56px;
    font-size: 1.25rem;
    font-family: var(--serif);
    border-radius: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__links a:hover,
  .nav__links a[aria-current="page"] {
    background: transparent;
  }

  .nav__links a[aria-current="page"]::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-left: 10px;
  }

  .nav__links a.nav__cta {
    margin: 20px 0 0;
    justify-content: center;
    border-radius: 999px;
    height: 52px;
    font-family: var(--sans);
    font-size: 1rem;
    border: 0;
  }

  .nav.is-open {
    background: var(--bg);
  }
}

/* ---------- Reveal ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.js .rv.in {
  opacity: 1;
  transform: none;
}

.js .rv-d1 {
  transition-delay: .08s;
}

.js .rv-d2 {
  transition-delay: .16s;
}

.js .rv-d3 {
  transition-delay: .24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .js .rv {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Footer & CTA ---------- */
.cta {
  background: var(--dark);
  color: #C9CBD1;
  padding: clamp(72px, 10vw, 128px) 0;
}

.cta__inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: end;
}

.cta h2 {
  color: #fff;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1.08;
  max-width: 16ch;
}

.cta p {
  margin-top: 16px;
  font-size: var(--fs-lg);
  color: #B4B7BE;
}

.cta .eyebrow {
  color: #15ABAB;
  margin-bottom: 20px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 900px) {
  .cta__inner {
    grid-template-columns: 1.4fr 1fr;
  }

  .cta__actions {
    justify-content: flex-end;
  }
}

.footer {
  background: var(--dark);
  color: #9A9DA5;
  border-top: 1px solid #2A2D35;
  font-size: var(--fs-sm);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 28px;
}

.footer a {
  color: #D5D7DC;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  list-style: none;
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #353841;
}

.footer__social a:hover {
  border-color: #8C9099;
}

/* ---------- Figures / stages ---------- */
figure {
  margin: 0;
}

.stage {
  background: var(--stage);
  border-radius: var(--r-lg);
  padding: clamp(16px, 4vw, 56px);
  overflow: hidden;
}

.stage--tight {
  padding: clamp(12px, 2.5vw, 32px);
}

.stage--flush {
  padding: 0;
}

.stage--center {
  display: flex;
  justify-content: center;
}

.stage img,
.shot {
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-shot);
  background: #fff;
}

.stage img.no-shadow,
.stage--plain img {
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.stage--flush img {
  border-radius: 0;
  box-shadow: none;
}

figcaption,
.caption {
  margin-top: 14px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
}

figcaption b {
  color: var(--ink);
  font-weight: 600;
}

.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  border-radius: var(--r-sm);
}

.zoom::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(20, 22, 27, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center/16px no-repeat;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .2s, transform .2s var(--ease);
}

.zoom:hover::after,
.zoom:focus-visible::after {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .zoom::after {
    opacity: .9;
    transform: none;
    width: 32px;
    height: 32px;
  }
}

.pair {
  display: grid;
  gap: clamp(12px, 2vw, 24px);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 720px) {
  .pair {
    grid-template-columns: 1fr 1fr;
  }

  .pair--wide-narrow {
    grid-template-columns: 1.6fr 1fr;
  }
}

/* Tall screenshot that scrolls inside a fixed frame */
.scrollframe {
  position: relative;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-shot);
  background: #fff;
  overflow: hidden;
}

.scrollframe__vp {
  max-height: min(640px, 75vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 22, 27, .25) transparent;
}

.scrollframe__vp img {
  border-radius: 0;
  box-shadow: none;
  width: 100%;
}

.scrollframe__vp:focus-visible {
  outline-offset: -3px;
}

.scrollframe__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity .4s;
}

.scrollframe__hint svg {
  margin-right: 6px;
  animation: nudge 1.6s var(--ease) infinite;
}

.scrollframe.is-scrolled .scrollframe__hint {
  opacity: 0;
}

.scrollframe__expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(20, 22, 27, .78);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
}

.scrollframe__expand:hover {
  background: var(--ink);
}

@keyframes nudge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }
}

/* Phone (CSS device frame for scrollable mobile content) */
.device {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 9 / 18.6;
  border-radius: 40px;
  padding: 10px;
  background: #1B1D22;
  box-shadow: 0 30px 60px -30px rgba(20, 22, 27, .45), inset 0 0 0 1.5px #3A3D44;
}

.device__screen {
  position: relative;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: #fff;
}

.device__screen .scrollframe__vp {
  position: absolute;
  inset: 0 0 auto 0;
  bottom: var(--footer-h, 0px);
  max-height: none;
}

.device__screen .scrollframe__vp img {
  width: 100%;
}

.device__screen .scrollframe__hint {
  bottom: var(--footer-h, 0px);
}

.device__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -4px 10px rgba(71, 112, 128, .14);
  z-index: 1;
}

.device__footer img {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.device__btn {
  margin: 10px 18px 0;
  background: #046FDB;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 10px;
  font-size: 15px;
  font-weight: 500;
}

.device__bar {
  width: 34%;
  height: 4px;
  border-radius: 4px;
  background: #1B1D22;
  opacity: .25;
  margin: 10px auto 8px;
}

/* Horizontal phone strip */
.strip {
  position: relative;
}

.strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(180px, 42vw, 232px);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: clamp(24px, 4vw, 48px) var(--gutter);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  list-style: none;
  background: var(--stage);
  border-radius: var(--r-lg);
}

.strip__track::-webkit-scrollbar {
  display: none;
}

.strip__item {
  scroll-snap-align: start;
  margin: 0;
}

.strip__item img {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  filter: drop-shadow(0 18px 24px rgba(20, 22, 27, .14));
}

.strip__item figcaption {
  font-size: var(--fs-xs);
  margin-top: 16px;
}

.strip__item figcaption b {
  display: block;
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}

.strip__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.strip__count {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.strip__btns {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .2s, background-color .2s, opacity .2s;
}

.icon-btn:hover {
  border-color: var(--ink);
}

.icon-btn:disabled {
  opacity: .35;
  cursor: default;
  border-color: var(--line-strong);
}

/* ---------- Home ---------- */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
}

.hero__intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.hero__avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero__who {
  line-height: 1.35;
}

.hero__who strong {
  display: block;
  font-size: 1rem;
}

.hero__who span {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 19ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-ink);
}

.hero__grid {
  display: grid;
  gap: 40px;
  margin-top: clamp(32px, 4vw, 56px);
  grid-template-columns: 1fr;
}

.hero__body {
  max-width: 34rem;
}

.hero__body .lede {
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.focus-list {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  align-self: start;
}

.focus-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink);
  font-weight: 500;
}

.focus-list li span {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 400;
  font-size: var(--fs-xs);
  min-width: 20px;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
  }
}

.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.proof__item {
  padding: 28px 20px 28px 0;
}

.proof__item+.proof__item {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.proof__item:nth-child(3) {
  border-left: 0;
  padding-left: 0;
  border-top: 1px solid var(--line);
}

.proof__item:nth-child(4) {
  border-top: 1px solid var(--line);
}

.proof__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}

.proof__label {
  margin-top: 10px;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--muted);
  max-width: 24ch;
}

.proof__note {
  font-size: var(--fs-xs);
  color: var(--muted);
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .proof__inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .proof__item {
    padding: 36px 24px;
  }

  .proof__item:first-child {
    padding-left: 0;
  }

  .proof__item:nth-child(3) {
    border-left: 1px solid var(--line);
    padding-left: 24px;
    border-top: 0;
  }

  .proof__item:nth-child(4) {
    border-top: 0;
  }
}

.section {
  padding: clamp(72px, 10vw, 136px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head h2 {
  max-width: 20ch;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head p {
  max-width: 34rem;
  color: var(--muted);
  margin: 0;
}

/* Project feature (home) */
.projects {
  display: grid;
  gap: clamp(72px, 9vw, 128px);
}

.project {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--stage);
  aspect-ratio: 16 / 9;
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.1s var(--ease);
}

.project__media--inset,
.index__media--inset {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3.5vw, 44px);
}

.project__media--inset img,
.index__media--inset img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: initial;
  padding: 0;
  filter: none;
}

.inset-shot {
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-shot);
}

.project:hover .project__media img {
  transform: scale(1.018);
}

.project__body {
  display: grid;
  gap: 16px 48px;
  margin-top: 28px;
  grid-template-columns: 1fr;
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.project__meta .eyebrow {
  font-size: var(--fs-xs);
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}

.project__title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
  line-height: 1.12;
  margin-top: 10px;
}

.project__title span {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .5s var(--ease);
}

.project:hover .project__title span,
.project:focus-visible .project__title span {
  background-size: 100% 1px;
}

.project__desc {
  color: var(--ink-2);
  margin: 0 0 18px;
}

.project__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 22px;
}

.chip {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-2);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  line-height: 1.3;
}

@media (min-width: 900px) {
  .project__body {
    grid-template-columns: 1fr 1fr;
  }
}

.projects-pair {
  display: grid;
  gap: clamp(72px, 9vw, 128px) clamp(24px, 3vw, 48px);
  grid-template-columns: 1fr;
}

.projects-pair .project__media {
  aspect-ratio: 4 / 3;
}

.projects-pair .project__body {
  grid-template-columns: 1fr;
}

.projects-pair .project__title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem);
}

@media (min-width: 900px) {
  .projects-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.divider-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: clamp(72px, 9vw, 128px) 0 clamp(32px, 4vw, 48px);
}

.divider-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* Experience list */
.xp {
  list-style: none;
  border-top: 1px solid var(--line);
}

.xp li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.xp__co {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
}

.xp__role {
  color: var(--ink-2);
}

.xp__when {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 800px) {
  .xp li {
    grid-template-columns: 1.1fr 1fr auto;
    align-items: baseline;
    padding: 26px 0;
  }

  .xp__when {
    text-align: right;
  }
}

/* ---------- Work index ---------- */
.page-head {
  padding-block: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 48px);
}

.page-head h1 {
  max-width: 18ch;
}

.page-head .eyebrow {
  margin-bottom: 18px;
}

.page-head p {
  margin-top: 24px;
  max-width: 38rem;
}

.index {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.index__item {
  border-bottom: 1px solid var(--line);
}

.index__link {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px) 0;
  text-decoration: none;
  color: inherit;
}

.index__media {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--stage);
  aspect-ratio: 16/10;
}

.index__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1s var(--ease);
}

.index__link:hover .index__media img {
  transform: scale(1.02);
}

.index__num {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.index__title {
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  line-height: 1.15;
  margin: 10px 0 14px;
}

.index__desc {
  margin-bottom: 20px;
}

.index__dl {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 4px 32px;
  margin: 0 0 24px;
  font-size: var(--fs-sm);
}

.index__dl dt {
  color: var(--muted);
  font-size: var(--fs-xs);
}

.index__dl dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  grid-row: 2;
}

@media (min-width: 900px) {
  .index__link {
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .index__dl {
    grid-template-columns: 1fr 1fr;
  }

  .index__dl dd {
    grid-row: auto;
  }

  .index__dl dt {
    grid-row: auto;
  }
}

/* ---------- Case study ---------- */
.cs-hero {
  padding: clamp(40px, 6vw, 80px) 0 0;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--muted);
  text-decoration: none;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.back:hover {
  color: var(--ink);
}

.back svg {
  transition: transform .25s var(--ease);
}

.back:hover svg {
  transform: translateX(-3px);
}

.cs-hero .eyebrow {
  margin-bottom: 18px;
}

.cs-hero h1 {
  max-width: 20ch;
}

.cs-hero__dek {
  margin-top: 24px;
  max-width: 42rem;
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.cs-cover {
  margin-top: clamp(40px, 6vw, 72px);
}

.cs-cover .stage {
  padding: 0;
  aspect-ratio: 16 / 8.5;
}

.cs-cover .stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  box-shadow: none;
}

.cs-cover .stage--inset {
  padding: clamp(20px, 5vw, 72px);
  aspect-ratio: auto;
  display: flex;
  justify-content: center;
}

.cs-cover .stage--inset img {
  height: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-shot);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.facts dd span {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

@media (min-width: 900px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.summary {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  grid-template-columns: 1fr;
  padding: clamp(40px, 5vw, 64px) 0 0;
}

.summary h2 {
  font-size: var(--fs-xs);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 12px;
}

.summary p {
  font-size: var(--fs-base);
  color: var(--ink);
}

.impact {
  list-style: none;
  display: grid;
  gap: 0;
}

.impact li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.5;
}

.impact li:last-child {
  border-bottom: 1px solid var(--line);
}

.impact li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300695A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}

@media (min-width: 900px) {
  .summary {
    grid-template-columns: 1fr 1fr 1.25fr;
  }
}

/* Case study body: section label rail + content */
.cs {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.cs-sec {
  padding-top: clamp(72px, 9vw, 128px);
}

.cs-sec__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 64px;
}

.cs-sec__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.cs-sec__label b {
  color: var(--accent-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cs-sec h2 {
  margin-top: 12px;
  max-width: 18ch;
}

.cs-sec__body {
  max-width: var(--measure);
}

.cs-sec__body>h2:first-child {
  margin-top: 0;
}

.cs-sec__body>*+* {
  margin-top: 1.1em;
}

.cs-sec__body>h3 {
  margin-top: 2.2em;
}

.cs-sec__body>h3+p {
  margin-top: .6em;
}

.full {
  grid-column: 1 / -1;
  margin-top: clamp(32px, 4vw, 56px);
}

.full+.full {
  margin-top: clamp(24px, 3vw, 40px);
}

@media (min-width: 1000px) {
  .cs-sec__grid {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
  }

  .cs-sec__aside {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
    align-self: start;
  }
}

/* Sub-block inside a section (a chapter within a chapter) */
.chapter {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  gap: 20px 64px;
  grid-template-columns: 1fr;
}

.chapter__text {
  max-width: var(--measure);
}

.chapter__text h3 {
  margin-bottom: 10px;
}

.chapter__text .eyebrow {
  margin-bottom: 10px;
}

.chapter--split {
  align-items: center;
}

@media (min-width: 1000px) {
  .chapter--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }

  .chapter--split.chapter--flip> :first-child {
    order: 2;
  }

  .chapter--offset {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
  }

  .chapter--offset>.chapter__text {
    grid-column: 2;
  }
}

/* Numbered editorial list */
.numbered {
  list-style: none;
  counter-reset: n;
  display: grid;
  gap: 0;
}

.numbered li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.numbered li:last-child {
  border-bottom: 1px solid var(--line);
}

.numbered li::before {
  content: counter(n, decimal-leading-zero);
  font-size: var(--fs-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}

.numbered b {
  color: var(--ink);
  font-weight: 600;
}

.bullets {
  list-style: none;
  display: grid;
  gap: 10px;
}

.bullets li {
  position: relative;
  padding-left: 22px;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .7em;
  width: 8px;
  height: 1.5px;
  background: var(--accent);
}

/* Pull statement */
.pull {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px clamp(18px, 2.5vw, 28px);
}

.pull .eyebrow {
  margin-bottom: 10px;
}

.pull p {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.05rem + 1.1vw, 1.95rem);
  line-height: 1.28;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.pull--xl p {
  font-size: clamp(1.65rem, 1.1rem + 1.8vw, 2.6rem);
  line-height: 1.2;
}

/* Dark statement panel */
.panel-dark {
  background: var(--dark);
  color: #C9CBD1;
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 64px);
}

.panel-dark .eyebrow {
  color: #15ABAB;
  margin-bottom: 14px;
}

.panel-dark p {
  font-family: var(--serif);
  color: #fff;
  font-size: clamp(1.4rem, 1.05rem + 1.2vw, 2.1rem);
  line-height: 1.25;
  max-width: 30ch;
}

.panel-dark--split {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .panel-dark--split {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
  }
}

.panel-dark .mini {
  list-style: none;
  display: grid;
  gap: 0;
}

.panel-dark .mini li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #353841;
  font-size: var(--fs-sm);
  color: #E4E5E8;
}

.panel-dark .mini li:last-child {
  border-bottom: 1px solid #353841;
}

.panel-dark .mini svg {
  color: #15ABAB;
  flex-shrink: 0;
}

/* Card grid (insights, principles) */
.grid-cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  grid-template-columns: 1fr;
}

.grid-cards>* {
  background: var(--bg);
  padding: clamp(22px, 3vw, 36px);
}

.grid-cards__n {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.grid-cards h3 {
  margin-bottom: 8px;
}

.grid-cards p {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

@media (min-width: 720px) {
  .grid-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .grid-cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Before / after */
.compare {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
  grid-template-columns: 1fr;
}

.compare__col {
  border-radius: var(--r);
  padding: clamp(22px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.compare__col--after {
  background: var(--dark);
  border-color: var(--dark);
  color: #C9CBD1;
}

.compare__col--after h3,
.compare__col--after b {
  color: #fff;
}

.compare__col--after .eyebrow {
  color: #15ABAB;
}

.compare__col h3 {
  margin: 8px 0 20px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
}

.compare ol {
  list-style: none;
  display: grid;
  gap: 0;
}

.compare li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.compare__col--after li {
  border-top-color: #353841;
}

.compare li i {
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.compare__col--after li i {
  color: #8C9099;
}

.compare li b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-base);
}

.compare li.is-risk b {
  color: #A1301F;
}

@media (min-width: 820px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

/* Constraint stats */
.constraints {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.constraints>div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: center;
}

.constraints svg {
  flex-shrink: 0;
  color: var(--accent-ink);
}

.constraints span {
  color: var(--ink);
  font-weight: 500;
}

@media (min-width: 820px) {
  .constraints {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }

  .constraints>div {
    border-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 24px 0;
  }

  .constraints>div+div {
    border-left: 1px solid var(--line);
    padding-left: 24px;
  }
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

table.comp {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 560px;
}

table.comp th,
table.comp td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.comp thead th {
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  line-height: 1.35;
}

table.comp thead th span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: var(--fs-xs);
}

table.comp tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}

table.comp tbody tr:last-child>* {
  border-bottom: 0;
}

table.comp .yes {
  color: var(--accent-ink);
}

table.comp .ltd {
  color: var(--muted);
}

.table-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 12px;
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* Two-experience cards */
.duo {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
  grid-template-columns: 1fr;
}

.duo>div {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
}

.duo h3 {
  margin: 8px 0 6px;
}

.duo p {
  font-size: var(--fs-sm);
}

@media (min-width: 720px) {
  .duo {
    grid-template-columns: 1fr 1fr;
  }
}

/* Journey stages */
.journey {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  counter-reset: s;
  border-top: 1px solid var(--line);
}

.journey li {
  counter-increment: s;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.journey li b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 6px;
}

.journey li b::before {
  content: "0" counter(s) "  ";
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-xs);
  margin-right: 6px;
}

.journey li p {
  font-size: var(--fs-sm);
}

.journey__bar {
  display: none;
}

@media (min-width: 900px) {
  .journey {
    grid-template-columns: repeat(4, 1fr);
    border-top: 0;
  }

  .journey li {
    border-bottom: 0;
    padding: 24px 24px 0 0;
    border-top: 2px solid var(--line);
  }

  .journey li:nth-child(1) {
    border-top-color: #8AD5D5;
  }

  .journey li:nth-child(2) {
    border-top-color: #E0B45C;
  }

  .journey li:nth-child(3) {
    border-top-color: #D9825B;
  }

  .journey li:nth-child(4) {
    border-top-color: #B5453A;
  }
}

/* Numbered feature rows (full-width image beneath) */
.feature-row {
  margin-top: clamp(56px, 7vw, 88px);
}

.feature-row__head {
  display: grid;
  gap: 12px 64px;
  grid-template-columns: 1fr;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.feature-row__n {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem);
  line-height: .9;
  color: var(--accent);
}

.feature-row__head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 1.1rem + .8vw, 1.8rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

@media (min-width: 1000px) {
  .feature-row__head {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
    align-items: start;
  }
}

/* Outcomes */
.outcomes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.outcomes>div {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.outcomes h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.outcomes p {
  font-size: var(--fs-sm);
  max-width: 34ch;
}

@media (min-width: 720px) {
  .outcomes {
    grid-template-columns: repeat(var(--cols, 3), 1fr);
  }

  .outcomes>div {
    padding: 28px 28px 8px 0;
    border-bottom: 0;
  }

  .outcomes>div+div {
    padding-left: 28px;
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 720px) and (max-width: 1099px) {
  .outcomes--4 {
    grid-template-columns: 1fr 1fr;
  }

  .outcomes--4>div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .outcomes--4>div:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 1100px) {
  .outcomes--4 {
    --cols: 4;
  }
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.note {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.5;
}

.note svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--muted);
}

/* Next project */
.next {
  border-top: 1px solid var(--line);
}

.next__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}

.next a {
  display: block;
  background: var(--bg);
  padding: clamp(32px, 5vw, 56px) 0;
  text-decoration: none;
  color: inherit;
}

.next a+a {
  padding-left: 0;
}

.next__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.next__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
  line-height: 1.15;
  color: var(--ink);
  margin-top: 12px;
  max-width: 22ch;
}

.next a:hover .next__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.next a svg {
  transition: transform .25s var(--ease);
}

.next a:hover svg {
  transform: translateX(4px);
}

.next a.prev:hover svg {
  transform: translateX(-4px);
}

@media (min-width: 800px) {
  .next__grid {
    grid-template-columns: 1fr 1fr;
  }

  .next a.is-next {
    text-align: right;
    padding-left: 32px;
  }

  .next a.is-next .next__label {
    justify-content: flex-end;
  }

  .next a.is-next .next__title {
    margin-left: auto;
  }

  .next a.prev {
    padding-right: 32px;
  }
}

/* ---------- About ---------- */
.about-hero {
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  grid-template-columns: 1fr;
  padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 96px);
  align-items: end;
}

.about-hero__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--stage);
  aspect-ratio: 4/5;
  max-width: 460px;
}

.about-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.about-hero h1 {
  max-width: 16ch;
  margin-top: 18px;
}

.about-hero .lede {
  margin-top: 24px;
  max-width: 38rem;
}

@media (min-width: 900px) {
  .about-hero {
    grid-template-columns: 1.35fr 1fr;
  }

  .about-hero__photo {
    justify-self: end;
    width: 100%;
  }
}

.hobbies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 24px);
  list-style: none;
}

.hobby {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.hobby__img {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--stage);
}

.hobby__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.hobby:hover .hobby__img img {
  transform: scale(1.03);
}

.hobby__cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

.hobby__cap b {
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.hobby__cap span {
  color: var(--muted);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

@media (min-width: 900px) {
  .hobbies {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Resume ---------- */
.resume-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.resume-head h1 {
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem);
}

.resume-head p {
  margin: 8px 0 0;
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 14px !important;
}

.resume-contact a {
  color: var(--ink-2);
  text-decoration: none;
}

.resume-contact a:hover {
  text-decoration: underline;
}

.resume {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 72px;
  padding-bottom: clamp(72px, 9vw, 120px);
}

.resume h2 {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-top: 40px;
  margin-bottom: 20px;
}

.job {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.job:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.job__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  align-items: baseline;
  margin-bottom: 12px;
}

.job__head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
}

.job__co {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  margin: 2px 0 0;
  width: 100%;
}

.job__when {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

.job ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.job li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.job li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.edu {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.edu:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.edu b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.edu span {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.chip--accent {
  border-color: #A9DEDE;
  background: var(--accent-wash);
  color: #0F8080;
}

@media (min-width: 1000px) {
  .resume {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  }

  .resume__side {
    position: sticky;
    top: calc(var(--nav-h) + 8px);
    align-self: start;
  }

  .job__head {
    flex-wrap: nowrap;
  }

  .job__co {
    width: auto;
  }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 96px);
  padding: clamp(48px, 7vw, 104px) 0 clamp(80px, 10vw, 136px);
}

.contact h1 {
  max-width: 14ch;
  margin-top: 18px;
}

.contact__direct {
  margin-top: 40px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact__direct li {
  border-bottom: 1px solid var(--line);
}

.contact__direct a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.contact__direct a small {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact__direct a>svg:last-child {
  margin-left: auto;
  color: var(--muted);
  transition: transform .25s var(--ease), color .2s;
}

.contact__direct a:hover>svg:last-child {
  transform: translate(3px, -3px);
  color: var(--ink);
}

.contact__direct .ic {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 22px;
  align-self: start;
}

.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.field textarea {
  min-height: 168px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8A8D95;
}

.field input:hover,
.field textarea:hover {
  border-color: #A9A69D;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 128, 128, .18);
}

.form .btn {
  width: 100%;
  justify-content: center;
  height: 52px;
}

.form__status {
  font-size: var(--fs-sm);
  margin: 0;
  min-height: 1.5em;
}

.form__status.is-ok {
  color: var(--accent-ink);
}

.form__status.is-err {
  color: #A1301F;
}

.hp {
  position: absolute;
  left: -9999px;
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Lightbox ---------- */
dialog.lb {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 15, 19, .94);
  color: #fff;
}

dialog.lb::backdrop {
  background: rgba(14, 15, 19, .6);
}

dialog.lb[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: lbIn .25s var(--ease);
}

@keyframes lbIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lb__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  gap: 16px;
}

.lb__count {
  font-size: var(--fs-sm);
  color: #A6A9B0;
  font-variant-numeric: tabular-nums;
  padding-left: 8px;
}

.lb__stage {
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(12px, 6vw, 96px);
  overscroll-behavior: contain;
}

.lb__stage.is-tall {
  align-items: flex-start;
}

.lb__stage img {
  max-width: min(1400px, 100%);
  max-height: 100%;
  width: auto;
  border-radius: 6px;
  background: #fff;
}

.lb__stage.is-tall img {
  max-height: none;
  width: min(1000px, 100%);
}

.lb__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 18px;
}

.lb__cap {
  font-size: var(--fs-sm);
  color: #D0D2D7;
  max-width: 70ch;
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
}

.lb .icon-btn {
  border-color: #3A3D45;
  color: #fff;
}

.lb .icon-btn:hover {
  border-color: #fff;
}

.lb[data-single] .lb__nav {
  visibility: hidden;
}

body.lb-open {
  overflow: hidden;
}

/* ---------- Password gate ---------- */
.locked body>*:not(#pw-gate) {
  visibility: hidden;
}

#pw-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity .4s var(--ease);
}

#pw-gate .pw-box {
  width: 100%;
  max-width: 380px;
}

#pw-gate img {
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
}

#pw-gate h1 {
  font-size: 2.2rem;
}

#pw-gate p {
  color: var(--muted);
  margin: 10px 0 28px;
  font-size: var(--fs-sm);
}

#pw-gate .pw-field {
  position: relative;
}

#pw-gate input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 14px 52px 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

#pw-gate input:focus {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px rgba(15, 128, 128, .18);
}

#pw-gate .pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#pw-gate .btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  height: 52px;
}

#pw-gate .pw-error {
  color: #A1301F;
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: var(--fs-sm);
}

#pw-gate.shake .pw-box {
  animation: shake .4s;
}

@keyframes shake {
  20% {
    transform: translateX(-8px);
  }

  60% {
    transform: translateX(8px);
  }

  80% {
    transform: translateX(-4px);
  }
}

/* ---------- Print ---------- */
@media print {

  .nav,
  .cta,
  .footer,
  .skip,
  .resume-dl {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .js .rv {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Case-study specifics ---------- */
.report-grid {
  display: grid;
  gap: 40px 32px;
  grid-template-columns: 1fr;
  align-items: start;
}

.report-grid figcaption {
  text-align: center;
  margin-inline: auto;
  max-width: 30ch;
}

.report-grid__doc .scrollframe__vp {
  max-height: 560px;
}

.device {
  max-width: 272px;
}

@media (min-width: 720px) {
  .report-grid {
    grid-template-columns: 1fr 1fr;
  }

  .report-grid__doc {
    grid-column: 1 / -1;
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (min-width: 1100px) {
  .report-grid {
    grid-template-columns: 1fr 1fr 1.3fr;
  }

  .report-grid__doc {
    grid-column: auto;
    max-width: none;
  }
}

.email-shot {
  max-width: 300px;
  margin-inline: auto;
}

.stage--center .zoom {
  display: flex;
  justify-content: center;
}

.note>span {
  display: block;
}

.compare .compare__col--after li b {
  color: #fff;
}

@media (min-width: 1000px) {
  .chapter--rail {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .chapter--split.chapter--flip {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

.cs-sec__grid,
.chapter,
.pair,
.summary,
.hero__grid,
.project__body {
  grid-template-columns: minmax(0, 1fr);
}

.cs-sec__grid>*,
.chapter>*,
.pair>* {
  min-width: 0;
}

@media (min-width: 720px) {
  .pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .pair--wide-narrow {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

@media (min-width: 900px) {
  .summary {
    grid-template-columns: 1fr 1fr 1.25fr;
  }

  .project__body {
    grid-template-columns: 1fr 1fr;
  }

  .projects-pair .project__body {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (min-width: 1000px) {

  .cs-sec__grid,
  .chapter--offset,
  .chapter--rail {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
  }

  .chapter--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }

  .chapter--split.chapter--flip {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .nav__toggle {
    order: 3;
  }
}

.table-wrap {
  position: relative;
}

table.comp td {
  position: relative;
}

/* ---------- White base: hairline borders instead of grey fills ---------- */
.stage,
.strip__track,
.project__media,
.index__media {
  border: 1px solid var(--line);
}

.cs-cover .stage {
  border-color: var(--line);
}

.stage--tight {
  background: #fff;
}

.project__media--inset,
.index__media--inset {
  background: #fff;
}

.theme-color-meta {}

/* ---------- Home hero: editorial grid with large portrait ---------- */
.hero {
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
}

.hero2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "eyebrow" "head" "photo" "body" "focus";
  gap: 28px;
}

.hero2__eyebrow {
  grid-area: eyebrow;
  margin: 0;
}

.hero2__eyebrow span {
  color: var(--line-strong);
  margin: 0 4px;
}

.hero2__head {
  grid-area: head;
  font-size: clamp(2.5rem, 1.2rem + 3.6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.hero2__head em {
  font-style: italic;
  color: var(--accent-ink);
}

.hero2__photo {
  grid-area: photo;
  margin: 8px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

.hero2__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  transition: transform 1.2s var(--ease);
}

.hero2__photo:hover img {
  transform: scale(1.02);
}

.hero2__body {
  grid-area: body;
}

.hero2__body .lede {
  margin-bottom: 28px;
}

.hero2__focus {
  grid-area: focus;
}

@media (min-width: 700px) and (max-width: 999px) {
  .hero2 {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "eyebrow eyebrow" "head head" "body photo" "focus photo";
    column-gap: 40px;
  }

  .hero2__photo {
    margin: 0;
    max-height: none;
    aspect-ratio: auto;
    min-height: 460px;
  }
}

@media (min-width: 1000px) {
  .hero2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(360px, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "eyebrow eyebrow photo" "head head photo" "body focus photo";
    column-gap: clamp(40px, 4vw, 64px);
    row-gap: 28px;
  }

  .hero2__photo {
    margin: 0;
    max-height: none;
    aspect-ratio: auto;
    min-height: 580px;
  }

  .hero2__head {
    margin-bottom: 20px;
  }

  .hero2__body,
  .hero2__focus {
    align-self: end;
  }
}

/* ---------- Readability pass on large headings ---------- */
/* Home hero headline only: smaller, sturdier letterforms, upright emphasis */
.hero .hero2__head {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 30;
  font-weight: 420;
}

.hero2__head {
  font-size: clamp(2.2rem, 1.35rem + 2.3vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.hero2__head em {
  font-style: normal;
}

/* Equal-size project grid */
.projects-pair .project__media img {
  object-position: center top;
}

.hero .hero2__head {
  font-size: clamp(2.2rem, 1.35rem + 2.3vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  max-width: 22ch;
}

.hero .hero2__head em {
  font-style: normal;
}

.projects-pair .project__media img {
  object-position: left top;
}

/* Hero spacing: tighter on desktop, scales down on mobile */
.hero {
  padding: clamp(24px, 3.5vw, 50px) 0 clamp(32px, 3.5vw, 50px);
}

/* Project cards (home Selected Work) */
.projects-pair {
  gap: clamp(20px, 2.4vw, 32px);
}

.projects-pair .project {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(12px, 1.4vw, 16px);
  transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease);
}

.projects-pair .project:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px -24px rgba(20, 22, 27, .28);
  transform: translateY(-2px);
}

.projects-pair .project:focus-visible {
  outline-offset: 4px;
  border-radius: var(--r-lg);
}

.projects-pair .project__media {
  border-radius: var(--r);
  border: 0;
  background: #F7F7F5;
}

.projects-pair .project__media--inset {
  background: #F7F7F5;
}

.projects-pair .project__body {
  margin-top: 0;
  padding: clamp(18px, 2vw, 24px) clamp(8px, 1.2vw, 12px) clamp(8px, 1vw, 12px);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.projects-pair .project__body>div:last-child {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.projects-pair .project__body .arrow-link {
  margin-top: auto;
}

.projects-pair .project__title {
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .projects-pair .project:hover {
    transform: none;
  }
}

.projects-pair .project__media,
.projects-pair .project__media--inset {
  background: #fff;
  border: 1px solid var(--line);
}

.projects-pair .project__facts {
  margin: 0 0 20px;
}

/* Role / Platform / Timeline on project cards */
.project__dl {
  display: grid;
  grid-template-columns: 1.3fr 1fr .8fr;
  gap: 12px 20px;
  margin: 4px 0 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project__dl dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.project__dl dd {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

@media (max-width: 480px) {
  .project__dl {
    grid-template-columns: 1fr 1fr;
  }

  .project__dl>div:first-child {
    grid-column: 1 / -1;
  }
}

/* Stats section with title */
.proof {
  padding: clamp(48px, 6vw, 80px) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.proof__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 40px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.proof__head .eyebrow {
  margin-bottom: 12px;
}

.proof__head h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
}

.proof__head .proof__note {
  border: 0;
  padding: 0;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.proof__inner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof__label {
  max-width: 26ch;
}

/* Experience: label only, no headline */

/* ==========================================================================
   Global spacing pass: tighter, consistent vertical rhythm
   Section spacing token: 48px (mobile) → 80px (desktop)
   ========================================================================== */
:root {
  --space-section: clamp(48px, 6vw, 80px);
  --space-block: clamp(28px, 3.5vw, 48px);
}

.section {
  padding: var(--space-section) 0;
}

.section-head {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.proof {
  padding-top: var(--space-section);
}

.cta {
  padding: var(--space-section) 0;
}

.cta__inner {
  gap: 28px;
}

/* Case studies */
.cs-hero {
  padding-top: clamp(24px, 3.5vw, 48px);
}

.back {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.cs-cover {
  margin-top: clamp(28px, 3.5vw, 48px);
}

.facts {
  margin-top: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(24px, 3vw, 36px);
}

.summary {
  padding-top: clamp(28px, 3.5vw, 44px);
}

.cs {
  padding-bottom: var(--space-section);
}

.cs-sec {
  padding-top: var(--space-section);
}

.full {
  margin-top: var(--space-block);
}

.full+.full {
  margin-top: clamp(20px, 2.5vw, 32px);
}

.chapter {
  margin-top: clamp(40px, 5vw, 64px);
}

.feature-row {
  margin-top: clamp(40px, 5vw, 64px);
}

.next a {
  padding: clamp(28px, 3.5vw, 44px) 0;
}

/* Other pages */
.page-head {
  padding-block: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 40px);
}

.about-hero {
  padding: clamp(28px, 4vw, 56px) 0 var(--space-section);
}

.contact {
  padding: clamp(28px, 4vw, 56px) 0 var(--space-section);
}

.resume-head {
  padding: clamp(28px, 4vw, 56px) 0 clamp(24px, 3vw, 36px);
}

.resume {
  padding-bottom: var(--space-section);
}

.resume h2 {
  padding-top: 32px;
}

.work-end {
  height: var(--space-section);
}

/* Footer CTA band: 50px on desktop, scales down on mobile */
.cta {
  padding: clamp(32px, 3.5vw, 50px) 0;
}

/* Nav: keep labels on one line; drop the brand subtitle before it crowds the links */
.nav__links a {
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .brand small {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav__links li {
    width: 100%;
  }

  .nav__links a {
    display: flex;
    width: 100%;
  }

  .nav__links a.nav__cta {
    justify-content: center;
  }
}

/* Case study section headings: static, not sticky.
   Full-width images and panels share the grid with the heading column,
   so a sticky heading would sit on top of them while scrolling. */
@media (min-width: 1000px) {
  .cs-sec__aside {
    position: static;
    top: auto;
  }
}

.progress {
  display: none;
}

/* ---------- Consistent expand control: icon only, same everywhere ---------- */
.scrollframe__expand {
  width: 36px;
  height: 36px;
  padding: 0;
  gap: 0;
  justify-content: center;
  border-radius: 999px;
  background: rgba(20, 22, 27, .72);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .2s, transform .2s var(--ease), background-color .2s;
}

.scrollframe__expand svg {
  width: 16px;
  height: 16px;
}

.scrollframe:hover .scrollframe__expand,
.scrollframe__expand:focus-visible {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .scrollframe__expand {
    opacity: .9;
    transform: none;
    width: 32px;
    height: 32px;
  }
}

/* Phone mockups in strips are not expandable */
.strip__item img {
  cursor: default;
}

/* ---------- Centered captions ---------- */
figcaption,
.caption {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Dark statement panels: 48px on desktop (8pt grid), scales down on mobile */
.panel-dark {
  padding: clamp(24px, 3.4vw, 48px);
}

/* ==========================================================================
   Consistency pass
   ========================================================================== */
/* Restore: smaller, more legible page titles site-wide (approved change) */
:root {
  --fs-h1: clamp(2.1rem, 1.45rem + 2vw, 3.25rem);
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 30;
  font-weight: 420;
}

.cs-hero h1,
.page-head h1 {
  max-width: 24ch;
}

.resume-head h1 {
  font-size: var(--fs-h1);
}

/* Section headings (h2) share one size; CTA headline matches instead of outsizing page titles */
.cta h2 {
  font-size: var(--fs-h2);
  max-width: 20ch;
}

.proof__head h2 {
  font-size: var(--fs-h2);
}

/* One style for sub-section headings inside case studies */
.chapter__text h3,
.feature-row__head h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.005em;
}

/* White everywhere: no grey fills on interactive states or chips */
.nav__links a:hover {
  background: transparent;
  color: var(--ink);
}

.nav__links a[aria-current="page"] {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}

.nav__links a.nav__cta,
.nav__links a.nav__cta:hover,
.nav__links a.nav__cta[aria-current="page"] {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
  border-radius: 999px;
}

@media (max-width: 760px) {
  .nav__links a[aria-current="page"] {
    box-shadow: none;
  }
}

.chip--accent {
  background: #fff;
  border-color: var(--line);
  color: var(--accent-ink);
}

/* ==========================================================================
   Home hero (matches mock): name block, headline, wide intro | square photo + focus areas
   ========================================================================== */
.hero3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "id" "head" "photo" "body" "focus";
  row-gap: 28px;
}

.hero3__id {
  grid-area: id;
}

.hero3__name {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #000;
}

.hero3__role {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  line-height: 1.35;
  color: var(--ink);
}

.hero .hero3__head {
  grid-area: head;
  margin: 12px 0 0;
  font-size: clamp(2.2rem, 1.35rem + 2.3vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 30;
  font-weight: 420;
  max-width: 21ch;
}

.hero .hero3__head em {
  font-style: normal;
  color: #0F8080;
}

.hero3__photo {
  grid-area: photo;
  margin: 0;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
}

.hero3__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero3__body {
  grid-area: body;
  margin-top: 8px;
}

.hero3__lede {
  margin: 0 0 36px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 36em;
}

.hero3__focus {
  grid-area: focus;
}

.hero3__focus .eyebrow {
  margin: 0 0 16px;
}

.hero3__focus .focus-list li {
  font-size: 1rem;
  padding: 15px 0;
}

@media (min-width: 900px) {
  .hero3 {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "id photo" "head photo" "body focus";
    column-gap: clamp(48px, 6vw, 96px);
    row-gap: 0;
  }

  .hero .hero3__head {
    margin-top: clamp(40px, 4.5vw, 64px);
  }

  .hero3__body {
    margin-top: clamp(40px, 4vw, 56px);
  }

  .hero3__photo {
    align-self: start;
    margin-top: 16px;
  }

  .hero3__focus {
    margin-top: clamp(40px, 4vw, 56px);
  }
}

/* hero3 tuning to mock proportions */
@media (min-width: 900px) {
  .hero3 {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    column-gap: clamp(48px, 5.5vw, 88px);
  }

  .hero .hero3__head {
    margin-top: 48px;
  }

  .hero3__photo {
    max-width: none;
  }
}

.hero .hero3__head {
  font-weight: 480;
  color: var(--ink);
  max-width: 22ch;
}

.hero3__lede {
  color: #45484F;
  max-width: none;
  margin-bottom: 44px;
}

/* hero3: tighter stack between role, headline and intro */
.hero .hero3__head {
  margin-top: 24px;
}

.hero3__body {
  margin-top: 24px;
}

.hero3__focus {
  margin-top: 24px;
}

.hero3__lede {
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .hero .hero3__head {
    margin-top: 28px;
  }

  .hero3__body {
    margin-top: 28px;
  }

  .hero3__focus {
    margin-top: 28px;
  }

  .hero3 {
    grid-template-rows: auto auto auto;
  }
}

/* hero3: two independent columns so the photo height never stretches the text rows */
.hero3__left,
.hero3__right {
  display: contents;
}

@media (min-width: 900px) {
  .hero3 {
    grid-template-areas: none;
    grid-template-rows: none;
    align-items: start;
  }

  .hero3__left,
  .hero3__right {
    display: block;
  }

  .hero3__right {
    padding-top: 8px;
  }
}

@media (max-width: 899px) {
  .hero3 {
    row-gap: 0;
  }

  .hero3__photo {
    margin-top: 24px;
  }
}

/* hero3: tight stack on desktop too (role -> headline -> intro) */
.hero .hero3__head {
  margin-top: 14px;
  line-height: 1.06;
}

.hero3__body {
  margin-top: 18px;
}

@media (min-width: 900px) {
  .hero .hero3__head {
    margin-top: 14px;
  }

  .hero3__body {
    margin-top: 18px;
  }
}

/* Project cards: border on the card only, not on the image; no rule above Role/Platform/Timeline */
.projects-pair .project__media,
.projects-pair .project__media--inset {
  border: 0;
}

.project__dl {
  border-top: 0;
  border-bottom: 0;
  padding-top: 4px;
  padding-bottom: 0;
}

/* Page titles (h1) match the home page section headings (h2) in size and style.
   The home hero headline keeps its own, larger style. */
:root {
  --fs-h1: var(--fs-h2);
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: normal;
}

.cs-hero h1,
.page-head h1 {
  max-width: 28ch;
}

.about-hero h1,
.contact h1 {
  max-width: 20ch;
}

/* Mobile menu: active page shown in bold teal, no dot */
@media (max-width: 760px) {
  .nav__links a[aria-current="page"]::after {
    content: none;
    display: none;
  }

  .nav__links a[aria-current="page"]:not(.nav__cta) {
    color: var(--accent-ink);
    font-weight: 600;
  }
}

/* ---------- About me: story left, staggered photo stack right ---------- */
.aboutme {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: clamp(28px, 4vw, 56px) 0 var(--space-section);
}

.aboutme h1 {
  margin-bottom: 20px;
}

.aboutme__copy p {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 1.1em;
  max-width: 38rem;
}

.aboutme__stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.aboutme__img {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
}

.aboutme__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aboutme__img--1 img {
  object-position: 50% 30%;
}

@media (min-width: 900px) {
  .aboutme {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }

  .aboutme__stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
  }

  .aboutme__img {
    width: 62%;
    border-radius: 22px;
  }

  .aboutme__img--1 {
    align-self: flex-end;
  }

  .aboutme__img--2 {
    align-self: center;
    margin-left: -6%;
  }

  .aboutme__img--3 {
    align-self: flex-start;
  }
}

/* About me: closer match to reference, evenly stepped cascade from right to left */
@media (min-width: 900px) {
  .aboutme {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .aboutme__stack {
    display: block;
    padding-top: 4px;
  }

  .aboutme__img {
    width: 60%;
    border-radius: 22px;
  }

  .aboutme__img+.aboutme__img {
    margin-top: 12px;
  }

  .aboutme__img--1 {
    margin-left: 40%;
  }

  .aboutme__img--2 {
    margin-left: 20%;
  }

  .aboutme__img--3 {
    margin-left: 0;
  }
}

.aboutme__img--1 img {
  object-position: 50% 40%;
}

.aboutme__copy p {
  max-width: 36rem;
}

.aboutme__img {
  border: 1px solid var(--line);
  background: #fff;
}

/* About me: single portrait on the right */
.aboutme__portrait {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 460px;
  width: 100%;
}

.aboutme__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

@media (min-width: 900px) {
  .aboutme__portrait {
    justify-self: end;
    margin-top: 8px;
  }
}

@media (max-width: 899px) {
  .aboutme__portrait {
    order: -1;
    max-width: none;
    aspect-ratio: 1 / 1;
  }

  .aboutme {
    gap: 28px;
  }
}

/* ---------- Lightbox v2: arrows centered on the image, optional thumbnail strip ---------- */
dialog.lb[open] {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.lb__main {
  position: relative;
  min-height: 0;
  display: flex;
}

.lb__main .lb__stage {
  flex: 1;
  height: 100%;
  padding: 0 clamp(64px, 8vw, 120px);
}

.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  background: rgba(20, 22, 27, .6);
}

.lb__nav:hover {
  background: rgba(20, 22, 27, .9);
}

.lb__nav--prev {
  left: clamp(8px, 2vw, 24px);
}

.lb__nav--next {
  right: clamp(8px, 2vw, 24px);
}

.lb__bottom {
  justify-content: center;
  padding: 14px 16px 10px;
}

.lb__thumbs {
  display: none;
}

.lb[data-thumbs] .lb__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 16px 18px;
  justify-content: safe center;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .3) transparent;
}

.lb__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #2A2D35;
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s, border-color .2s;
}

.lb__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb__thumb:hover {
  opacity: .9;
}

.lb__thumb.is-active {
  opacity: 1;
  border-color: #15ABAB;
}

@media (max-width: 600px) {
  .lb__main .lb__stage {
    padding: 0 8px;
  }

  .lb__nav {
    width: 40px;
    height: 40px;
  }

  .lb__thumb {
    width: 52px;
    height: 52px;
  }
}

dialog.lb {
  background: #0E0F13;
}

dialog.lb::backdrop {
  background: #0E0F13;
}

/* ---------- Key strengths (home) ---------- */
.strengths {
  padding-top: 0;
}

.strengths__head {
  text-align: center;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
}

.pill svg {
  color: var(--accent-ink);
}

.strengths__head h2 {
  margin-top: 16px;
}

.strengths__grid {
  list-style: none;
  display: grid;
  gap: clamp(14px, 1.8vw, 24px);
  grid-template-columns: minmax(0, 1fr);
}

.strength {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: clamp(22px, 2.4vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.strength__icon {
  color: var(--accent);
  display: flex;
  padding-top: 4px;
}

.strength h3 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}

.strength p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

@media (min-width: 720px) {
  .strengths__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .strengths__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Case study steps: text left (sticky), visuals stacked right ---------- */
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.full.step+.full.step {
  margin-top: clamp(56px, 6vw, 88px);
  padding-top: clamp(56px, 6vw, 88px);
  border-top: 1px solid var(--line);
}

.step__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.8rem + 1.6vw, 3.25rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}

.step__text .eyebrow {
  margin-bottom: 8px;
}

.step__text h3 {
  margin-bottom: 10px;
}

.step__text p {
  color: var(--ink-2);
}

.step__text p+p {
  margin-top: 1em;
}

.step__visuals {
  display: grid;
  gap: clamp(28px, 3vw, 40px);
}

@media (min-width: 1000px) {
  .step {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
    column-gap: 64px;
    align-items: start;
  }

  .step__text {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
  }
}

.strip__item img {
  filter: none;
  box-shadow: none;
}

.cs-sec h2 {
  margin-top: 0;
}

/* Table header: light grey */
table.comp thead th {
  background: #F5F4F0;
}

/* Decision panel: checkmarks, tighter uniform rows */
.panel-decision {
  align-items: center;
}

.panel-decision .mini li {
  padding: 7px 0;
  gap: 12px;
  line-height: 1.4;
  align-items: flex-start;
  border: 0;
}

.panel-decision .mini li:first-child,
.panel-decision .mini li:last-child {
  border: 0;
}

.panel-decision .mini li svg {
  color: #15ABAB;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Intro blocks inside a section (text only) */
.step--intro .step__text {
  position: static;
}

.strip {
  width: 100%;
}

/* Carousel controls: no counter, prominent arrows */
.strip__controls {
  justify-content: flex-end;
}

.strip__btns {
  gap: 12px;
}

.strip__btns .icon-btn {
  width: 52px;
  height: 52px;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.strip__btns .icon-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

.strip__btns .icon-btn:hover:not(:disabled) {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.strip__btns .icon-btn:disabled {
  background: #fff;
  border-color: var(--line);
  color: #B7B9BE;
  opacity: 1;
}

/* Prev/next nav when a side has only its label */
.next a .next__label:only-child {
  font-size: var(--fs-sm);
}

.chapter__text h3.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.4;
}

.next a .next__label:only-child {
  font-size: var(--fs-xs);
}

.facts dt {
  color: var(--accent-ink);
}

.project__dl {
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  column-gap: 20px;
}

.project__dl dt {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .project__dl {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }
}

.chapter--skills {
  grid-template-columns: minmax(0, 1fr) !important;
}

.chapter--skills .chapter__text {
  max-width: none;
  grid-column: 1 / -1;
}

.outcomes {
  border-top: 0;
}

/* Images inside a bordered stage: no second outline, just the soft shadow */
:root {
  --shadow-shot: 0 14px 32px -18px rgba(20, 22, 27, .22);
}

/* older-project note: quiet, secondary */
.note {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  padding: 12px 14px;
}

/* lighter teal on dark surfaces for contrast (6.8:1 on #0E0F13) */
.panel-dark,
.cta,
.compare__col--after,
.lb {
  --accent: #15ABAB;
  --accent-ink: #15ABAB;
}

/* ---- Type scale consolidation (font audit) ---- */
:root {
  --fs-title-sm: 1.5rem;
  --fs-title: clamp(1.4rem, 1.05rem + 1.1vw, 1.9rem);
}

.job__head h3,
.xp__co,
.compare__col h3,
.outcomes h3 {
  font-size: var(--fs-title-sm);
}

.projects-pair .project__title,
.pull p,
.panel-dark p,
.next__title {
  font-size: var(--fs-title);
}

.hero3__role {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
}

.strength h3 {
  font-size: var(--fs-h3);
}

table.comp td.yes svg {
  vertical-align: -3px;
}

.compare__col li i,
table.comp i {
  font-style: normal;
}

.xp__co {
  font-weight: 500;
}

.table-legend svg {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 2px;
}

/* contact: tighter form so the page fits common laptop screens */
.contact {
  padding: clamp(24px, 3vw, 40px) 0 clamp(32px, 3.4vw, 48px);
}

.form {
  padding: clamp(24px, 2.6vw, 36px);
  gap: 16px;
}

.field textarea {
  min-height: 124px;
}

.form__status {
  min-height: 0;
}

.form__status:empty {
  display: none;
}


/* ==== Home page: greeting hero, focus band, impact cards ==== */
.hi {
  padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 64px);
  text-align: center
}

.hi__head {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.025em;
  font-size: clamp(3rem, 1.2rem + 6.4vw, 7rem);
  line-height: 1;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .12em .22em
}

.hi__photo {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  border-radius: .2em;
  overflow: hidden;
  transform: translateY(-.13em) rotate(-6deg);
  border: 4px solid #fff;
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(14, 15, 19, .07), 0 6px 14px rgba(14, 15, 19, .12);
  flex-shrink: 0;
  transition: transform .4s ease
}

.hi__photo:hover {
  transform: translateY(-.13em) rotate(3deg) scale(1.04)
}

.hi__photo img {
  width: 100%;
  height: 100%;
  border-radius: .13em;
  object-fit: cover;
  object-position: 50% 30%;
  display: block
}

.hi__lede {
  font-size: clamp(1.0625rem, 1rem + .5vw, 1.375rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 36em;
  margin: clamp(24px, 3vw, 36px) auto 0
}

.hi__lede em {
  font-style: normal;
  color: var(--accent-ink);
  font-weight: 500
}

.hi__down {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  margin-top: clamp(32px, 4vw, 56px);
  color: var(--ink);
  animation: bob 2.4s ease-in-out infinite
}

.hi__down:hover {
  border-color: var(--ink)
}

.hi__down svg {
  transform: rotate(90deg)
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(6px)
  }
}

@media (prefers-reduced-motion:reduce) {
  .hi__down {
    animation: none
  }

  .hi__photo {
    transition: none
  }
}

.fg {
  list-style: none;
  margin: 0;
  padding: clamp(24px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 22px clamp(24px, 3vw, 48px)
}

.fg li {
  display: flex;
  align-items: center;
  gap: 16px
}

.fg__ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #EEF6F6;
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0
}

.fg b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--ink)
}

.fg li span:not(.fg__ic) {
  display: block;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 2px
}

@media(min-width:640px) {
  .fg {
    grid-template-columns: 1fr 1fr
  }
}

@media(min-width:1000px) {
  .fg {
    grid-template-columns: repeat(3, 1fr)
  }
}

.hF .hi {
  padding-bottom: clamp(44px, 5vw, 72px)
}

.hF .hero__actions {
  justify-content: center;
  margin-top: clamp(36px, 4vw, 56px) !important
}

.hF .hi__lede {
  font-size: clamp(1.1875rem, 1rem + .75vw, 1.625rem);
  line-height: 1.55;
  max-width: 32em
}

.hF .fg {
  text-align: left;
  margin-bottom: 0;
  border-top: 0;
  padding-top: clamp(8px, 1vw, 12px)
}

.hF+#work {
  padding-top: clamp(32px, 4vw, 48px)
}

.cs-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0
}

.whyme {
  padding-top: 0
}

.whyme__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: clamp(24px, 3vw, 40px)
}

.whyme__head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm)
}

.proof-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(14px, 1.8vw, 24px);
  grid-template-columns: minmax(0, 1fr)
}

.proof-card {
  padding: clamp(22px, 2.4vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column
}

.proof-card__num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 2rem + 1.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent-ink);
  font-variant-numeric: lining-nums
}

.proof-card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--ink)
}

.proof-card p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0
}

@media(min-width:640px) {
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(min-width:1100px) {
  .proof-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }
}

.job__co {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink);
  margin-top: 4px;
}

.chip {
  padding: 6px 12px;
}

/* ---- Top navigation: hover + active states ---- */
.nav__label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.nav__label::after {
  content: attr(data-text);
  font-weight: 600;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

/* reserves bold width: no layout shift */
@media (min-width: 761px) {
  .nav__links a:not(.nav__cta) {
    position: relative;
    border-radius: 0;
    box-shadow: none !important;
    transition: color .2s ease;
  }

  .nav__links a:not(.nav__cta)::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-ink);
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0;
  }

  .nav__links a:not(.nav__cta):hover {
    color: var(--accent-ink);
    background: transparent;
  }

  .nav__links a[aria-current="page"]:not(.nav__cta) {
    color: var(--accent-ink);
    font-weight: 600;
  }

  .nav__links a[aria-current="page"]:not(.nav__cta)::before {
    transform: scaleX(1);
    opacity: 1;
  }

  .nav__links a:not(.nav__cta):focus-visible {
    outline: 2px solid var(--accent-ink);
    outline-offset: 2px;
    border-radius: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__links a::before {
    transition: none !important;
  }
}

/* Standalone text links (e.g. Full Resume): teal on hover, like the top navigation */
a.arrow-link {
  transition: color .2s ease;
}

a.arrow-link:hover {
  color: var(--accent-ink);
}

/* About portrait: keep it a sensible size on tablets and show the full head on small screens */
@media (max-width: 899px) {
  .aboutme__portrait {
    max-width: 440px;
  }

  .aboutme__portrait img {
    object-position: 50% 12%;
  }
}

/* ---- Case study cards (Home + Case Studies page) ---- */
.projects-pair .project__title {
  margin-top: 12px;
  font-size: clamp(1.375rem, 1.15rem + .55vw, 1.625rem);
  line-height: 1.18;
}

.project:hover .project__title span,
.project:focus-visible .project__title span {
  background-size: 0 1px;
}

.project__dl {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
  margin-bottom: 24px;
}

/* ---- Contact page: footer docked to the bottom of the viewport ---- */
body.contact-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.contact-page>main {
  flex: 1 0 auto;
}

body.contact-page>.footer {
  flex-shrink: 0;
}


/* ==== Case study summary: journey line (Problem → Solution → Impact) ==== */
.se__meta {
  list-style: none;
  margin: clamp(20px, 2.5vw, 28px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.se__meta li {
  display: inline-block;
  padding: 8px 14px;
  line-height: 1.45;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: var(--fs-sm);
  color: var(--ink);
  font-weight: 500;
  background: #fff
}

.se__meta li svg {
  color: var(--accent-ink);
  vertical-align: -3px;
  margin-right: 8px
}

.se__meta li span {
  color: var(--muted);
  font-weight: 400
}

.se {
  margin-top: clamp(36px, 4.5vw, 56px);
  display: grid;
  gap: 36px;
  position: relative
}

.se__step {
  position: relative;
  padding-left: 36px
}

.se__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent-ink);
  box-sizing: border-box
}

.se__step::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 22px;
  bottom: -34px;
  width: 2px;
  background: var(--line)
}

.se__step:last-child::after {
  display: none
}

.se__step--imp::before {
  background: var(--accent-ink)
}

.se h2 {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--accent-ink)
}

.se p {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink)
}

.se ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px
}

.se li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink)
}

.se li svg {
  color: var(--accent-ink);
  margin-top: 4px
}

@media(min-width:900px) {
  .se {
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: clamp(28px, 3.5vw, 56px);
    padding-top: 34px
  }

  .se::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 7px;
    height: 2px;
    background: var(--line)
  }

  .se__step {
    padding-left: 0
  }

  .se__step::before {
    top: -34px
  }

  .se__step::after {
    display: none
  }
}

.se__meta li svg {
  width: 20px;
  height: 20px;
  vertical-align: -5px;
  margin-right: 8px;
}

/* Completed Inspection Report: no heavy drop shadows on the phone mockups or PDF */
.report-grid .device {
  box-shadow: inset 0 0 0 1.5px #3A3D44;
}

.report-grid .scrollframe,
.report-grid .device__screen {
  box-shadow: none;
}

.report-grid .report-grid__doc .scrollframe {
  outline: 1px solid var(--line);
}

@media (max-width: 599px) {
  .hi__photo {
    border-width: 3px;
  }
}

.resume-head h1 {
  font-weight: 600;
}

/* Password page: centered brand block, more space above the button */
#pw-gate .pw-box {
  text-align: center;
}

#pw-gate img {
  display: block;
  margin: 0 auto 24px;
}

#pw-gate .pw-field input {
  text-align: left;
}

#pw-gate .btn {
  margin-top: 20px;
}

#pw-gate .pw-help {
  margin: 4px 0 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

#pw-gate .pw-help a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#pw-gate .pw-error:empty {
  display: none;
}

#pw-gate .pw-help {
  margin-top: 16px;
}

/* Password page: field label + helper hint */
#pw-gate .pw-label {
  display: block;
  text-align: left;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

#pw-gate .pw-hint {
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: left;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent-ink);
  margin: 10px 0 0;
}

#pw-gate .pw-hint svg {
  flex-shrink: 0;
}

/* Resume skills: one "Skills" section, bold group labels, pills */
.resume__side {
  position: static;
}

.skill-group {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  margin: 22px 0 10px;
}

.resume__side h2+.skill-group {
  margin-top: 0;
}

/* Password page: more space between the helper hint and the button */
#pw-gate .pw-hint+.btn {
  margin-top: 40px;
}

/* Password page: space between the name and the Password label */
#pw-gate h1 {
  margin-bottom: 32px;
}