/* ============================================================
   Shuai Xu — Portfolio
   Style influenced by davidpacheco.co (editorial scroll
   storytelling) and robertritacca.com (minimal AI-native
   systems aesthetic, light/dark theming)
   ============================================================ */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #111111;
  --copy: #4a4a4a;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --accent: #0082f3;
  --chip-bg: #efefef;

  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", "Open Sans", sans-serif;

  --rail-w: 200px;
  --max-w: 1200px;
}

html[data-theme="dark"] {
  --bg: #0d0d0d;
  --surface: #151515;
  --ink: #f4f4f4;
  --copy: #b0b0b0;
  --muted: #6f6f6f;
  --line: #262626;
  --chip-bg: #1f1f1f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

img, video { max-width: 100%; display: block; }

/* ---------- Type primitives ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .num { color: var(--accent); margin-right: 10px; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

/* ---------- Scroll progress ---------- */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 200;
}

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.35s ease;
}

.topbar .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.topbar nav { display: flex; align-items: center; gap: 26px; }

.topbar nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copy);
  transition: color 0.2s;
}

.topbar nav a:hover { color: var(--accent); }

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, transform 0.2s;
}

.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }

/* ---------- Left rail (Pacheco-style project index) ---------- */

.rail {
  position: fixed;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rail a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-left: 26px;
  transition: color 0.25s;
}

.rail a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 16px; height: 1px;
  background: var(--muted);
  transition: width 0.25s, background 0.25s;
}

.rail a:hover, .rail a.active { color: var(--ink); }

.rail a.active::before { width: 22px; background: var(--accent); }

/* ---------- Social rail ---------- */

.social-rail {
  position: fixed;
  left: 36px;
  bottom: 32px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.social-rail::after {
  content: "";
  width: 1px; height: 56px;
  background: var(--line);
  margin-top: 4px;
}

.social-rail a {
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}

.social-rail a:hover { color: var(--accent); transform: translateY(-2px); }

.social-rail svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 36px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-stage {
  position: relative;
  width: 100%;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--copy);
  margin-bottom: 32px;
}

.hero-pill svg { width: 14px; height: 14px; fill: var(--accent); }

.hero h1 {
  font-size: clamp(36px, 5.6vw, 74px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 58px;
}

.hero h1 .accent { color: var(--accent); }

.hero .intro {
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--copy);
}

/* ----- Selection-highlight word (Figma-style) ----- */

.select-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.select-wrap em {
  font-style: italic;
  padding: 0 0.1em;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: 0 0 0 1.5px var(--accent);
}

.handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border: 1.5px solid var(--accent);
}

.h-tl { left: -5px; top: -5px; }
.h-tr { right: -5px; top: -5px; }
.h-bl { left: -5px; bottom: -5px; }
.h-br { right: -5px; bottom: -5px; }

.cursor-tag {
  position: absolute;
  right: -16px;
  bottom: -48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  animation: cursor-nudge 4s ease-in-out infinite;
}

.cursor-tag svg { width: 24px; height: 24px; }

.cursor-tag svg path {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 1.5;
}

.name-tag {
  margin-left: 18px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.08em;
  padding: 4px 13px;
  border-radius: 999px;
}

@keyframes cursor-nudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(7px, 5px); }
}

/* ----- Floating stickers ----- */

.sticker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transition: transform 0.3s ease-out;
  user-select: none;
}

.sticker:hover { --s: 1.12; z-index: 3; }

.sticker .bob {
  animation: bob var(--dur, 6s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.key .bob {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.key-dark .bob {
  background: #1c1c1e;
  color: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22), inset 0 -5px 0 rgba(255, 255, 255, 0.1);
}

.key-light .bob {
  background: #fff;
  color: #1c1c1e;
  border: 1px solid #e3e3e3;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14), inset 0 -5px 0 #e9e9e9;
}

.toolbar .bob {
  background: #1c1c1e;
  border-radius: 16px;
  padding: 14px 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

.toolbar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbar svg .solid { fill: #fff; stroke: none; }

html[data-theme="dark"] .key-dark .bob,
html[data-theme="dark"] .toolbar .bob {
  border: 1px solid #2e2e30;
}

.star {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  overflow: visible;
}

.star path {
  transform-origin: 50% 50%;
  animation: twinkle var(--dur, 6s) ease-in-out var(--delay, 0s) infinite;
}

.star-sm { width: 26px; height: 26px; }

.star-sm path { fill: var(--accent); stroke: none; }

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(0.82) rotate(14deg); }
}

.hero .intro a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s;
}

.hero .intro a:hover { color: var(--accent); }

.hero .scroll-hint {
  margin-top: 72px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero .scroll-hint .line {
  width: 48px; height: 1px;
  background: var(--muted);
  display: inline-block;
  animation: pulse-line 2.2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.4); opacity: 0.4; }
}

