/* =====================================================================
   gglias.github.io — v2 "Studio" (dark)
   The whole site reads as a dark Figma canvas: selection frames, a
   UI3-style toolbar for navigation, FigJam stickies you can drag.
   ===================================================================== */

/* ================= Tokens ================= */
:root {
  --bg: #09090a;
  --bg-2: #0e0e10;
  --card: #121214;
  --card-2: #18181b;
  --line: rgb(255 255 255 / 0.07);
  --line-2: rgb(255 255 255 / 0.13);
  --text: #f3f3f1;
  --muted: #9b9ba1;
  --faint: #56565c;
  --dot: rgb(255 255 255 / 0.075);   /* canvas dot grid */

  --select: #0d99ff;                  /* Figma selection blue — only for "selected" things */
  --sticky: #a259ff;                  /* FigJam sticky note — the palette violet */
  --cursor-color: #a259ff;            /* Figma multiplayer cursor (kept apart from the accent) */
  --on-cursor: #fff;

  /* Accent (switchable while we choose — see [data-accent] below) */
  --accent: #ff5b1f;
  --accent-deep: #c4210b;
  --on-accent: #fff;

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --cursor-arrow: url("assets/cursor.svg") 2 2, auto;
  --cursor-hand: url("assets/hand-glove.svg") 6 2, pointer;   /* classic Mac glove ("Mickey Mouse" hand) */

  --radius: 22px;
  --radius-s: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --gap: clamp(16px, 2.4vw, 24px);
}

[data-accent="ember"]  { --accent: #ff5b1f; --accent-deep: #c4210b; --on-accent: #fff; }
[data-accent="violet"] { --accent: #a259ff; --accent-deep: #4b1fb8; --on-accent: #fff; }
[data-accent="lime"]   { --accent: #c8f65a; --accent-deep: #2f7d22; --on-accent: #0b0d06; }
[data-accent="cyan"]   { --accent: #2ed3f0; --accent-deep: #1d4fd1; --on-accent: #04161a; }

*,
*::before,
*::after { box-sizing: border-box; }

html {
  cursor: var(--cursor-arrow);
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
  overflow-x: clip;      /* nothing (hint hand, stickers) can make the page scroll sideways; keeps sticky working */
}

/* No background on body: the html background shows through, so the glow and
   dot grid (negative z-index) aren't painted over. */
body {
  margin: 0;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Canvas dot grid; it clears around the mouse (--mx / --my set in main.js) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, var(--dot) 1.1px, transparent 1.4px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(circle 150px at var(--mx, -999px) var(--my, -999px), transparent 0, transparent 35%, #000 100%);
  mask-image: radial-gradient(circle 150px at var(--mx, -999px) var(--my, -999px), transparent 0, transparent 35%, #000 100%);
}

/* Ambient accent light, bottom-left and top-right */
.glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  transition: background 0.6s ease;
}
.glow-a {
  width: 70vmax; height: 70vmax;
  left: -28vmax; bottom: -36vmax;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 52%, transparent), transparent 62%);
}
.glow-b {
  width: 50vmax; height: 50vmax;
  right: -20vmax; top: -24vmax;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-deep) 40%, transparent), transparent 62%);
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1;
}

p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

a, button, [role="button"], label, summary, select { cursor: var(--cursor-hand); }

:focus-visible {
  outline: 2px solid var(--select);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font: 500 14px var(--f-body);
}
.skip:focus { top: 12px; }

/* ================= Shared pieces ================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 12px/1 var(--f-mono);
  letter-spacing: 0.02em;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.h2 {
  font-size: clamp(2rem, 4.3vw, 3.5rem);
  line-height: 1.02;
}
.dim { color: var(--faint); }

.surface,
.profile,
.stat,
.lab-card,
.ex-card,
.step,
.plugin-card {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.015)), var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
}

.arrow-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 0.04);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.arrow-tile svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}

/* ================= Layout ================= */
.shell {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding: 24px clamp(16px, 3vw, 32px) 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.content {
  min-width: 0;
  max-width: 900px;
  padding-top: 18px;
  padding-bottom: 140px;   /* room for the toolbar */
}

.block { margin-top: clamp(104px, 12vw, 160px); }
.block-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

/* ================= Profile: Figma-style properties panel ================= */
.profile {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  padding: 0 0 12px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  scrollbar-width: none;
}
.profile::-webkit-scrollbar { display: none; }

/* Panel header: logo + the selected frame's name */
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.profile-mark img { height: 24px; width: auto; }
.panel-path {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 400 11.5px/1 var(--f-mono);
  color: var(--muted);
}
.panel-path svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.profile .portrait { margin: 14px 14px 0; }
.profile .portrait-img { aspect-ratio: 1 / 0.8; }
.profile .portrait-photo { object-position: 50% 18%; }

/* Panel sections, separated like Figma's right sidebar */
.panel-sec {
  margin-top: 12px;
  padding: 12px 16px 0;
  border-top: 1px solid var(--line);
}
.panel-title {
  margin-bottom: 10px;
  font: 600 11.5px/1 var(--f-body);
  letter-spacing: 0;
  color: var(--text);
}

.props { margin: 0; display: grid; gap: 1px; }
.props > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 26px;
}
.props dt { font: 400 11.5px/1.3 var(--f-mono); color: var(--muted); }
.props dd {
  margin: 0;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.045);
  font-size: 0.82rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
}
.status i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4ade80;
  animation: ping 2s ease-out infinite;
}

