/* ==========================================================
   Harrison Lester — portfolio
   Style guide pulled from résumé + cover letter
   Cream  #F5EEDC  ·  Blue #17587B  ·  Sky #84B3CD
   Display: Oswald (bold, condensed, all caps)
   Text:    Montserrat
   ========================================================== */

:root {
  --cream: #F5EEDC;
  --blue: #17587B;
  --sky: #84B3CD;

  --paper: var(--cream);
  --ink: var(--blue);
  --ink-deep: #0E3D57;
  --soft: rgba(23, 88, 123, .62);
  --rule: var(--blue);
  --panel: var(--sky);
  --shade: #0E3D57;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --gut: clamp(16px, 2vw, 28px);
  --nav-h: 64px;
  color-scheme: light;
}
/* Brand palette is fixed: the site always uses the résumé colours, whatever the visitor's system theme. */
:root[data-theme="dark"] {
  --paper: var(--blue);
  --ink: var(--cream);
  --ink-deep: #CFC4A6;
  --soft: rgba(245, 238, 220, .66);
  --rule: var(--cream);
  --shade: #06202F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--sky); color: var(--blue); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }

.display {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: .012em;
  margin: 0;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  margin: 0;
}

/* ---------- line masks (used everywhere for display type) ---------- */
.ln { display: block; overflow: hidden; padding: .06em 0 .04em; margin: -.06em 0 -.04em; }
.ln > span { display: block; }
html.js .ln > span { transform: translateY(110%); }
html.js .in .ln > span,
html.js .ln.in > span {
  transform: none;
  transition: transform 1.1s var(--ease-out) calc(var(--d, 0s) + var(--i, 0) * 90ms);
}

/* ---------- generic reveals ---------- */
html.js [data-r="up"] { opacity: 0; transform: translateY(36px); }
html.js [data-r="up"].in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
html.js [data-r="fade"] { opacity: 0; }
html.js [data-r="fade"].in { opacity: 1; transition: opacity 1.2s ease var(--d, 0s); }

/* rule that draws from left */
.rule { position: relative; }
.rule::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--rule); transform-origin: left;
}
html.js .rule::after { transform: scaleX(0); }
html.js .rule.in::after { transform: scaleX(1); transition: transform 1.2s var(--ease-io) var(--d, 0s); }

.topline { height: 2px; }

/* image clip reveal */
.media { position: relative; overflow: hidden; margin: 0; background: color-mix(in srgb, var(--sky) 35%, transparent); }
.media img { width: 100%; height: 100%; object-fit: cover; }
html.js .media[data-r] { background: transparent; }
html.js .media[data-r] img { clip-path: inset(100% 0 0 0); transform: scale(1.22); }
html.js .media[data-r].in img {
  clip-path: inset(0 0 0 0); transform: scale(1);
  transition: clip-path 1.25s var(--ease-io) var(--d, 0s), transform 1.8s var(--ease-out) var(--d, 0s);
}
html.js .p-hero.contain[data-r] { background: var(--sky); }
html.js .portrait[data-r] { background: var(--blue); }

