/* Layout: a design-tool canvas. Off-white artboard, draggable stickers, a selection box around the key word, then calm columns of work. */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e4e4e0;
  --select: #3d7bff;
  --select-wash: #dbe7ff;
  --warm: #ff7a45;
  --sticky: #fff2a8;
  --sticky-ink: #4a3f12;
  --chip: #2b2b2d;
  --chip-ink: #ffffff;
  --shadow: 0 1px 2px rgba(20,20,30,.06), 0 8px 24px rgba(20,20,30,.08);
  --shadow-lg: 0 2px 4px rgba(20,20,30,.06), 0 24px 48px rgba(20,20,30,.14);

  /* project tints */
  --t-cvs: #e6eefc;
  --t-lumo: #fff1c9;
  --t-gm: #ffe6d4;
  --t-sc: #fde3e3;

  --f-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141416; --surface: #1d1d20; --ink: #f2f2f0; --muted: #a0a0a6; --line: #2e2e33;
    --select: #6b9bff; --select-wash: #1f2c4d; --warm: #ff8a5c; --sticky: #3d3720; --sticky-ink: #f5e9a8;
    --chip: #f2f2f0; --chip-ink: #141416;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px rgba(0,0,0,.5);
    --t-cvs: #1e2738; --t-lumo: #33301f; --t-gm: #362a22; --t-sc: #352325;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141416; --surface: #1d1d20; --ink: #f2f2f0; --muted: #a0a0a6; --line: #2e2e33;
  --select: #6b9bff; --select-wash: #1f2c4d; --warm: #ff8a5c; --sticky: #3d3720; --sticky-ink: #f5e9a8;
  --chip: #f2f2f0; --chip-ink: #141416;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px rgba(0,0,0,.5);
  --t-cvs: #1e2738; --t-lumo: #33301f; --t-gm: #362a22; --t-sc: #352325;
  color-scheme: dark;
}

* { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--select); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Nav ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
nav.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; gap: 16px; }
.logo { position: relative; text-decoration: none; font-weight: 600; font-size: 19px; line-height: 1.02; letter-spacing: -.02em; padding-left: 4px; }
.logo span { display: block; }
.logo .boxed { position: relative; display: inline-block; padding: 0 4px; outline: 1px solid var(--ink); margin-top: 3px; }
.logo .boxed::before, .logo .boxed::after { content: ""; position: absolute; width: 5px; height: 5px; background: var(--bg); border: 1px solid var(--ink); }
.logo .boxed::before { left: -3px; bottom: -3px; }
.logo .boxed::after { right: -3px; bottom: -3px; }
.logo svg { position: absolute; left: -8px; top: -8px; width: 12px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links .text { text-decoration: none; color: var(--muted); font-size: 15px; padding: 10px; }
.nav-links .text:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.dark { background: var(--chip); color: var(--chip-ink); border-color: var(--chip); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 10vw, 120px) clamp(64px, 9vw, 110px); }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; max-width: 780px; margin: 0 auto; }
.eyebrow { position: relative; font-size: 14px; color: var(--muted); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.eyebrow .spark { position: absolute; right: -16px; top: 14px; width: 14px; color: var(--ink); }
.hello { font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; margin: 0; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out .6s 2; }
@keyframes wave { 0%,60%,100% { transform: rotate(0) } 10%,30% { transform: rotate(14deg) } 20%,40% { transform: rotate(-8deg) } }
.hero h1 { font-size: clamp(40px, 6.6vw, 76px); line-height: 1.04; letter-spacing: -.035em; font-weight: 500; margin: 0; text-wrap: balance; }
.sel { position: relative; display: inline-block; font-style: italic; font-weight: 500; padding: 0 .12em; margin-top: .08em; background: var(--select-wash); outline: 2px solid var(--select); }
.sel i { position: absolute; width: 9px; height: 9px; background: var(--surface); border: 2px solid var(--select); }
.sel i:nth-child(1) { left: -5px; top: -5px; } .sel i:nth-child(2) { right: -5px; top: -5px; }
.sel i:nth-child(3) { left: -5px; bottom: -5px; } .sel i:nth-child(4) { right: -5px; bottom: -5px; }
.cursor { position: absolute; right: -78px; bottom: -44px; display: flex; align-items: flex-start; pointer-events: none; animation: drift 6s ease-in-out infinite; }
.cursor svg { width: 22px; color: var(--select); margin-top: -2px; }
.cursor b { font-style: normal; font-size: 15px; font-weight: 500; color: #fff; background: var(--select); padding: 4px 12px; border-radius: 999px; margin-top: 14px; letter-spacing: 0; }
@keyframes drift { 0%,100% { transform: translate(0,0) } 50% { transform: translate(-10px, 6px) } }
.lede { max-width: 580px; color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); margin: 6px 0 0; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tags li.ai { border-color: var(--select); color: var(--select); }

.stickers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.st { position: absolute; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; transition: filter .2s; }
.st:active { cursor: grabbing; }
.st.dragging { filter: drop-shadow(0 12px 18px rgba(0,0,0,.15)); z-index: 3; }
.key { width: 74px; height: 74px; border-radius: 16px; display: grid; place-items: center; font-size: 34px; font-weight: 500; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 -5px 0 var(--line), var(--shadow); }
.key.dark { background: var(--chip); color: var(--chip-ink); border-color: var(--chip); box-shadow: inset 0 -5px 0 rgba(127,127,127,.35), var(--shadow); }
.k1 { left: 7%; top: 22%; transform: rotate(-8deg); }
.k2 { left: 3%; top: 38%; transform: rotate(6deg); }
.note { width: 168px; padding: 14px 16px 16px; background: var(--sticky); color: var(--sticky-ink); font-family: var(--f-hand); font-size: 22px; line-height: 1.1; box-shadow: var(--shadow); transform: rotate(4deg); right: 5%; top: 16%; }
.note small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 6px; }
.toolbar { right: 9%; top: 56%; display: grid; grid-template-columns: repeat(2, 36px); gap: 4px; padding: 8px; border-radius: 12px; background: var(--chip); color: var(--chip-ink); box-shadow: var(--shadow); transform: rotate(-4deg); }
.toolbar span { display: grid; place-items: center; height: 36px; border-radius: 8px; }
.toolbar span.on { background: var(--select); color: #fff; }
.toolbar svg { width: 18px; height: 18px; }
.persona { left: 9%; top: 62%; width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); transform: rotate(-3deg); text-align: left; }
.persona .lbl { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.persona .row { display: flex; justify-content: space-between; font-size: 13px; margin-top: 8px; }
.persona .bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 4px; overflow: hidden; }
.persona .bar b { display: block; height: 100%; background: var(--select); border-radius: 3px; }
.persona .bar.w b { background: var(--warm); }
.star { color: var(--ink); width: 26px; }
.s1 { left: 22%; top: 12%; } .s2 { right: 24%; top: 8%; width: 30px; } .s3 { left: 26%; bottom: 6%; width: 22px; } .s4 { right: 20%; bottom: 10%; width: 18px; }
.hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-family: var(--f-hand); font-size: 19px; color: var(--muted); z-index: 2; white-space: nowrap; margin: 0; }

/* ---------- Sections ---------- */
section.block { padding-block: clamp(56px, 8vw, 96px); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head .title { display: flex; align-items: center; gap: 14px; }
.sec-head .icon { width: 52px; height: 52px; flex: none; color: var(--ink); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; font-weight: 500; margin: 0; line-height: 1.1; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Project cards with fan-out hover ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.pcard { display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: inherit; outline: none; }
.stage {
  position: relative; aspect-ratio: 5 / 4; max-width: 100%; border-radius: 28px; background: var(--tint);
  isolation: isolate; transition: background .3s ease;
}
.stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent); pointer-events: none; }
.fan { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.fan img {
  position: absolute; left: 50%; top: 48%; width: var(--w, 27%); height: auto;
  transform: translate(-50%, -50%) translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)) scale(var(--s, 1));
  transition: transform .6s cubic-bezier(.2,.9,.25,1.15), filter .4s ease;
  filter: drop-shadow(0 10px 18px rgba(20,20,30,.16));
  will-change: transform;
}
.fan img:nth-child(1) { --x: -14%; --r: -5deg; z-index: 1; }
.fan img:nth-child(2) { --x: 14%;  --r: 5deg;  z-index: 2; }
.fan img:nth-child(3) { --y: 4%; z-index: 3; }
.pcard:hover .fan img:nth-child(1), .pcard:focus-visible .fan img:nth-child(1) { --x: -78%; --y: -4%; --r: -11deg; }
.pcard:hover .fan img:nth-child(2), .pcard:focus-visible .fan img:nth-child(2) { --x: 78%; --y: -4%; --r: 11deg; }
.pcard:hover .fan img:nth-child(3), .pcard:focus-visible .fan img:nth-child(3) { --y: -6%; --s: 1.06; }
.fan.web img { --w: 58%; }
.fan.web img:nth-child(1) { --x: -8%; --y: -6%; }
.fan.web img:nth-child(2) { --x: 8%; --y: -2%; }
.fan.web img:nth-child(3) { --y: 6%; }
.fan.web img.portrait { --w: 34%; }
.pcard:hover .fan.web img:nth-child(1), .pcard:focus-visible .fan.web img:nth-child(1) { --x: -40%; --y: -22%; --r: -8deg; }
.pcard:hover .fan.web img:nth-child(2), .pcard:focus-visible .fan.web img:nth-child(2) { --x: 40%; --y: -22%; --r: 8deg; }
.pcard:hover .fan.web img:nth-child(3), .pcard:focus-visible .fan.web img:nth-child(3) { --y: 10%; --s: 1.04; }

