/* Ianna Yao, v6 (v5 Parsons-clean + v4 flow pieces: bands, aqua grounds, pen underlines, notes, drifting ink)
   Rules:
   - Three typefaces. Surfing Capital (her hand, dry brush) for her name only. Bodoni Moda for headlines.
     Instrument Sans for everything else, set large like a design-school site.
     Surfing Capital has no numbers or ×, so titles are written in letters.
   - Ground is white. Color comes from her work. Her work sits on deep warm-black mats (book-photography
     backdrop); pale aqua tints two section grounds and the pill hover. Red only in her seal.
   - Her artwork is never cropped: each image sits on its mat at its own aspect ratio.
   - Nav is outline pills. Names and captions sit under images, never on them.
   - Motion: her name paints on left to right at load; images rise in once as they enter;
     the Process strip moves sideways with scroll on wide screens. Nothing loops.
     Everything is visible with no JS or with reduced motion. */

@font-face {
  font-family: 'Surfing Capital';
  src: url(fonts/surfing-capital.woff) format('woff');
  font-display: block;
}

:root {
  /* color */
  --paper: #ffffff;
  --ink: #0b0b0b;
  --muted: #6a6a6a;
  --mat: #1c1416;             /* deep warm black behind her work, like a book-photography backdrop */
  --mat-hover: #2b2125;
  --aqua: #cdebe6;            /* pill hover */

  /* type */
  --brush: 'Surfing Capital', 'Instrument Sans', sans-serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --text: clamp(17px, 1.55vw, 24px);
  --title: clamp(52px, 8vw, 132px);
  --project-title: clamp(44px, 5.6vw, 96px);

  /* space */
  --gutter: clamp(16px, 2vw, 28px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section-y: clamp(96px, 11vw, 180px);
  --mat-pad: 7%;
  --row-cap: 78vh;

  /* motion */
  --paint-ms: 1300ms;
  --rise-ms: 700ms;
  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --print-h: min(52vh, 440px);
  --print-h-wide: min(72vh, 760px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text);
  line-height: 1.35;
  overflow-x: clip;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* header: Parsons-style text block + pills */
.site-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: var(--gutter);
}
.who { line-height: 1.2; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 48px;
  padding: .3em .8em .32em;
  line-height: 1.1;
  background: var(--paper);
  transition: background-color .25s, color .25s;
}
.site-head .pills {
  position: fixed; z-index: 10;
  left: 50%; bottom: 14px; transform: translateX(-50%);   /* phone: a floating pill bar at the bottom, clear of the header text */
  padding: 6px; border-radius: 48px; background: var(--paper); box-shadow: 0 6px 24px rgba(0, 0, 0, .14); flex-wrap: nowrap;
}
.pill[aria-current="page"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) {
  .pill:hover { background: var(--aqua); }
  .pill[aria-current="page"]:hover { background: var(--ink); }
}

/* titles in her brush hand */
.name, .title, .project h2, .giant {
  font-family: var(--brush);
  font-weight: 400;
  line-height: .9;
  text-transform: uppercase;
}
.title { font-size: var(--title); text-align: center; padding: 0 var(--gutter); }
.standfirst { max-width: 34ch; margin: clamp(20px, 2.4vw, 32px) auto 0; padding: 0 var(--gutter); text-align: center; }

/* hero */
.hero { padding: clamp(28px, 4vw, 56px) var(--gutter) var(--section-y); }
.name {
  font-size: 22vw;           /* site.js fits it to the full width */
  white-space: nowrap;
  text-align: center;
}
.motion .name { -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-image: linear-gradient(90deg, #000 45%, transparent 55%); -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; animation: paint var(--paint-ms) var(--ease-out) .2s forwards; }
@keyframes paint { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: clamp(24px, 3vw, 48px);
}
.hero-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.hero-text { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 36px); }
.intro { font-size: clamp(24px, 2.8vw, 44px); line-height: 1.12; letter-spacing: -.01em; max-width: 20ch; }
.hero-text .stamp { width: clamp(96px, 9vw, 140px); }
.hero-text .pill { align-self: flex-start; }

/* mats: her work on a pale aqua backdrop, never cropped */
.mat { background: var(--mat); padding: var(--mat-pad); }
.mat img { aspect-ratio: var(--ar); object-fit: contain; }
.cap { padding-top: 10px; }
.cap h3 { font-weight: 400; font-size: var(--text); }
.cap p { color: var(--muted); }

/* home work grid, asymmetric like a thesis index */
.work { padding: 0 var(--gutter) var(--section-y); }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px) var(--gap);
  margin-top: clamp(40px, 5vw, 72px);
}
.tile { display: block; }
.more { text-align: center; margin-top: clamp(40px, 5vw, 72px); }

/* creative & commercial */
.schools { padding-bottom: var(--section-y); }
.pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px) var(--gap);
  margin-top: clamp(40px, 5vw, 72px);
  padding: 0 var(--gutter);
}
.pair img { aspect-ratio: 4 / 5; object-fit: cover; }
.pair .bw img { filter: grayscale(1) contrast(1.08); }