/* ---------- page curtain (load + leave) ---------- */
.curtain {
  /* taller than any viewport (incl. mobile toolbars + overscroll bounce) so it always reaches the bottom */
  position: fixed; left: 0; right: 0; top: -15vh; z-index: 150; pointer-events: none;
  height: 130vh; height: calc(100lvh + 30vh);
  background: var(--blue); color: var(--cream);
  display: grid; place-items: center;
  transform: translateY(-101%);
}
.curtain svg { width: 56px; height: 56px; animation: spin 1.4s linear infinite; }
html.js .curtain { animation: curtainOut .9s var(--ease-io) .05s both; }
html.leaving .curtain { animation: curtainIn .55s var(--ease-io) both; pointer-events: all; }
@keyframes curtainOut { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes curtainIn { from { transform: translateY(101%); } to { transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 120;
  background: var(--sky); transform-origin: left; transform: scaleX(0);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gut);
  font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  transition: transform .6s var(--ease-io), background-color .4s ease;
}
.nav.solid { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.hide { transform: translateY(-100%); }
.nav-links { display: flex; gap: clamp(20px, 5vw, 72px); }
.nav a { position: relative; padding: 6px 0; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 11px; height: 11px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-60 -60 120 120' fill='%2384B3CE'><rect x='-11' y='-58' width='22' height='58' rx='11' transform='rotate(0)'/><rect x='-11' y='-58' width='22' height='58' rx='11' transform='rotate(45)'/><rect x='-11' y='-58' width='22' height='58' rx='11' transform='rotate(90)'/><rect x='-11' y='-58' width='22' height='58' rx='11' transform='rotate(135)'/><rect x='-11' y='-58' width='22' height='58' rx='11' transform='rotate(180)'/><rect x='-11' y='-58' width='22' height='58' rx='11' transform='rotate(225)'/><rect x='-11' y='-58' width='22' height='58' rx='11' transform='rotate(270)'/><rect x='-11' y='-58' width='22' height='58' rx='11' transform='rotate(315)'/></svg>") center / contain no-repeat;
  transform: translateX(-50%);
}
html.js .nav > * { opacity: 0; transform: translateY(-14px); }
html.js .nav > *.in { opacity: 1; transform: none; transition: opacity .8s ease var(--d), transform .9s var(--ease-out) var(--d); }

/* letter-by-letter roll on hover */
.roll { position: relative; display: inline-flex; overflow: hidden; vertical-align: top; }
.roll-a, .roll-b { display: inline-flex; white-space: pre; }
.roll-b { position: absolute; left: 0; top: 100%; }
.roll .c { display: inline-block; transition: transform .42s var(--ease-io) calc(var(--i) * 22ms); }
a:hover .roll .c, button:hover .roll .c, a:focus-visible .roll .c { transform: translateY(-100%); }

/* arrow nudges */
.arrow { display: inline-block; transition: transform .45s var(--ease-out); }
a:hover .arrow, button:hover .arrow { transform: translateX(6px); }
a:hover .arrow.ne { transform: translate(4px, -4px); }

/* ==========================================================
   HOME
   ========================================================== */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 340px;
  padding: calc(var(--nav-h) + 4px) var(--gut) var(--gut);
  overflow: hidden;
}
.hero-type {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
}
/* the name and title on the homepage never move: only the asterisk animates */
html.js .hero-block .ln > span { transform: none; transition: none; }
.hero .display { font-size: clamp(44px, min(11.2vw, 19vh), 300px); line-height: .94; letter-spacing: .014em; }
/* portrait screens: pull the two blocks toward the middle so the asterisk can bridge them */
@media (max-aspect-ratio: 1/1) {
  .hero-type { justify-content: center; gap: min(46vw, 30vh); }
  .hero .display { font-size: min(17vw, 15vh); }
}
.hero-block .ln { display: block; }
.hero-block.end { text-align: right; }

/* the asterisk lives in front of the type and casts its shadow across it */
.star-wrap {
  position: absolute; left: 50%; top: 52%;
  width: min(40vw, 60vh); aspect-ratio: 1;
  translate: -50% -50%;
  z-index: 2;
  cursor: grab;
  will-change: transform;
}
html.js .star-wrap { animation: starIn 1.6s var(--ease-out) .55s both; }
@keyframes starIn { from { opacity: 0; scale: .2; rotate: -120deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
.star-shadow {
  position: absolute; inset: 8%;
  color: var(--shade); opacity: .3;
  filter: blur(clamp(10px, 1.6vw, 22px));
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: transform;
}
.star-shadow svg { width: 100%; height: 100%; display: block; }
.star3d { position: absolute; inset: 0; perspective: 1000px; }
.star-rot { position: absolute; inset: 8%; transform-style: preserve-3d; will-change: transform; }
.star-rot .layer { position: absolute; inset: 0; color: #5B8FAE; }
.star-rot .layer.face { color: #84B3CE; }
.star-rot svg { width: 100%; height: 100%; display: block; }

/* ==========================================================
   PAGE SHELL
   ========================================================== */
.page { padding: calc(var(--nav-h) + clamp(32px, 8vh, 96px)) var(--gut) 0; }
.section-title { font-size: clamp(44px, 6.4vw, 108px); margin: 0 0 clamp(28px, 3.2vw, 52px); }
.count { font-family: "Montserrat", sans-serif; font-size: .28em; font-weight: 600; vertical-align: top; letter-spacing: 0; margin-left: .2em; }

/* ---------- ABOUT (mirrors the reference: desktop >=1200 / tablet 810-1199 / phone <810) ---------- */
.about-page {
  --ab-intro: 66px; --ab-indent: 44%; --ab-gap1: 144px; --ab-gap2: 400px; --ab-sec: 200px;
  --ab-row: 56px; --ab-desc: 24px; --ab-copy: 24px; --ab-copy-w: 410px;
  padding: 120px 24px 0;
}
.about-page .about-intro {
  font-size: var(--ab-intro); font-weight: 500; line-height: 1.04; letter-spacing: -.03em;
  text-indent: var(--ab-indent); margin: 0;
}
.about-intro .w { transition: opacity .25s linear; }

.ab-media {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0;
  align-items: end; margin-top: var(--ab-gap1);
}
.ab-copy {
  margin: 0; max-width: var(--ab-copy-w);
  font-size: var(--ab-copy); line-height: 1.12; letter-spacing: -.02em; font-weight: 400;
}
.portrait { aspect-ratio: 1 / 1; width: 100%; background: var(--blue); }
.portrait img { position: absolute; left: 0; top: -40px; height: calc(100% + 80px); }
.portrait .duo { filter: grayscale(1) contrast(1.15) brightness(1.05); mix-blend-mode: screen; }

.about-page .section-title { margin: var(--ab-sec) 0 clamp(24px, 3vw, 44px); }
.about-page .section-title.ab-first { margin-top: var(--ab-gap2); }
.about-page .topline { height: 4px; }
.about-page .rule::after { height: 4px; }
.about-page .kit .rule::after { height: 2px; }

/* accordion rows — reference rows: 10px over, 13px under, 4px divider, years in a right column */
.rows { margin: 0; padding: 0; list-style: none; }
.row-btn {
  position: relative; width: 100%; text-align: left;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; column-gap: 20px;
  padding: 10px 0 13px;
  font-size: var(--ab-row);
}
.row-title { font-weight: 600; line-height: 1.06; letter-spacing: -.025em; transition: transform .6s var(--ease-out); }
.row-btn .yrs { font-weight: 600; line-height: 1.06; letter-spacing: -.025em; color: var(--soft); text-align: right; white-space: nowrap; transition: color .3s; }
.row-btn:hover .yrs, .row-btn[aria-expanded="true"] .yrs { color: var(--ink); }
.row-btn .ico {
  width: 0; margin-right: -20px; overflow: hidden; display: inline-flex; justify-content: flex-start; align-self: center;
  transition: width .6s var(--ease-out), margin .6s var(--ease-out);
}
.row-btn .ico svg { width: .62em; height: .62em; flex: none; transition: transform .6s var(--ease-out); }
.row-btn:hover .ico, .row-btn[aria-expanded="true"] .ico { width: .7em; margin-right: 0; }
.row-btn[aria-expanded="true"] .ico svg { transform: rotate(180deg); }
.row-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-io); }
.row-panel > div { overflow: hidden; }
li.open .row-panel { grid-template-rows: 1fr; }
.row-body { padding: 4px 0 28px; max-width: 1200px; font-size: var(--ab-desc); line-height: 1.12; letter-spacing: -.02em; }
.row-body .where { font-weight: 600; margin: 0 0 .5em; }
.row-body ul { margin: 0; padding: 0; list-style: none; }
.row-body li { margin-bottom: .35em; }
.row-body > * { transform: translateY(16px); opacity: 0; transition: opacity .4s ease, transform .5s var(--ease-out); }
li.open .row-body > * { opacity: 1; transform: none; transition-delay: .2s; }

@media (max-width: 1199px) {
  .about-page {
    --ab-intro: 45px; --ab-indent: 30%; --ab-gap1: 144px; --ab-gap2: 210px; --ab-sec: 150px;
    --ab-row: 40px; --ab-desc: 22px; --ab-copy: 22px; --ab-copy-w: 305px;
  }
}
@media (max-width: 809px) {
  .about-page {
    --ab-intro: 28px; --ab-indent: 22%; --ab-gap1: 84px; --ab-gap2: 110px; --ab-sec: 96px;
    --ab-row: 28px; --ab-desc: 20px; --ab-copy: 22px; --ab-copy-w: none;
  }
  .ab-media { grid-template-columns: 1fr; row-gap: 50px; }
  .ab-media .portrait { order: -1; }
  .row-btn { column-gap: 14px; }
}

/* toolkit + awards */
.kit { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); margin-bottom: clamp(96px, 14vh, 180px); }
.kit h3 { margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .01em; padding-bottom: 12px; }
.kit p, .kit ul { margin: 0; padding: 0; list-style: none; font-size: 16px; }
.kit li { padding: 4px 0; line-height: 1.45; transition: transform .4s var(--ease-out); }
.kit li:hover { transform: translateX(8px); }
.kit .em { font-weight: 700; display: block; }
.kit li + li .em { margin-top: 10px; }

/* fun facts */
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
  margin: 0 0 clamp(96px, 14vh, 180px); padding: 0; list-style: none;
}
.fact {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(180px, 15vw, 230px);
  padding: clamp(22px, 2vw, 32px);
  border: 2px solid var(--rule); border-radius: 20px;
  font-size: clamp(18px, 1.4vw, 22px); font-weight: 500; line-height: 1.38; letter-spacing: -.01em;
  transition: transform .5s var(--ease-out), background-color .35s ease, color .35s ease;
}
.fact .star { display: block; width: 26px; height: 26px; margin-bottom: 32px; flex: none; transition: transform .9s var(--ease-out); }
.fact p { margin: 0; max-width: 22ch; }
.fact:hover { background: var(--ink); color: var(--paper); transform: rotate(var(--tilt, -1.5deg)) translateY(-6px); }
.fact:hover .star { transform: rotate(180deg) scale(1.15); }
.fact:nth-child(even) { --tilt: 1.5deg; }

/* ---------- WORK INDEX ---------- */
.work-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; font-weight: 600; font-size: 14px; }
.work-list { list-style: none; margin: 0 0 clamp(96px, 14vh, 180px); padding: 0; }
.work-row {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--gut);
  padding: .2em 0 .16em; font-size: clamp(48px, 8.4vw, 156px);
  transition: opacity .45s ease;
}
.work-row .display { display: flex; align-items: center; gap: .14em; line-height: .96; }
.work-row .name { transition: transform .7s var(--ease-out); }
.work-row .go {
  width: 0; overflow: hidden; display: inline-flex; flex: none;
  transition: width .7s var(--ease-out);
}
.work-row .go svg { width: .6em; height: .6em; flex: none; transform: translateX(-100%); transition: transform .7s var(--ease-out); }
.work-row .meta { font-family: "Montserrat", sans-serif; font-size: 14px; line-height: 1.35; text-align: right; font-weight: 500; min-width: 0; }
.work-row .meta b { display: block; font-weight: 700; }
@media (hover: hover) {
  .work-row:hover .go, .work-row:focus-visible .go { width: .78em; }
  .work-row:hover .go svg, .work-row:focus-visible .go svg { transform: none; }
  .work-list:hover .work-row:not(:hover) { opacity: .28; }
}