.label {
  position: absolute; left: 6%; bottom: -22px; z-index: 5; width: min(62%, 300px);
  background: var(--surface); border-radius: 18px; padding: 14px 18px 16px; box-shadow: var(--shadow);
  transform-origin: 20% 100%; transition: transform .5s cubic-bezier(.2,.9,.25,1.2), box-shadow .3s ease;
}
.pcard:hover .label, .pcard:focus-visible .label { transform: translateY(-10px) rotate(-4deg); box-shadow: var(--shadow-lg); }
.label .kind { font-size: 13px; font-weight: 600; }
.label .org { font-size: 13px; color: var(--muted); }
.label h3 { margin: 10px 0 0; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.025em; font-weight: 500; line-height: 1.1; }
.pinfo { padding: 22px 6% 0; display: flex; flex-direction: column; gap: 8px; }
.pinfo p { margin: 0; color: var(--muted); max-width: 46ch; transition: color .3s ease; }
.pcard:hover .pinfo p { color: var(--ink); }
.pinfo .role { font-size: 14px; color: var(--muted); }
.pinfo .role b { color: var(--ink); font-weight: 600; }
.pinfo .go { font-size: 14px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; color: var(--select); }
.pinfo .go span { transition: transform .3s ease; }
.pcard:hover .pinfo .go span { transform: translateX(4px); }