/* Portrait: a Figma frame around the photo */
.portrait {
  position: relative;
  margin: 0;
}
.portrait-img {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0d0e;
  isolation: isolate;
}
.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: brightness(1.12) contrast(1.04);
  transition: transform 0.8s var(--ease);
}
/* Accent toning: the B&W photo takes the accent colour (multiply keeps the blacks deep) */
.portrait-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(80% 60% at 75% 25%, color-mix(in srgb, var(--accent) 100%, #fff 18%), transparent 70%),
    linear-gradient(170deg, var(--accent), var(--accent-deep));
  mix-blend-mode: multiply;
  transition: opacity 0.5s ease, background 0.6s ease;
}
/* film grain */
.portrait-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
  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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Hover: "inspect" the frame — toning fades to the clean B&W original */
.portrait:hover .portrait-img::after { opacity: 0; }
.portrait:hover .portrait-photo { transform: scale(1.03); }
.portrait-label,
.portrait-size {
  position: absolute;
  z-index: 2;
  font: 400 11px/1 var(--f-mono);
  color: rgb(255 255 255 / 0.7);
  pointer-events: none;
}
.portrait-label { left: 12px; top: 12px; }
.portrait-size {
  right: 10px;
  bottom: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--select);
  color: #fff;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.portrait:hover .portrait-img { outline: 1.5px solid var(--select); outline-offset: -1.5px; }
.portrait:hover .portrait-size { opacity: 1; transform: none; }

.profile-id { padding: 9px 16px 0; }
.profile-name {
  font-size: 1.9rem;   /* ~30px */
  font-weight: 500;
  letter-spacing: -0.03em;
}
.profile-role {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Email + copy button */
.mail-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 10px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.045);
}
.profile-mail {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.2s;
}
.profile-mail:hover { color: var(--accent); }
.copy-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.copy-btn:hover { background: rgb(255 255 255 / 0.08); color: var(--text); }
.copy-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.copy-tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--select);
  color: #fff;
  font: 400 11px/1 var(--f-mono);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.copy-tip.is-on { opacity: 1; transform: none; }

.socials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.socials a {
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.045);
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.socials a:hover { color: var(--text); background: rgb(255 255 255 / 0.1); }
.socials svg { width: 15px; height: 15px; }

/* Primary action, Figma button shape (not a pill) */
.profile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 16px 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font: 600 14px/1 var(--f-body);
  transition: filter 0.2s, transform 0.2s;
}
.profile-cta:hover { filter: brightness(1.1); }
.profile-cta:active { transform: translateY(1px); }
.profile-cta svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

a:hover > .arrow-tile svg { transform: rotate(45deg); }

/* ================= Hero ================= */
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* The Figma-style selection around the headline */
.frame {
  position: relative;
  display: inline-block;
  margin-left: calc(clamp(10px, 1.5vw, 20px) * -1);
  padding: clamp(10px, 1.4vw, 18px) clamp(10px, 1.5vw, 20px);
}
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--select);
  pointer-events: none;
  clip-path: inset(0 100% 100% 0);
  animation: draw 0.9s var(--ease) 0.9s forwards;
}
.frame-label {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  font: 400 11.5px/1 var(--f-mono);
  color: var(--select);
  opacity: 0;
  animation: fade 0.4s ease 1.5s forwards;
}
.handle {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1.5px solid var(--select);
  transform: scale(0);
  animation: pop 0.35s var(--ease) forwards;
}
.h-tl { left: -4.5px; top: -4.5px; animation-delay: 1.45s; }
.h-tr { right: -4.5px; top: -4.5px; animation-delay: 1.55s; }
.h-br { right: -4.5px; bottom: -4.5px; animation-delay: 1.65s; }

/* Resizable hero frame: grab the bottom-right corner (Mac hand cursor) */
.frame { cursor: var(--cursor-hand); }
.frame.is-resizable { max-width: calc(100% + clamp(10px, 1.5vw, 20px)); }
.frame .h-br {
  z-index: 3;
  touch-action: none;
  cursor: var(--cursor-hand);
  transition: background 0.2s, box-shadow 0.2s;
}
.frame .h-br::before {           /* bigger grab area than the 9px square */
  content: "";
  position: absolute;
  inset: -12px;
}
.frame .h-br:hover,
.frame.is-resizing .h-br {
  background: var(--select);
  box-shadow: 0 0 0 4px rgb(13 153 255 / 0.25);
}
.frame.is-resizing { user-select: none; -webkit-user-select: none; }
.frame.is-resetting { transition: width 0.5s var(--ease); }
.frame.is-resetting .hero-title { transition: font-size 0.5s var(--ease); }
html.is-resizing-frame,
html.is-resizing-frame * { cursor: var(--cursor-hand) !important; }

/* Resize hint: sits exactly on the bottom-right corner and moves with it */
.resize-hint {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 0;
  height: 0;
  pointer-events: none;
}
.hint-hand {
  position: absolute;
  left: -6.2px;             /* fingertip (6.2, 2.5) on the corner, like the real cursor hotspot */
  top: -2.5px;
  width: 28px;
  height: 32px;
  max-width: none;
  opacity: 0;
  transform: translate(26px, 22px);
  transform-origin: 6.2px 2.5px;
  transition: opacity 0.35s ease, transform 0.6s var(--ease);
}
.resize-hint.is-on .hint-hand { opacity: 1; transform: translate(0, 0); }
.resize-hint.is-pressed .hint-hand { transform: translate(0, 0) scale(0.86); transition-duration: 0.15s; }

