/* Tjaša Peterle portfolio. Same content + layout as the WordPress original, refined. */
:root {
  --cream: #fffaf5;
  --blush: #f8ece5;
  --blush-deep: #f1dcd2;
  --ink: #171414;
  --ink-soft: #4d4542;
  --ink-mute: #6e6461;
  --line: rgba(23, 20, 20, 0.12);
  --rose: #a86a5c;

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 48px);
  --r-img: 6px;

  /* z-index scale */
  --z-header: 20;
  --z-menu: 40;
  --z-lightbox: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--cream); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: #cdbab1 var(--cream); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: #d8c6bd; border-radius: 99px; border: 3px solid var(--cream); }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 12px; }

/* ---------- notice bar ---------- */
.notice {
  background: var(--blush);
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  padding: 9px var(--gut);
  color: var(--ink-soft);
}
.notice a { color: var(--ink); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .notice a:hover { background-size: 100% 1px; } }

/* ---------- header ---------- */
.header {
  position: absolute; left: 0; right: 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gut);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.logo { display: block; width: 58px; height: 58px; border-radius: 50%; transition: transform 300ms var(--ease-out); }
.logo img { width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) { .logo:hover { transform: rotate(-8deg); } }

.burger {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  z-index: calc(var(--z-menu) + 1);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.burger:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .burger:hover { background: rgba(23, 20, 20, 0.06); } }
.burger span { position: absolute; right: 9px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 380ms var(--ease-out), width 380ms var(--ease-out); }
.burger span:nth-child(1) { width: 34px; transform: translateY(-5px); }
.burger span:nth-child(2) { width: 22px; transform: translateY(5px); }
.menu-open .burger span:nth-child(1) { width: 28px; transform: translate(-3px, 0) rotate(45deg); }
.menu-open .burger span:nth-child(2) { width: 28px; transform: translate(-3px, 0) rotate(-45deg); }
.menu-open .header { position: fixed; top: 0; z-index: calc(var(--z-menu) + 1); }
.burger-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 600ms var(--ease-drawer), visibility 0s linear 600ms;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 650ms var(--ease-drawer), visibility 0s; }
.menu-side {
  background: var(--blush);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 0 var(--gut) clamp(32px, 7vh, 72px);
  font-size: 17px; color: var(--ink-soft);
}
.menu-side a { text-decoration: none; width: fit-content; }
.menu-side a:hover { color: var(--ink); text-decoration: underline; }
.menu-nav { display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gut); gap: clamp(4px, 1.5vh, 14px); }
.menu-nav a {
  display: flex; align-items: baseline; gap: 22px;
  text-decoration: none; width: fit-content;
  font-family: var(--serif); font-size: clamp(3rem, 7.5vw, 6rem); line-height: 1.08; letter-spacing: -0.01em;
  opacity: 0; transform: translateY(28px);
  transition: opacity 300ms ease, transform 300ms var(--ease-out), color 200ms ease;
}
.menu-nav a small { font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; color: var(--ink-mute); transform: translateY(-1.6em); }
.menu-nav a span { background: linear-gradient(var(--rose), var(--rose)) 0 92% / 0 2px no-repeat; transition: background-size 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .menu-nav a:hover span { background-size: 100% 2px; } }
.menu-nav a[aria-current="page"] span { background-size: 100% 2px; }
.menu-open .menu-nav a { opacity: 1; transform: none; transition: opacity 600ms ease, transform 800ms var(--ease-out); }
.menu-open .menu-nav a:nth-child(1) { transition-delay: 180ms; }
.menu-open .menu-nav a:nth-child(2) { transition-delay: 240ms; }
.menu-open .menu-nav a:nth-child(3) { transition-delay: 300ms; }
.menu-open { overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 28px;
  border: 1.5px solid var(--ink); border-radius: 99px;
  font-weight: 600; font-size: 14.5px; letter-spacing: 0.04em; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 300ms var(--ease-out), transform 160ms var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 420ms var(--ease-out);
}
.btn i { font-size: 18px; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { color: var(--cream); }
  .btn:hover::before { clip-path: inset(0 0 0 0); }
  .btn:hover i { transform: translateX(4px); }
}
.btn:active { transform: scale(0.97); }

/* ---------- hero (home + contact) ---------- */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--cream) 0 58.8%, var(--blush) 59% 100%);
  min-height: min(calc(100svh - 36px), 880px);
  display: flex; align-items: stretch;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; column-gap: 32px; position: relative; }
.hero-copy { padding-block: 140px 96px; position: relative; z-index: 2; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.62em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-size: clamp(3.2rem, 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: -0.015em; }
.roles { margin-top: 18px; font-weight: 600; font-size: clamp(15px, 1.35vw, 18px); letter-spacing: 0.01em; }
.roles span { white-space: nowrap; }
.roles b { color: var(--rose); font-weight: 600; padding-inline: 0.15em; }
.ticks { margin: 34px 0 40px; display: grid; gap: 12px; color: var(--ink-soft); font-size: 15.5px; }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks i { font-size: 20px; color: var(--ink); }

.hero-figure { position: relative; align-self: end; height: 100%; min-height: 560px; }

.hero-figure .portrait {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: auto; height: 94%; max-height: 760px; max-width: none;
}

/* hero load choreography: the one authored moment */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(22px); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .hero-figure .portrait { clip-path: inset(100% 0 0 0); animation: unveil 1300ms var(--ease-in-out) 150ms forwards; }
  
  
  
}

/* ---------- LinkedIn marquee strip ---------- */
.strip { display: block; background: var(--ink); color: var(--cream); text-decoration: none; overflow: hidden; }
.strip-track { display: flex; width: max-content; }
.strip-track span {
  display: inline-flex; align-items: center; gap: 28px; padding: 17px 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.32em; white-space: nowrap;
}
.strip-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
@media (prefers-reduced-motion: no-preference) {
  .strip-track { animation: marquee 38s linear infinite; }
  @media (hover: hover) and (pointer: fine) { .strip:hover .strip-track { animation-play-state: paused; } }
  @keyframes marquee { to { transform: translateX(-50%); } }
}

/* ---------- portfolio ---------- */
.work { background: var(--blush); padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 88px); }
.work-head { text-align: center; }
.work h2, .press h2 { font-family: var(--serif); font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.05; letter-spacing: -0.01em; }
.filters { position: relative; display: inline-flex; gap: 4px; margin: 30px auto 0; padding: 5px; background: var(--cream); border-radius: 99px; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px -14px rgba(110, 70, 55, 0.35); }
.filters button {
  position: relative; z-index: 1; height: 40px; padding: 0 20px; border-radius: 99px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: color 250ms ease, transform 160ms var(--ease-out);
}
.filters button:active { transform: scale(0.96); }
.filters button[aria-pressed="true"] { color: var(--cream); }
.filters .pill { position: absolute; z-index: 0; top: 5px; left: 0; height: 40px; border-radius: 99px; background: var(--ink); transition: transform 450ms var(--ease-out), width 450ms var(--ease-out); }

.grid {
  margin: clamp(36px, 5vw, 56px) auto 0;
  width: min(100% - 2 * var(--gut), 1480px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.tile {
  position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-img);
  background: var(--blush-deep);
  transition: opacity 260ms ease, transform 420ms var(--ease-out);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out), filter 400ms ease; }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23, 20, 20, 0.42), rgba(23, 20, 20, 0) 55%);
  opacity: 0; transition: opacity 300ms ease;
}
.tile .zoom {
  position: absolute; z-index: 1; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); font-size: 18px;
  opacity: 0; transform: translateY(8px) scale(0.92); transition: opacity 250ms ease, transform 350ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.05); }
  .tile:hover::after, .tile:focus-visible::after { opacity: 1; }
  .tile:hover .zoom, .tile:focus-visible .zoom { opacity: 1; transform: none; }
}
.tile.is-out { opacity: 0; transform: scale(0.97); }
.tile[hidden] { display: none; }

/* ---------- award + press ---------- */
.press { background: var(--blush); padding: 0 0 clamp(64px, 8vw, 100px); text-align: center; }
.award { display: inline-block; margin-top: clamp(24px, 4vw, 48px); transition: transform 300ms var(--ease-out); }
.award img { width: 210px; mix-blend-mode: multiply; }
@media (hover: hover) and (pointer: fine) { .award:hover { transform: translateY(-3px) rotate(-2deg); } }
.press-title { margin-top: 44px; font-size: 13px; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; }
.logos { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 3vw, 36px); }
.logos a {
  display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%;
  background: var(--cream); box-shadow: 0 10px 30px -18px rgba(110, 70, 55, 0.5);
  transition: transform 300ms var(--ease-out), box-shadow 300ms ease;
}
.logos img { width: 66px; height: 66px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); transition: filter 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .logos a:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -18px rgba(110, 70, 55, 0.6); }
  .logos a:hover img { filter: none; }
}

/* ---------- footer ---------- */
.footer { background: var(--cream); text-align: center; padding: 56px var(--gut) 40px; }
.footer .logo { margin: 0 auto; width: 64px; height: 64px; }
.socials { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.socials a:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .socials a:hover { background: var(--ink); color: var(--cream); } }
.copy { margin-top: 18px; font-size: 13px; color: var(--ink-mute); }

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 650ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox); margin: 0; padding: 0; border: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  background: rgba(23, 20, 20, 0.9); color: var(--cream);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; grid-template-rows: auto 1fr auto; place-items: center;
  opacity: 0; transition: opacity 250ms ease, overlay 250ms allow-discrete, display 250ms allow-discrete;
}
.lightbox:not([open]) { display: none; }
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }
.lb-bar { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gut); font-size: 13px; letter-spacing: 0.12em; }
.lb-stage { width: 100%; height: 100%; display: grid; place-items: center; padding: 0 clamp(8px, 7vw, 110px); min-height: 0; }
.lb-stage img {
  max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; border-radius: var(--r-img);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  transition: opacity 220ms ease, transform 320ms var(--ease-out), filter 220ms ease;
}
.lb-stage img.swap { opacity: 0; transform: scale(0.98); filter: blur(4px); }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--cream); background: rgba(255, 250, 245, 0.08); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.lb-btn:active { transform: scale(0.93); }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgba(255, 250, 245, 0.2); } }
.lb-nav { display: flex; gap: 10px; padding: 14px 0 22px; }

