/* ==========================================================================
   Enura Indula - the board
   One family (Figtree), FigJam colours, one ink, square-ish panels, round controls.
   ========================================================================== */

:root {
  /* ground and ink */
  --canvas: #f4f4f1;
  --dot: #c8c8c2;
  --paper: #ffffff;
  --ink: #1e1e1e;
  --muted: #555550;

  /* cursor colours (the four hats) */
  --blue: #0d99ff;
  --blue-ink: #0866c2;
  --pink: #ff3eb5;
  --green: #14ae5c;
  --orange: #ff8a1f;
  --yellow: #ffc943;
  --red: #f24822;

  /* stickies and section fields */
  --st-yellow: #ffe580;
  --st-pink: #ffc7ec;
  --st-green: #b8efc6;
  --st-blue: #c7e6ff;
  --st-orange: #ffd6ad;
  --field-blue: #e3f2ff;
  --field-green: #def6e5;
  --field-pink: #ffe6f5;

  /* type */
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: 0.875rem;                                   /* 14 */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);  /* 17–19 */
  --step-lead: clamp(1.375rem, 1.1rem + 1vw, 2.125rem);     /* 22–34 */
  --step-head: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);      /* 40–76 */
  --step-display: clamp(4.25rem, 1rem + 11vw, 11rem);       /* 68–176 */

  /* frame */
  --m: max(clamp(16px, 2.4vw, 32px), calc((100vw - 1760px) / 2)); /* on wide screens the frame stops growing */
  --gap: clamp(16px, 1.8vw, 24px);
  --radius: 4px;
  --gap-section: clamp(96px, 12vw, 200px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-move: cubic-bezier(0.45, 0.05, 0.25, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; } /* smooth scrolling comes from Lenis (js/smooth.js) */
body {
  margin: 0;
  position: relative;
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--canvas);
  /* the FigJam dot grid, drawn as a tiny SVG tile */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='1.25' fill='%23c8c8c2'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--st-blue); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