.hint-pulse {
  position: absolute;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--select);
  opacity: 0;
}
.resize-hint.is-on .hint-pulse { animation: hintPulse 1.3s ease-out 0.25s 2; }
@keyframes hintPulse {
  0% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.6); }
}

.hint-tip {
  position: absolute;
  right: 12px;           /* opens to the left of the corner, so it never leaves the screen */
  top: 30px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--select);
  color: #fff;
  font: 400 11px/1.2 var(--f-mono);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.35);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s;
}
.resize-hint.is-on .hint-tip { opacity: 1; transform: none; }
/* reduced motion: tip only, no hand travel */
.resize-hint.is-static .hint-hand { transform: none; }
.h-bl { left: -4.5px; bottom: -4.5px; animation-delay: 1.75s; }
.size {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translate(-50%, 4px);
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--select);
  color: #fff;
  font: 400 11px/1.3 var(--f-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0;
  animation: rise 0.4s var(--ease) 1.85s forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 5.1rem);
  font-weight: 350;
  letter-spacing: -0.038em;
  line-height: 0.98;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: lineIn 0.9s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; color: var(--muted); }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }

.brandword { white-space: nowrap; }
.tool-icon {
  display: inline-block;
  height: 0.72em;
  width: auto;
  margin-right: 0.14em;
  vertical-align: -0.04em;
  transform: scale(0) rotate(-20deg);
  animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero-title .line:nth-child(1) .tool-icon { animation-delay: 0.75s; }
.hero-title .line:nth-child(3) .tool-icon { animation-delay: 0.9s; }

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 24px 32px;
  margin-top: clamp(40px, 5vw, 64px);
  opacity: 0;
  animation: fade 0.8s ease 0.6s forwards;
}
.intro {
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.pills li {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  line-height: 1;
}

/* ---- Stickers: drag them like objects on the canvas ---- */
.stickers {
  position: relative;
  min-height: 320px;
}
.sticker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r));
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  transition: box-shadow 0.2s, filter 0.2s;
  animation: stickIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.35));
}
.sticker:nth-child(1) { animation-delay: 1.1s; }
.sticker:nth-child(2) { animation-delay: 1.25s; }
.sticker:nth-child(3) { animation-delay: 1.4s; }
.sticker:nth-child(4) { animation-delay: 1.55s; }
.sticker:nth-child(5) { animation-delay: 1.7s; }
.sticker.is-dragging {
  cursor: grabbing;
  z-index: 5;
  filter: drop-shadow(0 22px 30px rgb(0 0 0 / 0.5));
}
/* While dragging: Figma selection + X/Y readout */
.sticker.is-dragging::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1.5px solid var(--select);
  pointer-events: none;
}
.sticker-xy {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%) rotate(calc(var(--r) * -1));
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--select);
  color: #fff;
  font: 400 11px/1.3 var(--f-mono);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  pointer-events: none;
}
.sticker.is-dragging .sticker-xy { opacity: 1; }

.sticker--ring { width: 124px; height: 124px; color: var(--on-accent); }
.sticker--ring svg { width: 100%; height: 100%; overflow: visible; }
.ring-bg { fill: var(--accent); transition: fill 0.4s; }

/* Clear glossy vinyl: see-through body, white die-cut edge, printed ink, a shine on top */
.sticker--clear {
  border-radius: 50%;
  color: var(--accent);
  -webkit-backdrop-filter: blur(5px) saturate(160%);
  backdrop-filter: blur(5px) saturate(160%);
  filter: drop-shadow(0 8px 14px rgb(0 0 0 / 0.35));
}
.sticker--clear .ring-bg {
  fill: rgb(255 255 255 / 0.07);
  stroke: rgb(255 255 255 / 0.92);
  stroke-width: 3;
}
.sticker--clear .ring-text { fill: currentColor; }
.gloss {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  /* fixed specular highlight, top-left, like light on vinyl */
  background:
    radial-gradient(60% 45% at 30% 22%, rgb(255 255 255 / 0.42), transparent 70%),
    linear-gradient(160deg, rgb(255 255 255 / 0.16), transparent 45%, rgb(255 255 255 / 0.05) 80%);
  mix-blend-mode: screen;
}
/* moving shine that sweeps across on hover */
.gloss::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.55), transparent);
  transform: rotate(18deg) translateX(0);
  opacity: 0;
}
.sticker:hover .gloss::after,
.sticker.is-dragging .gloss::after { animation: shine 0.9s var(--ease) forwards; }