.preview {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 240px; height: 300px; transform-origin: 50% 50%;
}
.preview-in {
  position: absolute; inset: 0; overflow: hidden; border-radius: 6px;
  transform: scale(.4); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .35s ease;
  box-shadow: 0 30px 60px -20px rgba(14, 61, 87, .45);
}
.preview.on .preview-in { transform: scale(1); opacity: 1; }
.preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0); transform: scale(1.2);
  transition: clip-path .6s var(--ease-io), transform .9s var(--ease-out);
}
.preview img.on { clip-path: inset(0); transform: scale(1); z-index: 1; }

/* ---------- PROJECT ---------- */
.p-head { margin-bottom: clamp(36px, 6vh, 72px); }
.p-head .eyebrow { margin-bottom: 14px; }
.p-title { font-size: clamp(64px, 12.4vw, 250px); line-height: .94; }
.p-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .02em; margin: -.06em 0 -.02em; }
.p-title .ch { display: inline-block; }
html.js .p-title .ch { transform: translateY(110%); }
html.js .p-title.in .ch { transform: none; transition: transform 1s var(--ease-out) calc(var(--d, 0s) + var(--i) * 32ms); }

.p-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); margin-top: clamp(28px, 5vh, 56px); }
.p-meta > div { padding-top: 12px; }
.p-meta dt { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.p-meta dd { margin: 0; font-size: 16px; }

.p-hero { height: min(88vh, 62vw); margin: 0 calc(var(--gut) * -1); }
.p-hero:not(.contain) img { height: calc(100% + 90px); margin-top: -45px; }
.p-hero.contain { background: var(--sky); display: grid; place-items: center; padding: clamp(24px, 5vw, 72px); }
.p-hero.contain img { width: auto; height: 100%; max-width: 100%; object-fit: contain; box-shadow: 0 30px 60px -24px rgba(14, 61, 87, .5); }

.p-intro {
  font-size: clamp(22px, 2.6vw, 44px); font-weight: 500; line-height: 1.18; letter-spacing: -.02em;
  margin: clamp(64px, 12vh, 160px) 0; padding-left: 26%;
}
.p-intro p { margin: 0 0 .7em; }
.p-intro .sub { font-size: 16px; line-height: 1.6; font-weight: 400; letter-spacing: 0; max-width: 560px; }

.g-row { display: flex; gap: clamp(10px, 1.2vw, 18px); margin-bottom: clamp(10px, 1.2vw, 18px); }
.g-row figure { min-width: 0; }
.g-row img { height: auto; }
.g-row figure { align-self: flex-start; }
.g-row figure:hover img { transform: scale(1.035) !important; transition: transform 1s var(--ease-out) !important; }
.g-panel { background: var(--sky); padding: clamp(28px, 6vw, 110px); justify-content: center; align-items: center; }
.g-panel figure { background: transparent; }
.g-label { font-weight: 700; font-size: 14px; margin: clamp(48px, 8vh, 96px) 0 14px; }

.p-statement { margin: clamp(96px, 16vh, 200px) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); align-items: end; }
.p-statement .display { font-size: clamp(52px, 7.6vw, 140px); }
.p-statement p { max-width: 460px; justify-self: end; margin: 0; }

