/* ==========================================================================
   Shraddheya Athawale, portfolio v4
   Design basis: the 1560px Figma frame. Content column = 1080px (3 x 360).
   --s = min(1, viewport / 1560), set by script.js. Hero and footer are
   1560px-wide "stages" scaled by --s; the rest uses --s directly.
   ========================================================================== */

:root {
  --s: 1;
  --col: calc(1080px * var(--s));
  --sub: calc(360px * var(--s));
  --u: calc(1px * var(--s));               /* one design pixel */

  --paper: #fafafa;
  --panel: #fafafa;
  --white: #ffffff;
  --ink: #17171c;
  --ink-2: #4b505a;
  --ink-3: #7b7f88;
  --line: #e3e3e8;
  --line-2: #d9d9de;
  --tag: #e3e3e8;
  --accent: #f05a28;
  --co-bg: #fff4c2;
  --co-ink: #b8930b;
  --mint: #71cb9d;
  --ink-blue: #4d6dae;

  --serif: "Libre Baskerville", "Iowan Old Style", Georgia, serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --sans: "Geist", "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Geist Mono", Menlo, Consolas, monospace;
  --geist-mono: "Geist Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --grotesk: "Space Grotesk", "Geist", system-ui, sans-serif;

  --hatch: repeating-linear-gradient(135deg, transparent 0 7px, rgba(23, 23, 28, 0.06) 7px 8px);
  --spring: cubic-bezier(.2, .9, .25, 1.2);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;               /* propagates to the viewport, so sticky still works */
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink-blue); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Page frame: the column plus two 50px hatched strips beside it
   -------------------------------------------------------------------------- */
.page { padding: 0 calc(20px * var(--s)); }
.frame { position: relative; background: var(--panel); }
.frame::before, .frame::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: calc(50px * var(--s));
  background-image: var(--hatch);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  pointer-events: none;
}
.frame::before { left: calc(50% - var(--col) / 2 - 50px * var(--s)); }
.frame::after  { left: calc(50% + var(--col) / 2); }

.col {
  position: relative;
  width: var(--col);
  margin-inline: auto;
  background: var(--panel);
}
.section { position: relative; z-index: 1; }
.col::before, .col::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--line); opacity: .6; pointer-events: none; z-index: 0;
}
.col::before { left: calc(100% / 3); }
.col::after  { left: calc(200% / 3); }
.col > * { position: relative; z-index: 1; }

.dot {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #eaeaec;
  box-shadow: 0 0 0 2px rgba(17, 17, 19, 0.3);
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}
.dot--tl { left: 0; top: 0; }
.dot--tr { left: 100%; top: 0; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1.92px;
  color: var(--ink);
}
.hand {
  margin-top: 6px;
  font-family: var(--hand);
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: -1px;
  color: var(--ink-2);
  opacity: 0.5;
}
.label {
  display: inline-block;
  justify-self: start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
}
.tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; }
.tags li {
  display: inline-flex; align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 12px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--tag);
  padding: 5px 8px 4px;
  border-radius: 2px;
  transition: background .2s ease, color .2s ease, transform .3s var(--spring);
}
.tags .tag--co { background: var(--co-bg); color: var(--co-ink); }

/* --------------------------------------------------------------------------
   Dragging (both cutting mats)
   -------------------------------------------------------------------------- */
[data-drag] {
  cursor: grab;
  translate: var(--dx, 0px) var(--dy, 0px);
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  transition: scale .25s var(--spring), filter .25s ease;
}
[data-drag] img { -webkit-user-drag: none; pointer-events: none; }
[data-drag].is-dragging {
  cursor: grabbing;
  scale: 1.06;
  filter: drop-shadow(0 26px 24px rgba(0, 0, 0, .32)) !important;
  transition: scale .2s var(--spring), filter .2s ease;
}
[data-drag].is-pressing { scale: .97; }
body.is-dragging-something, body.is-dragging-something * { cursor: grabbing !important; }

/* --------------------------------------------------------------------------
   HERO: 1560 x 718 stage scaled by --s
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  margin-inline: calc(-20px * var(--s));
  height: calc(718px * var(--s));
  overflow: hidden;
}
.hero__stage {
  position: absolute;
  left: 50%; top: 0;
  width: 1560px; height: 718px;
  margin-left: -780px;
  transform: scale(var(--s));
  transform-origin: top center;
}
.hero__grid { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.vline { position: absolute; top: 246px; bottom: 0; width: 1px; background: var(--line); }
.vline--1 { left: 240px; }  .vline--2 { left: 600px; }  .vline--3 { left: 960px; }  .vline--4 { left: 1320px; }
.vline--2, .vline--3 { opacity: .6; }
.hline { position: absolute; left: 240px; width: 1080px; height: 1px; background: var(--line); }
.hline--mid { top: 246px; }
.hline--meta { top: 672px; }
.hline--bottom { top: 716px; left: 0; width: 1560px; }
.ruler {
  position: absolute;
  left: 214px; top: 356px;
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--mono); font-size: 8px; color: #b8b8bf;
}
.ruler span { position: relative; display: block; writing-mode: vertical-rl; transform: rotate(180deg); padding-top: 10px; line-height: 1; }
.ruler span::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 6px; background: #c9c9ce; }

/* The collage is drawn 6% larger than the Figma frame, anchored top-centre. */
.collage {
  position: absolute;
  left: 0; top: 0; width: 1560px; height: 460px;
  scale: 1.06;
  transform-origin: 780px 0;
  z-index: 2;
}
.collage > * { position: absolute; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
.c-mat     { left: 743.5px; top: -112px; width: 1114px; height: auto; --r: -3.7deg; max-width: none; pointer-events: none; z-index: 0; filter: drop-shadow(0 12px 16px rgba(0,0,0,.26)) drop-shadow(0 2px 3px rgba(0,0,0,.14)); }
.c-coffee  { left: 215px; top: 108px; width: 330px; height: 330px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.25)) drop-shadow(6px 4px 10px rgba(0,0,0,.12)); }
.c-coaster { width: 100%; height: 100%; }
.c-sticky  { left: 414px;  top: 130px; width: 215px; --r: -4deg; filter: drop-shadow(0 8px 10px rgba(0,0,0,.22)); transition: transform .4s var(--spring), scale .25s var(--spring), filter .25s ease; }
.c-sticky:hover { transform: translate(-50%, -54%) rotate(-1deg); }
.c-case    { left: 577px;  top: 56px;  width: 195px; --r: -12deg; filter: drop-shadow(0 10px 12px rgba(0,0,0,.25)); }
.c-pods    { left: 882px;  top: 112px; width: 235px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.22)); }
.c-claude  { left: 684px;  top: 162px; width: 98px; }
.c-pen     { left: 1050px; top: 150px; width: 186px; z-index: 2; filter: drop-shadow(0 10px 10px rgba(0,0,0,.3)); }
.c-notes   { left: 1166px; top: 152px; width: 189px; aspect-ratio: 1229 / 1737; --r: 23.6deg; z-index: 1; }   /* parallel to the pen, tucked under it */
/* his two drawings; a click shuffles which one is on top.
   Resting pose (his mock, 20 Oct): Work Thoughts upright on top, the manga page
   behind it turned 17deg clockwise and nudged right, its stamp label out top-right. */
