/* =====================================================================
   Tokens: night is the default, day is the alternative
   ===================================================================== */
:root {
  color-scheme: dark;
  --bg: #141414;
  --bg-soft: #1b1b1b;
  --fg: #f6f2ea;
  --muted: #a9a399;
  --line: rgba(255, 255, 255, 0.14);
  --card: #202020;
  --pill: rgba(30, 30, 30, 0.78);
  --accent: #ffd36a;
  --accent-glow: #ffc83d;
  --accent-ink: #1b1400;
  --blue: #5b9bff;
  --coral: #f26a4b;
  --hl-blue: rgba(110, 150, 205, 0.6);
  --hl-yellow: rgba(214, 182, 64, 0.6);
  --hl-purple: rgba(150, 124, 196, 0.6);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --ridge: #1d1d1d;

  --map-bg: #181b20;
  --map-block: #22262d;
  --map-road: #2c313a;
  --map-park: #1d3828;
  --map-river: #203f5e;
  --map-label: rgba(255, 255, 255, 0.07);
  --map-route: #6aa5ff;

  --display: "Syne", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --radius: 22px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f0e4;
  --bg-soft: #fff9ee;
  --fg: #1c1a17;
  --muted: #6c665c;
  --line: rgba(28, 26, 23, 0.14);
  --card: #fffdf8;
  --pill: rgba(255, 252, 245, 0.86);
  --accent: #1c2a48;
  --accent-glow: #e3a21a;
  --accent-ink: #ffffff;
  --blue: #2f6fd0;
  --coral: #e5583b;
  --hl-blue: rgba(120, 165, 225, 0.55);
  --hl-yellow: rgba(250, 205, 80, 0.7);
  --hl-purple: rgba(185, 160, 230, 0.6);
  --shadow: 0 18px 50px rgba(60, 45, 20, 0.18);
  --ridge: #efe5d2;

  --map-bg: #f3ead9;
  --map-block: #e6dcc7;
  --map-road: #fbf6ea;
  --map-park: #d3e4c3;
  --map-river: #b9d5ef;
  --map-label: rgba(28, 26, 23, 0.07);
  --map-route: #2f6fd0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; overflow-x: clip; }
html.no-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; font-family: var(--body); color: var(--fg); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background 0.4s ease, color 0.4s ease;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
button { font-family: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.eyebrow { font-size: 0.95rem; color: var(--muted); font-weight: 500; margin-bottom: 0.9rem; }
.sub { color: var(--muted); }
.center-text { text-align: center; }
.section-head { margin: 0 auto 2.5rem; max-width: 760px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.section-head .sub { margin-top: 0.8rem; }

/* =====================================================================
   Buttons and pills
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700;
  border: 2px solid var(--accent); cursor: pointer; font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
kbd { font-family: var(--body); font-size: 0.72rem; font-weight: 700; padding: 0.05rem 0.45rem; border-radius: 6px; border: 1.5px solid currentColor; opacity: 0.85; }

.topright { position: fixed; top: 16px; right: clamp(12px, 3vw, 40px); z-index: 60; display: flex; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1.1rem 0.55rem 0.55rem; border-radius: 999px;
  background: var(--pill); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; cursor: pointer; box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.pill:hover { transform: translateY(-1px); }
#themeBtn { padding-left: 1rem; }
.orb { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffd9a8, #e36bb0 45%, #4f8cff 80%); }
#themeIcon svg { width: 18px; height: 18px; }

.sound {
  position: fixed; left: clamp(12px, 3vw, 40px); bottom: 24px; z-index: 60; width: 48px; height: 48px; border-radius: 50%;
  background: var(--pill); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.sound .wave { display: none; }
.sound[aria-pressed="true"] .wave { display: inline; }
.sound[aria-pressed="true"] .mute { display: none; }

.dock {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 4px;
  padding: 8px; border-radius: 999px; background: var(--pill); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: var(--shadow); max-width: calc(100vw - 20px);
}
.dock a { text-decoration: none; padding: 0.7rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem; color: var(--muted); white-space: nowrap; transition: all 0.2s ease; }
.dock a:hover { color: var(--fg); }
.dock a.active { background: color-mix(in srgb, var(--fg) 12%, transparent); color: var(--fg); }
.dock-sep { width: 1px; align-self: stretch; margin: 6px 6px; background: var(--line); }
.dock a.dock-resume { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.dock a.dock-resume:hover { transform: translateY(-1px); }

/* =====================================================================
   Home
   ===================================================================== */
/* =====================================================================
   Front page: a bright sky. The pointer moves every layer at its own depth, scrolling climbs
   towards space, the globe spins, and the prompt bar types out what this portfolio is for.
   ===================================================================== */
.cover {
  --sp: 0; --nx: 0; --ny: 0; --mx: -600px; --my: -600px;
  --sky-top: #1c5fdc; --sky-mid: #3f9bff; --sky-low: #a6d6ff; --cloud-base: #e9f2fd;
  position: relative; isolation: isolate; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 5.5rem 1rem 9.5rem;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--sky-low) 100%);
}
[data-theme="light"] .cover { --sky-top: #2b7ff2; --sky-mid: #55aeff; --sky-low: #b9e0ff; }

.cv-sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cv-space { position: absolute; inset: 0; background: linear-gradient(180deg, #040a2a 0%, #0a2b8c 44%, rgba(10, 43, 140, 0) 90%); opacity: calc(var(--sp) * 0.95); }
.cv-stars { position: absolute; inset: 0 0 38% 0; opacity: calc((var(--sp) - 0.1) * 1.7); }
.cv-stars i { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.8); animation: cv-twinkle 3s ease-in-out infinite; }
@keyframes cv-twinkle { 50% { opacity: 0.25; scale: 0.6; } }
.cv-sun { position: absolute; left: 62%; top: -20%; width: 70vmax; height: 70vmax; margin-left: -35vmax; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 252, 225, 0.85) 0%, rgba(255, 255, 255, 0.28) 26%, transparent 60%);
  transform: translate3d(calc(var(--nx) * 26px), calc(var(--ny) * 16px + var(--sp) * 90px), 0); }

.cv-wisps { position: absolute; inset: 0; transform: translate3d(calc(var(--nx) * -9px), calc(var(--ny) * -5px + var(--sp) * 30px), 0); }
.cv-wisps i { position: absolute; height: clamp(14px, 2.6vw, 36px); border-radius: 50%; rotate: -24deg; filter: blur(5px);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75) 38%, rgba(255, 255, 255, 0.25) 80%, transparent);
  animation: cv-wisp-in 2s 0.3s ease-out backwards, cv-wisp 16s ease-in-out infinite alternate; }
.cv-wisps i:nth-child(1) { left: 4%; top: 17%; width: 30vw; }
.cv-wisps i:nth-child(2) { left: 24%; top: 9%; width: 20vw; animation-delay: 0.5s, -4s; }
.cv-wisps i:nth-child(3) { left: 66%; top: 22%; width: 26vw; animation-delay: 0.7s, -9s; }
.cv-wisps i:nth-child(4) { left: 80%; top: 11%; width: 18vw; animation-delay: 0.9s, -2s; }
@keyframes cv-wisp-in { from { opacity: 0; } }
@keyframes cv-wisp { to { translate: 3vw -1vh; } }

/* clouds: built in the script as small vector sheets; each layer has its own depth */
.cv-clouds { position: absolute; inset: 0; will-change: transform; }
.cv-c-far { transform: translate3d(calc(var(--nx) * -7px), calc(var(--ny) * -4px + var(--sp) * 36px), 0); }
.cv-c-mid { transform: translate3d(calc(var(--nx) * -18px), calc(var(--ny) * -10px - var(--sp) * 24px), 0); }
.cv-c-front { transform: translate3d(calc(var(--nx) * -34px), calc(var(--ny) * -16px - var(--sp) * 120px), 0); }
.cv-c-front::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -260px; height: calc(30% + 260px);
  background: linear-gradient(180deg, rgba(233, 242, 253, 0) 0%, var(--cloud-base) 58%); }
.cv-cl { position: absolute; aspect-ratio: 2 / 1;
  animation: cv-cl-rise 1.9s var(--rd, 0s) cubic-bezier(.2, .8, .2, 1) backwards, cv-cl-drift var(--dur, 30s) var(--del, 0s) ease-in-out infinite alternate; }
.cv-cl svg { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes cv-cl-rise { from { translate: 0 22%; opacity: 0; } }
@keyframes cv-cl-drift { from { transform: translateX(calc(var(--amp, 2vw) * -1)); } to { transform: translateX(var(--amp, 2vw)); } }

.cv-grain { position: absolute; inset: 0; opacity: 0.32; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.cv-spot { position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.32), transparent 64%); }

.cv-meta { position: absolute; z-index: 6; left: clamp(1.2rem, 5vw, 5.5rem); top: clamp(1.4rem, 4.5vw, 3.4rem); margin: 0; text-align: left; font-size: 0.85rem; line-height: 1.5; font-weight: 600; text-shadow: 0 1px 2px rgba(5, 40, 140, 0.65), 0 0 14px rgba(5, 40, 140, 0.55); }
.cv-meta b { font-weight: 600; }

/* flyers and sparkles */
.cv-fly { position: absolute; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; }
.cv-plane { position: absolute; left: 0; top: 0; width: clamp(96px, 13vw, 190px); will-change: transform; filter: drop-shadow(0 8px 10px rgba(5, 40, 140, 0.3)); }
.cv-plane svg { display: block; width: 100%; height: auto; }
.cv-plane .trail { position: absolute; right: 94%; top: 44%; width: clamp(180px, 30vw, 460px); height: 6px; border-radius: 6px; filter: blur(2px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9)); }
.cv-plane .trail::after { content: ""; position: absolute; left: 20%; right: 0; top: 9px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6)); }
.cv-bird { position: absolute; left: 0; top: 0; width: clamp(60px, 7.5vw, 104px); margin: -30px 0 0 -40px; will-change: transform; filter: drop-shadow(0 10px 10px rgba(5, 40, 140, 0.3)); animation: cv-fade 1s 1.3s backwards; }
.cv-bird svg { display: block; width: 100%; height: auto; overflow: visible; }
.cv-bird .wing { transform-origin: 50px 32px; }
.cv-bird .wl { animation: cv-flap-l 0.8s ease-in-out infinite alternate; }
.cv-bird .wr { animation: cv-flap-r 0.8s ease-in-out infinite alternate; }
@keyframes cv-flap-l { from { transform: rotate(-12deg); } to { transform: rotate(16deg); } }
@keyframes cv-flap-r { from { transform: rotate(12deg); } to { transform: rotate(-16deg); } }
@keyframes cv-fade { from { opacity: 0; } }
.cv-plane { animation: cv-fade 1s 0.8s backwards; }

.cv-spark { position: absolute; width: var(--s, 38px); height: var(--s, 38px); left: var(--x); top: var(--y);
  transform: translate3d(calc(var(--nx) * var(--d, 20) * 1px), calc(var(--ny) * var(--d, 20) * 1px - var(--sp) * var(--d, 20) * 6px), 0);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)); animation: cv-pop 0.9s var(--t, 1s) cubic-bezier(.2, 1.4, .4, 1) backwards, cv-tw 3.4s calc(var(--t, 1s) + 1s) ease-in-out infinite; }
.cv-spark.s1 { --x: 7%; --y: 33%; --s: 56px; --d: 30; --t: 1.1s; }
.cv-spark.s2 { --x: 90%; --y: 62%; --s: 52px; --d: -26; --t: 1.4s; }
.cv-spark.s3 { --x: 24%; --y: 78%; --s: 26px; --d: 18; --t: 1.6s; }
.cv-spark.s4 { --x: 78%; --y: 20%; --s: 22px; --d: -16; --t: 1.2s; }
.cv-spark.s5 { --x: 52%; --y: 10%; --s: 20px; --d: 12; --t: 1.8s; }
@keyframes cv-pop { from { scale: 0; rotate: -90deg; opacity: 0; } }
@keyframes cv-tw { 50% { scale: 0.72; rotate: 12deg; opacity: 0.8; } }
.cv-ts { position: absolute; pointer-events: none; background: linear-gradient(135deg, #fff, #a8d6ff); margin: -6px 0 0 -6px;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 4px #fff);
  animation: cv-ts 0.95s ease-out forwards; }
@keyframes cv-ts { to { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.15) rotate(120deg); } }

/* the glass panel */
.cv-stage { position: relative; z-index: 5; width: min(1100px, 92vw); display: flex; flex-direction: column; align-items: center; margin-top: -1rem; }
.cv-panel { position: relative; width: 100%; text-align: left; will-change: transform;
  padding: clamp(1rem, 2.6vw, 2rem) clamp(1rem, 3.6vw, 3rem) clamp(1rem, 2.8vw, 2.3rem);
  transform: perspective(1300px) translate3d(calc(var(--nx) * -10px), calc(var(--ny) * -6px - var(--sp) * 110px), 0) rotateX(calc(var(--ny) * -5deg)) rotateY(calc(var(--nx) * 7deg)) scale(calc(1 - var(--sp) * 0.14));
  opacity: calc(1 - var(--sp) * 1.2);
  animation: cv-panel-in 1.2s 0.25s cubic-bezier(.2, .9, .3, 1) backwards; }
@keyframes cv-panel-in { from { opacity: 0; scale: 0.9; translate: 0 36px; filter: blur(16px); } }
.cv-glass { position: absolute; inset: 0; border-radius: clamp(26px, 4.6vw, 56px); overflow: hidden;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.15) 55%, rgba(255, 255, 255, 0.28));
  -webkit-backdrop-filter: blur(16px) saturate(1.35); backdrop-filter: blur(16px) saturate(1.35);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 34px 80px rgba(6, 40, 140, 0.38), inset 0 1.5px 0 rgba(255, 255, 255, 0.7), inset 0 -18px 40px rgba(110, 170, 255, 0.25); }
.cv-glare { position: absolute; inset: 0; opacity: 0.75; background: radial-gradient(420px circle at calc(50% + var(--nx) * 50%) calc(40% + var(--ny) * 50%), rgba(255, 255, 255, 0.5), transparent 62%); }