/* process */
.process { padding-bottom: var(--section-y); }
.pin { margin-top: clamp(40px, 5vw, 72px); }
.stage { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.stage::-webkit-scrollbar { display: none; }
.track { display: flex; align-items: flex-start; gap: var(--gap); width: max-content; padding: 0 var(--gutter); }
.print { flex: none; scroll-snap-align: start; }
.print .mat { padding: clamp(14px, 1.6vw, 24px); }
.print img { height: var(--print-h); width: auto; }
.process.is-pinned .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; scroll-snap-type: none; }
.process.is-pinned .track { will-change: transform; }

/* every side of a brand */
.sides { padding-bottom: var(--section-y); }
.sides ul { max-width: 1400px; margin: clamp(40px, 5vw, 72px) auto 0; padding: 0 var(--gutter); }
.sides li { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 18px 0 22px; border-top: 2px solid var(--ink); }
.sides li:last-child { border-bottom: 2px solid var(--ink); }
.sides h3 { font-weight: 500; font-size: clamp(30px, 4.2vw, 64px); line-height: 1; letter-spacing: -.02em; }
.sides li p { color: var(--muted); max-width: 34ch; }   /* scoped to the list so it never catches the hand note */

/* cities */
.cities { padding-bottom: var(--section-y); }
.city-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78vw;
  gap: var(--gap);
  margin-top: clamp(40px, 5vw, 72px);
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.city-row::-webkit-scrollbar { display: none; }
.city { scroll-snap-align: start; }
.city img { aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1) contrast(1.08); }

/* about */
.about { display: grid; grid-template-columns: 1fr; gap: var(--gap); padding: 0 var(--gutter) var(--section-y); }
.about .title { text-align: left; padding: 0; margin-bottom: clamp(20px, 2.4vw, 32px); }
.about-copy { order: -1; }
.about-copy p { max-width: 36ch; }
.about-copy p + p { margin-top: .8em; }
.about-img img { aspect-ratio: 4 / 5; object-fit: cover; }

/* contact */
.contact { background: var(--ink); color: var(--paper); padding: var(--section-y) var(--gutter) var(--gutter); text-align: center; }
.contact .title { padding: 0; }
.contact .pills { justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.contact .pill { background: transparent; }
@media (hover: hover) { .contact .pill:hover { background: var(--paper); color: var(--ink); } }
.contact .stamp { width: clamp(100px, 9vw, 140px); margin: clamp(56px, 7vw, 96px) auto 0; }
.site-foot { margin-top: clamp(56px, 7vw, 96px); display: flex; justify-content: space-between; color: #9a9a9a; font-size: 15px; text-align: left; }

/* work page */
.work-intro { padding: clamp(24px, 3vw, 40px) 0 var(--section-y); }
.giant { font-size: clamp(110px, 24vw, 380px); text-align: center; line-height: .85; }
.index { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1000px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--gutter); }
.project { margin-bottom: var(--section-y); scroll-margin-top: 80px; }
.project-head { text-align: center; padding: 0 var(--gutter) clamp(24px, 3vw, 40px); }
.project h2 { font-size: var(--project-title); }
.project h2:lang(zh) { font-family: var(--sans); font-weight: 600; text-transform: none; }
.project .meta { color: var(--muted); margin-top: 10px; }
.row { display: flex; gap: var(--gap); max-width: calc(var(--rowar, 3) * var(--row-cap)); margin: 0 auto; }
.row + .row { margin-top: var(--gap); }
.row > * { flex: var(--ar) 1 0; min-width: 0; }
/* phone: each project is one swipe strip */
.gallery { display: flex; align-items: flex-start; gap: var(--gap); overflow-x: auto; padding: 0 var(--gutter); scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .row { display: contents; }
.gallery figure { flex: none; width: min(86vw, calc(var(--ar) * 56vh)); scroll-snap-align: start; }

/* rise-in: .rise-ready is only added by site.js, so nothing is hidden without it */
.rise-ready .rise { opacity: 0; transform: translateY(28px); }
.rise-ready .rise.is-in { opacity: 1; transform: none; transition: opacity var(--rise-ms) var(--ease-out), transform var(--rise-ms) var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }

/* hover */
@media (hover: hover) {
  .tile .mat, .row a .mat { transition: background-color .3s; }
  .tile:hover .mat { background: var(--mat-hover); }
  .tile:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
}

/* page fade between home and work */
@view-transition { navigation: auto; }

@media (min-width: 810px) {
  .site-head .pills { left: auto; bottom: auto; top: var(--gutter); right: var(--gutter); transform: none; padding: 0; background: none; box-shadow: none; }
  .hero-grid { grid-template-columns: 5fr 7fr; align-items: end; }
  .grid { grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; align-items: start; }
  .tile { grid-column: span var(--span, 4); }
  .pair { grid-template-columns: 1fr 1fr; }
  .print img { height: var(--print-h-wide); }
  .sides li { grid-template-columns: 1fr minmax(0, 34ch); align-items: end; gap: 32px; }
  .city-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
  .about { grid-template-columns: 1fr 1fr; align-items: end; }
  .about-copy { order: 0; padding-left: clamp(0px, 3vw, 48px); }
  .gallery { display: block; overflow: visible; }
  .gallery .row { display: flex; }
  .gallery figure { flex: var(--ar) 1 0; width: auto; }
}


/* ---------- v6: flow pieces brought back from v4, in v5's language ---------- */
:root {
  --pen: #2747b8;             /* her ink blue: pen underlines + handwritten notes */
  --hand: 'Caveat', cursive;
  --grain: .9;
  --ink-opacity: .55;
  --drift: 70px;              /* ink drift range, wide (read by site.js) */
  --drift-phone: 25px;
  --band-speed: .45;          /* tape band px per px scrolled (read by site.js) */
  --mark-ms: 800ms;
}

/* aqua grounds with paper grain */
.aqua { background: var(--aqua); padding-top: var(--section-y); position: relative; isolation: isolate; }
.aqua::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(img/grain.png); opacity: var(--grain); pointer-events: none; }


/* tape band: slides with scroll */
.band {
  position: relative;
  z-index: 3;
  width: 112vw;
  margin: -26px 0 -26px -6vw;
  padding: 14px 0 12px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 10px 24px rgba(0, 0, 0, .16);
  transform: rotate(-2deg);
  overflow: hidden;
  white-space: nowrap;
}
.band--rev { transform: rotate(1.5deg); }
.band-track { display: inline-flex; will-change: transform; }
.band span { font-weight: 600; font-size: clamp(13px, 1.2vw, 18px); letter-spacing: .16em; text-transform: uppercase; }
main { overflow-x: clip; }
.band + section { padding-top: clamp(72px, 9vw, 140px); }
.contact { overflow-x: clip; }

/* × sticker on the Parsons / Columbia seam */
.pair { position: relative; }
.seam { display: none; }

/* pen underline under one word of a brush title */
.mark { position: relative; display: inline-block; }
.pen { position: absolute; left: -3%; width: 106%; bottom: -.12em; height: .2em; overflow: visible; fill: none; stroke: var(--pen); stroke-linecap: round; pointer-events: none; }
.motion .pen path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .is-marked .pen path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--mark-ms) var(--ease-out) .2s; }