/* Illustrated avatar as a glossy die-cut sticker: thick white edge, shine on top */
.sticker--avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;                      /* the white die-cut edge */
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.4));
}
.sticker--avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}
.sticker--avatar .gloss { inset: 5px; }
@keyframes shine {
  0% { opacity: 0; transform: rotate(18deg) translateX(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: rotate(18deg) translateX(420%); }
}
.ring-text {
  font: 700 10.5px var(--f-display);
  font-stretch: 80%;
  letter-spacing: 0.12em;
  fill: currentColor;
  transform-box: view-box;
  transform-origin: 60px 60px;
  animation: spin 18s linear infinite;
}

.sticker--tag {
  padding: 16px 18px 14px 34px;
  border-radius: 10px;
  background: var(--text);
  color: #111;
  font: 800 19px/0.95 var(--f-display);
  font-stretch: 70%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.tag-hole {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--bg);
}

.sticker--label {
  padding: 12px 18px;
  border-radius: 999px;
  background: #c8f65a;               /* the palette lime */
  border: 0;
  color: #11160a;
  font: 700 17px/1 var(--f-display);
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* FigJam sticky note */
.sticker--stamp {
  width: 108px;
  height: 108px;
  padding: 14px;
  border-radius: 4px;
  background: var(--sticky);
  color: #160a2b;
  font: 800 34px/1 var(--f-display);
  font-stretch: 68%;
  display: flex;
  align-items: flex-end;
  box-shadow: inset 0 -10px 18px -12px rgb(0 0 0 / 0.25);
}
.sticker--stamp .slash { opacity: 0.45; }

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(36px, 5vw, 56px) 0 0;
  opacity: 0;
  animation: fade 0.8s ease 0.9s forwards;
}
.stat {
  position: relative;
  min-height: 168px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 12px/1 var(--f-mono);
  color: var(--muted);
}
.stat dt::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.stat dd {
  margin: 0;
  align-self: flex-end;
  font: 300 clamp(3rem, 5.4vw, 4.6rem)/0.9 var(--f-display);
  letter-spacing: -0.05em;
}
.stat dd span { color: var(--accent); }
.stat p {
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.3;
}
.stat dt + p + dd { margin-top: auto; }
.stat--accent {
  background: var(--accent);
  border-color: transparent;
  color: var(--on-accent);
  transition: background 0.4s;
}
.stat--accent dt { color: currentColor; opacity: 0.8; }
.stat--accent p { opacity: 0.85; }

/* ================= LAB: Designed in Figma, built in WordPress ================= */
.lab-card {
  padding: clamp(14px, 2vw, 22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lab-replay {
  font: 500 13px/1 var(--f-body);
  color: var(--muted);
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 14px;
  transition: color 0.2s, border-color 0.2s;
}
.lab-replay:hover { color: var(--text); border-color: var(--text); }

.duo {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
}
.duo-link { font: 500 20px/1 var(--f-body); color: var(--faint); }

.pane {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 24px 50px -24px rgb(0 0 0 / 0.8);
}
.pane-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font: 500 12px/1 var(--f-body);
  color: #fff;
}
.pane-bar--figma { background: #2c2c2c; }
.pane-bar--wp { background: #1d2327; }
.bar-icon { height: 16px; width: auto; flex: none; }
.bar-meta { margin-left: auto; color: rgb(255 255 255 / 0.5); }
.el-chip { padding: 4px 7px; border-radius: 3px; background: #92003b; font-size: 11px; }
.el-publish {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 3px;
  background: #fff;
  color: #1d2327;
  font-size: 11px;
  font-weight: 600;
}
.pane-canvas {
  height: 270px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #d6d6d6 1px, transparent 1.2px) 0 0 / 18px 18px, #f5f5f5;
}
.art { position: relative; display: flex; align-items: center; gap: 12px; }
.art-mark { height: 64px; width: auto; overflow: visible; }
.art-word { font: 600 36px/1 var(--f-body); letter-spacing: -0.035em; color: #000; }
.art-sel { position: absolute; inset: -12px -14px; border: 1.5px solid var(--select); pointer-events: none; }
.art-sel .handle { animation: none; transform: none; background: #fff; }
.sel-label {
  position: absolute;
  left: -1.5px;
  bottom: calc(100% + 6px);
  font: 500 12px/1 var(--f-body);
  color: var(--select);
  white-space: nowrap;
}
.sel-size {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--select);
  color: #fff;
  font: 500 11px/1.3 var(--f-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.el-body { height: 270px; display: grid; grid-template-columns: 88px minmax(0, 1fr); }
.el-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px;
  background: #f7f7f8;
  border-right: 1px solid #e8e8e8;
}
.el-panel-title {
  margin: 0 0 2px;
  font: 600 9.5px/1 var(--f-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.el-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 4px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  font: 500 10.5px/1 var(--f-body);
  color: #556068;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.el-tile svg { width: 16px; height: 16px; }
.el-tile.is-grab { border-color: #92003b; color: #92003b; box-shadow: 0 0 0 3px rgb(146 0 59 / 0.1); }
.el-canvas { position: relative; display: grid; place-items: center; background: #fff; }
.build-piece { opacity: 0; transform-box: fill-box; transform-origin: center; }
.art-word.build-piece { display: inline-block; }
.el-outline { position: absolute; left: 0; top: 0; border: 1.5px solid #71d7f7; opacity: 0; pointer-events: none; }
.el-handle {
  position: absolute;
  right: -1.5px;
  top: -1.5px;
  transform: translateY(-100%);
  padding: 2px 4px;
  border-radius: 2px 2px 0 0;
  background: #71d7f7;
  color: #fff;
  font: 600 9px/1 var(--f-body);
}
.el-toast {
  position: absolute;
  left: 50%;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px 7px 8px;
  border-radius: 999px;
  background: #1d2327;
  color: #fff;
  font: 500 11px/1 var(--f-body);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
}
.el-toast svg { width: 14px; height: 14px; fill: #4ade80; }
.el-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 26px;
  height: 32px;
  transform-origin: 2px 2px;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 1.2px rgb(0 0 0 / 0.35));
}
.el-cursor .c-hand { display: none; }
.el-cursor.is-hand .c-arrow { display: none; }
.el-cursor.is-hand .c-hand { display: inline; }
.el-ghost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #92003b;
  border-radius: 4px;
  color: #92003b;
  font: 500 10.5px/1 var(--f-body);
  box-shadow: 0 8px 18px -8px rgb(0 0 0 / 0.35);
  opacity: 0;
  pointer-events: none;
}

/* ================= Toolbox marquee ================= */
.toolbox {
  margin-top: clamp(72px, 9vw, 110px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.toolbox-label {
  font: 400 12px/1.3 var(--f-mono);
  color: var(--muted);
  white-space: nowrap;
}
.marquees { display: grid; gap: 12px; min-width: 0; }
.marquee--reverse .marquee-track { animation-direction: reverse; animation-duration: 49s; }   /* shorter row: same speed as the top one */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 54s linear infinite;   /* ~30px per second */
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 0.03);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
}
.marquee-track li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
}

/* ================= Work ================= */
.contact-band-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(20px, 3vw, 36px);
  animation: marquee 22s linear infinite;
}
.contact-band i {
  flex: none;
  width: clamp(14px, 1.6vw, 22px);
  height: clamp(14px, 1.6vw, 22px);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 70%, transparent);
}

/* Heading like a Figma page: big name + frame count */
.work-top { margin-bottom: clamp(24px, 3vw, 32px); }
.work-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 350;
  letter-spacing: -0.045em;
}
.frame-count {
  margin-top: 0.5em;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.06);
  font: 400 12px/1 var(--f-mono);
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}

/* Page tabs (the filters) */
.page-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: var(--gap);
  border-bottom: 1px solid var(--line-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.page-tabs::-webkit-scrollbar { display: none; }
.page-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-bottom: -1px;
  padding: 11px 14px 12px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: none;
  color: var(--muted);
  font: 500 13.5px/1 var(--f-body);
  transition: color 0.2s, background 0.2s;
}
.page-tab svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  opacity: 0.7;
}
.page-tab:hover { color: var(--text); background: rgb(255 255 255 / 0.03); }
.page-tab[aria-pressed="true"] {
  color: var(--text);
  background: var(--card);
  border-color: var(--line-2);
}
/* the active tab "opens" into the canvas below: cover the bottom border */
.page-tab[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--card);
}
.page-tab[aria-pressed="true"] svg { color: var(--select); opacity: 1; }
.tab-n {
  min-width: 20px;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgb(255 255 255 / 0.07);
  font: 400 11px/1 var(--f-mono);
  text-align: center;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-2);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 4.4;
  isolation: isolate;
}
.card.is-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.shot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #1a1a1d;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.8s var(--ease);
}
.shot img.is-framed {
  width: 86%;
  height: auto;
  margin-bottom: 22%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.6);
}
.card.is-wide .shot img.is-framed { width: 70%; margin-bottom: 12%; }
.shot img.is-logo {
  width: min(46%, 340px);
  height: auto;
  object-fit: contain;
  margin-bottom: 8%;
}
.card:hover .shot img { transform: scale(1.035); }