/* ---------- Project sections ---------- */

.projects-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 36px; }

.project {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.project:nth-child(even) .project-visual { order: -1; }

.project .year {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
  opacity: 0.5;
  margin-bottom: 18px;
}

.project h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  margin: 14px 0 20px;
}

.project p { color: var(--copy); max-width: 540px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

.tags span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--copy);
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  transition: color 0.2s, gap 0.2s;
}

.project-cta:hover { color: var(--accent); gap: 16px; }

.project-cta.disabled {
  border-bottom-color: var(--line);
  color: var(--muted);
  pointer-events: none;
}

/* Visual placeholder panels — swap with real imagery */

.project-visual {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}

.project-visual .label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 0 32px;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 85% 12%, rgba(255,255,255,0.22), transparent 55%),
    radial-gradient(90% 90% at 10% 95%, rgba(0,0,0,0.28), transparent 60%);
}

.project-visual.has-img::after { display: none; }

.project-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  box-sizing: border-box;
}

.visual-wbai      { background: linear-gradient(135deg, #1b2a6b 0%, #0082f3 55%, #6fd0ff 100%); }
.visual-brand     { background: linear-gradient(135deg, #1d3a2f 0%, #1d9a6c 60%, #b6f2c8 100%); }
.visual-tcm       { background: linear-gradient(135deg, #111 0%, #fe2c55 55%, #25f4ee 110%); }
.visual-publisher { background: linear-gradient(135deg, #2d1b4e 0%, #7b46d3 60%, #f5c0ff 100%); }
.visual-onboard   { background: linear-gradient(135deg, #4a1313 0%, #f2545b 60%, #ffd29d 100%); }

/* ---------- About ---------- */

.about {
  border-top: 1px solid var(--line);
  padding: 120px 36px;
}

.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
}

.about h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  margin-top: 18px;
}

.about .bio { color: var(--copy); margin-bottom: 40px; }

.about-portrait {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-top: 40px;
}

.timeline { border-top: 1px solid var(--line); }

.timeline-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row .when {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 3px;
}

.timeline-row .what strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.timeline-row .what span { color: var(--copy); font-size: 15px; }

/* ---------- Contact ---------- */

.contact {
  border-top: 1px solid var(--line);
  padding: 140px 36px 60px;
  text-align: center;
}

.contact h2 {
  font-size: clamp(38px, 6vw, 80px);
  line-height: 1.05;
  margin: 22px 0 40px;
}

.contact h2 a {
  border-bottom: 3px solid var(--accent);
  transition: color 0.2s;
}

.contact h2 a:hover { color: var(--accent); }

.contact-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 100px;
}

.contact-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copy);
  transition: color 0.2s;
}

.contact-links a:hover { color: var(--accent); }

footer .fineprint {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Case study pages
   ============================================================ */

.cs-back {
  position: fixed;
  top: 22px; left: 36px;
  z-index: 110;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copy);
  transition: color 0.2s;
}

.cs-back:hover { color: var(--accent); }

.cs-hero {
  padding: 180px 36px 60px;
  max-width: 980px;
  margin: 0 auto;
}

.cs-hero h1 {
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.06;
  margin: 22px 0 28px;
}

.cs-hero .lede {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--copy);
  max-width: 700px;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 48px auto 0;
  padding: 32px 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cs-meta div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.cs-meta div span { font-size: 15px; color: var(--ink); }

.cs-body { max-width: 980px; margin: 0 auto; padding: 40px 36px 80px; }

.cs-section { padding: 56px 0; }

.cs-section h2 {
  font-size: clamp(26px, 3vw, 40px);
  margin: 14px 0 22px;
}

.cs-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
}

.cs-section p { color: var(--copy); margin-bottom: 18px; max-width: 760px; }

.cs-section ul {
  color: var(--copy);
  margin: 0 0 18px 22px;
  max-width: 740px;
}

.cs-section li { margin-bottom: 10px; }

.cs-section blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 26px;
  margin: 30px 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  max-width: 700px;
}

.cs-figure {
  border-radius: 16px;
  margin: 36px 0;
  aspect-ratio: 16 / 8;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.cs-figure span {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

.cs-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(110% 90% at 80% 10%, rgba(255,255,255,0.2), transparent 55%);
}

.cs-figure.has-img {
  aspect-ratio: auto;
  background: #fff;
  border: 1px solid var(--line);
  display: block;
}

.cs-figure.has-img::after { display: none; }

/* product shots get breathing room inside the card */
.cs-figure.pad { padding: clamp(20px, 5vw, 56px); }

.cs-figure img { width: 100%; height: auto; display: block; }

/* gentle settle-in zoom as figures scroll into view */
.cs-figure.reveal img {
  transform: scale(1.05);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.cs-figure.reveal.in img { transform: scale(1); }

.cs-figure figcaption,
.fig-caption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: -22px 0 36px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin: 36px 0;
}

.metric {
  background: var(--surface);
  padding: 30px 26px;
}

/* fill leftover grid cells so the divider color doesn't show through */
.metrics::after {
  content: "";
  background: var(--surface);
}

.metric .value {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.metric .desc { font-size: 14px; color: var(--copy); margin-top: 10px; }

/* ----- Case study storytelling patterns ----- */

/* highlighted key-insight / HMW block */
.insight {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 18px;
  padding: 40px 44px;
  margin: 36px 0;
}

.insight .eyebrow { margin-bottom: 16px; }

.insight p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vw, 29px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  max-width: 100%;
}

/* hypothesis / consequence arrows */
.flow { margin: 26px 0; display: flex; flex-direction: column; gap: 10px; }

.flow span {
  font-size: 17px;
  font-weight: 500;
}

.flow .arrow { color: var(--accent); margin-right: 10px; font-weight: 700; }

/* research quote cards */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--copy);
}

.quote-card::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

/* two-up comparison (problem/solution, before/after) */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.duo > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
}

.duo-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.duo .good .duo-label { color: var(--accent); }

.duo strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.duo p { font-size: 15px; margin: 0; }

.duo .big {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-note { font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .insight { padding: 28px 26px; }
}

.cs-next {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 90px 36px 110px;
}

.cs-next a {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 700;
  border-bottom: 3px solid var(--accent);
  transition: color 0.2s;
}

.cs-next a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .rail, .social-rail { display: none; }
}

@media (max-width: 860px) {
  .topbar { padding: 16px 20px; }
  .topbar nav { gap: 16px; }
  .hero { padding: 130px 24px 60px; }

  .project,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
  }

  /* shrink + reposition stickers so they hug the edges around the text */
  .key .bob { width: 44px; height: 44px; border-radius: 10px; font-size: 17px; }
  .toolbar .bob { padding: 9px 8px; gap: 7px 9px; border-radius: 12px; }
  .toolbar svg { width: 15px; height: 15px; }
  .star { width: 28px; height: 28px; }
  .star-sm { width: 18px; height: 18px; }

  .key-dark { --x: 5% !important; --y: 6% !important; }
  .key-light { --x: 17% !important; --y: 12% !important; }
  .toolbar { --x: 76% !important; --y: 5% !important; }
  .star-lg { --x: 88% !important; --y: 78% !important; }
  .star-sm { --x: 70% !important; --y: 88% !important; }

  .cursor-tag { right: -8px; bottom: -42px; }

  .project:nth-child(even) .project-visual { order: 0; }

  .projects-wrap { padding: 0 24px; }
  .about, .contact { padding-left: 24px; padding-right: 24px; }
  .cs-hero, .cs-body, .cs-meta { padding-left: 24px; padding-right: 24px; }
  .cs-back { left: 20px; }
  .contact-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .scroll-hint .line { animation: none; }
  .sticker .bob,
  .star path,
  .cursor-tag { animation: none; }
}
