/* ==========================================================
   Xamara Macias – Portfolio
   Palette "Orquídea": orchid-tinted paper, aubergine ink,
   orchid magenta, mango, leaf green.
   ========================================================== */

/* Self-hosted fonts (no requests to Google) */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f7f2fa;
  --paper-2: #ece3f3;
  --ink: #23123b;
  --ink-soft: #5b4a72;
  --orchid: #b8358a;
  --orchid-bright: #e2508f;
  --mango: #ffb81c;
  --leaf: #1f6b4f;
  --mint: #8fe3bd;
  --night: #1c0f2e;
  --night-2: #2a1942;
  --on-night: #f4ecfa;
  --on-night-soft: #c3b3d6;
  --line: rgba(35, 18, 59, 0.16);
  --polaroid: #fffdf8;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;

  --step--1: clamp(0.84rem, 0.8rem + 0.2vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  --step-4: clamp(3.4rem, 1.4rem + 9vw, 9.5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1a0f29;
    --paper-2: #2a1a40;
    --ink: #f4ecfa;
    --ink-soft: #c3b3d6;
    --orchid: #f07ab8;
    --leaf: #8fe3bd;
    --night: #2a1845;
    --night-2: #3a2560;
    --line: rgba(244, 236, 250, 0.2);
    --polaroid: #f4ecfa;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1a0f29;
  --paper-2: #2a1a40;
  --ink: #f4ecfa;
  --ink-soft: #c3b3d6;
  --orchid: #f07ab8;
  --leaf: #8fe3bd;
  --night: #2a1845;
  --night-2: #3a2560;
  --line: rgba(244, 236, 250, 0.2);
  --polaroid: #f4ecfa;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
main { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-optical-sizing: auto;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--mango);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav__logo {
  font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em;
  text-decoration: none; font-variation-settings: "wdth" 80;
  margin-right: auto;
}
.nav__logo span { color: var(--orchid-bright); }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav__links a {
  text-decoration: none; font-weight: 500; font-size: var(--step--1);
  padding: 6px 2px; background-image: linear-gradient(var(--orchid-bright), var(--orchid-bright));
  background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.3s var(--ease);
}
.nav__links a:hover { background-size: 100% 2px; }
@media (pointer: coarse) {
  .nav__links a { display: inline-block; padding: 12px 4px; }
  .footer a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .accounts__list a, .handle { display: inline-block; padding: 8px 0; }
  .polaroid__cap a { display: inline-block; padding: 6px 0; }
}

.lang {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1.5px solid var(--ink); border-radius: 999px;
}
.lang button {
  padding: 3px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; font-size: 0.8rem; font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.lang button:hover { background: var(--paper-2); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (pointer: coarse) {
  .lang button { min-width: 40px; min-height: 36px; padding: 6px 10px; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid var(--ink);
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--orchid-bright); }
.btn--solid:hover { transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 6px 6px 0 var(--orchid-bright); }
.btn--ghost:hover { background: var(--mango); color: #23123b; border-color: var(--mango); transform: rotate(2deg); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  min-height: min(calc(100svh - 64px), 860px);
}
.hero__text { position: relative; }
.hero__hello {
  font-family: var(--hand); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  color: var(--orchid); line-height: 1; transform: rotate(-3deg); transform-origin: left;
  margin-bottom: 4px;
}
.hero__name {
  font-size: var(--step-4); line-height: 0.88; font-weight: 800;
  letter-spacing: -0.025em; font-variation-settings: "wdth" 78;
  margin-left: -0.04em;
}
.hero__line { display: block; }
.hero__line:nth-child(2) { padding-left: 0.5em; }
.hero__name .ch {
  display: inline-block;
  transition: font-variation-settings 0.35s var(--ease), color 0.35s, transform 0.45s var(--bounce);
}
.hero__name .ch:hover {
  font-variation-settings: "wdth" 100; color: var(--orchid-bright); transform: translateY(-0.08em) rotate(-6deg);
}
.hero__name .ch:nth-child(3n):hover { color: var(--mango); transform: translateY(-0.1em) rotate(7deg); }
.hero__name .ch:nth-child(4n):hover { color: var(--leaf); transform: scale(1.12) rotate(-3deg); }

/* rotating badge */
.badge {
  position: absolute; width: clamp(96px, 10vw, 138px); top: clamp(-8px, 1vw, 16px); right: clamp(0px, 2vw, 40px);
  animation: spin 18s linear infinite;
}
.badge__bg { fill: var(--mango); }
.badge__text { font-family: var(--font); font-size: 21px; font-weight: 700; fill: #23123b; }
.badge__flower { fill: var(--orchid-bright); }
.badge__dot { fill: #23123b; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__lede {
  margin-top: clamp(18px, 2.4vw, 32px); max-width: 32ch;
  font-size: var(--step-1); line-height: 1.4; color: var(--ink-soft);
}
.hero__roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero__roles li {
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: var(--step--1);
  border: 1.5px solid currentColor;
}
.hero__roles li:nth-child(1) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero__roles li:nth-child(2) { color: var(--orchid); transform: rotate(-2deg); }
.hero__roles li:nth-child(3) { background: var(--mango); color: #23123b; border-color: var(--mango); transform: rotate(1.5deg); }
.hero__roles li:nth-child(4) { color: var(--leaf); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* stage: viewfinder with fact stickers around it */
.hero__stage {
  position: relative; display: grid; place-items: center;
  padding: clamp(24px, 4vw, 48px) 0;
}
.hero__stage::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1;
  background: var(--mango); border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%;
  transform: rotate(-8deg) translate(8%, 6%); z-index: -1;
}
.viewfinder { margin: 0; position: relative; width: min(64%, 340px); }
.viewfinder__screen {
  position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden;
  background: #120a1e; border: 10px solid #120a1e;
  box-shadow: 0 30px 60px -20px rgba(35, 18, 59, 0.45);
  transform: rotate(2.5deg);
  transition: transform 0.6s var(--bounce);
  cursor: crosshair;
}
.viewfinder:hover .viewfinder__screen { transform: rotate(-1deg) scale(1.02); }
.viewfinder__img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 20px;
  filter: blur(14px) saturate(0.6); transform: scale(1.12);
  transition: filter 1.1s var(--ease) 0.25s, transform 1.4s var(--ease) 0.25s;
}
.is-focused .viewfinder__img { filter: none; transform: scale(1); }

.vf-corner {
  position: absolute; width: 30px; height: 30px; border: 0 solid rgba(255,255,255,0.9);
  transition: inset 0.9s var(--ease) 0.3s;
}
.vf-corner--tl { top: 6%; left: 6%; border-top-width: 3px; border-left-width: 3px; }
.vf-corner--tr { top: 6%; right: 6%; border-top-width: 3px; border-right-width: 3px; }
.vf-corner--bl { bottom: 6%; left: 6%; border-bottom-width: 3px; border-left-width: 3px; }
.vf-corner--br { bottom: 6%; right: 6%; border-bottom-width: 3px; border-right-width: 3px; }
.viewfinder:not(.is-focused) .vf-corner--tl { top: 1%; left: 1%; }
.viewfinder:not(.is-focused) .vf-corner--tr { top: 1%; right: 1%; }
.viewfinder:not(.is-focused) .vf-corner--bl { bottom: 1%; left: 1%; }
.viewfinder:not(.is-focused) .vf-corner--br { bottom: 1%; right: 1%; }

.vf-focus {
  position: absolute; left: var(--fx, 50%); top: var(--fy, 42%);
  width: 58px; height: 58px; translate: -50% -50%;
  border: 2px solid var(--mango); border-radius: 4px;
  opacity: 0; transition: opacity 0.3s, left 0.18s ease-out, top 0.18s ease-out;
  pointer-events: none;
}
.is-focused .vf-focus { opacity: 0.95; }

.vf-hud {
  position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 0 9%; color: #fff; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}
.vf-hud--top { top: 9%; }
.vf-hud--bottom { bottom: 9%; gap: 8px; }
.vf-rec { display: inline-flex; align-items: center; gap: 6px; }
.vf-rec i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b4a; }
.is-focused .vf-rec i { animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.vf-batt { width: 22px; height: 10px; border: 1.5px solid #fff; border-radius: 2px; padding: 1px; }
.vf-batt i { display: block; height: 100%; width: 70%; background: #fff; }

/* fact stickers */
.sticker {
  position: absolute; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  max-width: 200px; padding: 10px 14px 12px; border-radius: 16px;
  font-weight: 700; line-height: 1.2; font-size: 0.95rem;
  box-shadow: 3px 4px 0 rgba(35, 18, 59, 0.9);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.4s var(--bounce);
  opacity: 0; scale: 0.6;
}
.is-focused ~ .facts .sticker { opacity: 1; scale: 1; transition: transform 0.4s var(--bounce), opacity 0.3s, scale 0.5s var(--bounce); }
.is-focused ~ .facts .sticker:nth-child(1) { transition-delay: 0s, 1.0s, 1.0s; }
.is-focused ~ .facts .sticker:nth-child(2) { transition-delay: 0s, 1.15s, 1.15s; }
.is-focused ~ .facts .sticker:nth-child(3) { transition-delay: 0s, 1.3s, 1.3s; }
.is-focused ~ .facts .sticker:nth-child(4) { transition-delay: 0s, 1.45s, 1.45s; }
.sticker:hover { transform: rotate(0deg) scale(1.06); }
.sticker__v { overflow-wrap: break-word; }
.sticker__k { font-family: var(--hand); font-size: 1.3rem; font-weight: 600; line-height: 1; }
.sticker__big { font-size: 2.6rem; font-weight: 800; line-height: 0.9; letter-spacing: -0.03em; font-variation-settings: "wdth" 75; }

.sticker--now { --r: -6deg; top: 2%; left: -2%; background: var(--orchid-bright); color: #fff; }
.sticker--edu { --r: 4deg; bottom: 6%; left: 0%; background: #fff; color: #23123b; border: 2px solid #23123b; }
.sticker--lang { --r: 7deg; top: 30%; right: -3%; background: var(--leaf); color: #fff; }
.sticker--years { --r: -4deg; bottom: 12%; right: 2%; background: #23123b; color: var(--mango); flex-direction: row; align-items: center; gap: 10px; max-width: 220px; }
.sticker--years .sticker__v { color: #fff; font-size: 0.85rem; }
:root[data-theme="dark"] .sticker--lang { color: #23123b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sticker--lang { color: #23123b; } }
:root[data-theme="dark"] .sticker { box-shadow: 3px 4px 0 rgba(0,0,0,0.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sticker { box-shadow: 3px 4px 0 rgba(0,0,0,0.6); } }

@media (max-width: 1100px) and (min-width: 861px) {
  .sticker { max-width: 160px; font-size: 0.85rem; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__stage { padding-top: 8px; }
  .hero__stage::before { width: 70%; }
  .viewfinder { width: min(60%, 320px); }
  .hero__stage { width: min(100%, 600px); justify-self: center; padding-block: 40px; }
}
@media (max-width: 599px) {
  .hero__stage { padding-block: 8px 0; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-top: 28px; width: 100%; }
  .sticker { position: static; max-width: none; }
  .sticker--now, .sticker--years { grid-column: 1 / -1; }
  .sticker--years { justify-content: flex-start; }
  .vf-hud { font-size: 0.6rem; padding: 0 8%; white-space: nowrap; }
  .vf-hud--bottom span:nth-child(2) { display: none; }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--mango); color: #23123b; overflow: hidden;
  transform: rotate(-2deg); margin: 0 -20px -30px; position: relative; z-index: 3;
  border-block: 3px solid #23123b;
}
.ticker__track { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker ul { display: flex; flex: none; }
.ticker li {
  padding: 12px 0; font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); font-weight: 800;
  font-variation-settings: "wdth" 80; letter-spacing: -0.02em; white-space: nowrap;
}
.ticker li::after { content: "✺"; color: var(--orchid-bright); margin: 0 0.8em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Section titles ---------- */
.section-title {
  font-size: var(--step-3); line-height: 0.98; font-weight: 800; letter-spacing: -0.035em;
  font-variation-settings: "wdth" 80;
  max-width: 16ch;
}

/* ---------- Work ---------- */
.work {
  background: var(--night); color: var(--on-night);
  padding: clamp(72px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
  scroll-margin-top: 30px;
}
.work__head {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px;
}
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px;
  background: var(--night-2); border-radius: 999px;
}
.tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--on-night-soft); font-weight: 700;
  transition: background 0.3s var(--ease), color 0.3s, transform 0.3s var(--bounce);
}
.tab:hover { color: var(--on-night); }
.tab[aria-selected="true"] { background: var(--mango); color: #23123b; transform: rotate(-2deg); }
.tab__count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px;
  font-size: 0.78rem; background: rgba(255,255,255,0.12);
}
.tab[aria-selected="true"] .tab__count { background: #23123b; color: var(--mango); }

.project {
  max-width: var(--max); margin: clamp(32px, 4vw, 48px) auto 0; padding-left: var(--gutter);
  display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.project[hidden] { display: none; }
.project:not([hidden]) .reel { animation: deal 0.6s var(--bounce) both; }
.project:not([hidden]) li:nth-child(2) .reel { animation-delay: 0.06s; }
.project:not([hidden]) li:nth-child(3) .reel { animation-delay: 0.12s; }
.project:not([hidden]) li:nth-child(4) .reel { animation-delay: 0.18s; }
.project:not([hidden]) li:nth-child(5) .reel { animation-delay: 0.24s; }
@keyframes deal { from { opacity: 0; transform: translateY(40px) rotate(6deg); } }

.project__period { color: var(--mango); font-weight: 600; font-size: var(--step--1); }
.project__client {
  font-size: min(var(--step-2), 1.7rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  margin-top: 6px; overflow-wrap: anywhere;
}
.project__role { color: var(--on-night-soft); margin-top: 4px; font-weight: 500; }
.project__text { margin-top: 14px; color: var(--on-night); opacity: 0.9; max-width: 40ch; font-size: 0.98rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li {
  font-size: 0.8rem; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: var(--night-2); color: var(--on-night);
}
.tags li:first-child { background: var(--orchid-bright); color: #fff; }

.handle {
  display: inline-block; margin-top: 16px; font-weight: 600; color: var(--mango);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.handle:hover { color: #fff; }

.reels {
  display: flex; gap: clamp(12px, 1.4vw, 18px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 14px var(--gutter) 20px 6px;
  scrollbar-width: thin; scrollbar-color: var(--orchid-bright) transparent;
}
.reels li { flex: none; scroll-snap-align: start; }
.reels li:nth-child(odd) .reel { --tilt: -1.5deg; }
.reels li:nth-child(even) .reel { --tilt: 1.5deg; margin-top: 18px; }
.reel {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer;
  width: clamp(160px, 16vw, 210px); aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden; background: var(--night-2);
  box-shadow: 0 0 0 1px rgba(244,236,250,0.08);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.45s var(--bounce), box-shadow 0.4s var(--ease);
}
.reel img, .reel video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.reel video { opacity: 0; transition: opacity 0.35s; }
.reel.is-playing video { opacity: 1; }
.reel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,10,30,0.85) 0%, transparent 38%);
  pointer-events: none;
}
.reel:hover, .reel:focus-visible { transform: translateY(-8px) rotate(0deg) scale(1.04); box-shadow: 0 0 0 3px var(--mango), 0 20px 40px -10px rgba(0,0,0,0.6); }
.reel__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.92); color: #23123b;
}
.reel__badge--ai { background: var(--mango); }
.reel__label {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  text-align: left; font-weight: 700; font-size: 0.92rem; line-height: 1.2; color: #fff;
}
.reel__label::before {
  content: ""; display: inline-block; width: 0; height: 0; margin-right: 8px; vertical-align: 1px;
  border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

@media (max-width: 860px) {
  .tabs { border-radius: 26px; }
  .project { grid-template-columns: 1fr; padding-left: 0; }
  .project__info { padding: 0 var(--gutter); }
  .reels { padding-left: var(--gutter); scroll-padding-left: var(--gutter); }
}

/* ---------- Photography: a table of polaroids ---------- */
.photo {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(32px, 4vw, 56px);
  scroll-margin-top: 30px;
}
.photo__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 48px; }
.note {
  font-family: var(--hand); font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.1; font-weight: 600;
}
.note--drag { color: var(--orchid); transform: rotate(-3deg); }
.hint-touch { display: none; }
@media (max-width: 760px), (pointer: coarse) {
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}

.table {
  position: relative; height: clamp(400px, 34vw, 470px); margin-top: clamp(20px, 3vw, 36px);
  touch-action: pan-y;
}
.polaroid {
  --pw: clamp(150px, 15vw, 210px);
  position: absolute; left: calc((100% - var(--pw)) * var(--x)); top: var(--y);
  width: var(--pw); padding: 10px 10px 0;
  background: var(--polaroid); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 14px 28px -10px rgba(35,18,59,0.45);
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r));
  transition: transform 0.35s var(--bounce), box-shadow 0.3s;
  user-select: none; -webkit-user-select: none;
}
.polaroid:hover { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(0deg) scale(1.05); z-index: 20; }
.polaroid.is-dragging {
  transition: none; z-index: 30; cursor: grabbing;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--r) * 0.3)) scale(1.08);
  box-shadow: 0 30px 50px -14px rgba(35,18,59,0.55);
}
.polaroid button {
  display: block; width: 100%; padding: 0; border: 0; cursor: grab;
  aspect-ratio: 1; overflow: hidden; background: #ddd; touch-action: none;
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.polaroid__cap {
  font-family: var(--hand); font-weight: 600; font-size: 1.25rem; color: #23123b;
  text-align: center; padding: 6px 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.polaroid__cap a { color: var(--orchid); text-decoration: none; }
.polaroid__cap a:hover { text-decoration: underline; }
.polaroid:nth-child(3n)::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 80px; height: 24px; translate: -50% 0;
  background: color-mix(in srgb, var(--mango) 70%, transparent); rotate: -4deg;
}
.polaroid:nth-child(3n+1)::before {
  content: ""; position: absolute; top: -10px; right: -14px; width: 64px; height: 22px;
  background: color-mix(in srgb, var(--orchid-bright) 55%, transparent); rotate: 38deg;
}

@media (max-width: 760px), (pointer: coarse) {
  .table {
    height: auto; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 18px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1); touch-action: auto;
    scroll-padding-inline: var(--gutter);
  }
  .polaroid { position: relative; left: auto; top: auto; flex: none; width: 62vw; max-width: 240px; scroll-snap-align: center; }
  .polaroid button { cursor: zoom-in; touch-action: auto; }
}

/* ---------- About ---------- */
.about {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 7vw, 96px);
  scroll-margin-top: 30px;
}
.about__top {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.about__lead { margin-top: 20px; font-size: var(--step-1); line-height: 1.45; max-width: 44ch; }
.about__side p { max-width: 46ch; color: var(--ink-soft); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.skills li {
  padding: 6px 13px; border-radius: 999px; font-size: var(--step--1); font-weight: 600;
  background: var(--paper-2); transition: transform 0.3s var(--bounce), background 0.2s;
}
.skills li:hover { transform: rotate(-4deg) scale(1.08); background: var(--mango); color: #23123b; }

.journey {
  position: relative; margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px;
}
.journey::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 10px;
  border-top: 3px dashed var(--line);
}
.stop { position: relative; padding-top: 38px; }
.stop::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--orchid);
}
.stop:first-child::before { border-color: var(--mango); background: var(--mango); }
.stop--now::before {
  background: var(--orchid-bright); border-color: var(--orchid-bright);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--orchid-bright) 22%, transparent);
}
.stop--now::after {
  content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--orchid-bright); animation: ping 2s var(--ease) infinite;
}
@keyframes ping { to { transform: scale(2.4); opacity: 0; } }
.stop__year { display: block; font-weight: 700; font-size: var(--step--1); color: var(--orchid); font-variant-numeric: tabular-nums; }
.stop__place { display: block; font-family: var(--hand); font-size: 1.3rem; line-height: 1.1; color: var(--ink-soft); }
.stop__role { font-size: 1.02rem; font-weight: 700; line-height: 1.25; margin-top: 8px; letter-spacing: -0.01em; }
.stop__org { color: var(--ink-soft); margin-top: 4px; font-size: 0.88rem; line-height: 1.35; }

@media (max-width: 1000px) {
  .about__top { grid-template-columns: 1fr; }
  .journey {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px;
    scroll-padding-inline: var(--gutter);
  }
  .journey::before { left: var(--gutter); right: auto; width: calc(6 * 218px); }
  .stop { flex: none; width: 200px; scroll-snap-align: start; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--orchid-bright); color: #fff;
  margin: 0 clamp(0px, 2vw, 24px);
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(48px, 6vw, 80px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px clamp(32px, 5vw, 72px);
  align-items: center; scroll-margin-top: 30px;
}
.contact__title {
  font-size: var(--step-3); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em;
  font-variation-settings: "wdth" 80; max-width: 14ch; color: #fff;
}
.contact__text { margin-top: 18px; max-width: 40ch; font-size: var(--step-1); line-height: 1.4; color: #fff; }
.socials { display: flex; flex-wrap: wrap; gap: 14px; }
.social {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; background: #fff; color: #23123b;
  font-weight: 700; text-decoration: none; box-shadow: 4px 4px 0 #23123b;
  transition: transform 0.3s var(--bounce), box-shadow 0.25s var(--ease);
}
.social:hover { transform: translate(-2px, -2px) rotate(-3deg); box-shadow: 6px 6px 0 #23123b; }
.social svg { width: 22px; height: 22px; }
.contact :focus-visible { outline-color: #23123b; }
.note--contact { color: #fff; margin-top: 28px; transform: rotate(-2deg); transform-origin: left; }
.accounts__list { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; }
.accounts__list a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}

.footer {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 32px;
  display: flex; justify-content: space-between; gap: 16px; font-size: var(--step--1); color: var(--ink-soft);
}

/* ---------- Cursor bubble ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--mango); color: #23123b; font-weight: 800; font-size: 0.82rem; line-height: 1.05;
  transform: translate(var(--cx, -200px), var(--cy, -200px)) scale(0);
  transition: transform 0.25s var(--bounce);
}
.cursor.is-on { transform: translate(var(--cx), var(--cy)) scale(1); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100dvh; overflow: hidden;
}
.lightbox::backdrop { background: rgba(18, 10, 30, 0.88); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 16px 24px; }
.lightbox__stage video, .lightbox__stage img {
  max-width: min(100%, 1200px); max-height: calc(100dvh - 100px);
  border-radius: 18px; background: #000;
}
.lightbox__stage video { aspect-ratio: 9 / 16; height: calc(100dvh - 100px); width: auto; }
.lightbox__close {
  position: fixed; top: 16px; right: 16px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #23123b; display: grid; place-items: center;
}
.lightbox__close svg { width: 22px; height: 22px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .viewfinder__img { filter: none; transform: none; }
  .sticker { opacity: 1; scale: 1; }
  .cursor { display: none; }
}