.m-empty {
  font: 400 12px/1.6 var(--f-mono);
  color: var(--faint);
  text-align: center;
  margin-bottom: 30%;
}

/* Glass panel with the project info */
.card-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 22px;
  border-radius: 18px;
  background: rgb(16 16 18 / 0.62);
  border: 1px solid rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.card-info { min-width: 0; flex: 1; }
.card-cat { font: 400 12px/1 var(--f-mono); color: var(--muted); }
.card-title {
  margin-top: 8px;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}
.card-title a { text-decoration: none; }
.card.is-link { cursor: var(--cursor-hand); }
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.card-tags li {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  font-size: 0.72rem;
  line-height: 1;
  color: var(--text);
}
.card:hover .arrow-tile { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.card:hover .arrow-tile svg { transform: rotate(45deg); }

.draft-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px dashed rgb(255 255 255 / 0.3);
  font: 400 11px/1 var(--f-mono);
  color: var(--muted);
}

/* Hover = "select" the card, like clicking a frame in Figma */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 1.5px solid var(--select);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.shot-size {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 4;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--select);
  color: #fff;
  font: 400 11px/1.3 var(--f-mono);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.card:hover::after,
.card:focus-within::after { opacity: 1; }
.card:hover .shot-size { opacity: 1; transform: none; }

.empty { margin-top: 24px; color: var(--muted); }