/* handwritten notes */
.hand-note { font-family: var(--hand); font-weight: 700; color: var(--pen); font-size: clamp(24px, 2.4vw, 38px); line-height: 1.1; text-align: center; transform: rotate(-3deg); margin-top: clamp(10px, 1.2vw, 18px); padding: 0 var(--gutter); }

/* her ink marks, drifting in the margins (never behind body text) */
.has-ink { position: relative; }
.ink {
  position: absolute; z-index: -1;
  left: var(--x-m, var(--x)); top: var(--y-m, var(--y)); width: var(--w-m, var(--w)); height: auto;
  transform: translateY(var(--dy, 0px)) rotate(calc(var(--rot, 0deg) + var(--dr, 0deg)));
  opacity: var(--ink-opacity); mix-blend-mode: multiply; pointer-events: none; will-change: transform;
}
.ink.desk-only { display: none; }
.has-ink:not(.aqua) { isolation: isolate; overflow-x: clip; }

/* process prints tilt as they pass */
.print { transform: rotate(var(--wob, 0deg)); }

@media (min-width: 810px) {
  .seam {
    display: block;
    position: absolute; z-index: 2;
    left: 50%; top: calc((100vw - 2 * var(--gutter) - var(--gap)) / 2 * .625);   /* middle of the 4:5 images */
    translate: -50% -50%;
    transform: rotate(-6deg);
    background: var(--paper);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 10px 24px rgba(0, 0, 0, .22);
    font-size: clamp(48px, 5vw, 84px); line-height: 1; padding: .06em .26em .12em;
  }
  .ink { left: var(--x); top: var(--y); width: var(--w); }
  .ink.desk-only { display: block; }
}

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

/* project pages: images left, title + tag right and sticky (Parsons project-page layout) */
.tag { display: inline-block; background: var(--ink); color: var(--paper); border-radius: 48px; padding: .28em .8em .3em; margin-top: 14px; }
.project .gallery figure .mat { padding: clamp(12px, 1.6vw, 28px); }
@media (min-width: 810px) {
  .project { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: start; padding: 0 var(--gutter); }
  .project .gallery { order: 1; padding: 0; }
  .project-head { order: 2; position: sticky; top: 90px; text-align: left; padding: 0; }
  .project h2 { font-size: clamp(40px, 4.6vw, 80px); }
  .project .row { max-width: none; }
}

