/* Caroline Yim — portfolio styles. No framework; fluid type and spacing via clamp(). */
@font-face { font-family: 'Bricolage Grotesque'; src: url(/assets/fonts/v2/bricolage-grotesque-var.woff2) format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/assets/fonts/v2/inter-var.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fragment Mono'; src: url(/assets/fonts/v2/fragment-mono.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --paper: #f9f9f9;
  --paper-2: #efefef;
  --card: #ffffff;
  --ink: #161514;
  --ink-2: #4a4744;      /* body text on paper: 8.6:1 */
  --muted: #6b6762;      /* secondary text: 5.3:1 */
  --line: #e4e4e4;
  --accent: #2a9cc8;     /* stingray teal-blue */
  --accent-soft: #dff1f8;
  --deep: #17414d;       /* doodle ink, deep sea teal */
  --sun: #f2c14e;        /* yellow accent */
  --sun-soft: #fdefc2;
  --blush: #f4b393;
  --serif: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Fragment Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1180px;
  --gutter: clamp(20px, 7vw, 112px);
  --radius: 18px;
  --radius-sm: 12px;
  --space: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --peach: #f5a25d;
  --green: #4fb889;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper) url(/assets/paper-texture.webp) repeat 0 0 / 700px; color: var(--ink); font: 400 17px/1.6 var(--sans); font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.i { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.fill { fill: currentColor; stroke: none; }
.i .dot { fill: currentColor; }

/* ---------- type ---------- */
h1 { font: 600 clamp(46px, 6.4vw, 92px)/.95 var(--serif); letter-spacing: -.025em; }
h2 { font: 600 clamp(36px, 4.6vw, 60px)/1.02 var(--serif); letter-spacing: -.03em; }
h1 em, h2 em, .footer-title em, .hero-statement em { font-style: normal; color: var(--accent); }
.eyebrow::before { content: '+'; color: var(--sun); font-weight: 700; margin-right: .55em; }
.eyebrow { font: 400 13px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; margin-top: 22px; text-wrap: pretty; }

/* ---------- glass ---------- */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.22));
  -webkit-backdrop-filter: blur(16px) saturate(1.7);
  backdrop-filter: blur(16px) saturate(1.7);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -8px 20px rgba(255,255,255,.28), 0 14px 34px -18px rgba(24,48,90,.32);
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 10px; z-index: 40; width: calc(100% - var(--gutter) * 2); max-width: var(--wrap); margin: 10px auto 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 54px; padding: 0 7px 0 20px; border-radius: 999px; transition: box-shadow .3s; }
.site-header.scrolled .header-inner { box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 16px 40px -18px rgba(24,48,90,.4); }
.brand { display: flex; align-items: center; }
.brand .sig { width: 58px; height: auto; overflow: visible; }
.brand .sig path { stroke-width: 2.4; }
.site-header nav ul { display: flex; align-items: center; gap: 2px; }
.site-header nav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.site-header nav a:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.site-header nav a[aria-current="page"] { position: relative; color: var(--deep); font-weight: 600; background: var(--sun-soft); }
.site-header .nav-cta { background: var(--ink); color: #fff !important; margin-left: 6px; }
.site-header .nav-cta:hover { background: #000; }
@media (max-width: 640px) {
  .header-inner { padding-left: 14px; }
  .brand .sig { width: 48px; }
  .site-header nav ul { gap: 0; }
  .site-header nav a { padding: 0 9px; min-height: 40px; font-size: 14px; }
  .site-header .nav-cta { margin-left: 2px; padding-inline: 12px; }
}
@media (max-width: 370px) {
  .site-header nav a { padding: 0 6px; font-size: 13.5px; }
  .site-header .nav-cta .i { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15.5px; font-weight: 500; transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-outline { border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-ghost-light { border: 1px solid rgba(249, 249, 249, .5); color: var(--paper); }
.btn-ghost-light:hover { border-color: var(--paper); }
.btn-glass { color: var(--ink); border-color: rgba(255,255,255,.85); }
.btn-glass:hover { background: rgba(255,255,255,.85); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 3px solid var(--sun); padding-bottom: 2px; transition: color .2s; }
.link-arrow:hover { color: var(--accent); }
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- sections ---------- */
.section { padding-block: var(--space) 0; }
.section.tight { padding-top: 40px; }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head .lede { margin-top: 14px; }
.page-head { padding-top: clamp(36px, 5vw, 64px); }
.lede-wide { max-width: none; }

/* ---------- home hero ---------- */
.hero { position: relative; padding: clamp(28px, 4vw, 48px) 0 44px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { position: relative; z-index: 1; }

/* name: each letter hops like a cartoon when touched */
.hero-name { white-space: nowrap; cursor: default; }
.hop { cursor: default; }
.hop .w { display: inline-block; white-space: nowrap; }
.hop .l { display: inline-block; transform-origin: 50% 100%; transition: color 1.2s var(--ease); }
.hop .l:nth-child(4n+1) { --c: var(--accent); }
.hop .l:nth-child(4n+2) { --c: var(--sun); }
.hop .l:nth-child(4n+3) { --c: #5cc0b5; }
.hop .l:nth-child(4n) { --c: #f39a7b; }
.hop .l.boing { color: var(--c); transition: color .12s; animation: boing .85s both; }
@keyframes boing {
  0%   { transform: none; animation-timing-function: cubic-bezier(.3, 0, .6, 1); }
  14%  { transform: scale(1.18, .78); animation-timing-function: cubic-bezier(.2, .8, .4, 1); }
  42%  { transform: translateY(-.32em) scale(.88, 1.16) rotate(-4deg); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  64%  { transform: translateY(0) scale(1.14, .84); animation-timing-function: cubic-bezier(.2, .8, .4, 1); }
  80%  { transform: translateY(-.06em) scale(.97, 1.04); }
  100% { transform: none; }
}

.hero-statement { font: 400 clamp(21px, 2.15vw, 29px)/1.35 var(--serif); letter-spacing: -.01em; margin-top: 22px; text-wrap: balance; }
.wavy { position: relative; white-space: nowrap; }
.squiggle { position: absolute; left: -1%; bottom: -.22em; width: 102%; height: .3em; overflow: visible; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* portrait with ocean doodles around it */
.hero-visual { position: relative; justify-self: center; width: min(100%, 290px); margin-right: 20px; }
.hero-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 9% 50%; border-radius: 26px; box-shadow: 0 28px 50px -24px rgba(23,65,77,.45), 0 8px 18px -10px rgba(23,65,77,.25); }
.doodle { position: absolute; z-index: 2; display: block; cursor: pointer; will-change: translate, rotate; -webkit-tap-highlight-color: transparent; }
.doodle svg { width: 100%; height: auto; overflow: visible; animation: bob var(--bob, 6s) ease-in-out infinite var(--delay, 0s); }
@keyframes bob { 50% { transform: translateY(-6px) rotate(var(--tilt, 2deg)); } }
.dd-whale { width: 170px; left: -132px; top: 22px; --bob: 7s; --tilt: -3deg; }
.dd-bubbles { width: 30px; left: -128px; top: -40px; --bob: 5s; --delay: -1s; }
.dd-jelly { width: 54px; right: -46px; top: -14px; --bob: 4.5s; --delay: -2s; }
.dd-starfish { width: 62px; right: -38px; bottom: 70px; --bob: 8s; --tilt: 8deg; }
.dd-sparkle { width: 28px; left: -50px; bottom: 96px; --bob: 5.5s; --tilt: 20deg; }
.dd-wave { width: 230px; left: -60px; bottom: -30px; --bob: 6.5s; --tilt: 0deg; }

/* hover / tap tricks (".play" is added by JS so each trick finishes) */
.d-whale .body, .d-whale .spout, .d-whale .fin, .d-bubbles circle, .d-bubbles path, .d-jelly .bell, .d-jelly .tentacles, .d-starfish, .d-sparkle, .d-wave .w1, .d-wave .w2 { transform-box: fill-box; }
.d-whale .spout { transform-origin: 50% 100%; transform: scale(0); opacity: 0; }
.d-whale .body { transform-origin: 60% 60%; }
.d-whale .fin { transform-origin: 30% 0; }
.play .d-whale .spout { animation: spout 1.1s var(--ease) both; }
.play .d-whale .body { animation: whale-wiggle 1.1s var(--ease) both; }
.play .d-whale .fin { animation: flap .35s ease-in-out 3; }
@keyframes spout { 0% { transform: scale(0); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 70% { transform: scale(1) translateY(-3px); opacity: 1; } 100% { transform: scale(1.1) translateY(-8px); opacity: 0; } }
@keyframes whale-wiggle { 20% { transform: rotate(-6deg) translateY(-4px); } 45% { transform: rotate(4deg) translateY(-6px); } 70% { transform: rotate(-2deg); } }
@keyframes flap { 50% { transform: rotate(-22deg); } }
.play .d-bubbles .b1, .play .d-bubbles .b2, .play .d-bubbles .b3 { animation: rise 1.2s var(--ease) both; }
.play .d-bubbles .b2 { animation-delay: .12s; }
.play .d-bubbles .b1 { animation-delay: .24s; }
@keyframes rise { 0% { transform: none; opacity: 1; } 70% { transform: translateY(-34px) scale(1.25); opacity: 1; } 85% { transform: translateY(-40px) scale(1.6); opacity: 0; } 86% { transform: translateY(14px) scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
.d-jelly .bell { transform-origin: 50% 100%; }
.d-jelly .tentacles { transform-origin: 50% 0; }
.play .d-jelly .bell { animation: jelly-pulse .5s ease-in-out 3; }
.play .d-jelly .tentacles { animation: tentacle-sway .5s ease-in-out 3; }
.play.dd-jelly svg { animation: jelly-swim 1.5s var(--ease) both; }
@keyframes jelly-pulse { 40% { transform: scale(1.12, .82); } }
@keyframes tentacle-sway { 25% { transform: skewX(10deg) scaleY(.9); } 75% { transform: skewX(-10deg) scaleY(1.05); } }
@keyframes jelly-swim { 50% { transform: translateY(-26px); } }
.d-starfish { transform-origin: 50% 53%; }
.play .d-starfish { animation: star-spin .9s var(--spring) both; }
@keyframes star-spin { 0% { transform: none; } 30% { transform: scale(.8, 1.15); } 100% { transform: rotate(216deg); } }
.d-sparkle { transform-origin: 50% 50%; }
.play .d-sparkle { animation: twinkle .8s var(--spring) both; }
@keyframes twinkle { 40% { transform: scale(1.7) rotate(45deg); } 100% { transform: rotate(90deg); } }
.play .d-wave .w1 { animation: roll 1.4s ease-in-out both; }
.play .d-wave .w2 { animation: roll 1.4s ease-in-out both .1s reverse; }
@keyframes roll { 25% { transform: translateX(-10px) scaleY(1.25); } 75% { transform: translateX(10px) scaleY(.8); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; justify-self: end; width: 150px; margin: 16px 34px 18px 0; }
  .dd-whale { width: 120px; left: -112px; top: 18px; }
  .dd-bubbles { width: 22px; left: -100px; top: -12px; }
  .dd-jelly { width: 38px; right: -34px; top: -10px; }
  .dd-starfish { width: 42px; right: -28px; bottom: 30px; }
  .dd-sparkle { width: 20px; left: -36px; bottom: 30px; }
  .dd-wave { width: 160px; left: -40px; bottom: -22px; }
  .hero-name { white-space: normal; }
  .hero-statement { font-size: 20px; margin-top: 16px; }
}
.work-section { padding-top: clamp(20px, 3vw, 36px); }
.work-section .section-head { margin-bottom: 24px; }
.work-section .eyebrow { margin-bottom: 8px; }
.work-section h2 { font-size: clamp(30px, 3.4vw, 46px); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.feature-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.feature-grid .card { grid-column: span 2; }
.feature-grid .card-lg { grid-column: span 4; grid-row: span 2; }
.feature-grid .card:nth-child(2) .card-media, .feature-grid .card:nth-child(3) .card-media { aspect-ratio: 16 / 9; }
.feature-grid .card:nth-child(2) .card-summary, .feature-grid .card:nth-child(3) .card-summary { font-size: 15px; }

.card a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.card a:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(24, 48, 90, .35); border-color: #d4d4d4; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.card-lg .card-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .8s var(--ease); }
.card a:hover .card-media img, .card a:hover .card-media video { transform: scale(1.035); }
.card-media.fit-contain img, .card-media.fit-contain video { object-fit: contain; }
/* cover video: fades in and plays while the card is hovered */
.card-media .card-video { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.card-media .card-video.on { opacity: 1; }
.card-go { position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); opacity: 0; transform: translateY(8px) scale(.8); transition: opacity .3s, transform .45s var(--spring); }
.card-go .i { width: 20px; height: 20px; }
.card a:hover .card-go, .card a:focus-visible .card-go { opacity: 1; transform: none; }
.card-body { padding: 20px 22px 24px; }
.card h3 { display: inline; font: 500 clamp(26px, 2.4vw, 32px)/1.2 var(--serif); }
.card .tag { margin-bottom: 8px; }
.card-summary { margin-top: 8px; }
.card-lg h3 { font-size: clamp(32px, 3.4vw, 46px); }
.tag { display: flex; align-items: center; gap: .6em; font: 400 12.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.tag-group { color: var(--deep); font-weight: 600; }
.tag-plus { color: var(--sun); font-weight: 700; transition: transform .5s var(--spring); }
.tag-year { padding: 1px 7px; border-radius: 999px; background: var(--sun-soft); color: #6b5310; }
.card h3 { transition: color .25s; }
.card h3 span, .card h3 { background: linear-gradient(transparent 62%, var(--sun-soft) 62%) no-repeat 0 0 / 0% 100%; transition: background-size .45s var(--ease), color .25s; }
.card a:hover h3 { color: var(--accent); background-size: 100% 100%; }
.card a:hover .tag-plus { transform: rotate(90deg) scale(1.3); }
.card-summary { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; max-width: 52ch; }
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid .card, .feature-grid .card:nth-child(n) { grid-column: span 1; }
  .feature-grid .card-lg { grid-column: span 2; grid-row: auto; }
  .feature-grid .card-lg .card-media { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
}
@media (max-width: 640px) {
  .grid, .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .card:nth-child(n), .feature-grid .card-lg { grid-column: auto; }
}

/* ---------- capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cap { background: var(--card); padding: 22px 22px 28px; display: flex; flex-direction: column; }
.cap-media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); margin-bottom: 22px; }
.cap-media img, .cap-media video { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.cap-media.fit-contain { background: #3a3a3a; }
.cap-media.fit-contain img { object-fit: contain; }
.cap-num { align-self: flex-start; font: 400 12px var(--mono); color: #6b5310; background: var(--sun-soft); padding: 2px 9px; border-radius: 999px; margin-bottom: 10px; }
.cap h3 { transition: color .25s; }
.cap:hover h3 { color: var(--accent); }
.cap h3 { font: 500 30px/1.05 var(--serif); margin-bottom: 10px; }
.cap p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.cap .cap-tools { padding-top: 6px; font: 400 12.5px/1.6 var(--mono); color: var(--muted); }
@media (max-width: 960px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .caps { grid-template-columns: 1fr; } }

/* ---------- sketchbook collage ---------- */
.collage { position: relative; height: 900px; }
.cl-item { position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: var(--z, 1); cursor: zoom-in;
  transform: translate(-50%, -50%) translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r));
  transition: left .9s var(--spring), top .9s var(--spring), transform .9s var(--spring), opacity .4s;
  transition-delay: calc(var(--o) * 70ms); }
.cl-print { display: block; padding: 9px 9px 26px; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(23,65,77,.12), 0 18px 30px -18px rgba(23,65,77,.45); transition: box-shadow .4s; }
.cl-print img, .cl-print video { width: 100%; height: auto; border-radius: 2px; pointer-events: none; }
.collage.ready .cl-item:hover, .collage.ready .cl-item:focus-visible { z-index: 30; transition-delay: 0s; transition-duration: .45s; transform: translate(-50%, -50%) translate(var(--dx, 0px), calc(var(--dy, 0px) - 8px)) rotate(0deg) scale(1.07); }
.cl-print { position: relative; }
/* caption: hidden until hover, written on the print's bottom border (grows the border if it needs a second line) */
.cl-cap { position: absolute; left: 0; right: 0; top: calc(100% - 26px); padding: 5px 10px 8px; background: #fff; border-radius: 0 0 4px 4px; font: italic 400 14px/1.25 var(--serif); color: var(--ink-2); text-align: center; text-wrap: balance; opacity: 0; transition: opacity .25s; pointer-events: none; }
.cl-item:hover .cl-cap, .cl-item:focus-visible .cl-cap { opacity: 1; }
.cl-cycle { position: relative; display: block; }
.cl-cycle .cl-alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.cl-cycle .cl-alt.on { opacity: 1; }
.cl-item:hover .cl-print { box-shadow: 0 2px 4px rgba(23,65,77,.12), 0 34px 50px -24px rgba(23,65,77,.55); }

/* washi tape: sticks on after the print lands */
.cl-item[class*="tape-"]::before { content: ''; position: absolute; z-index: 2; left: 50%; top: -12px; width: 86px; height: 24px; margin-left: -43px; opacity: .82;
  transform: rotate(-4deg); transform-origin: 0 50%; transition: transform .35s var(--spring), opacity .2s; transition-delay: calc(var(--o) * 70ms + .7s); }
.tape-sun::before { background: repeating-linear-gradient(45deg, #f6d27a 0 6px, #f2c14e 6px 12px); }
.tape-aqua::before { background: repeating-linear-gradient(-45deg, #b6e1f1 0 6px, #8fd0e8 6px 12px); }
.cl-item:nth-child(3n)::before { left: 30%; transform: rotate(5deg); }

/* the deck: prints gathered in a loose pile in the middle */
.collage.deck .cl-item { left: 50%; top: 50%; transition-delay: calc(var(--o) * 35ms);
  transform: translate(-50%, -50%) translate(calc(var(--o) * 2px), calc(var(--o) * -3px)) rotate(calc(var(--o) * 3deg - 12deg)); }
.collage.deck .cl-item::before { transform: rotate(-4deg) scaleX(0); opacity: 0; transition-delay: 0s; }
/* before it scrolls in: the deck is hidden below */
.collage.hidden .cl-item { opacity: 0; transform: translate(-50%, 10%) scale(.7) rotate(calc(var(--o) * 6deg - 24deg)); transition-delay: 0s; }
.collage.dealing .doodle, .collage.hidden .doodle { opacity: 0; transform: scale(.4); }
.collage .doodle { position: absolute; z-index: 3; transition: opacity .4s, transform .6s var(--spring); transition-delay: .9s; }
.cl-whale { width: 140px; left: 86%; top: 300px; }
.cl-bubbles { width: 26px; left: 94%; top: 560px; }
.cl-star { width: 54px; left: 2%; top: 560px; }
.cl-sparkle { width: 26px; left: 48%; top: 300px; }
@media (max-width: 860px) {
  .collage { height: auto; columns: 2; column-gap: 12px; padding: 14px 2px 0; }
  .cl-item, .collage.deck .cl-item, .collage.hidden .cl-item { position: relative; display: block; left: auto; top: auto; width: 100%; margin: 0 0 20px; break-inside: avoid;
    transform: rotate(var(--r)); transition: transform .6s var(--spring), opacity .5s; transition-delay: calc(var(--o) * 60ms); }
  .collage.hidden .cl-item { opacity: 0; transform: translateY(-30px) rotate(calc(var(--r) * 3)); }
  .collage.ready .cl-item:hover { transform: rotate(0) scale(1.03); }
  .cl-print { padding: 6px 6px 18px; }
  .cl-cap { top: calc(100% - 18px); font-size: 12px; padding: 3px 4px 5px; }
  .collage .doodle { display: none; }
}

/* ---------- projects index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.filters button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 15px; color: var(--ink-2); transition: all .2s; min-height: 44px; }
.filters button:hover { border-color: var(--sun); background: var(--sun-soft); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.group + .group { margin-top: clamp(64px, 8vw, 104px); }
.group-title { display: flex; align-items: baseline; gap: 12px; font-size: clamp(30px, 3.4vw, 44px); padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.group-title span { font: 400 13px var(--mono); color: var(--muted); }
.group[hidden] { display: none; }
.filtered .group + .group { margin-top: 0; }

/* ---------- about ---------- */
.about-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.lede-prose { margin-top: 28px; max-width: 54ch; }
.lede-prose p { font-size: clamp(17px, 1.4vw, 19.5px); color: var(--ink-2); line-height: 1.65; }
.lede-prose p + p { margin-top: 1em; }
.facts { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); max-width: 560px; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 400 12.5px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.about-portrait img, .contact-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-portrait img { object-position: 52% 40%; }
.about-portrait { position: sticky; top: 96px; }
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; order: -1; max-width: 360px; }
  .contact-photo { order: -1; }
  .contact-photo img { aspect-ratio: 16 / 10; }
}
.timeline { border-top: 1px solid var(--line); }
.timeline > li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px 48px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.tl-dates { font: 400 13px/2 var(--mono); color: var(--muted); }
.timeline h3 { font: 500 clamp(24px, 2.4vw, 30px)/1.15 var(--serif); }
.tl-role { font-weight: 500; margin-top: 6px; }
.timeline ul { margin-top: 14px; display: grid; gap: 8px; max-width: 72ch; }
.timeline ul li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 16px; }
.timeline ul li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.timeline h3 { transition: color .25s; }
.timeline > li:hover h3 { color: var(--accent); }
@media (max-width: 720px) { .timeline > li { grid-template-columns: 1fr; gap: 6px; padding: 26px 0; } }

/* ---------- contact ---------- */
.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; }
.email-link { font: 500 clamp(30px, 4vw, 52px)/1.05 var(--serif); border-bottom: 1px solid var(--ink); overflow-wrap: anywhere; }
.email-link:hover { color: var(--accent); border-color: var(--accent); }
.contact-links { margin-top: 44px; border-top: 1px solid var(--line); max-width: 560px; }
.contact-links a { display: flex; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); transition: padding .25s var(--ease), color .2s; }
.contact-links a:hover { padding-left: 12px; color: var(--accent); }
.contact-links .i { width: 22px; height: 22px; }
.contact-links span { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; color: var(--muted); font-size: 15px; }
.contact-links strong { color: var(--ink); font-weight: 500; font-size: 17px; }
.contact-links a:hover strong { color: var(--accent); }

/* ---------- project page ---------- */
.project-head { padding-top: clamp(40px, 6vw, 80px); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); margin-bottom: clamp(28px, 4vw, 48px); }
.back:hover { color: var(--ink); }
.project-head .lede { max-width: 40ch; font-size: clamp(19px, 1.8vw, 24px); }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta div { padding: 18px 20px 18px 0; }
.meta div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.meta dt { font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin-top: 6px; font-weight: 500; font-size: 16.5px; line-height: 1.35; }
@media (max-width: 720px) {
  .meta { grid-template-columns: 1fr 1fr; }
  .meta div:nth-child(3) { padding-left: 0; border-left: 0; }
  .meta div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.project-hero { margin-top: clamp(28px, 4vw, 48px); }
.project-hero.fit-contain img, .project-hero.fit-contain video { height: min(82vh, 760px); object-fit: contain; object-position: 50% 50%; background: var(--hero-bg, var(--paper-2)); }
@media (max-width: 700px) { .project-hero.fit-contain img, .project-hero.fit-contain video { height: auto; } }
.project-hero img, .project-hero video { width: 100%; max-height: 82vh; object-fit: cover; object-position: 50% 0; border-radius: var(--radius); background: var(--paper-2); }
.brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); padding-top: var(--space); }
.brief:has(> div:only-child) { grid-template-columns: minmax(0, 1fr); }
.brief > div:only-child { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2.4fr); gap: 8px clamp(28px, 5vw, 72px); border-top: 1px solid var(--line); padding-top: 22px; }
.brief > div:only-child .brief-label { border: 0; padding: 0; margin: 0; line-height: 1.9; grid-row: span 9; }
.brief > div:only-child p { max-width: 64ch; }
@media (max-width: 760px) { .brief > div:only-child { grid-template-columns: 1fr; } }
.brief-label { font: 400 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--deep); padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.brief p { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.65; color: var(--ink-2); }
.brief p + p { margin-top: 1em; }
.end-video { padding-top: clamp(28px, 4vw, 48px); }
.end-video video { width: 100%; max-height: 82vh; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
@media (max-width: 760px) { .brief { grid-template-columns: 1fr; } }
.chapter { padding-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr); }
.chapter > h2 { max-width: 20ch; padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: clamp(24px, 3vw, 40px); text-wrap: balance; }
.flow { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); }
.prose { max-width: 68ch; }
.prose p { font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.prose p + p { margin-top: 1em; }
.prose a, .prose-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.subhead { font: 500 clamp(24px, 2.2vw, 30px)/1.15 var(--serif); margin-top: 12px; }
.prose-list { max-width: 68ch; display: grid; gap: 10px; }
.prose-list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.prose-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.prose-list strong { color: var(--ink); font-weight: 600; }
.media img, .media video { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); }
.media-half { max-width: 560px; }
.media-third { max-width: 380px; }
.flow > .media-third + .media-third { margin-top: calc(-1 * clamp(20px, 2.4vw, 32px) + 0px); }
@supports selector(:has(*)) {
  /* Put runs of small portrait images side by side. */
  .flow:has(> .media-third + .media-third) { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .flow:has(> .media-third + .media-third) > * { grid-column: 1 / -1; }
  .flow:has(> .media-third + .media-third) > .media-third { grid-column: span 2; max-width: none; margin: 0; }
  @media (max-width: 640px) { .flow:has(> .media-third + .media-third) > .media-third { grid-column: span 3; } }
}
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.gallery[data-count="1"] { grid-template-columns: 1fr; }
.g-item { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); cursor: zoom-in; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.025); }
.g-item::after { content: ''; position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(22, 21, 20, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f9f9f9' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 16px no-repeat; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .25s var(--ease); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .g-item::after { opacity: .9; transform: none; width: 30px; height: 30px; } }
.g-item:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.yt-play, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.yt-play:hover img { opacity: 1; }
.yt-icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(249, 249, 249, .94); display: grid; place-items: center; transition: transform .25s var(--ease); }
.yt-icon svg { width: 30px; height: 30px; fill: var(--ink); margin-left: 4px; }
.yt-play:hover .yt-icon { transform: scale(1.08); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: var(--space); }
.pager a { display: flex; flex-direction: column; gap: 8px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .2s, transform .3s var(--ease); }
.pager a:hover { border-color: var(--ink); transform: translateY(-2px); }
.pager span { display: inline-flex; align-items: center; gap: 8px; font: 400 12.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pager strong { font: 500 clamp(24px, 2.6vw, 34px)/1.1 var(--serif); }
.pager-next { text-align: right; align-items: flex-end; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager-next { text-align: left; align-items: flex-start; } }
.related .section-head { margin-bottom: 32px; }
.related { padding-top: clamp(56px, 7vw, 96px); }

/* ---------- footer ---------- */
.site-footer { padding: var(--space) 0 32px; }
.hello { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: calc(var(--radius) + 10px); background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.35)); border: 1px solid var(--line); overflow: clip; isolation: isolate; }
.hello::before, .hello::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); }
.hello::before { width: 360px; height: 360px; right: 6%; top: -30%; background: #bfe0f7; }
.hello::after { width: 300px; height: 300px; left: 34%; bottom: -55%; background: #ffe0c7; }
.footer-title { font: 600 clamp(44px, 6.4vw, 92px)/.95 var(--serif); letter-spacing: -.035em; }
.footer-title em { color: var(--accent); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 36px); }

/* glass folder with photos peeking out */
.folder { position: relative; display: block; width: min(100%, 420px); aspect-ratio: 1.25; justify-self: center; }
.folder-back { position: absolute; left: 8%; right: 8%; top: 8%; bottom: 10%; border-radius: 22px; background: #e2e2e2; }
.folder-back::before { content: ''; position: absolute; left: 0; top: -14px; width: 42%; height: 30px; border-radius: 18px 18px 0 0; background: #e2e2e2; }
.folder-photo { position: absolute; top: 4%; width: 36%; aspect-ratio: 3 / 4; padding: 5px; background: #fff; border-radius: 14px; box-shadow: 0 16px 30px -16px rgba(24,48,90,.45); transition: transform .7s var(--spring); }
.folder-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.fp1 { left: 9%; transform: translateY(26%) rotate(-12deg); }
.fp2 { left: 32%; transform: translateY(22%); z-index: 1; }
.fp3 { right: 9%; transform: translateY(26%) rotate(12deg); }
.folder-photo img { object-position: var(--pos, 50% 50%); }
.folder.in .fp1 { transform: translate(-6%, 2%) rotate(-14deg); }
.folder.in .fp2 { transform: translateY(-6%); }
.folder.in .fp3 { transform: translate(6%, 2%) rotate(14deg); }
.folder:hover .fp1, .folder:focus-visible .fp1 { transform: translate(-14%, -10%) rotate(-18deg); }
.folder:hover .fp2, .folder:focus-visible .fp2 { transform: translateY(-18%) rotate(-2deg); }
.folder:hover .fp3, .folder:focus-visible .fp3 { transform: translate(14%, -10%) rotate(18deg); }
.folder-shadow { position: absolute; left: 6%; right: 6%; bottom: -2%; height: 40%; border-radius: 30px; background: rgba(24,48,90,.25); filter: blur(22px); z-index: 2; }
.folder-front { position: absolute; z-index: 3; left: 4%; right: 4%; bottom: 0; height: 58%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 11Q0 0 6 0L35 0C41 0 42 14 48 14L94 14Q100 14 100 25L100 89Q100 100 94 100L6 100Q0 100 0 89Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 11Q0 0 6 0L35 0C41 0 42 14 48 14L94 14Q100 14 100 25L100 89Q100 100 94 100L6 100Q0 100 0 89Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.88) 85%);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  transition: transform .6s var(--spring); transform-origin: 50% 100%; }
.folder:hover .folder-front { transform: perspective(700px) rotateX(-9deg); }
.folder-label { position: absolute; left: 6%; top: 4%; font: 400 13px var(--mono); letter-spacing: .02em; color: var(--ink); }
.folder-go { position: absolute; right: 5%; bottom: 9%; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.9); transition: transform .4s var(--spring); }
.folder-go .i { width: 24px; height: 24px; stroke-width: 2.4; }
.folder:hover .folder-go { transform: rotate(45deg) scale(1.06); }

.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 14px; color: var(--muted); }
.footer-meta ul { display: flex; flex-wrap: wrap; gap: 4px; margin-inline: -10px; }
.footer-meta ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
.footer-meta a:hover { color: var(--ink); }
@media (max-width: 860px) { .hello { grid-template-columns: 1fr; } .folder { width: min(100%, 340px); } }
@media (max-width: 520px) { .footer-actions .btn { width: 100%; } }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 13, 12, .94); color: var(--paper); }
.lightbox[open] { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { grid-column: 2; grid-row: 1; display: grid; place-items: center; gap: 12px; height: 100%; min-width: 0; padding: 56px 0 24px; }
.lightbox img { max-height: calc(100dvh - 120px); width: auto; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { font: 400 12.5px var(--mono); color: #b7b1a8; }
.lightbox button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: auto; background: rgba(249, 249, 249, .1); transition: background .2s; }
.lightbox button:hover { background: rgba(249, 249, 249, .22); }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; font-size: 28px; line-height: 1; }
@media (max-width: 640px) { .lightbox[open] { grid-template-columns: 1fr; } .lightbox figure { grid-column: 1; } .lightbox img { max-height: calc(100dvh - 160px); } .lightbox .lb-prev, .lightbox .lb-next { position: absolute; bottom: 18px; } .lightbox .lb-prev { left: calc(50% - 60px); } .lightbox .lb-next { right: calc(50% - 60px); } .lightbox figure { padding: 64px 8px 84px; } }

/* ---------- reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- sea star by the Seattle Aquarium title ---------- */
.timeline h3:has(.dd-tlstar) { position: relative; display: inline-block; padding-right: 46px; }
.dd-tlstar { position: absolute; right: 0; top: -12px; width: 36px; }
.hl.hl-sun { color: var(--ink); font-weight: 500; font-style: italic; background: linear-gradient(transparent 58%, var(--sun-soft) 58%); }
.hl { font-weight: 600; color: var(--accent); }
.hl-orange { color: #e9764f; }

/* ---------- doodles on the other pages ---------- */
.has-doodles { position: relative; }
.head-doodles { position: absolute; right: var(--gutter); top: -14px; width: 330px; height: 130px; }
.head-doodles .dd-whale { left: 70px; top: 26px; width: 160px; }
.head-doodles .dd-bubbles { left: 64px; top: -14px; width: 28px; }
.head-doodles .dd-starfish { right: 0; top: 50px; bottom: auto; width: 58px; }
.head-doodles .dd-sparkle { left: 10px; top: 70px; bottom: auto; width: 26px; }
.contact-photo { position: relative; }
.about-portrait .dd-bubbles { left: -26px; top: 34px; width: 30px; }
.about-portrait .dd-starfish { left: -30px; right: auto; bottom: 60px; width: 62px; }
.about-portrait .dd-sparkle { right: -22px; left: auto; bottom: 120px; width: 28px; }
@media (max-width: 860px) {
  .about-portrait { position: relative; top: auto; }
  .head-doodles { width: 150px; height: 100px; top: -4px; }
  .head-doodles .dd-whale { left: 10px; top: 20px; width: 100px; }
  .head-doodles .dd-bubbles { left: 8px; top: -6px; width: 18px; }
  .head-doodles .dd-starfish { width: 36px; top: 0; }
  .head-doodles .dd-sparkle, .head-doodles .dd-wave { display: none; }
  .about-portrait .dd-starfish { left: -10px; width: 44px; }
  .about-portrait .dd-bubbles { left: -8px; }
  .about-portrait .dd-sparkle { right: -4px; }
}
@media (min-width: 760px) { .lede-line { max-width: none; white-space: nowrap; } }

/* ---------- contact: wide photo on top, details below ---------- */
.contact .contact-photo { position: relative; max-width: 980px; margin-inline: auto; margin-bottom: clamp(32px, 4vw, 52px); }
.contact .contact-photo .ph { display: block; aspect-ratio: 3 / 1; overflow: hidden; border-radius: calc(var(--radius) + 6px); box-shadow: 0 28px 50px -30px rgba(23,65,77,.45); }
.contact .contact-photo .ph img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 58%; border-radius: 0; }
.contact .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.contact .contact-info .contact-email { margin-top: 36px; }
.contact .contact-photo .dd-whale { left: -40px; bottom: -40px; top: auto; width: 170px; }
.contact .contact-photo .dd-bubbles { left: -26px; bottom: 100px; top: auto; width: 28px; }
.contact .contact-photo .dd-sparkle { right: -14px; left: auto; top: -14px; bottom: auto; width: 28px; }
.contact .contact-photo .dd-wave { right: -10px; left: auto; bottom: -30px; width: 230px; }
@media (max-width: 860px) {
  .contact .contact-photo .ph { aspect-ratio: 4 / 3; }
  .contact .contact-photo .ph img { object-position: 78% 50%; }
  .contact .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact .contact-photo .dd-whale { left: -6px; width: 110px; bottom: -28px; }
  .contact .contact-photo .dd-wave { right: -4px; width: 140px; }
  .contact .contact-photo .dd-bubbles { left: -4px; }
  .contact .contact-photo .dd-sparkle { right: -4px; }
}

/* contact: say-hello folder beside the text */
.contact .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.contact-folder { position: relative; width: min(100%, 460px); justify-self: center; }
.contact-folder .folder { width: 100%; }
.contact-folder .doodle { z-index: 5; }
.contact-folder .dd-whale { left: -40px; bottom: -70px; top: auto; width: 150px; }
.contact-folder .dd-bubbles { left: -30px; top: 40px; bottom: auto; width: 28px; }
.contact-folder .dd-sparkle { right: -20px; left: auto; top: 10px; bottom: auto; width: 28px; }
.contact-folder .dd-wave { right: -10px; left: auto; bottom: -50px; width: 200px; }
@media (max-width: 860px) {
  .contact .contact-grid { grid-template-columns: 1fr; }
  .contact-folder { order: -1; width: min(100%, 340px); }
  .contact-folder .dd-whale, .contact-folder .dd-wave { display: none; }
  .contact-folder .dd-bubbles { left: -6px; }
  .contact-folder .dd-sparkle { right: -6px; }
}

/* ---------- project write-ups: centered reading column (text stays left-aligned) ---------- */
:root { --read: 720px; }
.project .project-head, .project .brief, .project .chapter, .project .pager, .project .end-video, .project .project-hero { max-width: calc(var(--read) + var(--gutter) * 2); }

/* ---------- hero role line: inked rubber stamps ---------- */
.hero-copy { container-type: inline-size; }
.roles { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 10px min(12px, 1.6cqi); }
@media (max-width: 560px) { .roles { flex-wrap: wrap; } }
/* same palette as the name's hover letters */
.tone-blue { --tone: var(--accent); } .tone-teal { --tone: #5cc0b5; } .tone-coral { --tone: #f39a7b; }
.roles-stamp .role { position: relative;  font: 700 clamp(10.5px, 2.25cqi, 14.5px)/1 var(--serif); font-stretch: 82%; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--paper); background: var(--tone); padding: .65em .9em; border: 2.5px solid var(--tone); border-radius: 5px; opacity: .88;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.roles-stamp .role::before { content: ''; position: absolute; inset: 3px; border: 1px solid; border-radius: 3px; }