/* ================= Experience ================= */
.xp {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.xp-item { border-bottom: 1px solid var(--line); }
.xp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "co years plus" "role years plus";
  align-items: center;
  gap: 6px 16px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
}
.xp-row--static { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "co years" "role years"; }
.xp-co { grid-area: co; font-size: 0.85rem; color: var(--muted); }
.xp-role {
  grid-area: role;
  font: 400 clamp(1.2rem, 2vw, 1.55rem)/1.2 var(--f-display);
  letter-spacing: -0.025em;
  transition: color 0.2s;
}
.xp-years {
  grid-area: years;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  font: 400 12px/1 var(--f-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.xp-plus {
  grid-area: plus;
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background 0.25s, border-color 0.25s, transform 0.35s var(--ease);
}
.xp-plus::before,
.xp-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: currentColor;
}
.xp-plus::after { transform: rotate(90deg); transition: transform 0.35s var(--ease); }
button.xp-row:hover .xp-role { color: var(--accent); }
.xp-item.is-open .xp-plus { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.xp-item.is-open .xp-plus::after { transform: rotate(0deg); }
.xp-detail {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
}
.xp-item.is-open .xp-detail { max-height: 40em; padding-bottom: 26px; }
.xp-detail li {
  position: relative;
  padding-left: 18px;
  max-width: 62ch;
  font-size: 0.95rem;
  color: var(--muted);
}
.xp-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}

.edu {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px 24px;
  margin-top: clamp(40px, 5vw, 56px);
}
.edu .eyebrow { align-self: start; padding-top: 4px; }
.edu-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.edu-list li { display: grid; gap: 2px; }
.edu-list li span:first-child { font-size: 0.98rem; }
.edu-list li span:last-child { font-size: 0.85rem; color: var(--muted); }

/* ================= Expertise ================= */
.ex-card { padding: clamp(24px, 4vw, 44px); }
.ex-list { margin-top: clamp(24px, 3vw, 36px); }
.ex-item h3 { margin: 0; }
.ex-item button {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--faint);
  text-align: left;
  font: 300 clamp(1.9rem, 4.4vw, 3.4rem)/1.08 var(--f-display);
  letter-spacing: -0.045em;
  transition: color 0.3s;
}
.ex-item button:hover { color: var(--muted); }
.ex-item.is-open button { color: var(--text); gap: 16px; }
.ex-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 0;
  height: 0.9em;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  overflow: hidden;
  opacity: 0;
  transition: width 0.35s var(--ease), opacity 0.3s;
}
.ex-item.is-open .ex-icon { width: 0.9em; opacity: 1; }
.ex-icon svg {
  width: 52%;
  height: 52%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ex-detail {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 calc(0.9em + 16px);
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);   /* so em-based indent matches the icon */
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
}
.ex-detail li {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 0.95rem/1.4 var(--f-body);
  color: var(--muted);
}
.ex-detail li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.ex-item.is-open .ex-detail { max-height: 8em; padding-top: 10px; padding-bottom: 22px; }
.ex-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.ex-foot a { color: var(--text); text-decoration: none; }
.ex-foot a:hover { color: var(--accent); }

/* ================= Process ================= */
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  padding: clamp(22px, 3vw, 32px);
  min-height: 230px;
  display: flex;
  flex-direction: column;
}
.step-no {
  align-self: flex-start;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font: 400 12px/1 var(--f-mono);
  color: var(--muted);
}
.step h3 {
  margin-top: auto;
  padding-top: 40px;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 400;
}
.step p { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.step:hover .step-no { border-color: var(--accent); color: var(--accent); }

/* ================= About ================= */
.about-lead {
  font: 300 clamp(1.6rem, 3.3vw, 2.6rem)/1.18 var(--f-display);
  letter-spacing: -0.035em;
}
.about-lead .w { color: var(--faint); transition: color 0.35s ease; }
.about-lead .w.is-lit { color: var(--text); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 24px 40px;
  align-items: center;
  margin-top: clamp(36px, 5vw, 56px);
}
.about-text { color: var(--muted); max-width: 46ch; }
.plugin-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 14px 14px 16px;
  text-decoration: none;
  transition: border-color 0.25s;
}
.plugin-card:hover { border-color: var(--line-2); }
.plugin-card:hover .arrow-tile { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.plugin-card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-s);
  background: #1e1e1e;
}
.plugin-card-icon svg { height: 26px; width: auto; }
.plugin-card-text { flex: 1; display: grid; gap: 6px; }
.plugin-card-eyebrow { font: 400 12px/1 var(--f-mono); color: var(--muted); }
.plugin-card-name { font: 400 1.4rem/1 var(--f-display); letter-spacing: -0.03em; }

.tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.tools dt { font: 400 12px/1 var(--f-mono); color: var(--muted); margin-bottom: 10px; }
.tools dd { margin: 0; font-size: 0.95rem; }

/* ================= Contact ================= */
.contact { display: grid; gap: 24px; }
.contact-title { font-size: clamp(2rem, 4.3vw, 3.5rem); line-height: 1.02; max-width: 16ch; }
.contact-band {
  position: relative;
  display: block;
  margin-top: 28px;
  padding: clamp(26px, 4vw, 44px) 0;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 0.03);
  overflow: hidden;
  text-decoration: none;
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.contact-band-track { animation-duration: 18s; }
.contact-band-track span {
  font: 300 clamp(2.6rem, 7vw, 5.6rem)/1 var(--f-display);
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.contact-band:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.contact-band:hover i { background: var(--on-accent); box-shadow: none; }

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.mail {
  font: 400 clamp(1.2rem, 2.2vw, 1.6rem)/1.2 var(--f-display);
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: color 0.2s, border-color 0.2s;
}
.mail:hover { color: var(--accent); border-color: var(--accent); }
.links { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--text); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(80px, 10vw, 120px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font: 400 12px/1.5 var(--f-mono);
  color: var(--faint);
}

/* ================= Figma multiplayer cursor (desktop) ================= */
/* main.js adds .has-fig-cursor on fine pointers only; touch keeps the system cursor */
html.has-fig-cursor,
html.has-fig-cursor * { cursor: none !important; }

.fig-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.2s ease;
  will-change: transform;
}
html.has-fig-cursor .fig-cursor.is-visible { opacity: 1; }
.fig-cursor svg {
  position: absolute;
  left: -4px;            /* the arrow tip (4, 3.5) sits on the pointer */
  top: -3.5px;
  width: 24px;
  height: 24px;
  overflow: visible;
  transform-origin: 4px 3.5px;
  transition: transform 0.15s var(--ease);
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.4));
}
.fig-cursor path {
  fill: var(--cursor-color);
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition: fill 0.4s;
}
.fig-cursor-label {
  position: absolute;
  left: 15px;
  top: 17px;
  padding: 4px 8px;
  border-radius: 3px 10px 10px 10px;
  background: var(--cursor-color);
  color: var(--on-cursor);
  font: 600 12px/1.25 var(--f-body);
  white-space: nowrap;
  box-shadow: 0 0 0 1.5px #fff, 0 2px 8px rgb(0 0 0 / 0.35);   /* white ring: readable even over accent buttons */
  transition: background 0.4s, transform 0.2s var(--ease);
}
.fig-cursor.is-action .fig-cursor-label { transform: scale(1.06); }
.fig-cursor.is-down svg { transform: scale(0.82); }