h2 { font-size: var(--step-head); letter-spacing: -0.04em; line-height: 0.98; }
h3 { font-size: var(--step-lead); letter-spacing: -0.025em; line-height: 1.1; }
h4 { font-size: var(--step-body); letter-spacing: -0.01em; line-height: 1.3; font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font-size: var(--step-body); font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  --sweep: #3a3a3a; --sweep-ink: currentColor;
  transition: transform 220ms var(--ease-out), color 260ms var(--ease-out);
}
.btn::before { /* the fill that spreads from where the pointer came in (js/buttons.js sets --x/--y) */
  content: ""; position: absolute; z-index: -1;
  left: var(--x, 50%); top: var(--y, 50%); width: 260%; aspect-ratio: 1; border-radius: 50%;
  background: var(--sweep);
  transform: translate(-50%, -50%) scale(0); /* taste-skill-ignore: the fill grows from the pointer */
  transition: transform 520ms var(--ease-out);
}
.btn:hover, .btn:focus-visible { transform: translateY(-3px); color: var(--sweep-ink); }
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.btn:active { transform: translateY(0) scale(0.96); transition-duration: 90ms; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--step-small); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--dl svg { transition: transform 260ms var(--ease-out); }
.btn--dl:hover svg { transform: translateY(2px); }
.contact__cv { margin-top: 32px; }
.contact__cv small { font-size: var(--step-small); font-weight: 600; opacity: 0.7; }
.btn--ink { background: var(--ink); color: #fff; --sweep: var(--blue-ink); --sweep-ink: #fff; }
.btn--blue { background: var(--blue-ink); color: #fff; --sweep: var(--ink); --sweep-ink: #fff; }
.btn--ghost { background: var(--paper); color: var(--ink); --sweep: var(--yellow); --sweep-ink: var(--ink); }

/* ==========================================================================
   The board (first screen)
   ========================================================================== */
.board {
  position: relative;
  min-height: min(100svh, 1000px);
  padding: 0 var(--m);
}

/* top bar - FigJam's file bar, filled by the PM cursor */
.nav {
  position: fixed; z-index: 40;
  top: 12px; left: var(--m); right: var(--m);
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 12px 0 12px;
  color: #fff;
  isolation: isolate;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-radius: var(--radius);
  transform-origin: left center;
}
.nav__mark { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.nav__logo {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 9px;
  background: #2c2c2c;
}
/* the EI emblem: E and I in Braille (dots 1+5, then 2+4), the four raised dots in the hats' colours */
.emblem { width: 36px; height: 36px; overflow: visible; }
.em__off { fill: #fff; opacity: 0.16; animation: em-grid 5s ease infinite; }
.em__dot { transform-box: fill-box; transform-origin: 50% 50%; animation: em-pop 5s var(--ease-out) infinite; }
.em__dot--1 { fill: #0d99ff; } .em__dot--2 { fill: #ff3eb5; animation-delay: 0.22s; }
.em__dot--3 { fill: #14ae5c; animation-delay: 0.44s; } .em__dot--4 { fill: #ff8a1f; animation-delay: 0.66s; }
/* on a loop: the empty Braille grid fades in, the raised dots pop in reading order, hold, then clear */
@keyframes em-grid { 0% { opacity: 0; } 8%, 92% { opacity: 0.16; } 100% { opacity: 0; } }
@keyframes em-pop { 0%, 7% { transform: scale(0); } 14% { transform: scale(1.45); } 19%, 84% { transform: none; } 90%, 100% { transform: scale(0); } } /* taste-skill-ignore: Braille dots rising out of the page */
@media (prefers-reduced-motion: reduce) { .em__off, .em__dot { animation: none; } }
.nav__file { font-weight: 700; font-size: 14px; white-space: nowrap; }
.nav__slash { color: #9a9a95; padding: 0 4px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background-color 160ms var(--ease-out), transform 180ms var(--ease-out);
}
.nav__links a:hover { background: #3a3a3a; transform: translateY(-1px); }
.nav__links a:active { transform: scale(0.95); }
.nav__right { display: flex; align-items: center; gap: 16px; }
.avatars { display: flex; }
.avatars li {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-left: -6px; border-radius: 50%;
  background: var(--c); color: #fff; font-size: 14px; font-weight: 800;
  border: 2px solid var(--ink);
  transition: transform 160ms var(--ease-out);
}
.avatars li:hover { transform: translateY(-3px); }
.avatars li:first-child { margin-left: 0; }

/* hero composition */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
  min-height: min(100svh, 1000px); /* tall screens: keep the board together */
  padding: clamp(108px, 13vh, 124px) 0 96px;
}
.hero__text { grid-column: 1 / span 7; position: relative; z-index: 2; }
.hero__name {
  font-size: clamp(4rem, 0.9rem + 9.9vw, 9.9rem); /* the display step, 10% down for the hero */
  line-height: 0.86;
  letter-spacing: -0.055em;
  margin-left: -0.04em;
}
.hero__name span { display: block; }
.hero__lead {
  margin-top: 36px; max-width: 23ch;
  font-size: var(--step-lead); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em;
}
.hero__sub { margin-top: 20px; max-width: 46ch; font-size: var(--step-body); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.tools { margin-top: 32px; }
.tools__label { font-size: var(--step-small); font-weight: 700; color: var(--muted); }
.tools__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tools__list li {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px; background: var(--paper);
  transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.tools__list img { width: 20px; height: 20px; object-fit: contain; }
.tools__list li:has(img[src$=".png"]) img { width: 24px; height: 24px; border-radius: 6px; }
.tools__list li::after {
  content: attr(data-name);
  position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5;
  padding: 4px 9px; border-radius: 6px; background: var(--ink); color: #fff;
  font-size: var(--step-small); font-weight: 700; white-space: nowrap;
  transform: translate(-50%, 4px); opacity: 0; pointer-events: none;
  transition: opacity 140ms, transform 180ms var(--ease-out);
}
.tools__list li:hover { transform: translateY(-3px); background: var(--st-blue); }
.tools__list li:hover::after { opacity: 1; transform: translate(-50%, 0); }
.tools__list li:nth-child(n) { transition-delay: 0ms; }
html.intro .tools:not(.is-in) li { opacity: 0; transform: translateY(8px); }
.tools.is-in li { animation: tool-in 420ms var(--ease-out) both; }
.tools.is-in li:nth-child(2) { animation-delay: 30ms; } .tools.is-in li:nth-child(3) { animation-delay: 60ms; } .tools.is-in li:nth-child(4) { animation-delay: 90ms; }
.tools.is-in li:nth-child(5) { animation-delay: 120ms; } .tools.is-in li:nth-child(6) { animation-delay: 150ms; } .tools.is-in li:nth-child(7) { animation-delay: 180ms; } .tools.is-in li:nth-child(8) { animation-delay: 210ms; }
.tools.is-in li:nth-child(9) { animation-delay: 240ms; } .tools.is-in li:nth-child(10) { animation-delay: 270ms; } .tools.is-in li:nth-child(11) { animation-delay: 300ms; } .tools.is-in li:nth-child(12) { animation-delay: 330ms; }
.tools.is-in li:nth-child(13) { animation-delay: 360ms; } .tools.is-in li:nth-child(14) { animation-delay: 390ms; } .tools.is-in li:nth-child(15) { animation-delay: 420ms; } .tools.is-in li:nth-child(16) { animation-delay: 450ms; }
@keyframes tool-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero__photo { grid-column: 8 / span 5; position: relative; z-index: 1; width: 90%; justify-self: end; }
.hero__photo .frame__body { aspect-ratio: 4 / 5; }
.hero__photo .frame__body img { height: 100%; object-fit: cover; object-position: 50% 20%; }

/* a Figma frame: name above, square image */
.frame__label {
  display: flex; justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
  font-size: var(--step-small); font-weight: 500; color: var(--muted);
}
.frame__size { color: var(--blue-ink); font-weight: 700; }
.frame__body { overflow: hidden; background: #d9d9d4; }
.frame__body img { width: 100%; height: auto; }
.hero__photo .frame__body img { animation: drift 22s var(--ease-move) infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.09) translateY(-2%); } }

/* stickies */
.sticky {
  position: relative;
  background: var(--st-yellow); color: var(--ink);
  border-radius: var(--radius);
}
.sticky--yellow { background: var(--st-yellow); }
.sticky--pink { background: var(--st-pink); }
.sticky--green { background: var(--st-green); }
.sticky--blue { background: var(--st-blue); }

.hero__stickies { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hero__stickies .sticky {
  position: absolute; pointer-events: auto;
  width: clamp(140px, 11.7vw, 176px); aspect-ratio: 1;
  padding: 18px 18px 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(var(--r, 0deg));
}
.sticky__text { font-size: var(--step-body); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.sticky__by { font-size: var(--step-small); font-weight: 500; color: #3d3d3a; }
.hero__stickies li:nth-child(1) { left: 44%; top: 67%; }
.hero__stickies li:nth-child(2) { right: -0.5%; top: 19%; }

/* stickers */
.hero__stickers { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.sticker { position: absolute; pointer-events: auto; background: none; }
.sticker svg { width: 100%; height: auto; overflow: visible; }
.sticker.drag.is-dragging { box-shadow: none; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.22)); } /* taste-skill-ignore: lifted while dragged, follows the sticker's outline */
.sticker--cert { width: clamp(86px, 7.6vw, 119px); left: 40%; top: calc(clamp(108px, 13vh, 124px) + 4px); transform: rotate(-8deg); }
.sticker--dxb { width: clamp(126px, 11.2vw, 185px); left: 46.5%; top: 37%; transform: rotate(5deg); }
.sticker--lanka { width: clamp(130px, 11.5vw, 193px); left: 45.5%; top: 51%; transform: rotate(-4deg); }
.sticker--hats { width: clamp(101px, 7.7vw, 130px); right: 24%; top: 12%; transform: rotate(-7deg); z-index: 2; }

.board__hint {
  position: absolute; left: var(--m); bottom: 28px;
  font-size: var(--step-small); font-weight: 500; color: var(--muted);
  max-width: 34ch;
}

/* draggable things */
.drag { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.drag.is-dragging { cursor: grabbing; z-index: 30; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); } /* taste-skill-ignore: lifted while dragged */

/* ==========================================================================
   Sections (FigJam sections: whole fields of colour on the board)
   ========================================================================== */
main { display: block; }
.section {
  position: relative;
  margin: var(--gap-section) var(--m) 0;
  padding: clamp(32px, 5vw, 80px);
  border-radius: var(--radius);
}
.section--blue { background: var(--field-blue); }
.section--green { background: var(--field-green); }
.section--pink { background: var(--field-pink); }
.section--plain { padding-left: 0; padding-right: 0; }
.section:first-child { margin-top: 0; }

.section__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end; margin-bottom: clamp(40px, 5vw, 72px);
}
.section__head h2 { grid-column: 1 / span 7; }
.section__head p { grid-column: 9 / span 4; max-width: 38ch; }

/* ---------- work: Figma frames at different sizes ---------- */
.work {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: clamp(56px, 6vw, 96px);
  align-items: start;
}
.shot { position: relative; }
.shot__frame { position: relative; }
.shot--a { grid-column: 1 / span 8; }
.shot--b { grid-column: 9 / span 4; margin-top: clamp(80px, 12vw, 200px); }
.shot--c { grid-column: 1 / span 5; }
.shot--d { grid-column: 6 / span 7; margin-top: clamp(40px, 6vw, 96px); }
.shot--e { grid-column: 2 / span 6; }
.shot--f { grid-column: 8 / span 5; margin-top: clamp(64px, 8vw, 140px); }

.shot__media {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--paper);
  text-decoration: none;
}
.shot__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 700ms var(--ease-out); }
.shot__media:hover img { transform: scale(1.035); }
.shot__media { outline: 3px solid transparent; outline-offset: -3px; transition: outline-color 160ms var(--ease-out); }
.shot__media:hover { outline-color: var(--blue); } /* Figma's selection outline */
.shot__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.shot__kind { flex: none; font-size: var(--step-small); font-weight: 700; color: var(--blue-ink); }
.shot__meta { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 6px; margin-top: 16px; }
.shot__meta p { grid-column: 1; max-width: 46ch; }
.shot__link {
  grid-column: 2; grid-row: 1; align-self: start;
  font-size: var(--step-small); font-weight: 700; color: var(--blue-ink);
  text-underline-offset: 4px; white-space: nowrap;
}
.shot__link:hover { color: var(--ink); }

/* comment pin, Figma style */
.pin {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50% 50% 50% 4px;
  background: var(--c); color: #fff;
  font-size: 14px; font-weight: 800;
  border: 3px solid var(--paper);
}

/* drawn title cards for the work with no screenshot */
.card-art { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 3vw, 40px); }
.card-art__name { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; }
.card-art__line { margin-top: 12px; font-size: var(--step-body); font-weight: 500; }
.card-art--aspire { background: var(--ink); color: #fff; }
.card-art--aspire .card-art__line { color: var(--yellow); }
.card-art--map { background: var(--blue-ink); color: #fff; }
.card-art__map { position: absolute; inset: 14% 10%; width: 80%; height: 72%; }
.card-art--edge { background: var(--orange); color: var(--ink); }

/* ---------- selected work as Figma's file browser: thumbnails, names, owners ---------- */
.files { background: var(--paper); border-radius: 12px; padding: clamp(16px, 2vw, 28px); }
.files__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(18px, 2vw, 28px); }
.files__crumb { display: flex; align-items: center; gap: 8px; font-size: var(--step-small); font-weight: 700; }
.files__crumb svg { width: 18px; height: 18px; color: #b3b3ad; }
.files__crumb span { color: #b3b3ad; }
.files__view { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--canvas); }
.files__btn { display: grid; place-items: center; width: 32px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; transition: background-color 140ms, color 140ms; }
.files__btn svg { width: 16px; height: 16px; fill: currentColor; }
.files__btn.is-on { background: var(--paper); color: var(--ink); }
.files__btn:hover { color: var(--ink); background: #fff; transform: scale(1.08); }
.files__btn { transition: background-color 140ms, color 140ms, transform 180ms var(--ease-out); }
.files__btn:active { transform: scale(0.92); }

.files__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 2.6vw, 40px) clamp(16px, 1.8vw, 28px); }
.file__link { display: block; text-decoration: none; color: inherit; border-radius: 10px; }
.file__thumb {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 8px;
  background: #ededea;
  outline: 2px solid transparent; outline-offset: -2px;
  transition: outline-color 140ms var(--ease-out);
}
.file__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.file__link:hover .file__thumb, .file__link:focus-visible .file__thumb { outline-color: var(--blue); }
.file__link:hover .file__thumb img { transform: scale(1.03); }
.file__info { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.file__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--c); color: var(--ink); transition: transform 260ms var(--ease-out); }
.file__icon svg { width: 18px; height: 18px; }
.file__link:hover .file__icon { transform: rotate(-8deg) scale(1.08); }
.file__link:hover .file__owner { transform: translateY(-2px); }
.file__owner { transition: transform 200ms var(--ease-out); }
.file__text { flex: 1; min-width: 0; }
.file__name { font-size: var(--step-body); line-height: 1.25; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file__meta { margin-top: 2px; font-size: var(--step-small); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file__owner { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-size: var(--step-small); font-weight: 800; letter-spacing: -0.02em; }
.file__line { display: none; }

/* NDA work: a designed cover on the homepage instead of its screens */
.file__thumb--nda { background: var(--bg); color: var(--ink); }
.nda-cover__name { position: relative; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; }
.nda-cover__what { position: relative; font-size: var(--step-small); font-weight: 600; opacity: 0.8; }
.nda-cover__lock {
  position: relative; align-self: flex-start; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--ac); color: var(--bg);
  font-size: var(--step-small); font-weight: 800;
}
.nda-cover__lock svg { width: 14px; height: 14px; }
.file__thumb--nda .nda-cover__lock { position: absolute; left: clamp(12px, 1.4vw, 18px); top: clamp(12px, 1.4vw, 18px); z-index: 2; margin-top: 0; }

/* list view */
.files[data-view="list"] .files__grid { grid-template-columns: 1fr; gap: 4px; }
.files[data-view="list"] .file__link { display: grid; grid-template-columns: 132px minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 24px; padding: 10px; }
.files[data-view="list"] .file__link:hover { background: var(--canvas); }
.files[data-view="list"] .file__info { margin-top: 0; }
.files[data-view="list"] .file__line { display: block; font-size: var(--step-small); color: var(--muted); }

/* ---------- client logos under "Selected work": each logo is a mask filled with the ink ---------- */
.clients {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px;
  margin: 0 0 clamp(64px, 7vw, 112px);
}
.client {
  display: block; height: 88px; border-radius: var(--radius);
  background: var(--paper);
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
  position: relative;
}
.client__logo {
  position: absolute; inset: 20px 18px; width: calc(100% - 36px); height: calc(100% - 40px);
  object-fit: contain;
  transition: transform 220ms var(--ease-out);
}
.client:hover, .client:focus-visible { transform: translateY(-3px); }
.client:hover, .client:focus-visible { background: var(--st-yellow); }
.client:hover .client__logo { transform: scale(1.05); }
.client--dark { background: var(--ink); }
.client--dark:hover, .client--dark:focus-visible { background: #2c2c2c; }

/* ---------- the index of every project: book spines on a shelf ---------- */
.index { margin-top: clamp(80px, 9vw, 140px); }
.index__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 32px; margin-bottom: 28px; }
.index__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--step-small); font-weight: 600; }
.index__legend li { display: flex; align-items: center; gap: 8px; }
.index__legend li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--c); }
.spines { display: flex; gap: 6px; }
.spines li { flex: 1 1 0; min-width: 0; }
.spine {
  display: flex; align-items: center; gap: 12px;
  width: 100%; height: 460px; padding: 18px 0; writing-mode: vertical-rl;
  background: var(--c); color: var(--ink); text-decoration: none; border-radius: 3px;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 200ms var(--ease-out);
}
.spine__name { font-size: var(--step-body); font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.spine__tag { font-size: var(--step-small); font-weight: 600; white-space: nowrap; color: #3d3d3a; }
.spine:hover, .spine:focus-visible { background: var(--ink); color: #fff; transform: translateY(-10px); }
.spine:hover .spine__tag, .spine:focus-visible .spine__tag { color: var(--yellow); }

/* ---------- about: photo + sticky-note letter ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.about__photo { grid-column: 1 / span 4; position: sticky; top: 104px; }
.letter {
  grid-column: 6 / span 7;
  padding: clamp(28px, 4.5vw, 72px);
  transform: rotate(0.6deg);
}
.letter h2 { margin-bottom: 32px; }
.letter p + p { margin-top: 18px; }
.letter p { max-width: 60ch; }
.letter mark { background: var(--st-pink); color: inherit; padding: 0 3px; }
.letter__sign { margin-top: 36px !important; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.letter__sign span { display: block; margin-top: 6px; font-size: var(--step-small); font-weight: 500; letter-spacing: 0; color: #3d3d3a; }

/* ---------- off the canvas: a photo board in two FigJam sections ---------- */
.life { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: start; }
.life__group { position: relative; padding: clamp(56px, 5vw, 80px) clamp(20px, 2.6vw, 40px) clamp(28px, 3vw, 48px); border-radius: var(--radius); }
.life__group--work { background: var(--field-blue); }
.life__group--off { background: var(--st-pink); }
.life__tab {
  position: absolute; left: clamp(20px, 2.6vw, 40px); top: 18px;
  font-size: var(--step-body); letter-spacing: -0.01em;
  padding: 6px 14px; border-radius: 999px; color: #fff;
}
.life__group--work .life__tab { background: var(--blue-ink); }
.life__group--off .life__tab { background: var(--ink); }
.life__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 28px) clamp(12px, 1.4vw, 20px); align-items: start; }

.snap {
  position: relative; margin: 0;
  padding: 8px 8px 0; background: var(--paper);
  transform: rotate(var(--r, 0deg));
}
.js .snap[data-in] { transform: translateY(24px) rotate(var(--r, 0deg)); }
.js .snap[data-in].is-in { transform: rotate(var(--r, 0deg)); }
.snap img { width: 100%; height: auto; pointer-events: none; background: #d9d9d4; }
.snap figcaption { padding: 10px 4px 12px; font-size: var(--step-small); font-weight: 600; line-height: 1.35; }
.snap:hover { z-index: 3; }

/* at work: 6 columns, three rows */
.snap--a { grid-column: 1 / span 3; grid-row: 1; }
.snap--b { grid-column: 4 / span 3; grid-row: 1; margin-top: 56px; }
.snap--c { grid-column: 1 / span 4; grid-row: 2; }
.snap--d { grid-column: 5 / span 2; grid-row: 2; margin-top: 32px; }
.life__note { padding: 18px; font-size: var(--step-body); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; transform: rotate(var(--r)); }
.js .life__note[data-in] { transform: translateY(24px) rotate(var(--r)); }
.js .life__note[data-in].is-in { transform: rotate(var(--r)); }
.life__group--work .life__note { grid-column: 1 / span 2; grid-row: 3; margin-top: 40px; }
.snap--e { grid-column: 3 / span 4; grid-row: 3; }

/* off the clock: 6 columns, three rows */
.snap--f { grid-column: 1 / span 2; grid-row: 1; }
.snap--g { grid-column: 3 / span 2; grid-row: 1; margin-top: 48px; }
.snap--h { grid-column: 5 / span 2; grid-row: 1; margin-top: 12px; }
.snap--i { grid-column: 1 / span 2; grid-row: 2; }
.snap--k { grid-column: 3 / span 4; grid-row: 2; margin-top: 40px; }
.snap--j { grid-column: 1 / span 2; grid-row: 3; }
.snap--l { grid-column: 3 / span 2; grid-row: 3; margin-top: 28px; }
.life__group--off .life__note { grid-column: 5 / span 2; grid-row: 3; margin-top: 64px; }

/* ---------- experience: the career as a Gantt chart, then the day job ---------- */
.gantt { position: relative; padding: clamp(24px, 3vw, 40px); background: var(--paper); border-radius: var(--radius); --label: 34%; }
.gantt__scale { position: relative; height: 28px; margin-left: var(--label); margin-bottom: 18px; }
.gantt__scale span {
  position: absolute; left: var(--at); top: 0;
  font-size: var(--step-small); font-weight: 700; color: var(--muted);
  padding-left: 8px;
}
.gantt__scale span::before { content: ""; position: absolute; left: 0; top: 2px; width: 3px; height: 16px; border-radius: 2px; background: #dcdcd6; }
.gantt__rows { display: grid; gap: 0; }
.gantt__row { display: grid; grid-template-columns: var(--label) 1fr; align-items: start; padding: 22px 0; }
.gantt__row + .gantt__row { margin-top: 40px; }
.gantt__label { padding-right: 28px; }
.gantt__label h3 { font-size: var(--step-body); line-height: 1.25; letter-spacing: -0.01em; }
.gantt__label p { margin-top: 4px; font-size: var(--step-small); font-weight: 600; }
.gantt__lane { padding-top: 2px; }
.gantt__label a { text-underline-offset: 3px; }
.gantt__lane { min-width: 0; }
.gantt__when { margin: 8px 0 0 var(--start); font-size: var(--step-small); font-weight: 700; color: var(--muted); }
.gantt__track {
  position: relative; height: 52px; border-radius: 12px;
  background: var(--canvas);
}
.gantt__bar {
  position: absolute; top: 6px; bottom: 6px; left: var(--start); width: var(--len); min-width: 64px;
  display: flex; align-items: center; padding: 0 14px; border-radius: 10px;
  font-size: var(--step-small); font-weight: 800; white-space: nowrap; overflow: hidden;
  transform-origin: left center;
}
.gantt__bar--blue { background: var(--st-blue); color: var(--ink); }
.gantt__bar--pink { background: var(--st-pink); color: var(--ink); }
.gantt__bar--ink { background: var(--ink); color: var(--yellow); }
.gantt__bar::after { /* the grab handle at the end of a FigJam timeline bar */
  content: ""; position: absolute; right: 6px; top: 50%; width: 4px; height: 18px; border-radius: 2px;
  background: currentColor; opacity: 0.35; transform: translateY(-50%);
}
.gantt__row--now .gantt__label h3 { font-size: var(--step-lead); }
.gantt__body { position: relative; }
.gantt__today {
  position: absolute; top: -6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--red);
  left: calc(var(--label) + (100% - var(--label)) * 0.976 - 1.5px);
  pointer-events: none;
}
.gantt__today b {
  position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -2px);
  padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: var(--step-small); font-weight: 800; white-space: nowrap;
}
/* bars grow along the plan as the chart arrives */
.js .gantt[data-in] .gantt__bar { transform: scaleX(0.04); transition: transform 900ms var(--ease-out); }
.js .gantt[data-in].is-in .gantt__bar { transform: none; }
.js .gantt[data-in].is-in .gantt__row:nth-child(2) .gantt__bar { transition-delay: 160ms; }
.js .gantt[data-in].is-in .gantt__row:nth-child(3) .gantt__bar { transition-delay: 320ms; transition-duration: 1300ms; }

.dayjob {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  margin-top: var(--gap); padding: clamp(28px, 4vw, 56px); border-radius: var(--radius);
  background: var(--ink); color: #fff;
}
.dayjob__head { grid-column: 1 / span 4; }
.dayjob__head p { margin-top: 14px; color: #d6d6d0; max-width: 34ch; }
.dayjob__list { grid-column: 6 / span 7; columns: 2; column-gap: calc(var(--gap) * 2); }
.dayjob__list li { break-inside: avoid; margin-bottom: 16px; padding-left: 24px; position: relative; }
.dayjob__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.dayjob__list b { color: var(--yellow); }

.skills { margin-top: clamp(64px, 7vw, 112px); background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 56px); }
.skills > h3 { margin-bottom: 32px; }
.skills__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); }
.skills__tools { grid-column: 1 / -1; padding-top: 8px; }
.tags--tools { gap: 10px; }
.tags--tools li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: var(--canvas); color: var(--ink); }
.tags--tools img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.tags--tools img[src$=".png"] { border-radius: 4px; }
.skills__groups h4 { margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.3; transition: transform 160ms var(--ease-out); }
.tags li:hover { transform: rotate(-2deg) scale(1.04); }
.tags--blue li { background: var(--st-blue); }
.tags--orange li { background: var(--st-orange); }
.tags--pink li { background: var(--st-pink); }

