/* pierrewallin.com
   Black and white. Every colour on the page comes from an album cover in the Atlas. */

:root {
  --bg: #000;
  --fg: #fff;
  --mute: rgba(255, 255, 255, .64);
  --faint: rgba(255, 255, 255, .4);
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .32);
  --hover: rgba(255, 255, 255, .07);
  --accent: #6fa8ff;
  --accent-ink: #1d4f9c;
  --tone: var(--accent);
  --graph-line: 255, 255, 255;
  --graph-alpha: 1;
  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1360px;
  --pad: clamp(20px, 4.2vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #fff;
  --fg: #000;
  --mute: rgba(0, 0, 0, .62);
  --faint: rgba(0, 0, 0, .42);
  --line: rgba(0, 0, 0, .12);
  --line-strong: rgba(0, 0, 0, .3);
  --hover: rgba(0, 0, 0, .045);
  --tone: var(--accent-ink);
  --graph-line: 0, 0, 0;
  --graph-alpha: .85;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line-strong) var(--bg); }
body {
  margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.55;
  background: var(--bg); color: var(--fg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { caret-color: var(--tone); }
::selection { background: var(--accent); color: #000; }
[data-theme="light"] ::selection { background: var(--accent-ink); color: #fff; }
:focus-visible { outline: 2px solid var(--tone); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--bg); border-radius: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
section[id] { scroll-margin-top: 80px; }

.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200;
  background: var(--tone); transform-origin: 0 50%; transform: scaleX(0);
  transition: background-color .6s;
}

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s; }
.nav.is-stuck { background: var(--bg); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); height: 76px; display: flex; align-items: center; gap: 44px; }
.brand { font-size: 19px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav-links a { position: relative; font-size: 16px; font-weight: 500; color: var(--mute); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--tone); transition: background-color .6s; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
kbd {
  font-family: var(--font); font-size: 12px; font-weight: 600; line-height: 1;
  min-width: 24px; height: 24px; padding: 0 6px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 5px; color: var(--mute);
}
.kbd-hint { display: flex; gap: 3px; padding: 6px; border-radius: 8px; }
.kbd-hint:hover kbd { color: var(--fg); border-color: var(--fg); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; font-size: 17px; color: var(--mute); transition: color .15s, background-color .15s; }
.icon-btn:hover { color: var(--fg); background: var(--hover); }
.burger { display: none; position: relative; width: 42px; height: 42px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--fg); transition: transform .25s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 128px 0 76px; overflow: hidden; }
#graph { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero.on-node { cursor: pointer; }
.hero-inner { position: relative; z-index: 1; width: 100%; pointer-events: none; }
.hero-inner > * { pointer-events: auto; width: fit-content; max-width: 100%; }
.hero-title {
  font-size: clamp(80px, 15.4vw, 240px); font-weight: 560; line-height: .84; letter-spacing: -.05em;
  margin: 0 0 40px -.045em; user-select: none;
}
.hero-title .wl { transition: font-weight .45s var(--ease); }
.hero-sub { display: flex; align-items: center; gap: 14px; min-height: 48px; font-size: clamp(19px, 1.85vw, 27px); font-weight: 500; letter-spacing: -.018em; line-height: 1.25; }
.hero-sub-k { color: var(--mute); font-weight: 400; white-space: nowrap; }
.typed-cover { width: 46px; height: 46px; flex: none; object-fit: cover; border-radius: 3px; transition: opacity .18s, transform .18s var(--ease); }
.typed-cover.swap { opacity: 0; transform: scale(.86); }
.typed { color: var(--tone); }
.caret { flex: none; width: 2px; height: 1.08em; margin-left: -12px; background: var(--tone); animation: blink 1.05s steps(1) infinite; }
.hero-sub[data-typing="on"] .caret { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.hero-copy { margin-top: 20px; max-width: 30em; font-size: clamp(17px, 1.35vw, 20px); color: var(--mute); }
.hero-hint {
  position: absolute; z-index: 1; bottom: 82px; pointer-events: none;
  right: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
  font-size: 14px; color: var(--faint); transition: opacity .3s;
}
.hero.on-node .hero-hint { opacity: 0; }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; font-size: 16px; font-weight: 600; letter-spacing: -.005em; line-height: 1; transition: transform .3s var(--ease), background-color .2s, color .2s, box-shadow .2s, text-decoration-color .2s; }
.btn-solid { padding: 17px 24px; border-radius: 8px; background: var(--fg); color: var(--bg); box-shadow: inset 0 0 0 2px var(--fg); }
.btn-solid:hover { background: transparent; color: var(--fg); }
.btn-text { padding: 17px 2px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: var(--line-strong); }
.btn-text:hover { text-decoration-color: var(--tone); }

/* ---------- cover strip ---------- */
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 6px; width: max-content; animation: marquee 110s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { display: block; flex: none; }
.marquee img { width: 112px; height: 112px; object-fit: cover; border-radius: 2px; transition: opacity .3s, transform .35s var(--ease); }
.marquee:hover img { opacity: .5; }
.marquee a:hover img { opacity: 1; transform: translateY(-5px); }
@keyframes marquee { to { transform: translateX(calc(-50% - 3px)); } }

/* ---------- sections ---------- */
.section { padding: clamp(88px, 10vw, 150px) 0; }
.section--flush { padding-top: 24px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px 72px; align-items: end; margin-bottom: 64px; }
h2 { font-size: clamp(46px, 6.6vw, 104px); font-weight: 720; line-height: .9; letter-spacing: -.048em; }
.lede { max-width: 31em; font-size: clamp(18px, 1.5vw, 21px); color: var(--mute); }

/* ---------- the three views ---------- */
.views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 32px; }
.view-card { display: block; }
.view-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 72px; }
.view-card:first-child .view-img { grid-column: 1 / -1; aspect-ratio: 2.25 / 1; }
.view-img { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 10; background: var(--hover); }
.view-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.view-card:hover .view-img img { transform: scale(1.035); }
.view-card h3 { margin-top: 20px; font-size: clamp(22px, 2vw, 28px); font-weight: 650; letter-spacing: -.025em; }
.view-card p { margin-top: 8px; max-width: 34em; font-size: 17px; color: var(--mute); }
.view-card:first-child p { margin-top: 22px; }