/* ================= Toolbar (Figma UI3) ================= */
.toolbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  transform: translateX(-50%);
  border-radius: 16px;
  background: rgb(30 30 33 / 0.8);
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  animation: toolbarIn 0.7s var(--ease) 1s both;
}
@keyframes toolbarIn {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.toolbar a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 11px;
  border-radius: 10px;
  color: #c9c9cf;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, padding 0.35s var(--ease);
}
.toolbar a:hover { background: rgb(255 255 255 / 0.08); color: #fff; }
.toolbar a.is-active { background: var(--select); color: #fff; padding-right: 14px; }
.toolbar .tb-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* The active tool shows its name: the pill opens smoothly */
.tb-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  font: 600 13px/1 var(--f-body);
  white-space: nowrap;
  transition: max-width 0.35s var(--ease), opacity 0.25s, margin 0.35s var(--ease);
}
.toolbar a.is-active .tb-label { max-width: 110px; opacity: 1; margin-left: 8px; }

/* Dividers between groups, like Figma's toolbar */
.tb-sep {
  flex: none;
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: rgb(255 255 255 / 0.12);
}

/* Tooltip with the keyboard shortcut, Figma style */
.tb-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #1e1e1e;
  color: #fff;
  font: 500 11.5px/1 var(--f-body);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.4);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}
.tb-tip kbd {
  font: 400 11px/1 var(--f-mono);
  color: rgb(255 255 255 / 0.5);
}
.toolbar a:hover .tb-tip,
.toolbar a:focus-visible .tb-tip { opacity: 1; transform: translate(-50%, 0); }
.toolbar a.is-active:hover .tb-tip { opacity: 0; }   /* its name is already showing */

/* Scroll progress along the bottom edge */
.tb-progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none;
}
.tb-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: background 0.4s;
}

/* ================= Project page (project.html) ================= */
.pj-shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 20px clamp(16px, 3vw, 32px) 140px;
}

/* Top bar: logo, breadcrumb, way back */
.pj-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.015)), var(--card);
  border: 1px solid var(--line);
}
.pj-home img { height: 24px; width: auto; }
.pj-crumbs {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font: 400 12px/1 var(--f-mono);
  color: var(--muted);
  white-space: nowrap;
}
.pj-crumbs a { color: var(--muted); text-decoration: none; }
.pj-crumbs a:hover { color: var(--text); }
.pj-crumbs b { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.pj-back {
  flex: none;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.05);
  font: 500 13.5px/1 var(--f-body);
  text-decoration: none;
  transition: background 0.2s;
}
.pj-back:hover { background: rgb(255 255 255 / 0.1); }

/* Hero */
.pj-hero { max-width: 860px; padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); }
.pj-title {
  margin-top: 22px;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 350;
  letter-spacing: -0.045em;
  line-height: 0.96;
}
.pj-lede {
  margin-top: 24px;
  max-width: 58ch;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}
.pj-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 62ch;
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgb(255 199 0 / 0.08);
  border: 1px solid rgb(255 199 0 / 0.28);
  color: #f3e6b5;
  font-size: 0.92rem;
}
.pj-notice i { flex: none; width: 8px; height: 8px; margin-top: 0.5em; border-radius: 50%; background: #ffc700; }
.pj-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.pj-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 0.04);
  font: 600 14px/1 var(--f-body);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, filter 0.2s;
}
.pj-btn:hover { background: rgb(255 255 255 / 0.1); }
.pj-btn.is-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pj-btn.is-primary:hover { filter: brightness(1.1); }
.pj-btn-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pj-ext-arrow,
.pj-dl-arrow { transition: transform 0.3s var(--ease); }
.pj-btn:hover .pj-ext-arrow { transform: translate(2px, -2px); }
.pj-btn:hover .pj-dl-arrow { transform: translateY(2px); }

/* Cover: a Figma frame with its name and live size */
.pj-cover { position: relative; margin: 0; }
.pj-cover .shot {
  position: relative;
  inset: auto;
  aspect-ratio: 16 / 8.5;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.pj-cover .shot img.is-framed { width: 76%; margin: 0; }
.pj-cover .shot img.is-logo { width: min(38%, 360px); margin: 0; }
.pj-cover-label {
  position: absolute;
  left: 2px;
  bottom: calc(100% + 8px);
  font: 400 11.5px/1 var(--f-mono);
  color: var(--select);
}
.pj-cover-size {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--select);
  color: #fff;
  font: 400 11px/1.3 var(--f-mono);
  opacity: 0;
  transition: opacity 0.2s;
}
.pj-cover:hover .shot { outline: 1.5px solid var(--select); outline-offset: -1.5px; }
.pj-cover:hover .pj-cover-size { opacity: 1; }