.points { list-style: none; margin: 0 0 clamp(96px, 16vh, 200px); padding: 0; }
.points li {
  display: grid; grid-template-columns: 26% 1fr; gap: var(--gut); align-items: baseline;
  padding: 18px 0 20px; font-size: clamp(18px, 1.6vw, 26px); font-weight: 500; letter-spacing: -.01em; line-height: 1.3;
}
.points .n { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 15px; transition: transform .5s var(--ease-out); display: inline-block; }
.points li:hover .n { transform: translateX(10px); }

.next {
  display: block; position: relative; overflow: hidden;
  margin: 0 calc(var(--gut) * -1); padding: clamp(28px, 5vh, 56px) var(--gut);
  isolation: isolate;
}
.next::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease-io);
}
.next:hover::before, .next:focus-visible::before { transform: scaleY(1); }
.next .eyebrow, .next .display { transition: color .5s ease .1s; }
.next:hover .eyebrow, .next:hover .display, .next:focus-visible .display { color: var(--paper); }
.next .display { font-size: clamp(44px, 6.4vw, 108px); display: flex; align-items: center; gap: .1em; margin-top: 10px; }
.next .display svg { width: .55em; height: .55em; flex: none; transition: transform .8s var(--ease-out); }
.next:hover .display svg { transform: translateX(.2em); }