/* ---------- seven chapters: one square per album ---------- */
.chart-count { margin-bottom: 22px; font-size: 16px; color: var(--mute); }
.chart-count b { color: var(--fg); font-weight: 650; font-variant-numeric: tabular-nums; }
.chart-scroll { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 calc(var(--pad) * -1); padding: 12px var(--pad) 8px; scrollbar-width: thin; }
.chart { position: relative; min-width: 880px; }
.chart-cols, .chart-axis { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); column-gap: 6px; }
.chart-cols { align-items: end; }
.col { display: flex; flex-wrap: wrap-reverse; align-content: flex-start; gap: 3px; }
.sq { display: block; width: calc(50% - 1.5px); aspect-ratio: 1; border-radius: 2px; background: var(--c); transition: opacity .2s, transform .2s var(--ease); }
[data-theme="light"] .sq { background: var(--cl, var(--c)); }
.chart-cols:has(.sq:hover) .sq { opacity: .26; }
.chart-cols .sq:hover { opacity: 1; transform: scale(1.7); position: relative; z-index: 2; box-shadow: 0 0 0 2px var(--bg); }
.chart.rv:not(.in) .sq { opacity: 0; }
.chart.rv.in .sq { animation: sq-in .7s var(--ease) backwards; animation-delay: calc(var(--y) * 42ms + var(--i) * 20ms); }
@keyframes sq-in { from { opacity: 0; transform: translateY(14px) scale(.4); } }
.chart-axis { margin-top: 10px; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chart-axis span { text-align: center; white-space: nowrap; }
.chart-chaps { position: relative; min-height: 84px; margin-top: 30px; }
.chap { position: absolute; top: 0; padding: 14px 12px 0 0; cursor: default; }
.chap::before { content: ''; position: absolute; top: 0; left: 0; right: 6px; height: 2px; background: var(--line-strong); transition: background-color .2s; }
.chap b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.012em; line-height: 1.25; transition: color .2s; }
.chap span { display: block; margin-top: 2px; font-size: 14px; color: var(--mute); line-height: 1.3; }
.chap:hover::before { background: var(--fg); }
.chap:hover b { color: var(--tone); }
.chart:has(.chap[data-ch="1"]:hover) .sq:not([data-ch="1"]),
.chart:has(.chap[data-ch="2"]:hover) .sq:not([data-ch="2"]),
.chart:has(.chap[data-ch="3"]:hover) .sq:not([data-ch="3"]),
.chart:has(.chap[data-ch="4"]:hover) .sq:not([data-ch="4"]),
.chart:has(.chap[data-ch="5"]:hover) .sq:not([data-ch="5"]),
.chart:has(.chap[data-ch="6"]:hover) .sq:not([data-ch="6"]),
.chart:has(.chap[data-ch="7"]:hover) .sq:not([data-ch="7"]) { opacity: .14; }