/* ---------- learning: a design file, layers on the left, the selected certificate on the canvas ---------- */
.app {
  display: grid; grid-template-columns: minmax(220px, 260px) 1fr minmax(200px, 240px); grid-template-rows: auto 1fr;
  min-height: clamp(520px, 44vw, 640px);
  background: var(--paper); border: 1px solid #e3e3de; border-radius: 8px; overflow: hidden; /* taste-skill-ignore: design-app panel edge */
  font-size: var(--step-small);
}
.app__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; height: 48px; padding: 0 8px 0 16px; background: var(--ink); color: #fff; }
.app__file { color: #b3b3ad; }
.app__file b { color: #fff; font-weight: 700; }
.app__tools { display: flex; gap: 4px; margin: 0 auto; }
.app__tools i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; }
.app__tools i.is-on { background: var(--blue); }
.app__tools svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.app__tools i.is-on svg { fill: #fff; }
.app__export { padding: 8px 14px; border-radius: 6px; background: var(--blue-ink); color: #fff; font-weight: 700; text-decoration: none; transition: background-color 160ms var(--ease-out); }
.app__export:hover { background: var(--blue); }
.app__panel-h { padding: 14px 16px 10px; font-weight: 700; }

.app__layers { border-right: 1px solid #e3e3de; overflow: auto; } /* taste-skill-ignore: design-app panel edge */
.layers, .layers ul { list-style: none; margin: 0; padding: 0; }
.layers__name { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-weight: 700; color: var(--muted); }
.layers__name svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.lyr {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 12px 7px 30px;
  border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color 120ms var(--ease-out);
}
.lyr svg { flex: none; width: 12px; height: 12px; fill: none; stroke: #8a8a85; stroke-width: 1.6; }
.lyr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lyr:hover { background: #f0f0ed; }
.lyr[aria-pressed="true"] { background: var(--field-blue); font-weight: 700; }
.lyr[aria-pressed="true"] svg { stroke: var(--blue-ink); }
.lyr:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

.app__canvas {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: clamp(32px, 4vw, 64px);
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 20px 20px; /* taste-skill-ignore: the canvas dot grid */
  overflow: hidden;
}
.artb { position: relative; width: 100%; max-width: 520px; min-width: 0; }
.app.is-live .artb { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 240ms var(--ease-out), transform 320ms var(--ease-out), visibility 0s 240ms; }
.app.is-live .artb.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 240ms var(--ease-out), transform 320ms var(--ease-out); }
.app:not(.is-live) .artb + .artb { margin-top: 48px; }
.artb__label { display: block; margin-bottom: 6px; color: var(--blue-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artb__sheet {
  position: relative; aspect-ratio: 1.414; display: flex; flex-direction: column; padding: 8% 9%;
  background: var(--paper); outline: 2px solid var(--blue); /* the selection */
  border-top: 10px solid var(--c);
  container-type: inline-size;
}
.artb__sheet::before, .artb__sheet::after { content: ""; position: absolute; width: 8px; height: 8px; background: #fff; border: 1.5px solid var(--blue); }
.artb__sheet::before { left: -5px; bottom: -5px; }
.artb__sheet::after { right: -5px; bottom: -5px; }
.artb__logos { display: flex; align-items: center; gap: 14px; }
.artb__logos img { width: auto; height: clamp(24px, 7cqi, 40px); display: block; }
.artb__logos--dark img:only-child { padding: 6px; border-radius: 8px; background: var(--ink); box-sizing: content-box; }
.artb h3 { margin-top: auto; font-size: clamp(20px, 6.4cqi, 34px); line-height: 1.05; letter-spacing: -0.03em; max-width: 16ch; }
.artb__to { margin-top: 14px; color: var(--muted); }
.artb__to b { color: var(--ink); }
.artb__by { margin-top: 2px; color: var(--muted); }
.artb__seal {
  position: absolute; right: 7%; top: 9%; display: grid; place-items: center; width: 24cqi; aspect-ratio: 1; padding: 3cqi;
  border-radius: 50%; background: var(--c); color: var(--ink);
  font-size: clamp(11px, 3cqi, 15px); font-weight: 800; line-height: 1.1; text-align: center; transform: rotate(8deg);
}

.app__props { border-left: 1px solid #e3e3de; } /* taste-skill-ignore: design-app panel edge */
.props { margin: 0; padding: 0 16px; }
.props div { padding: 10px 0; border-top: 1px solid #ecebe6; } /* taste-skill-ignore: design-app panel edge */
.props dt { color: var(--muted); }
.props dd { margin: 4px 0 0; font-weight: 700; }
.props__fill { display: flex; align-items: center; gap: 10px; }
.props__fill i { width: 20px; height: 20px; border-radius: 4px; border: 1px solid #00000022; background: var(--orange); } /* taste-skill-ignore: design-app panel edge */
.props__fill span { font-weight: 500; color: var(--muted); }
.app__hint { padding: 16px; color: var(--muted); }

@media (max-width: 1080px) {
  .app { grid-template-columns: minmax(200px, 240px) 1fr; }
  .app__props { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #e3e3de; } /* taste-skill-ignore: design-app panel edge */
  .props { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); column-gap: 24px; }
  .app__hint { display: none; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app__tools { display: none; }
  .app__file { margin-right: auto; }
  .app__layers { border-right: 0; border-bottom: 1px solid #e3e3de; } /* taste-skill-ignore: design-app panel edge */
  .app__layers .app__panel-h, .layers__name { display: none; }
  .layers { display: flex; overflow-x: auto; padding: 10px; gap: 8px; scrollbar-width: none; }
  .layers__group, .layers__group ul { display: contents; }
  .lyr { width: auto; max-width: 70vw; padding: 8px 12px; border-radius: 999px; background: #f0f0ed; }
  .lyr svg { display: none; }
  .app__canvas { padding: 32px 20px; }
}

/* ---------- play: sign off the build ---------- */
[hidden] { display: none !important; }
.section--ink { background: var(--ink); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--ink); --sweep: #fff; --sweep-ink: var(--ink); }
.btn--ghost-dark { background: #3a3a3a; color: #fff; --sweep: var(--blue-ink); --sweep-ink: #fff; }

.game { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.game__side { grid-column: 1 / span 4; }
.game__side > p { margin-top: 24px; max-width: 40ch; }
.game__hud { display: grid; gap: 6px; margin-top: 36px; font-size: var(--step-body); color: #c9c9c4; }
.game__hud b { display: inline-block; min-width: 5.2ch; margin-right: 8px; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.game__result { min-height: 3.2em; margin-top: 24px; font-size: var(--step-body); font-weight: 700; color: var(--yellow); max-width: 36ch; }
.game__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.game__wrap { grid-column: 5 / span 8; }
.game__label { color: #c9c9c4; }
.game__label .frame__size { color: #7cc4ff; }

/* design QA: the approved frame and the staging build, side by side */
.qa { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.qa__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--paper); color: var(--ink);
  cursor: crosshair; user-select: none; -webkit-user-select: none;
  container-type: inline-size;
}
.qa__frame > * { position: absolute; margin: 0; }
.qa__nav { left: 5%; top: 4%; width: 90%; height: 9%; display: flex; align-items: center; gap: 5%; padding: 0 4%; border-radius: 4px; background: var(--ink); }
.qa__logo { height: 52%; aspect-ratio: 1; border-radius: 3px; background: var(--yellow); flex: none; }
.qa__link { width: 11%; height: 16%; border-radius: 9px; background: #6f6f6a; }
.qa__link:nth-child(2) { margin-left: auto; }
.qa__link--gap { background: none; }
.qa__cta { width: 18%; height: 50%; border-radius: 999px; background: var(--blue-ink); }
.qa__title { left: 7%; top: 18%; width: 86%; display: flex; flex-direction: column; }
.qa__title b { font-size: 9cqi; font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; }
.qa__copy { left: 7%; top: 35%; width: 60%; font-size: 3.6cqi; line-height: 1.3; color: #55554f; }
.qa__btn { left: 7%; top: 45%; display: grid; place-items: center; height: 7%; padding: 0 6%; border-radius: 999px; background: var(--blue-ink); color: #fff; font-size: 3.6cqi; font-weight: 700; }
.qa__img { left: 7%; top: 56%; width: 86%; height: 22%; overflow: hidden; border-radius: 4px; background: #d9d9d4; }
.qa__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; pointer-events: none; }
.qa__cards { left: 7%; top: 81%; width: 86%; height: 14%; display: flex; gap: 4%; }
.qa__cards i { flex: 1; border-radius: 4px; background: var(--c); }

/* the six bugs on staging */
[data-side="build"] .qa__logo { border-radius: 50%; }
[data-side="build"] .qa__btn { background: #7b61ff; }
[data-side="build"] .qa__img img { object-fit: fill; }
[data-side="build"] .qa__cards i[data-bug] { border-radius: 0; background: var(--st-orange); }

/* found: a numbered Figma comment pin, on both frames */
.qa__pin {
  position: absolute; z-index: 3; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  display: grid; place-items: center;
  border-radius: 50% 50% 50% 0; background: #f24822; color: #fff;
  font-size: 12px; font-weight: 800; pointer-events: none;
  animation: pop 320ms var(--ease-out) both;
}
.qa__pin.is-shown { background: var(--blue-ink); }
.qa__miss {
  position: absolute; z-index: 3; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 2px solid #f24822; border-radius: 50%; pointer-events: none;
  animation: miss 600ms var(--ease-out) forwards;
}
@keyframes miss { 0% { opacity: 1; scale: 0.6; } 100% { opacity: 0; scale: 1.6; } }
.qa.is-wrong .qa__frame[data-side="build"] { animation: nudge 260ms; }
@keyframes nudge { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }

.game__stamp {
  position: absolute; z-index: 6; right: 4%; top: 50%;
  padding: 0.3em 0.7em; border: 4px solid var(--green); border-radius: 8px;
  color: var(--green); background: rgba(255,255,255,0.9);
  font-size: clamp(22px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase;
  transform: translateY(-50%) rotate(-12deg) scale(1.4); opacity: 0; pointer-events: none;
  transition: transform 360ms var(--ease-out), opacity 200ms;
}
.game.is-won .game__stamp { opacity: 1; transform: translateY(-50%) rotate(-12deg) scale(1); }

@media (max-width: 1080px) {
  .game__side { grid-column: 1 / -1; }
  .game__wrap { grid-column: 1 / -1; margin-top: 48px; }
}
@media (max-width: 720px) {
  .qa { grid-template-columns: 1fr; row-gap: 32px; }
}

/* ---------- contact: a comment thread ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.contact__intro { grid-column: 1 / span 6; }
.contact__intro h2 { font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.055em; max-width: 6ch; }
.contact__intro > p { margin-top: 32px; max-width: 42ch; }
.contact__lines { margin-top: 36px; display: grid; gap: 10px; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.contact__lines a { text-decoration: underline 3px; text-decoration-color: transparent; text-underline-offset: 6px; transition: text-decoration-color 200ms var(--ease-out); }
.contact__lines a:hover { text-decoration-color: var(--blue); }
.thread { grid-column: 7 / span 6; margin-top: 12px; background: var(--paper); border-radius: 18px 18px 18px 4px; padding: clamp(22px, 2.6vw, 36px); }
.thread__msg { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.thread__ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; font-size: 14px; }
.thread__who { font-weight: 700; margin-bottom: 4px; }
.thread__who span { font-weight: 400; color: var(--muted); font-size: var(--step-small); margin-left: 6px; }
.thread__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px;
  margin: 28px calc(-1 * clamp(22px, 2.6vw, 36px)) calc(-1 * clamp(22px, 2.6vw, 36px));
  padding: 24px clamp(22px, 2.6vw, 36px) clamp(22px, 2.6vw, 36px);
  background: #efefef; border-radius: 0 0 18px 4px;
}
.field { display: grid; gap: 6px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .chips legend { font-size: var(--step-small); font-weight: 700; }
.chips legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  background: var(--paper); border: 2px solid #dcdcdc;
  font-size: var(--step-small); font-weight: 600;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.chips label:hover span { transform: translateY(-1px); border-color: var(--blue); }
.chips input:checked + span { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.thread__form input:not([type="radio"]), .thread__form textarea, .thread__form select {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  border: 2px solid #dcdcdc; background: var(--paper);
  transition: border-color 160ms var(--ease-out);
}
.thread__form select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%231e1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.thread__form input:not([type="radio"]):focus, .thread__form textarea:focus, .thread__form select:focus { outline: none; border-color: var(--blue); }
.thread__form textarea { resize: vertical; min-height: 120px; }
.thread__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.thread__send .cf-turnstile { flex-basis: 100%; }
.thread__send .cf-turnstile:empty { display: none; }
.thread__send button:disabled { opacity: 0.6; cursor: progress; }
/* the honeypot: off screen for people, still in the form for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: visually hidden honeypot, not a rule */
.thread__ava { background: var(--ink) !important; }
.thread__ava .emblem { width: 30px; height: 30px; }
.thread__note { font-size: var(--step-small); color: var(--muted); }
.thread__note:empty { display: none; }

/* required fields and their messages */
.req { color: var(--red); font-weight: 800; }
.form__hint { margin: 0; font-size: var(--step-small); color: var(--muted); }
.field__err { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: var(--step-small); font-weight: 600; line-height: 1.35; color: #c2341a; }
.field__err::before { content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: #c2341a; color: #fff; font-size: 11px; font-weight: 800; }
.thread__form [aria-invalid="true"] { border-color: #c2341a !important; background: #fff6f4 !important; }

/* sent: Enura's reply joins the thread */
.thread__reply { margin: 28px calc(-1 * clamp(22px, 2.6vw, 36px)) calc(-1 * clamp(22px, 2.6vw, 36px)); padding: 24px clamp(22px, 2.6vw, 36px) clamp(22px, 2.6vw, 36px); background: var(--field-green); border-radius: 0 0 18px 4px; animation: pop 360ms var(--ease-out) both; }
.thread__reply:focus { outline: none; }
.thread__done { font-size: var(--step-body); line-height: 1.5; }
.thread__done strong { display: block; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 6px; }
.thread__again { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- footer: the name returns at full width ---------- */
.footer { margin-top: var(--gap-section); padding: 0 var(--m) 120px; }
.footer__name {
  font-size: min(18vw, 19rem); font-weight: 800;
  letter-spacing: -0.06em; line-height: 0.82; white-space: nowrap;
  text-align: center;
}
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 28px; font-size: var(--step-small); font-weight: 500; }
.footer__row a { text-underline-offset: 4px; }

/* ==========================================================================
   Multiplayer layer: cursors, selections, stamps, toolbar
   ========================================================================== */
.layer, .stamps { position: absolute; left: 0; top: 0; width: 100%; height: 0; pointer-events: none; z-index: 60; }
.stamps { z-index: 35; }

.cur { position: absolute; left: 0; top: 0; color: var(--c); will-change: transform; }
.cur svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.25)); } /* taste-skill-ignore: cursors float */
.cur__tag {
  position: absolute; left: 20px; top: 22px;
  padding: 4px 10px; border-radius: 999px 999px 999px 4px;
  background: var(--c); color: var(--tag-ink, #fff);
  font-size: 14px; font-weight: 700; white-space: nowrap; line-height: 1.35;
}
.cur.is-up .cur__tag { top: -22px; }
.cur.is-flip .cur__tag { left: auto; right: 30px; border-radius: 999px 999px 4px 999px; }
.cur.is-press svg { transform: scale(0.86); transition: transform 90ms; }
.cur svg { transition: transform 140ms var(--ease-out); transform-origin: 4px 3px; }

.sel { position: absolute; left: 0; top: 0; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 7%, transparent); }
.sel i { position: absolute; width: 9px; height: 9px; background: #fff; border: 2px solid var(--c); }
.sel i:nth-child(1) { left: -5.5px; top: -5.5px; } .sel i:nth-child(2) { right: -5.5px; top: -5.5px; }
.sel i:nth-child(3) { left: -5.5px; bottom: -5.5px; } .sel i:nth-child(4) { right: -5.5px; bottom: -5.5px; }
.sel b {
  position: absolute; left: 50%; bottom: -32px; transform: translateX(-50%);
  padding: 2px 8px; border-radius: 4px; background: var(--c); color: var(--tag-ink, #fff);
  font-size: 14px; font-weight: 700; white-space: nowrap;
}

.stamp { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; pointer-events: auto; cursor: grab; touch-action: none; }
.stamp svg { width: 100%; height: 100%; }
.stamp.is-new { animation: stamp-in 380ms var(--ease-out) both; }
@keyframes stamp-in { 0% { opacity: 0; transform: scale(1.6) rotate(var(--sr, 0deg)); } 60% { opacity: 1; transform: scale(0.92) rotate(var(--sr, 0deg)); } 100% { transform: scale(1) rotate(var(--sr, 0deg)); } }
.stamp { transform: rotate(var(--sr, 0deg)); }

.ghost { position: fixed; left: 0; top: 0; width: 48px; height: 48px; margin: -24px 0 0 -24px; pointer-events: none; z-index: 70; opacity: 0.85; display: none; }
.ghost svg { width: 100%; height: 100%; }
body.is-stamping .ghost { display: block; }
body.is-stamping, body.is-stamping * { cursor: crosshair !important; }

.toolbar {
  position: fixed; z-index: 50; left: 50%; bottom: 16px;
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 10px 28px rgba(0,0,0,0.14); /* taste-skill-ignore: floating toolbar */
  transform: translateX(-50%);
  max-width: calc(100vw - 2 * var(--m)); overflow-x: auto; scrollbar-width: none;
}
.toolbar.is-mini { left: auto; right: var(--m); transform: none; }
.toolbar.is-mini > :not(.is-on) { display: none; }
.toolbar__gap { flex: none; width: 2px; height: 28px; margin: 0 6px; background: #e6e5e0; border-radius: 2px; }
.tool {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 8px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer;
  transition: background-color 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.tool svg { width: 30px; height: 30px; }
.tool[data-tool="move"] svg { width: 22px; height: 22px; color: var(--ink); }
.tool:hover { background: #f0efea; transform: translateY(-2px); }
.tool:active { transform: scale(0.94); }
.tool.is-on { background: var(--st-blue); }
.tool.is-on[data-tool="move"] { background: var(--blue-ink); }
.tool.is-on[data-tool="move"] svg { color: #fff; }
.tool--text { width: auto; padding: 0 14px; font-size: var(--step-small); font-weight: 700; }

.you { position: fixed; left: 0; top: 0; z-index: 65; pointer-events: none; --c: var(--ink); color: var(--c); opacity: 0; transition: opacity 200ms; }
.you .cur__tag { left: 18px; top: 20px; }
.you.is-on { opacity: 1; }

/* ==========================================================================
   Intro states (only when the script runs)
   ========================================================================== */
html.intro [data-reveal] { opacity: 0; }
html.intro .nav::before { transform: scaleX(0); }
html.intro .nav > * { opacity: 0; }
html.intro .nav.is-in::before { transform: scaleX(1); transition: transform 620ms var(--ease-out); }
html.intro .nav.is-in > * { opacity: 1; transition: opacity 400ms 260ms var(--ease-out); }
html.intro .nav.is-in { opacity: 1; }
html.intro [data-reveal].is-in { opacity: 1; transition: opacity 420ms var(--ease-out); }
html.intro .hero__name[data-reveal] { opacity: 1; }
html.intro .toolbar { transform: translate(-50%, 140%); }
.toolbar { transition: transform 520ms var(--ease-out); }

/* typing letters in the lead */
.ch { opacity: 0; }
.ch.on { opacity: 1; }
.caret { display: inline-block; width: 3px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--pink); animation: blink 900ms steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* the name rises letter block by letter block */
.hero__name span { transition: transform 520ms var(--ease-out), opacity 260ms var(--ease-out); }
html.intro .hero__name:not(.is-in) span { transform: translateY(20px); opacity: 0; }
html.intro .hero__name.is-in span:nth-child(2) { transition-delay: 60ms; }

/* drops: stickies, stickers, photo */
html.intro .sticky[data-reveal]:not(.is-in),
html.intro .sticker[data-reveal]:not(.is-in) { opacity: 0; }
.pop { animation: pop 460ms var(--ease-out) both; }
@keyframes pop { 0% { opacity: 0; scale: 0.9; } 100% { opacity: 1; scale: 1; } }

/* a section's selected element waits until its cursor has drawn the box round it */
.await-cursor { opacity: 0 !important; transform: scale(0.985); transition: opacity 360ms var(--ease-out), transform 460ms var(--ease-out); }
.cursor-shown { transition: opacity 360ms var(--ease-out), transform 460ms var(--ease-out); }

/* on the photo board, each photo is held just above the board until a hat pins it down */
.life .await-cursor { transform: translateY(-18px) rotate(calc(var(--r, 0deg) * 2.5)) scale(1.06) !important; }
.life .cursor-shown { transition: opacity 260ms var(--ease-out), transform 420ms cubic-bezier(0.34, 1.4, 0.64, 1); }

/* section entrances */
.js [data-in] { opacity: 0; transform: translateY(24px); transition: opacity 420ms var(--ease-out), transform 560ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-in].is-in { opacity: 1; transform: none; }
.js .letter[data-in] { transform: translateY(28px) rotate(0.6deg); }
.js .letter[data-in].is-in { transform: rotate(0.6deg); }

/* ==========================================================================
   Tablet and phone: each its own composition
   ========================================================================== */
@media (max-width: 1280px) {
  .files__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .files__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .files[data-view="list"] .file__link { grid-template-columns: 112px minmax(0, 1fr); }
  .files[data-view="list"] .file__line { display: none; }
  .js [data-in], .js [data-in].is-in { opacity: 1; transform: none; transition: none; }
  .js .snap[data-in], .js .snap[data-in].is-in, .js .life__note[data-in], .js .life__note[data-in].is-in { transform: rotate(var(--r, 0deg)); }
  .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spines { flex-wrap: wrap; gap: 10px; }
  .spines li { flex: 0 1 auto; }
  .spine { writing-mode: horizontal-tb; height: auto; padding: 10px 14px; gap: 10px; }
  .spine:hover, .spine:focus-visible { transform: none; }
  .life { grid-template-columns: 1fr; gap: 48px; }
  .nav__links { display: none; }
  .nav__right { margin-left: auto; }
  .hero__text { grid-column: 1 / span 7; }
  .hero__photo { grid-column: 8 / span 5; }
  .hero__stickies li:nth-child(1) { left: 40%; top: 72%; }
  .hero__stickies li:nth-child(2) { right: 0; top: 64%; }
  .hero__stickies li:nth-child(3) { display: none; }
  .sticker--hats { display: none; }
  .sticker--dxb { left: auto; right: 2%; top: 11%; }
  .sticker--lanka { left: 46%; right: auto; top: 61%; width: 160px; }
  .tools__list { max-width: 330px; }
  .sticker--cert { left: 48%; }
  .section__head h2 { grid-column: 1 / -1; }
  .shot--a, .shot--c, .shot--e { grid-column: 1 / span 11; margin-top: 0; }
  .shot--b, .shot--d, .shot--f { grid-column: 2 / span 11; margin-top: 0; }
  .section__head p { grid-column: 1 / span 9; margin-top: 20px; }
  .dayjob__head { grid-column: 1 / -1; margin-bottom: 28px; }
  .dayjob__list { grid-column: 1 / -1; }
  .shot__meta { grid-template-columns: 1fr; }
  .shot__link { grid-column: 1; grid-row: auto; }
  .skills__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__photo { grid-column: 1 / span 5; }
  .letter { grid-column: 6 / span 7; }
  .contact__intro { grid-column: 1 / -1; }
  .thread { grid-column: 1 / span 9; margin-top: 56px; }
}

@media (max-width: 720px) {
  :root { --gap-section: 80px; }
  html { scroll-padding-top: 80px; }
  .nav { height: 56px; top: 8px; gap: 12px; }
  .nav__file { font-size: 14px; }
  .nav__file .nav__slash, .nav__file .nav__proj { display: none; }
  .avatars { display: none; }
  .nav__logo { width: 34px; height: 34px; font-size: 14px; }

  .hero { display: flex; flex-direction: column; padding: 108px 0 112px; min-height: 0; }
  .hero__name { font-size: clamp(4.25rem, 22vw, 6.5rem); }
  .hero__lead { margin-top: 24px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__photo { width: 72%; margin: 48px 0 0 auto; }
  .nav__proj { display: none; }
  .btn--dl { padding: 0 12px; }
  .btn--dl span { display: none; }
  .hero__stickies { position: relative; inset: auto; display: flex; gap: 12px; margin-top: -72px; z-index: 3; pointer-events: auto; }
  .hero__stickies .sticky { position: relative; left: auto !important; right: auto !important; top: auto !important; width: 148px; }
  .hero__stickies li:nth-child(2), .hero__stickies li:nth-child(3) { display: none; }
  /* stickers become a row under the photo; the certificate stays pinned beside the name */
  .hero__stickers { position: static; inset: auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 36px; pointer-events: auto; }
  .hero__stickers .sticker { position: relative; left: auto !important; right: auto !important; top: auto !important; }
  .hero__stickers .sticker--cert { position: absolute; right: 0 !important; top: 112px !important; left: auto !important; width: 84px; }
  .sticker--dxb, .sticker--lanka { display: block; width: 46%; max-width: 190px; }
  .sticker--hats { display: block; width: 120px; }
  .tools__list { max-width: none; }
  .board__hint { position: static; margin: 28px 0 0; padding-bottom: 72px; }
  .hero { padding-bottom: 0; }

  .section { padding: 28px 20px 36px; }
  .section--plain { padding-left: 0; padding-right: 0; }
  .work { grid-template-columns: 1fr; row-gap: 56px; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .files__grid { grid-template-columns: minmax(0, 1fr); }
  .files__view { display: none; }
  .client { height: 72px; }
  .client__logo { inset: 16px 14px; width: calc(100% - 28px); height: calc(100% - 32px); }
  .shot--a, .shot--b, .shot--c, .shot--d, .shot--e, .shot--f { grid-column: 1; margin-top: 0; }
  .pin { right: -8px; width: 34px; height: 34px; font-size: 12px; }
  .shot__head { flex-direction: column; gap: 4px; }

  /* phones get every section at once: no waiting for entrances on a long scroll */
  .js [data-in], .js [data-in].is-in { opacity: 1; transform: none; transition: none; }
  .js .snap[data-in], .js .snap[data-in].is-in, .js .life__note[data-in], .js .life__note[data-in].is-in { transform: rotate(var(--r, 0deg)); }
  .life__grid { grid-template-columns: 1fr 1fr; }
  .life__grid > * { grid-column: auto !important; grid-row: auto !important; margin-top: 0 !important; }
  .snap--c, .snap--e, .snap--k { grid-column: 1 / -1 !important; }
  .life__group { padding: 64px 16px 24px; }
  .life__tab { left: 16px; }

  .about { display: flex; flex-direction: column; }
  .about__photo { position: relative; top: 0; width: 64%; }
  .letter { margin-top: -40px; transform: none; padding: 28px 22px; }
  .js .letter[data-in], .js .letter[data-in].is-in { transform: none; }

  .gantt { --label: 0%; padding: 20px 16px; }
  .gantt__scale { margin-left: 0; }
  .gantt__scale span:nth-child(even) { visibility: hidden; }
  .gantt__row { grid-template-columns: 1fr; gap: 12px; }
  .gantt__label { padding-right: 0; }
  .gantt__track { height: 44px; }
  .gantt__bar { min-width: max-content; padding: 0 12px; }
  .gantt__bar::after { display: none; }
  .gantt__today { display: none; }
  .dayjob { padding: 26px 20px; }
  .dayjob__list { columns: 1; }
  .skills { padding: 24px 20px; }
  .skills__groups { grid-template-columns: 1fr; }



  .contact__intro h2 { font-size: clamp(3.5rem, 17vw, 5rem); }
  .contact__lines { font-size: 1.25rem; }
  .thread { grid-column: 1 / -1; }
  .thread__form { grid-template-columns: 1fr; }

  .footer { padding-bottom: 112px; }
  .footer__row { flex-direction: column; }

  .tool { width: 40px; height: 40px; padding: 6px; }
  .tool svg { width: 26px; height: 26px; }
  .toolbar { gap: 2px; padding: 5px; }
  .toolbar__gap, .tool[data-action="replay"] { display: none; }
}

/* ==========================================================================
   Reduced motion: everything is on the board at once, nothing travels
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-in] { opacity: 1; transform: none; }
  .js .letter[data-in] { transform: rotate(0.6deg); }
}