.cv-year { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.9rem; margin: 0; font-weight: 800; font-size: clamp(1rem, 2.3vw, 1.7rem); line-height: 1; letter-spacing: 0.01em; text-shadow: 0 2px 10px rgba(5, 40, 140, 0.3); }
.cv-year i { flex: 0 1 34%; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.15)); transform-origin: left; animation: cv-line 1s 1s cubic-bezier(.2, .9, .3, 1) backwards; }
@keyframes cv-line { from { scale: 0 1; } }

.cv-title { position: relative; z-index: 1; display: flex; justify-content: center; align-items: baseline; margin: 0.12em 0 0;
  font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 14vw, 10rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; color: #fff;
  text-shadow: 0 0.05em 0.16em rgba(8, 48, 150, 0.3), 0 0 0.5em rgba(255, 255, 255, 0.3); }
.cv-ch { display: inline-block; flex: none; will-change: transform; animation: cv-ch-in 0.95s calc(0.55s + var(--i) * 0.075s) cubic-bezier(.2, .9, .3, 1.25) backwards; }
@keyframes cv-ch-in { from { opacity: 0; translate: 0 45%; rotate: 9deg; scale: 0.8; filter: blur(10px); } }
.cv-globe { width: 0.86em; height: 0.86em; margin: 0 0.035em; translate: 0 0.07em; cursor: pointer; text-shadow: none; }
.cv-globe svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0.05em 0.08em rgba(5, 40, 140, 0.45)); transition: filter 0.3s ease; }
.cv-globe:hover svg { filter: drop-shadow(0 0 0.14em rgba(170, 225, 255, 0.95)) drop-shadow(0 0.05em 0.08em rgba(5, 40, 140, 0.4)); }

.cv-nib { position: absolute; z-index: 2; right: clamp(0.6rem, 3.4vw, 3rem); top: calc(clamp(2.4rem, 7vw, 5.6rem) * -1); width: clamp(76px, 11vw, 160px); will-change: transform;
  filter: drop-shadow(0 8px 10px rgba(5, 40, 140, 0.3)); animation: cv-fade 1s 1.5s backwards; }
.cv-nib svg { display: block; width: 100%; height: auto; animation: cv-float 5s ease-in-out infinite; }
@keyframes cv-float { 50% { translate: 0 -8px; } }

.cv-scroll { position: absolute; z-index: 6; bottom: 6.2rem; left: 50%; transform: translateX(-50%); font-family: var(--hand); font-size: 1.6rem; color: #1b3f8f; text-decoration: none; opacity: calc(0.95 - var(--sp) * 2); animation: cv-bob 1.8s ease-in-out infinite; }
@keyframes cv-bob { 50% { transform: translate(-50%, 6px); } }

@media (max-width: 720px) {
  .cover { padding: 6rem 0.6rem 9rem; }
  .cv-stage { width: 94vw; }
  .cv-nib { width: 58px; right: 0.8rem; }
  .cv-spark.s4, .cv-spark.s5 { display: none; }
  .cv-spark.s1 { --x: 1%; --y: 20%; --s: 40px; }
  .cv-sun { top: -10%; }
}

@media (prefers-reduced-motion: reduce) {
  .cv-cl, .cv-spark, .cv-wisps i, .cv-stars i, .cv-bird .wing, .cv-nib svg, .cv-scroll { animation: none; }
  .cv-ts { display: none; }
}

/* introduction details */
.idx { display: inline-grid; place-items: center; margin-right: 0.5rem; padding: 0.05rem 0.5rem; border-radius: 6px; border: 1px solid var(--line); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.75rem; color: var(--coral); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.85rem; border-radius: 999px; border: 1px dashed var(--muted); font-size: 0.85rem; font-weight: 600; background: var(--pill); }
.hero-meta .clock { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.8rem; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--fg) 9%, transparent) 1px, transparent 1.4px) 0 0 / 26px 26px; -webkit-mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent); mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent); }
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: 6rem clamp(1.2rem, 6vw, 6rem) 8rem; }
.hero-bg { position: absolute; left: 0; right: 0; bottom: 0; height: 220px; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; fill: var(--ridge); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.statement { font-size: clamp(1.7rem, 3.7vw, 3.5rem); line-height: 1.25; }
.hero-sub { margin-top: 1.6rem; color: var(--muted); }

/* hand-drawn marker highlights */
.hl {
  padding: 0 0.12em; margin: 0 -0.04em; border-radius: 0.3em 0.08em 0.35em 0.1em;
  background: linear-gradient(var(--c), var(--c)) left center / 0% 80% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: hlgrow 0.9s forwards ease-out;
}
.hl-blue { --c: var(--hl-blue); animation-delay: 0.5s; }
.hl-yellow { --c: var(--hl-yellow); animation-delay: 1.9s; }
.hl-purple { --c: var(--hl-purple); animation-delay: 2.6s; }
@keyframes hlgrow { to { background-size: 100% 80%; } }

.circled { position: relative; display: inline-block; white-space: nowrap; }
.scribble { position: absolute; left: -0.3em; top: -0.12em; width: calc(100% + 0.6em); height: calc(100% + 0.3em); overflow: visible; pointer-events: none; }
.scribble path, .uline svg path { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s forwards ease; }
.scribble path { animation-delay: 1.1s; }
.uline { position: relative; display: inline-block; }
.uline svg { position: absolute; left: 0; bottom: -0.2em; width: 100%; height: 0.3em; overflow: visible; }
.uline svg path { animation-delay: 3.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* sticky notes */
.notes-col { position: relative; display: grid; gap: clamp(1rem, 3vw, 2.2rem); justify-items: center; align-content: center; }
.hint-pill { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; color: var(--muted); background: var(--pill); color: var(--fg); }
.hint-pill svg { color: var(--coral); }
.sticky {
  --dx: 0px; --dy: 0px; --rot: 0deg; position: relative; width: min(290px, 88%); padding: 1.5rem 1.4rem 1.1rem;
  border-radius: 4px 4px 14px 4px; color: #2a2218; font-family: var(--hand); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15;
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
  cursor: grab; user-select: none; touch-action: none; transition: box-shadow 0.2s ease;
}
.sticky::before { content: ""; position: absolute; top: -14px; left: 50%; width: 90px; height: 24px; margin-left: -45px; background: rgba(255, 255, 255, 0.55); transform: rotate(-2deg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.sticky p { margin: 0 0 0.6rem; }
.sticky small { font-family: var(--body); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.55; }
.sticky.dragging { cursor: grabbing; z-index: 30; box-shadow: 0 26px 50px rgba(0, 0, 0, 0.4); }
.s-yellow { background: #fbe38a; }
.s-pink { background: #f7cdbf; }
.s-blue { background: #cfe3fb; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { font-family: var(--body); font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 10px; background: #fff; color: #2a2218; }
.drag-bubble { position: absolute; right: -12px; top: -16px; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 190, 70, 0.75); display: grid; place-items: center; font-family: var(--body); font-weight: 700; font-size: 0.95rem; animation: pulse 1.8s infinite; pointer-events: none; }
.sticky.moved .drag-bubble { display: none; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: 0.7; } }

/* =====================================================================
   Journey: map
   ===================================================================== */
.journey { position: relative; height: 360vh; background: var(--map-bg); }
.journey-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.map { position: absolute; inset: 0; }
#mapSvg { width: 100%; height: 100%; }
.m-bg { fill: var(--map-bg); }
.m-block { fill: var(--map-block); }
.m-park { fill: var(--map-park); }
.m-river { stroke: var(--map-river); fill: none; stroke-linecap: round; }
.m-road { stroke: var(--map-road); fill: none; stroke-linecap: round; }
.m-label { fill: var(--map-label); font-family: var(--display); font-weight: 800; text-anchor: middle; letter-spacing: 0.3em; }
.m-route-base { fill: none; stroke: color-mix(in srgb, var(--map-route) 28%, transparent); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 2 22; }
.m-route-done { fill: none; stroke: var(--map-route); stroke-width: 12; stroke-linecap: round; }
.pin { transition: transform 0.35s cubic-bezier(.3, 1.5, .5, 1); cursor: pointer; }
.pin.current { transform: scale(1.25); }
.pin-body { fill: var(--c); }
.pin-disc { fill: var(--card); }
.pin-emoji { font-size: 34px; text-anchor: middle; dominant-baseline: central; }
.pin-chip rect { fill: color-mix(in srgb, var(--c) 22%, var(--card)); stroke: color-mix(in srgb, var(--c) 55%, transparent); stroke-width: 2; }
.pin-chip text { fill: var(--fg); font-family: var(--display); font-weight: 800; font-size: 30px; dominant-baseline: central; }
.pin.future { opacity: 0.55; }
.me-ring { fill: color-mix(in srgb, var(--map-route) 25%, transparent); stroke: color-mix(in srgb, var(--map-route) 60%, transparent); stroke-width: 2; }
.me-arrow { fill: var(--map-route); stroke: #fff; stroke-width: 4; stroke-linejoin: round; }

.jcard {
  position: absolute; left: clamp(12px, 4vw, 64px); top: 50%; transform: translateY(-50%); z-index: 20;
  width: min(470px, calc(100vw - 24px)); max-height: calc(100svh - 190px); overflow: auto;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.jhead { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.3rem; background: color-mix(in srgb, var(--c, var(--coral)) 18%, var(--card)); }
.jicon { width: 52px; height: 52px; border-radius: 14px; background: var(--card); display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); flex: none; }
.jmeta { display: grid; line-height: 1.25; min-width: 0; }
.jmeta strong { font-family: var(--display); font-size: 1.15rem; color: var(--c, var(--coral)); }
.jmeta span { color: var(--muted); font-size: 0.95rem; }
.jcount { margin-left: auto; color: var(--muted); font-size: 0.95rem; font-weight: 600; white-space: nowrap; }
.jbody { padding: 1.4rem 1.5rem 1.6rem; }
.jbody h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.9rem; }
.jbody p { font-size: 1.05rem; margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags li { font-size: 0.8rem; font-weight: 700; padding: 0.28rem 0.75rem; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--coral)) 20%, transparent); color: var(--fg); }
.jcard.swap { animation: cardin 0.4s ease; }
@keyframes cardin { from { opacity: 0.2; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

.compass {
  position: absolute; top: 96px; right: clamp(12px, 4vw, 64px); z-index: 15; width: 84px; height: 84px; border-radius: 50%;
  background: var(--pill); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); color: var(--fg);
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 700;
}
.compass span { position: absolute; }
.c-n { top: 5px; } .c-s { bottom: 5px; } .c-e { right: 8px; } .c-w { left: 8px; }
.compass svg { width: 40px; height: 40px; transition: transform 0.4s ease; }
.map-ctrl { position: absolute; right: clamp(12px, 4vw, 64px); bottom: 110px; z-index: 15; display: grid; gap: 8px; }
.map-ctrl button { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--pill); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.map-ctrl button:hover { background: var(--card); }

.jprogress { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 0.9rem; padding: 0.5rem 1.1rem; border-radius: 999px; background: var(--pill); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); max-width: calc(100vw - 24px); }
.dots { display: flex; gap: 8px; align-items: center; }
.dots button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid var(--muted); background: transparent; cursor: pointer; transition: all 0.2s ease; }
.dots button.reached { background: var(--muted); }
.dots button.current { width: 22px; height: 22px; border-color: var(--coral); background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 28%, transparent); }
.jlabel { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.scroll-hint { position: absolute; left: 50%; bottom: 168px; transform: translateX(-50%); z-index: 14; margin: 0; font-family: var(--hand); font-size: 1.5rem; color: var(--muted); transition: opacity 0.3s ease; }
.scroll-hint.gone { opacity: 0; pointer-events: none; }

/* =====================================================================
   Work: card deck
   ===================================================================== */
.work { position: relative; padding: 7rem 1rem 6rem; background: var(--bg); overflow: hidden; }
.deck { position: relative; height: 380px; max-width: 1000px; margin: 0 auto; perspective: 1400px; outline-offset: 8px; }
.deck-ribbon { position: absolute; top: -20px; left: 50%; width: 100vw; margin-left: -50vw; height: calc(100% + 20px); z-index: 0; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(212, 80, 158, 0.28)); }
.card {
  --offset: 0; --abs: 0; --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 20%;
  position: absolute; top: 20px; left: 50%; width: min(380px, 78vw); aspect-ratio: 1.58; margin-left: calc(min(380px, 78vw) / -2);
  transform: translateX(calc(var(--offset) * 60%)) translateY(calc(var(--abs) * 16px)) scale(calc(1 - var(--abs) * 0.09)) rotate(calc(var(--offset) * 6deg)) rotateX(var(--rx)) rotateY(var(--ry));
  z-index: calc(10 - var(--abs)); filter: brightness(calc(1 - var(--abs) * 0.1));
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), opacity 0.3s ease, filter 0.45s ease; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; color: #fff;
}
.card.is-hot { transition: transform 0.1s ease-out, opacity 0.3s ease, filter 0.45s ease; }
.card[data-hidden="true"] { opacity: 0; pointer-events: none; }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.6s ease; }
.card.flipped .card-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: var(--grad); display: flex; flex-direction: column;
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.38), inset 0 2px 1px rgba(255, 255, 255, 0.55), inset 0 -3px 6px rgba(0, 0, 0, 0.18); }
/* the gloss: a fixed glassy sweep plus a bright spot that follows the pointer */
.face::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; background: linear-gradient(118deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.12) 34%, transparent 35%, transparent 70%, rgba(255, 255, 255, 0.1) 100%); }
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; background: radial-gradient(240px circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.4), transparent 62%); opacity: 0; transition: opacity 0.25s ease; }
.card.is-hot .face::after { opacity: 1; }
.face.back { transform: rotateY(180deg); padding: 1.3rem 1.4rem; gap: 0.5rem; }
.face.back::before { background: linear-gradient(rgba(8, 12, 50, 0.5), rgba(8, 12, 50, 0.66)); z-index: 0; }
.face.back > * { position: relative; z-index: 4; }
.face.back h3 { font-size: 1.25rem; }
.face.back p { margin: 0; font-size: 0.88rem; line-height: 1.45; opacity: 0.95; }
.face.back ul { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; }
.face.back li { background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); padding: 0.15rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.zig { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.22)); }
.ctag { position: absolute; z-index: 4; left: 1.3rem; top: 1.15rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.92; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25); }
.mono { position: absolute; z-index: 4; right: 1.2rem; top: 1rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: 0.95rem; background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.cfoot { position: absolute; z-index: 4; left: 1.3rem; right: 1.3rem; bottom: 1.1rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.8rem; }
.cfoot h3 { font-size: clamp(1.1rem, 2.4vw, 1.45rem); text-align: right; max-width: 66%; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.cdots { display: flex; gap: 5px; padding-bottom: 0.45rem; }
.cdots i { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.deck-controls { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: 1.8rem; color: var(--muted); font-weight: 600; }
.round { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--fg); background: transparent; font-size: 1.3rem; cursor: pointer; transition: all 0.15s ease; }
.round:hover { background: var(--fg); color: var(--bg); }

/* =====================================================================
   About
   ===================================================================== */
.about { position: relative; padding: 6rem clamp(1rem, 5vw, 4rem) 8rem; background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 5vw, 4rem); max-width: 1100px; margin: 0 auto 3.5rem; align-items: center; }
.goals { display: grid; gap: 0.55rem; margin-top: 1.2rem; }
.goals li { padding-left: 1.5rem; position: relative; }
.goals li::before { content: "➜"; position: absolute; left: 0; color: var(--coral); }
.pass-wrap { display: grid; place-items: center; gap: 1.2rem; min-height: 290px; }
.hint { font-family: var(--hand); font-size: 1.6rem; color: var(--coral); margin: 0; }
.pass-tilt { width: min(380px, 100%); perspective: 900px; transform-style: preserve-3d; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); will-change: transform; }
.pass { position: relative; width: 100%; background: var(--card); border-radius: 16px; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-top: 10px solid var(--coral); box-shadow: var(--shadow); cursor: grab; user-select: none; touch-action: none; transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--rot, -3deg)); transition: transform 0.5s cubic-bezier(.3, 1.6, .5, 1); overflow: hidden; }
.pass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 20%), rgba(255, 255, 255, 0.16), transparent 62%); }
[data-theme="light"] .pass::after { background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 20%), rgba(255, 255, 255, 0.85), transparent 62%); }
.plane { transform: translateX(var(--px, 0px)); transition: transform 0.2s ease-out; color: var(--coral); }
.pass-bottom { padding-top: 0.8rem; border-top: 2px dashed var(--line); }
.pass.dragging { cursor: grabbing; transition: none; }
.pass-top, .pass-bottom { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.pass-route { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 1rem 0; }
.pass-route strong { font-family: var(--display); font-size: 2rem; display: block; }
.pass-route strong.dest { font-size: 1.4rem; padding-top: 0.45rem; }
.pass-route small { color: var(--muted); }
.barcode { height: 38px; margin-top: 0.9rem; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--fg) 0 2px, transparent 2px 5px, var(--fg) 5px 6px, transparent 6px 10px, var(--fg) 10px 13px, transparent 13px 15px); opacity: 0.85; }
.about-text p { font-size: 1.08rem; line-height: 1.75; color: var(--muted); }
.about-text .lead { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.3vw, 1.85rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--fg); margin-bottom: 1.2rem; }
.about .hl, .chaos .hl { animation: none; }
.about .hl.in, .chaos .hl.in { animation: hlgrow 0.9s forwards ease-out; }
.about .hl-blue.in { animation-delay: 0.2s; }
.about .hl-yellow.in { animation-delay: 0.7s; }