/* ---------- writing ---------- */
.posts { border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 6px 36px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.post time { font-size: 15.5px; color: var(--mute); white-space: nowrap; }
.post h3 { font-size: clamp(20px, 2.05vw, 28px); font-weight: 600; letter-spacing: -.022em; line-height: 1.2; transition: color .2s; }
.post-go { font-size: 15px; color: var(--mute); }
.post-go--ai { color: var(--fg); white-space: nowrap; }
.post:hover { padding-left: 14px; }
.post:hover h3 { color: var(--tone); }
.post.gone { display: none; }

/* ---------- projects ---------- */
.projects { border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 208px minmax(0, 1fr) auto; gap: 8px 36px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.project-img { position: relative; display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 10; background: var(--hover); }
.project-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-text { display: block; min-width: 0; }
.project h3 { font-size: clamp(20px, 2.05vw, 28px); font-weight: 600; letter-spacing: -.022em; line-height: 1.2; transition: color .2s; }
.project p { margin-top: 6px; max-width: 36em; font-size: 17px; color: var(--mute); }
.project-meta { font-size: 15px; color: var(--mute); white-space: nowrap; }
.project:hover { padding-left: 14px; }
.project:hover h3 { color: var(--tone); }
.project:hover .project-img img { transform: scale(1.035); }

/* ---------- pages ---------- */
.page-head { padding: 184px 0 64px; }
.page-head h1, .nf h1 { font-size: clamp(68px, 12.5vw, 184px); font-weight: 720; line-height: .86; letter-spacing: -.052em; }
.page-head .lede { margin-top: 42px; }

.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px clamp(40px, 7vw, 128px); align-items: start; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; max-width: 460px; }
.mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.factoids { max-width: 460px; margin-top: 44px; border-top: 1px solid var(--line); }
.factoid { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.factoid dt { color: var(--mute); }
.prose p { max-width: 29em; font-size: clamp(19px, 1.65vw, 24px); line-height: 1.48; letter-spacing: -.012em; }
.prose p + p { margin-top: 1em; }
.prose a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--line-strong); transition: text-decoration-color .2s, color .2s; }
.prose a:hover { color: var(--tone); text-decoration-color: currentColor; }

.contact-form { max-width: 32em; margin-top: 88px; }
.contact-form h2 { margin-bottom: 32px; font-size: clamp(34px, 3.8vw, 52px); letter-spacing: -.04em; }
.field { display: grid; gap: 6px; margin-bottom: 24px; }
.field label { font-size: 15px; color: var(--mute); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--fg); background: transparent;
  border: 0; border-bottom: 2px solid var(--line-strong); border-radius: 0; padding: 10px 0; resize: vertical;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--tone); }
.contact-form .btn { margin-top: 8px; }
.prose .form-note { margin-top: 18px; font-size: 15px; line-height: 1.5; letter-spacing: 0; color: var(--mute); }

.nf { min-height: 86svh; display: flex; align-items: flex-end; padding: 150px 0 120px; }
.nf .lede { margin-top: 28px; }

/* ---------- a story written by AI: its own format, kept as it came ---------- */
.story-page { padding: 150px 0 24px; }
.ai-note, .story-head, .story, .story-back { max-width: 680px; margin-left: auto; margin-right: auto; }
.ai-note { margin-bottom: 76px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.55; color: var(--mute); }
.ai-note b { color: var(--fg); font-weight: 650; }
.story-head { margin-bottom: 52px; padding-bottom: 38px; border-bottom: 1px solid var(--line); text-align: center; }
.story-head h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.12; letter-spacing: -.01em; }
.story-kicker { margin-top: 16px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.story { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; line-height: 1.8; color: rgba(255, 255, 255, .88); }
[data-theme="light"] .story { color: rgba(0, 0, 0, .86); }
.story p { margin: 0 0 .75em; }
.story p + p { text-indent: 1.5em; }
.story hr { height: auto; margin: 2.3em 0; border: 0; text-align: center; overflow: visible; }
.story hr::after { content: "\2022\2003\2022\2003\2022"; font-size: 13px; color: var(--faint); }
.story .fin { margin-top: 2.6em; text-align: center; text-indent: 0; font-size: 21px; color: var(--mute); }
.story-back { margin-top: 72px; font-size: 16px; }
.story-back a { color: var(--mute); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--line-strong); transition: color .15s, text-decoration-color .15s; }
.story-back a:hover { color: var(--fg); text-decoration-color: var(--tone); }