.c-notes img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .55s var(--spring); }
.c-notes__front { z-index: 2; transform: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.22)); }
.c-notes__back  { z-index: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
/* the manga image carries its stamp label above the page, so it is taller than the sheet;
   it turns around the centre of the page, not the centre of the image */
.c-notes img.c-notes__back { inset: auto; left: 0; top: -24.2%; width: 105.6%; height: auto; transform-origin: 47.4% 59.8%; transform: translate(5.8%, 0) rotate(17deg); }
.c-notes.is-flipped img.c-notes__back { z-index: 2; transform: translate(0, 13%); }          /* manga on top: lowered so its label stays on the page */
.c-notes.is-flipped .c-notes__front { z-index: 1; transform: translate(6.1%, 0) rotate(17deg); }
.c-notes.is-lift .c-notes__front { transform: translate(-52%, 10%) rotate(-9deg); transition-duration: .26s; transition-timing-function: var(--ease); }
.c-notes.is-flipped.is-lift img.c-notes__back { transform: translate(-50%, 21%) rotate(-9deg); transition-duration: .26s; transition-timing-function: var(--ease); }
.c-notes.is-flipped.is-lift .c-notes__front { transform: translate(6.1%, 0) rotate(17deg); }
@media (hover: hover) {
  .c-notes:not(.is-lift):not(.is-flipped):hover img.c-notes__back { transform: translate(9%, -1%) rotate(21deg); }
  .c-notes.is-flipped:not(.is-lift):hover .c-notes__front { transform: translate(9.5%, -1%) rotate(21deg); }
}
.c-figma   { left: 1262px; top: 268px; width: 106px; z-index: 3; }
.c-gpt     { left: 272px;  top: 308px; width: 110px; }
.sticker { transition: transform .45s var(--spring), scale .25s var(--spring), filter .25s ease; }
.collage .sticker:hover { transform: translate(-50%, -50%) rotate(calc(var(--r, 0deg) + 8deg)) scale(1.12); }


/* ---- CSS coffee (cup + handle), ported from coffee-for-you ---------------- */
/* --v stands in for 1vmin of the original (plate was 50vmin). */
.coffee {
  --v: 6.4px;
  position: absolute;
  left: 50%; top: 49%;
  width: calc(50 * var(--v)); height: calc(50 * var(--v));
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  transition: transform .5s var(--spring);
}
.c-coffee:hover .coffee { transform: translate(-50%, -50%) rotate(-8deg) scale(1.03); }
.coffee__cup {
  width: 65%; height: 65%;
  border-radius: 50%;
  background: #fff;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    calc(-2 * var(--v)) calc(2 * var(--v)) calc(5 * var(--v)) calc(-2 * var(--v)) rgba(0,0,0,.5),
    inset 0 0 calc(.4 * var(--v)) calc(.15 * var(--v)) #ccc,
    inset 0 0 0 calc(.5 * var(--v)) #fafafa;
  z-index: 1;
}
.coffee__handle {
  width: 9%; height: 21%;
  background: #fff;
  position: absolute;
  left: 70%; top: 63%;
  transform: rotate(-43deg);
  border-radius: var(--v);
  box-shadow:
    calc(-2 * var(--v)) calc(-1 * var(--v)) calc(2 * var(--v)) 0 rgba(37,37,37,.1),
    0 0 0 calc(.1 * var(--v)) rgba(102,102,102,.1),
    inset calc(-1 * var(--v)) 0 calc(2 * var(--v)) calc(.1 * var(--v)) #fff,
    inset 0 0 calc(.5 * var(--v)) calc(.5 * var(--v)) #bbb,
    inset 0 0 calc(10 * var(--v)) calc(.1 * var(--v)) rgba(195,195,195,.2);
  transition: transform .5s var(--spring);
}
.c-coffee:hover .coffee__handle { transform: rotate(-47deg); }
.coffee__inner {
  width: 88%; height: 88%;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 calc(.3 * var(--v)) 0 #000, 0 0 calc(.4 * var(--v)) calc(1.2 * var(--v)) #dedede, inset 0 0 calc(.4 * var(--v)) calc(.1 * var(--v)) rgba(0,0,0,.5);
  z-index: 1;
}
.coffee__bg {
  width: 88%; height: 88%;
  border-radius: 50%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(45deg, #35210d 0%, #231105 100%);
  overflow: hidden;
}
.foamWrapper { filter: url("#goo") drop-shadow(0 0 3px #b37a3c); width: 100%; height: 100%; position: absolute; backface-visibility: hidden; }
.foam {
  background: #f8c99d; width: 10%; height: 40%; border-radius: 50%; position: absolute;
  left: -3%; top: 22%; transform: rotate(21deg);
  filter: url("#scatter");
  box-shadow: inset 0 0 calc(.1 * var(--v)) calc(.2 * var(--v)) rgba(53,33,13,.2);
}
.f2  { top: -7%;  left: 14%; transform: rotate(53deg);  width: 6%; }
.f3  { top: -21%; left: 43%; transform: rotate(75deg); }
.f4  { top: -20%; left: 46%; transform: rotate(105deg); }
.f5  { top: -9%;  left: 70%; transform: rotate(122deg); height: 30%; }
.f6  { top: 8%;   left: 98%; transform: rotate(152deg); height: 60%; width: 5%; }
.f7  { top: 20%;  left: 97%; transform: rotate(181deg); height: 60%; width: 5%; }
.f8  { top: 51%;  left: 96%; transform: rotate(211deg); height: 40%; width: 5%; }
.f9  { top: 62%;  left: 70%; transform: rotate(224deg); height: 80%; width: 5%; }
.f10 { top: 72%;  left: 62%; transform: rotate(74deg);  height: 50%; width: 5%; }
.f11 { top: 59%;  left: 51%; transform: rotate(104deg); height: 80%; width: 4%; }
.f12 { top: 44%;  left: 9%;  transform: rotate(124deg); height: 80%; width: 4%; }
.f13 { top: 7%;   left: -6%; transform: rotate(-26deg); height: 80%; width: 4%; }

@keyframes foamMiddleAnimation { 0%,10% { transform: translate(0,0); } 50%,100% { transform: translate(45%,20%); } }
.foamMiddleWrapper { animation: foamMiddleAnimation 10s ease-in-out infinite; will-change: transform; position: absolute; inset: 0; }
/* the middle foam swells in from nothing, drifts, then shrinks into the rim (no pop on restart) */
@keyframes foamMiddleContainerAnimation { 0% { transform: rotate(0) scale(.3); opacity: 0; } 16% { transform: rotate(5deg) scale(1); opacity: 1; } 55%,80% { transform: rotate(30deg) scale(1); opacity: 1; } 100% { transform: rotate(36deg) scale(.5); opacity: 0; } }
.foamMiddleContainer { animation: foamMiddleContainerAnimation 10s ease-in-out infinite; will-change: transform, opacity; position: absolute; inset: 0; }
.foamMiddle {
  background: #f8c99d; width: 13%; height: 18%; border-radius: 50%; position: absolute;
  left: 40%; top: 40%; transform: rotate(21deg);
  filter: url("#scatter");
  box-shadow: inset 0 0 calc(.1 * var(--v)) calc(.2 * var(--v)) rgba(53,33,13,.2);
}
.fm2 { transform: rotate(-49deg); width: 10%; left: 47%; }

@keyframes bm1 { 0% { transform: scale(0) translate(0,0); } 14% { transform: scale(1) translate(0,0); } 35% { transform: scale(1) translate(60%,40%); } 45%,100% { transform: scale(0) translate(60%,40%); } }
@keyframes bm2 { 0% { transform: scale(0) translate(0,0); } 17% { transform: scale(1) translate(0,0); } 39% { transform: scale(1) translate(10%,10%); } 49%,100% { transform: scale(0) translate(10%,10%); } }
@keyframes bm3 { 0% { transform: scale(0) translate(0,0); } 20%,45% { transform: scale(1) translate(0,0); } 55%,100% { transform: scale(0) translate(0,0); } }
.bm1 { left: 50%; top: 48%; width: 7%; height: 7%; animation: bm1 10s ease-in-out infinite; }
.bm2 { left: 44%; top: 40%; width: 6%; height: 7%; animation: bm2 10s ease-in-out infinite; }
.bm3 { left: 41%; top: 49%; width: 7%; height: 8%; animation: bm3 10s ease-in-out infinite; }
.bm4 { left: 51%; top: 45%; width: 2%; height: 2%; transform: rotate(36deg); }

.bubble {
  width: 5%; height: 7%; border-radius: 50%; background: #35210d; position: absolute; top: 40%; left: 2%;
  box-shadow: 0 0 calc(.1 * var(--v)) 0 #35210d, inset 0 0 calc(.5 * var(--v)) calc(.2 * var(--v)) #662e22;
}
.bubble::after, .bubbleSmall::after {
  content: ""; display: block; width: 25%; height: 25%; border-radius: 50%; background: #fff;
  position: absolute; right: 23%; top: 12%; transform: rotate(-20deg);
  box-shadow: 0 0 calc(.3 * var(--v)) 0 #fff;
}
.b2  { left: 5%;  top: 30%; transform: rotate(25deg); }
.b3  { left: 8%;  top: 23%; transform: rotate(39deg);  width: 3%; height: 5%; }
.b4  { left: 94%; top: 43%; transform: rotate(-10deg); width: 5%; height: 7%; }
.b5  { left: 95%; top: 37%; transform: rotate(-17deg); width: 3%; height: 4%; }
.b6  { left: 39%; top: 0;   transform: rotate(76deg);  width: 6%; height: 9%; }
.b7  { left: 60%; top: 1%;  transform: rotate(106deg); width: 4%; height: 7%; }
.b8  { left: 35%; top: 91%; transform: rotate(106deg); width: 4%; height: 7%; }
.b9  { left: 4%;  top: 63%; transform: rotate(-23deg); width: 5%; height: 7%; }
.b10 { left: 2%;  top: 58%; transform: rotate(-18deg); width: 3%; height: 4%; }
.b11 { left: 63%; top: 91%; transform: rotate(72deg);  width: 4%; height: 6%; }
.b12 { left: 31%; top: 3%;  transform: rotate(68deg);  width: 4%; height: 6%; }
.b13 { left: 21%; top: 85%; transform: rotate(118deg); width: 4%; height: 6%; }
.b14 { left: 95%; top: 53%; transform: rotate(373deg); width: 4%; height: 6%; }
.b15 { left: 50%; top: 0;   transform: rotate(96deg);  width: 3%; height: 5%; }
.bubbleSmall {
  width: 1%; height: 2%; border-radius: 50%; background: #35210d; position: absolute; top: 48%; left: 1%;
  box-shadow: 0 0 calc(.1 * var(--v)) 0 #35210d, inset 0 0 calc(.5 * var(--v)) calc(.2 * var(--v)) #662e22;
}
.bubbleSmall::after { opacity: .8; }
.s2 { left: 3%;  top: 37%; height: 1%; }
.s3 { left: 6%;  top: 28%; height: 1%; }
.s4 { left: 96%; top: 35%; height: 1%; }
.s5 { left: 60%; top: 96%; height: 1%; }
.s6 { left: 8%;  top: 72%; height: 1%; }
.coffee__shadow { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(45deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.22) 100%); }
.coffee__glow { width: 80%; height: 80%; border-radius: 50%; position: absolute; z-index: 10;
  background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,.26) 90%, rgba(255,255,255,.9) 100%); }


/* ---- stickers sway, very slowly ----------------------------------------- */
@keyframes sway { 0%, 100% { rotate: -2.2deg; } 50% { rotate: 2.2deg; } }
.sticker, .t-claude, .t-figma, .t-gpt { animation: sway 9s ease-in-out infinite; }
.c-figma, .t-figma { animation-duration: 11s; animation-delay: -3s; }
.c-gpt, .t-gpt { animation-duration: 10s; animation-delay: -6s; }
.sticker--work { animation-duration: 12s; animation-delay: -2s; }
.sticker--exp { animation-duration: 13s; animation-delay: -7s; }
[data-drag].is-dragging { animation-play-state: paused; }

/* ---- headshot stamp ------------------------------------------------------- */
.collage > .headshot {
  left: 757px; top: 258px;
  width: 172px;
  transform: translate(-50%, -50%) rotate(-5deg);
  z-index: 6;
  transition: transform .45s var(--spring), scale .25s var(--spring), filter .25s ease;
}
.collage > .headshot.is-sassy { transform: translate(-50%, -52%) rotate(-2deg) scale(1.06); }
.headshot__stamp { position: relative; aspect-ratio: 480 / 554; filter: drop-shadow(0 12px 14px rgba(0,0,0,.28)); }
.headshot__faces {
  position: absolute;
  left: 13.75%; right: 13.9%; top: 7%; bottom: 18.9%;
  overflow: hidden;
  background: #d8d3cc;
}
.headshot__faces img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .14s ease;
}
.headshot__faces img.is-on { opacity: 1; }
.headshot__border { position: absolute; inset: 0; width: 100%; height: 100%; }
.headshot__clip {
  position: absolute;
  right: -8px; top: -16px;
  width: 52px;
  transform: rotate(14deg);
  transition: transform .4s var(--spring);
}
.headshot:hover .headshot__clip { transform: rotate(4deg) translateY(-3px); }
.headshot__doodles { position: absolute; inset: -40px; pointer-events: none; }
.dd {
  position: absolute; width: 22px; height: 22px;
  fill: var(--accent); stroke: var(--accent);
  opacity: 0; transform: scale(0) rotate(0deg);
}
.dd-1 { left: -14px; top: 26px;  width: 34px; height: 34px; }
.dd-2 { right: -8px; top: 88px;  width: 24px; height: 24px; fill: #2c6fdb; stroke: #2c6fdb; }
.dd-3 { left: 44px;  top: -6px;  width: 56px; height: 28px; stroke: #18915e; fill: none; }
.dd-4 { right: 4px;  bottom: 24px; width: 18px; height: 18px; fill: #f5c400; stroke: #f5c400; }
.dd-5 { right: 54px; top: 2px;   width: 20px; height: 26px; stroke: var(--accent); }
.dd-6 { left: 2px;   bottom: 54px; width: 22px; height: 22px; stroke: #2c6fdb; }
.dd-7 { left: 30px;  bottom: 16px; width: 14px; height: 14px; fill: #18915e; stroke: #18915e; }
@keyframes pop {
  0%   { opacity: 0; transform: scale(0) rotate(-30deg); }
  60%  { opacity: 1; transform: scale(1.25) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes wiggle { 0%,100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.08); } }
.headshot.is-sassy .dd { animation: pop .45s var(--spring) forwards, wiggle 1.6s ease-in-out .5s infinite; }
.headshot.is-sassy .dd-2 { animation-delay: .06s, .56s; }
.headshot.is-sassy .dd-3 { animation-delay: .12s, .62s; }
.headshot.is-sassy .dd-4 { animation-delay: .18s, .68s; }
.headshot.is-sassy .dd-5 { animation-delay: .1s, .6s; }
.headshot.is-sassy .dd-6 { animation-delay: .22s, .72s; }
.headshot.is-sassy .dd-7 { animation-delay: .26s, .76s; }

/* ---- intro text ----------------------------------------------------------- */
.hero__text { position: absolute; left: 240px; top: 404px; width: 1080px; text-align: center; z-index: 1; }
.hero__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 106px;                 /* 20 Oct: 101 → 118, then 10% smaller (desktop only; phones keep their own size below) */
  line-height: 1;
  letter-spacing: -3.1px;
  color: var(--ink);
  text-wrap: balance;
}
.hero__intro {
  margin: 22px auto 0;
  max-width: 660px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
}
/* the intro: hover blurs everything except "designer … who looks deeper than the interface" */
.hero__lede { position: relative; max-width: 660px; margin: 22px auto 0; }
.hero__lede .hero__intro { margin: 0 auto; text-wrap: pretty; transition: color .4s var(--ease), text-shadow .4s var(--ease); }
.hero__intro .squig { text-decoration: underline wavy rgba(232, 87, 62, .6); text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-skip-ink: none; }
/* the key words are always Libre Baskerville italic; on hover they go bold (at .925em, so the width stays put) */
.hl {
  font-family: var(--serif); font-style: italic; font-weight: 400; color: #2a2b30;
  border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease), text-shadow .4s var(--ease);
}
.hl .hl, .hl .squig { font-size: 1em; }
.hero__lede.is-on .hero__intro { color: transparent; text-shadow: 0 0 7px rgba(60, 60, 67, .55); }
.hero__lede.is-on .hero__intro > .hl {
  color: #121212; text-shadow: none; font-weight: 700; font-size: .925em; line-height: 1;
  background-color: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 .14em rgba(255, 255, 255, .92);
}
.hero__lede.is-on .hl .squig { color: #121212; text-shadow: none; text-decoration-color: #e8573e; }
@media (hover: hover) {
  .hero__lede:hover .hero__intro { color: transparent; text-shadow: 0 0 7px rgba(60, 60, 67, .55); }
  .hero__lede:hover .hero__intro > .hl {
    color: #121212; text-shadow: none; font-weight: 700; font-size: .925em; line-height: 1;
    background-color: rgba(255, 255, 255, .92);
    box-shadow: 0 0 0 .14em rgba(255, 255, 255, .92);
  }
  .hero__lede:hover .hl .squig { color: #121212; text-shadow: none; text-decoration-color: #e8573e; }
}
.hero__meta {
  position: absolute;
  left: 240px; top: 672px;
  width: 1080px; height: 44px;
  padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.hero__hint { font-family: var(--hand); font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.flag { text-transform: none; }


/* ---- v4 hero tweaks --------------------------------------------------------- */
.hero__title span {
  display: inline-block;
  padding: 0 .07em .1em;
  background-image: linear-gradient(180deg, #181717 22%, #7E7979 86%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero__place { display: inline-flex; align-items: center; gap: 6px; }
.flag {
  width: 17px; height: 11.5px;
  border-radius: 2.5px;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
  transform: rotate(-4deg);
  transition: transform .4s var(--spring);
}
.hero__place:hover .flag { transform: rotate(6deg) scale(1.25); }

/* hero text eases in on load */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero__text > * { animation: rise 1s var(--ease) both; }
.js .hero__text > :nth-child(2) { animation-delay: .12s; }
.js .hero__text > :nth-child(3) { animation-delay: .22s; }

/* --------------------------------------------------------------------------
   Scroll reveal (only when JS is running)
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--rd, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Smooth scroll is done in JS when it is on, so turn the CSS version off
   -------------------------------------------------------------------------- */
html.has-smooth { scroll-behavior: auto; }

/* --------------------------------------------------------------------------
   Cursor: a dot that turns into a label over things that need one
   -------------------------------------------------------------------------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.cursor.is-visible { opacity: 1; }
.cursor__dot {
  position: absolute; left: -5px; top: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #17171c;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.9);
  transition: transform .3s var(--spring), background-color .2s ease, box-shadow .2s ease;
}
.cursor.is-hover .cursor__dot { transform: scale(2.4); background: rgba(23,23,28,.12); box-shadow: 0 0 0 .6px rgba(23,23,28,.5); }
.cursor.is-down .cursor__dot { transform: scale(.7); }
.cursor.is-hover.is-down .cursor__dot { transform: scale(2); }
.cursor__label {
  position: absolute; left: 0; top: 0;
  padding: 11px 18px 12px;
  border-radius: 999px;
  background: #17171c; color: #fff;
  font: 500 14px/1 var(--sans);
  letter-spacing: -.1px;
  white-space: nowrap;
  box-shadow: 0 12px 26px -10px rgba(0,0,0,.5);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.3);
  transition: transform .4s var(--spring), opacity .2s ease;
}
.cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-label .cursor__dot { transform: scale(0); }
.cursor.is-label.is-down .cursor__label { transform: translate(-50%, -50%) scale(.92); }
.cursor__hand {
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #17171c;
  box-shadow: 0 10px 22px -8px rgba(0,0,0,.5);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.3);
  transition: transform .35s var(--spring), opacity .18s ease;
}
.cursor__hand svg { position: absolute; width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: opacity .12s ease; }
.cursor__closed { opacity: 0; }
.cursor.is-grab .cursor__hand { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-grab .cursor__dot { transform: scale(0); }
.cursor.is-grab.is-down .cursor__hand, body.is-dragging-something .cursor.is-grab .cursor__hand { transform: translate(-50%, -50%) scale(.88); }
.cursor.is-grab.is-down .cursor__open { opacity: 0; }
.cursor.is-grab.is-down .cursor__closed { opacity: 1; }
html.has-cursor, html.has-cursor * { cursor: none !important; }

/* --------------------------------------------------------------------------
   WHAT I DO: lined stamp paper, cards travel along a shallow arc
   -------------------------------------------------------------------------- */
.whatido {
  margin-top: calc(150 * var(--u));
  height: calc(690 * var(--u));
}
.whatido__paper {
  position: absolute;
  left: 50%; top: 0;
  width: calc(856 * var(--u)); height: calc(660 * var(--u));
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
}
.whatido__head { position: absolute; left: 0; right: 0; top: calc(50 * var(--u)); text-align: center; z-index: 2; pointer-events: none; }
.whatido__title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: calc(52 * var(--u)); line-height: calc(58 * var(--u));
  letter-spacing: calc(-2 * var(--u));
  color: var(--ink);
}
.whatido__sub {
  position: absolute; left: 0; right: 0; top: calc(538 * var(--u));
  z-index: 2;
  text-align: center;
  font-family: var(--hand); font-size: calc(40 * var(--u)); line-height: 1;
  letter-spacing: calc(-1 * var(--u));
  color: var(--ink-2);
  pointer-events: none;
}

.carousel {
  position: absolute;
  top: calc(122 * var(--u));
  left: calc(50% - 50vw);
  width: 100vw;
  height: calc(560 * var(--u));
  padding-top: calc(36 * var(--u));
  overflow: hidden;
  z-index: 1;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.carousel.is-dragging { cursor: grabbing; }
.carousel__track {
  display: flex;
  gap: calc(28 * var(--u));
  width: max-content;
  will-change: transform;
}
.svc {
  position: relative;
  flex: 0 0 auto;
  width: calc(var(--cw) * var(--u));
  height: calc(var(--ch) * var(--u));
  border-radius: calc(16 * var(--u));
  box-shadow: 0 calc(12 * var(--u)) calc(22 * var(--u)) rgba(52, 39, 16, .14);
  transform-origin: 50% 50%;
  will-change: translate, rotate;
  transition: transform .55s var(--spring), box-shadow .5s var(--ease);
  isolation: isolate;
  overflow: hidden;
}
.svc__art {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%; max-width: none; object-fit: cover;
  transition: transform .7s var(--ease);
  transform-origin: 50% 70%;
  z-index: -1;
}
.svc__title {
  position: absolute;
  left: calc(var(--tx) * var(--u)); top: calc(var(--ty) * var(--u));
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: calc(var(--tf, 35) * var(--u)); line-height: calc(var(--tl, 38) * var(--u));
  letter-spacing: calc(-.3 * var(--u));
  color: #080c0f;
}
.svc__desc {
  position: absolute;
  left: calc(var(--dx) * var(--u)); top: calc(var(--dy) * var(--u));
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: calc(17 * var(--u)); line-height: calc(20 * var(--u));
  color: #36383b;
  white-space: nowrap;
}
.svc--dark .svc__title { color: #fff; }
.svc--dark .svc__desc { color: rgba(255,255,255,.94); }
.svc:hover {
  transform: translateY(calc(-14 * var(--u))) scale(1.03);
  box-shadow: 0 calc(28 * var(--u)) calc(36 * var(--u)) rgba(52, 39, 16, .22);
}
.svc:hover .svc__art { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   PROJECTS: the in-focus card widens to the strips and its props pop up
   -------------------------------------------------------------------------- */
.section--projects { margin-top: calc(170 * var(--u)); }
.col--plain { background: transparent; }
.col--plain::before, .col--plain::after { display: none; }

.proj-head {                          /* the v3 header: ruled cells, a hatched block on the right */
  position: relative;
  display: grid;
  grid-template-columns: var(--sub) 1fr;
  min-height: 236px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: calc(44 * var(--u));
}
.proj-head::before, .proj-head::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--line);
  pointer-events: none;
}
.proj-head::before { left: calc(100% / 3); }
.proj-head::after  { left: calc(200% / 3); opacity: .7; }
.proj-head__left { position: relative; padding: 92px 16px 22px; }
.proj-head__right {
  position: relative;
  height: 196px;
  background-image: var(--hatch);
  -webkit-mask: linear-gradient(to left, rgba(0,0,0,.9), transparent 85%);
  mask: linear-gradient(to left, rgba(0,0,0,.9), transparent 85%);
}
.proj-head .dot--tl { left: 0; top: 0; }
.proj-head .dot--tr { left: 100%; top: 0; }
.sticker--work, .sticker--exp {
  position: absolute;
  left: -56px; top: -66px;
  width: 172px;
  transform: rotate(-4deg);
  z-index: 2;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.18));
  transition: transform .45s var(--spring);
}
.sticker--work:hover, .sticker--exp:hover { transform: rotate(3deg) scale(1.08); }
.proj-head .h2, .exp .h2 { font-size: 52px; letter-spacing: -2px; }

.proj-list {
  position: relative;
  display: grid;
  gap: calc(120 * var(--u));
  padding-bottom: calc(40 * var(--u));
  --stick: calc(118 * var(--u));
}
.proj {
  position: sticky;
  top: calc(var(--stick) + var(--i, 0) * 20px);
  height: calc(535 * var(--u));
  transform-origin: 50% 40%;
  will-change: transform;
  --f: 0;
}
.proj__card {
  position: relative;
  display: block;
  height: 100%;
  background: var(--white);
  border: 1px solid #eaeaea;
  box-shadow:
    0 0 0 1px rgba(6, 130, 255, var(--f)),
    0 -24px 40px -30px rgba(23, 23, 28, calc(.4 * var(--stacked, 0)));
  transition: border-color .3s ease;
}
.proj:nth-child(n+2) { --stacked: 1; }
/* selection handles on the card in focus, like a selected frame in Figma */
.proj__handles { position: absolute; inset: -1px; pointer-events: none; z-index: 9; opacity: var(--f); }
.proj__handles b {
  position: absolute;
  width: 9px; height: 9px;
  background: #fff;
  border: 1px solid #0682ff;
}
.proj__handles b:nth-child(1) { left: -5px; top: -5px; }
.proj__handles b:nth-child(2) { right: -5px; top: -5px; }
.proj__handles b:nth-child(3) { left: -5px; bottom: -5px; }
.proj__handles b:nth-child(4) { right: -5px; bottom: -5px; }

.proj.is-focus .proj__card { border-color: transparent; }
.proj::after {                       /* dims a card once the next one covers it */
  content: "";
  position: absolute; inset: 0;
  background: #17171c;
  opacity: calc(var(--cover, 0) * .14);
  pointer-events: none;
  z-index: 8;
}

.proj__info {
  position: absolute;
  left: calc(28 * var(--u)); top: calc(22 * var(--u)); bottom: calc(22 * var(--u));
  width: calc(400 * var(--u));
}
.proj__meta {
  display: flex; align-items: center;
  height: calc(28 * var(--u));
  font-size: max(13px, calc(16 * var(--u)));
  color: #63666d;
}
.proj__meta i {
  width: calc(5 * var(--u)); height: calc(5 * var(--u));
  min-width: 4px; min-height: 4px;
  margin: 0 calc(10 * var(--u));
  background: #0682ff;
}
.proj__self {                         /* his "Independent Project" sticky */
  display: inline-block;
  height: calc(40 * var(--u)); min-height: 30px; width: auto; max-width: none;
  margin: calc(-6 * var(--u)) 0 calc(-6 * var(--u)) 2px;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.18));
  transform: rotate(-3deg);
  transition: transform .45s var(--spring);
}
.proj__card:hover .proj__self, .proj.is-focus .proj__self { transform: rotate(-5deg) translateY(-2px); }
.proj__title {
  margin-top: calc(50 * var(--u));
  max-width: calc(380 * var(--u));
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: calc(37 * var(--u)); line-height: calc(41 * var(--u));
  letter-spacing: calc(-.6 * var(--u));
  color: #121212;
}
/* leave room for the lapel pin beside the first lines of the title */
.proj__info:has(.proj__pin) .proj__title::before {
  content: ""; float: right;
  width: calc(112 * var(--u)); height: calc(80 * var(--u));
}
.proj__desc {
  margin-top: calc(14 * var(--u));
  max-width: calc(384 * var(--u));
  font-size: max(14px, calc(16 * var(--u))); line-height: 1.3;
  color: #5d6169;
}
.proj__tags { margin-top: calc(22 * var(--u)); gap: 6px; }
.proj__tags li { font-size: max(10px, calc(11 * var(--u))); padding: calc(6 * var(--u)) calc(9 * var(--u)) calc(5 * var(--u)); background: #efeff1; }
.proj__card:hover .proj__tags li { background: #e5e5ea; }
.proj__stats {                       /* sits right under the copy, so the bottom of the card can breathe */
  position: relative;
  margin-top: calc(42 * var(--u));
  width: calc(366 * var(--u));
  display: grid; grid-template-columns: calc(204 * var(--u)) 1fr;
  padding-top: calc(28 * var(--u));
  border-top: 1px solid #e3e3e8;
}
.proj__stats b {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: calc(43.2 * var(--u)); line-height: 1;
  letter-spacing: calc(-1.26 * var(--u));
  color: #121212;
}
.proj__stats span { display: block; margin-top: calc(4 * var(--u)); font-size: max(13px, calc(16 * var(--u))); line-height: 1.25; color: #5d6169; }
.proj__foot { margin-top: calc(14 * var(--u)); font-size: max(10.5px, calc(11.5 * var(--u))); color: var(--ink-3); }

.proj__pin {
  position: absolute;
  left: calc(260 * var(--u)); top: calc(8 * var(--u));
  width: calc(160 * var(--u)); max-width: none;
  transform: rotate(8deg);
  transition: transform .5s var(--spring);
  z-index: 3;
  pointer-events: none;
}
.proj__card:hover .proj__pin, .proj.is-focus .proj__pin { transform: rotate(-4deg) translateY(calc(-6 * var(--u))) scale(1.05); }
.proj__pin--corner {
  left: auto; top: auto;
  right: calc(-40 * var(--u)); bottom: calc(-46 * var(--u));
  width: calc(144 * var(--u));
  transform: rotate(-10deg);
  z-index: 5;
  filter: drop-shadow(0 calc(8 * var(--u)) calc(10 * var(--u)) rgba(0,0,0,.18));
}
.proj__card:hover .proj__pin--corner, .proj.is-focus .proj__pin--corner { transform: rotate(-2deg) translate(calc(-4 * var(--u)), calc(-6 * var(--u))) scale(1.04); }

.proj__visual {
  position: absolute;
  left: calc(464 * var(--u)); top: calc(24 * var(--u));
  width: calc(595 * var(--u)); height: calc(489 * var(--u));
}
.proj__board {
  position: absolute; inset: 0;
  z-index: 2;
  border-radius: calc(10 * var(--u));
  overflow: hidden;
  /* the hero's cutting mat, drawn in CSS: same green, same texture, same grid size */
  --cell: calc(47.8 * var(--u));
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.05), transparent 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E"),
    linear-gradient(rgba(108,190,146,.42) 1px, transparent 1px) calc(-10 * var(--u)) calc(-10 * var(--u)) / var(--cell) var(--cell),
    linear-gradient(90deg, rgba(108,190,146,.42) 1px, transparent 1px) calc(-10 * var(--u)) calc(-10 * var(--u)) / var(--cell) var(--cell),
    #1c4932;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.18),
    0 calc(18 * var(--u)) calc(30 * var(--u)) calc(-16 * var(--u)) rgba(0,0,0,.32);
}
/* full-bleed thumbnails sit on the mat with a mat border showing all round */
.proj__thumb {
  position: absolute;
  left: calc(24 * var(--u)); top: calc(22 * var(--u));
  width: calc(100% - 48 * var(--u)); height: calc(100% - 44 * var(--u)); max-width: none;
  object-fit: cover; object-position: 50% 50%;
  border-radius: calc(7 * var(--u));
  box-shadow: 0 0 0 1px rgba(0,0,0,.14), 0 calc(8 * var(--u)) calc(18 * var(--u)) calc(-8 * var(--u)) rgba(0,0,0,.5);
  transition: transform .8s var(--ease);
  transform-origin: 50% 100%;
}
.proj__card:hover .proj__thumb { transform: translateY(calc(-4 * var(--u))) scale(1.012); }
.proj__shot {                        /* the PNGs carry their own shadow margin */
  position: absolute;
  left: calc(28 * var(--u)); top: calc(2 * var(--u));
  width: calc(539 * var(--u)); max-width: none;
  transition: transform .8s var(--ease);
  transform-origin: 50% 100%;
}
.proj__shot--photo { left: calc(29 * var(--u)); top: calc(2 * var(--u)); width: calc(537 * var(--u)); }
.proj__shot--wide { left: calc(19 * var(--u)); top: calc(14 * var(--u)); width: auto; height: calc(430 * var(--u)); }
.proj__card:hover .proj__shot { transform: translateY(calc(-4 * var(--u))) scale(1.012); }
.proj__overlay {
  position: absolute;
  left: calc(303 * var(--u)); top: calc(251 * var(--u));
  transform: translate(-50%, -50%);
  font: 600 calc(34.5 * var(--u)) / 1.04 var(--sans);
  letter-spacing: calc(-.9 * var(--u));
  color: #0b0b0c;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transition: transform .8s var(--ease);
}
.proj__card:hover .proj__overlay { transform: translate(-50%, calc(-50% - 4 * var(--u))) scale(1.012); }
.proj__tack {
  position: absolute; top: calc(2 * var(--u));
  width: calc(40 * var(--u)); max-width: none;
  z-index: 3;
  transition: transform .45s var(--spring);
}
.proj__tack--l { left: calc(2 * var(--u)); }
.proj__tack--r { right: calc(2 * var(--u)); transform: scaleX(-1); }
.proj__card:hover .proj__tack--l { transform: translateY(2px) rotate(-6deg); }
.proj__card:hover .proj__tack--r { transform: scaleX(-1) translateY(2px) rotate(-6deg); }

/* the props tucked behind the board */
.proj__peek {
  position: absolute;
  z-index: 1;
  width: calc(362 * var(--u)); max-width: none;
  transform-origin: 50% 100%;
  transition: transform .7s var(--spring);
}
.proj__peek--a { left: calc(13 * var(--u)); top: calc(-73 * var(--u)); transform: rotate(-3deg); }
.proj__peek--b { left: calc(177 * var(--u)); top: calc(-62 * var(--u)); transform: rotate(6.5deg); transition-delay: .04s; }
.proj__peek--blank, .proj__peek--grey { width: calc(335 * var(--u)); }
.proj__peek--blank { left: calc(26 * var(--u)); top: calc(-53 * var(--u)); }
.proj__peek--grey { left: calc(190 * var(--u)); top: calc(-71 * var(--u)); z-index: 0; }
.proj__card:hover .proj__peek--a, .proj.is-focus .proj__peek--a { transform: translate(calc(-4 * var(--u)), calc(-16 * var(--u))) rotate(-4.5deg); }
.proj__card:hover .proj__peek--b, .proj.is-focus .proj__peek--b { transform: translate(calc(6 * var(--u)), calc(-32 * var(--u))) rotate(8deg); }
.proj__card:hover .proj__peek--a { transform: translate(calc(-6 * var(--u)), calc(-24 * var(--u))) rotate(-5deg); }
.proj__card:hover .proj__peek--b { transform: translate(calc(8 * var(--u)), calc(-42 * var(--u))) rotate(9deg); }
.proj__peek--blank, .proj__peek--grey { height: calc(230 * var(--u)); border-radius: calc(12 * var(--u)); }
.proj__peek--blank {
  background: #ececec;
  box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(0,0,0,.14), inset 0 0 0 1px rgba(0,0,0,.04);
}
.proj__peek--blank::before {          /* traffic lights */
  content: "";
  position: absolute; left: calc(16 * var(--u)); top: calc(14 * var(--u));
  width: calc(10 * var(--u)); height: calc(10 * var(--u)); border-radius: 50%;
  background: #ff5f57;
  box-shadow: calc(14 * var(--u)) 0 0 #febc2e, calc(28 * var(--u)) 0 0 #28c840;
}
.proj__peek--blank i { position: absolute; left: calc(8 * var(--u)); right: calc(8 * var(--u)); top: calc(36 * var(--u)); bottom: 0; background: #fff; border-radius: calc(4 * var(--u)) calc(4 * var(--u)) 0 0; }
.proj__peek--blank i { overflow: hidden; }
.proj__peek--blank img, .proj__peek--grey img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; }
.proj__peek--grey { overflow: hidden; }
.proj__peek--grey {
  background: #d6d6d6;
  border: calc(9 * var(--u)) solid #fff;
  box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(0,0,0,.16);
}


@keyframes nudge { 20% { transform: translateX(-6px) rotate(-.4deg); } 45% { transform: translateX(5px) rotate(.3deg); } 70% { transform: translateX(-3px); } 100% { transform: none; } }
.proj__card.is-nudge { animation: nudge .5s var(--ease); }
/* between tablet and laptop the copy keeps its minimum sizes, so pull the stats up a little */
@media (min-width: 901px) and (max-width: 1320px) {
  .proj__title { margin-top: calc(40 * var(--u)); }
  .proj__stats { margin-top: calc(26 * var(--u)); padding-top: calc(20 * var(--u)); }
  .proj__foot { margin-top: calc(10 * var(--u)); }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .proj__title { margin-top: calc(26 * var(--u)); }
  .proj__stats { margin-top: calc(20 * var(--u)); padding-top: calc(16 * var(--u)); }
}
/* touch screens have no cursor label, so a tap on an unfinished case shows a small stamp instead */
@media (hover: none) {
  .proj__card[data-soon] .proj__board::after {
    content: "In progress";
    position: absolute; left: 50%; top: 50%; z-index: 4;
    padding: 7px 14px 8px;
    font: 500 13px/1 var(--sans); letter-spacing: .2px;
    color: #fff; background: #121212; border-radius: 99px;
    transform: translate(-50%, -50%) scale(.8); opacity: 0;
    pointer-events: none;
  }
  .proj__card[data-soon].is-nudge .proj__board::after { animation: soon-stamp 1.8s var(--ease) forwards; }
}
@keyframes soon-stamp { 12%, 78% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }

/* --------------------------------------------------------------------------
   EXPERIENCE
   -------------------------------------------------------------------------- */
.section--exp { margin-top: calc(180 * var(--u)); }
.exp {
  display: grid;
  grid-template-columns: var(--sub) 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dot--tm { left: calc(100% / 3); top: 0; }
.exp__left { position: relative; padding: 118px 16px 24px; }
.exp__left .sticker--exp { left: -40px; top: -14px; width: 154px; }
.exp__range {
  margin-top: 40px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--ink-3);
}
.exp__range i { flex: 0 0 110px; height: 1px; background: var(--line-2); }
.exp__list { padding-top: 12px; border-left: 1px solid var(--line); }
/* every role: big pin, italic serif title, "at Company", date and type top-right */
.job {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 0 22px;
  padding: 26px 16px 28px;
  border-bottom: 1px solid #ececf0;
}
.job:last-child { border-bottom: 0; }
.job__icon { position: relative; width: 104px; height: 104px; align-self: start; margin-top: 2px; }
.job__icon::before {                 /* soft light behind the pin */
  content: ""; position: absolute; inset: -38px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(220, 226, 238, .8), rgba(220, 226, 238, 0));
  pointer-events: none;
}
.job__icon img {
  position: absolute; left: 50%; top: 50%;
  width: 142px; height: 142px; max-width: none;
  transform: translate(-50%, -47%);
}
.job__body { align-self: start; min-width: 0; padding-top: 4px; }
/* title gets the full width (so it stays on one line); date and type sit right of the "at" line */
.job__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "at tags"; column-gap: 16px; align-items: center; }
.job__name { display: contents; }
.job__title { grid-area: title; }
.job__at { grid-area: at; }
.job__head .tags--job { grid-area: tags; }
.job__title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 32px; line-height: 1.12; letter-spacing: -.6px;
  color: #121212;
  text-wrap: balance;
}
.job__at { margin-top: 6px; font-size: 16px; line-height: 1.35; color: #2a2b30; }
.job__desc { margin-top: 12px; font-size: 15px; line-height: 1.5; color: #5d6169; max-width: 600px; }
.tags--job { flex: none; margin-top: 6px; }
.job--mo { padding-bottom: 50px; }
.tags--job li { font-size: 11px; padding: 6px 9px 5px; }
.tags .tag--co { background: #fff3cc; color: #7a4e00; box-shadow: inset 0 0 0 1px #efd48a; }

/* desktop hover: the hovered role's photos deal into the left column as polaroids */
.exp { position: relative; }
.exp__pics { position: absolute; left: 0; top: 0; bottom: 0; width: var(--sub); pointer-events: none; z-index: 6; }
.pstack { position: absolute; left: 0; right: 0; top: var(--y, 0px); }
.pol {
  position: absolute;
  height: auto; max-width: none;
  padding: calc(7 * var(--u));
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 18px 30px -12px rgba(0,0,0,.42);
  opacity: 0;
  transform: translate(calc(-46 * var(--u)), calc(26 * var(--u))) rotate(calc(var(--r) - 9deg)) scale(.9);
  transition: opacity .2s ease, transform .45s var(--ease);
}
.pstack.is-on .pol { opacity: 1; transform: rotate(var(--r)); transition: opacity .3s ease, transform .65s var(--spring); }
.pstack.is-on .pol:nth-child(2) { transition-delay: .07s; }
.pstack.is-on .pol:nth-child(3) { transition-delay: .14s; }
/* layouts, in design pixels */
[data-stack="mo"] .pol:nth-child(1) { --r: -4deg; left: calc(36 * var(--u)); top: 0; width: calc(252 * var(--u)); }
[data-stack="mo"] .pol:nth-child(2) { --r: 3deg;  left: calc(104 * var(--u)); top: calc(172 * var(--u)); width: calc(246 * var(--u)); }
[data-stack="mo"] .pol:nth-child(3) { --r: -5deg; left: calc(44 * var(--u)); top: calc(342 * var(--u)); width: calc(188 * var(--u)); }
[data-stack="candid"] .pol:nth-child(1) { --r: -5deg; left: calc(30 * var(--u)); top: 0; width: calc(168 * var(--u)); }
[data-stack="candid"] .pol:nth-child(2) { --r: 4deg;  left: calc(178 * var(--u)); top: calc(30 * var(--u)); width: calc(168 * var(--u)); }
[data-stack="candid"] .pol:nth-child(3) { --r: -2deg; left: calc(40 * var(--u)); top: calc(252 * var(--u)); width: calc(292 * var(--u)); }
[data-stack="botbakery"] .pol:nth-child(1) { --r: -4deg; left: calc(36 * var(--u)); top: 0; width: calc(250 * var(--u)); }
[data-stack="botbakery"] .pol:nth-child(2) { --r: 4deg;  left: calc(96 * var(--u)); top: calc(158 * var(--u)); width: calc(250 * var(--u)); }
[data-stack="bigslice"] .pol:nth-child(1) { --r: -3deg; left: calc(46 * var(--u)); top: 0; width: calc(270 * var(--u)); }
@media (prefers-reduced-motion: reduce) { .pol { transition: opacity .2s ease !important; } }
/* narrow laptops: the body column gets tight, so the tags drop under the "at" line */
@media (min-width: 901px) and (max-width: 1360px) {
  .job__head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "at" "tags"; }
  .job__head .tags--job { margin-top: 10px; justify-self: start; }
  .job__title { font-size: 28px; }
}

/* present / future: the motto on the same grainy stamp paper as the mO case quote */
.motto { padding: 14px 16px 22px; border-bottom: 1px solid #ececf0; }
.motto__quote {
  position: relative;
  max-width: 640px;
  margin: 0;
  padding: 26px 44px 28px;
  border-radius: 6px;
  background: url(assets/stamp-paper.webp) center / cover;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.05vw, 28px); line-height: 1.3; letter-spacing: -.015em;
  color: #151517;
  transform: rotate(-.6deg);
  transition: transform .5s var(--spring);
}
.motto__quote:hover { transform: rotate(0deg) scale(1.01); }

/* award badges: built from the provided badge SVGs (laurel + type), so the "x 3" never gets clipped.
   Everything is in em off a font size tied to the row width, so the two always sit side by side. */
.awards {
  container-type: inline-size;
  display: flex; gap: 14px;
  margin-top: 18px;
  max-width: 552px;
}
.award {
  --pop: 0;
  position: relative;
  flex: 1 1 0; min-width: 0; max-width: 269px;
  display: flex; align-items: center; gap: .56em;
  height: 3.25em;
  padding: 0 .7em 0 .72em;
  font-size: min(16px, 2.86cqi);
  border-radius: .625em;
  background: #ffeb3d;
  color: #895300;
  box-shadow: 0 1px 1px rgba(137, 83, 0, .08);
  transition: transform .4s var(--spring), box-shadow .3s ease;
  outline: none;
}
.award::before {
  content: ""; position: absolute; inset: .28em;
  border: 1px solid #e4c700; border-radius: .44em;
  pointer-events: none;
}
.award__laurel { flex: none; width: 2.3em; height: 2.2em; fill: #895300; transition: transform .5s var(--spring); }
.award p { display: flex; flex-direction: column; gap: .06em; min-width: 0; }
.award small { font: 600 .625em/1.15 var(--sans); }
.award b { font: 600 .97em/1.15 var(--sans); letter-spacing: -.02em; white-space: nowrap; }
.award:hover, .award:focus-visible { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 12px 20px -12px rgba(137, 83, 0, .55); z-index: 30; }
.award:hover .award__laurel, .award:focus-visible .award__laurel { transform: rotate(-10deg) scale(1.08); }

/* homepage only (case pages keep the yellow for now): black badge, gold type with a slow light sweep */
.exp .award {
  background: linear-gradient(180deg, #202023, #101012);
  color: #e0b356;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.07);
}
.exp .award::before { border-color: rgba(224, 179, 86, .32); }
.exp .award__laurel { fill: url(#gold); }
.exp .award small, .exp .award b {
  background: linear-gradient(100deg, #c08c34 0%, #e9c46e 30%, #fff3c9 42%, #e9c46e 54%, #b9822b 70%, #e7bf63 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gold-sheen 4.5s ease-in-out infinite;
}
.exp .award--rock small, .exp .award--rock b { animation-delay: 1.2s; }
@keyframes gold-sheen { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .exp .award small, .exp .award b { animation: none; background-position: 50% 0; } }
.exp .award:hover, .exp .award:focus-visible { box-shadow: 0 12px 22px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(224,179,86,.35); }
.exp .award:hover small, .exp .award:hover b, .exp .award:focus-visible small, .exp .award:focus-visible b { animation-duration: 1.6s; }

/* the real certificates fan out above the badge on hover */
.award__fan { position: absolute; left: 50%; bottom: calc(100% + 14px); width: 0; height: 0; pointer-events: none; z-index: 30; }
.award__fan img {
  position: absolute; left: 0; bottom: 0;
  width: 150px; max-width: none;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 18px 30px -12px rgba(0,0,0,.35);
  opacity: 0;
  transform: translate(-50%, 34px) rotate(0deg) scale(.4);
  transform-origin: 50% 100%;
  transition: transform .55s var(--spring), opacity .2s ease;
}
.award:hover .award__fan img, .award:focus-visible .award__fan img { opacity: 1; }
.award:hover .award__fan--3 img:nth-child(1), .award:focus-visible .award__fan--3 img:nth-child(1) { transform: translate(calc(-50% - 118px), 10px) rotate(-13deg); }
.award:hover .award__fan--3 img:nth-child(2), .award:focus-visible .award__fan--3 img:nth-child(2) { transform: translate(-50%, -14px) rotate(-1deg); transition-delay: .05s; }
.award:hover .award__fan--3 img:nth-child(3), .award:focus-visible .award__fan--3 img:nth-child(3) { transform: translate(calc(-50% + 118px), 10px) rotate(12deg); transition-delay: .1s; }
.award:hover .award__fan--2 img:nth-child(1), .award:focus-visible .award__fan--2 img:nth-child(1) { transform: translate(calc(-50% - 66px), 0) rotate(-8deg); }
.award:hover .award__fan--2 img:nth-child(2), .award:focus-visible .award__fan--2 img:nth-child(2) { transform: translate(calc(-50% + 66px), -6px) rotate(7deg); transition-delay: .06s; }

/* "hover over me" scribble */
.hover-note {
  position: absolute; right: 26px; bottom: 14px;
  display: inline-flex; align-items: flex-end; gap: 2px;
  font-family: var(--hand); font-weight: 700; font-size: 18.4px; line-height: 1;
  color: #b8bbc1;
  transform: rotate(-4deg);
  pointer-events: none;
}
.hover-note svg { width: 50px; height: 37px; fill: none; stroke: #c3c6cb; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.hover-note__touch { display: none; }
@media (hover: none) { .hover-note__fine { display: none; } .hover-note__touch { display: inline; } }
.js .job--mo.is-in .hover-note svg path:first-child { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw-note .9s .5s var(--ease) forwards; }
.js .job--mo.is-in .hover-note svg path:last-child { opacity: 0; animation: fade-in .2s 1.2s ease forwards; }
@keyframes draw-note { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.job--mo:has(.award:hover) .hover-note { opacity: 0; transition: opacity .2s ease; }

/* --------------------------------------------------------------------------
   FOOTER: a chat in the middle, a messy desk in the corners
   1560 x 1460 stage, scaled by --s, full bleed
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 2;
  margin-top: calc(170px * var(--s));
  margin-left: calc(50% - 50vw);
  width: 100vw;
  height: calc(1460px * var(--s));
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel) 50%, #dae1e8 100%);
}
.footer__stage {
  position: absolute;
  left: 50%; top: 0;
  width: 1560px; height: 1460px;
  margin-left: -780px;
  transform: scale(var(--s));
  transform-origin: top center;
}
.footer__stage > * { position: absolute; }
.t-hatch {
  top: 0; width: 50px; height: 1060px;
  background-image: var(--hatch);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  -webkit-mask: linear-gradient(#000 60%, transparent 100%);
  mask: linear-gradient(#000 60%, transparent 100%);
  pointer-events: none;
}
.t-hatch--l { left: 190px; }
.t-hatch--r { left: 1320px; }
.t-grid { inset: 0; pointer-events: none; z-index: 1; opacity: .75; }
.t-grid > * { position: absolute; }
.t-grid__top { left: 240px; top: 0; width: 1080px; height: 1px; background: var(--line); }
.t-grid__v { top: 0; width: 1px; height: 1120px; background: var(--line);
  -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); }
.t-grid__v--1 { left: 600px; }
.t-grid__v--2 { left: 960px; opacity: .7; }
.t-grid__cell { left: 240px; top: 196px; width: 360px; height: 1px; background: var(--line); }
.t-grid__hatch {
  left: 961px; top: 1px; width: 359px; height: 196px;
  background-image: var(--hatch);
  -webkit-mask: linear-gradient(to left, rgba(0,0,0,.7), transparent 90%);
  mask: linear-gradient(to left, rgba(0,0,0,.7), transparent 90%);
}
.t-head { left: 256px; top: 92px; z-index: 3; }
.t-title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 54px; line-height: 1.1; letter-spacing: -2px;
  color: var(--ink);
}
.t-sub {
  margin-top: 2px;
  font-family: var(--hand); font-size: 34px; line-height: 1; letter-spacing: -.6px;
  color: #a3a6ad;
}

.talk { left: 484px; top: 96px; width: 592px; z-index: 3; display: flex; flex-direction: column; gap: 13.5px; }
.msg { position: relative; display: flex; gap: 12px; }
.msg--out { justify-content: flex-end; }
.msg__b {
  position: relative;
  display: inline-block;
  min-height: 55px;
  padding: 15px 24px 16px;
  border-radius: 28px;
  font: 400 18px/24px var(--sans);
  letter-spacing: -.15px;
  text-align: left;
  box-shadow:
    0 8px 9px -1px rgba(0,0,0,.13),
    inset 0 -2.5px 3px rgba(0,0,0,.28),
    inset 0 2.5px 3px rgba(255,255,255,.4);
}
.msg__b strong { font-weight: 700; }
.msg--out .msg__b { color: #fff; background: url(assets/noise-blue.png) 0 0 / 160px 160px, #2b73e9; }
.msg--in .msg__b { color: #141416; background: url(assets/noise-white.png) 0 0 / 160px 160px, #eef0f3; }
.msg--in .msg__b { box-shadow: 0 8px 9px -1px rgba(0,0,0,.13), inset 0 -2.5px 3px rgba(0,0,0,.18), inset 0 2.5px 3px rgba(255,255,255,.7); }
.msg__b:has(br) { min-width: 291px; white-space: nowrap; border-radius: 30px; }
.msg--tail .msg__b::after {
  content: "";
  position: absolute; bottom: -15px;
  width: 21px; height: 15px;
  background: center / 100% 100% no-repeat;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.1));
}
.msg--out.msg--tail .msg__b::after { right: 11px; background-image: url(assets/tail-blue.png); }
.msg--in.msg--tail .msg__b::after { left: 11px; background-image: url(assets/tail-white.png); }
.emo { display: inline-block; margin-left: 2px; vertical-align: -2px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 20px; line-height: 1; }

/* the bits you can click */
.msg__copy, .msg__social { display: inline-flex; align-items: center; gap: 12px; transition: transform .35s var(--spring), box-shadow .3s ease; }
.msg__copy:hover, .msg__social:hover { transform: translateY(-3px); box-shadow: 0 14px 16px -6px rgba(0,0,0,.16), inset 0 -2.5px 3px rgba(0,0,0,.18), inset 0 2.5px 3px rgba(255,255,255,.7); }
.msg__copy:active, .msg__social:active { transform: translateY(0) scale(.98); }
.msg__icon { flex: none; width: 22px; height: 22px; fill: none; stroke: #8b8f98; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring), opacity .2s; }
.msg__icon--done { position: absolute; right: 24px; stroke: #1f9d55; stroke-width: 2.4; opacity: 0; transform: scale(.4); }
.msg__copy.is-copied .msg__icon--copy { opacity: 0; transform: scale(.4); }
.msg__copy.is-copied .msg__icon--done { opacity: 1; transform: scale(1); }
.msg__toast {
  position: absolute; right: 6px; bottom: calc(100% + 8px);
  padding: 6px 10px 7px; border-radius: 8px;
  background: #17171c; color: #fff;
  font: 500 12.5px/1 var(--sans); font-style: normal;
  white-space: nowrap;
  opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .2s ease, transform .35s var(--spring);
  pointer-events: none;
}
.msg__toast:empty { display: none; }
.msg__copy.is-copied .msg__toast { opacity: 1; transform: none; }
.msg--row { flex-wrap: wrap; }
.msg__social { gap: 12px; padding-right: 20px; }
.msg__social svg { width: 30px; height: 30px; flex: none; }
.msg__social svg.msg__be { width: 33px; height: 21px; }

/* chat arrival: each bubble pops in as you scroll; replies "type" first */
.js .talk .msg__b { opacity: 0; transform: translateY(14px) scale(.86); transition: opacity .35s ease, transform .55s var(--spring), box-shadow .3s ease; }
.js .talk .msg--out .msg__b { transform-origin: 100% 100%; }
.js .talk .msg--in .msg__b { transform-origin: 0 100%; }
.js .talk .msg.is-in .msg__b { opacity: 1; transform: none; }
.msg::before {                         /* typing dots */
  content: "";
  position: absolute; left: 0; top: 0;
  width: 66px; height: 40px; border-radius: 20px;
  background:
    radial-gradient(circle 4px at 20px 50%, #8d9199 98%, transparent) ,
    radial-gradient(circle 4px at 33px 50%, #8d9199 98%, transparent),
    radial-gradient(circle 4px at 46px 50%, #8d9199 98%, transparent),
    #eef0f3;
  box-shadow: 0 6px 8px -2px rgba(0,0,0,.12), inset 0 -2px 3px rgba(0,0,0,.14);
  opacity: 0; transform: scale(.6); transform-origin: 0 100%;
  transition: opacity .2s ease, transform .35s var(--spring);
  pointer-events: none;
}
.msg--out::before { display: none; }
.msg.is-typing::before { opacity: 1; transform: none; animation: typing 1s ease-in-out infinite; }
@keyframes typing { 50% { filter: brightness(.94); } }

/* desk corners */
/* his cutting mat (assets/mat.svg, same file as the hero), at the hero's grid size, lying off the
   bottom-left corner so only its top-right corner and edges show; the keyboard rests on it */
.t-mat {
  left: -898.2px; top: 604.3px; width: 1181px; height: auto; max-width: none;
  z-index: 2; transform: rotate(14deg);
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.26)) drop-shadow(0 2px 3px rgba(0,0,0,.12));
}
.t-keyboard { left: -640px; top: 522px; width: 46em; font-size: 20px; max-width: none; z-index: 4; transform: rotate(12.1deg); filter: drop-shadow(0 18px 20px rgba(0,0,0,.18)); }

/* ---- the keyboard: a Mac-style board in plain HTML/CSS. Keys press when you type
        or click; volume keys switch on a synthesised click sound (off by default). ---- */
.kb {
  --g: .3em;
  display: flex; flex-direction: column; gap: var(--g);
  padding: .8em .85em .85em;
  border-radius: .95em;
  background: linear-gradient(180deg, #eef0f3 0%, #dfe2e7 55%, #d2d6dc 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -2px 3px rgba(0,0,0,.08), 0 1px 1px rgba(0,0,0,.08);
}
.kb__row { display: flex; gap: var(--g); height: 2.6em; }
.kb__row--fn { height: 1.55em; }
.kb__k, .kb__arrows { flex: var(--w) 1 0; min-width: 0; }
.kb__k {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em;
  border-radius: .32em;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
  box-shadow: 0 .09em 0 #c2c5cb, 0 .14em .22em rgba(0,0,0,.14), inset 0 0 0 1px rgba(0,0,0,.03);
  color: #3b3d43;
  font: 500 .62em/1 var(--sans); letter-spacing: .01em;
  cursor: pointer;
  transition: transform .07s ease, box-shadow .07s ease, background-color .07s ease;
  -webkit-tap-highlight-color: transparent;
}
.kb__k > * { pointer-events: none; }
.kb__k .kb__t { font-size: 1.32em; }
.kb__k--two .kb__t { font-size: 1.05em; }
.kb__k--two .kb__b { font-size: 1.15em; }
.kb__k--bl, .kb__k--br { justify-content: flex-end; padding: 0 .7em .55em; }
.kb__k--bl { align-items: flex-start; }
.kb__k--br { align-items: flex-end; }
.kb__k--mod { justify-content: space-between; align-items: flex-end; padding: .5em .55em .45em; }
.kb__k--mod .kb__t { font-size: 1.1em; }
.kb__k--mod .kb__b { font-size: .84em; }
.kb__k--fnkey { align-items: flex-start; justify-content: space-between; padding: .45em .55em; }
.kb__k--fnkey .kb__ico { order: 2; align-self: flex-start; }
.kb__k--fnkey .kb__t { font-size: 1em; align-self: flex-end; }
.kb__k--fn { font-size: .5em; gap: .2em; }
.kb__k--fn .kb__b { font-size: .95em; color: #6a6d74; }
.kb__ico { display: block; width: 1.5em; height: 1.5em; }
.kb__k--fn .kb__ico { width: 1.9em; height: 1.9em; }
.kb__ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.kb__ico svg.fill, .kb__ico .fill { fill: currentColor; stroke: none; }
.kb__k--lock { cursor: default; }
.kb__touch { width: 46%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(180deg, #e9eaee, #dfe1e6); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.kb__arrows { display: flex; gap: var(--g); align-items: flex-end; }
.kb__arrows > .kb__k { flex: 1 1 0; height: 50%; }
.kb__updown { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; gap: .12em; }
.kb__updown .kb__k { flex: 1 1 0; }
.kb__k--arrow .kb__t { font-size: .8em; color: #55585f; }
/* pressed */
.kb__k.is-down {
  transform: translateY(.07em);
  background: linear-gradient(180deg, #f1f2f4 0%, #ebecef 100%);
  box-shadow: 0 .02em 0 #c2c5cb, 0 .04em .08em rgba(0,0,0,.12), inset 0 0 0 1px rgba(0,0,0,.04);
}
/* volume keys: sound toggle */
.kb__k--vol { color: #3b3d43; }
.t-keyboard.is-sound .kb__k--vol { color: #0682ff; }
.t-claude   { left: 70px;   top: 1066px; width: 104px; z-index: 5; }
.t-portrait { left: 196px;  top: 1190px; width: 240px; max-width: none; z-index: 5; transform: rotate(8deg); }
.t-postmark { left: 396px;  top: 1212px; width: 206px; max-width: none; z-index: 4; transform: rotate(-3deg); opacity: .92; }
.t-clip     { width: 64.8px; max-width: none; z-index: 6; }
.t-clip--top   { left: 36.7px; top: 339.4px; }
.t-clip--photo { left: 258.7px; top: 1131.4px; }
.t-binder   { left: 1434.5px; top: 34.7px; width: 132.0px; max-width: none; z-index: 6; }
.t-sign     { left: 687.8px;  top: 1234.0px; width: 176.5px; z-index: 6; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }

/* bottom bar: where, who, what time it is there */
.t-bar {
  left: 441px; top: 1386px; width: 748px; height: 50px;
  z-index: 1;                          /* the very bottom layer: everything else sits on top of it */
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px 0 17px;
  border-top: 1px solid #c4c6cb; border-bottom: 1px solid #c4c6cb;
  color: #707379;
  pointer-events: none;
}
.t-bar::before, .t-bar::after {
  content: ""; position: absolute; bottom: -5px;
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid #a8abb1; background: #e3e7ec;
}
.t-bar::before { left: -5px; }
.t-bar::after { right: -5px; }
.t-bar__place, .t-bar__time { display: inline-flex; align-items: center; gap: 8px; font: 400 13.5px/1 var(--mono); letter-spacing: -.1px; }
.t-bar__copy { font: 500 13.5px/1 var(--grotesk); text-transform: uppercase; letter-spacing: .01em; }
.t-bar .flag { width: 17px; height: 11.5px; transform: none; }

/* resume folder: the front flap swings open and the paper rises */
.t-folder   { left: 1196px; top: 1282px; width: 199px; z-index: 5; display: block; transform: rotate(10deg); }
.t-folder__in { position: relative; display: block; aspect-ratio: 609 / 620; perspective: 700px; }
.t-folder__in > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; transition: transform .55s var(--spring); }
.t-folder__front { transform-origin: 50% 95%; }
.t-folder:hover .t-folder__front, .t-folder:focus-visible .t-folder__front { transform: rotateX(-34deg) translateY(2%); }
.t-folder:hover .t-folder__paper, .t-folder:focus-visible .t-folder__paper { transform: translate(-3%, -13%) rotate(-5deg); }
.t-folder:hover .t-folder__label, .t-folder:focus-visible .t-folder__label { transform: translate(-2%, -14%) rotate(-4deg); transition-delay: .03s; }
.t-folder:hover .t-folder__back, .t-folder:focus-visible .t-folder__back { transform: translateY(-1%); }

.t-mouse    { left: 1349.8px; top: 1220.8px; width: 323.4px; max-width: none; z-index: 6; }
.t-pop      { left: 1348.2px; top: 930px; width: 247.1px; max-width: none; z-index: 8; }
.t-figma    { left: 1338px; top: 858px;  width: 124px; z-index: 9; transform: rotate(-8deg); }
.t-gpt      { left: 1452px; top: 882px;  width: 118px; z-index: 9; transform: rotate(6deg); }
.footer__stage [data-drag]:hover { scale: 1.025; }
.footer__stage [data-drag].is-dragging { scale: 1.06; }

/* --------------------------------------------------------------------------
   DOCK: frosted macOS-style bar, icons magnify toward the cursor
   -------------------------------------------------------------------------- */
.dock {
  --dock-size: 52px;
  position: fixed;
  left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  transform: translateX(-50%);
  transition: transform .5s var(--ease), opacity .4s ease;
  pointer-events: none;
}
.dock.is-tucked { transform: translate(-50%, calc(100% + 30px)); opacity: 0; }
.dock__bar {
  pointer-events: auto;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 7px 9px;
  border-radius: 22px;
  background: rgba(250, 250, 252, .58);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.7),
    0 0 0 1px rgba(23,23,28,.08),
    0 14px 34px -10px rgba(23,23,28,.32);
}
.dock__item {
  --size: var(--dock-size);
  position: relative;
  display: block;
  width: var(--size); height: var(--size);
  transition: width .14s ease-out, height .14s ease-out;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.dock__icon {
  display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.18));
  transform-origin: 50% 100%;
}
.dock__icon img { width: 100%; height: 100%; display: block; -webkit-user-drag: none; }
.dock__icon--face img {
  object-fit: cover; object-position: 50% 18%;
  border-radius: 23%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
  background: #d8d3cc;
}
.dock__icon--face { border-radius: 23%; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.dock__label {
  position: absolute;
  left: 50%; bottom: calc(100% + 12px);
  transform: translate(-50%, 4px);
  padding: 4px 10px 5px;
  border-radius: 7px;
  background: rgba(30, 30, 34, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff;
  font: 500 12.5px/1.2 var(--sans);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .2s var(--ease);
}
.dock__label::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  border: 5px solid transparent; border-top-color: rgba(30,30,34,.78);
  transform: translateX(-50%);
}
.dock__item:hover .dock__label,
.dock__item:focus-visible .dock__label { opacity: 1; transform: translate(-50%, 0); }
.dock__item:focus-visible .dock__icon { outline: 2px solid var(--ink-blue); outline-offset: 3px; border-radius: 24%; }
.dock__dot {
  position: absolute; left: 50%; bottom: -5px;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(23,23,28,.75);
  transform: translateX(-50%) scale(0);
  transition: transform .3s var(--spring);
}
.dock__item.is-active .dock__dot { transform: translateX(-50%) scale(1); }
.dock__sep {
  align-self: stretch;
  width: 1px; margin: 4px 2px;
  background: rgba(23,23,28,.16);
}
@keyframes dock-bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-34%); }
  45% { transform: translateY(0); }
  62% { transform: translateY(-14%); }
  78% { transform: translateY(0); }
}
.dock__item.is-bouncing .dock__icon { animation: dock-bounce .75s cubic-bezier(.3,.7,.4,1); }

@media (max-width: 900px) {
  .dock { --dock-size: 40px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .dock__bar { gap: 7px; padding: 6px 8px; border-radius: 18px; }
  .dock__label { display: none; }
}

/* --------------------------------------------------------------------------
   Responsive: below 900px everything reflows to one column
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --col: calc(100vw - 32px); --sub: 100%; }
  .page { padding: 0 8px; }
  .frame::before, .frame::after { display: none; }

  /* hero: big mat, stamp sits over its bottom edge */
  .hero { height: auto; margin-inline: -8px; }
  .hero__stage { position: relative; left: auto; margin-left: 0; width: 100%; height: auto; transform: none; }
  .hero__grid { display: none; }
  .collage { position: relative; width: 100%; height: 404px; overflow: hidden; scale: none; }
  .collage img { max-width: none; }
  .collage > * { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(.65); }
  .c-mat     { left: 50%; top: -26px; width: 1500px; }
  .c-coffee  { left: 3%; top: 7%; transform: translate(-50%, -50%) scale(1.07); z-index: 3; }
  .c-sticky  { left: 82.5%; top: 52%; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.02); z-index: 2; }
  .c-sticky:hover { transform: translate(-50%, -52%) rotate(-1deg) scale(1.02); }
  .c-case    { left: 90%; top: 8%; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(.97); }
  .c-pods    { left: 80%; top: 13%; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(.92); z-index: 3; }
  .c-claude  { left: 42%; top: 60%; }
  .c-pen     { left: 101%; top: 62%; }
  .c-notes, .c-figma, .c-pen { display: none; }
  .headshot .dd-2 { display: none; }   /* it sat on top of the sticky list */
  .c-gpt     { left: 6%; top: 88%; }
  .collage .sticker:hover { transform: translate(-50%, -50%) rotate(calc(var(--r, 0deg) + 8deg)) scale(.72); }
  .collage > .headshot { left: 48%; top: 290px; width: 162px; transform: translate(-50%, -50%) rotate(-4deg); }
  .collage > .headshot.is-sassy { transform: translate(-50%, -52%) rotate(-1deg) scale(1.05); }
  .hero__text { position: static; width: auto; padding: 14px 16px 0; }
  .hero__title { font-size: clamp(41px, 12.8vw, 65px); letter-spacing: -1.6px; }
  .hero__intro { font-size: 16px; }
  .hero__lede { margin-top: 18px; }
  .hero__meta { position: static; width: auto; margin-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 4px 12px; }
  .hero__hint { order: 3; width: 100%; text-align: center; }

  .h2, .proj-head .h2, .exp .h2 { font-size: 42px; letter-spacing: -1.4px; }
  .hand { font-size: 30px; }

  /* what I do: smaller cards, a tighter arc */
  .whatido { --u: .72px; margin-top: 88px; height: 480px; }
  .whatido__paper { width: calc(100vw - 16px); height: calc((100vw - 16px) * .771); }
  .whatido__head { top: 24px; }
  .whatido__title { font-size: 36px; line-height: 40px; letter-spacing: -1.2px; }
  .carousel { top: 70px; height: 360px; padding-top: 22px; }
  .whatido__sub { top: 430px; font-size: 28px; }

  /* projects: board on top, words below, no stacking */
  .section--projects { margin-top: 96px; }
  .proj-head { grid-template-columns: 1fr; min-height: 0; margin-bottom: 84px; }
  .proj-head::before, .proj-head::after { display: none; }
  .proj-head__left { padding: 84px 16px 22px; }
  .proj-head__right { display: none; }
  .sticker--work, .sticker--exp, .exp__left .sticker--exp { left: -6px; top: -36px; width: 118px; }
  .exp__left .sticker--exp { top: -10px; }
  .proj .proj__pin--corner { left: auto; top: auto; right: -10px; bottom: -18px; width: 63px; }
  .proj-list { gap: 96px; padding-bottom: 0; }
  .proj {
    --u: calc((100vw - 58px) / 595);
    position: relative; top: auto; height: auto;
    transform: none !important;
  }
  .proj::after { display: none; }
  .proj__card { display: flex; flex-direction: column; box-shadow: none; }
  .proj__visual { order: -1; position: relative; left: auto; top: auto; width: auto; height: calc(489 * var(--u)); margin: 12px 12px 0; }
  .proj__board { --cell: 38px; }
  .proj__info { position: relative; left: auto; top: auto; bottom: auto; width: auto; padding: 22px 16px 20px; }
  .proj__meta { height: 28px; font-size: 14px; }
  .proj__meta i { width: 5px; height: 5px; margin: 0 9px; }
  .proj__self { height: 34px; }
  .proj__pin { left: auto; right: 6px; top: 8px; width: 70px; }
  .proj__title { margin-top: 16px; max-width: 86%; font-size: 28px; line-height: 32px; letter-spacing: -.5px; }
  .proj__desc { margin-top: 10px; max-width: none; font-size: 15px; }
  .proj__tags { margin-top: 16px; }
  .proj__tags li { font-size: 10px; padding: 5px 8px 4px; }
  .proj__stats { position: relative; bottom: auto; width: auto; margin-top: 26px; padding-top: 20px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .proj__stats b { font-size: 38px; letter-spacing: -1px; }
  .proj__stats span { margin-top: 4px; font-size: 13.5px; }
  .proj__foot { position: relative; bottom: auto; margin-top: 12px; font-size: 11px; }
  .proj__handles { display: none; }

  /* experience */
  .section--exp { margin-top: 96px; }
  .exp { grid-template-columns: 1fr; }
  .dot--tm { display: none; }
  .exp__left { padding: 92px 16px 20px; }
  .exp__list { padding-top: 0; border-top: 1px solid var(--line); }
  .job { grid-template-columns: 64px 1fr; gap: 0 14px; padding: 20px 12px 22px; }
  .job__icon { width: 64px; height: 64px; }
  .job__icon img { width: 92px; height: 92px; }
  .job__head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tags" "title" "at"; }
  .job__head .tags--job { margin: 0 0 10px; }
  .job--mo { padding-bottom: 22px; }
  .job__title { font-size: 25px; letter-spacing: -.4px; }
  .job__at { margin-top: 4px; font-size: 14.5px; }
  .job__icon::before { inset: -22px; }
  .exp__pics { display: none; }
  .job__desc { margin-top: 10px; font-size: 14.5px; }
  .exp__list { border-left: 0; }
  .motto { padding: 16px 4px 18px; }
  .motto__quote { padding: 24px 30px 26px; font-size: 23px; }
  .awards { flex-direction: column; gap: 10px; margin-top: 14px; }
  .award { flex: none; width: 100%; max-width: 280px; font-size: 15px; }
  .award__fan img { width: 112px; }
  .award:hover .award__fan--3 img:nth-child(1), .award:focus-visible .award__fan--3 img:nth-child(1) { transform: translate(calc(-50% - 84px), 8px) rotate(-12deg); }
  .award:hover .award__fan--3 img:nth-child(3), .award:focus-visible .award__fan--3 img:nth-child(3) { transform: translate(calc(-50% + 84px), 8px) rotate(11deg); }
  .award:hover .award__fan--2 img:nth-child(1), .award:focus-visible .award__fan--2 img:nth-child(1) { transform: translate(calc(-50% - 50px), 0) rotate(-8deg); }
  .award:hover .award__fan--2 img:nth-child(2), .award:focus-visible .award__fan--2 img:nth-child(2) { transform: translate(calc(-50% + 50px), -6px) rotate(7deg); }
  .hover-note { position: static; grid-column: 2; justify-self: start; margin: -6px 0 -4px 6px; font-size: 16px; transform: rotate(-3deg); }
  .hover-note svg { width: 32px; height: 24px; margin-bottom: 5px; }

  /* footer: the chat flows, the desk sits underneath it */
  .footer { margin-top: 96px; height: auto; }
  .footer__stage {
    --m: calc(1px * var(--ms, 1));
    position: relative; left: auto; margin: 0;
    width: 100%; height: auto;
    transform: none;
    padding: 34px 0 calc(640 * var(--m));
  }
  .t-hatch { display: none; }
  .t-grid__v, .t-grid__cell, .t-grid__hatch, .t-grid .dot { display: none; }
  .t-grid__top { left: 16px; right: 16px; width: auto; top: 0; }
  .t-head { position: relative; left: auto; top: auto; width: auto; margin: 0 16px 30px; }
  .talk { position: relative; left: auto; top: auto; width: auto; margin: 0 14px; gap: 10px; }
  .msg__b { min-height: 44px; padding: 11px 17px; border-radius: 22px; font-size: 15px; line-height: 21px; }
  .msg__copy, .msg__social { gap: 8px; }
  .msg__b:has(br) { min-width: 0; border-radius: 24px; }
  .emo { font-size: 17px; }
  .msg--tail .msg__b::after { width: 17px; height: 12px; bottom: -12px; }
  .msg--out.msg--tail .msg__b::after { right: 9px; }
  .msg--in.msg--tail .msg__b::after { left: 9px; }
  .msg--row { gap: 8px; }
  .msg__social { gap: 7px; padding: 11px 12px 11px 14px; font-size: 14px; }
  .msg__social svg { width: 20px; height: 20px; }
  .msg__social svg.msg__be { width: 25px; height: 16px; }
  .msg__icon { width: 19px; height: 19px; }
  .msg__icon--done { right: 17px; }
  .msg::before { width: 58px; height: 34px; }

  /* desk bits live on the edges, half off the screen */
  .footer__stage > [data-drag] { top: auto; }
  .t-binder   { top: calc(-11.9 * var(--m)) !important; bottom: auto; left: auto; right: calc(-33.4 * var(--m)); width: calc(77.9 * var(--m)); }
  .t-clip--top { display: block; top: calc(-26.3 * var(--m)) !important; bottom: auto; left: calc(-21.5 * var(--m)); width: calc(41.8 * var(--m)); transform: rotate(-30deg); }
  .t-head { padding-left: 0; text-align: center; }
  .t-title { font-size: 40px; letter-spacing: -1.4px; }
  .t-sub { font-size: 27px; }
  .t-keyboard { width: 46em; font-size: calc(800 * var(--m) / 46); left: calc(-701.5 * var(--m)); bottom: calc(342.2 * var(--m)); top: auto !important; }
  .t-mat      { width: calc(1000 * var(--m)); left: calc(-910.6 * var(--m)); bottom: calc(-129.5 * var(--m)); top: auto !important; }
  .t-claude   { width: calc(112 * var(--m)); left: calc(301 * var(--m)); bottom: calc(559 * var(--m)); }
  .t-portrait { width: calc(248 * var(--m)); left: calc(233.1 * var(--m)); bottom: calc(464.4 * var(--m)); }
  .t-clip--photo { width: calc(61.4 * var(--m)); left: calc(308.7 * var(--m)); bottom: calc(192.9 * var(--m)); }
  .t-postmark { width: calc(112 * var(--m)); left: calc(276.5 * var(--m)); bottom: calc(678 * var(--m)); z-index: 6; }
  .t-clip--photo { z-index: 7; }
  .t-sign     { width: calc(104.1 * var(--m)); left: calc(149.6 * var(--m)); bottom: calc(241.3 * var(--m)); }
  .t-folder   { width: calc(128 * var(--m)); left: calc(148.7 * var(--m)); bottom: calc(98.1 * var(--m)); top: auto; }
  .t-mouse    { width: calc(277.2 * var(--m)); left: calc(289.8 * var(--m)); bottom: calc(-85.1 * var(--m)); }
  .t-pop      { width: calc(121.5 * var(--m)); left: calc(288.6 * var(--m)); bottom: calc(285.3 * var(--m)); }
  .t-figma    { width: calc(112 * var(--m)); left: calc(207.5 * var(--m)); bottom: calc(480.7 * var(--m)); }
  .t-gpt      { width: calc(120 * var(--m)); left: calc(0.9 * var(--m)); bottom: calc(109.3 * var(--m)); }
  .t-bar {
    top: auto; bottom: calc(18 * var(--m)); left: 16px; right: 16px; width: auto; height: auto;
    flex-wrap: wrap; justify-content: center; gap: 6px 14px;
    padding: 9px 4px;
    background: rgba(230, 234, 239, .72);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    z-index: 1;
  }
  .t-bar__place, .t-bar__time, .t-bar__copy { font-size: 11px; }
  .t-bar__copy { order: 3; width: 100%; text-align: center; }
}
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .talk .msg__b { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   DOCK FOLDER: a mini version of the footer's Resume folder
   -------------------------------------------------------------------------- */
.dock-folder { position: relative; perspective: 150px; }
.dock__icon.dock-folder img {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: auto; max-width: none;
  transition: transform .45s var(--spring);
}
.dock-folder__front { transform-origin: 50% 96%; }
.dock__item--folder:hover .dock-folder__front,
.dock__item--folder:focus-visible .dock-folder__front { transform: rotateX(-34deg); }
.dock__item--folder:hover .dock-folder__paper,
.dock__item--folder:focus-visible .dock-folder__paper { transform: translateY(-15%) rotate(-5deg); }
.dock__item--folder:hover .dock-folder__back { transform: translateY(-1.5%); }
/* while the resume window is out, the paper isn't in the folder */
.dock__item--folder.is-sending .dock-folder__paper,
.t-folder.is-sending .t-folder__paper,
.f-resume.is-sending img { visibility: hidden; }

/* --------------------------------------------------------------------------
   RESUME WINDOW: a Preview-style window over the blurred page
   -------------------------------------------------------------------------- */
.rsm {
  --bar: 46px;
  --rh: min(calc(100dvh - 56px - var(--bar)), 1240px);   /* page height in fit mode */
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
}
.rsm[hidden] { display: none; }
.rsm__scrim {
  position: absolute; inset: 0;
  background: rgba(24, 24, 28, .3);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  opacity: 0;
  transition: opacity .38s ease;
}
.rsm.is-open .rsm__scrim { opacity: 1; }

.rsm__win {
  position: relative;
  display: flex; flex-direction: column;
  width: calc(var(--rh) * 1800 / 2547);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transform-origin: 0 0;
  box-shadow: 0 0 0 1px rgba(23,23,28,.1), 0 2px 6px rgba(23,23,28,.08), 0 40px 90px -24px rgba(23,23,28,.5);
}
.rsm__bar {
  flex: none;
  height: var(--bar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 0 10px 0 14px;
  background: linear-gradient(#f7f7f8, #ededf0);
  border-bottom: 1px solid rgba(23,23,28,.09);
}
.rsm__lights { display: flex; gap: 8px; }
.rsm__light {
  width: 12px; height: 12px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18);
}
.rsm__light--close { background: #ff5f57; }
.rsm__light--min { background: #febc2e; }
.rsm__light--max { background: #28c840; }
.rsm__light svg { width: 8px; height: 8px; fill: none; stroke: rgba(70,0,0,.75); stroke-width: 1.4; stroke-linecap: round; opacity: 0; transition: opacity .12s; }
.rsm__lights:hover .rsm__light svg, .rsm__light:focus-visible svg { opacity: 1; }
.rsm__title {
  display: flex; align-items: baseline; gap: 8px; min-width: 0;
  font: 600 13px/1 var(--sans); color: var(--ink);
  white-space: nowrap;
}
.rsm__title span { overflow: hidden; text-overflow: ellipsis; }
.rsm__title small { font: 400 11.5px/1 var(--sans); color: var(--ink-3); }
.rsm__dl {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 13px 0 11px;
  border-radius: 8px;
  background: var(--ink); color: #fff;
  font: 500 13px/1 var(--sans);
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.rsm__dl:hover { background: #2b2c33; }
.rsm__dl:active { transform: translateY(1px); }
.rsm__dl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rsm__x { display: none; }

.rsm__view {
  position: relative;
  height: var(--rh);
  overflow: hidden;
  overscroll-behavior: contain;
  background: #fff;
  outline: none;
}
.rsm__page { width: 100%; height: 100%; max-width: none; object-fit: contain; background: #fff; user-select: none; -webkit-user-drag: none; }

/* zoomed: wider window, the page scrolls inside it */
.rsm__hint {
  position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: none;
  padding: 8px 14px 9px; border-radius: 999px;
  background: rgba(23,23,28,.82); color: #fff;
  font: 500 13px/1 var(--sans); white-space: nowrap;
  pointer-events: none;
  transition: opacity .3s ease;
}
@media (hover: none) { .rsm__hint { display: block; } }
.rsm.was-zoomed .rsm__hint { opacity: 0; }

.rsm.is-zoom .rsm__win { width: min(1000px, calc(100vw - 48px)); }
.rsm.is-zoom .rsm__view { overflow-y: auto; }
.rsm.is-zoom .rsm__page { height: auto; }

@media (max-width: 900px) {
  .rsm { --bar: 54px; place-items: stretch; }
  .rsm__scrim { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(24,24,28,.45); }   /* the window covers the screen; skip the costly blur */
  .rsm__win { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
  .rsm__bar { grid-template-columns: 1fr auto auto; gap: 8px; padding: 0 8px 0 16px; padding-top: env(safe-area-inset-top, 0px); height: calc(var(--bar) + env(safe-area-inset-top, 0px)); }
  .rsm__lights { display: none; }
  .rsm__title { flex-direction: column; align-items: flex-start; gap: 3px; }
  .rsm__title span { max-width: 100%; }
  .rsm__dl { height: 36px; padding: 0 12px 0 10px; }
  .rsm__x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
  .rsm__x svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
  .rsm__x:active { background: rgba(23,23,28,.07); }
  .rsm__view { flex: 1; height: auto; overflow: auto; background: #e9e9ec; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; justify-content: center; }
  .rsm.is-zoom .rsm__view { display: block; }
  .rsm__page { width: 100%; height: auto; flex: none; }
  .rsm.is-zoom .rsm__win { width: 100%; }
  .rsm.is-zoom .rsm__view { overflow: auto; }
  .rsm.is-zoom .rsm__page { width: 220%; }
}
