/* Electric Depth v2. Fixed brand colors plus theme tokens for light and dark. */
:root {
  --ink: #0a0818;
  --paper: #f7f5ee;
  --cobalt: #3c49ff;
  --deep: #1c237f;
  --lime: #d5ff35;
  --pink: #ff5dc6;
  --orange: #ff7443;
  --lilac: #e8e2ff;
  --sans: 'Manrope', Arial, sans-serif;
  --display: 'Archivo Black', Impact, 'Arial Black', sans-serif;
  --mono: 'Space Mono', 'Courier New', monospace;

  /* theme tokens: dark is the default */
  --bg: #0a0818;
  --bg-now: #110f24;
  --bg-values: #0e0d23;
  --bg-books: #f4f0e6;
  --text: #f7f5ee;
  --muted: #a8a5bd;
  --line: rgba(247,245,238,.22);
  --hi: #d5ff35;          /* accent used as text */
  --hi-2: #ff5dc6;        /* second accent used as text */
  --ring: #d5ff35;
  --sig: invert(1);
  --glow-1: rgba(62,60,255,.36);
  --glow-2: rgba(255,93,198,.16);
  --grid: rgba(255,255,255,.08);
}
:root[data-theme=light] {
  --bg: #f7f5ee;
  --bg-now: #f3f0e8;
  --bg-values: #efebe0;
  --bg-books: #ffffff;
  --text: #0a0818;
  --muted: #5a5670;
  --line: rgba(10,8,24,.18);
  --hi: #3c49ff;
  --hi-2: #c42a8d;
  --ring: #3c49ff;
  --sig: none;
  --glow-1: rgba(60,73,255,.16);
  --glow-2: rgba(255,93,198,.14);
  --grid: rgba(10,8,24,.06);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f7f5ee; --bg-now: #f3f0e8; --bg-values: #efebe0; --bg-books: #ffffff;
    --text: #0a0818; --muted: #5a5670; --line: rgba(10,8,24,.18);
    --hi: #3c49ff; --hi-2: #c42a8d; --ring: #3c49ff; --sig: none;
    --glow-1: rgba(60,73,255,.16); --glow-2: rgba(255,93,198,.14); --grid: rgba(10,8,24,.06);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ring); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
::selection { color: var(--ink); background: var(--lime); }
.wrap { width: min(100% - 88px, 1440px); margin-inline: auto; }
.micro { font: 400 12px/1.45 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.arrow { display: inline-block; transition: transform .25s ease; }
a:hover .arrow { transform: translate(4px,-4px); }
.sig { filter: var(--sig); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); transition: background-color .3s; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; gap: 13px; align-items: center; }
.brand img { width: 124px; }
.brand small { border-left: 1px solid var(--line); padding-left: 13px; color: var(--muted); font: 12px/1.25 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { font: 700 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; transition: color .2s; }
.site-nav a:hover { color: var(--hi); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.header-action { display: inline-flex; align-items: center; gap: 18px; padding: 12px 14px; border: 1px solid var(--hi); color: var(--hi); font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: background .25s, color .25s; }
.header-action:hover { color: var(--bg); background: var(--hi); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--hi); color: var(--hi); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme=light] .theme-toggle .sun { display: none; }
:root[data-theme=light] .theme-toggle .moon { display: block; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--p, 0%); background: var(--lime); }
:root[data-theme=light] .progress { background: var(--cobalt); }

