/* Nikol Vesler portfolio — clean, Apple-like white and grey surfaces, Nikol's pastel palette
   only on the things you touch (stickers, pills, tiles). One typeface: Heebo */

:root {
  --ink: #1D1D1F;
  --ink-2: #424245;
  --soft: #6E6E73;
  --line: #E5E5EA;
  --bg: #FFFFFF;
  --bg-2: #F5F5F7;
  --night: #161617;
  --plum: #54485D;
  /* Clean colours sampled from the Beci Orpin reference (Canva page 6) */
  --sky: #CFE0F0;
  --lilac: #DCBFE8;
  --pink: #F9D9F1;
  --cream: #FEFECC;
  --tomato: #FE2F01;
  --cobalt: #386DFE;
  --green: #11D241;
  --butter: var(--cream);
  --rose: var(--pink);
  --sage: #BFEBCB;
  --blue: var(--sky);
  --page-bg: #FFFFFF;

  --font: 'Heebo', 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);

  --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.05), 0 8px 24px -10px rgb(0 0 0 / 0.14);
  --shadow-pill: 0 1px 1px rgb(0 0 0 / 0.04), 0 10px 22px -10px rgb(29 29 31 / 0.28);
  --shadow-win: 0 2px 6px rgb(0 0 0 / 0.06), 0 30px 70px -24px rgb(0 0 0 / 0.32);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #C7C7CC var(--bg-2); }
body {
  margin: 0; background: var(--page-bg); color: var(--ink);
  transition: background-color 700ms var(--ease-out);
  font-family: var(--font); font-size: 17px; line-height: 1.6; font-weight: 400;
  caret-color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--lilac); color: var(--ink); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #C7C7CC; border-radius: 99px; border: 3px solid var(--bg-2); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.025em; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Sticker paint ---------- */