/* ---------- CONTACT ---------- */
.contact-big { font-size: clamp(64px, 11.4vw, 230px); margin-bottom: clamp(36px, 7vh, 80px); }
.contact-intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); margin-bottom: clamp(40px, 8vh, 96px); }
.contact-intro p { margin: 0; max-width: 500px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; line-height: 1.4; grid-column: 2; }
.c-rows { list-style: none; margin: 0 0 clamp(96px, 14vh, 180px); padding: 0; }
.c-row { display: grid; grid-template-columns: 26% 1fr auto; gap: var(--gut); align-items: center; padding: 16px 0 14px; }
.c-row .lbl { font-weight: 700; font-size: 14px; }
.c-row a.val { font-family: "Oswald", sans-serif; font-weight: 500; font-size: clamp(24px, 3.2vw, 54px); line-height: 1.05; display: inline-flex; gap: .3em; align-items: center; word-break: break-word; }
.c-row a.val svg { width: .55em; height: .55em; flex: none; opacity: 0; transform: translate(-10px, 10px); transition: transform .5s var(--ease-out), opacity .3s; }
.c-row a.val:hover svg, .c-row a.val:focus-visible svg { opacity: 1; transform: none; }
.copy-btn {
  font-size: 13px; font-weight: 700; padding: 8px 16px; border: 2px solid var(--rule); border-radius: 99px;
  transition: background-color .3s, color .3s, transform .3s var(--ease-out);
}
.copy-btn:hover { background: var(--ink); color: var(--paper); }
.copy-btn:active { transform: scale(.94); }
.copy-btn.done { background: var(--sky); border-color: var(--sky); color: var(--blue); }