.focus-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 1100px; margin: 0 auto 1.4rem; }
.focus-card, .about-more p {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.6s cubic-bezier(.2, .9, .3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.focus-card.is-hot, .about-more p.is-hot { transition: transform 0.12s ease-out, border-color 0.25s ease, box-shadow 0.25s ease; --lift: -4px; border-color: color-mix(in srgb, var(--c, var(--coral)) 70%, transparent); box-shadow: var(--shadow); }
.focus-card::before, .about-more p::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s ease; background: radial-gradient(340px circle at var(--mx) var(--my), color-mix(in srgb, var(--c, var(--coral)) 26%, transparent), transparent 62%); }
.focus-card.is-hot::before, .about-more p.is-hot::before { opacity: 1; }
.focus-card { padding: 1.5rem 1.4rem 1.6rem; }
.fc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.6rem; background: color-mix(in srgb, var(--c) 22%, transparent); margin-bottom: 1rem; position: relative; }
.focus-card h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 0.9rem; position: relative; }
.focus-card ul { display: flex; flex-wrap: wrap; gap: 0.45rem; position: relative; }
.focus-card li { padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 5%, transparent); }

.about-more { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 1100px; margin: 0 auto; }
.about-more p { margin: 0; padding: 1.4rem 1.5rem 1.5rem; font-size: 1.05rem; line-height: 1.7; color: var(--muted); }
.am-label { display: block; font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.2; color: var(--fg); margin-bottom: 0.5rem; position: relative; }
.about-open { max-width: 760px; margin: 2.4rem auto 0; text-align: center; font-size: 1.08rem; color: var(--muted); }
.open-link { display: inline-block; margin-left: 0.4rem; font-weight: 700; color: var(--fg); text-decoration: none; border-bottom: 2px solid var(--coral); transition: transform 0.15s ease; }
.open-link:hover { transform: translateY(2px); }
.mini-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); margin: 3.5rem 0 0.6rem; }
/* ---------- skills and certifications: three panels, a live chart and a pen ---------- */
.skillset { isolation: isolate; --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; position: relative; max-width: 1040px; margin: 6.5rem auto 0; }
.sk-frame { display: grid; grid-template-columns: minmax(190px, 0.8fr) 1.75fr minmax(190px, 0.85fr); overflow: hidden; border: 3px solid #0e0f13; border-radius: 38px; background: #0e0f13; gap: 3px; box-shadow: var(--shadow); }
.sk-col { background: #ececee; color: #1a1b20; padding: 1.5rem 1.2rem; }
.sk-label { margin: 0 0 1rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8d98; }
.sk-tabs { display: grid; gap: 0.35rem; }
.sk-tab { display: flex; align-items: center; gap: 0.8rem; width: 100%; padding: 0.4rem 0.3rem; border: 0; border-radius: 14px; background: none; cursor: pointer; text-align: left; font: inherit; font-size: 1rem; color: #6c6f7a; transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease; }
.sk-tab:hover { color: #1a1b20; transform: translateX(4px); background: rgba(0, 0, 0, 0.04); }
.sk-tab.on { color: #101114; font-weight: 700; }
.sk-tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.sk-dot { flex: none; width: 36px; height: 36px; }
.sk-dot svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.sk-dot circle { fill: none; }
.sk-dot .trk { stroke: #9a9ea9; stroke-width: 2; stroke-dasharray: 2 4.3; transform-origin: center; }
.sk-tab:hover .trk { animation: skspin 3s linear infinite; }
.sk-dot .arc { stroke: #4f7bff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sk-dot .core { fill: transparent; transform-origin: center; transform: scale(0); transition: transform 0.3s cubic-bezier(.3, 1.6, .5, 1), fill 0.2s ease; }
.sk-tab.on .core { fill: #4f7bff; transform: scale(1); }
.sk-tab.on .trk { stroke: #4f7bff; opacity: 0.4; }
@keyframes skspin { to { transform: rotate(360deg); } }

.sk-mid { --mx: -400px; --my: -400px; position: relative; overflow: hidden; background: #15161a; color: #e9eaf0; padding: 2rem 1.7rem 9.6rem; min-height: 430px; }
.sk-mid::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(79, 123, 255, 0.28), transparent 65%), radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.4px) 0 0 / 14px 14px; }
.sk-mid > * { position: relative; }
.sk-title { margin: 0 0 0.9rem; font-family: var(--body); font-weight: 500; font-size: clamp(1.45rem, 2.7vw, 2.1rem); letter-spacing: -0.01em; color: #fff; }
.sk-title span { color: #7b9bff; }
.sk-text { margin: 0; max-width: 44ch; font-family: var(--mono); font-size: 0.86rem; line-height: 1.7; color: #9a9eab; }
.swap { animation: skswap 0.45s ease both; }
@keyframes skswap { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.sk-detail { min-height: 1px; margin-top: 1.1rem; }
.sk-detail.show { animation: skswap 0.4s ease both; }
.sk-detail p { margin: 0; max-width: 46ch; padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(79, 123, 255, 0.14); border: 1px solid rgba(123, 155, 255, 0.35); font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; color: #cfd3e2; }
.sk-detail b { color: #fff; }
.sk-cert { display: grid; place-items: center; width: min(260px, 100%); aspect-ratio: 4 / 3; border-radius: 12px; border: 1.5px dashed rgba(255, 255, 255, 0.3); font-family: var(--mono); font-size: 0.78rem; color: #9a9eab; text-align: center; padding: 0.8rem; overflow: hidden; }
.sk-cert img { width: 100%; height: 100%; object-fit: contain; }
.sk-detail .sk-cert + p { margin-top: 0.5rem; padding: 0; background: none; border: 0; font-size: 0.78rem; }
.sk-chart { position: absolute !important; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; }
.sk-line { stroke: #5f86ff; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.sk-line.l2 { opacity: 0.5; }
.sk-line.l3 { opacity: 0.25; }

.sk-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sk-tags button { padding: 0.38rem 0.7rem; border: 0; border-radius: 9px; background: #d9dade; color: #3b3d46; font-family: var(--mono); font-size: 0.78rem; cursor: pointer; text-align: left; animation: skin 0.45s var(--d, 0ms) both; transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease; }
.sk-tags button:hover { transform: translateY(-2px) rotate(-1.5deg); background: #cdd1f2; }
.sk-tags button.on { background: #101114; color: #fff; }
.sk-tags button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* skills: floating, plus small details */
.sk-frame { box-shadow: 0 0 0 1px rgba(79, 123, 255, 0.55), 0 0 70px rgba(79, 123, 255, 0.22), var(--shadow); transform: perspective(1300px) rotateX(var(--frx, 0deg)) rotateY(var(--fry, 0deg)); transition: transform 0.7s cubic-bezier(.2, .9, .3, 1); animation: skfloat 7s ease-in-out infinite; }
.skillset.hot .sk-frame { transition: transform 0.12s ease-out; animation-play-state: paused; }
@keyframes skfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.skillset::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -38px; height: 28px; z-index: -1; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent); filter: blur(8px); animation: skshadow 7s ease-in-out infinite; }
@keyframes skshadow { 0%, 100% { scale: 1 1; opacity: 0.9; } 50% { scale: 0.9 0.9; opacity: 0.6; } }
.sk-pen { animation: skpen 5s ease-in-out infinite; }
@keyframes skpen { 0%, 100% { translate: 0 0; } 50% { translate: 2px -7px; } }
.sk-tags li { animation: skbob 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.8s); }
@keyframes skbob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
.sk-dot { animation: skbob 4.5s ease-in-out infinite; }
.sk-tab:nth-child(2) .sk-dot { animation-delay: -1s; } .sk-tab:nth-child(3) .sk-dot { animation-delay: -2s; } .sk-tab:nth-child(4) .sk-dot { animation-delay: -3s; }

.sk-col { display: flex; flex-direction: column; }
.sk-n { margin-left: auto; min-width: 1.5rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: rgba(0, 0, 0, 0.07); font-family: var(--mono); font-size: 0.7rem; text-align: center; color: #6c6f7a; }
.sk-tab.on .sk-n { background: #4f7bff; color: #fff; }
.sk-hint { display: flex; align-items: center; gap: 0.3rem; margin: auto 0 0; padding-top: 1.2rem; font-family: var(--mono); font-size: 0.7rem; color: #8a8d98; }
.sk-hint kbd { color: #5b5e69; opacity: 1; border-radius: 5px; padding: 0 0.3rem; font-family: var(--mono); border-bottom-width: 2.5px; }
.sk-auto { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem; text-transform: uppercase; letter-spacing: 0.08em; }
.sk-auto::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; animation: skpulse 1.6s ease-in-out infinite; }
.sk-auto[data-state="paused"]::before { background: #f5b942; animation: none; }
.sk-auto[data-state="manual"]::before { background: #8a8d98; animation: none; }
@keyframes skpulse { 50% { box-shadow: 0 0 0 5px rgba(62, 207, 142, 0.2); } }
.sk-count { margin: auto 0 0; padding-top: 1.2rem; text-align: right; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8d98; }
.sk-index { position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: #7b9bff; padding: 0.15rem 0.5rem; border: 1px solid rgba(123, 155, 255, 0.4); border-radius: 6px; }
.sk-ruler { position: absolute !important; left: 0; right: 0; top: 0; height: 10px; opacity: 0.35; background: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat, repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 40px) 0 0 / 100% 10px no-repeat; }
.sk-cross { position: absolute !important; top: 0; bottom: 0; width: 1px; margin-left: 0; background: linear-gradient(transparent, rgba(123, 155, 255, 0.7)); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 2; }
.sk-cross.on { opacity: 1; }
@keyframes skin { from { opacity: 0; transform: translateY(8px) scale(0.94); } to { opacity: 1; transform: none; } }

.sk-pen { position: absolute; left: 0; top: 0; z-index: 6; width: 40px; height: 207px; margin-top: 0; transform-origin: 20px 199px; pointer-events: none; filter: drop-shadow(6px 10px 9px rgba(0, 0, 0, 0.35)); transition: margin-top 0.08s ease; }
.sk-pen.tap { margin-top: 6px; }
@media (hover: none) { .sk-pen { display: none; } }

.interests { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.2rem; }
.interests li { padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px dashed var(--muted); }

/* =====================================================================
   My chaos: cork board
   ===================================================================== */
.chaos { position: relative; padding: 7rem clamp(1rem, 5vw, 4rem) 8rem; background: var(--bg); overflow: hidden; }
.chaos-head { max-width: 1100px; margin: 0 auto 3rem; }
.chaos-head h2 { font-size: clamp(3rem, 9vw, 7rem); line-height: 1; letter-spacing: -0.02em; }
.chaos-sub { margin: 1.1rem 0 0; max-width: 56ch; font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--muted); }
.cork { position: relative; max-width: 1100px; margin: 0 auto; padding: clamp(14px, 2.4vw, 26px); border-radius: 40px; background: #94693f; box-shadow: var(--shadow), inset 0 2px 0 rgba(255, 255, 255, 0.18), inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.cork::before { content: ""; position: absolute; inset: clamp(14px, 2.4vw, 26px); border-radius: 24px; background-color: #b98a58;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .08 0 0 0 .9 -.25'/></filter><rect width='100%' height='100%' filter='url(%23c)'/></svg>"), radial-gradient(circle at 30% 20%, rgba(255, 220, 160, 0.35), transparent 60%);
  box-shadow: inset 0 4px 14px rgba(70, 40, 10, 0.45); }
.cork-grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.4vw, 2rem); padding: clamp(1.6rem, 4vw, 3.2rem) clamp(1rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem); align-items: start; }

.cork-item { --r: 0deg; --rx: 0deg; --ry: 0deg; --dx: 0px; --dy: 0px; --pin: #e24b4b; --mx: 50%; --my: 50%; position: relative; margin: 0; cursor: grab; user-select: none; touch-action: none;
  transform: translate(var(--dx), var(--dy)) rotate(var(--r)) perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.5s cubic-bezier(.2, .9, .3, 1), box-shadow 0.3s ease; filter: drop-shadow(0 12px 12px rgba(50, 28, 6, 0.38)); }
.cork-item.is-hot { transition: transform 0.1s ease-out, box-shadow 0.3s ease; }
.cork-item:hover { z-index: 5; }
.cork-item.dragging { cursor: grabbing; transition: none; filter: drop-shadow(0 22px 20px rgba(50, 28, 6, 0.45)); }
.pin { position: absolute; z-index: 3; left: 50%; top: -9px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 9%, color-mix(in srgb, var(--pin) 70%, #fff) 14%, var(--pin) 48%, color-mix(in srgb, var(--pin) 60%, #000) 100%); box-shadow: 0 6px 7px rgba(40, 20, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.3) inset; }

.pol { padding: 0.8rem 0.8rem 0.6rem; background: #f4f1ea; border-radius: 3px; color: #2a2a2e; }
.pol-img { position: relative; display: grid; place-items: center; align-content: center; gap: 0.3rem; aspect-ratio: 1 / 1.08; background: linear-gradient(150deg, var(--a), var(--b)); background-size: cover; background-position: center; border-radius: 2px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.pol-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 40%); pointer-events: none; }
.pol-emoji { font-size: clamp(2.4rem, 5vw, 3.6rem); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25)); }
.pol-add { white-space: nowrap; font-family: var(--hand); font-size: 1.05rem; color: rgba(255, 255, 255, 0.95); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.pol-img.has-img .pol-emoji, .pol-img.has-img .pol-add { display: none; }
.pol figcaption { margin-top: 0.55rem; min-height: 2.6em; text-align: center; font-family: var(--hand); font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.05; color: #2f2d33; }
.p1 { grid-column: 1 / 4; grid-row: 1; }
.p1s { grid-column: 1 / 4; grid-row: 2; justify-self: center; width: 68%; }
.p2 { grid-column: 9 / 11; grid-row: 1; }
.p3 { grid-column: 11 / 13; grid-row: 1; }
.p4 { grid-column: 9 / 11; grid-row: 2; }

.notepad { grid-column: 4 / 9; grid-row: 1 / 3; padding: 1.5rem 1.5rem 1.6rem 3.4rem; color: #26262b; background-color: #ecebe6; border-radius: 3px;
  background-image: linear-gradient(transparent calc(100% - 1px), rgba(70, 100, 170, 0.28) 1px); background-size: 100% 1.95rem; background-position: 0 0.9rem; }
.notepad::before { content: ""; position: absolute; left: 2.6rem; top: 0; bottom: 0; width: 2px; background: rgba(226, 75, 75, 0.55); }
.np-label { margin: 0 0 0.35rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #d9533a; }
.notepad h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.1rem; color: #15151a; }
.np-head { margin: 0.6rem 0 0.2rem; font-family: var(--hand); font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.1; color: #2a2a30; }
.notepad ul { margin: 0 0 0.6rem; }
.notepad li { position: relative; padding-left: 1.2rem; font-size: 0.98rem; line-height: 1.95rem; font-weight: 500; }
.notepad li::before { content: ""; position: absolute; left: 0.2rem; top: 0.85rem; width: 6px; height: 6px; border-radius: 50%; background: #2a2a30; }

.flag-card { grid-column: 11 / 13; grid-row: 2; min-height: 190px; overflow: hidden; padding: 1.1rem 1.1rem 1rem; border-radius: 12px; color: #fff; background: linear-gradient(150deg, #e0525e, #b3303f); display: flex; flex-direction: column; justify-content: flex-end; }
.flag-card .tyre { position: absolute; right: -34px; top: -26px; width: 128px; height: 128px; animation: tyre 9s linear infinite; }
@keyframes tyre { to { transform: rotate(360deg); } }
.fc-label { margin: 0; position: relative; font-family: var(--hand); font-size: 1.5rem; line-height: 1; opacity: 0.95; }
.fc-text { margin: 0.2rem 0 0; position: relative; font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.15; }

@media (max-width: 1000px) {
  .cork-grid { grid-template-columns: repeat(6, 1fr); }
  .notepad { grid-column: 1 / -1; grid-row: auto; }
  .p1 { grid-column: 1 / 4; grid-row: auto; }
  .p1s { grid-column: 1 / 4; grid-row: auto; width: 80%; }
  .p2 { grid-column: 4 / 7; grid-row: auto; }
  .p3 { grid-column: 1 / 4; grid-row: auto; }
  .p4 { grid-column: 4 / 7; grid-row: auto; }
  .flag-card { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) {
  .cork-grid { gap: 1.4rem 0.9rem; padding: 1.6rem 0.7rem 1.2rem; }
  .pol { padding: 0.55rem 0.55rem 0.45rem; }
  .notepad { padding-left: 3rem; }
}
@media (prefers-reduced-motion: reduce) { .flag-card .tyre { animation: none; } .cork-item { transition: none; } }

/* =====================================================================
   Wall and contact
   ===================================================================== */
.wall { position: relative; padding: 6rem clamp(1rem, 5vw, 4rem); background: var(--bg); }
.wall-card { --mx: -400px; --my: -400px; --nx: 0; --ny: 0; position: relative; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s cubic-bezier(.2, .9, .3, 1); display: grid; grid-template-columns: 0.85fr 1.15fr; max-width: 1040px; margin: 0 auto 3.2rem; border-radius: 30px; overflow: hidden; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.wall-card.is-hot { transition: transform 0.12s ease-out; }
.wall-card::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(110, 160, 255, 0.2), transparent 62%); }
.wall-side { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(1.6rem, 3.5vw, 2.6rem); color: #fff; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(255, 120, 180, 0.65), transparent 65%), linear-gradient(155deg, #1f3cc4 0%, #3d6ef0 42%, #8fcaff 82%, #dcf3ff 100%); }
.wall-side::before { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; border: 34px solid rgba(220, 243, 255, 0.25); transform: translate(calc(var(--nx) * -36px), calc(var(--ny) * -36px)); transition: transform 0.2s ease-out; }
.wall-side::after { content: ""; position: absolute; left: -50px; bottom: 30px; width: 160px; height: 160px; border-radius: 50%; background: linear-gradient(135deg, rgba(255, 130, 190, 0.55), rgba(255, 255, 255, 0.1)); transform: translate(calc(var(--nx) * 48px), calc(var(--ny) * 48px)); transition: transform 0.2s ease-out; }
.wall-side > * { position: relative; z-index: 1; }
.wall-eyebrow { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; margin-bottom: 1.1rem; }
.wall-side h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.wall-sub { font-size: 1.05rem; line-height: 1.55; opacity: 0.95; max-width: 30ch; }
.wall-pin { margin: auto 0 0; padding: 0.8rem 1rem; border-radius: 16px; background: rgba(16, 32, 130, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.35); font-size: 0.88rem; font-weight: 600; }

.note-form { padding: clamp(1.4rem, 3.5vw, 2.6rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-content: start; }
.note-form label { display: grid; gap: 0.45rem; font-weight: 700; font-size: 0.95rem; position: relative; align-content: start; }
.note-form label.full { grid-column: 1 / -1; }
.note-form small { color: var(--muted); font-weight: 500; }
.field { display: flex; align-items: center; gap: 0.7rem; padding: 0 1rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg-soft); color: var(--muted); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field:hover { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 24%, transparent); color: var(--blue); }
.field svg { width: 20px; height: 20px; flex: none; }
.field-area { align-items: flex-start; padding-top: 0.85rem; }
.field-area svg { margin-top: 0; }
.field input, .field textarea { font: inherit; font-weight: 500; width: 100%; min-width: 0; padding: 0.9rem 0; border: 0; background: transparent; color: var(--fg); resize: vertical; }
.field-area textarea { padding: 0 0 1.6rem; min-height: 6.5rem; }
.field input:focus, .field textarea:focus { outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.counter { position: absolute; right: 1rem; bottom: 0.6rem; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.send { grid-column: 1 / -1; justify-self: end; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.7rem; border: 0; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 1rem; color: #fff; background: linear-gradient(135deg, #2f56e8, #6f7bff 55%, #ff6fae); box-shadow: 0 12px 26px rgba(63, 109, 240, 0.4); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.send:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 111, 174, 0.45); }
.send:active { transform: translateY(1px); }
.notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; max-width: 1000px; margin: 0 auto; }
.note { width: 220px; min-height: 150px; padding: 1.3rem 1rem 0.9rem; background: var(--c, #fbe38a); color: #2a2218; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); transform: rotate(var(--r, 0deg)); position: relative; font-family: var(--hand); font-size: 1.4rem; line-height: 1.15; display: flex; flex-direction: column; gap: 0.6rem; animation: stick 0.35s ease; word-break: break-word; }
.note::before { content: ""; position: absolute; top: -9px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--coral); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.note footer { margin-top: auto; font-family: var(--body); font-size: 0.75rem; font-weight: 700; }
.note footer small { display: block; font-weight: 500; opacity: 0.65; }
.note .x { position: absolute; top: 4px; right: 8px; background: none; border: 0; cursor: pointer; font-size: 1.1rem; color: #2a2218; opacity: 0.6; }
.empty { color: var(--muted); font-family: var(--hand); font-size: 1.6rem; }
@keyframes stick { from { transform: rotate(var(--r, 0deg)) scale(1.25); opacity: 0; } to { transform: rotate(var(--r, 0deg)) scale(1); opacity: 1; } }

.contact { position: relative; padding: 7rem 1.2rem 0; text-align: center; background: var(--bg-soft); overflow: hidden; }
.contact > * { position: relative; z-index: 1; }
.contact > .contact-sky { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: min(640px, 80%); background: url("sky.jpg") center bottom / cover no-repeat; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 42%); mask-image: linear-gradient(to bottom, transparent 0%, #000 42%); pointer-events: none; }
.contact-inner { max-width: 760px; margin: 0 auto 3rem; }
.contact h2 { font-size: clamp(2.2rem, 6.5vw, 4.4rem); margin-bottom: 1rem; }

.contact-panel {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; max-width: 1000px; margin: 0 auto 9rem; padding: 1.6rem clamp(1rem, 3vw, 2.4rem) 2.2rem;
  border: 1.5px solid var(--line); border-radius: 32px; background-color: var(--card);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px; box-shadow: var(--shadow);
}
.contact-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.9;
  background-image: linear-gradient(color-mix(in srgb, var(--coral) 55%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--coral) 55%, transparent) 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000, transparent 70%); mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000, transparent 70%); }
.contact-panel > * { position: relative; }

.key-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.45rem; margin: 0 0 1.8rem; font-weight: 700; color: var(--muted); font-size: 0.95rem; }
.key-hint kbd { display: inline-grid; place-items: center; min-width: 2rem; padding: 0.25rem 0.5rem; border-radius: 8px; background: var(--bg-soft); color: var(--fg); opacity: 1; border: 1px solid var(--line); border-bottom-width: 3px; }

.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; align-items: center; }
.keys:has(.key-item:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.key-item { display: grid; grid-template-rows: 8.2rem auto 8.2rem; justify-items: center; }
.key-item .key { grid-row: 2; }
.note-above .key-note { grid-row: 1; align-self: end; }
.note-below .key-note { grid-row: 3; align-self: start; }
.key-note { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.3rem 0.4rem; max-width: 230px; font-family: var(--hand); font-size: 1.55rem; line-height: 1.05; }
.key-note p { margin: 0; }
.key-note .arrow { width: 28px; height: 42px; flex: none; fill: none; stroke: var(--coral); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.note-below .arrow { transform: scaleY(-1); }
.handle { font-family: var(--body); font-size: 0.95rem; font-weight: 700; color: var(--muted); }
.mail-line { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; font-family: var(--body); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.copy { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--fg); cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.copy:hover { transform: translateY(-2px); }
.copy.done { background: var(--coral); color: #fff; border-color: var(--coral); }

/* the keys: a dark socket, a coloured cap with a thick lower edge that squashes when pressed */
.key {
  --cap: #e0553c; --edge: #9c3623; --ink: #fff;
  --rx: 0deg; --ry: 0deg;
  position: relative; display: grid; place-items: center; width: 116px; height: 116px; border-radius: 28px; padding: 0; text-decoration: none; color: var(--ink);
  background: #111; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05), 0 14px 30px rgba(0, 0, 0, 0.35);
  transform: perspective(600px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s cubic-bezier(.2, .9, .3, 1);
}
[data-theme="light"] .key { background: #3a342b; }
.key.is-hot { transition: transform 0.1s ease-out; }
.key::before { content: ""; position: absolute; left: 9px; right: 9px; top: 7px; bottom: 7px; border-radius: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--cap) 82%, #fff), var(--cap)); box-shadow: 0 9px 0 var(--edge), 0 9px 0 1px rgba(0, 0, 0, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.35); transform: translateY(-4px); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.key:hover::before, .key:focus-visible::before { transform: translateY(-1px); box-shadow: 0 6px 0 var(--edge), 0 6px 0 1px rgba(0, 0, 0, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
.key:active::before, .key.pressed::before { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge), inset 0 2px 0 rgba(255, 255, 255, 0.25); }
.key svg { position: relative; width: 52px; height: 52px; transform: translateY(-4px); transition: transform 0.12s ease; }
.key:hover svg, .key:focus-visible svg { transform: translateY(-1px); }
.key:active svg, .key.pressed svg { transform: translateY(4px); }
.key-letter { position: absolute; z-index: 1; left: 20px; top: 15px; font-size: 0.72rem; font-weight: 800; opacity: 0.8; transform: translateY(-4px); transition: transform 0.12s ease; }
.key:hover .key-letter { transform: translateY(-1px); }
.key:active .key-letter, .key.pressed .key-letter { transform: translateY(4px); }
.key:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.key-mail { --cap: #e0553c; --edge: #9c3623; }
.key-insta { --cap: #d6409f; --edge: #8a2866; }
.key-insta::before { background: linear-gradient(135deg, #feda75, #fa7e1e 30%, #d62976 62%, #962fbf); }
.key-linkedin { --cap: #2f6fd0; --edge: #1d4a94; }
.key-resume { --cap: #f5c84c; --edge: #b48a1f; --ink: #231a00; }

.footer { padding: 1.5rem 1rem 7rem; color: #1d2c4a; font-size: 0.9rem; font-weight: 600; }
.footer p { margin: 0; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .notes-col { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); justify-items: center; margin-top: 1rem; }
  .hint-pill { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; }
  .sk-frame { grid-template-columns: 1fr; border-radius: 30px; }
  .sk-pen { display: none; }
  .sk-tabs { grid-template-columns: 1fr 1fr; }
  .sk-mid { min-height: 400px; }
  .wall-card { grid-template-columns: 1fr; max-width: 640px; }
  .wall-pin { margin-top: 1.4rem; }
  .focus-cards { grid-template-columns: 1fr; max-width: 560px; }
  .about-more { grid-template-columns: 1fr; max-width: 560px; }
  .keys, .keys:has(.key-item:nth-child(3):last-child) { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
}

@media (max-width: 760px) {
  .hero { padding-top: 5.5rem; padding-bottom: 9rem; align-items: start; }
  .statement { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .topright { top: 10px; gap: 6px; }
  .pill { padding: 0.4rem 0.85rem 0.4rem 0.4rem; font-size: 0.85rem; }
  .orb { width: 28px; height: 28px; }
  #themeBtn { padding-left: 0.85rem; }

  .dock { bottom: 10px; padding: 5px; gap: 0; }
  .dock a { padding: 0.55rem 0.5rem; font-size: 0.78rem; }
  .dock-resume span { display: none; }
  .dock-sep { margin: 6px 2px; }
  .sound { display: none; }

  .journey { height: 340vh; }
  .jcard { left: 10px; right: 10px; top: auto; bottom: 74px; transform: none; width: auto; max-height: 40svh; }
  .jhead { padding: 0.65rem 1rem; }
  .jicon { width: 42px; height: 42px; font-size: 1.4rem; }
  .jbody { padding: 0.9rem 1.1rem 1.1rem; }
  .jbody h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
  .jbody p { font-size: 0.95rem; margin-bottom: 0.7rem; }
  .compass { top: 66px; right: 10px; width: 62px; height: 62px; font-size: 0; }
  .compass svg { width: 32px; height: 32px; }
  .map-ctrl { right: 10px; bottom: auto; top: 140px; gap: 6px; }
  .map-ctrl button { width: 40px; height: 40px; border-radius: 12px; }
  .jprogress { top: 66px; bottom: auto; left: 10px; transform: none; padding: 0.4rem 0.8rem; gap: 0.6rem; max-width: calc(100vw - 90px); }
  .dots { gap: 5px; }
  .dots button { width: 10px; height: 10px; }
  .dots button.current { width: 16px; height: 16px; }
  .jlabel { font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; }
  .scroll-hint { display: none; }

  .work { padding-top: 5rem; }
  .deck { height: 300px; }
  .about { padding-top: 5rem; }
  .dock a { padding: 0.55rem 0.42rem; font-size: 0.74rem; }
  .cv-meta { top: 4.6rem; font-size: 0.8rem; }
  .note-form { grid-template-columns: 1fr; }
  .send { justify-self: stretch; justify-content: center; }
  .note-form { grid-template-columns: 1fr; }
  .contact-panel { margin-bottom: 7rem; border-radius: 24px; }
  .keys { align-items: start; }
  .key-item { grid-template-rows: auto auto auto; }
  .key-item .key { grid-row: 1; }
  .note-above .key-note, .note-below .key-note { grid-row: 2; align-self: start; }
  .note-above .key-note { flex-direction: column-reverse; }
  .note-above .arrow { transform: scaleY(-1); }
  .key { width: 96px; height: 96px; border-radius: 24px; }
  .key::before { left: 8px; right: 8px; top: 6px; bottom: 6px; border-radius: 18px; }
  .key svg { width: 42px; height: 42px; }
  .key-letter { left: 17px; top: 12px; }
  .key-note { font-size: 1.35rem; }
}

@media (max-width: 380px) {
  .dock a { padding: 0.5rem 0.38rem; font-size: 0.72rem; }
  #tourLabel { display: none; }
  .pill { padding-right: 0.4rem; }
  #themeBtn { padding-right: 0.85rem; }
}

@media (max-height: 560px) and (min-width: 761px) {
  .jcard { max-height: calc(100svh - 110px); }
  .jprogress, .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sk-frame, .sk-pen, .sk-tags li, .sk-dot, .skillset::after, .sk-auto::before { animation: none !important; }
  .sk-pen { display: none; }
  .swap, .sk-detail.show, .sk-tags button { animation: none; }
  .cv-script, .cv-glow { animation: none; clip-path: none; }
  .cv-scroll { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .hl { background-size: 100% 80%; }
  .scribble path, .uline svg path { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .focus-card, .about-more p, .key, .pass-tilt, .wall-card { transform: none !important; }
}

/* =====================================================================
   Torn paper edge at the end of every section
   ===================================================================== */
.tear { --paper: var(--bg); position: absolute; z-index: 40; left: 0; right: 0; top: -1px; height: 38px; pointer-events: none; filter: drop-shadow(0 7px 6px rgba(0, 0, 0, 0.32)); }
.tear i { position: absolute; inset: 0; display: block; }
.tear .tear-fibre { background: #e3d5b8; transform: translateY(5px); }
.tear .tear-paper { background: var(--paper); }
:root:not([data-theme="light"]) .tear .tear-fibre { background: #e9e2d2; }
#intro > .tear { --paper: #e9f2fd; }
#journey > .tear { --paper: var(--bg); }
#work > .tear { --paper: var(--map-bg); }
#about > .tear { --paper: var(--bg); }
#chaos > .tear { --paper: var(--bg-soft); }
#wall > .tear { --paper: var(--bg); }
#contact > .tear { --paper: var(--bg); }
@media (max-width: 720px) { .tear { height: 28px; } }

/* =====================================================================
   Finishing details: type rhythm, selection, a skip link, a scroll
   progress line, a live status dot and steadier numbers
   ===================================================================== */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: color-mix(in srgb, var(--blue) 38%, transparent); color: inherit; }

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100; padding: 0.6rem 1rem; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-weight: 700; text-decoration: none; transition: top 0.2s ease;
}
.skip:focus { top: 14px; }

.progress {
  position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 90; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--coral), var(--accent-glow), var(--blue));
  box-shadow: 0 0 10px color-mix(in srgb, var(--coral) 60%, transparent);
}

.status-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; }
.status-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3ecf8e;
  opacity: 0; animation: status-ping 2.4s ease-out infinite;
}
@keyframes status-ping { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

.hero-meta .clock, .cv-meta b { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .status-dot::after { animation: none; }
  .skip { transition: none; }
}

.sk-info { display: block; margin-top: 0.25rem; color: #9a9eab; font-size: 0.72rem; }
.sk-link { margin-top: 0.6rem; padding: 0; border: 0; background: none; color: #9fb4ff; font-family: var(--mono); font-size: 0.8rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sk-link:hover { color: #fff; }
.sk-link { display: inline-block; }

/* My chaos: a little bigger board, and a larger notepad */
.cork { max-width: 1240px; padding: clamp(18px, 3vw, 34px); }
.cork-grid { padding: clamp(2rem, 4.6vw, 3.8rem) clamp(1.2rem, 3.4vw, 3rem) clamp(1.6rem, 3.4vw, 2.8rem); }
.notepad { padding: 1.9rem 1.9rem 2rem 3.8rem; }
.notepad h3 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
.notepad li { font-size: 1.04rem; }

/* Off the clock notepad: smaller, so it takes less of the board */
.notepad { grid-column: 5 / 9; padding: 1.1rem 1.1rem 1.2rem 2.6rem; }
.notepad::before { left: 2rem; }
.notepad h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.notepad li { font-size: 0.9rem; line-height: 1.7rem; }
.notepad li::before { top: 0.7rem; }

/* Gramophone: now spinning, links to Spotify */
.gramo { grid-column: 11 / 13; grid-row: 2; padding: 1.1rem 1rem 1.2rem; border-radius: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; color: #f3e7d0; background: linear-gradient(160deg, #3b2a1d, #20150d); box-shadow: 0 14px 26px rgba(40, 22, 6, 0.35); }
.gramo svg { width: 100%; max-width: 200px; height: auto; }
.gr-record { transform-box: fill-box; transform-origin: center; animation: gr-spin 4s linear infinite; }
@keyframes gr-spin { to { transform: rotate(360deg); } }
.gr-label { margin: 0.4rem 0 0; font-family: var(--hand); font-size: 1.3rem; line-height: 1; color: #e0b030; }
.gr-title { margin: 0.2rem 0 0; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.gr-btn { margin-top: 0.7rem; padding: 0.5rem 1rem; border-radius: 999px; background: #1db954; color: #0b0b0b; font-weight: 700; font-size: 0.85rem; text-decoration: none; }
.gr-btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.gr-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 1000px) { .gramo { grid-column: 1 / -1; grid-row: auto; } }
@media (prefers-reduced-motion: reduce) { .gr-record { animation: none; } }

/* Gramophone card v2: text-light, animated, cursor-responsive */
.gramo { overflow: hidden; padding: 1rem 1rem 1.1rem; }
.gramo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 214, 140, 0.28), transparent 55%); }
.gramo.hot::after { opacity: 1; }
.gramo-link { display: flex; flex-direction: column; align-items: center; color: inherit; text-decoration: none; position: relative; z-index: 1;
  transform: perspective(700px) rotateX(var(--gy, 0deg)) rotateY(var(--gx, 0deg)); transition: transform 0.25s ease-out; will-change: transform; }
.gramo-link[aria-disabled="true"] { pointer-events: none; }
.gramo-stage { position: relative; width: 100%; max-width: 200px; }
.gramo-stage svg { display: block; width: 100%; height: auto; }
.gr-record { transform-box: fill-box; transform-origin: center; animation: gr-spin 3.2s linear infinite; }
.gramo.hot .gr-record { animation-duration: 0.9s; }
.note { position: absolute; left: 60%; bottom: 40%; font-size: 1.4rem; color: #f3e7d0; opacity: 0; pointer-events: none; animation: note-rise 3.2s ease-in infinite; }
.note.n2 { left: 72%; animation-delay: 1.1s; font-size: 1.1rem; }
.note.n3 { left: 48%; animation-delay: 2.2s; font-size: 1.2rem; }
.gramo.hot .note { animation-duration: 1.8s; }
@keyframes note-rise { 0% { transform: translate(0, 0) rotate(-6deg); opacity: 0; } 15% { opacity: 0.9; } 100% { transform: translate(26px, -90px) rotate(10deg); opacity: 0; } }
.gramo-title { margin: 0.9rem 0 0; font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.gramo-hint { margin: 0.25rem 0 0; font-family: var(--hand); font-size: 1.25rem; line-height: 1; color: #e0b030; }
.gramo-link[aria-disabled="true"] .gramo-hint { opacity: 0.6; }
.gramo-link:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .gr-record, .note { animation: none; } .gramo-link { transform: none; } }

/* =====================================================================
   ConsultHub section
   ===================================================================== */
.ch { position: relative; overflow: hidden; isolation: isolate; padding: clamp(4.5rem, 10vw, 8rem) clamp(1.2rem, 4vw, 3rem); background: #0d0e1c; color: #f4f1ea; }
.ch::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(640px circle at var(--sx, 50%) var(--sy, 40%), rgba(255, 140, 110, 0.20), transparent 60%),
              radial-gradient(520px circle at 85% 100%, rgba(79, 123, 255, 0.18), transparent 60%); transition: background 0.2s; }
.ch-inner { max-width: 1120px; margin: 0 auto; }
.ch-eyebrow { margin: 0; font-family: var(--mono, monospace); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #ffb89d; }
.ch-title { margin: 0.6rem 0 0; font-family: var(--display); font-weight: 900; font-size: clamp(3.2rem, 11vw, 8.5rem); line-height: 0.95; letter-spacing: -0.02em; }
.ch-title span { background: linear-gradient(90deg, var(--coral, #ff8a6b), #ffd27a, #8fb3ff, var(--coral, #ff8a6b)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ch-shimmer 6s linear infinite; }
@keyframes ch-shimmer { to { background-position: 300% 0; } }
.ch-lead { max-width: 60ch; margin: 1.3rem 0 0; font-size: clamp(1.02rem, 1.6vw, 1.22rem); line-height: 1.6; color: #cfd2e6; }
.ch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: clamp(2rem, 5vw, 3.2rem); }
.ch-card { position: relative; padding: 1.6rem 1.5rem 1.7rem; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(6px); transform: perspective(800px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform 0.3s ease-out, border-color 0.3s, background 0.3s; overflow: hidden; }
.ch-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--cx, 50%) var(--cy, 50%), rgba(255, 200, 150, 0.22), transparent 60%); }
.ch-card:hover { border-color: rgba(255, 184, 157, 0.45); background: rgba(255, 255, 255, 0.07); }
.ch-card:hover::before { opacity: 1; }
.ch-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.6rem; background: rgba(255, 255, 255, 0.07); transition: transform 0.4s cubic-bezier(.2, .9, .3, 1.4); }
.ch-card:hover .ch-ico { transform: translateY(-4px) rotate(-8deg) scale(1.08); }
.ch-card h3 { margin: 1.1rem 0 0.4rem; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; }
.ch-card p { margin: 0; color: #c4c8de; line-height: 1.6; font-size: 0.98rem; }
.ch-cta { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; margin-top: clamp(2.2rem, 5vw, 3.4rem); padding: 1.05rem 1.7rem; border-radius: 999px;
  background: var(--coral, #ff8a6b); color: #15131a; font-weight: 800; font-size: 1.05rem; text-decoration: none; box-shadow: 0 16px 34px rgba(255, 110, 80, 0.35);
  transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform 0.35s cubic-bezier(.2, .9, .3, 1), box-shadow 0.3s; }
.ch-cta b { display: inline-block; transition: transform 0.3s; }
.ch-cta:hover { box-shadow: 0 22px 44px rgba(255, 110, 80, 0.5); }
.ch-cta:hover b { transform: translate(3px, -3px); }
.ch-cta:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.ch-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .9, .3, 1); }
.ch-reveal.in { opacity: 1; transform: none; }
.ch-card.ch-reveal.in { transform: perspective(800px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); }
.ch-cta.ch-reveal.in { transform: translate(var(--mx, 0px), var(--my, 0px)); }
@media (max-width: 860px) { .ch-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ch-title span { animation: none; } .ch-reveal { opacity: 1; transform: none; transition: none; } .ch-card, .ch-cta { transform: none !important; transition: none; } }

/* =====================================================================
   My chaos: a livelier board
   ===================================================================== */
.cork-item { transition: filter 0.35s ease; animation: cork-in 0.8s ease both; }
.cork-item:hover { filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.35)); }
.cork-item .pin { transition: transform 0.3s ease; }
.cork-item:hover .pin { transform: translateX(-50%) scale(1.25); }
.cork-grid > :nth-child(2) { animation-delay: 0.08s; }
.cork-grid > :nth-child(3) { animation-delay: 0.16s; }
.cork-grid > :nth-child(4) { animation-delay: 0.24s; }
.cork-grid > :nth-child(5) { animation-delay: 0.32s; }
@keyframes cork-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cork-item { animation: none; } }

/* =====================================================================
   Our startup section
   ===================================================================== */
.os { position: relative; overflow: hidden; isolation: isolate; padding: clamp(4rem, 9vw, 7.5rem) clamp(1.2rem, 4vw, 3rem); background: #0b0b12; color: #f4f1ea; }
.os-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(760px circle at var(--gx, 30%) var(--gy, 40%), rgba(70, 110, 255, 0.22), transparent 60%),
              radial-gradient(520px circle at 0% 100%, rgba(255, 140, 110, 0.14), transparent 60%); transition: background 0.25s; }
.os-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.os-eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; font-family: var(--mono, monospace); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9fb4ff; }
.os-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; animation: os-pulse 2s infinite; }
@keyframes os-pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(62, 207, 142, 0); } }
.os-title { margin: 0.9rem 0 0; font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.02em; }
.os-title em { font-style: normal; background: linear-gradient(90deg, #8fb3ff, #ffb89d, #8fb3ff); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: os-shift 6s linear infinite; }
@keyframes os-shift { to { background-position: 250% 0; } }
.os-lead { max-width: 46ch; margin: 1.3rem 0 0; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.7; color: #c9cde2; }
.os-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 0; padding: 0; }
.os-chips li { padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); font-size: 0.9rem; transition: transform 0.3s, border-color 0.3s, background 0.3s; }
.os-chips li:hover { transform: translateY(-3px); border-color: rgba(159, 180, 255, 0.6); background: rgba(159, 180, 255, 0.12); }
.os-stage { position: relative; perspective: 1000px; padding: 0 clamp(0px, 3vw, 28px); }
.os-frame { position: relative; border-radius: 18px; overflow: hidden; background: #1c1d28; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform 0.35s ease-out; }
.os-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.9rem; background: #25262f; }
.os-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.os-bar i:nth-child(2) { background: #febc2e; }
.os-bar i:nth-child(3) { background: #28c840; }
.os-url { margin-left: 0.8rem; flex: 1; padding: 0.35rem 0.8rem; border-radius: 8px; background: #15161e; color: #8d91a8; font-family: var(--mono, monospace); font-size: 0.78rem; }
.os-frame img { display: block; width: 100%; height: auto; }
.os-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.16) 50%, transparent 60%);
  background-size: 250% 100%; background-position: var(--shine, 120%) 0; mix-blend-mode: screen; }
.os-float-wrap { position: absolute; z-index: 2; transition: transform 0.5s ease-out; }
.os-float { display: inline-block; padding: 0.5rem 0.9rem; border-radius: 12px; background: rgba(15, 16, 26, 0.82); border: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.85rem; font-weight: 700; backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); animation: os-bob 5s ease-in-out infinite; }
@keyframes os-bob { 50% { translate: 0 -8px; } }
.f1 { top: -14px; left: -18px; }
.f2 { bottom: 14%; left: -26px; }
.f2 .os-float { animation-delay: 1s; }
.f3 { top: 36%; right: -20px; }
.f3 .os-float { animation-delay: 2s; }
.os-rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .9, .3, 1); }
.os-rv.in { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .os-inner { grid-template-columns: 1fr; }
  .f1 { left: 8px; } .f2 { left: 8px; } .f3 { right: 8px; }
}
@media (max-width: 520px) { .os-float { font-size: 0.75rem; padding: 0.4rem 0.7rem; } .os-url { font-size: 0.7rem; } }
@media (prefers-reduced-motion: reduce) { .os-dot, .os-title em, .os-float { animation: none; } .os-rv { opacity: 1; transform: none; transition: none; } .os-frame, .os-float-wrap { transform: none !important; transition: none; } }

/* Our startup inside the Work section, bold heading and direct link */
.work .os { max-width: 1200px; margin: 4rem auto 0; border-radius: 28px; padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3.4rem); }
.os-title { font-weight: 900; font-size: clamp(3.2rem, 8vw, 6.4rem); letter-spacing: -0.03em; }
.os-title em { font-style: normal; }
.os-cta { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2rem; padding: 1rem 1.6rem; border-radius: 999px; background: #4f7bff; color: #fff; font-weight: 800; font-size: 1rem; text-decoration: none;
  box-shadow: 0 16px 34px rgba(79, 123, 255, 0.35); transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform 0.35s cubic-bezier(.2, .9, .3, 1), box-shadow 0.3s, background 0.3s; }
.os-cta b { display: inline-block; transition: transform 0.3s; }
.os-cta:hover { background: #6b8dff; box-shadow: 0 22px 44px rgba(79, 123, 255, 0.5); }
.os-cta:hover b { transform: translate(3px, -3px); }
.os-cta:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.os-cta.os-rv.in { transform: translate(var(--mx, 0px), var(--my, 0px)); }

/* =====================================================================
   Campus ambassador: a typewriter that feeds paper and types as you scroll.
   Every size inside .amb-machine is in cqw (1% of the machine's width), so the whole machine scales as one piece.
   ===================================================================== */
.amb { position: relative; height: 520vh; background: #0b0c11; color: #f3ede2; --pl: 8; --pr: 8; --ls: 1.4; --feed: 0; }
.amb-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }

/* the room: a dark wall, a desk, and a lamp that follows the pointer */
.amb-room {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #0a0c12 0%, #0e1119 19%, #2b3044 23%, #20243a 55%, #14161f 100%);
}
.amb-room::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 12%, rgba(90, 110, 170, 0.14), transparent 70%); }
.amb-lamp {
  position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0.9;
  background: radial-gradient(520px 420px at var(--lx, 50%) var(--ly, 38%), rgba(255, 190, 120, 0.2), transparent 70%);
}
.amb-dust {
  position: absolute; inset: 0; opacity: 0.5;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff8, transparent 60%), radial-gradient(1px 1px at 28% 64%, #fff7, transparent 60%),
    radial-gradient(1.5px 1.5px at 47% 14%, #fff6, transparent 60%), radial-gradient(1px 1px at 63% 48%, #fff7, transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 26%, #fff8, transparent 60%), radial-gradient(1px 1px at 88% 70%, #fff6, transparent 60%),
    radial-gradient(1px 1px at 36% 86%, #fff6, transparent 60%), radial-gradient(1.5px 1.5px at 92% 12%, #fff7, transparent 60%);
  animation: ambDust 18s ease-in-out infinite alternate;
}
@keyframes ambDust { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-14px, 18px, 0); } }

/* heading, edit button and progress rail */
.amb-intro { position: absolute; z-index: 6; left: clamp(16px, 3vw, 48px); top: clamp(64px, 11vh, 110px); max-width: 15.5rem; }
.amb-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 0.7rem; padding: 0.4rem 0.8rem; border-radius: 999px;
  font: 500 0.72rem/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #d9d2c4;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px);
}
.amb-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff6a3d; box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.6); animation: ambPulse 2.2s infinite; }
@keyframes ambPulse { 70% { box-shadow: 0 0 0 9px rgba(255, 106, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0); } }
.amb-title { margin: 0 0 0.6rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.02; letter-spacing: -0.01em; color: #f7f1e6; }
.amb-title em { font-style: normal; color: #ff8a5c; }
.amb-sub { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.5; color: #aaa397; }
.amb-edit {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.85rem 0.6rem 0.8rem; border-radius: 999px; cursor: pointer;
  font: 700 0.85rem var(--body); color: #1b1208; background: #ffd36a; border: 0; box-shadow: 0 8px 26px rgba(255, 190, 80, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.amb-edit:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 12px 30px rgba(255, 190, 80, 0.4); }
.amb-edit:active { transform: translateY(0) scale(0.97); }
.amb-edit kbd { font: 600 0.68rem "IBM Plex Mono", monospace; padding: 0.15rem 0.4rem; border-radius: 6px; background: rgba(27, 18, 8, 0.14); }

.amb-state { position: absolute; z-index: 6; right: 14px; top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; justify-items: end; font: 500 0.78rem "IBM Plex Mono", monospace; color: #8d877c; }
.amb-state li { display: flex; align-items: center; gap: 0.7rem; }
.amb-state span { opacity: 0; transform: translateX(8px); transition: 0.35s ease; letter-spacing: 0.04em; }
.amb-state i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); transition: 0.35s ease; }
.amb-state li.on { color: #f1eadc; }
.amb-state li.on span { opacity: 1; transform: none; }
.amb-state li.on i { background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.7); transform: scale(1.25); }

/* ---------------- the machine ---------------- */
.amb-machine {
  position: absolute; left: 50%; bottom: clamp(84px, 12svh, 112px); z-index: 3;
  width: min(100vw, 118svh); aspect-ratio: 100 / 42; container-type: inline-size;
  --pw: min(60cqw, 840px);
  transform: translateX(-50%) perspective(1700px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transform-origin: 50% 100%; will-change: transform;
}
.amb-machine > * { position: absolute; }
.amb-machine button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* the paper window sits above the platen and clips the sheet as it comes out of the machine */
.amb-win { left: 50%; bottom: calc(100% - 2.2cqw); width: var(--pw); height: var(--winh, 50svh); transform: translateX(-50%); overflow: hidden; z-index: 1; }
.amb-paper {
  --pf: clamp(12px, 1.5cqw, 21px);
  position: absolute; inset: 0; transform: translateY(calc((1 - var(--feed, 0)) * 102%));
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.13), transparent 3.5%, transparent 96.5%, rgba(0, 0, 0, 0.15)),
    #ebe7db;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.35);
  transition: background-color 0.5s ease;
}
.amb-paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.amb-curl { left: 0; right: 0; bottom: 0; height: 9cqw; pointer-events: none; background: linear-gradient(to top, rgba(8, 6, 4, 0.62), rgba(8, 6, 4, 0.18) 45%, transparent); }
.amb-paper > * { position: absolute; }

/* paper types: roll, fanfold with tractor holes, and a ruled index card */
.paper-fan {
  background:
    radial-gradient(circle at 50% 50%, #3b3a35 0 2.6px, transparent 3px) 1.6% 0 / 2.2% 3.4em repeat-y,
    radial-gradient(circle at 50% 50%, #3b3a35 0 2.6px, transparent 3px) 98.4% 0 / 2.2% 3.4em repeat-y,
    repeating-linear-gradient(180deg, rgba(120, 175, 135, 0.34) 0 3.4em, rgba(255, 255, 255, 0) 3.4em 6.8em),
    linear-gradient(90deg, rgba(0, 0, 0, 0.13), transparent 3.5%, transparent 96.5%, rgba(0, 0, 0, 0.15)),
    #edf0e1;
}
.paper-fan .amb-sheet { padding-left: max(calc(var(--pl) * 1%), 6%); padding-right: max(calc(var(--pr) * 1%), 6%); }
.paper-card {
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(var(--pf) * 1.4 - 1px), rgba(70, 110, 190, 0.28) calc(var(--pf) * 1.4 - 1px) calc(var(--pf) * 1.4)),
    linear-gradient(90deg, transparent 5.2%, rgba(220, 70, 60, 0.4) 5.2% calc(5.2% + 1.5px), transparent calc(5.2% + 1.5px)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 3.5%, transparent 96.5%, rgba(0, 0, 0, 0.12)),
    #f3ecd6;
}

.amb-sheet {
  left: 0; right: 0; top: 0; padding: 4.2cqw calc(var(--pr) * 1%) 3cqw calc(var(--pl) * 1%); will-change: transform;
  font-family: "Courier Prime", "Courier New", ui-monospace, monospace; font-size: var(--pf); line-height: var(--ls); color: #25211c;
  text-shadow: 0 0 0.7px rgba(37, 33, 28, 0.6);
}
.ln { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ln .un { color: transparent; text-shadow: none; }
.ln.l-h1 { font-weight: 700; font-size: 1.32em; letter-spacing: 0.05em; line-height: 1.25; }
.ln.l-sub { color: #5d564b; font-size: 0.92em; }
.ln.l-p { margin-top: 0.7em; }
.ln.l-gap { margin-top: 0.8em; }
.ln.l-kv { padding-left: 9ch; text-indent: -9ch; margin-top: 0; }
.ln.l-h2 { margin-top: 1.1em; font-weight: 700; letter-spacing: 0.16em; color: #9b3524; }
.ln.l-date { margin-top: 1em; color: #9b3524; font-size: 0.9em; letter-spacing: 0.06em; }
.ln.l-title { font-weight: 700; }
.ln.l-note { color: #3a352d; }
.ln.l-muted { color: #6b6458; font-style: italic; }
.ln.l-sig { margin-top: 1.1em; font-family: var(--hand), "Caveat", cursive; font-weight: 700; font-size: 1.9em; line-height: 1; color: #1f3a8a; text-shadow: none; letter-spacing: 0.01em; }
.ln.l-sig .un { color: transparent; }
.amb-caret { display: inline-block; position: relative; width: 0; height: 1em; vertical-align: -0.12em; }
.amb-caret::after { content: ""; position: absolute; left: 0; top: -0.05em; width: 0.58em; height: 1.18em; background: rgba(37, 33, 28, 0.86); animation: ambBlink 1s steps(1) infinite; mix-blend-mode: multiply; }
@keyframes ambBlink { 50% { opacity: 0.12; } }

.amb-rule { height: 0; margin: 0.8em 0; border-top: 1.5px dashed rgba(37, 33, 28, 0.5); opacity: 0; transform: scaleX(0.15); transform-origin: left; transition: opacity 0.4s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.amb-rule.on { opacity: 1; transform: none; }

.amb-photos { display: flex; flex-wrap: wrap; gap: 0.7em 1em; margin: 0.7em 0 0.4em; padding: 0.3em 0 0.5em 0.3em; }
.amb-photo {
  --r: 0deg; position: relative; width: calc(var(--pf) * 8.6); aspect-ratio: 4 / 3; padding: 0.4em; background: #fdfcf8; border: 0; cursor: zoom-in;
  box-shadow: 0 6px 14px rgba(40, 30, 20, 0.32), 0 1px 2px rgba(40, 30, 20, 0.4);
  opacity: 0; transform: translateY(26px) scale(0.7) rotate(calc(var(--r) * 3));
  transition: opacity 0.35s ease, transform 0.7s cubic-bezier(0.2, 1.4, 0.4, 1); transition-delay: calc(var(--i, 0) * 0.12s);
}
.amb-photos.on .amb-photo { opacity: 1; transform: rotate(var(--r)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.amb-photos.on .amb-photo:hover, .amb-photos.on .amb-photo:focus-visible { z-index: 2; transform: rotate(0deg) scale(1.08) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition-delay: 0s; transition-duration: 0.25s; box-shadow: 0 14px 28px rgba(40, 30, 20, 0.4); }
.amb-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.amb-photo::before { content: ""; position: absolute; left: 50%; top: -0.55em; width: 3.4em; height: 1.1em; transform: translateX(-50%) rotate(-3deg); background: rgba(244, 222, 140, 0.72); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }

/* the rubber stamp lands when the page is done */
.amb-stamp {
  right: 6%; top: 14%; width: calc(var(--pf) * 8.2); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center;
  border: 0.24em solid rgba(176, 44, 32, 0.8); color: rgba(176, 44, 32, 0.86); mix-blend-mode: multiply; pointer-events: none;
  font: 700 calc(var(--pf) * 0.62)/1.35 "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0; transform: rotate(-13deg) scale(1.9);
}
.amb-stamp::before { content: ""; position: absolute; inset: 0.45em; border-radius: 50%; border: 0.1em dashed rgba(176, 44, 32, 0.7); }
.amb-stamp span { white-space: pre-line; }
.amb-stamp.on { opacity: 0.92; transform: rotate(-13deg) scale(1); transition: transform 0.32s cubic-bezier(0.3, 1.7, 0.5, 1), opacity 0.12s ease; }

/* bail rod over the paper */
.m-bail { left: calc(50% - var(--pw) / 2 - 3cqw); width: calc(var(--pw) + 6cqw); top: -4.6cqw; height: 0.95cqw; z-index: 2; border-radius: 1cqw; background: linear-gradient(180deg, #9a9ca3, #45474e 55%, #1a1b1f); box-shadow: 0 0.7cqw 1.4cqw rgba(0, 0, 0, 0.5); pointer-events: none; }
.m-bail i { position: absolute; top: -1cqw; width: 0.75cqw; height: 3cqw; border-radius: 0.3cqw; background: linear-gradient(90deg, #f1f1f3, #8b8c92); box-shadow: 0 0.4cqw 0.8cqw rgba(0, 0, 0, 0.5); }
.m-bail i:first-child { left: 22%; } .m-bail i:last-child { right: 22%; }

/* platen, cheeks and knobs */
.m-cheek { top: -2cqw; width: 9.5cqw; height: 15cqw; z-index: 3; background: linear-gradient(90deg, #544b42, #2d2823 55%, #1b1815); box-shadow: inset 0 0.25cqw 0 rgba(255, 255, 255, 0.16), 0 1.2cqw 2.4cqw rgba(0, 0, 0, 0.5); pointer-events: none; }
.m-cheek.l { left: 4.6cqw; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); border-radius: 1.2cqw 0 0 0; }
.m-cheek.r { right: 4.6cqw; clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%); border-radius: 0 1.2cqw 0 0; transform: scaleX(-1); }
.m-platen {
  left: 10.5cqw; right: 10.5cqw; top: 0; height: 9.6cqw; z-index: 4; border-radius: 1.5cqw 1.5cqw 0.7cqw 0.7cqw; pointer-events: none;
  background:
    radial-gradient(34% 100% at var(--hx, 50%) 0%, rgba(255, 255, 255, 0.2), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #72665a 0%, #3c342d 13%, #1d1a17 46%, #2d2823 78%, #0f0d0b 100%);
  box-shadow: inset 0 0.22cqw 0 rgba(255, 255, 255, 0.2), inset 0 -1.1cqw 1.6cqw rgba(0, 0, 0, 0.55), 0 1.2cqw 2.6cqw rgba(0, 0, 0, 0.55);
}
.m-knob {
  top: 1.2cqw; width: 5cqw; height: 9.2cqw; z-index: 5; border-radius: 1.1cqw; pointer-events: none;
  background: repeating-linear-gradient(180deg, #17140f 0 0.38cqw, #5a5046 0.38cqw 0.72cqw);
  background-position: 0 var(--spin, 0px);
  box-shadow: inset 0 0 1.4cqw rgba(0, 0, 0, 0.65), 0 0.8cqw 1.8cqw rgba(0, 0, 0, 0.55);
}
.m-knob::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 35%, transparent 60%, rgba(0, 0, 0, 0.5)); }
.m-knob.l { left: 0.6cqw; } .m-knob.r { right: 0.6cqw; }

/* ruler glass */
.m-rail { left: 5.5cqw; right: 5.5cqw; top: 9.2cqw; height: 8.6cqw; z-index: 4; clip-path: polygon(1.5% 0, 98.5% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, #17130f 0%, #25201b 48%, #0d0b09 100%); overflow: hidden; }
.m-rail::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 0.1%, transparent 0.1% 10%) 0 0 / 10% 100%; }
.m-scale { position: absolute; left: 50%; top: 0; bottom: 0; width: var(--pw); transform: translateX(-50%); }
.m-ticks { position: absolute; left: 0; right: 0; top: 3.9cqw; height: 1.1cqw; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 1%) left bottom / 100% 55% no-repeat; }
.m-ticks::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 1.5px, transparent 1.5px 10%); }
.m-ticks::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1.5px; background: rgba(255, 255, 255, 0.85); }
.m-nums span { position: absolute; top: 5.2cqw; transform: translateX(-50%); font: italic 500 max(8px, 1.5cqw) "IBM Plex Mono", monospace; color: #dcd7cc; text-shadow: 0 0 0.6cqw rgba(0, 0, 0, 0.7); pointer-events: none; }
.m-carriage { position: absolute; top: 1.7cqw; left: calc(var(--cx, 8) * 1%); width: 1cqw; height: 1cqw; border-radius: 0.2cqw; transform: translateX(-50%); background: #f6f2e8; box-shadow: 0 0 0.9cqw rgba(255, 255, 255, 0.65); transition: left 0.09s linear; pointer-events: none; }
.amb-machine .m-mark {
  position: absolute; top: 2.4cqw; width: 0; height: 0; transform: translateX(-50%); touch-action: none; cursor: ew-resize !important;
  border-left: 0.85cqw solid transparent; border-right: 0.85cqw solid transparent; border-top: 1.3cqw solid #f0552f;
  filter: drop-shadow(0 0 0.5cqw rgba(240, 85, 47, 0.6)); transition: filter 0.2s ease, transform 0.2s ease;
}
.amb-machine .m-mark::after { content: ""; position: absolute; left: -2cqw; right: -2cqw; top: -3cqw; bottom: -1cqw; }
.amb-machine .m-mark:hover, .amb-machine .m-mark.drag, .amb-machine .m-mark:focus-visible { transform: translateX(-50%) translateY(0.3cqw) scale(1.15); filter: drop-shadow(0 0 0.9cqw rgba(255, 120, 70, 0.95)); outline: 0; }
.amb-machine .m-mark.ml { left: calc(var(--pl) * 1%); } .amb-machine .m-mark.mr { left: calc(100% - var(--pr) * 1%); }
.m-glass { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; filter: blur(0.35cqw);
  background:
    radial-gradient(ellipse 22% 130% at var(--gx, 50%) 55%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1) 46%, transparent 72%),
    radial-gradient(circle at calc(var(--gx, 50%) - 21%) 72%, rgba(255, 255, 255, 0.4) 0 1.1%, transparent 1.7%),
    radial-gradient(circle at calc(var(--gx, 50%) - 14%) 76%, rgba(255, 255, 255, 0.3) 0 1.4%, transparent 2%),
    radial-gradient(circle at calc(var(--gx, 50%) + 12%) 28%, rgba(255, 255, 255, 0.28) 0 1%, transparent 1.6%);
}

/* control deck */
.m-deck {
  left: 0; right: 0; top: 17.4cqw; height: 24.6cqw; z-index: 4; clip-path: polygon(3.2% 0, 96.8% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(16cqw 12cqw at var(--dx, 50%) var(--dy, 30%), rgba(255, 255, 255, 0.075), transparent 70%),
    linear-gradient(180deg, #4d453c 0%, #3b342e 7%, #322c27 45%, #26221e 100%);
}
.m-deck::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, 0.16); }
.m-deck > * { position: absolute; }
.m-deck small, .m-deck .m-name, .m-lcd-cap, .m-lcd-row, .m-keys, .m-paper-labels, .m-dial-l { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.m-name { font: 700 italic max(8px, 1.35cqw) / 1 var(--body); letter-spacing: 0.05em; color: #e5dfd3; display: block; text-align: center; }
.m-deck small { display: block; margin-top: 0.4cqw; font-size: max(6px, 0.78cqw); letter-spacing: 0.12em; color: #7a7266; font-style: italic; text-align: center; }

.m-paper { left: 6.2cqw; top: 6cqw; width: 13cqw; text-align: center; }
.m-paper-labels { display: flex; justify-content: space-between; padding: 0 0.4cqw; font-size: max(7px, 0.95cqw); font-weight: 700; letter-spacing: 0.06em; font-style: italic; }
.m-paper-labels button { color: #7d7569; padding: 0.3cqw 0.2cqw; transition: color 0.2s ease; }
.m-paper-labels button:hover, .m-paper-labels button.on { color: #efe8da; }
.m-track { position: relative; display: block; height: 1.7cqw; margin: 0.4cqw 0 1.1cqw; border-radius: 1cqw; background: linear-gradient(180deg, #14110e, #2a2521); box-shadow: inset 0 0.2cqw 0.5cqw rgba(0, 0, 0, 0.8), 0 0.1cqw 0 rgba(255, 255, 255, 0.08); }
.m-track i { position: absolute; top: -0.4cqw; left: var(--tp, 0%); width: 3.6cqw; height: 2.6cqw; border-radius: 0.6cqw; background: linear-gradient(90deg, #17130f, #3a332b); box-shadow: 0 0.4cqw 0.8cqw rgba(0, 0, 0, 0.6), inset 0 0.15cqw 0 rgba(255, 255, 255, 0.16); transition: left 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
.m-track i::after { content: ""; position: absolute; left: 1.55cqw; top: 0.2cqw; bottom: 0.2cqw; width: 0.4cqw; background: #f0552f; transform: skewX(-12deg); }

.m-lcd { left: 23cqw; right: 23cqw; top: 4.1cqw; height: 11.6cqw; }
.m-lcd-cap { position: absolute; top: -1.6cqw; font-size: max(6px, 0.72cqw); letter-spacing: 0.1em; color: #8b8377; font-style: italic; }
.m-lcd-cap.l { left: 1cqw; } .m-lcd-cap.r { right: 2cqw; }
.m-lcd-bezel { position: absolute; inset: 0; border-radius: 2cqw; background: linear-gradient(180deg, #1c1815, #2e2924); box-shadow: inset 0 0.25cqw 1cqw rgba(0, 0, 0, 0.85), 0 0.12cqw 0 rgba(255, 255, 255, 0.09); }
.m-lcd-screen {
  position: absolute; inset: 1.9cqw 2.2cqw; padding: 0.9cqw 1.4cqw; border-radius: 0.5cqw; overflow: hidden; color: #2b2f24;
  background:
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px) 0 0 / 100% 0.52cqw,
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px) 0 0 / 0.52cqw 100%,
    linear-gradient(180deg, #e3e6d6, #cdd2bd);
  box-shadow: inset 0 0 1.4cqw rgba(60, 70, 40, 0.38);
}
.m-lcd-row { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; font-size: max(6.5px, 0.95cqw); letter-spacing: 0.06em; }
.m-lcd-row b { font-weight: 500; }
.m-lcd-ruler { position: relative; flex: 1; height: 0.7cqw; background: repeating-linear-gradient(90deg, rgba(43, 47, 36, 0.55) 0 1px, transparent 1px 4%) left bottom / 100% 55% no-repeat; border-bottom: 1px solid rgba(43, 47, 36, 0.6); }
.m-lcd-ruler i { position: absolute; top: 0.5cqw; left: var(--lr, 8%); width: 0; height: 0; border-left: 0.35cqw solid transparent; border-right: 0.35cqw solid transparent; border-bottom: 0.55cqw solid #2b2f24; transform: translateX(-50%); transition: left 0.1s linear; }
.m-lcd-buf { margin-top: 1.5cqw; font-size: max(8px, 1.75cqw); letter-spacing: 0.08em; white-space: pre; overflow: hidden; line-height: 1.1; min-height: 1.2em; }
.m-lcd-buf u { display: inline-block; width: 0.8cqw; height: 0.2cqw; margin-left: 0.2cqw; background: #2b2f24; text-decoration: none; animation: ambBlink 0.9s steps(1) infinite; vertical-align: baseline; }

.m-dial { right: 6cqw; top: 3.4cqw; width: 13cqw; height: 12cqw; text-align: center; }
.m-dial-l { position: absolute; font-size: max(8px, 1.15cqw); font-weight: 600; color: #d9d2c4; transition: color 0.25s ease, transform 0.25s ease; }
.m-dial-l.a { left: 1.6cqw; top: 1.3cqw; } .m-dial-l.b { left: 5.6cqw; top: -0.6cqw; } .m-dial-l.c { right: 1.6cqw; top: 1.3cqw; }
.m-dial-l.on { color: #ff8a5c; transform: scale(1.25); }
.m-dial-knob { position: absolute; left: 50%; top: 2.8cqw; width: 4.4cqw; height: 4.4cqw; margin-left: -2.2cqw; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a4239, #14110e 72%); box-shadow: 0 0.5cqw 1cqw rgba(0, 0, 0, 0.6), inset 0 0.15cqw 0 rgba(255, 255, 255, 0.16); transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); transform: rotate(var(--da, 0deg)); }
.m-dial-knob::after { content: ""; position: absolute; left: 50%; bottom: 50%; width: 0.5cqw; height: 3.6cqw; margin-left: -0.25cqw; background: linear-gradient(180deg, #f0552f 0 55%, #1a1511 55%); transform-origin: 50% 100%; border-radius: 0.2cqw; }
.m-dial .m-name { position: absolute; left: 0; right: 0; top: 8.4cqw; } .m-dial small { position: absolute; left: 0; right: 0; top: 10.4cqw; margin: 0; }
.m-dial:hover .m-dial-knob { filter: brightness(1.35); }

.m-keys { left: 0; right: 0; bottom: 1.8cqw; display: grid; gap: 1.4cqw; justify-items: center; pointer-events: none; }
.m-keys p { margin: 0; display: flex; align-items: center; gap: 0.7cqw; font-size: max(6.5px, 0.88cqw); letter-spacing: 0.1em; color: #b9b2a5; white-space: nowrap; }
.m-keys em { font-style: normal; margin-right: 1.8cqw; }
.kc { display: inline-block; padding: 0.4cqw 0.8cqw; border-radius: 0.5cqw; font-weight: 600; color: #ece6da; background: linear-gradient(180deg, #4a443d, #2b2723); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 0.22cqw 0 #100e0c, inset 0 0.12cqw 0 rgba(255, 255, 255, 0.14); font-style: italic; }

.amb-machine button:focus-visible { outline: 2px solid #ffd36a; outline-offset: 2px; }
.amb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* a bigger layout for phones and tall windows: the paper gets the room, the machine is cropped at the sides */
.amb-quick { display: none; }
@media (max-width: 820px), (max-aspect-ratio: 5 / 4) {
  .amb-machine { width: 132vw; bottom: max(84px, 11svh); --pw: 92vw; }
  .amb-paper { --pf: clamp(12.5px, 3.3vw, 18px); }
  .amb-sheet { padding-top: 6vw; }
  .amb-win { bottom: calc(100% - 2.6cqw); }
  .m-keys, .m-lcd-cap, .m-paper, .m-dial { display: none; }
  .m-lcd { left: 15cqw; right: 15cqw; top: 3.6cqw; height: 11.2cqw; }
  .amb-intro .amb-title, .amb-intro .amb-sub, .amb-intro .amb-eyebrow, .amb-state, .amb-edit kbd { display: none; }
  .amb-intro { top: auto; left: 50%; transform: translateX(-50%); bottom: calc(max(84px, 11svh) + 7px); display: flex; gap: 6px; width: max-content; max-width: calc(100vw - 16px); }
  .amb-quick { display: flex; gap: 6px; }
  .amb-quick button {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.8rem; border-radius: 999px; cursor: pointer; white-space: nowrap;
    font: 600 0.78rem var(--body); color: #e8e1d4; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background 0.2s ease;
  }
  .amb-quick button:active { transform: scale(0.95); background: rgba(255, 255, 255, 0.16); }
  .amb-quick b { color: #ffb08a; font: 600 0.75rem "IBM Plex Mono", monospace; text-transform: uppercase; }
  .amb-edit { padding: 0.55rem 0.9rem; font-size: 0.78rem; }
}
@media (max-width: 1100px) and (min-width: 821px) and (min-aspect-ratio: 5 / 4) {
  .amb-intro .amb-title, .amb-intro .amb-sub, .amb-intro .amb-eyebrow { display: none; }
}

/* short landscape screens (phones turned sideways): only the platen and ruler show, so the paper keeps its room */
@media (max-height: 520px) and (min-aspect-ratio: 5 / 4) {
  .amb-machine { width: 100vw; bottom: calc(66px - 23.5vw); }
  .amb-intro { top: 12px; }
  .amb-state { display: none; }
}

/* ---------------- the editor ---------------- */
.amb-ed { border: 0; padding: 0; background: transparent; color: var(--fg); max-width: none; max-height: none; width: 100%; height: 100%; overflow: visible; }
.amb-ed::backdrop { background: rgba(6, 7, 10, 0.66); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.amb-ed[open] { display: grid; place-items: center; padding: 14px; }
.amb-ed[open] .amb-ed-card { animation: ambPop 0.38s cubic-bezier(0.2, 1.2, 0.3, 1); }
@keyframes ambPop { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
.amb-ed-card { width: min(640px, 100%); max-height: min(92svh, 860px); display: flex; flex-direction: column; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); overflow: hidden; }
.amb-ed-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.3rem 0.9rem; border-bottom: 1px solid var(--line); }
.amb-ed-kicker { margin: 0 0 0.25rem; font: 500 0.7rem "IBM Plex Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.amb-ed-top h3 { margin: 0; font-family: var(--display); font-size: 1.35rem; }
.amb-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: 0.2s ease; flex: none; }
.amb-x:hover { background: var(--fg); color: var(--bg); transform: rotate(90deg); }
.amb-ed-scroll { padding: 1rem 1.3rem 1.2rem; overflow: auto; display: grid; gap: 1.3rem; overscroll-behavior: contain; }
.amb-ed-hint { margin: 0; padding: 0.75rem 0.9rem; border-radius: 14px; font-size: 0.86rem; line-height: 1.5; color: var(--muted); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.amb-ed-hint code { font: 500 0.8rem "IBM Plex Mono", monospace; padding: 0.05rem 0.35rem; border-radius: 6px; background: color-mix(in srgb, var(--fg) 10%, transparent); color: var(--fg); }
.amb-sec h4 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.8rem; font: 700 0.95rem var(--body); }
.amb-sec h4 span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 600 0.75rem "IBM Plex Mono", monospace; background: var(--accent); color: var(--accent-ink); }
.amb-sec form { display: grid; gap: 0.8rem; }
.amb-sec label { position: relative; display: grid; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.amb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.amb-sec input, .amb-sec select, .amb-sec textarea {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 12px; font: 500 0.95rem var(--body); color: var(--fg);
  background: color-mix(in srgb, var(--fg) 5%, transparent); border: 1px solid var(--line); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.amb-sec textarea { resize: vertical; min-height: 5rem; }
.amb-sec input:focus-visible, .amb-sec select:focus-visible, .amb-sec textarea:focus-visible { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 28%, transparent); }
.amb-sec select option { color: #111; }
.amb-count { position: absolute; right: 0.2rem; bottom: -1.05rem; font: 500 0.68rem "IBM Plex Mono", monospace; color: var(--muted); }
.amb-drop { display: grid; justify-items: center; gap: 0.2rem; padding: 1.1rem; margin-top: 0.7rem; border-radius: 16px; text-align: center; cursor: pointer; border: 1.5px dashed color-mix(in srgb, var(--fg) 30%, transparent); color: var(--muted); transition: 0.2s ease; }
.amb-drop p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--fg); } .amb-drop small { font-size: 0.78rem; }
.amb-drop:hover, .amb-drop.over, .amb-drop:focus-visible { border-color: var(--accent-glow); background: color-mix(in srgb, var(--accent-glow) 10%, transparent); color: var(--fg); outline: 0; transform: scale(1.01); }
.amb-thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.amb-thumbs li { position: relative; width: 82px; height: 62px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); animation: ambPop 0.3s ease; }
.amb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amb-thumbs button { position: absolute; right: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer; font-size: 0.9rem; line-height: 1; }
.amb-msg { margin: 0; min-height: 1.1em; font-size: 0.82rem; color: var(--coral); }
.amb-msg.ok { color: #3fae7a; }
.amb-btn { padding: 0.75rem 1.2rem; border-radius: 999px; border: 0; cursor: pointer; font: 700 0.9rem var(--body); background: var(--accent); color: var(--accent-ink); transition: transform 0.2s ease, filter 0.2s ease; }
.amb-btn:hover { transform: translateY(-2px); filter: brightness(1.08); } .amb-btn:active { transform: scale(0.97); }
.amb-btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.amb-btn.ghost:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.amb-btn.danger { color: var(--coral); }
.amb-stats { display: grid; gap: 0.5rem; }
.amb-stats div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.5rem; }
.amb-fine { display: block; margin-top: 0.5rem; font-size: 0.78rem; color: var(--muted); }
.amb-seg { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.amb-seg button { padding: 0.5rem 0.9rem; border-radius: 999px; cursor: pointer; font: 600 0.82rem var(--body); color: var(--muted); background: transparent; border: 1px solid var(--line); transition: 0.2s ease; }
.amb-seg button.on { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.amb-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.amb-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 0.7rem; align-items: center; padding: 0.55rem 0.7rem; border-radius: 14px; border: 1px solid var(--line); }
.amb-list .th { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: color-mix(in srgb, var(--fg) 8%, transparent); display: grid; place-items: center; font-size: 1.1rem; }
.amb-list b { display: block; font-size: 0.9rem; } .amb-list small { color: var(--muted); font-size: 0.75rem; }
.amb-list button { padding: 0.4rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--coral); cursor: pointer; font: 600 0.78rem var(--body); }
.amb-list button:hover { background: color-mix(in srgb, var(--coral) 14%, transparent); }
.amb-list .tagp { font: 500 0.66rem "IBM Plex Mono", monospace; padding: 0.15rem 0.45rem; border-radius: 999px; background: color-mix(in srgb, var(--fg) 9%, transparent); color: var(--muted); }
.amb-list li.amb-empty { display: block; border: 0; padding: 0.2rem 0; font-size: 0.85rem; color: var(--muted); }
.amb-ed-foot { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; padding: 0.9rem 1.3rem; border-top: 1px solid var(--line); }
.amb-ed-foot .amb-btn:last-child { margin-left: auto; }
@media (max-width: 520px) { .amb-row, .amb-stats div { grid-template-columns: 1fr; } .amb-ed-foot .amb-btn { flex: 1 1 auto; } }

.amb-lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.amb-lb::backdrop { background: rgba(5, 5, 8, 0.86); backdrop-filter: blur(6px); }
.amb-lb img { display: block; max-width: min(94vw, 1100px); max-height: 86svh; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); animation: ambPop 0.35s cubic-bezier(0.2, 1.2, 0.3, 1); }
.amb-lb .amb-x { position: absolute; right: -8px; top: -52px; color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* reduced motion: the page is already typed, nothing scrolls, nothing moves */
.amb.is-static { height: auto !important; }
.amb.is-static .amb-sticky { position: relative; height: var(--staticH, 100svh); }
.amb.is-static .amb-paper { transform: none; }
.amb.is-static .amb-sheet { position: relative; padding-bottom: 11cqw; }
.amb.is-static .amb-stamp { top: auto; bottom: 14cqw; }
.amb.is-static .amb-photo { transition: none; }
.amb.is-static .amb-stamp.on { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .amb-dust, .amb-dot, .amb-caret::after, .m-lcd-buf u { animation: none; }
  .amb-machine { transform: translateX(-50%); }
}

/* dock label: full word on wide screens, short on phones */
.dock .short { display: none; }
@media (max-width: 760px) { .dock .full { display: none; } .dock .short { display: inline; } }

.amb-edit[hidden] { display: none; }

/* portrait pictures (such as a poster) keep their shape instead of being cropped */
.amb-photo.tall { width: calc(var(--pf) * 11); aspect-ratio: 3 / 4; }
.amb-eyebrow { white-space: nowrap; }