/* ---------- contact page ---------- */
.hero--contact .hero-copy { padding-block: 150px 110px; }
.form { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 520px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: rgba(255, 250, 245, 0.75); border: 1.5px solid rgba(23, 20, 20, 0.28); border-radius: 22px;
  padding: 12px 18px; transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
  caret-color: var(--rose);
}
.field textarea { min-height: 140px; resize: vertical; border-radius: 22px; }
.field input::placeholder, .field textarea::placeholder { color: #8a7f7b; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(168, 106, 92, 0.16); }
.field .err { min-height: 0; font-size: 12.5px; color: #9b3b2b; }
.field.bad input, .field.bad textarea { border-color: #9b3b2b; }
.form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--ink-mute); min-height: 1.4em; }

/* ---------- CV page ---------- */
.cv-top { padding: 120px 0 0; text-align: center; }
.namebox { display: inline-block; border: 2px solid var(--ink); padding: 22px clamp(22px, 4vw, 54px) 20px; outline: 1px solid var(--ink); outline-offset: 5px; }
.namebox h1 { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; }
.namebox p { margin-top: 8px; font-size: 13.5px; font-weight: 500; letter-spacing: 0.02em; }
.polaroid { width: min(560px, 92%); margin: 34px auto 0; }
.cv { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(40px, 6vw, 72px); position: relative; }
.cv::before { content: ""; position: absolute; top: 8px; bottom: 0; left: 50%; width: 1.5px; background: var(--ink); transform-origin: top; }
.cv-col { padding-bottom: 24px; }
.cv-col--l { padding-right: clamp(24px, 5vw, 64px); text-align: right; }
.cv-col--r { padding-left: clamp(24px, 5vw, 64px); }
.cv h2 { font-family: var(--serif); font-size: clamp(1.9rem, 2.8vw, 2.4rem); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; margin-bottom: 26px; }
.cv-block + .cv-block { margin-top: clamp(48px, 6vw, 72px); }
.entry { position: relative; }
.entry + .entry { margin-top: 30px; }
.when { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; color: var(--rose); }
.entry h3 { font-family: var(--serif); font-size: 1.32rem; line-height: 1.2; margin-top: 3px; }
.entry p { margin-top: 8px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }
.cv-col--l .entry p { margin-left: auto; max-width: 46ch; }
.cv-col--l .entry::after, .cv-col--r .entry::after {
  content: ""; position: absolute; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--ink);
}
.cv-col--l .entry::after { right: calc(-1 * clamp(24px, 5vw, 64px) - 4.5px); }
.cv-col--r .entry::after { left: calc(-1 * clamp(24px, 5vw, 64px) - 5.25px); }
.story p { color: var(--ink-soft); font-size: 15px; line-height: 1.8; max-width: 52ch; margin-left: auto; }
.story p + p { margin-top: 14px; }
.story .quote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.edu .entry h3 { font-size: 1.15rem; }
.list li { position: relative; padding-left: 18px; }
.list li + li { margin-top: 16px; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.list strong { display: block; font-size: 14.5px; }
.list span { font-size: 14px; color: var(--ink-soft); }
.skills-intro { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); margin-bottom: 22px; }
.skill + .skill { margin-top: 14px; }
.skill-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; }
.skill-row span:last-child { font-variant-numeric: tabular-nums; color: var(--ink-mute); }
.bar { height: 3px; margin-top: 6px; background: rgba(23, 20, 20, 0.1); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); background: var(--ink); border-radius: 3px; transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .js .skills:not(.in) .bar i { transform: scaleX(0); }
  .js .skills .bar i { transition: transform 1200ms var(--ease-out); }
  .js .skills .skill:nth-child(n) .bar i { transition-delay: calc(var(--n) * 50ms); }
}
.contacts li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.contacts li + li { margin-top: 10px; }
.contacts li.gap { margin-top: 22px; }
.contacts i { font-size: 18px; }
.contacts a { text-decoration: none; }
.contacts a:hover { text-decoration: underline; }
.about { text-align: center; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.about .namebox { padding: 14px 30px 12px; }
.about .namebox h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.3rem); text-transform: uppercase; }
.about-text { max-width: 60ch; margin: 36px auto 0; display: grid; gap: 14px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.75; }
.about-text strong { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { background: linear-gradient(160deg, var(--cream) 0 62%, var(--blush) 62.2% 100%); min-height: 0; }
  .hero-copy, .hero--contact .hero-copy { padding-block: 116px 8px; }
  .hero-figure { min-height: 0; height: clamp(420px, 105vw, 640px); }
  .hero-figure .portrait { height: 100%; }
  
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .menu { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .menu-side { order: 2; padding-top: 22px; padding-bottom: 28px; }
  .menu-nav { padding-top: 100px; }
  .cv { grid-template-columns: 1fr; }
  .cv::before { left: 4px; }
  .cv-col--l, .cv-col--r { padding: 0 0 0 30px; text-align: left; }
  .cv-col--l .entry p, .story p { margin-left: 0; }
  .cv-col--r { margin-top: 56px; }
  .cv-col--l .entry::after, .cv-col--r .entry::after { right: auto; left: -30px; }
}
@media (max-width: 560px) {
  .logo { width: 48px; height: 48px; }
  .header { padding-top: 16px; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 3.4rem); }
  .eyebrow { letter-spacing: 0.5em; font-size: 12px; }
  .roles { font-size: 14px; }
  .roles b { padding-inline: 0.05em; }
  .grid { grid-template-columns: 1fr; }
  .filters button { padding: 0 13px; font-size: 13.5px; }
  .form { grid-template-columns: 1fr; }
  .logos a { width: 88px; height: 88px; }
  .logos img { width: 54px; height: 54px; }
  .strip-track span { font-size: 12px; }
  .notice { font-size: 12px; }
}

/* shared hero keyframes */
@keyframes letter { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes step-in { to { opacity: 1; transform: none; } }

/* =====================================================================
   PAPER + GRAIN: textured paper under every section, fine film grain over
   the whole site.
   ===================================================================== */
body, .notice, .work, .press, .footer, .menu, .menu-side, .about {
  background-image: url("/assets/img/paper.webp?v=5");
  background-size: 640px;
  background-blend-mode: multiply;
}
/* film grain over everything (static tile, gently jittered on the compositor) */
body::after {
  content: ""; position: fixed; inset: -60px; z-index: 80; pointer-events: none;
  background: url("/assets/img/grain.png?v=5") 0 0 / 256px repeat;
  opacity: 0.32;
}
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: grain 900ms steps(1) infinite; }
  @keyframes grain {
    0% { transform: translate(0, 0); } 16% { transform: translate(-23px, 14px); } 33% { transform: translate(17px, -31px); }
    50% { transform: translate(-41px, -9px); } 66% { transform: translate(29px, 37px); } 83% { transform: translate(-7px, 44px); }
  }
}
/* print grain + a touch of warmth on her photo, masked to her silhouette */

.tile img, .polaroid { filter: contrast(1.02) saturate(0.95); }

/* =====================================================================
   ZINE / PHOTOCOPY STYLE (v4): black toner on grainy paper. Bodoni + a
   swash script + wide Archivo caps, square boxes, xerox textures.
   ===================================================================== */