/* ---------- FOOTER: résumé contact bar ---------- */
.cbar {
  position: relative; isolation: isolate; margin-top: clamp(80px, 12vh, 160px);
  color: var(--paper);
  overflow: hidden; /* hover-roll copies must not poke out below the band */
}
.cbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform-origin: bottom; }
.cbar-in { padding: clamp(36px, 5vw, 64px) var(--gut) 20px; }
.cbar-main {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start;
  column-gap: clamp(28px, 3.4vw, 72px); row-gap: 28px;
  padding-bottom: clamp(32px, 4.5vw, 56px);
}
.cbar-title {
  display: inline-flex; align-items: center; gap: .22em;
  font-size: clamp(40px, 4.6vw, 72px); line-height: .95; letter-spacing: .01em; margin: 0;
}
.cbar-star { display: inline-flex; width: .62em; height: .62em; transition: transform 1.2s var(--ease-out); }
.cbar-star svg { width: 100%; height: 100%; }
.cbar:hover .cbar-star { transform: rotate(180deg); }
.cbar-cols {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: end;
  column-gap: clamp(32px, 5vw, 88px); row-gap: 24px; margin: .35em 0 0;
}
.cbar-col dt { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cbar-col dd { margin: 0; font-size: clamp(15px, 1.05vw, 18px); line-height: 1.35; white-space: nowrap; }
.cbar-col a { display: inline-flex; align-items: center; gap: 6px; }
.cbar-col .arrow.dn { transition: transform .45s var(--ease-out); }
.cbar-col a:hover .arrow.dn { transform: translateY(3px); }
.cbar-base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--paper) 35%, transparent);
  font-size: 14px; font-weight: 500;
}
.cbar.slim .cbar-in { padding-top: 22px; }
.cbar.slim .cbar-base { border-top: 0; padding-top: 0; }
.to-top { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.to-top .arrow.up { transition: transform .45s var(--ease-out); }
.to-top:hover .arrow.up { transform: translateY(-3px); }

/* band wipes up from the bottom, then its contents rise in */
html.js .cbar[data-r]::before { transform: scaleY(0); }
html.js .cbar[data-r].in::before { transform: scaleY(1); transition: transform 1.1s var(--ease-io); }
html.js .cbar[data-r] .cbar-title, html.js .cbar[data-r] .cbar-col, html.js .cbar[data-r] .cbar-base { opacity: 0; transform: translateY(22px); }
html.js .cbar[data-r].in .cbar-title, html.js .cbar[data-r].in .cbar-col, html.js .cbar[data-r].in .cbar-base {
  opacity: 1; transform: none;
  transition: opacity .7s ease calc(.45s + var(--i, 0) * 70ms), transform .9s var(--ease-out) calc(.45s + var(--i, 0) * 70ms);
}
html.js .cbar[data-r].in .cbar-base { --i: 6; }

@media (max-width: 1000px) {
  .cbar-main { grid-template-columns: 1fr; }
  .cbar-cols { justify-content: start; column-gap: 48px; }
}
@media (max-width: 900px) {
  .cbar-cols { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .cbar-col dd { white-space: normal; overflow-wrap: anywhere; }
  .cbar-col:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .cbar[data-r]::before, html.js .cbar[data-r] * { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .p-statement { grid-template-columns: 1fr; }
  .p-statement p { justify-self: start; }
  .p-intro { padding-left: 0; }
  .work-row .meta { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { font-size: 15px; }
  .nav-links { gap: 18px; }
  .fact { min-height: 0; }
  .fact .star { margin-bottom: 22px; }
  .p-meta { grid-template-columns: 1fr; gap: 18px; }
  .p-hero { height: 70vw; }
  .p-hero:not(.contain) img { height: calc(100% + 90px); margin-top: -45px; }
.p-hero.contain { height: auto; }
  .p-hero.contain img { height: auto; max-height: 70vh; }
  .g-row { flex-direction: column; }
  .g-row figure { flex: none !important; }
  .points li { grid-template-columns: 48px 1fr; }
  .c-row { grid-template-columns: 1fr auto; row-gap: 2px; }
  .c-row .lbl { grid-column: 1 / -1; }
  .c-row a.val { font-size: 19px; word-break: normal; }
  .contact-intro { grid-template-columns: 1fr; }
  .contact-intro p { grid-column: 1; }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .ln > span, html.js [data-r], html.js .media[data-r], html.js .media[data-r] img,
  html.js .p-title .ch, html.js .nav > *, html.js .media[data-r] img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  html.js .rule::after { transform: none !important; }
  html.js .curtain { display: none; }
}

/* spec work label */
.spec-tag {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-family: "Montserrat", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: none;
  line-height: 1; padding: 5px 9px 4px; border: 1.5px solid currentColor; border-radius: 99px;
}
.spec-tag.big { font-size: clamp(11px, .16em, 16px); margin-left: .25em; align-self: center; transition: background-color .3s, color .3s; }
@media (hover: hover) { .work-row:hover .spec-tag.big { background: var(--ink); color: var(--paper); border-color: var(--ink); } }

@media (max-width: 1199px) { .kit { grid-template-columns: 1fr 1fr; row-gap: 48px; } .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 809px) { .kit { grid-template-columns: 1fr; row-gap: 40px; } .facts { grid-template-columns: 1fr; } }

/* the preview takes over the info column while it is showing */
.work-row .meta { transition: opacity .35s ease; }
@media (hover: hover) and (pointer: fine) { .work-list.previewing .work-row .meta { opacity: 0; } }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .work-row .display { white-space: nowrap; }
}

/* homepage: nothing moves except the asterisk */
body.home .roll .c { transition: none; }
body.home a:hover .roll .c, body.home a:focus-visible .roll .c { transform: none; }
html.js body.home .nav > * { opacity: 1; transform: none; transition: none; }
body.home .nav { transition: none; }

/* contact rows: every row matches the email row (which holds the 40px Copy button) */
.copy-btn { height: 40px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }
.c-row a.val { min-height: 40px; }

/* while the blue loading screen is up, nothing of the page may peek through:
   the scrollbar gutter and the canvas behind the page (overscroll) turn blue too */
html.is-loading, html.leaving { background: #17587B; scrollbar-color: #17587B #17587B; }
@media (prefers-reduced-motion: reduce) { html.is-loading { background: none; scrollbar-color: auto; } }

/* long links (email, phone, LinkedIn): a quick underline instead of the letter roll */
.uline {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size .3s var(--ease-out);
}
a:hover .uline, a:focus-visible .uline { background-size: 100% 1.5px; }

/* ==========================================================
   ABOUT — reorganized: intro+portrait / who I am / experience /
   education+awards / toolkit / off the clock
   ========================================================== */
.about-page { --ab-intro: 54px; --ab-indent: 20%; --ab-gap1: 120px; --ab-gap2: 180px; --ab-sec: 180px; --ab-who: 24px; }

/* 1. intro + portrait share the first screen */
.ab-hero {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  column-gap: clamp(24px, 3.2vw, 56px); align-items: start;
}
.ab-hero .about-intro { margin: 0; }
.ab-hero .portrait { margin-top: .5em; max-height: calc(100vh - 160px); justify-self: end; width: 100%; max-width: calc(100vh - 160px); }

/* 2. who I am — sits in the right-hand column, under the portrait's edge */
.ab-who { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: clamp(24px, 3.2vw, 56px); margin-top: var(--ab-gap1); }
.ab-who .ab-copy { grid-column: 2; max-width: 560px; font-size: var(--ab-who); line-height: 1.25; }

/* 3. experience + résumé link */
.ab-resume {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-weight: 700; font-size: 18px; padding-bottom: 4px; border-bottom: 2px solid currentColor;
}
.ab-resume .arrow.dn { transition: transform .45s var(--ease-out); }
.ab-resume:hover .arrow.dn { transform: translateY(3px); }

/* 4. education + awards, side by side and quieter than experience */
.ab-creds {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(28px, 4vw, 72px); row-gap: 72px; margin-top: var(--ab-sec);
}
.about-page .ab-creds .section-title { margin-top: 0; }
.section-title.sub { font-size: clamp(36px, 3.6vw, 60px); }
.srows { list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--rule); }
.srow { padding: 16px 0 20px; }
.srow-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: clamp(20px, 1.8vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.srow-yrs { flex: none; font-size: .68em; font-weight: 600; color: var(--soft); }
.srow-detail { margin: 8px 0 0; font-size: 16px; line-height: 1.5; max-width: 54ch; }

/* 5. toolkit: software only */
.kit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kit li { font-size: 18px; }

@media (max-width: 1199px) {
  .about-page { --ab-intro: 34px; --ab-indent: 14%; --ab-gap1: 96px; --ab-gap2: 140px; --ab-sec: 140px; --ab-who: 21px; }
  .ab-hero, .ab-who { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .kit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 809px) {
  .about-page { --ab-intro: 28px; --ab-indent: 18%; --ab-gap1: 56px; --ab-gap2: 110px; --ab-sec: 96px; --ab-who: 20px; }
  .ab-hero, .ab-who, .ab-creds { grid-template-columns: 1fr; }
  .ab-hero .portrait { margin-top: 40px; max-width: none; max-height: none; justify-self: stretch; }
  .ab-who .ab-copy { grid-column: 1; }
  .ab-creds { row-gap: 64px; }
  .kit { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}

/* intro + who-I-am stacked on the left, portrait on the right spanning both */
.ab-hero { grid-template-areas: "intro photo" "copy photo"; grid-template-rows: auto 1fr; }
.ab-hero .about-intro { grid-area: intro; }
.ab-hero .ab-copy { grid-area: copy; align-self: start; margin-top: clamp(28px, 3vw, 48px); max-width: 600px; font-size: var(--ab-who); line-height: 1.3; }
.ab-hero .portrait { grid-area: photo; }
.about-page .ab-hero + .section-title.ab-first { margin-top: var(--ab-gap2); }
@media (max-width: 809px) {
  .ab-hero { grid-template-areas: "intro" "photo" "copy"; grid-template-rows: auto; }
  .ab-hero .ab-copy { margin-top: 40px; }
}
/* intro scales with the screen so the text column stays about as tall as the portrait */
@media (min-width: 1200px) {
  .about-page { --ab-intro: clamp(40px, 3.75vw, 84px); }
  .ab-hero .portrait { max-width: min(calc(100vh - 160px), 860px); max-height: min(calc(100vh - 160px), 860px); }
}
/* trimmed copy: intro can run larger, and four fact cards sit in one even row */
@media (min-width: 1200px) { .about-page { --ab-intro: clamp(48px, 4.6vw, 100px); } }
.facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* side-by-side sizes: the portrait's bottom edge lines up with the bottom of the second paragraph.
   The photo has no height of its own here; it stretches to the text column and crops to fit. */
@media (min-width: 810px) {
  .ab-hero .portrait {
    align-self: stretch; aspect-ratio: auto; height: auto;
    max-height: none; max-width: none; min-height: 0;
  }
  .ab-hero .ab-copy { margin-bottom: 0; }
  .ab-hero .portrait img { object-position: 50% 30%; }
}

/* toolkit: same compact rows as Education / Awards — group left, tools right */
.kit-rows .srow { padding: 18px 0 20px; }
.kit-rows .srow-head { align-items: baseline; }
.srow-tools { font-size: .72em; font-weight: 500; letter-spacing: -.01em; text-align: right; }
@media (max-width: 640px) {
  .kit-rows .srow-head { flex-direction: column; gap: 4px; }
  .srow-tools { text-align: left; font-size: 16px; font-weight: 400; letter-spacing: 0; }
}
@media (min-width: 810px) { .kit-rows { max-width: calc((100% - clamp(28px, 4vw, 72px)) / 2); } }

/* ==========================================================
   TYPE SCALE — six steps (desktop px in brackets)
   XL  section headings            [92]  .section-title
   L   intro + footer "CONTACT"    [66]  --ab-intro / .cbar-title
   M   sub-headings + job titles   [52]  --t-m
   B   body large                  [24]  --t-body
   S   details, years, links       [16]  --t-s
   XS  labels, legal               [14]  --t-xs
   ========================================================== */
:root {
  --t-m: clamp(28px, 3.6vw, 60px);
  --t-body: clamp(18px, 1.667vw, 24px);
  --t-s: 16px;
  --t-xs: 14px;
}
/* M */
.section-title.sub { font-size: var(--t-m); }
.about-page { --ab-row: var(--t-m); }
@media (max-width: 1199px) { .about-page { --ab-row: var(--t-m); } }
@media (max-width: 809px)  { .about-page { --ab-row: var(--t-m); } }
/* B */
.about-page { --ab-who: var(--t-body); --ab-desc: var(--t-body); }
@media (max-width: 1199px) { .about-page { --ab-who: var(--t-body); --ab-desc: var(--t-body); } }
@media (max-width: 809px)  { .about-page { --ab-who: var(--t-body); --ab-desc: var(--t-body); } }
.srow-head { font-size: var(--t-body); }
.fact { font-size: var(--t-body); }
/* S */
.srow-yrs, .srow-tools, .srow-detail { font-size: var(--t-s); }
.srow-tools { font-weight: 500; letter-spacing: 0; }
.ab-resume { font-size: var(--t-s); }
.cbar-col dd { font-size: var(--t-s); }
/* XS */
.cbar-col dt, .cbar-base, .to-top { font-size: var(--t-xs); }
/* L: intro and footer "CONTACT" share one size on tablet and up */
@media (min-width: 810px) {
  :root { --t-l: clamp(34px, 4.6vw, 100px); }
  .cbar-title { font-size: var(--t-l); }
  .about-page { --ab-intro: var(--t-l); }
}

/* toolkit now lives in the right-hand column beside Education */
.ab-creds .kit-rows { max-width: none; }

/* footer footnote explaining the asterisk */
.cbar-base { align-items: flex-end; }
.cbar-legal { display: flex; flex-direction: column; gap: 6px; }
.cbar-note { margin: 0; font-size: var(--t-xs); font-weight: 400; line-height: 1.45; opacity: .75; max-width: 62ch; }
.cbar-note-star { display: inline-block; width: .8em; height: .8em; margin-right: .45em; vertical-align: -.05em; }
.cbar-note-star svg { width: 100%; height: 100%; display: block; }
@media (min-width: 1000px) { .cbar-note { max-width: none; } }

/* Project titles: never break inside a word; phone size fits the longest word */
.p-title .w { white-space: nowrap; }
@media (max-width: 515px) { .p-title { font-size: min(calc((100vw - 32px) / 6.7), 64px); } }
@media (max-width: 420px) { .p-statement .display { font-size: min(calc((100vw - 32px) / 6.7), 52px); } }
@media (max-width: 340px) {
  .work-row .display { font-size: 42px; }
  .c-row { grid-template-columns: minmax(0, 1fr) auto; }
  .c-row .lbl { grid-column: 1 / -1; }
  .c-row a.val { font-size: 16px; }
}

/* Next project: cream at rest, sits on the footer, fills light blue on hover; copy stays primary blue */
.next { background: var(--paper); color: var(--ink); }
.next::before { background: var(--sky); }
.next .eyebrow, .next .display,
.next:hover .eyebrow, .next:hover .display, .next:focus-visible .eyebrow, .next:focus-visible .display { color: var(--ink); }
.has-next .cbar { margin-top: 0; }
.g-row + .next { margin-top: clamp(96px, 16vh, 200px); }

/* Tall ad mockups: sit side by side at a set height in the panel */
.g-tall figure { flex: 0 1 auto; width: min(31%, calc(78vh * var(--r))); }
@media (max-width: 809px) { .g-tall figure { width: min(100%, calc(78vh * var(--r))); } }
.p-hero.contain:has(img[data-locked]), .p-hero.contain.fit { height: auto; }
.p-hero.contain:has(img[data-locked]) img, .p-hero.contain.fit img { box-shadow: none; height: min(78vh, 760px); width: auto; max-width: 100%; transform: none !important; }
@media (max-width: 640px) { .p-hero.contain:has(img[data-locked]) img, .p-hero.contain.fit img { height: auto; width: 100%; max-height: none; } }

/* ---------- password-protected projects ---------- */
.lock { min-height: 62vh; }
.unlocking .lock { visibility: hidden; }
.lock-form { max-width: 560px; margin-top: clamp(32px, 6vh, 64px); padding-bottom: clamp(72px, 12vh, 140px); }
.lock-form > p:first-child { margin: 0 0 clamp(24px, 4vh, 36px); font-size: 18px; line-height: 1.45; font-weight: 500; }
.lock-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.lock-field { display: flex; align-items: stretch; border: 2px solid var(--ink); }
.lock-field:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.lock-field input { flex: 1; min-width: 0; padding: 14px 16px; border: 0; border-radius: 0; outline: 0; background: transparent; color: var(--ink); font: 500 18px/1.2 "Montserrat", sans-serif; }
.lock-field button { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 18px; border: 0; border-radius: 0; background: var(--ink); color: var(--paper); font: 600 16px/1 "Montserrat", sans-serif; cursor: pointer; }
.lock-field button svg { width: 16px; height: 16px; transition: transform .5s var(--ease-out); }
.lock-field button:hover svg { transform: translateX(4px); }
.lock-field button:disabled { opacity: .6; cursor: progress; }
.lock-note { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.lock-ask { margin: 18px 0 0; font-size: 14px; font-weight: 500; }
.lock-ask a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lock-form.wrong .lock-field { animation: lockShake .4s var(--ease-out); }
@keyframes lockShake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .lock-form.wrong .lock-field { animation: none; } }

/* narrow phones: name and all three links stay on one line, inside the margins */
@media (max-width: 359px) {
  .nav { font-size: 13px; }
  .nav-links { gap: 12px; }
}

/* homepage: a way down from the hero, then four projects */
.hero-cue {
  position: absolute; left: var(--gut); bottom: var(--gut); z-index: 3;
  font-size: 14px; font-weight: 600;
}
.home-work { padding: 44px var(--gut) 64px; scroll-margin-top: var(--nav-h); }
.home-work .work-head { justify-content: flex-end; }
.home-work .work-head a { display: inline-flex; gap: .4em; }
.hw-grid { list-style: none; margin: var(--gut) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); }
.hw-tile { display: block; }
.hw-tile .media { aspect-ratio: 4 / 5; }
.hw-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
html.js .hw-tile:hover .media[data-r].in img { transform: scale(1.03); }
.hw-name { display: block; margin-top: 12px; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.1; }
.hw-meta { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; }
@media (max-width: 900px) { .hw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hw-tile img { transition: none; } }

/* project facts: room for a year when there is one */
@media (min-width: 641px) { .p-meta:has(> :nth-child(4)) { grid-template-columns: repeat(4, 1fr); } }

/* a cover with type in it shows whole, on sky, instead of being cropped */
.hw-tile .media.fit img { object-fit: contain; padding: 8%; background: var(--sky); }
body.home .cbar { margin-top: 0; }

/* phones: experience titles get the width, the years drop to a quiet label */
@media (max-width: 640px) {
  .row-btn .row-title { font-size: 20px; line-height: 1.2; min-width: 0; flex: 1 1 0; }
  .row-btn .yrs { font-size: 14px; flex: none; }
}