/* Hero: type only until a new photo exists */
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 78% 38%, var(--glow-1), transparent 42%), radial-gradient(ellipse at 60% 85%, var(--glow-2), transparent 36%), var(--bg); transition: background-color .3s; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(90deg, var(--grid) 1px, transparent 1px), linear-gradient(var(--grid) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, transparent, #000 70%); }
.hero-inner { padding: clamp(64px, 10vh, 120px) 0 clamp(56px, 8vh, 96px); }
.hero-kicker { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.hero-kicker .line { display: block; height: 1px; width: 56px; background: var(--hi); }
.hero-name { font: clamp(24px, 2.4vw, 36px)/1 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.hero-kicker .micro { color: var(--hi); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: center; }
.hero-copy .hero-summary { margin-top: 40px; }
.hero h1 { margin: 0; font: clamp(64px, 9.6vw, 156px)/.84 var(--display); letter-spacing: -.075em; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 2px var(--text); }
.hero h1 .last { color: var(--lime); }
:root[data-theme=light] .hero h1 .last { color: var(--ink); background: var(--lime); width: max-content; padding: 0 .06em .02em; margin-top: .04em; }
.hero-summary p { margin: 0 0 28px; max-width: 440px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; line-height: 1.5; letter-spacing: -.025em; }
.hero-summary strong { color: var(--hi); font-weight: 800; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 18px; padding: 15px 18px; border: 1px solid var(--text); font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: background .25s, color .25s; }
.btn:hover { background: var(--text); color: var(--bg); }
.btn.solid { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.solid:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Ticker */
.ticker { background: var(--lime); color: var(--ink); overflow: hidden; border-block: 1px solid var(--ink); }
.ticker-track { display: flex; width: max-content; gap: 56px; padding: 15px 0; animation: tick 40s linear infinite; }
.ticker span { font: 700 14px/1 var(--mono); letter-spacing: .06em; white-space: nowrap; }
.ticker i { font-style: normal; margin: 0 10px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Shared section chrome */
.section { position: relative; overflow: hidden; }
.section-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; border-bottom: 1px solid currentColor; font: 700 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.section-meta span:last-child { opacity: .65; }
.section-display { margin: 0; font: clamp(60px, 7.25vw, 112px)/.91 var(--display); letter-spacing: -.075em; text-transform: uppercase; }
.section-display em { font-style: normal; }
.section-head { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: min(8vw, 110px); align-items: end; padding: 110px 0 64px; }
.section-head p { margin: 0; max-width: 560px; font-size: clamp(19px, 1.9vw, 26px); font-weight: 600; line-height: 1.45; letter-spacing: -.04em; }

/* Work: the timeline (fixed cobalt band in both themes) */
.work { background: var(--deep); color: var(--paper); }
.work .section-meta { border-color: rgba(247,245,238,.34); }
.work .section-display em { color: var(--lime); }
.work .section-head p a { border-bottom: 2px solid currentColor; }
.timeline { list-style: none; margin: 0; padding: 0 0 130px; border-top: 1px solid rgba(247,245,238,.4); }
.t-row { --c: var(--cobalt); --on: var(--paper); position: relative; isolation: isolate; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 30px 18px; border-bottom: 1px solid rgba(247,245,238,.4); transition: color .3s; }
.t-row::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c); transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
a.t-row:hover, a.t-row:focus-visible { color: var(--on); }
a.t-row:hover::before, a.t-row:focus-visible::before { transform: scaleY(1); }
.t-year { display: flex; align-items: center; gap: 12px; font: 700 14px var(--mono); letter-spacing: .04em; }
.t-year::before { content: ''; width: 12px; height: 12px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 1px rgba(247,245,238,.5); }
.t-story { min-width: 0; }
.t-problem { display: block; font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; line-height: 1.3; letter-spacing: -.03em; }
.t-built { display: block; margin-top: 6px; font: clamp(26px, 3vw, 44px)/1 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.t-note { display: block; margin-top: 8px; font-size: 15px; opacity: .8; }
.t-out { display: flex; align-items: center; gap: 12px; white-space: nowrap; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.t-out .pill { padding: 8px 12px; border: 1px solid currentColor; border-radius: 99px; }
.t-row.quiet .t-problem { font-size: clamp(20px, 2vw, 28px); }
.t-row.book { grid-template-columns: 110px minmax(0, 1fr) auto; }
.t-row.book img { width: 64px; transform: rotate(-6deg); box-shadow: 6px 8px 0 rgba(10,8,24,.4); }
.t-row.c-orange { --c: var(--orange); --on: var(--ink); }
.t-row.c-pink { --c: var(--pink); --on: var(--ink); }
.t-row.c-lilac { --c: var(--lilac); --on: var(--ink); }
.t-row.c-cobalt { --c: var(--cobalt); --on: var(--paper); }
.t-row.c-paper { --c: var(--paper); --on: var(--ink); }
.t-row.next { --c: var(--lime); --on: var(--ink); }
.t-row.next .t-built { color: var(--lime); }
.t-row.next:hover .t-built, .t-row.next:focus-visible .t-built { color: var(--ink); }

/* Right now */
.now { background: radial-gradient(ellipse at 82% 30%, var(--glow-2), transparent 35%), radial-gradient(ellipse at 30% 69%, var(--glow-1), transparent 50%), var(--bg-now); transition: background-color .3s; }
.now .section-display em { color: var(--hi-2); }
.now-content { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: min(8vw, 110px); padding: 110px 0 60px; }
.now-copy { max-width: 540px; margin: 34px 0 0; font-size: clamp(19px, 1.9vw, 25px); font-weight: 500; letter-spacing: -.035em; line-height: 1.48; }
.now-cards { display: grid; gap: 14px; align-content: start; }
.now-card { position: relative; min-height: 170px; padding: 24px 28px 26px; display: flex; flex-direction: column; justify-content: space-between; background: var(--lilac); color: var(--ink); transform: rotate(-1.2deg); transition: transform .25s, box-shadow .25s; }
.now-card:nth-child(2) { margin-left: 48px; background: var(--pink); transform: rotate(1.4deg); }
.now-card:nth-child(3) { background: var(--ink); color: var(--paper); border: 1px solid var(--lime); transform: rotate(-.6deg); }
.now-card:nth-child(3) .micro { color: var(--lime); }
.now-card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 16px 50px rgba(0,0,0,.25); }
.now-card .top { display: flex; justify-content: space-between; align-items: start; }
.now-card .symbol { font: 40px/1 var(--sans); }
.now-card h3 { margin: 18px 0 4px; font: clamp(30px, 3.2vw, 48px)/1 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.now-card p { margin: 0; max-width: 440px; font-size: 15px; font-weight: 600; }
.now-lower { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; padding-bottom: 120px; }
.playlist { position: relative; min-height: 250px; padding: 28px 32px; overflow: hidden; color: var(--paper); background: linear-gradient(120deg, #3625ce, #7828ef 64%, #e942b7); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.playlist::after { content: '♫'; position: absolute; right: 35px; bottom: -52px; font: 230px/1 var(--sans); color: rgba(255,255,255,.12); transform: rotate(13deg); pointer-events: none; }
.playlist h3 { position: relative; margin: 0; max-width: 590px; font: clamp(30px, 3.6vw, 52px)/1.03 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.playlist p { position: relative; margin: 10px 0 0; max-width: 560px; font-size: 16px; }
.playlist a { position: relative; width: max-content; padding-bottom: 5px; border-bottom: 2px solid currentColor; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.clock-tile { padding: 28px 30px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; background: color-mix(in srgb, var(--text) 3%, transparent); }
.clock-tile .micro { color: var(--muted); }
.clock-tile time { display: block; font: clamp(44px, 4.6vw, 68px)/1 var(--display); letter-spacing: -.06em; text-transform: uppercase; color: var(--hi); }
.clock-tile p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* Books (light band) */
.books-preview { background: var(--bg-books); color: var(--ink); transition: background-color .3s; }
.books-preview .section-meta { border-color: rgba(10,8,24,.35); }
.books-heading { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: end; padding: 110px 0 60px; }
.books-heading .section-display { font-size: clamp(60px, 8vw, 125px); }
.books-heading .section-display em { color: var(--cobalt); }
.books-heading p { max-width: 450px; margin: 0 0 5px; font-size: clamp(19px, 2vw, 26px); line-height: 1.42; font-weight: 650; letter-spacing: -.045em; }
.shelf-label { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 0; padding: 16px 0; border-top: 2px solid currentColor; font: 700 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.shelf-label span:last-child { opacity: .6; }
.book-grid { display: grid; gap: clamp(10px, 1.8vw, 28px); }
.book-grid.current { grid-template-columns: repeat(3, minmax(0,1fr)); max-width: 780px; margin-bottom: 72px; }
.book-grid.favorites-preview { grid-template-columns: repeat(4, minmax(0,1fr)); max-width: 950px; }
.book-tile { min-width: 0; display: block; padding: 13px 12px 14px; border: 1px solid rgba(10,8,24,.34); background: rgba(255,255,255,.2); transition: transform .25s, background .25s, box-shadow .25s; }
.book-tile:hover { transform: translateY(-7px) rotate(-1deg); background: rgba(255,255,255,.6); box-shadow: 8px 10px 0 rgba(10,8,24,.12); }
.book-tile .cover { height: 200px; display: flex; align-items: center; justify-content: center; }
.book-tile .cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 3px 8px 13px rgba(10,8,24,.18); }
.book-tile .title { display: block; min-height: 34px; margin-top: 12px; font-size: 14px; font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.book-tile .author { display: block; margin-top: 4px; font: 12px/1.3 var(--mono); opacity: .7; }
.book-grid.current .book-tile { padding: 18px; }
.book-grid.current .book-tile .cover { height: 290px; }
.book-grid.current .book-tile .title { font-size: 17px; }
.books-bottom { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 55px 0 110px; }
.books-bottom p { margin: 0; max-width: 460px; font-size: 16px; }
.pill-link { display: inline-flex; gap: 38px; align-items: center; padding: 17px 21px; border: 1.5px solid var(--ink); border-radius: 99px; font: 700 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; transition: background .25s, color .25s; }
.pill-link:hover { background: var(--ink); color: var(--lime); }

/* Writing (fixed lilac band) */
.writing { background: #dcd5fa; color: var(--ink); }
.writing .section-meta { border-color: rgba(10,8,24,.32); }
.writing-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; padding: 105px 0 120px; }
.writing .section-display em { color: var(--cobalt); }
.writing-intro p { margin: 28px 0 0; max-width: 430px; font-size: 19px; font-weight: 650; letter-spacing: -.03em; }
.writing-list { border-top: 1px solid rgba(10,8,24,.55); }
.writing-row { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid rgba(10,8,24,.4); transition: padding .25s, color .25s; }
.writing-row:hover { padding-left: 8px; color: var(--cobalt); }
.writing-row strong { display: block; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -.035em; }
.writing-row .year { white-space: nowrap; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; }

/* Pull quote */
.quote-band { background: var(--pink); color: var(--ink); padding: 96px 0; }
.quote-band blockquote { margin: 0; font: clamp(40px, 6.2vw, 100px)/.92 var(--display); letter-spacing: -.065em; text-transform: uppercase; max-width: 1200px; }
.quote-band cite { display: block; margin-top: 28px; font: 700 12px/1.4 var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .1em; }

/* House rules */
.values { background: var(--bg-values); transition: background-color .3s; }
.values .section-display em { color: var(--hi-2); }
.values-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 32px; padding-bottom: 120px; }
.value { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 26px 0; border-top: 1px solid var(--line); }
.value:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.value .number { color: var(--hi); font: 700 13px var(--mono); }
.value p { margin: 0; max-width: 480px; font-size: clamp(19px, 1.55vw, 23px); font-weight: 700; line-height: 1.38; letter-spacing: -.035em; }
.value p span { display: block; margin-top: 5px; color: var(--muted); font-size: 15px; font-weight: 400; line-height: 1.45; letter-spacing: 0; }

/* Contact (fixed gradient in both themes) */
.contact { color: var(--paper); background: radial-gradient(ellipse at 82% 24%, rgba(255,112,93,.6), transparent 30%), radial-gradient(ellipse at 14% 71%, rgba(62,73,255,.72), transparent 45%), linear-gradient(140deg, #4c23d0, #a628a2 65%, #e44372); }
.contact .section-meta { border-color: rgba(247,245,238,.4); }
.contact-head { padding: 110px 0 120px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: end; }
.contact h2 { margin: 0; font: clamp(62px, 8.4vw, 132px)/.88 var(--display); letter-spacing: -.08em; text-transform: uppercase; }
.contact h2 span { color: var(--lime); }
.contact-copy p { margin: 0 0 28px; max-width: 500px; font-size: clamp(19px, 2vw, 26px); font-weight: 650; line-height: 1.42; letter-spacing: -.04em; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mail-link { display: inline-flex; align-items: center; gap: 24px; border-bottom: 2px solid currentColor; padding-bottom: 7px; font: 700 clamp(16px, 1.6vw, 22px)/1.2 var(--mono); }
.copy-btn { border: 1.5px solid var(--paper); background: transparent; color: var(--paper); padding: 10px 14px; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; transition: background .2s, color .2s; }
.copy-btn:hover { background: var(--paper); color: var(--ink); }
.fit { margin: 26px 0 0; font-size: 16px; opacity: .9; }
.fit b { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-right: 8px; }

/* Footer */
.site-footer { background: var(--bg); transition: background-color .3s; }
.footer-main { padding: 64px 0 30px; display: flex; justify-content: space-between; align-items: end; gap: 35px; }
.footer-main img { width: 220px; }
.footer-main p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.footer-nav a:hover { color: var(--hi); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font: 12px var(--mono); text-transform: uppercase; }
.footer-bottom a:hover { color: var(--hi); }


.hero h1.hero-story { font-size: clamp(52px, 7vw, 108px); line-height: .88; }
:root[data-theme=light] .hero h1.hero-story .last + .last { margin-top: 0; }
@media (max-width: 600px) { .hero h1.hero-story { font-size: clamp(42px, 12.4vw, 62px); } }

.section-display.now-title { font-size: clamp(44px, 4.7vw, 68px); line-height: .95; }
@media (max-width: 600px) { .section-display.now-title { font-size: clamp(36px, 10.6vw, 44px); } }

.books-heading .section-display.books-title { font-size: clamp(48px, 5.4vw, 78px); }
@media (max-width: 600px) { .books-heading .section-display.books-title { font-size: clamp(34px, 10.2vw, 40px); } }

/* Photo slots: show a labeled placeholder until a real photo loads */
.photo-slot { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; display: grid; place-items: center; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--text) 7%, transparent) 0 12px, transparent 12px 24px), var(--bg); border: 2px dashed var(--line); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-label { position: relative; padding: 16px; text-align: center; color: var(--muted); font: 700 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.photo-slot:not(.is-empty) { border: 0; }
.photo-slot:not(.is-empty) .slot-label { display: none; }
.hero-photo { width: calc(100% - 28px); max-width: 410px; justify-self: end; margin-right: 28px; border: 8px solid var(--paper) !important; box-shadow: 20px 24px 0 var(--cobalt); transform: rotate(3deg); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.hero-photo:hover { transform: rotate(0); }
.hero-photo img { object-position: 50% 30%; }
.now-lower { grid-template-columns: 1.1fr .5fr .55fr; }
.now-photo { aspect-ratio: auto; min-height: 250px; }
.now-photo img { object-position: 45% 55%; }
.rules-side { display: flex; align-items: flex-end; gap: 32px; }
.rules-photo { flex: 0 0 200px; border: 6px solid var(--paper) !important; transform: rotate(-3deg); box-shadow: -12px 14px 0 var(--pink); }
.rules-photo img { object-position: 30% 30%; }

/* Timeline motion: rail fills as you scroll, rows rise in, the row in the middle of the screen floods with its color */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 23px; top: 0; height: calc(100% - 130px); width: 2px; background: rgba(247,245,238,.18); }
.timeline > li { position: relative; z-index: 1; }
.timeline > li.t-fill { position: absolute; z-index: 0; left: 23px; top: 0; width: 2px; height: 0; background: var(--lime); box-shadow: 0 0 12px rgba(213,255,53,.6); list-style: none; }
.js .t-row .t-story, .js .t-row .t-out, .js .t-row.book img { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .t-row.in .t-story, .js .t-row.in .t-out, .js .t-row.book.in img { opacity: 1; transform: none; }
.js .t-row.book.in img { transform: rotate(-6deg); }
.t-row.is-active { color: var(--on); }
.t-row.is-active::before { transform: scaleY(1); }
.t-row.is-active .t-year::before { box-shadow: 0 0 0 4px rgba(10,8,24,.25); }
.t-row.next.is-active .t-built { color: var(--ink); }
.t-year::before { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .hero-photo { justify-self: start; max-width: 300px; }
  .now-lower { grid-template-columns: 1fr 1fr; }
  .now-lower .playlist { grid-column: 1 / -1; }
  .timeline::before, .timeline > li.t-fill { left: 17px; }
}
@media (max-width: 600px) {
  .hero-photo { max-width: 240px; margin-left: 6px; }
  .now-photo { min-height: 220px; }
  .rules-side { flex-direction: column; align-items: flex-start; gap: 24px; }
  .rules-photo { flex-basis: auto; width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .t-row .t-story, .js .t-row .t-out, .js .t-row.book img { opacity: 1; transform: none; }
  .hero-photo { transform: none; }
}

/* Responsive */
@media (max-width: 1180px) {
  .wrap { width: min(100% - 60px, 1440px); }
  .site-nav { gap: 20px; }
  .header-action { display: none; }
}
@media (max-width: 900px) {
  .wrap { width: min(100% - 40px, 1440px); }
  .site-nav a.wide-only { display: none; }
  .hero-grid, .section-head, .now-content, .books-heading, .writing-inner, .contact-head { grid-template-columns: 1fr; gap: 36px; }
  .section-head, .now-content { padding-top: 84px; }
  .now-lower { grid-template-columns: 1fr; padding-bottom: 90px; }
  .now-card:nth-child(2) { margin-left: 0; }
  .t-row, .t-row.book { grid-template-columns: 1fr; gap: 10px; padding: 24px 12px; }
  .t-out { white-space: normal; }
  .t-row.book img { position: absolute; right: 14px; top: 22px; width: 54px; }
  .t-row.book .t-story { padding-right: 76px; }
  .writing-inner { padding: 84px 0 96px; }
  .contact-head { padding: 84px 0 96px; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, 1440px); }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand img { width: 96px; }
  .brand small { display: none; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 11px; letter-spacing: .04em; }
  .theme-toggle { width: 38px; height: 36px; }
  .hero-inner { padding: 48px 0 52px; }
  .hero h1 { font-size: clamp(58px, 17vw, 84px); }
  .hero h1 .stroke { -webkit-text-stroke-width: 1.5px; }
  .section-meta { padding: 20px 0; font-size: 11px; }
  .section-meta span:last-child { display: none; }
  .section-display { font-size: clamp(50px, 14vw, 76px); }
  .section-head { padding: 64px 0 40px; }
  .timeline { padding-bottom: 80px; }
  .t-built { font-size: 28px; }
  .now-content { padding: 64px 0 40px; }
  .now-card, .now-card:nth-child(2), .now-card:nth-child(3) { transform: none; min-height: 150px; }
  .now-card h3 { font-size: 30px; }
  .playlist h3 { font-size: 30px; }
  .books-heading { padding: 64px 0 36px; }
  .book-grid.current, .book-grid.favorites-preview { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: none; gap: 10px; }
  .book-grid.current .book-tile:last-child { display: none; }
  .book-grid.current { margin-bottom: 52px; }
  .book-tile, .book-grid.current .book-tile { padding: 9px; }
  .book-tile .cover, .book-grid.current .book-tile .cover { height: 170px; }
  .book-tile .title, .book-grid.current .book-tile .title { min-height: 0; font-size: 14px; }
  .books-bottom { display: block; padding: 32px 0 72px; }
  .books-bottom p { margin-bottom: 22px; }
  .writing-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .quote-band { padding: 64px 0; }
  .values-grid { grid-template-columns: 1fr; padding-bottom: 80px; }
  .value:nth-last-child(2) { border-bottom: none; }
  .contact h2 { font-size: clamp(56px, 15vw, 84px); }
  .footer-main { display: block; padding: 48px 0 26px; }
  .footer-main img { width: 180px; }
  .footer-nav { margin-top: 28px; }
  .footer-bottom { display: block; line-height: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Mobile length trims (post-launch) */
@media (max-width: 600px) {
  .section-head { padding: 52px 0 28px; }
  .timeline { padding-bottom: 56px; }
  .t-row, .t-row.book { padding: 20px 12px; }
  .now-content { padding: 52px 0 28px; }
  .now-lower { padding-bottom: 64px; }
  .now-photo { display: none; }
  .rules-photo { display: none; }
  .value { padding: 16px 0; }
  .values-grid { padding-bottom: 56px; }
  .books-heading { padding: 52px 0 28px; }
  .books-bottom { padding: 24px 0 56px; }
  .writing-inner { padding: 56px 0 64px; }
  .quote-band { padding: 48px 0; }
  .contact-head { padding: 56px 0 64px; }
}