:root {
  --cream: #f2efe9;
  --blush: #ebe7df;
  --blush-deep: #dcd8cf;
  --ink: #111010;
  --ink-soft: #34322f;
  --ink-mute: #5f5b55;
  --line: rgba(17, 16, 16, 0.2);
  --rose: #111010;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Monsieur La Doulaise", "Snell Roundhand", cursive;
  --r-img: 0px;
  --sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0C53 36 64 47 100 50C64 53 53 64 50 100C47 64 36 53 0 50C36 47 47 36 50 0Z'/%3E%3C/svg%3E");
}
body::after { opacity: 0.55; }
html { scrollbar-color: #9d978d var(--cream); }
::-webkit-scrollbar-thumb { background: #b9b3a8; border-color: var(--cream); }

/* wide caps voice for small labels (like "LEAVE ROOM FOR CONVERSATION") */
.notice, .btn, .filters button, .press-title, .eyebrow, .when, .skill-row, .lb-bar {
  font-family: var(--sans); font-stretch: 125%;
}
.notice { background-color: var(--cream); border-bottom: 1px solid var(--line); font-size: 11.5px; letter-spacing: 0.02em; }

/* square, ink-bordered controls */
.btn { border-radius: 0; height: 50px; padding: 0 24px; border-width: 1.5px; text-transform: uppercase; font-size: 12.5px; letter-spacing: 0.12em; font-weight: 600; }
.filters { border-radius: 0; background: transparent; box-shadow: none; border: 1.5px solid var(--ink); padding: 0; gap: 0; }
.filters button { border-radius: 0; height: 42px; padding: 0 20px; text-transform: uppercase; font-size: 12px; letter-spacing: 0.12em; color: var(--ink); }
.filters button + button { border-left: 1.5px solid var(--ink); }
.filters .pill { top: 0; height: 42px; border-radius: 0; }
.filters button[aria-pressed="true"] { color: var(--cream); }

/* script accent words: Bodoni line + a swash word, like the reference posters */
.work h2 em, .hero h1 em, .about .namebox h2 em {
  font-family: var(--script); font-style: normal; font-weight: 400;
  font-size: 1.45em; line-height: 0.6; letter-spacing: 0; margin-left: -0.08em; vertical-align: -0.04em;
}
.work h2 { font-weight: 500; }

/* portfolio: photocopied thumbnails, colour comes back on hover */
.tile { border-radius: 0; outline: 1px solid var(--line); outline-offset: -1px; }
.tile .zoom { border-radius: 0; background: var(--ink); color: var(--cream); }
@media (hover: hover) and (pointer: fine) {
  .tile img { filter: grayscale(1) contrast(1.28) brightness(1.04); transition: transform 900ms var(--ease-out), filter 500ms ease; }
  .tile:hover img { filter: none; }
}

/* the black strip: sparkles between the repeats */
.strip-track span::after { width: 11px; height: 11px; border-radius: 0; background: var(--cream); -webkit-mask: var(--sparkle) center / contain no-repeat; mask: var(--sparkle) center / contain no-repeat; }

/* press + footer: squares */
.logos a { border-radius: 0; box-shadow: none; border: 1.5px solid var(--ink); background: var(--cream); }
@media (hover: hover) and (pointer: fine) { .logos a:hover { box-shadow: 6px 6px 0 var(--ink); transform: translate(-3px, -3px); } }
.socials a { border-radius: 0; }

/* ---------- home hero, zine edition ---------- */

/* contact hero */
.hero { background: url("/assets/img/paper.webp?v=5") 0 0 / 640px, var(--cream); background-blend-mode: multiply; }
.hero-figure .portrait { height: 90%; }

.field input, .field textarea { border-radius: 0; background: rgba(255, 255, 255, 0.45); border-color: var(--ink); }
.field input:focus, .field textarea:focus { box-shadow: 4px 4px 0 var(--ink); }

/* CV: photocopied polaroid, ink accents */
.polaroid { filter: grayscale(1) contrast(1.18) brightness(1.03); }
.when { color: var(--ink-mute); font-size: 10.5px; }
.entry h3 { font-weight: 500; }

body::after { opacity: 0.45; }

/* phones: the name gets its own band above her head (no swash over her face) */

@media (max-width: 560px) {
  .filters { max-width: calc(100vw - 2 * var(--gut)); }
  .filters button { padding: 0 10px; font-stretch: 100%; letter-spacing: 0.06em; font-size: 11.5px; }
}

/* v5 name: "Tjaša" in Mea Culpa script over "PETERLE" in Bodoni caps (like HYSTERIC / Angel) */
:root { --script-name: "Mea Culpa", "Snell Roundhand", cursive; }

/* Y2K photocopied butterflies: wrapper drifts, image flaps (scaleX toward the body) */
.bf { position: absolute; z-index: 7; pointer-events: none; width: var(--w, 70px); rotate: var(--r, 0deg); }
.bf img { display: block; width: 100%; height: auto; transform-origin: 50% 50%; }
.work-head { position: relative; }
.bf--section { --w: 78px; --r: -14deg; left: calc(50% - 470px); top: -10px; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .bf { animation: bf-drift var(--dur, 11s) var(--ease-in-out) infinite alternate; animation-delay: var(--delay, 0s); }
  .bf img { animation: bf-flap var(--flap, 2.6s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
  .bf--2 { --dur: 13s; --flap: 3.1s; --delay: -2s; }
  .bf--3 { --dur: 9s; --flap: 5.2s; --delay: -1s; }
  .bf--4 { --dur: 12s; --flap: 2.9s; --delay: -4s; }
  .bf--5 { --dur: 10s; --flap: 2.2s; --delay: -3s; }
  .bf--6 { --dur: 8s; --flap: 2s; --delay: -5s; }
  .bf--section { --dur: 12s; --flap: 3.4s; }
  @keyframes bf-drift {
    0% { translate: 0 0; } 33% { translate: 14px -18px; } 66% { translate: -10px -6px; } 100% { translate: 8px 12px; }
  }
  /* two quick beats, then a glide */
  @keyframes bf-flap {
    0%, 36%, 100% { transform: scaleX(1); } 8% { transform: scaleX(0.28) scaleY(0.96); } 16% { transform: scaleX(1); }
    24% { transform: scaleX(0.34) scaleY(0.97); } 32% { transform: scaleX(1); }
  }
  /* they flutter in after the name settles */
  
  .bf--1 { --n: 0; } .bf--2 { --n: 1; } .bf--3 { --n: 2; } .bf--4 { --n: 3; } .bf--5 { --n: 4; } .bf--6 { --n: 5; }
  @keyframes bf-in { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }
}
@media (max-width: 900px) {
  .bf--section { --w: 54px; left: 6%; top: -30px; }
}
.work-head h2 { width: fit-content; margin-inline: auto; }

/* =====================================================================
   HOME HERO v6: her mockup. Clean white, colour photo with a soft haze,
   "Peterle" + "Tjaša" in swash script behind her, typewriter roles,
   textured checklist card, black pill CTA, photocopied butterflies.
   ===================================================================== */
:root { --type: "Courier Prime", "Courier New", monospace; }
.cover {
  --edge: max(var(--gut), calc((100% - 1280px) / 2));
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(660px, calc(100svh - 37px), 1000px);
  background: #fdfdfb; color: var(--ink);
}
.cover::before { /* the long rule from the label to the right edge */
  content: ""; position: absolute; top: calc(8.2% + 1px); left: 56.5%; right: 0; height: 1.5px; background: var(--ink);
  transform-origin: left; z-index: 1;
}
.cover-label {
  position: absolute; z-index: 3; top: 6.6%; left: 31%; width: 19%;
  display: flex; align-items: center; gap: 12px; margin: 0;
  font-family: var(--type); font-size: clamp(12px, 1.2vw, 16px); letter-spacing: 0.08em; text-transform: uppercase;
}
.cover-label::before, .cover-label::after { content: ""; flex: 1; height: 1.5px; background: var(--ink); }

.cover-name { position: absolute; inset: 0; z-index: 1; margin: 0; pointer-events: none; font-family: var(--script-name); font-weight: 400; color: var(--ink); line-height: 1; }
.cover-name .l1, .cover-name .l2 { position: absolute; white-space: nowrap; font-size: min(23.5vw, 40svh); letter-spacing: 0; }
.cover-name .l1 { left: 4.2%; top: 4%; }
.cover-name .l2 { left: 48.5%; top: 27%; }
.cover-name span span { display: inline-block; }

.cover-photo { position: absolute; z-index: 2; bottom: 0; left: 51.5%; height: 77%; aspect-ratio: 1400 / 1676; transform: translateX(-50%); }
.cover-photo img { width: 100%; height: 100%; }

.cover-roles {
  position: absolute; z-index: 3; top: 11.4%; left: 62%; margin: 0;
  font-family: var(--type); font-size: clamp(18px, 2.7vw, 38px); line-height: 1.16; letter-spacing: 0.01em;
}
.cover-roles span { display: block; white-space: nowrap; }

.cover-ticks {
  position: absolute; z-index: 3; left: 7.4%; top: 65.5%; width: min(31%, 450px);
  padding: 4px 22px; background: #e9e8e4 url("/assets/img/paper.webp?v=5") 0 0 / 640px; background-blend-mode: multiply;
}
.cover-ticks::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("/assets/img/grain-strong.png?v=5") 0 0 / 220px; opacity: 0.55; }
.cover-ticks li {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 13px 0;
  font-family: var(--sans); font-stretch: 125%; font-size: clamp(10.5px, 0.98vw, 14px); letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.55;
  border-bottom: 1px solid rgba(17, 16, 16, 0.18);
}
.cover-ticks li:last-child { border-bottom: 0; }
.cover-ticks .tick { display: inline-grid; width: 11px; height: 11px; flex: none; }
.cover-ticks .tick svg { width: 100%; height: 100%; fill: currentColor; }

.cover-cta {
  position: absolute; z-index: 3; right: 5.8%; bottom: 7.2%; width: min(33.6%, 470px); height: clamp(60px, 9.6svh, 84px);
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 40px);
  border-radius: 999px; background: var(--ink); color: #fdfdfb; text-decoration: none;
  font-family: var(--serif); font-size: clamp(16px, 2vw, 27px); letter-spacing: 0.42em; text-transform: uppercase; font-weight: 400;
  transition: transform 160ms var(--ease-out), background-color 250ms ease;
}
.cover-cta span { margin-right: -0.42em; }
.cover-cta svg { width: clamp(40px, 4.8vw, 66px); height: auto; transition: transform 350ms var(--ease-out); }
.cover-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .cover-cta:hover svg { transform: translateX(6px); } .cover-cta:hover { background: #2a2826; } }
.cover-cta:focus-visible { outline-offset: 4px; }

/* butterflies in the cover */
.cover .bf--1 { --w: 60px; --r: -12deg; left: 3.5%; top: 55%; }
.cover .bf--2 { --w: 84px; --r: 10deg; left: 21%; top: 52%; }
.cover .bf--3 { --w: 60px; --r: 8deg; right: 3%; top: 60%; }
.cover .bf--4 { --w: 56px; --r: -10deg; left: 3%; top: 88%; }
.cover .bf--5 { --w: 48px; --r: 16deg; left: 63%; top: 61%; }
.cover .bf--6 { --w: 52px; --r: -18deg; right: 4%; top: 32%; }

@media (prefers-reduced-motion: no-preference) {
  .cover-name span span { opacity: 0; transform: translateY(0.18em); filter: blur(14px); animation: letter 1400ms var(--ease-out) forwards; animation-delay: calc(200ms + var(--c) * 60ms); }
  .cover-photo img { opacity: 0; transform: translateY(4%) scale(1.03); transform-origin: 50% 100%; animation: step-in 1500ms var(--ease-out) 350ms forwards; }
  .cover::before { transform: scaleX(0); animation: rule-in 1200ms var(--ease-in-out) 500ms forwards; }
  @keyframes rule-in { to { transform: scaleX(1); } }
  .cover .rise { animation-delay: calc(400ms + var(--i, 0) * 70ms); }
  .cover .bf { opacity: 0; animation-name: bf-drift, bf-in; animation-duration: var(--dur, 11s), 900ms; animation-delay: var(--delay, 0s), calc(1500ms + var(--n, 0) * 140ms); animation-fill-mode: none, forwards; animation-iteration-count: infinite, 1; animation-direction: alternate, normal; animation-timing-function: var(--ease-in-out), var(--ease-out); }
}

/* phones: label, names with her in front, roles, card, full-width pill (her mobile mockup) */
@media (max-width: 760px) {
  .cover { height: auto; display: flex; flex-direction: column; align-items: center; padding: 96px var(--gut) 44px; }
  .cover::before { display: none; }
  .cover-label { position: relative; top: auto; left: auto; width: 62%; }
  .cover-name { position: relative; inset: auto; width: 100%; height: 50vw; margin-top: 4px; }
  .cover-name .l1 { font-size: 31vw; left: -1vw; top: 0; }
  .cover-name .l2 { font-size: 25vw; left: auto; right: -1vw; top: 22vw; }
  .cover-photo { position: relative; left: auto; bottom: auto; transform: none; height: auto; width: 86vw; margin-top: -24vw; }
  .cover-roles { position: relative; top: auto; left: auto; margin-top: 10px; font-size: 5vw; text-align: center; }
  .cover-roles span { display: inline; white-space: normal; }
  .cover-roles span + span::before { content: "// "; }
  .cover-ticks { position: relative; left: auto; top: auto; width: 100%; margin-top: 22px; }
  .cover-ticks li { font-size: 12px; }
  .cover-cta { position: relative; right: auto; bottom: auto; width: 100%; height: 64px; margin-top: 18px; font-size: 20px; }
  .cover .bf--1 { --w: 46px; left: 7%; top: 43%; }
  .cover .bf--2 { --w: 56px; left: auto; right: 4%; top: 45%; }
  .cover .bf--3, .cover .bf--5, .cover .bf--6 { display: none; }
  .cover .bf--4 { --w: 44px; left: 3%; top: 54%; }
}
/* v6: the mockup hero is clean white, so the film grain stays very light */
body::after { opacity: 0.22; }

/* v7: her own name + photo artwork (PNG from Figma), live text around it */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cover { background: #fff; }
.cover-art { position: absolute; z-index: 2; left: 50%; bottom: 0; height: 100%; aspect-ratio: 1255 / 832; transform: translateX(-50%); }
.cover-art img { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .cover-art img { opacity: 0; filter: blur(10px); transform: scale(1.025); transform-origin: 50% 70%; animation: art-in 1500ms var(--ease-out) 150ms forwards; }
  @keyframes art-in { to { opacity: 1; filter: blur(0); transform: none; } }
}
@media (max-width: 760px) {
  .cover-art { position: relative; left: auto; bottom: auto; transform: none; height: auto; width: min(108vw, 520px); aspect-ratio: 402 / 463; margin: 10px calc(-1 * var(--gut)) 0; }
}

/* v8: grainy paper back, her artwork printed onto it (multiply hides the PNG's white panel),
   checklist on the paper itself, Libertinus Mono CTA, bigger butterflies, little black stars */
.cover { background: url("/assets/img/paper.webp?v=5") 0 0 / 640px, var(--cream); background-blend-mode: multiply; }
.cover-art { mix-blend-mode: multiply; }
body::after { opacity: 0.45; }
.cover-ticks { background: none; padding: 0; border-top: 1px solid rgba(17, 16, 16, 0.22); }
.cover-ticks::after { display: none; }
.cover-ticks li { border-bottom: 1px solid rgba(17, 16, 16, 0.22); }
.cover-ticks li:last-child { border-bottom: 1px solid rgba(17, 16, 16, 0.22); }
.cover-cta { font-family: "Libertinus Mono", var(--type); letter-spacing: 0.32em; font-size: clamp(16px, 1.9vw, 26px); }
.cover-cta span { margin-right: -0.32em; }

.cover .bf--1 { --w: 96px; left: 3%; top: 51%; }
.cover .bf--2 { --w: 100px; left: 18%; top: 86%; }
.cover .bf--3 { --w: 88px; right: 2.5%; top: 59%; }
.cover .bf--4 { --w: 96px; left: 1.5%; top: 86%; }
.cover .bf--5 { --w: 74px; left: 62%; top: 60%; }
.cover .bf--6 { --w: 80px; right: 3%; top: 31%; }

.spark { position: absolute; z-index: 4; color: var(--ink); pointer-events: none; }
.spark svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.spark--1 { width: 22px; left: 31%; top: 61%; }
.spark--2 { width: 34px; right: 1.5%; top: 80%; }
.spark--3 { width: 16px; right: 2.5%; top: 27%; }
.spark--4 { width: 26px; left: 4.5%; top: 45%; }
.spark--5 { width: 18px; left: 40%; top: 90%; }
@media (prefers-reduced-motion: no-preference) {
  .spark svg { animation: twinkle 3.6s var(--ease-in-out) infinite; transform-origin: center; }
  .spark--2 svg { animation-delay: -1.2s; animation-duration: 4.4s; }
  .spark--3 svg { animation-delay: -2.1s; }
  .spark--4 svg { animation-delay: -0.6s; animation-duration: 5s; }
  .spark--5 svg { animation-delay: -3s; }
  @keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 45% { transform: scale(0.55) rotate(45deg); } 55% { transform: scale(0.6) rotate(50deg); } }
}
@media (max-width: 760px) {
  .cover .bf--1 { --w: 56px; left: 6%; top: 43%; }
  .cover .bf--2 { --w: 62px; left: auto; right: 3%; top: 45%; }
  .cover .bf--4 { --w: 52px; left: 2%; top: 54%; }
  .spark--1 { left: 84%; top: 15%; width: 18px; }
  .spark--2 { right: 6%; top: 57%; width: 24px; }
  .spark--3, .spark--5 { display: none; }
  .spark--4 { left: 5%; top: 37%; width: 18px; }
}

/* v9: white textured paper + grunge decor (crayon stars, ink splats, scribbled orbits) + butterfly flight trail */
:root { --cream: #fdfdfc; --blush: #f6f6f4; }
body, .cover { background-color: #fff; }
.grunge { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.g { position: absolute; display: block; height: auto; }
.g--orbit   { width: 30vw; left: -4%; top: 14%; rotate: -8deg; opacity: 0.9; }
.g--star1   { width: 17vw; max-width: 300px; left: -4%; top: 82%; rotate: -14deg; }
.g--star2   { width: 12vw; max-width: 210px; right: -3.5%; top: 85%; rotate: 18deg; }
.g--star3   { width: 8vw; left: 52.5%; top: -3%; rotate: 12deg; }
.g--splat1  { width: 8vw; right: -1%; top: 17%; rotate: 40deg; }
.g--splat2  { width: 10vw; left: 29%; top: 87%; rotate: -20deg; }
.g--drops   { width: 13vw; left: 77%; top: 52%; rotate: 70deg; opacity: 0.85; }
.g--sparkle { width: 5.5vw; right: 1.5%; left: auto; top: 61%; rotate: 8deg; }

/* butterflies: a trail rising off her shoulder (small -> big), plus two strays */
.cover .bf { --r: 0deg; }
.cover .bf--1 { --w: 3.4vw; --r: -18deg; left: 31%; top: 46%; right: auto; bottom: auto; }
.cover .bf--5 { --w: 5vw;   --r: -8deg;  left: 25%; top: 55%; right: auto; bottom: auto; }
.cover .bf--2 { --w: 7.6vw; --r: 6deg;   left: 10%; top: 46.5%; right: auto; bottom: auto; }
.cover .bf--6 { --w: 4.4vw; --r: 14deg;  left: auto; right: 5%; top: 31%; bottom: auto; }
.cover .bf--3 { --w: 5vw;   --r: -12deg; left: 19%; top: 89%; right: auto; bottom: auto; }
.cover .bf--4 { display: none; }
.cover .spark--4 { left: 3%; top: 49%; }
.cover .spark--1 { left: 31%; top: 51%; }

@media (prefers-reduced-motion: no-preference) {
  .g { opacity: 0; animation: g-in 900ms var(--ease-out) forwards; animation-delay: calc(700ms + var(--gi, 0) * 90ms); }
  .g--orbit { --gi: 0; } .g--star1 { --gi: 1; } .g--splat1 { --gi: 2; } .g--star3 { --gi: 3; } .g--drops { --gi: 4; } .g--star2 { --gi: 5; } .g--splat2 { --gi: 6; } .g--sparkle { --gi: 7; }
  @keyframes g-in { from { opacity: 0; scale: 0.85; } to { opacity: 1; scale: 1; } }
  .g--orbit { animation-name: g-in-soft; } @keyframes g-in-soft { to { opacity: 0.9; } }
}
@media (max-width: 760px) {
  .g--orbit { width: 70vw; left: -22%; top: 13%; }
  .g--star1 { display: none; }
  .g--star2 { width: 20vw; right: -7%; top: 42%; }
  .g--star3 { width: 16vw; left: 78%; top: 9%; }
  .g--splat1 { width: 20vw; right: -5%; top: 51%; }
  .g--splat2, .g--drops, .g--sparkle { display: none; }
  .cover .bf--1 { --w: 30px; left: 4%; top: 33%; }
  .cover .bf--5 { --w: 40px; left: 2%; top: 49%; }
  .cover .bf--2 { --w: 58px; left: 1%; top: 40%; }
  .cover .bf--6 { --w: 40px; right: 4%; top: 14%; }
  .cover .bf--3 { display: none; }
}

/* her distressed PORTFOLIO logo replaces the round T mark */
.logo { width: auto; height: 64px; border-radius: 0; }
.logo img { width: auto; height: 100%; }
.footer .logo { width: auto; height: 84px; display: inline-block; }
@media (hover: hover) and (pointer: fine) { .logo:hover { transform: rotate(-3deg) scale(1.03); } }
@media (max-width: 560px) { .logo { width: auto; height: 54px; } }

/* v10: photocopy splatter across the whole hero background; the artwork has a real alpha now
   (scripts/build_art_alpha.py) so the speckle sits BEHIND her, never on her face */
.cover-art { mix-blend-mode: normal; }
.speckle {
  position: absolute; inset: 0; background: url("/assets/img/g-speckle.webp?v=2") 0 0 / 1000px repeat; opacity: 0.85;
  -webkit-mask: radial-gradient(75% 70% at 50% 50%, rgba(0,0,0,.3), #000 95%); mask: radial-gradient(75% 70% at 50% 50%, rgba(0,0,0,.3), #000 95%);
}
.g--star1 { width: 10vw; max-width: 190px; left: -5%; top: 87%; }
.g--star2 { width: 8.5vw; max-width: 160px; right: -1.5%; left: auto; top: 14%; }
.g--star3 { width: 7vw; left: 52.5%; top: -2%; }
.g--splat1 { right: -1%; top: 41%; }
@media (max-width: 760px) { .speckle { background-size: 800px; opacity: 0.7; } }

/* v11: her photo stays perfectly still (no entrance zoom, no parallax) */
.cover-art img { animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important; }
.cover-art { translate: none !important; }

/* v12: the "5 years ago" note lives in the projects section; the page opens straight on the hero */
.cover { height: clamp(660px, 100svh, 1000px); }
.work-note { max-width: 46ch; margin: 18px auto 0; font-family: var(--type); font-size: 15px; line-height: 1.55; color: var(--ink-soft); text-wrap: balance; }
.work-note a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }

/* phones: exactly her screenshot. No logo, menu on the left of the PORTFOLIO line, flat artwork with its soft haze */
@media (max-width: 760px) {
  .page-home .header { justify-content: flex-start; padding: 12px 6px 0; }
  .page-home .header .logo { display: none; }
  .page-home .burger span { right: auto; left: 10px; }
  .cover { padding-top: 26px; }
  .cover-label { width: 58%; margin-left: 6%; }
  .cover-art { mix-blend-mode: multiply; margin-top: 8px; }
  .cover .bf--3, .cover .bf--5, .cover .bf--6, .cover .spark--3, .cover .spark--5 { display: none !important; }
  /* positions measured from her screenshot: art starts ~60px down and is 124.4vw tall */
  .cover .bf--1 { --w: 13vw; --r: -6deg; left: 12vw; right: auto; top: calc(60px + 62vw); }
  .cover .bf--2 { --w: 13vw; --r: 8deg; left: auto; right: 2vw; top: calc(60px + 72vw); }
  .cover .bf--4 { --w: 13vw; --r: 0deg; left: 0; right: auto; top: calc(60px + 90vw); display: block; }
  .cover .spark--1 { width: 3.4vw; left: 85vw; right: auto; top: calc(60px + 2vw); }
  .cover .spark--4 { width: 3.4vw; left: 6vw; right: auto; top: calc(60px + 58vw); }
  .cover .spark--2 { width: 3.4vw; left: 89vw; right: auto; top: calc(60px + 105vw); }
}

/* v13: her artwork exactly as she sent it (original PNG with her own white gradient fade), printed onto the paper */
.cover-art { mix-blend-mode: multiply !important; }

/* v14 phones: logo left, menu right, PORTFOLIO line centred between them on the same row */
@media (max-width: 760px) {
  .page-home .header { justify-content: space-between; padding: 10px 8px 0 14px; align-items: center; }
  .page-home .header .logo { display: block; height: 46px; }
  .page-home .burger span { left: auto; right: 9px; }
  .cover-label { width: 50%; margin-left: 0; }
}
@media (max-width: 760px) { .cover { height: auto !important; overflow: visible; } }

/* v15: two text fonts only. Libertinus Mono (her CTA font) replaces Courier Prime everywhere; Archivo for captions/body */
:root { --type: "Libertinus Mono", "Courier New", monospace; }
.cover-cta { font-family: var(--type); }
/* phones: roles in bold (Libertinus Mono has no bold weight, so thicken the strokes) */
@media (max-width: 760px) { .cover-roles { -webkit-text-stroke: 0.55px currentColor; paint-order: stroke fill; } }
/* LinkedIn strip uses the exact type of the education checklist */
.strip-track span {
  font-family: var(--sans); font-stretch: 125%; font-weight: 400; text-transform: uppercase;
  font-size: clamp(10.5px, 0.98vw, 14px); letter-spacing: 0.05em; line-height: 1.55; padding: 13px 16px; gap: 32px;
}
@media (max-width: 760px) { .strip-track span { font-size: 12px; } }
/* CONTACT uses the exact type of the role lines (Graphic Designer // ...) */
.cover-cta { font-family: var(--type); font-size: clamp(18px, 2.7vw, 38px); letter-spacing: 0.01em; text-transform: none; font-weight: 400; line-height: 1.16; }
.cover-cta span { margin-right: 0; }
@media (max-width: 760px) {
  .cover-cta { font-size: 5vw; -webkit-text-stroke: 0.55px currentColor; paint-order: stroke fill; }
}

/* v16: nothing may poke past the screen edge (iPhone Safari pans sideways even when body clips) */
html { overflow-x: hidden; }
.skip { left: 12px; transform: translateY(-200%); }
.skip:focus { left: 12px; transform: none; }
@media (max-width: 760px) {
  .cover { overflow: clip; }
  /* splatter + 4-point stars on phones too (positions relative to the artwork top: 60px + n*vw) */
  .cover .g--orbit, .cover .g--star1, .cover .g--splat2 { display: none; }
  .cover .g--drops   { display: block; width: 30vw; left: -9vw; right: auto; top: calc(60px + 28vw); rotate: 20deg; }
  .cover .g--star2   { display: block; width: 15vw; left: auto; right: -3vw; top: calc(60px + 44vw); max-width: none; }
  .cover .g--splat1  { display: block; width: 15vw; left: auto; right: -7vw; top: calc(60px + 91vw); }
  .cover .g--sparkle { display: block; width: 10vw; left: 3vw; right: auto; top: calc(60px + 79vw); z-index: 1; }
  .cover .g--star3   { display: block; width: 11vw; left: 4vw; right: auto; top: calc(60px + 112vw); }
}

/* "Featured in" logos: infinite slider, pauses on hover */
.logos-marquee { margin-top: 30px; display: flex; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos-marquee .logos { margin-top: 0; flex: none; flex-wrap: nowrap; justify-content: flex-start; gap: clamp(18px, 3vw, 40px); padding: 8px clamp(9px, 1.5vw, 20px); }
@media (prefers-reduced-motion: no-preference) {
  .logos-marquee .logos { animation: logos-slide 26s linear infinite; }
  @media (hover: hover) and (pointer: fine) { .logos-marquee:hover .logos { animation-play-state: paused; } }
  @keyframes logos-slide { to { transform: translateX(-100%); } }
}

/* CONTACT: all caps, wide spacing (same font + size as the roles) */
.cover-cta { text-transform: uppercase; letter-spacing: 0.3em; }
.cover-cta span { margin-right: -0.3em; }
.logos-marquee .logos { animation-duration: 40s; }

/* phones: a single black 4-point star in place of the PORTFOLIO logo (still links home) */
@media (max-width: 760px) {
  .page-home .header .logo { display: grid; place-items: center; width: 44px; height: 44px; }
  .header .logo img { display: none; }
  .header .logo::before { content: ""; width: 26px; height: 26px; background: var(--ink); -webkit-mask: var(--sparkle) center / contain no-repeat; mask: var(--sparkle) center / contain no-repeat; }
}
/* star mirrors the menu: same 52px box, same 9px inset from the edge, same visual weight */
@media (max-width: 760px) {
  .page-home .header { padding-left: 8px; padding-right: 8px; }
  .page-home .header .logo, .header .logo { width: 52px; height: 52px; place-items: center start; }
  .header .logo::before { width: 22px; height: 22px; margin-left: 9px; }
}

/* butterflies stay in place: wings flap, the butterfly itself never drifts */
.bf { translate: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .bf, .cover .bf { animation: bf-fade 700ms ease 1200ms both !important; }
  @keyframes bf-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* v17 grunge set from her refs: tall 8-point outline star, orbit star, crayon 4-point, solid toner 4-point sparkles */
.g { rotate: 0deg; }
.g--star3   { width: 3.6vw; left: 53%; top: -1%; }
.g--star2   { width: 12vw; max-width: 220px; right: -2.5%; top: 12%; }
.g--star1   { width: 11vw; max-width: 200px; left: -3%; top: 84%; }
.g--sparkle { width: 7vw; right: 1.5%; top: 58%; }
.spark svg { display: none; }
.spark { aspect-ratio: 1; background: url("/assets/img/b2-s2.webp?v=1") center / contain no-repeat; }
.spark--2, .spark--4 { background-image: url("/assets/img/b2-s4.webp?v=1"); aspect-ratio: 94 / 112; }
@media (max-width: 760px) {
  .cover .g--star3   { display: block; width: 8vw; left: 4vw; right: auto; top: calc(60px + 108vw); }
  .cover .g--star2   { width: 26vw; right: -8vw; top: calc(60px + 38vw); }
  .cover .g--sparkle { width: 12vw; left: 2vw; right: auto; top: calc(60px + 77vw); }
}
.g--star2 { right: -2.5%; top: 29%; width: 11vw; }
.g--star1 { left: -2%; top: 87%; width: 9vw; }
@media (max-width: 760px) { .cover .g--star2 { width: 26vw; right: -8vw; top: calc(60px + 38vw); } }
.g--star2 { top: 49%; }
.g--sparkle { right: 7%; top: 0.5%; width: 4.6vw; }
@media (max-width: 760px) { .cover .g--sparkle { width: 12vw; left: 2vw; right: auto; top: calc(60px + 77vw); } .cover .g--star2 { top: calc(60px + 38vw); } }
.g--splat1 { top: 17%; right: -1.5%; }
.g--sparkle { right: 15%; top: 0; width: 4.2vw; }
/* phones: back to the calm version (3 butterflies + 3 small stars), keeping the new star styles: only the tall 8-point star added */
@media (max-width: 760px) {
  .cover .g--drops, .cover .g--splat1, .cover .g--star2, .cover .g--sparkle, .cover .g--star1, .cover .g--splat2 { display: none !important; }
}

/* "This is my Passion" = her own script artwork */
.passion-title img { display: block; width: min(440px, 82vw); height: auto; margin: 0 auto; }
/* phones: splatter back (spray by the P + ink splat on the right), still no extra stars */
@media (max-width: 760px) {
  .cover .g--drops  { display: block !important; width: 30vw; left: -9vw; right: auto; top: calc(60px + 28vw); }
  .cover .g--splat1 { display: block !important; width: 15vw; left: auto; right: -6vw; top: calc(60px + 58vw); }
}

/* v18 phones: decor moved to her marked spots (tall star top-left by the P, left butterfly up, right butterfly down by the star) */
@media (max-width: 760px) {
  .cover .g--star3 { width: 7vw; left: 5vw; right: auto; top: calc(60px - 4vw); }
  .cover .bf--4 { top: calc(60px + 80vw); }
  .cover .bf--2 { right: 3vw; top: calc(60px + 97vw); }
  .cover .spark--2 { left: 85vw; top: calc(60px + 113vw); }
}

/* v18 "This is my passion": splatter + 4-point stars around the script title (guard hides any that touch text) */
.work { overflow: clip; }
.passion-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.work-head > :not(.passion-deco) { position: relative; z-index: 1; }
.work-head > .bf--section { position: absolute; }
.pd { position: absolute; height: auto; mix-blend-mode: multiply; }
.pd--splat1 { width: 190px; left: calc(50% - 470px); top: 30px; rotate: -18deg; }
.pd--splat2 { width: 150px; left: calc(50% + 330px); top: -40px; rotate: 40deg; }
.pd--drops1 { width: 200px; left: calc(50% + 320px); top: 110px; rotate: 160deg; }
.pd--drops2 { width: 160px; left: calc(50% - 470px); top: 170px; rotate: 10deg; opacity: .8; }
.pd--tall   { width: 40px; left: calc(50% + 270px); top: -30px; }
.pd--crayon { width: 92px; left: calc(50% - 370px); top: -30px; rotate: -12deg; }
.pd--s1     { width: 26px; left: calc(50% - 290px); top: -20px; }
.pd--s2     { width: 22px; left: calc(50% + 235px); top: 120px; }
.pd--s3     { width: 18px; left: calc(50% + 420px); top: 150px; }
.pd--s4     { width: 20px; left: calc(50% - 250px); top: 70px; }
@media (max-width: 760px) {
  .work { padding-top: 140px; }
  /* phones: the title fills the width, so the splatter lives in a band above it + peeks in from the edges */
  .pd--drops2 { width: 26vw; left: 2vw; top: -130px; }
  .pd--splat2 { width: 20vw; left: auto; right: -5vw; top: -124px; }
  .pd--tall   { width: 6vw; left: 47vw; top: -112px; }
  .pd--s1     { width: 5vw; left: 33vw; top: -66px; }
  .pd--s4     { width: 4vw; left: 64vw; top: -92px; }
  .pd--crayon { width: 12vw; left: auto; right: 21vw; top: -76px; }
  .pd--splat1 { width: 22vw; left: -22vw; top: 50px; rotate: 0deg; }
  .pd--drops1 { width: 24vw; left: auto; right: -22vw; top: 70px; rotate: 0deg; }
  .pd--s2     { width: 4vw; left: auto; right: 6vw; top: -40px; }
  .pd--s3     { display: none; }
}

/* v18: typewriter font (Libertinus Mono, no bold cut) thickened everywhere it is used */
.cover-label, .cover-roles, .cover-cta, .work-note {
  -webkit-text-stroke: 0.045em currentColor !important; paint-order: stroke fill;
}
.cover-label, .work-note { -webkit-text-stroke-width: 0.055em !important; }

/* =====================================================================
   v19: CV + Contact in the homepage language. Script titles (Mea Culpa), bold Libertinus Mono,
   wide Archivo caps with 4-point star bullets, black pill buttons, xerox butterflies + splatter.
   ===================================================================== */
.bold-mono, .page-roles, .page-label, .when, .story .quote, .skills-intro, .field input, .field textarea, .pill-cta {
  -webkit-text-stroke: 0.045em currentColor; paint-order: stroke fill;
}
.page-label {
  display: flex; align-items: center; gap: 14px; width: min(420px, 74%); margin: 0 auto;
  font-family: var(--type); font-size: clamp(12px, 1.2vw, 16px); letter-spacing: 0.14em; text-transform: uppercase;
  -webkit-text-stroke-width: 0.055em;
}
.page-label::before, .page-label::after { content: ""; flex: 1; height: 1.5px; background: var(--ink); }
.page-label--left { margin: 0; width: min(380px, 100%); }
.script-title {
  font-family: var(--script-name); font-weight: 400; font-size: clamp(4.2rem, 10vw, 8.4rem);
  line-height: 1.12; letter-spacing: 0; text-transform: none; padding-bottom: 0.06em;
}
.page-roles { margin-top: 4px; font-family: var(--type); font-size: clamp(16px, 2vw, 26px); line-height: 1.25; }
.deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.dz { position: absolute; height: auto; mix-blend-mode: multiply; }

/* ---------- CV top ---------- */
.cv-top { position: relative; padding: 110px 0 0; overflow: clip; }
.cv-top .wrap { position: relative; z-index: 1; }
.cv-top .script-title { margin-top: 10px; }
.polaroid { margin-top: 26px; }
.dz--splat1 { width: 170px; left: calc(50% - 560px); top: 330px; rotate: -20deg; }
.dz--drops1 { width: 230px; left: calc(50% + 330px); top: 380px; }
.dz--drops2 { width: 170px; left: calc(50% - 470px); top: 120px; rotate: 90deg; opacity: .85; }
.dz--tall   { width: 40px; left: calc(50% + 400px); top: 140px; }
.dz--crayon { width: 96px; left: calc(50% + 470px); top: 560px; rotate: 12deg; }
.dz--s1     { width: 26px; left: calc(50% - 330px); top: 470px; }
.dz--s2     { width: 22px; left: calc(50% + 300px); top: 300px; }
.dz--s3     { width: 18px; left: calc(50% - 600px); top: 610px; }
.bf--cv1 { --w: 86px; --r: 10deg; left: calc(50% + 300px); top: 600px; }
.bf--cv2 { --w: 70px; --r: -10deg; left: calc(50% - 420px); top: 620px; }
.bf--cv3 { --w: 54px; --r: 6deg; left: calc(50% - 300px); top: 250px; }

/* ---------- CV body ---------- */
.cv h2 { font-family: var(--script-name); font-weight: 400; text-transform: none; font-size: clamp(3.2rem, 4.6vw, 4.4rem); line-height: 1.1; margin-bottom: 18px; }
.when { font-family: var(--type); font-size: 14px; letter-spacing: 0.06em; color: var(--ink); font-weight: 400; }
.entry h3, .edu .entry h3 {
  font-family: var(--sans); font-stretch: 125%; font-weight: 500; text-transform: uppercase;
  font-size: clamp(13px, 1.05vw, 15px); letter-spacing: 0.05em; line-height: 1.5; margin-top: 4px;
}
/* timeline nodes = the 4-point star */
.cv-col--l .entry::after, .cv-col--r .entry::after {
  width: 15px; height: 15px; top: 4px; border: 0; border-radius: 0; background: var(--ink);
  -webkit-mask: var(--sparkle) center / contain no-repeat; mask: var(--sparkle) center / contain no-repeat;
}
.cv-col--l .entry::after { right: calc(-1 * clamp(24px, 5vw, 64px) - 7.5px); }
.cv-col--r .entry::after { left: calc(-1 * clamp(24px, 5vw, 64px) - 7.5px); }
.list li { padding-left: 24px; }
.list li::before { width: 11px; height: 11px; top: 0.3em; border-radius: 0; background: var(--ink); -webkit-mask: var(--sparkle) center / contain no-repeat; mask: var(--sparkle) center / contain no-repeat; }
.list strong { font-family: var(--sans); font-stretch: 125%; font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: 0.05em; }
.story .quote { font-family: var(--type); font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; }
.skills-intro { font-family: var(--type); font-size: 15.5px; color: var(--ink); }
.skill-row { font-family: var(--sans); font-stretch: 125%; text-transform: uppercase; font-size: 12.5px; letter-spacing: 0.05em; }
.skill-row span:last-child { font-family: var(--type); font-size: 14px; color: var(--ink); -webkit-text-stroke: 0.045em currentColor; }
.bar { height: 5px; border-radius: 0; background: rgba(17, 16, 16, 0.08); }
.bar i { border-radius: 0; }
.contacts a { font-family: var(--type); font-size: 15px; -webkit-text-stroke: 0.045em currentColor; }

/* ---------- About me ---------- */
.about { position: relative; overflow: clip; }
.about .wrap { position: relative; z-index: 1; }
.script-title--sm { font-size: clamp(3.6rem, 6vw, 5.6rem); }
.about-text { margin-top: 18px; }
.dz--a-splat { width: 150px; left: calc(50% - 520px); top: 40px; rotate: 30deg; }
.dz--a-drops { width: 220px; left: calc(50% + 360px); top: 160px; }
.dz--a-s1    { width: 22px; left: calc(50% + 250px); top: 70px; }
.dz--a-s2    { width: 26px; left: calc(50% - 380px); top: 330px; }
.bf--cv4 { --w: 70px; --r: -8deg; left: calc(50% + 230px); top: 120px; }

/* ---------- Contact ---------- */
.hero--contact .script-title { margin-top: 18px; font-size: clamp(4rem, 8vw, 7.4rem); white-space: nowrap; }
.hero--contact .hero-copy { padding-block: 140px 100px; }
.field label { font-family: var(--sans); font-stretch: 125%; text-transform: uppercase; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; }
.field input, .field textarea { font-family: var(--type); font-size: 16px; }
.field input::placeholder, .field textarea::placeholder { -webkit-text-stroke: 0; color: #6d6862; }
.pill-cta {
  grid-column: 1 / -1; justify-self: stretch; margin-top: 8px; height: 66px;
  display: flex; align-items: center; justify-content: center; gap: 28px;
  border-radius: 999px; background: var(--ink); color: #fdfdfb; cursor: pointer;
  font-family: var(--type); font-size: clamp(17px, 1.6vw, 22px); letter-spacing: 0.3em; text-transform: uppercase;
  transition: transform 160ms var(--ease-out), background-color 250ms ease;
}
.pill-cta span { margin-right: -0.3em; }
.pill-cta svg { width: 54px; height: auto; transition: transform 350ms var(--ease-out); }
.pill-cta:active { transform: scale(0.97); }
.pill-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .pill-cta:hover { background: #2a2826; } .pill-cta:hover svg { transform: translateX(6px); } }
.hero-figure { z-index: 1; }
.hero-figure .portrait { z-index: 1; }
.hero-figure .dz { z-index: 0; }
.hero-figure .bf { z-index: 2; }
.dz--c-splat  { width: 150px; left: 4%; top: 22%; rotate: -15deg; }
.dz--c-drops  { width: 220px; right: -2%; top: 46%; }
.dz--c-tall   { width: 40px; right: 10%; top: 14%; }
.dz--c-crayon { width: 90px; left: 0; bottom: 14%; rotate: 10deg; }
.dz--c-s1     { width: 26px; left: 22%; top: 12%; }
.dz--c-s2     { width: 22px; right: 4%; bottom: 30%; }
.bf--ct1 { --w: 84px; --r: 10deg; right: 3%; top: 26%; }
.bf--ct2 { --w: 60px; --r: -12deg; left: 6%; top: 50%; }

@media (max-width: 760px) {
  .cv-top { padding-top: 92px; }
  .script-title { font-size: 17vw; }
  .page-roles { font-size: 4.6vw; }
  .page-label { width: 70%; }
  .dz--splat1 { width: 26vw; left: -12vw; top: 300px; }
  .dz--drops1 { width: 30vw; left: auto; right: -10vw; top: 330px; }
  .dz--drops2 { width: 26vw; left: -6vw; top: 70px; }
  .dz--tall   { width: 7vw; left: auto; right: 6vw; top: 74px; }
  .dz--crayon { width: 13vw; left: auto; right: 2vw; top: calc(100% - 70px); }
  .dz--s1     { width: 5vw; left: 5vw; top: calc(100% - 50px); }
  .dz--s2     { width: 4vw; left: auto; right: 16vw; top: 290px; }
  .dz--s3     { display: none; }
  .bf--cv1 { --w: 14vw; left: auto; right: 1vw; top: calc(100% - 140px); }
  .bf--cv2 { --w: 13vw; left: 1vw; top: calc(100% - 160px); }
  .bf--cv3 { --w: 11vw; left: 12vw; top: 64px; }
  .cv h2 { font-size: 14vw; }
  .cv-col--l .entry::after, .cv-col--r .entry::after { right: auto; left: -37px; }
  .script-title--sm { font-size: 16vw; }
  .dz--a-splat { width: 22vw; left: -8vw; top: 10px; }
  .dz--a-drops { width: 28vw; left: auto; right: -8vw; top: 0; }
  .dz--a-s1 { left: auto; right: 22vw; top: 30px; width: 4.4vw; }
  .dz--a-s2 { display: none; }
  .bf--cv4 { --w: 12vw; left: 6vw; top: 20px; }
  .hero--contact .hero-copy { padding-block: 104px 8px; }
  .hero--contact .script-title { font-size: 16vw; margin-top: 12px; }
  .pill-cta { height: 58px; font-size: 4.6vw; }
  .dz--c-splat { width: 24vw; left: -4vw; top: 8%; }
  .dz--c-drops { width: 30vw; right: -8vw; top: 40%; }
  .dz--c-crayon { width: 14vw; }
  .bf--ct1 { --w: 15vw; }
  .bf--ct2 { --w: 12vw; }
}

/* contact photo reveal (its keyframes went missing, which left the photo fully clipped) */
@keyframes unveil { to { clip-path: inset(0 0 0 0); } }
.hero h1.script-title { font-family: var(--script-name); font-weight: 400; letter-spacing: 0; line-height: 1.12; }

/* phones: her outlined tall star IS the logo now (the black star is gone, the hero copy of it too) */
@media (max-width: 760px) {
  .header .logo::before {
    width: 26px; height: 42px; margin-left: 8px; background: url("/assets/img/b2-s1.webp?v=1") center / contain no-repeat;
    -webkit-mask: none; mask: none;
  }
  .cover .g--star3 { display: none !important; }
}
@media (max-width: 760px) {
  .header .logo { display: grid; place-items: center start; width: 52px; height: 52px; }
  .header .logo::before { content: ""; display: block; width: 28px; height: 46px; }
}
/* phones: CV decor lives in the side gutters next to a slightly smaller polaroid (never on her photo) */
@media (max-width: 760px) {
  .cv-top { padding-bottom: 10px; }
  .cv-top .polaroid { width: 72%; }
  .dz--splat1 { width: 22vw; left: -12vw; right: auto; top: 300px; }
  .dz--drops1 { width: 24vw; left: auto; right: -14vw; top: 420px; }
  .dz--crayon { width: 10vw; left: 1vw; right: auto; top: 440px; }
  .dz--tall   { width: 6vw; left: auto; right: 4vw; top: 300px; }
  .dz--s1     { width: 4vw; left: 4vw; top: 400px; }
  .dz--s2     { width: 4vw; left: auto; right: 3vw; top: 380px; }
  .dz--drops2, .bf--cv3 { display: none; }
  .bf--cv1 { --w: 11vw; left: auto; right: 0; top: 340px; }
  .bf--cv2 { --w: 11vw; left: 0; top: 360px; }
  .dz--a-splat { top: 40px; } .dz--a-drops { top: 30px; } .dz--a-s1 { top: 60px; } .bf--cv4 { top: 50px; }
}

/* projects: black & white on every device; colour only on hover (mouse) or while pressed / focused (touch, keyboard) */
.tile img { filter: grayscale(1) contrast(1.28) brightness(1.04); transition: transform 900ms var(--ease-out), filter 500ms ease; }
.tile:focus-visible img, .tile:active img { filter: none; }
@media (hover: hover) and (pointer: fine) { .tile:hover img { filter: none; } }

/* phones, Contact: no photo, label + "Chat with me." centred */
@media (max-width: 760px) {
  .hero--contact .hero-figure { display: none; }
  .hero--contact .page-label--left { margin: 0 auto; width: 70%; }
  .hero--contact .script-title { text-align: center; }
  .hero--contact .hero-copy { padding-bottom: 56px; }
}

/* Contact = one screen, no scrolling (desktop + phones). Footer shrinks to the social icons row.
   Only when the screen is tall enough to hold the form; very short screens still scroll. */
@media (min-height: 640px) {
  html:has(.page-contact), .page-contact { height: 100%; overflow: hidden; }
  .page-contact { display: flex; flex-direction: column; height: 100svh; }
  .page-contact main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .page-contact .hero--contact { flex: 1; min-height: 0; }
  .page-contact .hero--contact .wrap { align-items: center; height: 100%; }
  .page-contact .hero--contact .hero-copy { padding-block: 84px 20px; }
  .page-contact .hero-figure { min-height: 0; height: 100%; }
  .page-contact .hero-figure .portrait { height: 92%; }
  .page-contact .footer { padding: 12px var(--gut) 14px; }
  .page-contact .footer .logo, .page-contact .footer .copy { display: none; }
  .page-contact .footer .socials { margin: 0; }
}
@media (min-height: 640px) and (max-width: 760px) {
  .page-contact .hero--contact .wrap { display: flex; flex-direction: column; justify-content: center; }
  .page-contact .hero--contact .hero-copy { padding-block: 72px 12px; width: 100%; }
  .page-contact .hero--contact .script-title { margin-top: 6px; font-size: 14vw; }
  .page-contact .form { margin-top: 14px; gap: 10px; }
  .page-contact .field { gap: 4px; }
  .page-contact .field textarea { min-height: 96px; height: 14svh; }
  .page-contact .pill-cta { height: 54px; margin-top: 4px; }
}
@media (min-height: 640px) and (min-width: 761px) {
  .page-contact .hero--contact .script-title { font-size: clamp(3.6rem, min(7vw, 11svh), 7rem); margin-top: 10px; }
  .page-contact .form { margin-top: 20px; }
  .page-contact .field textarea { min-height: 100px; height: 16svh; }
}
@media (min-height: 640px) and (max-width: 760px) {
  .page-contact .hero--contact .hero-copy { padding-block: 76px 22px; }
  .page-contact .field textarea { min-height: 76px; height: 11svh; }
}

/* v20: CV without the polaroid; decor re-placed around the name */
.cv-top { padding-bottom: 20px; }
.page-label { width: min(300px, 60%); }
.dz--splat1 { width: 150px; left: calc(50% - 650px); top: 150px; rotate: -20deg; }
.dz--drops1 { width: 200px; left: calc(50% + 470px); top: 120px; }
.dz--drops2 { width: 140px; left: calc(50% - 480px); top: 40px; rotate: 90deg; }
.dz--tall   { width: 40px; left: calc(50% + 370px); top: 40px; }
.dz--crayon { width: 80px; left: calc(50% + 580px); top: 300px; rotate: 12deg; }
.dz--s1     { width: 24px; left: calc(50% - 390px); top: 250px; }
.dz--s2     { width: 22px; left: calc(50% + 335px); top: 205px; }
.dz--s3     { width: 18px; left: calc(50% - 560px); top: 330px; }
.bf--cv1 { --w: 78px; left: calc(50% + 410px); top: 205px; }
.bf--cv2 { --w: 62px; left: calc(50% - 600px); top: 40px; }
.bf--cv3 { --w: 50px; left: calc(50% - 420px); top: 215px; }
@media (max-width: 760px) {
  .cv-top { padding-bottom: 30px; }
  .page-label { width: 56%; }
  .dz--splat1, .dz--drops2, .dz--crayon, .dz--s2, .dz--s3, .bf--cv1, .bf--cv2, .bf--cv3 { display: none; }
  .dz--tall   { width: 6vw; left: auto; right: 6vw; top: 74px; }
  .dz--s1     { width: 4vw; left: 6vw; top: 92px; }
  .dz--drops1 { width: 22vw; left: auto; right: -8vw; top: auto; bottom: -30px; }
}

/* v20: Contact without her photo, everything centred in one column; decor on both sides */
.hero--contact .wrap { display: flex; justify-content: center; }
.hero--contact .hero-copy { width: min(560px, 100%); text-align: center; position: relative; z-index: 1; }
.hero--contact .page-label { margin: 0 auto; }
.hero--contact .script-title { text-align: center; }
.hero--contact .form { margin-inline: auto; max-width: 560px; text-align: left; }
.hero--contact .deco .dz, .hero--contact .deco .bf { z-index: 0; }
.dz--c-splat  { width: 160px; left: calc(50% - 560px); right: auto; top: 26%; bottom: auto; }
.dz--c-drops  { width: 220px; left: calc(50% + 380px); right: auto; top: 50%; bottom: auto; }
.dz--c-tall   { width: 40px; left: calc(50% + 400px); right: auto; top: 16%; }
.dz--c-crayon { width: 90px; left: calc(50% - 470px); right: auto; top: auto; bottom: 14%; }
.dz--c-s1     { width: 26px; left: calc(50% - 400px); top: 14%; }
.dz--c-s2     { width: 22px; left: calc(50% + 340px); right: auto; top: auto; bottom: 22%; }
.bf--ct1 { --w: 84px; left: calc(50% + 450px); right: auto; top: 30%; }
.bf--ct2 { --w: 62px; left: calc(50% - 420px); right: auto; top: 52%; }
@media (max-width: 760px) {
  .hero--contact .deco { display: none; }
}
.cv-top .script-title, .cv-top .page-roles, .about .script-title { width: fit-content; margin-inline: auto; }
.bf--cv2 { left: calc(50% - 570px); top: 110px; }
@media (max-width: 760px) { .bf--cv2 { display: none; } }

/* phones: 5 filters on two rows (All / Websites / Cataloges, then Marketing / Logos), always inside the screen */
@media (max-width: 760px) {
  .filters { display: grid; grid-template-columns: repeat(6, 1fr); width: 100%; max-width: 420px; }
  .filters button { grid-column: span 2; border: 0 !important; padding: 0 6px; }
  .filters button:nth-of-type(n+4) { grid-column: span 3; }
  .filters button:nth-of-type(-n+3) { border-bottom: 1.5px solid var(--ink) !important; }
  .filters button:nth-of-type(1), .filters button:nth-of-type(2), .filters button:nth-of-type(4) { border-right: 1.5px solid var(--ink) !important; }
}



/* CV story: the quote back to normal weight, the "At the age of 13" paragraph is the bold one */
.story .quote { -webkit-text-stroke: 0; font-family: var(--sans); font-size: 15px; line-height: 1.8; color: var(--ink-soft); font-style: italic; }
.story .story-hl { color: var(--ink); font-weight: 700; }
/* phones: no "Experience" heading */
@media (max-width: 760px) { .cv-col--l .cv-block:first-child > h2 { display: none; } }
.story .quote { font-style: normal; }

/* Contact: budget as three tap-to-pick boxes (radio buttons, same square ink style as the inputs) */
.budget { border: 0; margin: 0; padding: 0; min-width: 0; }
.budget legend { padding: 0; margin-bottom: 7px; font-family: var(--sans); font-stretch: 125%; text-transform: uppercase; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; }
.budget-opts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); }
.budget-opts label { position: relative; cursor: pointer; }
.budget-opts label + label { border-left: 1.5px solid var(--ink); }
.budget-opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.budget-opts span {
  display: grid; place-items: center; height: 44px; font-family: var(--type); font-size: 16px;
  -webkit-text-stroke: 0.045em currentColor; paint-order: stroke fill; color: var(--ink);
  background: rgba(255, 255, 255, 0.45); transition: background-color 200ms ease, color 200ms ease;
}
.budget-opts input:checked + span { background: var(--ink); color: #fdfdfb; }
.budget-opts input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .budget-opts label:hover input:not(:checked) + span { background: rgba(17, 16, 16, 0.08); } }
.budget.bad .budget-opts { border-color: #9b3b2b; }
@media (min-height: 640px) and (max-width: 760px) {
  .page-contact .budget-opts span { height: 40px; }
  .page-contact .field textarea { min-height: 64px; height: 8svh; }
}
@media (min-height: 640px) and (min-width: 761px) {
  .page-contact .field textarea { min-height: 84px; height: 12svh; }
}
@media (min-height: 640px) and (max-width: 760px) {
  .page-contact .hero--contact .hero-copy { padding-block: 66px 18px; }
  .page-contact .hero--contact .script-title { font-size: 12.5vw; margin-top: 2px; }
  .page-contact .form { margin-top: 8px; gap: 8px; }
  .page-contact .field input { padding-block: 9px; }
  .page-contact .footer { padding-block: 8px 10px; }
}
@media (min-height: 640px) and (min-width: 761px) {
  .page-contact .hero--contact .hero-copy { padding-block: 78px 18px; }
  .page-contact .hero--contact .script-title { font-size: clamp(3.4rem, min(7vw, 9.5svh), 7rem); }
  .page-contact .form { gap: 12px; }
  .page-contact .field textarea { min-height: 70px; height: 10svh; }
}
.budget-opts label, .budget-opts span { text-transform: none; letter-spacing: 0.02em; font-stretch: 100%; }
@media (min-width: 761px) { .cover-ticks li { font-weight: 700; } }

/* desktop fisheye grid (site.js adds .is-fish; reduced motion / touch / narrow keep the plain CSS grid) */
.grid.is-fish { display: block; position: relative; }
.grid.is-fish .tile {
  position: absolute; left: 0; top: 0; width: var(--box-w); height: var(--box-h); aspect-ratio: auto;
  border-radius: 0; outline: 0; background: var(--blush-deep);
  transition: opacity 260ms ease, transform 680ms var(--ease-out), clip-path 680ms var(--ease-out);
}
.grid.is-fish .tile img {
  position: absolute; left: 0; top: 0; width: var(--bw); height: var(--bh); transform-origin: 50% 50%;
  transition: transform 680ms var(--ease-out), filter 500ms ease;
}
.grid.is-fish .tile::after { display: none; }
.grid.is-fish .tile .zoom { left: 0; top: 0; right: auto; bottom: auto; opacity: 0; transition: transform 680ms var(--ease-out), opacity 250ms ease; }
.grid.is-fish .tile.is-hot { z-index: 2; }
.grid.is-fish .tile.is-hot img { filter: none; }
.grid.is-fish .tile.is-hot .zoom { opacity: 1; }
.grid.is-fish .tile:hover img { filter: grayscale(1) contrast(1.28) brightness(1.04); }   /* colour follows .is-hot, not raw :hover */
.grid.is-fish .tile.is-hot:hover img { filter: none; }
.grid.is-fish.is-instant .tile, .grid.is-fish.is-instant .tile img, .grid.is-fish.is-instant .tile .zoom { transition: none; }
.grid.is-fish { transition: height 680ms var(--ease-out); }
.grid.is-fish.is-instant { transition: none; }

/* homepage CONTACT pill: more breathing room around the word */
.cover-cta { width: auto; min-width: min(33.6%, 470px); padding-inline: clamp(40px, 4.4vw, 72px); gap: clamp(24px, 3vw, 44px); }
@media (max-width: 760px) { .cover-cta { padding-inline: 32px; min-width: 0; height: 66px; } }
@media (max-width: 760px) { .cover-cta { width: 100%; } }

/* projects: clean images, no film grain over them (grain overlay is z 80; the menu sits under it, so drop back while it's open) */
.grid { position: relative; z-index: 81; }
.menu-open .grid { z-index: auto; }
.tile img { filter: grayscale(1) contrast(1.12) brightness(1.02); }
.grid.is-fish .tile:hover img { filter: grayscale(1) contrast(1.12) brightness(1.02); }
.grid.is-fish .tile.is-hot img, .grid.is-fish .tile.is-hot:hover img { filter: none; }

/* spotlight: when one project is in focus, every other project sinks into the dark (opacity-only layer, compositor-cheap) */
.grid.is-fish .tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #0d0c0c;
  opacity: 0; transition: opacity 520ms var(--ease-out);
}
.grid.is-fish.has-hot .tile:not(.is-hot)::before { opacity: 0.62; }
.grid.is-fish .tile .zoom { z-index: 2; }
@media (hover: none) {
  .tile:not(.is-live) img { filter: grayscale(1) contrast(1.12) brightness(1.02); }
}

/* phones: marketing posts in their real 1:1 square format */
@media (max-width: 760px) { .grid:not(.is-fish) .tile[data-cat="3"] { aspect-ratio: 1 / 1; } }

/* =====================================================================
   v21: menu in the homepage language. Paper both sides, script nav (Mea Culpa),
   bold mono details, 4-point star on the current/hovered item, light butterflies + splatter.
   ===================================================================== */
.menu { background: url("/assets/img/paper.webp?v=5") 0 0 / 640px, var(--cream); background-blend-mode: multiply; }
.menu-side { position: relative; overflow: hidden; background: transparent; border-right: 1.5px solid var(--ink); gap: 10px; }
.menu-side > a { position: relative; z-index: 1; font-family: var(--type); font-size: clamp(16px, 1.5vw, 20px); color: var(--ink); -webkit-text-stroke: 0.045em currentColor; paint-order: stroke fill; }
.menu-label { position: relative; z-index: 1; margin: 0 0 8px; width: min(260px, 80%); }
.menu-deco { position: absolute; inset: 0; pointer-events: none; }
.md { position: absolute; height: auto; mix-blend-mode: multiply; }
.md--splat  { width: clamp(120px, 13vw, 200px); left: 12%; top: 16%; rotate: -18deg; }
.md--drops  { width: clamp(150px, 16vw, 250px); right: 6%; top: 34%; }
.md--tall   { width: clamp(28px, 2.8vw, 42px); right: 18%; top: 12%; }
.md--crayon { width: clamp(60px, 6vw, 96px); left: 46%; top: 52%; rotate: 12deg; }
.md--s1     { width: 24px; left: 8%; top: 48%; }
.md--s2     { width: 20px; right: 34%; top: 24%; }
.md--bf1    { width: clamp(70px, 7vw, 110px); left: 32%; top: 28%; rotate: -8deg; }
.md--bf2    { width: clamp(80px, 8vw, 124px); right: 12%; top: 62%; rotate: 10deg; }

.menu-nav a { font-family: var(--script-name); font-weight: 400; font-size: clamp(4rem, 9vw, 8rem); line-height: 1.14; letter-spacing: 0; gap: 26px; }
.menu-nav a small {
  font-family: var(--type); font-size: 15px; letter-spacing: 0.06em; color: var(--ink); transform: translateY(-2.2em);
  -webkit-text-stroke: 0.045em currentColor;
}
.menu-nav a span { background: none; position: relative; padding-right: 0.5em; }
/* the 4-point star marks the current page and the hovered item */
.menu-nav a span::after {
  content: ""; position: absolute; right: 0; top: 0.32em; width: 0.26em; height: 0.26em; background: var(--ink);
  -webkit-mask: var(--sparkle) center / contain no-repeat; mask: var(--sparkle) center / contain no-repeat;
  opacity: 0; transform: scale(0.6) rotate(-45deg); transition: opacity 250ms ease, transform 450ms var(--ease-out);
}
.menu-nav a[aria-current="page"] span::after { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .menu-nav a span { transition: translate 450ms var(--ease-out); }
  .menu-nav a:hover span { translate: 10px 0; }
  .menu-nav a:hover span::after { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .menu-nav a span::after { transition: opacity 150ms ease; transform: none; } }
@media (max-width: 900px) {
  .menu-side { border-right: 0; border-top: 1.5px solid var(--ink); min-height: 34vh; justify-content: flex-end; }
  .menu-nav a { font-size: clamp(3.6rem, 17vw, 6rem); }
  .md--splat { width: 22vw; left: auto; right: 4%; top: 8%; }
  .md--drops { width: 26vw; right: auto; left: 52%; top: 40%; }
  .md--tall { width: 7vw; right: 8%; top: 54%; }
  .md--crayon, .md--s2 { display: none; }
  .md--bf1 { width: 15vw; left: 58%; top: 14%; }
  .md--bf2 { width: 15vw; right: 30%; top: 58%; left: auto; }
  .md--s1 { left: auto; right: 22%; top: 30%; }
}
@media (max-width: 900px) {
  .md--bf1 { width: 14vw; left: 8%; top: 9%; }
  .md--bf2 { width: 15vw; left: 38%; right: auto; top: 6%; }
  .md--splat { width: 20vw; right: 4%; left: auto; top: 6%; }
  .md--drops { width: 20vw; left: 64%; top: 30%; }
  .md--tall { width: 6vw; right: auto; left: 28%; top: 30%; }
  .md--s1 { right: auto; left: 56%; top: 36%; }
}

/* lightbox v2: the page sinks to black while the project flies in (see site.js); chrome slides in after it lands */
.lightbox {
  background: rgba(13, 12, 12, 0); -webkit-backdrop-filter: none; backdrop-filter: none;
  opacity: 1; transition: background-color 620ms var(--ease-out);
}
@starting-style { .lightbox[open] { opacity: 1; } }
.lightbox.is-in { background: rgba(13, 12, 12, 0.97); }
.lightbox .lb-bar, .lightbox .lb-nav { opacity: 0; transition: opacity 300ms ease, transform 500ms var(--ease-out); }
.lightbox .lb-bar { transform: translateY(-10px); }
.lightbox .lb-nav { transform: translateY(10px); }
.lightbox.is-landed .lb-bar, .lightbox.is-landed .lb-nav { opacity: 1; transform: none; transition-delay: 60ms; }
.lightbox.is-flying .lb-stage img { opacity: 0; transition: none; }
.lb-stage img { border-radius: 0; }
.lb-flyer { position: fixed; left: -9999px; top: 0; z-index: 5; pointer-events: none; transform-origin: 50% 50%; will-change: transform, clip-path; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.lb-flyer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb-nav { align-items: center; gap: clamp(14px, 3vw, 36px); }
.lb-cap {
  margin: 0; min-width: 0; max-width: min(60vw, 560px); text-align: center; color: #f2efe9;
  font-family: var(--type); font-size: clamp(14px, 1.3vw, 17px); letter-spacing: 0.02em;
  -webkit-text-stroke: 0.045em currentColor; paint-order: stroke fill;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-count { font-family: var(--type); letter-spacing: 0.08em; color: #f2efe9; }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox .lb-bar, .lightbox .lb-nav { transition: opacity 200ms ease, background-color 200ms ease; transform: none !important; }
}


/* phones: calm menu. Centred script links, no numbers / label / divider, one butterfly, contact details small at the bottom */
@media (max-width: 900px) {
  .menu { grid-template-rows: 1fr auto; }
  .menu-nav { align-items: center; padding: 90px var(--gut) 0; gap: 2px; }
  .menu-nav a { gap: 0; font-size: clamp(3.4rem, 16vw, 5.2rem); }
  .menu-nav a small { display: none; }
  .menu-nav a span { padding-right: 0; }
  .menu-nav a span::after { right: -0.42em; }
  .menu-side { border: 0; min-height: 0; align-items: center; text-align: center; gap: 6px; padding: 0 var(--gut) calc(30px + env(safe-area-inset-bottom)); overflow: visible; }
  .menu-label { display: none; }
  .menu-side > a { font-size: 15px; color: var(--ink-soft); }
  .md { display: none; }
  .md--bf1 { display: block; width: 16vw; left: auto; right: 12vw; top: -46vh; rotate: 10deg; }
}
@media (max-width: 900px) { .menu-nav a { font-size: clamp(3.8rem, 19vw, 6rem); line-height: 1.12; } }

/* Contact without "Chat with me.": the CONTACT label is the page heading, same look as before */
.hero h1.page-label {
  font-family: var(--type); font-size: clamp(12px, 1.2vw, 16px); line-height: 1.4; letter-spacing: 0.14em; font-weight: 400;
  -webkit-text-stroke: 0.055em currentColor; paint-order: stroke fill;
}
.hero--contact .form { margin-top: 26px; }

/* no project name in the lightbox (she prefers the image alone) */
.lb-cap { display: none; }

/* phones: all five filters on ONE row (smaller, tighter caps; scales down on very small screens) */
@media (max-width: 760px) {
  .filters { display: flex; width: 100%; max-width: none; }
  .filters button, .filters button:nth-of-type(n+4) {
    flex: 1 1 auto; grid-column: auto; padding: 0 4px; height: 40px;
    font-size: clamp(8.5px, 2.75vw, 11px); letter-spacing: 0.03em; font-stretch: 100%;
    border: 0 !important;
  }
  .filters button + button { border-left: 1.5px solid var(--ink) !important; }
}



/* phone menu: decor balanced left / right instead of all on the right */
@media (max-width: 900px) {
  .md--bf1 { display: block; width: 15vw; left: 10vw; right: auto; top: -52vh; rotate: -10deg; }
  .md--s2 { display: block; width: 4.4vw; left: auto; right: 13vw; top: -24vh; }
  .md--s1 { display: block; width: 5vw; right: auto; left: 16vw; top: -18vh; }
}
@media (max-width: 760px) {
  .filters button:nth-of-type(n) { border: 0 !important; }
  .filters button:nth-of-type(n) + button { border-left: 1.5px solid var(--ink) !important; }
}

/* desktop menu, calmer: just the two light butterflies + two small stars, no splatter, no MENU label */
.md--splat, .md--drops, .md--crayon, .md--s1 { display: none; }
.menu-label { display: none; }
@media (min-width: 901px) {
  .md--bf1 { width: clamp(80px, 7.5vw, 120px); left: 22%; top: 24%; }
  .md--bf2 { width: clamp(90px, 8vw, 130px); right: 20%; top: 52%; }
  .md--tall { right: 30%; top: 18%; }
  .md--s2 { right: auto; left: 34%; top: 66%; }
}
@media (max-width: 900px) { .md--s2 { top: -47vh; right: 16vw; width: 4vw; } }




/* phones: each project reveals ONCE when it scrolls into view and then stays.
   One timed, interruptible transition (no scroll-linked handover): a soft wipe up + rise, the image settling from a slight zoom.
   Colour fades in separately for the project in the middle of the screen. */
@media (hover: none) {
  .grid:not(.is-fish) .tile { transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 1100ms cubic-bezier(0.22, 1, 0.36, 1), clip-path 1100ms cubic-bezier(0.22, 1, 0.36, 1); }
  .grid:not(.is-fish) .tile img { transform: none; transition: transform 1500ms cubic-bezier(0.22, 1, 0.36, 1), filter 800ms ease; }
  .grid:not(.is-fish) .tile:not(.is-shown) { opacity: 0; transform: translateY(48px); clip-path: inset(22% 0 0 0); }
  .grid:not(.is-fish) .tile:not(.is-shown) img { transform: scale(1.14); }
  .grid:not(.is-fish) .tile.is-shown { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
  .grid:not(.is-fish) .tile.is-live img { filter: none; }
}
@media (hover: none) and (prefers-reduced-motion: reduce) {
  .grid:not(.is-fish) .tile:not(.is-shown) { transform: none; clip-path: none; }
  .grid:not(.is-fish) .tile:not(.is-shown) img { transform: none; }
  .grid:not(.is-fish) .tile { transition: opacity 300ms ease; }
}

/* lightbox: no "7 / 89" counter, just the close button */
.lb-count { display: none; }
.lb-bar { justify-content: flex-end; }

/* phones: more room to write the project message (the box grows with the screen height; tall phones get the most) */
@media (max-width: 760px) {
  .page-contact .field textarea, .hero--contact .field textarea { min-height: 118px; height: calc(100svh - 528px); max-height: 320px; }
}
@media (min-height: 640px) and (max-width: 760px) {
  .page-contact .field input { height: 44px; }
}

/* footer: tiny dim legal link (exists only to comply) */
.legal-link { margin-left: 8px; color: inherit; opacity: 0.6; font-size: 11.5px; text-decoration: none; }
.legal-link:hover { text-decoration: underline; opacity: 1; }

/* legal page: calm reading column in the site language */
.legal { padding: clamp(110px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); }
.legal-wrap { max-width: 720px; }
.legal .page-label { margin: 0 auto; }
.legal .script-title { margin: 6px auto 26px; }
.legal h2 { margin: 34px 0 10px; font-family: var(--sans); font-stretch: 125%; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.legal p { color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.legal-updated { margin-top: 30px !important; font-size: 13px !important; color: var(--ink-mute) !important; }

/* 404 */
.hero--404 .hero-copy { text-align: center; }
.hero--404 .script-title { white-space: nowrap; }
.nf-text { margin: 4px auto 26px; max-width: 34ch; font-family: var(--type); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; -webkit-text-stroke: 0.045em currentColor; paint-order: stroke fill; }
.hero--404 .pill-cta { max-width: 420px; margin-inline: auto; text-decoration: none; }
.legal .script-title { width: fit-content; margin-inline: auto; text-align: center; }

/* contact: her "Chat with Me" script artwork under the CONTACT label */
.chat-title { margin: 14px auto 0; }
.chat-title img { display: block; width: clamp(200px, 22vw, 300px); height: auto; margin: 0 auto; }
@media (max-width: 760px) {
  .chat-title { margin-top: 8px; }
  .chat-title img { width: 190px; }
  /* phones: contact page ends at the form, no LinkedIn strip, no social icons */
  .page-contact .strip, .page-contact .footer .socials { display: none; }
  .page-contact .field textarea, .page-contact .hero--contact .field textarea { height: calc(100svh - 560px); }
  /* home: butterflies per her arrows (left one up, right one down off her sweater) */
  .cover .bf--1 { top: calc(60px + 50vw); }
  .cover .spark--4 { top: calc(60px + 42vw); }
  .cover .bf--4 { top: calc(60px + 70vw); }
  .cover .bf--2 { left: auto; right: 1vw; top: calc(60px + 109vw); }
  .cover .spark--2 { left: auto; right: 17vw; top: calc(60px + 121vw); }
}
/* desktop contact: everything sits higher (label level with the logo, art + form right under it) */
@media (min-width: 761px) {
  .page-contact .hero--contact .hero-copy { padding-top: 34px !important; }
  .page-contact .chat-title { margin-top: 6px; }
  .page-contact .hero--contact .form { margin-top: 14px; }
}
@media (max-width: 760px) { .page-contact .chat-title { margin-top: 16px; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-sending .pill-cta { opacity: 0.7; cursor: progress; }
.form-note { text-align: center; }
/* phones: Chat with Me sits 5% lower */
@media (max-width: 760px) { .page-contact .chat-title { margin-top: calc(16px + 5svh); } }
/* full euro amounts: let them wrap onto two lines on narrow phones instead of overflowing */
.budget-opts span { white-space: normal; text-align: center; line-height: 1.15; padding-inline: 4px; }
@media (max-width: 760px) { .budget-opts span, .page-contact .budget-opts span { height: auto; min-height: 44px; font-size: 13px; padding-block: 6px; } }
/* budget amounts: smaller and lighter */
.budget-opts span { font-size: 13px !important; -webkit-text-stroke: 0 !important; letter-spacing: 0.01em; }
@media (max-width: 760px) { .budget-opts span, .page-contact .budget-opts span { font-size: 11.5px !important; } }

/* ---------- contact: thank-you scene after sending ---------- */
.form.is-leaving { opacity: 0; transform: translateY(-14px) scale(0.98); filter: blur(6px); transition: opacity 480ms var(--ease-out), transform 520ms var(--ease-out), filter 480ms ease; pointer-events: none; }
.sent { position: relative; text-align: center; padding: clamp(40px, 8svh, 90px) 0 30px; outline: none; }
.sent-title { margin: 0; font-family: var(--script-name); font-size: clamp(4.4rem, 9vw, 7.5rem); line-height: 1; color: var(--ink); }
.sent-text { margin: 14px auto 0; max-width: 32ch; font-family: var(--type); font-size: 17px; line-height: 1.5; -webkit-text-stroke: 0.04em currentColor; }
.sent-again { margin-top: 30px; font-family: var(--sans); font-stretch: 125%; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-underline-offset: 0.35em; }
.sent-bf { position: absolute; left: 50%; top: 52%; width: 74px; margin-left: -37px; pointer-events: none; opacity: 0; }
.sent-bf img { display: block; width: 100%; height: auto; }
.sent-stars { display: flex; justify-content: center; gap: 18px; margin-top: 22px; }
.sent-stars img { width: 14px; height: auto; opacity: 0; }
.sent-stars img:nth-child(2) { width: 18px; }
.sent .sent-title, .sent .sent-text, .sent .sent-again { opacity: 0; transform: translateY(10px); filter: blur(8px); }
.sent.in .sent-title, .sent.in .sent-text, .sent.in .sent-again { opacity: 1; transform: none; filter: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out), filter 700ms ease; }
.sent.in .sent-title { transition-delay: 900ms; }
.sent.in .sent-text { transition-delay: 1150ms; }
.sent.in .sent-again { transition-delay: 1500ms; }
.sent.in .sent-stars img { opacity: 1; transition: opacity 500ms ease; }
.sent.in .sent-stars img:nth-child(1) { transition-delay: 1300ms; } .sent.in .sent-stars img:nth-child(2) { transition-delay: 1400ms; } .sent.in .sent-stars img:nth-child(3) { transition-delay: 1500ms; }
@media (prefers-reduced-motion: no-preference) {
  /* the butterfly rises from where the button was, loops once and flies off top-right with the message */
  .sent.in .sent-bf { animation: carry 2600ms cubic-bezier(0.45, 0, 0.25, 1) forwards; }
  .sent.in .sent-bf img { animation: bf-flap 0.9s ease-in-out infinite; }
  @keyframes carry {
    0%   { opacity: 0; transform: translate(0, 160px) rotate(-8deg) scale(0.7); }
    12%  { opacity: 1; }
    40%  { transform: translate(-90px, 20px) rotate(-18deg) scale(1); }
    65%  { transform: translate(60px, -60px) rotate(12deg) scale(0.95); opacity: 1; }
    100% { transform: translate(min(46vw, 560px), -360px) rotate(24deg) scale(0.55); opacity: 0; }
  }
  .sent.in .sent-stars img { animation: twinkle 3.6s var(--ease-in-out) infinite 2s; }
}
@media (prefers-reduced-motion: reduce) {
  .sent .sent-title, .sent .sent-text, .sent .sent-again { opacity: 1; transform: none; filter: none; }
  .sent .sent-stars img { opacity: 1; }
}
@media (max-width: 760px) {
  .sent { padding-top: 12svh; }
  .sent-title { font-size: 22vw; }
  .sent-text { font-size: 15px; }
}
.form[hidden], .sent[hidden] { display: none !important; }
.hero-copy:has(.sent:not([hidden])) .chat-title { display: none; }
.sent-text { max-width: 44ch; }

/* bigger send moment: a big butterfly + two companions sweep up and away */
.sent-bf { width: clamp(150px, 15vw, 230px); margin-left: calc(clamp(150px, 15vw, 230px) / -2); top: 40%; z-index: 2; }
.sent-bf--2 { width: clamp(90px, 8vw, 130px); margin-left: calc(clamp(90px, 8vw, 130px) / -2); }
.sent-bf--3 { width: clamp(70px, 6vw, 100px); margin-left: calc(clamp(70px, 6vw, 100px) / -2); }
@media (prefers-reduced-motion: no-preference) {
  .sent.in .sent-bf { animation: carry-big 3000ms cubic-bezier(0.45, 0, 0.25, 1) forwards; }
  .sent.in .sent-bf--2 { animation: carry-left 3000ms cubic-bezier(0.45, 0, 0.25, 1) 250ms forwards; }
  .sent.in .sent-bf--3 { animation: carry-right 3000ms cubic-bezier(0.45, 0, 0.25, 1) 450ms forwards; }
  .sent.in .sent-bf--2 img { animation-duration: 0.7s; }
  .sent.in .sent-bf--3 img { animation-duration: 0.6s; }
  @keyframes carry-big {
    0%   { opacity: 0; transform: translate(0, 220px) rotate(-10deg) scale(0.5); }
    12%  { opacity: 1; }
    38%  { transform: translate(-160px, 10px) rotate(-20deg) scale(1.15); }
    62%  { transform: translate(120px, -90px) rotate(14deg) scale(1.05); opacity: 1; }
    100% { transform: translate(min(48vw, 640px), -460px) rotate(26deg) scale(0.6); opacity: 0; }
  }
  @keyframes carry-left {
    0%   { opacity: 0; transform: translate(-40px, 240px) rotate(8deg) scale(0.5); }
    15%  { opacity: 1; }
    50%  { transform: translate(-320px, -40px) rotate(-14deg) scale(1); opacity: 1; }
    100% { transform: translate(calc(-1 * min(46vw, 620px)), -440px) rotate(-26deg) scale(0.6); opacity: 0; }
  }
  @keyframes carry-right {
    0%   { opacity: 0; transform: translate(40px, 240px) rotate(-6deg) scale(0.5); }
    15%  { opacity: 1; }
    50%  { transform: translate(300px, 30px) rotate(18deg) scale(1); opacity: 1; }
    100% { transform: translate(min(44vw, 600px), -300px) rotate(30deg) scale(0.6); opacity: 0; }
  }
}
@media (max-width: 760px) {
  .sent-bf { width: 140px; margin-left: -70px; }
  .sent-bf--2 { width: 84px; margin-left: -42px; }
  .sent-bf--3 { width: 64px; margin-left: -32px; }
}

/* phones: the Contact page is just the form, no LinkedIn strip or icon row underneath */
@media (max-width: 760px) {
  .page-contact .strip, .page-contact .footer { display: none; }
  .page-contact .hero--contact .hero-copy { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  .page-contact .hero--contact .hero-copy { padding-top: 64px; }
  .page-contact .form { margin-top: 6px; gap: 7px; }
  .page-contact .field input { height: 40px; }
  .page-contact .budget-opts span { height: 38px; }
  .page-contact .pill-cta { height: 52px; margin-top: 2px; }
  .page-contact .field textarea, .page-contact .hero--contact .field textarea { min-height: 96px; height: calc(100svh - 552px); max-height: 300px; }
}
@media (max-width: 760px) {
  .page-contact .field textarea, .page-contact .hero--contact .field textarea { min-height: 84px; height: calc(87svh - 492px); max-height: 300px; }
}
/* phones: the message box simply takes whatever height is left, so the form always fits the screen exactly */
@media (max-width: 760px) and (min-height: 600px) {
  .page-contact .hero--contact .wrap { display: flex; flex-direction: column; justify-content: flex-start; height: 100%; }
  .page-contact .hero--contact .hero-copy { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; height: 100%; }
  .page-contact .form { flex: 1 1 auto; min-height: 0; grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; }
  .page-contact .field--full:not(.budget) { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; }
  .page-contact .field textarea, .page-contact .hero--contact .field textarea { height: 100%; min-height: 80px; max-height: none; resize: none; }
  .page-contact .form-note { min-height: 0; }
}