/* ---------- footer ---------- */
.footer { padding: clamp(104px, 12vw, 168px) 0 38px; border-top: 1px solid var(--line); }
.footer-lede { margin-bottom: 14px; font-size: 18px; color: var(--mute); }
.footer-word { display: inline-block; font-size: clamp(26px, 6.9vw, 112px); font-weight: 720; line-height: 1; letter-spacing: -.05em; transition: color .25s, transform .35s var(--ease); }
.footer-word:hover { color: var(--tone); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: clamp(72px, 9vw, 128px); font-size: 15px; color: var(--mute); }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-links a { transition: color .15s; }
.footer-links a:hover { color: var(--fg); }

/* ---------- command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 400; display: none; align-items: flex-start; justify-content: center; padding: 14vh 16px 16px; background: rgba(0, 0, 0, .74); }
[data-theme="light"] .cmdk { background: rgba(0, 0, 0, .32); }
.cmdk.open { display: flex; }
.cmdk-box { width: min(640px, 100%); overflow: hidden; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 14px; }
.cmdk input { width: 100%; padding: 22px 24px; font: inherit; font-size: 19px; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); outline: none; }
.cmdk input::placeholder { color: var(--faint); }
.cmdk-list { max-height: min(56vh, 480px); overflow-y: auto; padding: 8px; }
.cmdk-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 8px; font-size: 16px; text-align: left; }
.cmdk-item span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item .ic { color: var(--mute); text-align: center; }
.cmdk-item small { font-size: 13px; color: var(--faint); }
.cmdk-item.sel, .cmdk-item:hover { background: var(--hover); }
.cmdk-item.sel .ic { color: var(--tone); }
.cmdk-empty { padding: 20px 14px; color: var(--mute); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 500; pointer-events: none;
  padding: 12px 18px; border-radius: 8px; background: var(--fg); color: var(--bg); font-size: 15px; font-weight: 600;
  opacity: 0; transform: translate(-50%, 14px); transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 600; pointer-events: none; }
.cursor { width: 6px; height: 6px; border-radius: 50%; background: #fff; mix-blend-mode: difference; }
.cursor-ring {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); mix-blend-mode: difference;
  transition: width .28s var(--ease), height .28s var(--ease), background-color .25s, border-color .25s, opacity .25s;
}
.cursor-ring.hot { width: 58px; height: 58px; background: rgba(255, 255, 255, .15); border-color: transparent; }
.cursor-ring.away { opacity: 0; }
.cursor-ring.has-label { width: 12px; height: 12px; mix-blend-mode: normal; background: var(--fg); border-color: transparent; }
.cursor-label {
  position: absolute; left: calc(100% + 12px); top: calc(100% + 8px);
  padding: 7px 11px; border-radius: 6px; background: var(--fg); color: var(--bg);
  font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: -.005em; white-space: nowrap;
  opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .2s var(--ease);
}
.cursor-ring.has-label .cursor-label { opacity: 1; transform: none; }
.cursor-ring.flip .cursor-label { left: auto; right: calc(100% + 12px); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .nav-inner { height: 64px; gap: 16px; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; display: none; flex-direction: column; gap: 0; padding: 8px var(--pad) 28px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--fg); }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--tone); }
  .kbd-hint { display: none; }
  .burger { display: block; }
  .hero { padding-bottom: 56px; }
  .hero-hint { display: none; }
  .hero-title { margin-bottom: 30px; }
  .hero-sub { align-items: flex-start; flex-wrap: wrap; row-gap: 8px; min-height: 5.2em; }
  .hero-sub-k { width: 100%; font-size: 15px; }
  .typed-cover { width: 40px; height: 40px; }
  .typed { flex: 1 1 0; min-width: 0; }
  .caret { display: none; }
  .marquee img { width: 88px; height: 88px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 44px; }
  .views { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .view-card:first-child { display: block; }
  .view-card:first-child .view-img { aspect-ratio: 16 / 10; }
  .view-card:first-child p { margin-top: 8px; }
  .post { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 22px 0; }
  .post-go { display: none; }
  .post-go--ai { display: block; font-size: 14px; }
  .post:hover { padding-left: 0; }
  .project { grid-template-columns: 112px minmax(0, 1fr); gap: 4px 18px; align-items: start; padding: 18px 0; }
  .project p { font-size: 15.5px; }
  .project-meta { grid-column: 2; font-size: 14px; }
  .project:hover { padding-left: 0; }
  .story-page { padding-top: 112px; }
  .ai-note { margin-bottom: 56px; font-size: 15.5px; }
  .story { font-size: 18px; line-height: 1.75; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding: 140px 0 44px; }
}

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none !important; }
  .hero-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none !important; }
  .chart.rv .sq { opacity: 1; animation: none !important; }
}

@media print {
  .nav, .cmdk, .cursor, .cursor-ring, #graph, .marquee, .progress, .hero-hint { display: none !important; }
  .hero { min-height: auto; padding-top: 40px; }
}