.k { stroke: var(--cutk, none); stroke-width: var(--sw, 0); stroke-linejoin: round; stroke-linecap: round; }
.f-butter { fill: var(--cut, #FFE14D); }
.f-rose { fill: var(--cut, #FF8DB8); }
.f-lilac { fill: var(--cut, #C8A2F2); }
.f-sage { fill: var(--cut, #11D241); }
.f-blue { fill: var(--cut, #386DFE); }
.f-bluelight { fill: var(--cut, #7FA2FF); }
.f-white { fill: var(--cut, #FFFFFF); }
.f-ink { fill: var(--cut, #1D1D1F); }
.f-tomato { fill: var(--cut, #FE2F01); }
.cut { --cut: #fff; --cutk: #fff; --sw: 14; }
.ic-edge { stroke: #C7C7CC; stroke-width: 2; }
.ic-line { fill: none; stroke: #AEAEB2; stroke-width: 2.4; stroke-linecap: round; }
svg { overflow: visible; }

/* ---------- Buttons ---------- */
.chip-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; font-size: 16px; padding: 11px 22px; border-radius: 999px; cursor: pointer;
  text-decoration: none; border: 0;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.chip-btn { background: var(--bg-2); color: var(--ink); }
.btn { background: var(--ink); color: #fff; }
.chip-btn:active, .btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .chip-btn:hover { background: #E8E8ED; }
  .btn:hover { background: #000; }
}
.x-btn {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; color: var(--ink);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.x-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.x-btn:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .x-btn:hover { background: rgb(0 0 0 / 0.06); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 14px var(--gutter) auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-logo {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; text-decoration: none;
  background: rgb(255 255 255 / 0.86); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  padding: 7px 16px 7px 8px; border-radius: 999px; box-shadow: var(--shadow-soft);
}
.nav-logo-dot { width: 26px; height: 26px; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav-logo:hover .nav-logo-dot { transform: rotate(60deg); } }
.nav nav {
  display: flex; gap: 2px; align-items: center; padding: 5px; border-radius: 999px; box-shadow: var(--shadow-soft);
  background: rgb(255 255 255 / 0.86); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
}
.nav nav a { font-weight: 500; font-size: 14.5px; text-decoration: none; padding: 8px 14px; border-radius: 999px; transition: background-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .nav nav a:hover { background: var(--bg-2); } }
.nav nav a.nav-cta { background: var(--ink); color: #fff; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 120px var(--gutter); overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; text-align: center; pointer-events: none; }
.hero h1 { font-size: clamp(52px, 9vw, 120px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; }

.hero-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 8px 16px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2); font-size: 15px; font-weight: 500;
}
.hero-note svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-play { position: absolute; inset: 0; z-index: 1; }
.toy {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(clamp(70px, 9.5vw, 140px) * var(--s, 1));
  transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--rr, var(--r)));
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  transition: transform 500ms var(--ease-out);
  opacity: 0; animation: toy-in 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 80ms + 200ms);
}
.toy.is-dragging { transition: none; cursor: grabbing; z-index: 5; }
.toy svg {
  width: 100%; height: auto;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.08)) drop-shadow(0 12px 16px rgb(29 29 31 / 0.16));
  animation: bob 7s ease-in-out infinite; animation-delay: var(--d);
  transition: transform 220ms var(--ease-out), filter 220ms ease;
}
.toy.is-dragging svg { transform: scale(1.07); filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.08)) drop-shadow(0 26px 26px rgb(29 29 31 / 0.2)); animation-play-state: paused; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes toy-in { from { opacity: 0; scale: 0.9; filter: blur(4px); } to { opacity: 1; scale: 1; filter: blur(0); } }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; translate: -50% 0; z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  font-weight: 400; font-size: 15px; text-decoration: none; color: var(--soft);
}
.scroll-cue svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s var(--ease-in-out) infinite; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* ---------- 2. Learned (physics stickers) ---------- */
.learned { padding: 130px 0 0; position: relative; }
.learned-head { text-align: center; padding: 0 var(--gutter); }
.learned-head h2 { font-size: clamp(72px, 12vw, 168px); font-weight: 900; letter-spacing: -0.045em; line-height: 0.9; }
.learned-sub { margin-top: 18px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 300; color: var(--ink-2); letter-spacing: -0.01em; }
.learned-chev { width: 28px; height: 28px; margin: 18px auto 0; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.board { position: relative; height: clamp(560px, 78svh, 800px); margin-top: 10px; }
.board-hint {
  position: absolute; top: 8px; left: 50%; translate: -50% 0; z-index: 1; white-space: nowrap;
  font-size: 14px; color: var(--ink-2); background: rgb(255 255 255 / 0.75); padding: 6px 14px; border-radius: 999px;
}
.board-stage { position: absolute; inset: 0; overflow: hidden; }

.st {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; text-align: center;
  font-weight: 500; color: var(--ink); font-size: calc(19px * var(--k, 1)); line-height: 1.18;
  user-select: none; -webkit-user-select: none; touch-action: none; cursor: grab;
  will-change: transform; opacity: 0;
}
.st.is-in { opacity: 1; transition: opacity 200ms ease; }
.st.is-dragging { cursor: grabbing; z-index: 10; }
.st.is-dragging .st-skin { scale: 1.05; box-shadow: 0 2px 2px rgb(0 0 0 / 0.05), 0 22px 30px -12px rgb(29 29 31 / 0.32); }
.st { color: var(--sfg, var(--ink)); }
.st-skin { position: absolute; inset: 0; border-radius: 999px; background: var(--sf); box-shadow: var(--shadow-pill); transition: scale 200ms var(--ease-out), box-shadow 200ms ease; }
.st-label { position: relative; padding: 0 1.3em; max-width: calc(250px * var(--k, 1)); }
@media (hover: hover) and (pointer: fine) { .st:hover .st-skin { scale: 1.03; } }

.course-card {
  position: absolute; z-index: 20; top: 50px; left: 50%;
  width: min(440px, calc(100% - 32px)); translate: -50% 0;
  background: rgb(255 255 255 / 0.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 24px; padding: 26px 28px 28px; box-shadow: var(--shadow-win);
  transform-origin: 50% 0; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.course-card[hidden] { display: block; opacity: 0; transform: scale(0.96) translateY(-6px); pointer-events: none; visibility: hidden; transition: opacity 150ms ease, transform 150ms ease, visibility 0s 150ms; }
.course-card .x-btn { position: absolute; top: 14px; left: 14px; }
.course-card-num {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 50%;
  background: var(--cc, var(--sky)); color: var(--ccfg, var(--ink)); font-weight: 700; font-size: 16px; margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.course-card h3 { font-size: 26px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.course-card p:last-child { color: var(--ink-2); }

/* static fallback when physics is unavailable */
.board.is-static .board-stage { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 12px; padding: 60px var(--gutter); }
.board.is-static .st { position: relative; opacity: 1; transform: none !important; padding: 14px 0; }

/* ---------- 3. Works (video wall) ---------- */
.works { padding: 130px 0 0; position: relative; overflow: hidden; }
.works-head { text-align: center; padding: 0 var(--gutter); max-width: 900px; margin: 0 auto 56px; }
.works-head h2 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.04em; }
.works-head p { margin-top: 18px; color: var(--ink-2); font-size: 19px; }

.wall {
  display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: clamp(10px, 1.4vw, 20px);
  padding: 0 var(--gutter); height: clamp(620px, 100svh, 980px); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent);
          mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent);
}
.wall-col { overflow: hidden; }
.wall-track { display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 20px); animation: wall-up var(--dur, 60s) linear infinite; }
.wall-col:nth-child(even) .wall-track { animation-direction: reverse; }
.wall-col:nth-child(even) { margin-top: -120px; }
@media (hover: hover) and (pointer: fine) { .wall-col:hover .wall-track { animation-play-state: paused; } }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - var(--gap-half, 6px))); } }

.tile {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; cursor: pointer;
  border-radius: clamp(14px, 1.4vw, 20px); overflow: hidden; background: var(--c, var(--lilac)); color: var(--ink);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); isolation: isolate;
}
.tile video, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: scale(1.02); box-shadow: 0 24px 40px -18px rgb(0 0 0 / 0.6); }
  .tile:hover .tile-cap { transform: translateY(0); opacity: 1; }
}
.tile-cap {
  position: absolute; inset: auto 10px 10px; z-index: 2; text-align: start;
  background: rgb(255 255 255 / 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--ink); border-radius: 14px; padding: 9px 12px; font-size: 13px; line-height: 1.3;
  transform: translateY(8px); opacity: 0; transition: transform 240ms var(--ease-out), opacity 200ms ease;
}
.tile-cap strong { display: block; font-weight: 700; font-size: 15px; }
.tile-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; padding: 16px; }
.tile-ph svg { width: 46%; filter: drop-shadow(0 10px 12px rgb(29 29 31 / 0.14)); }
.tile-ph span { font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.tile-play {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: rgb(255 255 255 / 0.9);
}
.tile-play svg { width: 12px; height: 12px; fill: var(--ink); translate: -1px 0; }

/* Spotlight: the reel that broke out */
.spot {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center;
  max-width: 1240px; margin: 0 auto 90px; padding: 0 var(--gutter);
}
.spot-media { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #1D1D1F; box-shadow: 0 40px 70px -34px rgb(29 29 31 / 0.5); }
.spot-media img, .spot-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.spot-text h3 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.035em; margin-bottom: 14px; }
.spot-idea { color: var(--ink-2); font-size: 17.5px; line-height: 1.6; }
.spot-stats { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 26px 0 22px; }
.spot-stats div { display: grid; }
.spot-stats .is-big { flex-basis: 100%; }
.spot-stats .is-big dd { font-size: clamp(64px, 7vw, 104px); font-weight: 900; letter-spacing: -0.045em; line-height: 0.95; }
.spot-stats .is-big dt { font-size: 16px; font-weight: 500; color: var(--ink); }
.spot-stats dt { order: 2; font-size: 13.5px; color: var(--ink-2); }
.spot-stats dd { order: 1; margin: 0; font-size: clamp(30px, 3vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.spot-quotes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spot-note { font-size: 14px; color: var(--ink-2); margin: -8px 0 18px; }
.spot-quotes { flex-direction: column; align-items: flex-start; }
.spot-quotes li { display: flex; align-items: baseline; gap: 8px; background: rgb(255 255 255 / 0.9); border-radius: 18px 18px 18px 4px; padding: 8px 14px; font-size: 15px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.spot-quotes q { quotes: '"' '"'; }
.spot-quotes cite { font-style: normal; font-size: 13px; color: var(--soft); white-space: nowrap; }
.spot-link { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--ink-2); text-decoration-color: rgb(29 29 31 / 0.25); }

/* Degree projects window */
.projects { padding: 24px; }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.proj-card { display: grid; gap: 8px; text-align: start; background: none; border: 0; padding: 0; cursor: pointer; }
.proj-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-soft); transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .proj-card:hover img { transform: translateY(-3px); } }
.proj-card:active img { transform: scale(0.98); }
.proj-card strong { font-size: 16px; font-weight: 700; }
.proj-card span { font-size: 14px; color: var(--soft); margin-top: -6px; }
.proj-view { display: grid; gap: 14px; }
.proj-back { justify-self: start; }
.proj-view h4 { font-size: 26px; letter-spacing: -0.02em; }
.proj-view > p { color: var(--ink-2); }
.proj-pages { display: grid; gap: 12px; margin-top: 6px; }
.proj-pages img { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; box-shadow: var(--shadow-soft); background: var(--bg-2); }
.win-projects { width: min(880px, 94%); }

/* Mood films: wide, played in place */
.mood { padding: 110px var(--gutter) 40px; max-width: 1240px; margin: 0 auto; }
.mood-head { text-align: center; margin-bottom: 36px; }
.mood-head h3 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.04em; }
.mood-head p { margin-top: 10px; color: var(--ink-2); font-size: 19px; }
.mood-grid { display: grid; gap: 22px; }
.mood-row { display: flex; gap: 22px; align-items: flex-start; }
.mood-row:nth-child(even) { flex-direction: row-reverse; }
.mood-card { margin: 0; flex: var(--grow) 1 0; min-width: 0; }
.mood-media { position: relative; aspect-ratio: var(--ar); border-radius: 22px; overflow: hidden; background: #1D1D1F; box-shadow: 0 30px 60px -30px rgb(29 29 31 / 0.45); }
.mood-media video, .mood-media img, .mood-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.mood-tag {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: rgb(255 255 255 / 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mood-play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; background: transparent;
}
.mood-play span {
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: rgb(255 255 255 / 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.4); transition: transform 220ms var(--ease-out);
}
.mood-play svg { width: 24px; height: 24px; fill: var(--ink); translate: -2px 0; }
.mood-play:active span { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .mood-play:hover span { transform: scale(1.06); } }
.mood-card figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 0 4px; }
.mood-card figcaption strong { font-weight: 700; font-size: 18px; }
.mood-card figcaption span { color: var(--ink-2); font-size: 15px; }
.mood-desc { margin: 6px 4px 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.mood-row:nth-child(even) { flex-direction: row; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--ink); overflow: hidden; }
.lightbox::backdrop { background: rgb(0 0 0 / 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox[open] .lb-inner { animation: lb-in 300ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lb-inner { position: relative; height: 100%; display: grid; grid-template-columns: auto minmax(260px, 360px); justify-content: center; align-items: center; gap: 32px; padding: 40px var(--gutter); }
.lb-media { height: min(86svh, 900px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--c, var(--lilac)); position: relative; }
.lb-media video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.lb-info { background: #fff; border-radius: 24px; padding: 26px; }
.lb-client { display: inline-block; background: var(--bg-2); border-radius: 999px; padding: 4px 12px; font-weight: 500; font-size: 13.5px; margin-bottom: 14px; }
.lb-info h3 { font-size: 30px; margin-bottom: 8px; }
.lb-role { color: var(--soft); }
.lb-desc { margin-top: 12px; }
.lb-desc:empty { display: none; }
.lb-nav { display: flex; gap: 8px; margin-top: 22px; }
.lb-close { position: absolute; top: 20px; left: 20px; background: #fff; width: 44px; height: 44px; }

/* ---------- 4. About: desktop ---------- */
.about { padding: 60px var(--gutter) 130px; }
.screen {
  position: relative; max-width: 1240px; margin: 0 auto; border-radius: 22px; overflow: hidden;
  background: var(--bg-2); border: 10px solid #1D1D1F; box-shadow: 0 50px 90px -40px rgb(29 29 31 / 0.45);
}
.menubar {
  display: flex; align-items: center; gap: 18px; height: 34px; padding: 0 16px;
  background: rgb(255 255 255 / 0.8); border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 500;
}
.menubar-logo { width: 18px; height: 18px; }
.menubar-item { color: var(--soft); font-weight: 400; }
.menubar-clock { margin-inline-start: auto; font-variant-numeric: tabular-nums; }

.desk {
  position: relative; height: clamp(600px, 76svh, 780px);
  background:
    radial-gradient(1200px 600px at 70% 0%, rgb(220 191 232 / 0.55), transparent 60%),
    radial-gradient(900px 500px at 10% 100%, rgb(207 224 240 / 0.8), transparent 60%),
    var(--bg-2);
}
.desk-hello {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  font-size: clamp(20px, 2.2vw, 28px); font-weight: 300; line-height: 1.1; color: var(--soft); pointer-events: none;
}
.desk-hello em { font-style: normal; font-weight: 800; font-size: clamp(48px, 7vw, 96px); color: var(--ink); letter-spacing: -0.04em; }

.d-icon {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 120px;
  background: none; border: 0; padding: 8px 4px; cursor: pointer; border-radius: 14px;
  touch-action: none; user-select: none; -webkit-user-select: none; transition: background-color 160ms ease;
}
.d-icon svg { width: 66px; height: 66px; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.12)); transition: transform 200ms var(--ease-out); }
.d-icon span { font-weight: 500; font-size: 13.5px; line-height: 1.2; padding: 2px 8px; border-radius: 6px; }
.d-icon:active svg { transform: scale(0.94); }
.d-icon.is-dragging { z-index: 30; cursor: grabbing; }
@media (hover: hover) and (pointer: fine) { .d-icon:hover { background: rgb(0 0 0 / 0.05); } }
.d-icon.is-active span { background: #0A84FF; color: #fff; }

.sticky {
  position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 200px; padding: 22px 18px 20px;
  background: #FFF4C2; rotate: -3deg; box-shadow: 0 16px 24px -14px rgb(0 0 0 / 0.3), 0 1px 2px rgb(0 0 0 / 0.08);
  font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--ink-2); cursor: grab; touch-action: none; user-select: none;
}

.win {
  position: absolute; z-index: 40; width: min(600px, 92%); max-height: calc(100% - 40px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-win); border: 1px solid rgb(0 0 0 / 0.08);
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out);
}
.win-wide { width: min(780px, 94%); }
.win-brief { width: min(700px, 94%); }
.win[hidden] { display: flex; opacity: 0; transform: scale(0.9); visibility: hidden; pointer-events: none; transition: opacity 140ms ease, transform 160ms ease, visibility 0s 160ms; }
.win-bar {
  display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; height: 40px; padding: 0 10px;
  border-bottom: 1px solid var(--line); background: #FAFAFA; border-radius: 14px 14px 0 0;
  cursor: grab; touch-action: none; user-select: none; flex: none;
}
.win-bar h3 { font-weight: 500; font-size: 13px; text-align: center; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.win-bar .x-btn { justify-self: end; grid-column: 3; grid-row: 1; }
.win-dots { display: flex; gap: 7px; grid-column: 1; grid-row: 1; }
.win-dots i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.win-dots i:nth-child(2) { background: #FEBC2E; }
.win-dots i:nth-child(3) { background: #28C840; }
.win-body { overflow: auto; padding: 28px 32px 32px; overscroll-behavior: contain; }

/* Brief document */
.brief-top { position: relative; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.brief-photo {
  position: absolute; top: -6px; right: 0; width: 96px; margin: 0; padding: 6px 6px 18px; background: #fff; rotate: 4deg;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 14px 24px -12px rgb(29 29 31 / 0.35);
}
.brief-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.brief-photo::before { content: ''; position: absolute; top: -10px; left: 50%; translate: -50% 0; rotate: -6deg; width: 44px; height: 16px; background: rgb(220 191 232 / 0.85); }
.brief-meta { padding-right: 112px; }
.brief-kicker { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 14px; }
.brief-meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.brief-meta div { display: grid; gap: 1px; }
.brief-meta dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--soft); }
.brief-meta dd { margin: 0; font-weight: 500; font-size: 15px; }
.brief-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px;
  background: #FFF1D6; color: #8A5A00; font-size: 13.5px; transition: background-color 300ms ease, color 300ms ease;
}
.brief-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.brief-approved {
  position: absolute; top: 40px; right: 70px; z-index: 2; rotate: -10deg;
  font-weight: 900; font-size: 30px; letter-spacing: 0.06em; color: #2E8B57;
  border: 4px solid currentColor; border-radius: 12px; padding: 2px 14px;
  opacity: 0; scale: 1.8; pointer-events: none;
}
.brief.is-approved .brief-approved { opacity: 0.9; scale: 1; transition: opacity 240ms ease, scale 420ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.brief.is-approved .brief-status { background: #DFF3E6; color: #1E6B3D; }

.brief-list { list-style: none; margin: 0; padding: 0; counter-reset: b; }
.brief-list li { counter-increment: b; padding: 18px 0; border-bottom: 1px solid var(--line); }
.brief-list h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.brief-list h4::before { content: counter(b, decimal-leading-zero) ' /'; white-space: nowrap; font-weight: 500; color: var(--soft); font-variant-numeric: tabular-nums; }
.brief-list h4 span { font-weight: 400; font-size: 13.5px; color: var(--soft); white-space: nowrap; }
.brief-list p { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.brief-list .brief-insight p { color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.55; }
.brief-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; }
.brief-next { font-size: 14px; color: var(--soft); }
.brief-next b { color: var(--ink); font-weight: 700; letter-spacing: 0.04em; }
.btn-approve { min-width: 150px; }
.brief.is-approved .btn-approve { background: #2E8B57; }

/* Direction */
.direction { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.polaroid { margin: 0; background: #fff; padding: 10px 10px 12px; rotate: -3deg; box-shadow: var(--shadow-soft); border: 1px solid rgb(0 0 0 / 0.05); }
.polaroid-stack { position: relative; display: grid; }
.polaroid-stack > .polaroid { grid-area: 1 / 1; transition: rotate 380ms var(--ease-out), translate 380ms var(--ease-out); }
.polaroid-back { display: none; }
.polaroid-stack.has-two { cursor: pointer; }
.polaroid-stack.has-two .polaroid-back { display: block; rotate: 6deg; translate: -14px 8px; }
.polaroid-stack.is-swapped .polaroid-back { z-index: 1; rotate: -2deg; translate: 0 0; }
.polaroid-stack.is-swapped .polaroid-front { rotate: 7deg; translate: 14px 10px; }
.polaroid-img { aspect-ratio: 4 / 5; background: var(--lilac); display: grid; place-items: center; align-content: center; gap: 10px; overflow: hidden; position: relative; }
.polaroid-img svg { width: 50%; }
.polaroid-img span { font-size: 13px; color: var(--soft); }
.polaroid-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { font-size: 14px; font-weight: 500; text-align: center; margin-top: 9px; color: var(--ink-2); }
.dir-text h4 { font-size: 28px; margin-bottom: 12px; }
.dir-text > p { color: var(--ink-2); }
.swatches { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swatches li { background: var(--c); border-radius: 12px; height: 58px; display: flex; align-items: flex-end; padding: 6px 8px; }
.swatches li span { font-size: 12px; font-weight: 500; background: rgb(255 255 255 / 0.88); border-radius: 6px; padding: 0 6px; }
.dir-words { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-words span { font-weight: 500; font-size: 15px; background: var(--bg-2); border-radius: 999px; padding: 4px 14px; }

.certs { min-height: 220px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cert-empty { grid-column: 1 / -1; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--soft); }
.cert-empty svg { width: 76px; filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.12)); }
.cert { margin: 0; }
.cert img { border-radius: 10px; box-shadow: var(--shadow-soft); }
.cert figcaption { font-size: 13.5px; margin-top: 6px; text-align: center; }
.win-cv { width: min(720px, 94%); }
.cv { padding: 0; background: var(--bg-2); }
.cv-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: rgb(255 255 255 / 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cv-bar p { font-weight: 600; font-size: 15px; }
.cv-bar .btn { padding: 9px 18px; font-size: 14.5px; }
.cv-page { width: calc(100% - 40px); margin: 20px auto; border-radius: 6px; box-shadow: var(--shadow-soft); background: #fff; }
.trash ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.trash li { position: relative; padding-inline-start: 24px; color: var(--soft); text-decoration: line-through; text-decoration-color: rgb(29 29 31 / 0.35); }
.trash li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.6em; width: 10px; height: 10px; border-radius: 3px; background: var(--rose); rotate: 12deg; }
.trash-note { margin-top: 18px; font-weight: 500; }

/* ---------- 5. Contact ---------- */
.contact-text { position: relative; z-index: 1; }
.contact { position: relative; overflow: hidden; text-align: center; padding: 150px var(--gutter) 160px; }
.contact h2 { font-size: clamp(46px, 8vw, 110px); letter-spacing: -0.045em; position: relative; z-index: 1; }
.contact-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 48px; }
.sticker-btn {
  display: inline-grid; place-items: center; min-width: 140px; padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: 19px; text-decoration: none; color: var(--ink);
  background: var(--sb); box-shadow: var(--shadow-pill);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.sticker-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .sticker-btn:hover { transform: translateY(-3px); box-shadow: 0 2px 2px rgb(0 0 0 / 0.05), 0 18px 28px -12px rgb(29 29 31 / 0.35); } }
.s-ink { --sb: var(--ink); color: #fff; } .s-note { --sb: #FFF4C2; } /* same yellow as the sticky note on the desktop */ .s-sage { --sb: #D4F2DE; } .s-lilac { --sb: var(--lilac); } .s-blue { --sb: var(--sky); }
.contact-plain { position: relative; z-index: 1; margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-weight: 400; font-size: 17px; color: var(--ink-2); }
.contact-plain a { text-decoration-thickness: 1px; text-decoration-color: #C7C7CC; }
.contact-stickers svg { position: absolute; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.06)) drop-shadow(0 14px 18px rgb(29 29 31 / 0.14)); }
.c-s1 { width: clamp(80px, 9vw, 130px); top: 16%; left: 9%; rotate: -14deg; }
.c-s2 { width: clamp(64px, 7vw, 100px); bottom: 16%; right: 11%; rotate: 12deg; }

.foot { display: flex; justify-content: space-between; padding: 22px var(--gutter) 30px; font-size: 13.5px; color: var(--ink-2); }

/* Accent strip along the bottom edge, recoloured per section like the reference */
.strip { position: fixed; inset: auto 0 0; height: 7px; z-index: 60; background: var(--strip, var(--tomato)); transition: background-color 500ms ease; pointer-events: none; }

/* ---------- Responsive ---------- */
.wall { --cols: 4; }
@media (max-width: 1100px) { .wall { --cols: 3; } }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { inset: 10px 12px auto; }
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 100px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .toy { width: calc(92px * var(--s, 1)); left: min(var(--x), calc(100% - 100px)); }
  .hero-note { font-size: 14px; }
  .spot { grid-template-columns: 1fr; margin-bottom: 70px; }
  .spot-stats { gap: 6px 18px; }
  .proj-grid { grid-template-columns: 1fr; }
  .learned, .works { padding-top: 96px; }
  .board { height: min(680px, 90svh); }
  .wall { --cols: 2; height: 118svh; }
  .wall-col:nth-child(even) { margin-top: -70px; }
  .tile-cap { opacity: 1; transform: none; font-size: 12px; padding: 7px 9px; inset: auto 7px 7px; }
  .tile-cap strong { font-size: 13.5px; }

  .lb-inner { grid-template-columns: 1fr; align-content: center; justify-items: center; gap: 14px; padding: 60px 16px 20px; overflow: auto; }
  .lb-media { height: auto; width: min(100%, 52svh); }
  .lb-info { width: 100%; padding: 18px; }
  .lb-info h3 { font-size: 24px; }
  .lb-close { top: 12px; left: 12px; }

  .about { padding: 10px 12px 90px; }
  .screen { border-width: 7px; border-radius: 30px; }
  .menubar-item { display: none; }
  .desk { height: auto; min-height: 560px; padding: 120px 14px 30px; display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; gap: 18px 6px; }
  .desk-hello { inset: 26px 0 auto; display: block; }
  .d-icon, .sticky { position: relative; left: auto; top: auto; width: auto; }
  .d-icon svg { width: 58px; height: 58px; }
  .sticky { grid-column: 1 / -1; justify-self: center; width: 230px; margin-top: 18px; }
  .win, .win-wide, .win-brief {
    position: fixed; left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-height: 88svh;
    border-radius: 20px 20px 0 0; z-index: 120; transform-origin: 50% 100%;
  }
  .win-bar { border-radius: 20px 20px 0 0; cursor: default; }
  .win[hidden] { transform: translateY(40px); }
  .win-body { padding: 22px 20px 34px; }
  .brief-meta { grid-template-columns: 1fr; }
  .brief-kicker { font-size: 24px; }
  .brief-approved { font-size: 22px; top: 0; }
  .direction { grid-template-columns: 1fr; }
  .polaroid-stack { width: 210px; justify-self: center; }

  .mood { padding-top: 80px; }
  .mood-row, .mood-row:nth-child(even) { flex-direction: column; align-items: center; }
  .mood-card { flex: none; width: 100%; }
  .mood-card[style*="9 / 16"] { width: min(100%, 360px); }
  .contact { padding: 100px 16px 120px; }
  .brief-photo { width: 76px; top: -2px; }
  .brief-meta { padding-right: 84px; }
  .brief-approved { right: 40px; top: 30px; }
  .cv-page { width: calc(100% - 24px); margin: 12px auto; }
  .contact-links { flex-direction: column; align-items: center; gap: 10px; }
  .sticker-btn { width: min(280px, 100%); font-size: 17px; padding: 14px 22px; }
  .c-s1 { top: 6%; left: 6%; }
  .c-s2 { bottom: 5%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toy, .toy svg, .scroll-cue svg { animation: none; opacity: 1; }
  .wall-track { animation: none; }
  .wall { height: auto; -webkit-mask-image: none; mask-image: none; padding-bottom: 60px; }
  .wall-col:nth-child(even) { margin-top: 0; }
  .wall-track [aria-hidden="true"] { display: none; }
  .win, .course-card { transition: opacity 150ms ease; transform: none !important; }
  .brief.is-approved .brief-approved { transition: opacity 150ms ease; }
}
