/* Palette from the Figma file. Every home-page size is in design pixels of the
   2000x1171 frame, multiplied by --u, so the composition scales as one piece. */
:root {
  --canvas: #F7F4EE;
  --blue: #2165FF;
  --coral: #FF6257;
  --yellow: #FFE052;
  --teal: #54D8C5;
  --ink: #171717;
  --periwinkle: #8FADF5;
  --grey: #5d5d5a;
  --u: min(calc(100vw / 2000), calc(100vh / 1171));
  --u: min(calc(100vw / 2000), calc(100svh / 1171));
  --spring: cubic-bezier(.2, 1.45, .4, 1);
  --swift: cubic-bezier(.2, .8, .2, 1);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); }
body { overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }

/* ---------- Stage ---------- */
.home {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  overflow: hidden;
}
.stage {
  position: relative;
  width: calc(2000 * var(--u));
  height: calc(1171 * var(--u));
}
.stage > * { position: absolute; }

.corner {
  position: absolute; right: 0; bottom: 0;
  width: calc(310 * var(--u)); height: calc(425 * var(--u));
  pointer-events: none;
}
.corner svg { width: 100%; height: 100%; display: block; overflow: visible; }
.c-yellow { transform-origin: 100% 40%; animation: bob 9s ease-in-out infinite; }
.c-coral { transform-origin: 100% 100%; animation: bob 12s ease-in-out infinite reverse; }
@keyframes bob { 50% { transform: rotate(-2.5deg) translateY(calc(-6 * var(--u))); } }

.bigword {
  font-family: Caveat, cursive; font-weight: 700; color: var(--ink);
  font-size: calc(84 * var(--u)); line-height: 1;
  padding: .04em .46em .1em;
  isolation: isolate;
  filter: drop-shadow(0 calc(3 * var(--u)) calc(4 * var(--u)) rgba(23, 23, 23, .22));
  pointer-events: none;
}
/* Torn paper behind the handwriting: straight top and bottom, ripped left and right ends */
.bigword::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--word);
  clip-path: polygon(3% 4%, 97% 0, 100% 16%, 96.5% 30%, 99.5% 47%, 97% 63%, 100% 82%, 97.5% 100%, 2% 96%, 0 79%, 3% 62%, .5% 44%, 3.5% 27%, 0 13%);
}
/* Each sticker uses a palette colour that stands apart from what it sits beside */
#wordWork { --word: var(--teal); }
#wordAbout { --word: var(--coral); }
#wordTools { --word: var(--yellow); }
#wordWork { left: calc(356 * var(--u)); top: calc(548 * var(--u)); transform: rotate(-11deg); z-index: 6; }
#wordAbout { left: calc(1318 * var(--u)); top: calc(232 * var(--u)); transform: rotate(9deg); z-index: 4; }

/* Small handwritten hint that the bag can be opened. It stays on screen the whole time. */
.press-hint {
  display: flex; align-items: center; gap: .3em;
  font-family: Caveat, cursive; font-weight: 600; font-size: calc(30 * var(--u)); line-height: 1;
  color: #5d5d5a; white-space: nowrap; pointer-events: none;
  transition: opacity .4s;
}
.press-hint svg {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  animation: hintTap 1.8s ease-in-out infinite;
}
@keyframes hintTap { 0%, 55%, 100% { transform: translateY(0) rotate(-8deg); } 70% { transform: translateY(-.14em) rotate(-8deg) scale(.92); } }
#hintWork { left: calc(384 * var(--u)); top: calc(648 * var(--u)); transform: rotate(-6deg); z-index: 6; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