/* Body: properties panel + sections */
.pj-body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(56px, 7vw, 88px);
}
.pj-facts {
  position: sticky;
  top: 24px;
  padding-bottom: 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.015)), var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.pj-facts-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font: 400 11.5px/1 var(--f-mono);
  color: var(--muted);
}
.pj-facts-head svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.pj-facts-sec { padding: 14px 16px 0; }
.pj-facts-sec + .pj-facts-sec { margin-top: 12px; border-top: 1px solid var(--line); }
.pj-facts .props > div { grid-template-columns: 96px minmax(0, 1fr); }
.pj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pj-tags li {
  padding: 6px 9px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.06);
  font-size: 0.78rem;
  line-height: 1;
}
.pj-facts-actions { display: grid; gap: 8px; }
.pj-facts-actions .pj-btn { justify-content: center; }

.pj-sections { display: grid; gap: clamp(36px, 4vw, 52px); max-width: 680px; }
.pj-sec h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.pj-sec p {
  margin-top: 12px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}
.pj-sec ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.pj-sec li {
  position: relative;
  padding-left: 20px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
}
.pj-sec li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1.5px;
  background: var(--accent);
}

/* Next project */
.pj-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label tile" "title tile";
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(80px, 10vw, 120px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.015)), var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.25s;
}
.pj-next .eyebrow { grid-area: label; }
.pj-next-title {
  grid-area: title;
  font: 350 clamp(2.2rem, 5vw, 3.8rem)/1 var(--f-display);
  letter-spacing: -0.045em;
}
.pj-next .arrow-tile { grid-area: tile; width: 64px; height: 64px; }
.pj-next:hover { border-color: var(--line-2); }
.pj-next:hover .arrow-tile { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.is-project .foot { margin-top: 64px; }

@media (max-width: 900px) {
  .pj-body { grid-template-columns: minmax(0, 1fr); }
  .pj-facts { position: relative; top: 0; }
}
@media (max-width: 560px) {
  .pj-crumbs span:first-of-type,
  .pj-crumbs span:nth-of-type(2) { display: none; }
  .pj-cover .shot { aspect-ratio: 4 / 3; }
  .pj-cover .shot img.is-framed { width: 90%; }
  .pj-next .arrow-tile { width: 48px; height: 48px; }
}

/* ================= Reveal on scroll ================= */
.reveal,
.card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in,
.card.is-in { opacity: 1; transform: none; }

/* ================= Keyframes ================= */
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes lineIn { to { transform: translateY(0); } }
@keyframes iconPop { to { transform: scale(1) rotate(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes stickIn {
  from { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r)) scale(0.4); }
  to { opacity: 1; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r)) scale(1); }
}

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .content { max-width: none; }

  /* Profile panel becomes a two-column card at the top */
  .profile {
    position: relative;
    top: 0;
    max-height: none;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    grid-template-areas:
      "head head"
      "portrait id"
      "props props"
      "links links"
      "cta cta";
    align-items: center;
    column-gap: 4px;
  }
  .panel-head { grid-area: head; }
  .profile .portrait { grid-area: portrait; }
  .profile-id { grid-area: id; }
  .profile .panel-sec:first-of-type { grid-area: props; }
  .profile .portrait-label { display: none; }
  .profile .portrait-img { aspect-ratio: 1; }
  .profile .panel-sec:last-of-type { grid-area: links; }
  .profile-cta { grid-area: cta; }
  .content { padding-top: 56px; }
}

@media (max-width: 760px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); }
  .stickers { min-height: 330px; }
  .sticker--avatar { left: 34%; top: 30%; }
  .sticker--label { left: 2%; top: 76%; }
  .sticker--stamp { left: 64%; top: 50%; }
  .hint-hand { transform: translate(0, 26px); }      /* enter from below: nothing sticks out past the screen edge */
  .resize-hint.is-on .hint-pulse { animation-name: hintPulseSmall; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat--accent { grid-column: 1 / -1; min-height: 140px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card,
  .card.is-wide { aspect-ratio: 4 / 4.2; }
  .card.is-wide .shot img.is-framed,
  .shot img.is-framed { width: 88%; margin-bottom: 30%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { min-height: 0; }
  .about-grid,
  .tools,
  .edu { grid-template-columns: minmax(0, 1fr); }
  .xp-row { gap: 6px 12px; }
  .xp-plus { width: 30px; height: 30px; }
  .toolbox { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo-link { justify-self: center; transform: rotate(90deg); }
  .pane-canvas,
  .el-body { height: 230px; }
  .art-mark { height: 52px; }
  .art-word { font-size: 30px; }
  .toolbar a { height: 40px; padding: 0 10px; }
  .tb-tip { display: none; }
}

@media (max-width: 520px) {
  .profile { grid-template-columns: 104px minmax(0, 1fr); }
  .props > div { grid-template-columns: 72px minmax(0, 1fr); }
  .profile-name { font-size: 1.7rem; }
  .card-panel { padding: 14px 14px 14px 16px; }
  .arrow-tile { width: 44px; height: 44px; }
  .toolbar { gap: 0; padding: 5px; }
  .tb-label { display: none; }            /* no room for the name on phones: the blue icon is enough */
  .tb-sep { margin: 0 2px; }
  .toolbar a { height: 38px; padding: 0 9px; }
  .toolbar a.is-active { padding-right: 9px; }
}

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .marquee-track,
  .contact-band-track { animation: none !important; }
  .marquee { overflow-x: auto; }
}

@keyframes hintPulseSmall {
  0% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.15); }
}