/* statement: staggered brush lines on aqua, blue brush paints under "shelf." with scroll */
.statement { padding-bottom: var(--section-y); }
.stagger { font-family: var(--brush); font-weight: 400; text-transform: uppercase; font-size: clamp(56px, 10vw, 168px); line-height: .92; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.stagger > span { --pad: calc(var(--in, 0%) * .7); display: block; padding-left: var(--pad); }
.statement .hand-note { margin-top: clamp(28px, 3vw, 48px); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.swash-line { position: relative; display: inline-block; }
.stagger .swash-line { display: block; }
.brush { position: absolute; z-index: -1; overflow: visible; pointer-events: none; }
.brush path { fill: none; stroke-linecap: round; filter: url(#brush-edge); }
.swash { left: calc(var(--pad, 0%) - .1em); bottom: -.16em; width: 3.2em; height: .42em; }
.swash path { stroke: var(--pen); stroke-width: 22; opacity: .85; }
.contact .title { position: relative; isolation: isolate; line-height: 1.04; }
.contact .swash { left: -.08em; width: 2.6em; bottom: -.12em; }
.swash--light path { stroke: #81d8d0; opacity: .9; }
.motion .brush--scroll path { stroke-dasharray: 1; stroke-dashoffset: 1; }
@media (min-width: 810px) { .stagger > span { --pad: var(--in, 0%); } }

/* editorial headlines: Bodoni Moda (Didone, the fashion-magazine family). Her name alone stays in the brush hand. */
:root { --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif; }
.title, .stagger, .giant, .project h2 { font-family: var(--display); font-weight: 400; text-transform: none; letter-spacing: -.02em; line-height: 1; }
.title em, .stagger em, .giant em { font-style: italic; }
.title { font-size: clamp(46px, 7vw, 116px); }
.stagger { font-size: clamp(52px, 9.4vw, 156px); line-height: .98; }
.swash { width: 2.75em; }
.contact .title { line-height: 1.04; }
.contact .swash { width: 2.3em; }
.project h2 { font-size: clamp(40px, 4.4vw, 76px); }
.project h2:lang(zh) { font-family: var(--sans); }

/* a screenshot board sits whole on a dark mat inside a pair frame */
.pair .fit { aspect-ratio: 4 / 5; background: var(--mat); display: grid; place-items: center; padding: 6%; }
.pair .fit img { aspect-ratio: auto; object-fit: contain; height: auto; }
.pair .fit--paper { background: var(--paper); }

/* runway reel: vertical loop on the left, copy right; black like a show space */
.reel { background: var(--ink); color: var(--paper); padding: var(--section-y) var(--gutter); display: grid; gap: clamp(28px, 4vw, 56px); }
.reel .title { text-align: left; padding: 0; }
.reel .pen { stroke: #81d8d0; }
.reel-video video, .project video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #111; }
.reel-video { max-width: 420px; width: 100%; justify-self: center; }
.reel-copy { order: -1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.reel-copy p { max-width: 30ch; color: #cfcfcf; }
.reel .tag { background: var(--paper); color: var(--ink); margin: 0; }
.pill--light { background: transparent; color: inherit; font: inherit; cursor: pointer; }
button.pill { font: inherit; cursor: pointer; }
@media (hover: hover) { .reel .pill:hover, .player .pill:hover { background: var(--paper); color: var(--ink); } }
.player { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; }
.player[open] { display: grid; place-items: center; }
.player::backdrop { background: rgba(0, 0, 0, .92); }
.player video { height: min(88dvh, 160vw); width: auto; max-width: 92vw; aspect-ratio: 9 / 16; background: #000; }
.player-close { position: fixed; top: 16px; right: 16px; color: var(--paper); }
@media (min-width: 810px) {
  .reel { grid-template-columns: 5fr 7fr; align-items: center; }
  .reel-copy { order: 0; padding-left: clamp(0px, 4vw, 64px); }
  .reel-video { max-width: none; height: min(84vh, 860px); width: auto; aspect-ratio: 9 / 16; justify-self: end; }
  .reel-video video { height: 100%; }
}

/* ---------- v7: her presentation's first page as the hero, watercolor paper everywhere else ---------- */
:root {
  --vermilion: #b8432a;       /* from her University Presentation */
  --wash: url(img/wash.webp); /* her Sniper painting, washed out to read as paper */
}
body { background: var(--paper) var(--wash) 0 0 / 100% auto repeat-y; }

.home .site-head { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.home .who { display: none; }   /* the hero already says it; the header text ran off the torn paper onto black */
.site-head .pill { color: var(--ink); }
.hero--paper {
  position: relative;
  min-height: 100svh;
  padding: clamp(110px, 12vw, 160px) var(--gutter) clamp(72px, 8vw, 120px);
  background: #121212 url(img/crumple.webp) center / cover;
  color: var(--paper);
  overflow: hidden;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}
.hero--paper .torn { position: absolute; top: -2%; left: -6%; width: 64%; transform: rotate(-3deg); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.name--stacked { white-space: normal; text-align: left; font-size: clamp(84px, 15vw, 250px); line-height: .82; display: flex; flex-direction: column; }
.name--stacked .n1 { color: var(--vermilion); }
.name--stacked .n2 { color: var(--paper); }
.hero--paper .school { font-size: clamp(22px, 2.2vw, 34px); margin-top: 10px; }
.hero--paper .sub { max-width: 34ch; color: #d8d8d8; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.45; }
.hero--paper .hero-photo { position: relative; z-index: 2; }
.hero--paper .hero-photo > img:first-child { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; }
.hero--paper .seal { position: absolute; width: clamp(64px, 7vw, 110px); left: clamp(-36px, -3vw, -20px); top: 38%; }
.hero-painting { position: absolute; z-index: 1; left: -3%; bottom: -12%; width: 24%; max-width: 380px; opacity: .9; transform: rotate(-2deg); }
.hero-painting img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 70%; filter: grayscale(1) contrast(1.05); }
.dot { position: absolute; z-index: 2; width: clamp(40px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%; background: var(--vermilion); left: 30%; bottom: 8%; }
.hero-foot { position: absolute; z-index: 2; right: var(--gutter); bottom: var(--gutter); font-size: clamp(13px, 1.1vw, 17px); color: #e8e8e8; }
.hero-painting, .dot { display: none; }
@media (min-width: 810px) {
  .hero--paper { grid-template-columns: 7fr 5fr; align-items: center; }
  .hero--paper .hero-photo { max-width: 520px; justify-self: end; width: 100%; }
  .hero-painting, .dot { display: block; }
}
@media (max-width: 809px) {
  .hero--paper .torn { width: 150%; left: -12%; top: -1%; }
  .hero-foot { position: static; }
}

/* v7.1: hero on translucent vellum over her watercolor, teal instead of red */
:root { --accent: #127a76; --vellum: .8; }   /* teal; how opaque the vellum sheet sits over the watercolor */
.hero--paper { background: var(--paper) var(--wash) center / cover; color: var(--ink); isolation: isolate; }
.hero--paper::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(img/vellum.webp) center / cover; opacity: var(--vellum); mix-blend-mode: multiply; }
.hero--paper .torn { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .14)); }
.name--stacked .n1 { color: var(--accent); }
.name--stacked .n2 { color: var(--ink); }
.hero--paper .sub { color: #3d3d3d; }
.hero--paper .hero-foot { color: #3d3d3d; }
.hero--paper .pill--light { color: var(--ink); }
@media (hover: hover) { .hero--paper .pill--light:hover { background: var(--ink); color: var(--paper); } }
.dot { background: var(--accent); }
.hero--paper .hero-photo > img:first-child { box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.hero-painting img { box-shadow: 0 12px 30px rgba(0, 0, 0, .16); }

/* v7.2 */
/* Process prints ride higher in the pinned frame */
.process.is-pinned .stage { align-items: flex-start; padding-top: clamp(84px, 10vh, 120px); }
.process .pin { margin-top: clamp(24px, 3vw, 40px); }

/* a brush line that runs down through the four statement lines into the swash under "shelf." */
.stagger { position: relative; isolation: isolate; }
.flow { inset: 4% 0 0 var(--gutter); width: calc(100% - 2 * var(--gutter)); height: 96%; }
.flow path { stroke: var(--pen); stroke-width: 7; opacity: .38; }
.motion .brush--flow path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* her work on torn white paper instead of black frames */
:root { --mat: #fbfaf6; --mat-hover: #fbfaf6; --rip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1.50 1.08 L3.61 1.77 L5.72 1.18 L7.83 0.57 L9.93 0.41 L12.04 1.99 L14.15 0.90 L16.26 2.21 L18.37 1.21 L20.48 0.58 L22.59 1.02 L24.70 0.71 L26.80 1.97 L28.91 1.55 L31.02 1.17 L33.13 -0.21 L35.24 1.72 L37.35 1.07 L39.46 1.32 L41.57 1.93 L43.67 0.94 L45.78 1.45 L47.89 1.81 L50.00 2.04 L52.11 1.86 L54.22 1.85 L56.33 1.88 L58.43 2.08 L60.54 1.75 L62.65 1.54 L64.76 2.01 L66.87 1.35 L68.98 0.61 L71.09 1.66 L73.20 1.98 L75.30 1.19 L77.41 0.54 L79.52 -0.43 L81.63 1.88 L83.74 0.95 L85.85 1.93 L87.96 1.49 L90.07 1.97 L92.17 1.00 L94.28 1.15 L96.39 2.22 L98.50 0.82 L98.12 1.50 L98.76 3.61 L97.71 5.72 L98.36 7.83 L99.42 9.93 L98.63 12.04 L100.04 14.15 L99.10 16.26 L99.14 18.37 L98.79 20.48 L97.00 22.59 L97.99 24.70 L96.82 26.80 L97.88 28.91 L97.75 31.02 L98.81 33.13 L98.15 35.24 L98.36 37.35 L99.23 39.46 L98.54 41.57 L97.41 43.67 L98.18 45.78 L99.25 47.89 L98.65 50.00 L98.76 52.11 L99.46 54.22 L98.95 56.33 L98.36 58.43 L99.09 60.54 L99.10 62.65 L98.10 64.76 L99.47 66.87 L99.15 68.98 L99.03 71.09 L98.63 73.20 L97.13 75.30 L98.17 77.41 L99.42 79.52 L99.39 81.63 L99.42 83.74 L98.10 85.85 L98.05 87.96 L98.82 90.07 L99.21 92.17 L98.88 94.28 L97.85 96.39 L99.34 98.50 L98.50 99.05 L96.39 98.02 L94.28 98.30 L92.17 99.45 L90.07 98.42 L87.96 99.00 L85.85 97.93 L83.74 99.33 L81.63 97.96 L79.52 99.46 L77.41 98.33 L75.30 99.25 L73.20 98.87 L71.09 99.38 L68.98 99.27 L66.87 98.08 L64.76 98.23 L62.65 98.76 L60.54 98.45 L58.43 99.34 L56.33 98.52 L54.22 99.33 L52.11 99.35 L50.00 98.66 L47.89 97.73 L45.78 98.87 L43.67 98.01 L41.57 99.01 L39.46 98.29 L37.35 98.70 L35.24 97.89 L33.13 98.15 L31.02 99.09 L28.91 98.71 L26.80 99.34 L24.70 98.80 L22.59 98.62 L20.48 98.51 L18.37 98.56 L16.26 98.96 L14.15 99.40 L12.04 98.71 L9.93 99.21 L7.83 97.92 L5.72 97.83 L3.61 97.83 L1.50 99.11 L0.78 98.50 L1.69 96.39 L2.09 94.28 L0.90 92.17 L1.22 90.07 L2.28 87.96 L0.79 85.85 L1.43 83.74 L0.85 81.63 L1.95 79.52 L0.82 77.41 L1.62 75.30 L0.62 73.20 L1.92 71.09 L0.69 68.98 L0.57 66.87 L0.99 64.76 L1.26 62.65 L1.97 60.54 L0.77 58.43 L1.53 56.33 L1.19 54.22 L2.49 52.11 L1.64 50.00 L0.65 47.89 L0.62 45.78 L1.32 43.67 L1.50 41.57 L0.98 39.46 L1.45 37.35 L0.70 35.24 L0.59 33.13 L1.06 31.02 L1.87 28.91 L1.40 26.80 L0.43 24.70 L0.53 22.59 L1.49 20.48 L1.35 18.37 L0.69 16.26 L1.28 14.15 L2.00 12.04 L1.41 9.93 L2.27 7.83 L2.00 5.72 L1.64 3.61 L0.09 1.50Z' fill='black'/%3E%3C/svg%3E"); }
.mat {
  background: var(--mat) url(img/grain.png);
  -webkit-mask: var(--rip) 0 0 / 100% 100% no-repeat; mask: var(--rip) 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .12));
}
.tile, .print, .gallery figure { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .10)); }
.mat { filter: none; }
.tile:nth-child(odd) .mat { transform: rotate(-.6deg); }
.tile:nth-child(even) .mat { transform: rotate(.5deg); }
@media (hover: hover) { .tile .mat { transition: transform .4s var(--ease-out); } .tile:hover .mat { transform: rotate(0) translateY(-4px); } }
.pair .fit { background: var(--mat) url(img/grain.png); }

/* v7.3 type: her name in a signature script, small headers in a handwritten face, section titles stay Bodoni.
   Licenses before launch: Always in the Star (EUR 2 per project), Born Again (demo; buy the license). */
@font-face { font-family: 'Born Again'; src: url(fonts/born-again.woff) format('woff'); font-display: swap; }
:root { --signature: 'Always in the Star', var(--display); --small-head: 'Born Again', var(--sans); }
.name--stacked { font-family: var(--signature); text-transform: none; font-weight: 400; line-height: .95; font-size: clamp(88px, 13vw, 220px); letter-spacing: 0; }
.name--stacked .n2 { margin-left: .9em; margin-top: -.15em; }
.hero--paper .school, .cap h3, .sides h3, .reel .tag, .project .tag { font-family: var(--small-head); font-weight: 400; letter-spacing: .01em; }
.hero--paper .school { font-size: clamp(26px, 2.6vw, 40px); }
.cap h3 { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.15; }   /* Born Again runs small; sized up to read like a caption */
/* cities in color now: lotus and skyline */
.city img { filter: none; }

/* graphic design: six posters, 3 across on desktop, 2 on phone */
.graphic, .ux { padding-bottom: var(--section-y); }
.posters, .boards { display: grid; gap: clamp(20px, 2.4vw, 40px) var(--gap); margin-top: clamp(40px, 5vw, 72px); padding: 0 var(--gutter); }
.posters { grid-template-columns: repeat(2, 1fr); }
.boards { grid-template-columns: 1fr; }
.posters .mat, .boards .mat { padding: clamp(10px, 1.2vw, 18px); }
@media (min-width: 810px) {
  .posters { grid-template-columns: repeat(3, 1fr); max-width: 1300px; margin-inline: auto; }
  .boards { grid-template-columns: 1fr 1fr; }
}

/* v7.4: name back in Surfing Capital (dry brush), brighter lighter teal so it pops off the vellum */
:root { --accent: #12b5a6; }
.name--stacked { font-family: var(--brush); text-transform: uppercase; line-height: .82; font-size: clamp(84px, 15vw, 250px); }
.name--stacked .n2 { margin-left: 0; margin-top: 0; }
.name--stacked .n1 { text-shadow: 0 2px 18px rgba(18, 181, 166, .18); }

/* v7.5: teal toned down (rhinestones removed per Tymel) */
:root { --accent: #16998d; }
.name--stacked .n1 { text-shadow: none; }

/* experience: a masthead of houses, name left in the serif, role right */
.experience { padding: var(--section-y) 0; }
.houses { max-width: 1300px; margin: clamp(40px, 5vw, 72px) auto 0; padding: 0 var(--gutter); }
.houses li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 20px 0 22px; border-top: 1.5px solid var(--ink); }
.houses li:last-child { border-bottom: 1.5px solid var(--ink); }
.houses h3 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5.2vw, 84px); line-height: 1; letter-spacing: -.02em; }
.houses .group { font-family: var(--sans); font-size: .22em; letter-spacing: .14em; vertical-align: super; margin-left: .4em; color: var(--muted); }
.houses p { font-family: var(--small-head); font-size: clamp(28px, 2.8vw, 44px); line-height: 1.1; color: var(--accent); }
@media (min-width: 810px) { .houses li { grid-template-columns: 1fr auto; align-items: baseline; gap: 32px; } .houses p { text-align: right; } }

/* videos sit clean, no torn-paper mat */
.mat:has(> video), .project .gallery figure .mat:has(> video) { -webkit-mask: none; mask: none; background: none; padding: 0; transform: none; }
.gallery figure:has(video) { filter: none; }

/* v7.7: name fixes
   - paint-on now uses clip-path with room around the glyphs (the old mask shaved letter tops/bottoms)
   - #solid-ink fills the font's halftone dots so it reads as solid brush ink with its dry edge; --name-ink: none turns it off
   - seal gets paper behind its carved-out characters so the photo doesn't show through */
:root { --name-ink: url(#solid-ink); }
.name--stacked { -webkit-mask: none !important; mask: none !important; animation: none; filter: var(--name-ink); padding: .06em 0; }
.motion .name--stacked { animation: paint-clip var(--paint-ms) var(--ease-out) .2s both; }
@keyframes paint-clip { from { clip-path: inset(-20% 100% -20% -10%); } to { clip-path: inset(-20% -10% -20% -10%); } }
.hero--paper .hero-photo .seal { aspect-ratio: auto; object-fit: contain; height: auto; background: none; box-shadow: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }   /* full transparent seal; the headshot's 4:5 crop rule was catching it */
.name--stacked { line-height: .9; }   /* IANNA and YAO no longer overlap */

/* long project titles wrap inside their column instead of running off the page */
.project-head { min-width: 0; }
.project h2 { overflow-wrap: break-word; hyphens: manual; }
@media (min-width: 810px) { .project h2 { font-size: clamp(38px, 3.8vw, 68px); } }

/* more tape bands at section changes: they overlap both neighbours a little, like tape across a seam */
.band { margin: -22px 0 -22px -6vw; }
.band + section, .band + .contact { padding-top: clamp(72px, 9vw, 140px); }
main + .band { position: relative; z-index: 3; }

/* v7.10 */
html { overflow-x: clip; }   /* bands are wider than the page */
.hero--paper { padding-bottom: clamp(110px, 10vw, 150px); }
.hero-foot { bottom: calc(var(--gutter) + 44px); }
/* headshot edges fade into the paper instead of a hard border */
.hero--paper .hero-photo > img:first-child {
  box-shadow: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.experience { padding-top: var(--section-y); }

/* contact buttons in teal */
.contact .pill { background: var(--accent); border-color: var(--accent); color: var(--paper); }
@media (hover: hover) { .contact .pill:hover { background: var(--paper); border-color: var(--paper); color: var(--accent); } }

/* each band carries the title of the section it leads into */
.band .band-title { font-family: var(--display); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--accent); font-size: 1.9em; line-height: 0; vertical-align: -.12em; padding: 0 .2em; }

/* diamond cursor companion: --diamond-size, --diamond-lag (0.05 slow and floaty, 0.4 snappy) */
:root { --diamond-size: 22px; --diamond-lag: .18; }
.diamond { position: fixed; left: 0; top: 0; z-index: 100; width: var(--diamond-size); height: var(--diamond-size); margin: 6px 0 0 10px; pointer-events: none; opacity: 0; transition: opacity .25s; will-change: transform; }
.diamond.is-on { opacity: 1; }
.diamond svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); transition: transform .3s var(--ease-out), filter .3s; }
.diamond.is-over svg { transform: scale(1.5); filter: drop-shadow(0 0 8px rgba(255,255,255,.95)) drop-shadow(0 2px 4px rgba(0,0,0,.25)); }

/* v7.11 */
/* "made in" line above the footer */
.made-in { margin-top: clamp(48px, 6vw, 80px); font-family: var(--small-head); font-size: clamp(22px, 2.2vw, 34px); color: var(--accent); }

/* lace: scalloped top and bottom edges with a row of eyelets; the wrapper carries the shadow the mask would cut off */
.band-wrap { position: relative; z-index: 3; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .14)); }
.band-wrap .band { box-shadow: none; padding: 20px 0 18px; }
.band {
  --scallop: 9px;
  background:
    radial-gradient(circle, rgba(22, 153, 141, .32) 1.4px, transparent 1.9px) 0 10px / 14px 6px repeat-x,
    radial-gradient(circle, rgba(22, 153, 141, .32) 1.4px, transparent 1.9px) 7px calc(100% - 10px) / 14px 6px repeat-x,
    var(--paper);
  -webkit-mask:
    radial-gradient(circle at 50% 100%, #000 calc(var(--scallop) - .5px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2) var(--scallop) repeat-x,
    radial-gradient(circle at 50% 0, #000 calc(var(--scallop) - .5px), transparent var(--scallop)) 0 100% / calc(var(--scallop) * 2) var(--scallop) repeat-x,
    linear-gradient(#000, #000) 0 50% / 100% calc(100% - var(--scallop) * 2 + 1px) no-repeat;
  mask:
    radial-gradient(circle at 50% 100%, #000 calc(var(--scallop) - .5px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2) var(--scallop) repeat-x,
    radial-gradient(circle at 50% 0, #000 calc(var(--scallop) - .5px), transparent var(--scallop)) 0 100% / calc(var(--scallop) * 2) var(--scallop) repeat-x,
    linear-gradient(#000, #000) 0 50% / 100% calc(100% - var(--scallop) * 2 + 1px) no-repeat;
}

/* hero band follows the torn paper's slant */
.band--hero { position: absolute; z-index: 1; left: -6vw; top: clamp(118px, 11vw, 160px); margin: 0; transform: rotate(-3deg); }
.hero--paper { padding-top: clamp(190px, 17vw, 250px); }
@media (max-width: 809px) { .band--hero { top: 74px; } .hero--paper { padding-top: 160px; } }
.band-wrap + section, .band-wrap + .contact { padding-top: clamp(72px, 9vw, 140px); }
.band-wrap .band { margin: -22px 0 -22px -6vw; }

/* v7.12 */
/* back-home button on the Work page, and the current-page pill readable again */
.site-head .back { position: fixed; top: var(--gutter); left: var(--gutter); z-index: 10; color: var(--ink); font-size: clamp(16px, 1.4vw, 20px); }
.site-head .back span { display: inline-block; transition: transform .25s var(--ease-out); }
@media (hover: hover) { .site-head .back:hover { background: var(--ink); color: var(--paper); } .site-head .back:hover span { transform: translateX(-4px); } }
.site-head .pill[aria-current="page"] { background: var(--ink); color: var(--paper); }
@media (max-width: 809px) { .site-head .back { top: 12px; left: 12px; } }

/* lace, modern: a shallow wave edge, a single fine eyelet row, slightly see-through */
.band {
  background:
    radial-gradient(circle, rgba(22, 153, 141, .22) 1px, transparent 1.4px) 0 7px / 12px 4px repeat-x,
    radial-gradient(circle, rgba(22, 153, 141, .22) 1px, transparent 1.4px) 6px calc(100% - 7px) / 12px 4px repeat-x,
    rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask:
    radial-gradient(ellipse 50% 100% at 50% 100%, #000 97%, transparent 100%) 0 0 / 28px 4px repeat-x,
    radial-gradient(ellipse 50% 100% at 50% 0, #000 97%, transparent 100%) 0 100% / 28px 4px repeat-x,
    linear-gradient(#000, #000) 0 50% / 100% calc(100% - 7px) no-repeat;
  mask:
    radial-gradient(ellipse 50% 100% at 50% 100%, #000 97%, transparent 100%) 0 0 / 28px 4px repeat-x,
    radial-gradient(ellipse 50% 100% at 50% 0, #000 97%, transparent 100%) 0 100% / 28px 4px repeat-x,
    linear-gradient(#000, #000) 0 50% / 100% calc(100% - 7px) no-repeat;
}
.band-wrap .band { padding: 15px 0 13px; }
.band-wrap { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .10)); }