.doodle { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; pointer-events: none; }
#arrowWork { left: calc(280 * var(--u)); top: calc(503 * var(--u)); width: calc(65 * var(--u)); height: calc(155 * var(--u)); }
#scribble { left: calc(1430 * var(--u)); top: calc(185 * var(--u)); width: calc(350 * var(--u)); height: calc(290 * var(--u)); }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s .5s var(--swift) forwards; }
.draw--slow { animation-duration: 1.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.sun {
  left: calc(610 * var(--u)); top: calc(406 * var(--u));
  width: calc(131 * var(--u)); height: calc(131 * var(--u));
  border-radius: 50%; background: var(--yellow);
  transition: transform .6s var(--spring);
}
.bag-zone.is-open ~ .sun { transform: scale(.75) translate(calc(40 * var(--u)), calc(30 * var(--u))); }

/* ---------- The bag ----------
   Open image is 92.13% of the closed image's width and bottom-aligned, which makes
   the two leather bodies the same size. Clip lines are the hinge and the front edge. */
.bag-zone {
  --bw: calc(350 * var(--u));
  left: calc(351 * var(--u)); top: calc(228 * var(--u));
  width: var(--bw); height: var(--bw);
  z-index: 5;
}
.bag-rig {
  position: absolute; inset: 0;
  transform: rotate(-11deg);
  transition: transform .55s var(--spring);
}
.bag-zone:not(.is-open):hover .bag-rig { transform: rotate(-8deg) translateY(calc(-.012 * var(--bw))); }
.bag-zone.is-open .bag-rig { transform: rotate(-3deg) scale(1.1) translateY(calc(-.03 * var(--bw))); }

.bag-open { position: absolute; left: 3.93%; top: .61%; width: 92.13%; aspect-ratio: 1; pointer-events: none; z-index: 1; }
.bag-open--front { z-index: 4; }
.bag-open img { position: absolute; inset: 0; width: 100%; height: 100%; }

.b-lid {
  clip-path: inset(0 0 60.2% 0);
  transform-origin: 50% 39.8%;
  transform: perspective(900px) rotateX(-86deg);
  opacity: 0;
  transition: transform .2s ease-in, opacity 0s .2s;
}
.b-back { clip-path: inset(39.6% 0 42% 0); opacity: 0; transition: opacity .05s .2s; }
.b-front { clip-path: inset(55.8% 0 0 0); opacity: 0; transition: opacity .05s .2s; }
.b-closed {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 5; pointer-events: none;
  transform-origin: 50% 30%;
  transition: transform .26s .16s cubic-bezier(.3, .6, .4, 1), opacity 0s .16s;
  filter: drop-shadow(0 calc(16 * var(--u)) calc(16 * var(--u)) rgba(60, 25, 10, .22));
}
.is-open .b-closed {
  transform: perspective(900px) rotateX(82deg);
  opacity: 0;
  transition: transform .24s cubic-bezier(.5, 0, .8, .5), opacity 0s .23s;
}
.is-open .b-back, .is-open .b-front { opacity: 1; transition: opacity .05s; }
.is-open .b-lid {
  opacity: 1;
  transform: perspective(900px) rotateX(0);
  transition: transform .65s .22s var(--spring), opacity 0s .22s;
}

.bag-hit { position: absolute; left: 8%; right: 8%; top: 20%; bottom: 10%; z-index: 6; border-radius: 12%; }
.is-open .bag-hit { top: 45%; }

/* Cards rise from inside the bag, between the back layer and the front panel */
.cards { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.card {
  --w: calc(.54 * var(--bw));
  position: absolute; left: 50%; top: 45%;
  width: var(--w);
  transform: translate(-50%, -50%) translateY(calc(.3 * var(--bw))) scale(.34) rotate(0deg);
  visibility: hidden;
  transition: transform .26s cubic-bezier(.5, 0, .9, .5), visibility 0s .26s;
  text-align: left; pointer-events: none;
}
.is-open .card {
  visibility: visible; pointer-events: auto;
  transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--r));
  transition: transform .75s var(--d) var(--spring), visibility 0s var(--d);
}
.is-open .card:hover, .is-open .card:focus-visible {
  transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(calc(var(--r) * .3)) scale(1.1);
  transition: transform .3s var(--spring);
  z-index: 3;
}
.card-photo {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: calc(.03 * var(--bw));
  border: calc(.018 * var(--bw)) solid #fff;
  box-shadow: 0 calc(.03 * var(--bw)) calc(.07 * var(--bw)) rgba(23, 23, 23, .28);
  background: var(--ink);
}
.card-tag {
  position: absolute; left: 50%; top: calc(-.075 * var(--bw));
  padding: .05em .55em .1em;
  font-family: Caveat, cursive; font-weight: 700; font-size: calc(.085 * var(--bw)); line-height: 1.02;
  white-space: nowrap; color: var(--ink);
  background: var(--tag); border-radius: .25em;
  transform: translateX(-50%) rotate(var(--tagr));
  box-shadow: 0 2px 6px rgba(23, 23, 23, .18);
  z-index: 2;
}
.card-go {
  position: absolute; right: 6%; bottom: 7%;
  width: calc(.085 * var(--bw)); height: calc(.085 * var(--bw));
  display: grid; place-items: center; border-radius: 50%;
  background: #fff; opacity: .95;
}
.card-go svg { width: 58%; height: 58%; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Live mini-scenes inside the cards: replaceable with real stills later */
.th { position: absolute; inset: 0; display: block; }
.th i { position: absolute; display: block; }
.th-video { background: #1e1e22; }
.th-video i:nth-child(1) { left: 8%; right: 34%; top: 20%; height: 20%; background: var(--blue); border-radius: 3px; }
.th-video i:nth-child(2) { left: 28%; right: 8%; top: 46%; height: 20%; background: var(--coral); border-radius: 3px; }
.th-video i:nth-child(3) { left: 8%; right: 20%; top: 72%; height: 14%; background: repeating-linear-gradient(90deg, var(--teal) 0 3px, transparent 3px 5px); }
.th-video i:nth-child(4) { top: 8%; bottom: 8%; width: 2px; background: #fff; animation: thSweep 3s linear infinite; }
@keyframes thSweep { from { left: 8%; } to { left: 92%; } }
.th-ui { background: var(--periwinkle); }
.th-ui i:nth-child(1) { left: 14%; right: 14%; top: 14%; bottom: 14%; background: #fff; border-radius: 6px; }
.th-ui i:nth-child(2) { left: 22%; width: 42%; top: 26%; height: 7%; background: var(--ink); border-radius: 9px; }
.th-ui i:nth-child(3) { left: 22%; width: 56%; top: 40%; height: 5%; background: #d9d9d4; border-radius: 9px; }
.th-ui i:nth-child(4) { left: 22%; width: 38%; top: 58%; height: 16%; background: var(--blue); border-radius: 12px; animation: thPress 2.6s ease-in-out infinite; }
.th-ui i:nth-child(5) {
  left: 50%; top: 62%; width: 18%; aspect-ratio: 1;
  background: var(--ink);
  clip-path: polygon(0 0, 0 78%, 22% 60%, 38% 95%, 54% 88%, 40% 54%, 70% 54%);
  animation: thCursor 2.6s ease-in-out infinite;
}
@keyframes thPress { 40%, 55% { transform: scale(.93); background: var(--coral); } }
@keyframes thCursor { 0%, 100% { transform: translate(90%, 70%); } 45% { transform: translate(-40%, -10%) scale(.92); } }
.th-motion { background: var(--blue); }
.th-motion i:nth-child(1) { left: 14%; bottom: 14%; width: 28%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); animation: thBounce 1.5s cubic-bezier(.3, 0, .7, 1) infinite alternate; }
.th-motion i:nth-child(2) { right: 14%; top: 18%; width: 28%; aspect-ratio: 1; background: var(--coral); border-radius: 12%; animation: thSpin 4s linear infinite; }
.th-motion i:nth-child(3) { right: 28%; bottom: 12%; width: 30%; aspect-ratio: 2 / 1; border-radius: 99px 99px 0 0; background: var(--teal); animation: thSpin 5s linear infinite reverse; transform-origin: 50% 100%; }
@keyframes thBounce { to { transform: translateY(-120%) scale(.9, 1.1); } }
@keyframes thSpin { to { transform: rotate(360deg); } }

/* ---------- Suitcase: the door is hinged on the spine and has two faces, the shell and the
   lining. Closed, the rig slides half a panel left so the shut case sits centred in the zone. ---------- */
#wordTools { left: calc(1480 * var(--u)); top: calc(1036 * var(--u)); transform: rotate(-6deg); transition: opacity .25s; }
#arrowTools { left: calc(1442 * var(--u)); top: calc(1058 * var(--u)); width: calc(52 * var(--u)); height: calc(38 * var(--u)); transition: opacity .25s; }
.stage:has(.tool-zone.is-open) #wordTools, .stage:has(.tool-zone.is-open) #arrowTools { opacity: 0; }
.tool-zone {
  --cw: calc(225 * var(--u));
  --ch: calc(1.29 * var(--cw));
  left: calc(1105 * var(--u)); top: calc(840 * var(--u));
  width: calc(2 * var(--cw)); height: var(--ch);
  z-index: 5;
  perspective: calc(7 * var(--cw));
  pointer-events: none;
}
.tool-zone.is-open { z-index: 7; }
.case-rig {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: translateX(calc(-.5 * var(--cw)));
  transition: transform .6s var(--swift);
  animation: caseHint 8s ease-in-out infinite;
  transform-origin: 75% 100%;
}
.tool-zone:hover .case-rig, .is-open .case-rig { animation: none; }
.is-open .case-rig { transform: none; }
@keyframes caseHint { 0%, 88%, 100% { rotate: 0deg; } 91% { rotate: -1.6deg; } 94% { rotate: 1.2deg; } 97% { rotate: -.7deg; } }

.case-half {
  position: absolute; top: 0; left: 50%;
  width: var(--cw); height: 100%;
  background: #111;
  border: calc(.022 * var(--cw)) solid #2b2b2b;
  border-radius: calc(.13 * var(--cw));
  pointer-events: auto;
}
.case-right { box-shadow: 0 calc(.09 * var(--cw)) calc(.14 * var(--cw)) rgba(23, 23, 23, .34); }
.case-door {
  position: absolute; top: 0; left: 50%;
  width: var(--cw); height: 100%;
  transform-style: preserve-3d;
  transform-origin: 0 50%;
  transform: translateZ(1px) rotateY(0deg);
  transition: transform .8s cubic-bezier(.45, .05, .25, 1);
}
.tool-zone:not(.is-open):hover .case-door { transform: translateZ(1px) rotateY(-14deg); transition: transform .35s var(--swift); }
.is-open .case-door { transform: translateZ(1px) rotateY(-180deg); }
.door-front, .door-back { left: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.door-back { transform: rotateY(180deg); }

/* Outer shell: moulded ribs, a zip following the edge, a yellow pull */
.door-front {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .13), transparent 42%),
    repeating-linear-gradient(90deg, #1b1b1b 0 calc(.1 * var(--cw)), #0c0c0c calc(.1 * var(--cw)) calc(.125 * var(--cw)), #242424 calc(.125 * var(--cw)) calc(.14 * var(--cw)));
}
.shell-zip { position: absolute; inset: calc(.035 * var(--cw)); border: calc(.012 * var(--cw)) dashed #5a5a5a; border-radius: calc(.1 * var(--cw)); }
.shell-pull { position: absolute; left: calc(.05 * var(--cw)); top: 42%; width: calc(.035 * var(--cw)); height: calc(.13 * var(--cw)); border-radius: 99px; background: var(--yellow); }
.shell-tag {
  position: absolute; left: 50%; bottom: 13%;
  padding: .08em .6em .14em; white-space: nowrap;
  font-family: Caveat, cursive; font-weight: 700; font-size: calc(.1 * var(--cw)); line-height: 1;
  color: var(--ink); background: var(--yellow); border-radius: .2em;
  transform: translateX(-50%) rotate(-4deg);
}
.case-handle {
  position: absolute; left: 22%; right: 22%; top: calc(-.12 * var(--cw)); height: calc(.13 * var(--cw));
  border: calc(.022 * var(--cw)) solid #2b2b2b; border-bottom: 0;
  border-top-width: calc(.04 * var(--cw)); border-top-color: #171717;
  border-radius: calc(.03 * var(--cw)) calc(.03 * var(--cw)) 0 0;
}
.case-spine {
  position: absolute; left: calc(-.07 * var(--cw)); top: 26%; bottom: 24%; width: calc(.12 * var(--cw));
  background: #1e1e1e; border-radius: calc(.01 * var(--cw));
  opacity: 0; transition: opacity 0s .1s; z-index: 2;
}
.is-open .case-spine { opacity: 1; transition: opacity .1s .55s; }
.wheel {
  position: absolute; bottom: calc(-.085 * var(--cw));
  width: calc(.13 * var(--cw)); height: calc(.13 * var(--cw)); border-radius: 50%;
  background: radial-gradient(circle, #d8d8d8 0 22%, #6b6b6b 24% 34%, #1b1b1b 36%);
  z-index: -1;
}
.wheel-a { left: 10%; }
.wheel-b { right: 10%; }

/* Lining: mesh pockets held by an elastic strap */
.case-inner {
  position: absolute; inset: calc(.035 * var(--cw));
  display: grid; grid-template-rows: 1fr auto .86fr; gap: calc(.022 * var(--cw));
  padding: calc(.03 * var(--cw));
  background: #1a1a1a;
  border-radius: calc(.09 * var(--cw));
  box-shadow: inset 0 0 calc(.08 * var(--cw)) #000;
  cursor: pointer;
}
.pocket {
  display: flex; align-items: center; justify-content: space-evenly;
  min-height: 0; margin: 0; padding: 0; list-style: none;
  border-radius: calc(.03 * var(--cw));
  border-top: calc(.012 * var(--cw)) solid #3d3d3d;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .13) 0 28%, transparent 34%) 0 0 / calc(.03 * var(--cw)) calc(.03 * var(--cw)),
    #101010;
}
.strap { position: relative; height: calc(.055 * var(--cw)); margin: 0 calc(-.03 * var(--cw)); background: #2e2e2e; }
.strap i { position: absolute; top: calc(-.016 * var(--cw)); width: calc(.09 * var(--cw)); height: calc(.087 * var(--cw)); background: #6a6a6a; border-radius: calc(.012 * var(--cw)); box-shadow: inset 0 0 0 calc(.012 * var(--cw)) #3a3a3a; }
.strap i:first-child { left: 16%; }
.strap i:last-child { right: 16%; }
.cable { width: 38%; height: 88%; }
.kit-tag {
  padding: .06em .5em .12em; white-space: nowrap;
  font-family: Caveat, cursive; font-weight: 700; font-size: calc(.082 * var(--cw)); line-height: 1;
  color: var(--ink); background: var(--yellow); border-radius: .2em; transform: rotate(-5deg);
}
.tool {
  --tile: calc(.33 * var(--cw));
  position: relative; width: var(--tile); text-align: center;
  opacity: 0;
  transform: translateY(26%) scale(.78);
  transition: transform .2s, opacity .15s;
}
.is-open .tool {
  opacity: 1; transform: none;
  transition: transform .6s var(--d) var(--spring), opacity .2s var(--d);
}
.is-open .tool:hover { z-index: 2; transform: scale(1.14) rotate(-2deg); transition: transform .28s var(--spring); }
.tool-face {
  display: grid; place-items: center;
  aspect-ratio: 1;
  border-radius: 20%;
  border: calc(.012 * var(--cw)) solid #fff;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: calc(.135 * var(--cw)); line-height: 1; letter-spacing: -.02em;
  box-shadow: 0 calc(.016 * var(--cw)) calc(.035 * var(--cw)) rgba(0, 0, 0, .6);
}
.tool-face svg { width: 62%; height: 62%; fill: currentColor; }
.tool-name {
  position: absolute; left: 50%; top: calc(100% - .35em); transform: translateX(-50%) rotate(-2deg);
  padding: .02em .35em .06em;
  font-family: Caveat, cursive; font-weight: 700; font-size: calc(.066 * var(--cw)); line-height: 1.05;
  white-space: nowrap; color: var(--ink);
  background: #fff; border-radius: .25em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
/* Closed it covers the shut case. Open it shrinks to the handle, because the lining itself closes the case. */
.tool-hit {
  position: absolute; left: 50%; top: 0; width: var(--cw); height: 100%;
  transform: translateZ(2px); pointer-events: auto; border-radius: calc(.13 * var(--cw));
}
.is-open .tool-hit { top: calc(-.12 * var(--cw)); left: 62%; width: calc(.56 * var(--cw)); height: calc(.13 * var(--cw)); }

/* ---------- Resume ---------- */
.resume {
  left: calc(400 * var(--u)); top: calc(752 * var(--u));
  width: calc(280 * var(--u)); height: calc(358 * var(--u));
  z-index: 4; perspective: calc(1200 * var(--u));
}
/* Every paper motion pivots on --pin-x/--pin-y, the spot where the needle goes through the sheet */
.resume { --pin-x: 54%; --pin-y: 16%; --pin-w: calc(.25 * 100%); }
.resume-fly {
  position: absolute; inset: 0; display: block;
  transform-origin: var(--pin-x) var(--pin-y);
  filter: drop-shadow(0 calc(12 * var(--u)) calc(12 * var(--u)) rgba(23, 23, 23, .2));
  animation: float 11s ease-in-out infinite;
}
.resume-fly canvas { width: 100%; height: 100%; display: block; transform-origin: var(--pin-x) var(--pin-y); transition: transform .45s var(--spring); }
.resume:hover canvas, .resume:focus-visible canvas { transform: scale(1.05) rotate(-3deg); }
.resume-pin {
  position: absolute; z-index: 2;
  width: var(--pin-w);
  left: calc(var(--pin-x) - var(--pin-w) * .098);
  top: var(--pin-y);
  transform: translateY(-92.5%);
  filter: drop-shadow(calc(-3 * var(--u)) calc(4 * var(--u)) calc(3 * var(--u)) rgba(23, 23, 23, .3));
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: rotate(-5deg) rotateX(5deg) rotateY(-12deg); }
  20% { transform: rotate(6deg) rotateX(-7deg) rotateY(14deg); }
  38% { transform: rotate(-2deg) rotateX(9deg) rotateY(20deg); }
  56% { transform: rotate(8deg) rotateX(-5deg) rotateY(-16deg); }
  76% { transform: rotate(-7deg) rotateX(10deg) rotateY(-20deg); }
  90% { transform: rotate(2deg) rotateX(-3deg) rotateY(8deg); }
}

/* ---------- Photo ---------- */
.photo {
  left: calc(1512 * var(--u)); top: calc(224 * var(--u));
  width: calc(206 * var(--u)); height: calc(268 * var(--u));
  transform: rotate(7deg);
  transform-origin: 93% 7%;
  z-index: 3;
}
.photo-frame {
  position: absolute; inset: 0; display: block;
  padding: calc(9 * var(--u));
  background: #fbfaf7;
  box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(23, 23, 23, .24);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.tape { position: absolute; pointer-events: none; }
.tape-top { width: calc(66 * var(--u)); right: calc(-30 * var(--u)); top: calc(-4 * var(--u)); transform: rotate(38deg); }
.tape-bottom { width: calc(44 * var(--u)); left: calc(-18 * var(--u)); bottom: calc(10 * var(--u)); transform: rotate(38deg); transition: transform .5s var(--swift), opacity .5s; }
/* Hover: the bottom tape lets go and the photo swings from the top one */
.photo:hover, .photo:focus-visible { animation: photoSwing 2.8s ease-in-out infinite; }
.photo:hover .tape-bottom, .photo:focus-visible .tape-bottom { transform: translateY(calc(90 * var(--u))) rotate(120deg); opacity: 0; }
@keyframes photoSwing { 0%, 100% { transform: rotate(7deg); } 25% { transform: rotate(14deg); } 75% { transform: rotate(1deg); } }

/* ---------- Hero text ---------- */
.hello {
  left: calc(910 * var(--u)); top: calc(405 * var(--u));
  display: flex; align-items: center; gap: calc(14 * var(--u));
  font-family: Caveat, cursive; font-weight: 600; font-size: calc(46 * var(--u));
}
.hello > span { display: block; transform: rotate(-7deg); }
.hand { width: calc(38 * var(--u)); height: calc(38 * var(--u)); fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform-origin: 60% 90%; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-10deg); } }
.hello-arrow { width: calc(60 * var(--u)); height: calc(64 * var(--u)); fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

.hero-text { left: calc(905 * var(--u)); top: calc(528 * var(--u)); z-index: 6; }
.hero-text h1 { margin: 0; font-weight: 400; }
.line-1 { display: block; font-weight: 300; font-size: calc(92 * var(--u)); line-height: 1.12; letter-spacing: .005em; }

.ve {
  position: relative; display: block; width: max-content;
  font-weight: 900; font-size: calc(124 * var(--u)); line-height: 1; letter-spacing: -.012em;
  cursor: col-resize; outline-offset: 8px;
}
/* --fit shrinks long roles to the free width. The line height grows by the same ratio,
   so the row keeps its height and the text below never jumps when the title changes. */
.ve-line {
  position: relative; display: block; white-space: nowrap; z-index: 3; pointer-events: none;
  font-size: calc(var(--fit, 1) * 1em);
  line-height: calc(1 / var(--fit, 1));
}
.ltr { display: inline-block; white-space: pre; backface-visibility: hidden; }
.ve { pointer-events: auto; }
.chunk {
  position: relative; display: inline-block; color: var(--ink);
  transition: transform .34s var(--swift), color .2s, font-weight .2s;
  will-change: transform;
}
/* Razor marks flash at each cut before the letters jump to their tracks */
.chunk + .chunk::before, .chunk[data-i="2"]::before {
  content: ""; position: absolute; left: -.02em; top: -.02em; bottom: -.02em; width: .018em;
  background: var(--blue); transform: scaleY(0); opacity: 0;
}
.is-cut .chunk::before { animation: razor .42s var(--swift); }
@keyframes razor { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
/* Letters stay white in flight so they read over the dark panel, then take the clip's text colour */
.is-cut .chunk {
  color: #fff;
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--s, 1));
  transition: transform .62s calc(.16s + var(--o, 0s)) var(--spring), color .1s .06s;
}
.is-running .chunk { color: var(--tc, #fff); transition: transform .62s var(--spring), color .25s; }
.dot {
  display: inline-block; width: .19em; height: .19em; margin-left: .012em;
  border-radius: 50%; background: var(--blue);
  transition: transform .34s var(--swift), opacity 0s;
}
.is-cut .dot { transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--s, 1)); transition: transform .62s .3s var(--swift), opacity 0s .92s; opacity: 0; }

.below { transition: opacity .25s, transform .35s var(--swift); }
.is-editing .below { opacity: 0; transform: translateY(calc(30 * var(--u))); pointer-events: none; }
/* Small text keeps a readable floor on small laptops, where the scaled frame would make it tiny */
.tagline { margin: calc(22 * var(--u)) 0 calc(18 * var(--u)); font-size: max(15px, calc(27.5 * var(--u))); color: var(--grey); letter-spacing: .012em; }
.reel { display: flex; align-items: center; gap: calc(17 * var(--u)); text-align: left; }
.reel-disc {
  width: calc(70 * var(--u)); height: calc(70 * var(--u));
  display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid #6e6e6e;
  transition: background .25s, transform .4s var(--spring), border-color .25s;
}
.reel-disc svg { width: 40%; height: 40%; fill: var(--ink); transition: fill .25s; }
.reel:hover .reel-disc { background: var(--ink); border-color: var(--ink); transform: scale(1.1); }
.reel:hover .reel-disc svg { fill: #fff; }
.reel-text b { display: block; font-weight: 500; font-size: max(13px, calc(19 * var(--u))); }
.reel-text small { display: block; font-size: max(12px, calc(17 * var(--u))); color: var(--grey); margin-top: calc(4 * var(--u)); }

/* ---------- Timeline: all sizes in --tu so the panel can shrink on phones ---------- */
.ve { --tu: var(--u); }
.tl {
  position: absolute; left: calc(-14 * var(--tu)); top: calc(-8 * var(--tu));
  width: calc(858 * var(--tu));
  display: grid; grid-template-rows: calc(40 * var(--tu)) calc(26 * var(--tu)) 1fr;
  padding-bottom: calc(10 * var(--tu));
  background: #1b1b1f; color: #f2f1ec;
  border-radius: calc(14 * var(--tu));
  box-shadow: 0 calc(24 * var(--tu)) calc(50 * var(--tu)) rgba(23, 23, 23, .35);
  font-size: calc(13 * var(--tu)); font-weight: 500; letter-spacing: 0; line-height: 1.2;
  cursor: default;
  transform-origin: 8% 18%;
  transform: scale(.62, .34); opacity: 0; visibility: hidden;
  transition: transform .26s .1s var(--swift), opacity .16s .16s, visibility 0s .32s;
  z-index: 1;
}
.is-cut .tl { transform: none; opacity: 1; visibility: visible; transition: transform .46s var(--spring), opacity .12s, visibility 0s; }
.tl-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 calc(14 * var(--tu)); border-bottom: 1px solid #303036; }
.tl-bar b { font-weight: 700; }
.tl-bar span { color: #94949a; margin-left: calc(10 * var(--tu)); }
.tl-time { font-variant-numeric: tabular-nums; color: var(--teal); font-weight: 700; letter-spacing: .03em; }
.tl-ruler { position: relative; margin-left: calc(92 * var(--tu)); margin-right: calc(44 * var(--tu));
  background: repeating-linear-gradient(90deg, #4a4a52 0 1px, transparent 1px calc(100% / 48)) left bottom / 100% 28% no-repeat; }
.tl-ruler em { position: absolute; top: calc(4 * var(--tu)); font-style: normal; font-size: calc(10.5 * var(--tu)); color: #94949a; font-variant-numeric: tabular-nums; }
.tl-body { position: relative; display: grid; grid-template-columns: calc(92 * var(--tu)) 1fr calc(44 * var(--tu)); }
.tl-heads, .tl-lanes { display: grid; grid-template-rows: repeat(3, calc(52 * var(--tu))) repeat(2, calc(42 * var(--tu))); }
.tl-head { display: flex; align-items: center; gap: calc(8 * var(--tu)); padding-left: calc(12 * var(--tu)); color: #a8a8ae; border-top: 1px solid #2a2a30; }
.tl-head b { display: grid; place-items: center; width: calc(26 * var(--tu)); height: calc(22 * var(--tu)); border-radius: calc(4 * var(--tu)); background: #2c2c32; font-size: calc(11 * var(--tu)); }
.tl-head.on b { background: var(--blue); color: #fff; }
.tl-head svg { width: calc(14 * var(--tu)); height: calc(14 * var(--tu)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-lanes { position: relative; cursor: ew-resize; touch-action: none; }
.tl-lane { position: relative; border-top: 1px solid #2a2a30; background: #222227; }
.clip {
  position: absolute; top: calc(4 * var(--tu)); bottom: calc(4 * var(--tu));
  border-radius: calc(5 * var(--tu)); overflow: hidden;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s, filter .15s;
}
.is-cut .clip { transform: none; transition: transform .5s calc(.26s + var(--o, 0s)) var(--swift), filter .15s; }
.clip.live { filter: brightness(1.2) saturate(1.1); box-shadow: inset 0 0 0 2px #fff; }
.clip--frames { background: linear-gradient(100deg, #24386e, #2d6f8e 55%, #8a5a7d); }
.clip--frames::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(39 * var(--tu)), rgba(0, 0, 0, .34) calc(39 * var(--tu)) calc(41 * var(--tu))); }
.clip--fx { background: repeating-linear-gradient(-45deg, #5d6fb0 0 calc(6 * var(--tu)), #6e81c6 calc(6 * var(--tu)) calc(12 * var(--tu))); }
.clip small { position: absolute; left: calc(6 * var(--tu)); top: calc(3 * var(--tu)); font-size: calc(10 * var(--tu)); font-weight: 700; color: #fff; z-index: 1; }
.clip svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.clip svg rect { fill: rgba(10, 30, 30, .62); }
.playhead {
  position: absolute; left: 0; top: calc(-26 * var(--tu)); bottom: 0; width: 2px; margin-left: -1px;
  background: var(--blue); z-index: 4; pointer-events: none; opacity: 0;
  will-change: transform;
}
.playhead::before {
  content: ""; position: absolute; left: 50%; top: calc(-7 * var(--tu));
  width: calc(16 * var(--tu)); height: calc(16 * var(--tu)); border-radius: 50%;
  background: var(--blue); transform: translateX(-50%);
  box-shadow: 0 0 0 2px #1b1b1f;
}
.is-running .playhead { opacity: 1; }
.tl-rail { display: flex; flex-direction: column; align-items: center; gap: calc(10 * var(--tu)); padding-top: calc(8 * var(--tu)); border-left: 1px solid #2a2a30; }
.tl-rail span { display: grid; place-items: center; width: calc(28 * var(--tu)); height: calc(28 * var(--tu)); border-radius: calc(6 * var(--tu)); color: #bdbdc2; }
.tl-rail span:first-child { background: var(--blue); color: #fff; }
.tl-rail svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Project screen ---------- */
.work {
  --cat: var(--blue);
  position: fixed; inset: 0; z-index: 20;
  overflow-x: hidden; overflow-y: auto;
  background: var(--canvas);
  padding: clamp(20px, 3vw, 44px) clamp(20px, 5vw, 88px) 90px;
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path .7s cubic-bezier(.6, 0, .2, 1);
}
.work.is-in { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); }
.work-blob {
  position: fixed; right: -9vw; top: -14vw;
  width: 42vw; height: 42vw; min-width: 280px; min-height: 280px;
  border-radius: 46% 54% 40% 60% / 56% 42% 58% 44%;
  background: var(--cat); opacity: .95; pointer-events: none;
  transition: background .4s; animation: bob 11s ease-in-out infinite;
}
.work-top { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.back { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; transition: transform .3s var(--spring); }
.back:hover { transform: translateX(-4px); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 99px; background: #fff; box-shadow: 0 2px 10px rgba(23, 23, 23, .08); }
.tabs a { padding: 9px 16px; border-radius: 99px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }
.tabs a:hover { background: var(--canvas); }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.work-head { position: relative; margin: clamp(40px, 7vw, 90px) 0 clamp(32px, 4vw, 56px); max-width: 960px; }
.work-head h2 { margin: 0; font-weight: 900; font-size: clamp(48px, 8.4vw, 136px); line-height: .98; letter-spacing: -.025em; }
.work-head h2 i { display: inline-block; width: .19em; height: .19em; margin-left: .03em; border-radius: 50%; background: var(--blue); }
.work-head p { margin: 18px 0 0; font-size: clamp(17px, 1.6vw, 24px); color: var(--grey); }
.grid { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(26px, 3vw, 46px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.tile { --tilt: -1.4deg; transform: rotate(var(--tilt)); transition: transform .4s var(--spring); }
.grid li:nth-child(3n + 2) .tile { --tilt: 1.1deg; margin-top: 18px; }
.grid li:nth-child(3n) .tile { --tilt: -.6deg; }
.tile { display: block; width: 100%; text-align: left; }
button.tile:hover, button.tile:focus-visible { transform: rotate(0) translateY(-6px); }
.tile-frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); border: 8px solid #fff; border-radius: 6px; box-shadow: 0 10px 28px rgba(23, 23, 23, .18); }
.tile-frame img { width: 100%; height: 100%; object-fit: cover; }
.tile-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px; display: grid; place-items: center; border-radius: 50%; background: #fff; transition: transform .35s var(--spring); }
.tile-play svg { width: 42%; height: 42%; fill: var(--ink); }
button.tile:hover .tile-play { transform: scale(1.18); }
.tile-tape { position: absolute; left: 50%; top: -14px; width: 88px; margin-left: -44px; z-index: 2; transform: rotate(-3deg); pointer-events: none; }
.tile-wrap { position: relative; display: block; }
.tile-title { display: block; margin-top: 14px; font-weight: 700; font-size: 19px; }
.tile-type { display: block; margin-top: 3px; color: var(--grey); font-size: 15px; line-height: 1.45; }
.tile-badge {
  position: absolute; left: 12px; top: 14px; z-index: 1;
  padding: .04em .55em .1em;
  font-family: Caveat, cursive; font-weight: 700; font-size: 22px; line-height: 1.05;
  color: var(--ink); background: var(--yellow); border-radius: .2em;
  box-shadow: 0 2px 6px rgba(23, 23, 23, .25);
  transform: rotate(-4deg);
}
.tile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tile-tags span { padding: 4px 11px; border-radius: 99px; background: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 1px 4px rgba(23, 23, 23, .1); }
/* ---------- Under construction screens ---------- */
.building {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
}
.build-scene {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #19191d; border: 8px solid #fff;
  box-shadow: 0 18px 40px rgba(23, 23, 23, .22);
  transform: rotate(-1deg);
}
.build-scene svg { display: block; width: 100%; height: auto; }
.mg-label { font: 600 8.5px Inter, sans-serif; fill: #8a8a90; }
.mg-render { transform-box: fill-box; transform-origin: left; animation: mgRender 6s linear infinite; }
@keyframes mgRender { from { transform: scaleX(0); } 85%, to { transform: scaleX(1); } }
.caution {
  position: absolute; z-index: 2; right: -42px; top: 22px; width: 200px;
  padding: 5px 0; text-align: center; transform: rotate(32deg);
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}
.caution b { display: inline-block; padding: 1px 8px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.build-kicker {
  display: inline-block; margin: 0 0 12px; padding: .04em .5em .1em;
  font-family: Caveat, cursive; font-weight: 700; font-size: 26px; line-height: 1.05;
  background: var(--yellow); border-radius: .2em; transform: rotate(-3deg);
}
.build-copy h3 { margin: 0 0 14px; font-weight: 900; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -.02em; }
.build-copy p:not(.build-kicker) { margin: 0 0 26px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--grey); max-width: 30em; }
.build-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 99px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px;
  transition: transform .3s var(--spring);
}
.build-cta:hover { transform: translateX(4px); }
.build-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Interaction scene: one 7s loop. Blocks drop in, the cursor flips the toggle, taps the button, the link draws */
.build-scene--light { background: #EEF1FB; }
.ix-label { font: 700 9px Inter, sans-serif; fill: #5d6680; letter-spacing: .04em; text-transform: uppercase; }
.ix-palette rect { fill: #fff; stroke: #c8cfe6; }
.ix-chip { font: 500 9.5px Inter, sans-serif; fill: #171717; }
.ix-btn-text { font: 700 10px Inter, sans-serif; fill: #fff; }
.ix-in { transform-box: fill-box; transform-origin: center; animation: ixIn 7s calc(var(--i) * .25s) infinite both; }
@keyframes ixIn { 0% { opacity: 0; transform: translateY(8px) scale(.94); } 8%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
.ix-track { animation: ixTrack 7s infinite; }
@keyframes ixTrack { 0%, 38% { fill: #d6d6d0; } 41%, 92% { fill: #54D8C5; } 100% { fill: #d6d6d0; } }
.ix-knob { animation: ixKnob 7s infinite; }
@keyframes ixKnob { 0%, 38% { transform: translateX(0); } 42%, 92% { transform: translateX(10px); } 100% { transform: translateX(0); } }
.ix-btn { transform-box: fill-box; transform-origin: center; animation: ixBtn 7s infinite; }
@keyframes ixBtn { 0%, 55% { fill: #2165FF; transform: none; } 57% { fill: #1747b8; transform: scale(.93); } 61%, 100% { fill: #2165FF; transform: none; } }
.ix-noodle { stroke-dasharray: 1; animation: ixNoodle 7s infinite; }
@keyframes ixNoodle { 0%, 60% { stroke-dashoffset: 1; opacity: 1; } 72%, 90% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.ix-next { animation: ixNext 7s infinite; }
@keyframes ixNext { 0%, 70% { opacity: .3; } 75%, 90% { opacity: 1; } 100% { opacity: .3; } }
.ix-cursor { animation: ixCursor 7s infinite; }
@keyframes ixCursor {
  0%, 18% { transform: translate(380px, 252px); opacity: 0; }
  22% { opacity: 1; }
  35%, 40% { transform: translate(232px, 170px); }
  37% { transform: translate(232px, 170px) scale(.85); }
  52%, 90% { transform: translate(206px, 208px); opacity: 1; }
  57% { transform: translate(206px, 208px) scale(.85); }
  97%, 100% { transform: translate(380px, 252px); opacity: 0; }
}

@media (max-width: 820px) {
  .building { grid-template-columns: 1fr; }
}

.tile--empty { color: var(--grey); }
.tile--empty .tile-frame { background: transparent; border: 2px dashed #bcb8ad; box-shadow: none; display: grid; place-items: center; font-family: Caveat, cursive; font-size: 28px; font-weight: 600; color: #8b877c; }

/* ---------- About pop-up ---------- */
dialog { border: 0; padding: 0; background: transparent; color: inherit; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; }
dialog[open] { display: grid; }
dialog::backdrop { background: rgba(23, 23, 23, .52); backdrop-filter: blur(5px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.about { place-items: start center; }
.hanger { position: relative; width: min(760px, calc(100vw - 32px)); margin-top: clamp(36px, 8vh, 80px); }
.hanger-tape { position: absolute; left: 50%; top: -34px; width: 150px; margin-left: -75px; z-index: 3; transform: rotate(-2deg); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18)); }
.about-card {
  position: relative;
  display: grid; grid-template-columns: 230px 1fr; gap: 34px;
  max-height: calc(100dvh - clamp(36px, 8vh, 80px) - 40px); overflow-y: auto;
  padding: 44px 40px 36px;
  background: var(--canvas);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .4);
  transform-origin: 50% -6px;
  animation: hangDrop 1.5s cubic-bezier(.3, .7, .4, 1) both, hangSway 5.2s ease-in-out 1.5s infinite;
}
.about[data-closing] .about-card { animation: hangOff .32s ease-in forwards; }
.about[data-closing] .hanger-tape { animation: fadeOut .2s forwards; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes hangDrop {
  0% { transform: translateY(-115vh) rotate(-7deg); }
  34% { transform: translateY(0) rotate(5deg); }
  52% { transform: rotate(-3.4deg); }
  70% { transform: rotate(2.2deg); }
  86% { transform: rotate(-1.8deg); }
  100% { transform: rotate(1.5deg); }
}
@keyframes hangSway { 0%, 100% { transform: rotate(1.5deg); } 50% { transform: rotate(-1.5deg); } }
@keyframes hangOff { to { transform: translateY(100vh) rotate(16deg); } }
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 26%; border: 8px solid #fff; box-shadow: 0 6px 16px rgba(23, 23, 23, .22); transform: rotate(-3deg); }
.about-kicker { margin: 0 0 2px; font-family: Caveat, cursive; font-weight: 700; font-size: 30px; color: var(--blue); transform: rotate(-2deg); transform-origin: left; }
.about-card h2 { margin: 0 0 16px; font-weight: 900; font-size: clamp(36px, 5vw, 50px); line-height: 1; letter-spacing: -.02em; }
.about-card h2 i { display: inline-block; width: .19em; height: .19em; margin-left: .03em; border-radius: 50%; background: var(--blue); }
.about-card p.bio { margin: 0 0 12px; font-size: 16.5px; line-height: 1.55; color: #3d3d3b; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 99px; background: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 1px 5px rgba(23, 23, 23, .08); }
.chips i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.about-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.about-links a { color: var(--ink); font-weight: 700; font-size: 15px; text-underline-offset: 4px; }
.about-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; z-index: 2; }
.about-close:hover { background: rgba(23, 23, 23, .08); }
.about-close svg, .player-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ---------- Resume viewer: the sheet flies up from where the paper floats ---------- */
.resume-view { place-items: center; padding: 18px 16px 0; }
.resume-sheet {
  display: grid; grid-template-rows: auto 1fr;
  width: min(900px, 100%); height: calc(100dvh - 18px);
  background: #fff; border-radius: 12px 12px 0 0; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  transform-origin: 20% 100%;
  animation: sheetIn .6s var(--spring);
}
.resume-view[data-closing] .resume-sheet { animation: sheetOut .3s ease-in forwards; }
@keyframes sheetIn { from { transform: translate(-22%, 70%) rotate(-9deg) scale(.5); opacity: 0; } }
@keyframes sheetOut { to { transform: translate(-22%, 80%) rotate(-9deg) scale(.5); opacity: 0; } }
.resume-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid #ecebe6; background: var(--canvas); }
.resume-bar b { margin-right: auto; font-family: Caveat, cursive; font-size: 26px; line-height: 1; }
.resume-dl { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
.resume-dl:hover { background: var(--blue); }
.resume-dl svg, .resume-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.resume-close { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; }
.resume-close:hover { background: rgba(23, 23, 23, .08); }
#resumeFrame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }

/* ---------- Player ---------- */
.player { place-items: center; padding: 16px; }
.player-box { width: min(1180px, 100%, calc((100dvh - 110px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); animation: playerIn .4s var(--spring); }
.player-box iframe, .player-box video { width: 100%; height: 100%; border: 0; display: block; }
.player-box--tall { width: min(420px, 100%); height: min(calc(100dvh - 96px), 760px); aspect-ratio: auto; background: #fff; }
.ig-cover {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px;
  color: #fff;
  background: linear-gradient(135deg, #FEDA75, #FA7E1E 25%, #D62976 52%, #962FBF 76%, #4F5BD5);
}
.ig-cover svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ig-cover b { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.tile-frame:has(.ig-cover) .tile-play { top: auto; bottom: 14px; left: auto; right: 14px; margin: 0; width: 46px; height: 46px; }
@keyframes playerIn { from { transform: scale(.9); opacity: 0; } }
.player-close { position: fixed; right: 18px; top: 18px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); z-index: 2; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 40;
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 99px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap;
  transform: translate(-50%, 90px); opacity: 0; pointer-events: none;
  transition: transform .4s var(--spring), opacity .2s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Page-load entrance ---------- */
.hello, .line-1, .ve-line, .tagline, .reel { animation: rise .8s var(--swift) both; }
.line-1 { animation-delay: .08s; }
.ve-line { animation-delay: .16s; }
.tagline { animation-delay: .26s; }
.reel { animation-delay: .34s; }
.bag-zone, .resume, .tool-zone { animation: dropIn .9s .1s var(--spring) both; }
.bigword { animation: fade .8s .3s both; }
@keyframes rise { from { opacity: 0; translate: 0 calc(26 * var(--u)); } }
@keyframes dropIn { from { opacity: 0; translate: 0 calc(-50 * var(--u)); } }

/* ---------- Phones, phones held sideways, and portrait tablets: same pieces, stacked in one column.
   The column grows with the screen but stops at 1.4x phone size, so tablets get a centred column
   instead of giant stickers, and a sideways phone scrolls instead of shrinking the text to nothing. ---------- */
@media (max-width: 820px), (max-aspect-ratio: 1/1), (max-height: 500px) {
  :root { --u: min(calc(100vw / 430), 1.4px); }
  .home { position: relative; inset: auto; display: block; min-height: calc(1200 * var(--u)); }
  @media (max-height: 500px) and (min-aspect-ratio: 1/1) { :root { --u: min(calc(100vw / 430), 1.05px); } }
  .stage { width: calc(430 * var(--u)); height: calc(1200 * var(--u)); margin: 0 auto; }
  .tool-zone { --cw: calc(186 * var(--u)); left: calc(29 * var(--u)); top: calc(925 * var(--u)); }
  #wordTools { font-size: calc(40 * var(--u)); left: calc(318 * var(--u)); top: calc(1040 * var(--u)); }
  #arrowTools { left: calc(312 * var(--u)); top: calc(1006 * var(--u)); width: calc(34 * var(--u)); height: calc(26 * var(--u)); }
  .corner { width: calc(170 * var(--u)); height: calc(232 * var(--u)); }

  .hello { left: calc(26 * var(--u)); top: calc(26 * var(--u)); font-size: calc(36 * var(--u)); }
  .hand { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
  .hello-arrow { width: calc(42 * var(--u)); height: calc(46 * var(--u)); }
  .hero-text { left: calc(26 * var(--u)); top: calc(84 * var(--u)); }
  .line-1 { font-size: calc(50 * var(--u)); }
  .ve { font-size: calc(62 * var(--u)); --tu: calc(380 / 858 * var(--u)); }
  .tl { left: calc(-14 * var(--u)); top: calc(-6 * var(--u)); }
  .tagline { font-size: calc(17 * var(--u)); margin: calc(14 * var(--u)) 0; }
  .reel-disc { width: calc(54 * var(--u)); height: calc(54 * var(--u)); }
  .reel-text b { font-size: calc(16 * var(--u)); }
  .reel-text small { font-size: calc(14 * var(--u)); }

  .bag-zone { --bw: calc(250 * var(--u)); --spread: .8; left: calc(90 * var(--u)); top: calc(390 * var(--u)); }
  .card { --w: calc(.47 * var(--bw)); }
  .sun { left: calc(275 * var(--u)); top: calc(505 * var(--u)); width: calc(88 * var(--u)); height: calc(88 * var(--u)); }
  #wordWork { font-size: calc(46 * var(--u)); left: calc(62 * var(--u)); top: calc(608 * var(--u)); }
  #hintWork { font-size: calc(19 * var(--u)); left: calc(74 * var(--u)); top: calc(664 * var(--u)); }
  #arrowWork { left: calc(22 * var(--u)); top: calc(570 * var(--u)); width: calc(38 * var(--u)); height: calc(90 * var(--u)); }

  .resume { left: calc(20 * var(--u)); top: calc(695 * var(--u)); width: calc(170 * var(--u)); height: calc(217 * var(--u)); }
  .photo { left: calc(245 * var(--u)); top: calc(722 * var(--u)); width: calc(128 * var(--u)); height: calc(166 * var(--u)); }
  .tape-top { width: calc(46 * var(--u)); right: calc(-20 * var(--u)); }
  .tape-bottom { width: calc(30 * var(--u)); left: calc(-12 * var(--u)); }
  #wordAbout { font-size: calc(46 * var(--u)); left: calc(218 * var(--u)); top: calc(668 * var(--u)); }
  #scribble { left: calc(205 * var(--u)); top: calc(700 * var(--u)); width: calc(210 * var(--u)); height: calc(210 * var(--u)); }

  .about-card { grid-template-columns: 1fr; gap: 18px; padding: 40px 22px 26px; }
  .about-photo { width: 56%; justify-self: center; }
  .player-box { width: min(100%, calc((100dvh - 90px) * 16 / 9)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
