/* Instrument Serif, Geist, DM Mono: SIL Open Font License. TeX Gyre Heros Condensed: GUST Font License (see assets/fonts/LICENSE-tex-gyre-heros.txt) */
@font-face { font-family: "TeX Gyre Heros Cn"; src: url("/assets/fonts/texgyreheroscn-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TeX Gyre Heros Cn"; src: url("/assets/fonts/texgyreheroscn-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Polina Hand"; src: url("/assets/fonts/polina-hand-v1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Yuji Syuku"; src: url("/assets/fonts/yuji-syuku-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-100-900.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dm-mono-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #fbfaf7;
  --ink: #141414;
  --muted: #9b8a91;          /* grey pulled toward the pink accent (was #8f8d88) */
  --rule: #141414;
  --hair: rgba(20, 20, 20, 0.22);
  --blue: #0f5c66;           /* pen colour: petrol, green-blue to go with the pink; was #2350c8, Polina's shirt */
  --accent: #f2a6c4;         /* footer and highlighter; was lime #c6de48 */
  --pad: clamp(16px, 2.6vw, 40px);
  --gap: clamp(12px, 1.6vw, 24px);
  --serif: "Yuji Syuku", "Instrument Serif", serif;
  --grot: "Geist", "Helvetica Neue", Arial, sans-serif;
  --cond: "TeX Gyre Heros Cn", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --label: var(--cond);   /* string names and other tiny marks share the heading face */
  --hand: "Polina Hand", var(--cond);   /* small labels, in Polina's handwriting */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--grot);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
figure, p, h1, h2, ul { margin: 0; }
em { font-style: normal; }   /* accents are upright Instrument Serif, not italic */
.muted { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 0 var(--pad);
}

/* Mono annotations, like notes on a luthier's drawing */
.note, .menu, .facts, .measure span {
  font-family: var(--mono);
  font-weight: 300;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Header: six ruled columns */
.head {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px var(--pad) 0;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.menu {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
}
.menu .cell { font-size: clamp(16px, 1.43vw, 20.5px); letter-spacing: 0.01em; }   /* 20.5px at 1440, shrinks on narrower screens */
.menu .cell:not(.cell-brand) { font-family: var(--cond); font-weight: 400; font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -0.005em; text-transform: none; }   /* header menu in TeX Gyre Heros Cn, like the logo */
.cell {
  position: relative;
  display: block;
  min-width: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.menu .cell-brand {
  font-family: var(--cond);
  font-size: clamp(28px, 2.6vw, 37.5px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: none;
  padding-bottom: 7px;
}
.cell-brand em { color: var(--muted); }
.cell-soon span, .cell-place { color: var(--muted); }
.cell-soon span { font-size: 0.68em; vertical-align: 0.15em; }  /* "— soon" as a small aside */
@media (max-width: 1200px) and (min-width: 901px) {
  .menu { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cell-place { display: none; }
}
.cell-sound { display: flex; justify-content: flex-end; }

/* hovering a link plucks its rule like a string */
a.cell { border-bottom-color: transparent; }
a.cell::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--rule);
  transform-origin: center;
}
a.cell:hover::after { animation: pluck-rule 0.7s cubic-bezier(0.3, 0.6, 0.3, 1); height: 2px; }
@keyframes pluck-rule {
  0%   { transform: translateY(0); }
  12%  { transform: translateY(-3px); }
  28%  { transform: translateY(2.2px); }
  44%  { transform: translateY(-1.4px); }
  60%  { transform: translateY(0.8px); }
  78%  { transform: translateY(-0.3px); }
  100% { transform: translateY(0); }
}

/* Hero */
.hero {
  padding-top: clamp(72px, 12vw, 190px);
  padding-bottom: clamp(48px, 7vw, 110px);
  align-items: end;
}
.hero .note { grid-column: 1 / span 3; padding-bottom: 0.9em; }
.hero-title {
  grid-column: 4 / -1;
  font-family: var(--cond);
  font-weight: 400;
  font-size: clamp(46px, 7.4vw, 136px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Strings: four hairlines, tuned G D A E */
.strings {
  position: relative;
  display: grid;
  gap: 10px;
  margin: -14px var(--pad);
  padding: 14px 0 14px 20px; /* taller hit area for plucking */
  touch-action: pan-y;
}
.strings.is-live span { background: transparent; }
.strings-svg {
  position: absolute;
  top: 0; bottom: 0; left: 20px; right: 0;
  width: calc(100% - 20px);
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.string { fill: none; stroke: var(--hair); stroke-width: 1; vector-effect: non-scaling-stroke; }
.string.s0 { stroke: var(--rule); }
@media (hover: hover) { .strings.is-live { cursor: crosshair; } }

/* Sound toggle */
.sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.sound[hidden] { display: none; }
/* Equalizer icon: four rounded bars standing on the text baseline.
   Off: still, uneven and faded. On: full ink, each bar bouncing on its own beat. */
.sound { align-items: baseline; }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 0.66em; }
.sound-bars i {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.45;
  transform-origin: bottom;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.sound-bars i:nth-child(1) { transform: scaleY(0.35); }
.sound-bars i:nth-child(2) { transform: scaleY(0.7); }
.sound-bars i:nth-child(3) { transform: scaleY(0.5); }
.sound-bars i:nth-child(4) { transform: scaleY(0.85); }
.sound:hover .sound-bars i { opacity: 0.8; }
.sound[aria-pressed="true"] .sound-bars i { opacity: 1; animation: bar 0.9s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-duration: 1.1s; animation-delay: -0.4s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-duration: 0.8s; animation-delay: -0.2s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(4) { animation-duration: 1.2s; animation-delay: -0.7s; }
@keyframes bar { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
/* each span is a 1px line; its note name sits in the left gutter */
.strings span {
  position: relative;
  display: block;
  height: 1px;
  background: var(--hair);
}
.strings span::before {
  content: attr(data-n);
  position: absolute;
  left: -20px;
  top: -5px;
  font: 300 9px/10px var(--mono);
  color: var(--muted);
}
.strings span:nth-child(1) { background: var(--rule); }
.strings span:nth-child(4) { opacity: 0.8; }

/* Featured plate */
.plate { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(96px, 12vw, 200px); }
.plate-side {
  grid-column: 1 / span 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 36px;
}
.plate-side .muted { max-width: 22ch; }
.plate-fig { grid-column: 4 / span 6; }
.plate-fig img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 60%;
  filter: grayscale(1) contrast(1.06);
}
/* dimension line above the image */
.measure {
  position: relative;
  height: 24px;
  margin-bottom: 12px;
  border-left: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}
.measure::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--ink);
}
.measure span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 10px;
  background: var(--paper);
  white-space: nowrap;
}

/* Sections */
.section { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(96px, 12vw, 200px); scroll-margin-top: 84px; }
.section > .note { grid-column: 1 / span 3; padding-top: 0.6em; }

.about { grid-column: 4 / -1; }
.statement {
  font-family: var(--cond);
  font-size: clamp(32px, 4.3vw, 78px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.statement strong { font-weight: 700; letter-spacing: -0.03em; }
.statement em { color: var(--muted); }
.aside {
  max-width: 34ch;
  margin-top: clamp(32px, 4vw, 64px);
  margin-left: auto;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Polina */
.portrait { grid-column: 4 / span 4; }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.person {
  grid-column: 8 / -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.person-name {
  font-family: var(--cond);
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.person-name em { display: block; color: var(--muted); }
.person-bio {
  max-width: 30ch;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.facts { list-style: none; padding: 0; }
.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--hair);
}
.facts li:last-child { border-bottom: 1px solid var(--hair); }
.facts li::before { content: "+"; color: var(--muted); }

/* Footer */
/* Footer: a soft vertical gradient, saturated at the top and settling into warm grey */
.foot {
  padding: 0 0 var(--pad);
  background:
    url("/assets/stripes.svg") 0 0 / 100% 640px no-repeat,   /* lines take the top ~128px at any footer height */
    linear-gradient(180deg, var(--accent) 0%, #efb7cd 22%, #e9c9d4 48%, #e3d6d9 72%, #dedcd3 100%);   /* pink to grey; lime was #c6de48 #d0e07a #d8e0ad #dcdec9 */
}
.foot { position: relative; overflow: hidden; }

/* top row: label, lead line, side note with a pill */
.foot-top { padding-top: 168px; align-items: start; row-gap: 28px; }   /* starts just below the lines */
.foot-label { grid-column: 1 / span 3; padding-top: 0.7em; }
.foot-lead {
  grid-column: 4 / span 6;
  font-family: var(--cond);
  font-size: clamp(34px, 4.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.foot-lead em { font-family: var(--serif); font-style: normal; letter-spacing: -0.01em; color: #6f5c65; }   /* the site grey, darkened to read on the pink */
.foot-side {
  grid-column: 10 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-top: 0.6em;
  font-size: 15px;
  line-height: 1.4;
  max-width: 30ch;
}

/* giant wordmark across the whole width, its feet cropped by the bar */
.foot-word {
  margin: clamp(56px, 8vw, 140px) 0 0;
  padding: 0 var(--pad);
  font-family: var(--cond);
  /* sized so the line spans the content width */
  font-size: calc((100vw - 2 * var(--pad)) / 5.38);
  line-height: 0.74;
  letter-spacing: -0.045em;
  white-space: nowrap;
  user-select: none;
}
.foot-word em { color: var(--blue); }
/* chrome 3D ampersand (generated in Higgsfield), sitting on the baseline like a glyph */
.amp-chrome {
  display: inline-block;
  height: 0.92em;
  width: auto;
  margin: 0 0.01em 0 -0.03em;
  vertical-align: -0.09em;
  animation: amp-float 6s ease-in-out infinite;
  filter: drop-shadow(0 0.04em 0.05em rgba(40, 50, 10, 0.18));
}
/* the small one in the header stays still */
.amp-chrome-head {
  animation: none;
  height: 0.86em;
  margin: 0 -0.02em 0 -0.03em;
  vertical-align: -0.1em;
  filter: drop-shadow(0 1px 1px rgba(20, 20, 20, 0.15));
}
@keyframes amp-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-0.03em) rotate(-3deg); }
}

/* bottom bar */
.foot-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 var(--pad);
  padding: 12px 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Tablet */
@media (max-width: 900px) {
  .menu { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .cell-place { display: none; }
  .hero .note { grid-column: 1 / -1; order: 2; margin-top: 28px; }
  .hero-title { grid-column: 1 / -1; }
  .plate-side { grid-column: 1 / -1; order: 2; padding-top: 12px; }
  .plate-fig { grid-column: 1 / span 10; }
  .section > .note { grid-column: 1 / -1; margin-bottom: 20px; }
  .about { grid-column: 1 / -1; }
  .portrait { grid-column: 1 / span 6; }
  .person { grid-column: 7 / -1; }
  .foot-label { grid-column: 1 / -1; }
  .foot-lead { grid-column: 1 / span 9; }
  .foot-side { grid-column: 1 / -1; max-width: 46ch; }
}

/* Phone */
@media (max-width: 640px) {
  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .cell-soon, .cell-place { display: none; }
  .cell-brand { order: -2; }
  .cell-sound { order: -1; }
  .plate-fig { grid-column: 1 / -1; }
  .aside { margin-left: 0; }
  .portrait { grid-column: 1 / -1; }
  .person { grid-column: 1 / -1; margin-top: 28px; }
  .foot-lead { grid-column: 1 / -1; text-indent: 1em; }
  .foot-bar { flex-direction: column; gap: 4px; }
  .menu .cell-brand { font-size: 28px; }
}

/* Condensed grotesk headings with upright Instrument Serif accents */
.hero-title em, .statement em, .person-name em, .foot-word em, .cell-brand em {
  font-family: var(--serif);
  font-style: normal;
  letter-spacing: -0.01em;
}

/* Red line: every running paragraph opens with a first-line indent.
   Display text steps in by 1.6em, small text by a wider 3em so the step still reads. */
.statement, .foot-lead { text-indent: 1.6em; }
.aside, .person-bio, .foot-side p { text-indent: 3em; }

/* Small labels in Polina's own handwriting (Polina Hand), lowercase:
   her capitals are only scaled-up lowercase, so the labels stay in her real letters.
   Joined script, so no tracking. */
.note, .measure span {
  font-family: var(--hand);
  font-size: clamp(20px, 1.6vw, 25px);
  line-height: 1.25;
  letter-spacing: 0; font-weight: 400;
  text-transform: lowercase;
}
.strings span::before { font-family: var(--label); font-size: 13px; top: -8px; }

.hero-title em { color: var(--muted); }   /* grey, like the other serif accents */

/* Polina's list and the footer bar read as plain text, in Geist */
.facts, .foot-bar {
  font-family: var(--grot);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.005em;
  text-transform: none;
}

/* Blue pen marks, drawn in when they scroll into view */
.ink-circle { position: relative; white-space: nowrap; }
.ink-circle svg {
  position: absolute;
  /* the loop spans ~12-96% of its drawing; letters' ink spans ~20-77% of the inline box */
  left: -5%; top: -6%;
  width: 109%; height: 98%;
  overflow: visible;
  pointer-events: none;
}
/* a single short word needs a bit more room on each side */
.ink-circle-word svg { left: -13%; width: 130%; top: -8%; height: 120%; }
.ink-circle path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;   /* with pathLength=1: draw-in goes from 1 to 0 */
  stroke-dashoffset: 0;
}
.js .ink-circle path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(0.45, 0.1, 0.25, 1) 0.2s; }
.js .is-drawn path { stroke-dashoffset: 0; }

/* Highlighter: a stroke of the footer's accent laid behind the word, swept left to right */
.ink-mark { position: relative; z-index: 0; white-space: nowrap; }
.ink-mark svg {
  position: absolute;
  left: -3%; top: 0;
  width: 106%; height: 100%;
  overflow: visible;
  z-index: -1;
  pointer-events: none;
}
.ink-mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 54;
  stroke-linecap: butt;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.js .ink-mark path { stroke-dashoffset: 1; transition: stroke-dashoffset 0.45s cubic-bezier(0.4, 0.1, 0.3, 1) 0.1s; }
.js .ink-mark.is-drawn path { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .amp-chrome { animation: none; }
  .js .ink-circle path, .js .ink-mark path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  a.cell:hover::after { animation: none; }
  .sound[aria-pressed="true"] .sound-bars i { animation: none; }
}

/* Yuji Syuku: brush serif with wide side bearings, tracked in */
.hero-title em, .statement em, .person-name em, .foot-word em, .cell-brand em, .foot-lead em {
  letter-spacing: -0.1em;
  margin-right: 0.08em;
}