/* ---------- How I work ---------- */
.approach { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.ap { border-top: 1px solid var(--ink); padding-top: 16px; }
.ap h3 { margin: 8px 0; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.ap p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Education ---------- */
.bento { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.exp { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; position: relative; overflow: hidden; }
.exp.feat { background: #9b1c31; border-color: #9b1c31; color: #fff; }
.exp.feat .when { background: rgba(255,255,255,.2); color: #fff; }
.exp.feat .ring { position: absolute; right: -40px; bottom: -70px; width: 240px; height: 240px; border-radius: 50%; border: 34px solid rgba(255,255,255,.14); }
.exp b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.exp span { color: var(--muted); font-size: 15px; }
.exp.feat span { color: rgba(255,255,255,.85); }
.when { align-self: flex-start; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.skills li { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.xp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.xp .exp.feat { grid-column: 1 / -1; background: var(--warm); border-color: var(--warm); min-height: 200px; }
.xp .exp.feat b { font-size: 24px; }
.exp p { margin: 12px 0 0; font-size: 15px; color: var(--muted); max-width: 62ch; }
.exp.feat p { color: rgba(255,255,255,.9); }
.exp.edu { background: var(--select-wash); border-color: transparent; }
.skillset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; margin-top: 32px; }
.skillset .skills { margin-top: 8px; }

/* ---------- About ---------- */
.about { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.about h2 { font-size: clamp(28px, 4.2vw, 48px); font-weight: 500; letter-spacing: -.03em; line-height: 1.12; margin: 0; max-width: 820px; text-wrap: balance; }
.about h2 .hl { font-family: var(--f-hand); font-size: 1.15em; color: var(--select); font-weight: 600; letter-spacing: 0; }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 24px; color: var(--muted); font-size: 14px; }

/* ---------- Case study ---------- */
.case-hero { padding-block: clamp(40px, 7vw, 88px) 32px; }
.back { display: flex; width: fit-content; gap: 6px; align-items: center; text-decoration: none; color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.back:hover { color: var(--ink); }
.case-hero h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -.04em; font-weight: 500; line-height: 1; margin: 10px 0 18px; }
.case-hero .summary { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; max-width: 760px; margin: 0; letter-spacing: -.01em; text-wrap: pretty; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts dd { margin: 0; font-size: 15px; }
.facts dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cover { border-radius: 28px; background: var(--tint); padding: clamp(24px, 5vw, 56px); display: grid; place-items: center; }
.cover .fan { position: relative; width: min(760px, 100%); aspect-ratio: 16/9; overflow: visible; }
.cover .fan img:nth-child(1) { --x: -62%; --r: -9deg; }
.cover .fan img:nth-child(2) { --x: 62%; --r: 9deg; }
.cover .fan.web img:nth-child(1) { --x: -32%; --y: -14%; --r: -6deg; }
.cover .fan.web img:nth-child(2) { --x: 32%; --y: -14%; --r: 6deg; }
.cover .fan.web img:nth-child(3) { --y: 12%; }
.cover .fan:not(.web) img { --w: 28%; }

.case-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-block: 56px 24px; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); align-self: start; display: flex; flex-direction: column; gap: 4px; }
.toc a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); background: var(--surface); }
.toc a.on { color: var(--ink); border-left-color: var(--select); background: var(--surface); }
.chapter { padding-bottom: 64px; scroll-margin-top: 96px; }
.chapter > .mono { display: block; margin-bottom: 8px; color: var(--select); }
.chapter h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.03em; font-weight: 500; line-height: 1.15; margin: 0 0 16px; text-wrap: balance; }
.chapter p { margin: 0 0 14px; max-width: 68ch; }
.chapter ul.list { margin: 0 0 14px; padding-left: 20px; max-width: 68ch; }
.chapter ul.list li { margin-bottom: 8px; }
.chapter ul.list li::marker { color: var(--select); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 24px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.stat b { display: block; font-size: 34px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card .tagline { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--select); margin-bottom: 8px; display: block; }
.hmw { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; letter-spacing: -.015em; padding: 24px 28px; border-radius: 20px; background: var(--select-wash); margin: 24px 0; max-width: 760px; }
.hmw small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--select); margin-bottom: 8px; }
.quote { font-family: var(--f-hand); font-size: 26px; line-height: 1.2; padding: 18px 22px; background: var(--sticky); color: var(--sticky-ink); border-radius: 4px; transform: rotate(-1deg); max-width: 520px; margin: 24px 0; box-shadow: var(--shadow); }
.quote cite { display: block; font-family: var(--f-mono); font-size: 11px; font-style: normal; letter-spacing: .06em; text-transform: uppercase; margin-top: 8px; opacity: .75; }
figure { margin: 28px 0; }
figure img { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.changes { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.changes li { display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 15px; }
.changes li .was { color: var(--muted); }
.changes li .arrow { color: var(--select); text-align: center; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; margin-bottom: 72px; transition: box-shadow .3s; }
.next:hover { box-shadow: var(--shadow-lg); }
.next b { font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -.03em; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .hint { display: none; } }
@media (max-width: 1020px) {
  .k2, .persona, .s1, .s4 { display: none; }
  .note { right: 2%; top: 4%; width: 140px; font-size: 19px; }
  .toolbar { right: 3%; top: 64%; }
  .k1 { left: 2%; top: 6%; }
  .case-body { grid-template-columns: minmax(0,1fr); }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .projects, .approach, .bento, .xp, .skillset { grid-template-columns: minmax(0,1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nav-links .text { display: none; }
  .stickers .note, .stickers .toolbar, .s2 { display: none; }
  .k1 { width: 52px; height: 52px; font-size: 24px; border-radius: 12px; left: 0; top: 2%; }
  .cursor { right: -8px; bottom: -46px; }
  .hint { display: none; }
  .hero { padding-bottom: 72px; }
  .changes li { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .changes li .arrow { text-align: left; transform: rotate(90deg); width: 16px; }
}
/* Touch screens have no hover: show the cards fanned out by default */
@media (hover: none) {
  .fan img:nth-child(1) { --x: -60%; --r: -9deg; }
  .fan img:nth-child(2) { --x: 60%; --r: 9deg; }
  .fan.web img:nth-child(1) { --x: -30%; --y: -18%; --r: -6deg; }
  .fan.web img:nth-child(2) { --x: 30%; --y: -18%; --r: 6deg; }
  .fan.web img:nth-child(3) { --y: 10%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
