/* sahejarora.com, design D: poster + swipe notes + elsewhere.
   Brand kit colours, fonts, square corners. The emerald square is the full stop.
   Motion only reacts to scroll or hover, and switches off for reduced motion. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f4ee;
  --raised: #ffffff;
  --sunk: #ece9e0;
  --ink: #111311;
  --muted: #4a5048;
  --rule: #d6d2c6;
  --emerald: #0e9f6e;
  --link: #056b49;
  --band: #0f1311;        /* the dark bands (ticker, who's writing) */
  --band-ink: #eef0ea;
  --band-muted: #a3a99f;
  --band-rule: #2c332f;
  --band-green: #3ccb95;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 73.75rem;
  --gut: 2.5rem;
  --frame: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1311; --raised: #171c19; --sunk: #0a0d0b; --ink: #eef0ea;
    --muted: #a3a99f; --rule: #2c332f; --link: #3ccb95; --band: #0a0d0b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1311; --raised: #171c19; --sunk: #0a0d0b; --ink: #eef0ea;
  --muted: #a3a99f; --rule: #2c332f; --link: #3ccb95; --band: #0a0d0b;
  color-scheme: dark;
}
@media (max-width: 40rem) { :root { --gut: 1.25rem; --frame: 6px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.6 var(--sans); font-kerning: normal; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.lab { font-family: var(--mono); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.sq { display: inline-block; width: 0.16em; height: 0.16em; background: var(--emerald); margin-left: 0.04em; }

/* The emerald frame around the whole window. */
.frame { position: fixed; inset: 0; border: var(--frame) solid var(--emerald); pointer-events: none; z-index: 40; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 2px solid var(--ink); }
.site-head .wrap { display: flex; align-items: center; gap: 0.75rem 1.6rem; padding-block: 1.25rem; }
.site-head .logo { margin-right: auto; }
.logo img { height: 1.6rem; width: auto; }
.nav { display: flex; gap: 0.5rem 1.6rem; align-items: center; flex-wrap: wrap; }
.nav a { font-size: 0.8125rem; color: var(--ink); text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--emerald); }
.theme-toggle { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; background: transparent; color: var(--ink); border: 2px solid var(--ink); cursor: pointer; flex: none; }
.theme-toggle:hover { background: var(--emerald); border-color: var(--emerald); color: #111311; }
.theme-toggle svg { display: block; }
.theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.no-js .theme-toggle { display: none; }
.logo .dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .light { display: none; }
  :root:not([data-theme="light"]) .logo .dark { display: block; }
}
:root[data-theme="dark"] .logo .light { display: none; }
:root[data-theme="dark"] .logo .dark { display: block; }
@media (max-width: 40rem) {
  .site-head .wrap { display: grid; grid-template-columns: 1fr auto; padding-block: 0.75rem 0.6rem; gap: 0.5rem 1rem; }
  .site-head .nav { grid-column: 1 / -1; grid-row: 2; gap: 0.4rem 1rem; }
  .theme-toggle { width: 2.25rem; height: 2.25rem; }
  .nav a { font-size: 0.75rem; }
}

/* Hero */
/* Hero: headline and intro on the left, photo on the right, sized to fit one screen. */
/* Option A: the photo's top lines up with the headline's top. The hero stops short of
   the screen's bottom so the dark "Who I am" band peeks in. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; align-content: center; column-gap: clamp(2rem, 5vw, 5rem); min-height: calc(100svh - 10rem); padding-block: clamp(2rem, 6svh, 4.5rem); }
.hero .hero-text { container-type: inline-size; min-width: 0; }
.hero .hero-title .hl { display: block; white-space: nowrap; }
.hero .hero-title { font-size: clamp(2.2rem, min(6.5vw, 15svh), 7rem); font-size: clamp(2.2rem, min(12.5cqi, 15svh), 8rem); line-height: 0.92; max-width: none; text-wrap: balance; }
.hero .hero-sub { margin-top: clamp(1.25rem, 3.5svh, 2rem); max-width: 24ch; text-wrap: pretty; }
.hero .photo { width: clamp(12rem, min(26vw, 52svh), 20rem); margin: 0.4rem 0.75rem 0 0; }
.kicker { font-size: 0.9375rem; color: var(--muted); display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; }
.kicker::before { content: ""; width: 12px; height: 12px; background: var(--emerald); flex: none; }
.big { font-size: clamp(3.25rem, 10.5vw, 9.75rem); line-height: 0.88; letter-spacing: -0.045em; font-weight: 800; max-width: 11ch; }
.hero-sub { font-size: clamp(1.25rem, 2.4vw, 1.875rem); line-height: 1.3; font-weight: 600; max-width: 26ch; color: var(--muted); }
.photo { position: relative; width: 16.25rem; flex: none; border: 10px solid var(--emerald); background: var(--emerald); transform: rotate(3deg); }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bubble { position: absolute; left: -18px; bottom: -22px; background: #111311; color: #f6f4ee; font-size: 0.75rem; padding: 0.6rem 0.75rem; max-width: 13.75rem; line-height: 1.5; opacity: 0; }
.photo:hover .bubble { opacity: 1; }
@media (max-width: 40rem) {
  .hero { padding-block: 3.5rem 4.5rem; }
    .photo { width: 11rem; }
  .bubble { opacity: 1; }
}

/* Ticker band */
.ticker-band { background: var(--band); color: var(--band-ink); overflow: hidden; padding-block: 1.35rem; }
.ticker { display: flex; gap: 2.25rem; width: max-content; font-size: 1.375rem; white-space: nowrap; align-items: center; }
.ticker i { width: 14px; height: 14px; background: var(--emerald); display: block; }
@media (max-width: 40rem) { .ticker { font-size: 1rem; gap: 1.5rem; } }

/* Section heads */
.sec { padding-block: 7rem; }
.sec + .sec { border-top: 2px solid var(--ink); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.h2 { font-size: clamp(2.75rem, 7.5vw, 7rem); line-height: 0.9; letter-spacing: -0.045em; font-weight: 800; max-width: 11ch; }
.sec-head p { font-size: 1.1875rem; color: var(--muted); max-width: 34ch; }
.sec-head p.lab { font-size: 0.8125rem; }
@media (max-width: 40rem) { .sec { padding-block: 4.5rem; } }

/* The notes rail: swipe sideways */
.notes-sec { padding-block: 7rem 6.5rem; overflow-x: clip; }
.rail { display: flex; gap: 2rem; overflow-x: auto; padding: 1rem var(--gut) 2rem; max-width: 78.75rem; margin: 0 auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: thin; }
.slide { flex: 0 0 26.25rem; aspect-ratio: 4 / 5; border: 14px solid var(--emerald); background: var(--paper); padding: 2rem; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; scroll-snap-align: start; }
.slide:hover { color: var(--ink); }
.slide .top { font-size: 0.8125rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; }
.slide .t { margin-top: auto; font-size: 2.75rem; line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; }
.slide .sub { margin-top: 0.75rem; font-size: 1.0625rem; color: var(--muted); }
.pill { margin-top: 1.25rem; align-self: flex-start; background: var(--emerald); color: #111311; font-size: 0.8125rem; padding: 0.55rem 0.9rem; border-radius: 999px; display: inline-flex; gap: 0.5rem; align-items: center; }
.pill::before { content: ""; width: 8px; height: 8px; background: #111311; }
.slide .foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.9375rem; }
.go { font-size: 0.75rem; padding: 0.5rem 0.75rem; border: 2px solid var(--ink); flex: none; }
.slide:hover .go, .card:hover .go { background: var(--ink); color: var(--paper); }
.slide.how { background: #0f1311; color: #eef0ea; }
.slide.how .top { color: #a3a99f; }
.slide.how .t { font-size: 2.375rem; line-height: 1; }
.slide.how ul { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.75rem; font-size: 1.125rem; color: #a3a99f; }
.slide.how li:last-child { color: #3ccb95; }
.slide.next { border: 4px dashed var(--muted); }
.slide.next .t { font-size: 2.5rem; line-height: 1; }
@media (max-width: 40rem) {
  .rail { gap: 1rem; }
  .slide { flex-basis: 82vw; padding: 1.4rem; border-width: 10px; }
  .slide .t { font-size: 2rem; }
  .slide.how .t, .slide.next .t { font-size: 1.85rem; }
  .slide.how ul { font-size: 1rem; gap: 0.5rem; }
}

/* Cards: free stuff and elsewhere */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.card { display: flex; flex-direction: column; gap: 0.9rem; border: 3px solid var(--ink); padding: 1.75rem; color: var(--ink); text-decoration: none; min-height: 13.75rem; }
.card .k { font-size: 0.75rem; color: var(--muted); }
.card .t { font-size: 1.75rem; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; margin-top: auto; }
.card .d { font-size: 1rem; color: var(--muted); }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.card:hover { background: var(--emerald); color: #111311; }
.card:hover .k, .card:hover .d { color: #111311; }
.card:hover .go { border-color: #111311; }
div.card:hover { background: transparent; color: var(--ink); }
div.card:hover .k, div.card:hover .d { color: var(--muted); }
.card.gift { border: 6px solid var(--emerald); }
.card.feature { background: var(--emerald); color: #111311; border-color: var(--emerald); }
.card.feature .k, .card.feature .d { color: #111311; }
.card.feature:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card.feature:hover .k, .card.feature:hover .d { color: var(--paper); }
@media (max-width: 40rem) { .card { min-height: 0; padding: 1.4rem; } .card .t { font-size: 1.5rem; margin-top: 1.25rem; } }
@media (min-width: 64rem) { .card.feature { grid-column: span 2; } .card.feature .t { font-size: 2.75rem; } }

/* Who's writing: the dark band */
.who { background: var(--band); color: var(--band-ink); }
.who .wrap { padding-block: 7.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 4rem; align-items: start; }
.who .k { font-size: 0.875rem; color: var(--band-muted); margin-bottom: 1.5rem; }
.who h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; }
.who p { margin-top: 1.4rem; font-size: 1.25rem; line-height: 1.55; color: var(--band-muted); max-width: 36ch; }
.who a { color: var(--band-green); }
.who a:hover { color: var(--band-ink); }
.creds { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--band-rule); }
.creds li { display: flex; justify-content: space-between; gap: 1rem; padding: 1.35rem 0; border-bottom: 2px solid var(--band-rule); font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
.creds .lab { font-size: 0.8125rem; color: var(--band-muted); align-self: center; flex: none; }
.creds .now { color: var(--band-green); }
.creds a { color: inherit; text-decoration-color: var(--band-green); text-decoration-thickness: 2px; }
@media (max-width: 40rem) { .who .wrap { padding-block: 4.5rem; gap: 2.5rem; } .creds li { font-size: 1.125rem; } }

/* Signup */
.signup { border: 14px solid var(--emerald); padding: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.signup h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.signup p { margin-top: 1rem; font-size: 1.1875rem; color: var(--muted); max-width: 34ch; }
.signup .act { display: grid; gap: 0.75rem; justify-items: start; }
.signup .alt { font-size: 0.9375rem; color: var(--muted); }
.btn { background: var(--emerald); color: #111311; text-decoration: none; font-size: 0.9375rem; padding: 1.1rem 1.5rem; display: inline-block; }
.btn:hover { background: var(--ink); color: var(--paper); }
.signup-sec { padding-block: 7rem; }
@media (max-width: 40rem) { .signup { padding: 1.75rem; border-width: 10px; } .signup-sec { padding-block: 4.5rem; } }

/* Inner pages */
.page-top { padding-block: 5rem 3rem; }
.page-top .big { font-size: clamp(3rem, 8vw, 7rem); }
.page-top .lede { margin-top: 1.75rem; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; font-weight: 600; color: var(--muted); max-width: 34ch; }
.inner { padding-bottom: 6rem; }
.about-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; flex-wrap: wrap; }
@media (max-width: 40rem) { .page-top { padding-block: 3rem 2rem; } }

/* The notes log */
.log { width: 100%; border-collapse: collapse; }
.log th { text-align: left; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0 0 0.9rem; border-bottom: 2px solid var(--ink); }
.log td { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 2px solid var(--rule); vertical-align: baseline; }
.log td:last-child, .log th:last-child { padding-right: 0; text-align: right; }
.log .wk { font: 500 0.8125rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; width: 7rem; }
.log .t a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.02em; }
.log .t a:hover { color: var(--link); }
.log .t .verdict, .log .t .keep { display: block; font-size: 1rem; margin-top: 0.5rem; color: var(--muted); }
.log .t .keep a { color: var(--link); font-weight: 600; font-size: 1rem; letter-spacing: 0; text-decoration: underline; }
.log .num { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.new { display: inline-block; width: 0.45em; height: 0.45em; background: var(--emerald); margin-right: 0.4em; vertical-align: 0.1em; }
.legend { font-size: 0.9375rem; color: var(--muted); margin-top: 1rem; }
.draft { display: inline-block; font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35em 0.5em; border: 2px solid var(--rule); color: var(--muted); vertical-align: 0.35em; margin-left: 0.5em; }
@media (max-width: 40rem) {
  .log thead { display: none; }
  .log, .log tbody, .log tr, .log td { display: block; width: auto; }
  .log tr { padding: 1.25rem 0; border-bottom: 2px solid var(--rule); display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
  .log td { border: 0; padding: 0; text-align: left !important; }
  .log .t { grid-column: 1 / -1; order: -1; margin-bottom: 0.6rem; }
  .log .t a { font-size: 1.4rem; }
}

/* Articles */
.article { max-width: 42rem; }
.article h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; }
.facts { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin-top: 1.75rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--ink); color: var(--muted); font: 500 0.8125rem/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.facts b { color: var(--ink); font-weight: 500; }
.facts .draft { margin-left: 0; vertical-align: baseline; }
.prose { margin-top: 2.5rem; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; margin-top: 3rem; }
.prose ul, .prose ol { margin-block: 0; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--emerald); }
.lede { font-size: 1.3rem; line-height: 1.5; }
.prompt, .template { background: var(--raised); border: 2px solid var(--ink); padding: 1.1rem 1.25rem; font: 500 0.9375rem/1.7 var(--mono); white-space: pre-wrap; overflow-x: auto; }
.template { font-size: 0.875rem; }
.takeaway { border: 6px solid var(--emerald); padding: 1.5rem; }
.takeaway a { font-weight: 600; }
.checks { list-style: none; padding: 0 !important; }
.checks li { position: relative; padding: 1rem 0 1rem 2.25rem; border-top: 2px solid var(--rule); margin: 0 !important; }
.checks li:last-child { border-bottom: 2px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.4rem; width: 1rem; height: 1rem; border: 2px solid var(--ink); }
.checks b { font-weight: 700; }
.after { margin-top: 4rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 1rem; }
.creds-plain { list-style: none; margin: 0; padding: 0 !important; border-top: 2px solid var(--ink); }
.creds-plain li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 2px solid var(--rule); margin: 0 !important; font-weight: 600; }
.creds-plain .lab { font-size: 0.75rem; color: var(--muted); align-self: center; flex: none; }

/* Humari Gullak timeline */
.steps { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.step { display: grid; grid-template-columns: 11rem 1fr 20rem; gap: 1.5rem 2.5rem; align-items: start; padding-block: 2.25rem; border-bottom: 2px solid var(--rule); }
.step .when { font-size: 0.8125rem; color: var(--muted); display: flex; gap: 0.6rem; align-items: center; padding-top: 0.6rem; }
.step .when::before { content: ""; width: 10px; height: 10px; background: var(--emerald); flex: none; }
.step h3 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.step .what p { margin-top: 0.9rem; font-size: 1.125rem; color: var(--muted); max-width: 46ch; }
.step .what p.more { font-size: 1rem; font-weight: 600; }
.step .what { grid-column: 2; }
.step .ph { grid-column: 3; }
.ph { aspect-ratio: 4 / 3; border: 3px dashed var(--rule); display: grid; place-items: center; font-size: 0.75rem; color: var(--muted); background: var(--sunk); }
@media (max-width: 52rem) {
  .step { grid-template-columns: 1fr; gap: 0.9rem; padding-block: 1.75rem; }
  .step .what, .step .ph { grid-column: 1; }
  .step .ph { max-width: 20rem; }
}

/* About: photo strip */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem; margin-block: 3.5rem 1rem; }
.strip figure { margin: 0; }
.strip figcaption { margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted); }
.strip .ph { aspect-ratio: 4 / 5; }

/* Footer */
.site-foot { border-top: 2px solid var(--ink); }
.site-foot .wrap { padding-block: 2rem 3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.9375rem; color: var(--muted); }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Motion. Hover moves are small; scroll motion needs browser support and is off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .photo { transition: transform 0.25s ease; }
  .photo:hover { transform: rotate(0deg) scale(1.02); }
  .bubble { transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease; }
  .photo:hover .bubble { transform: none; }
  .slide { transition: transform 0.2s ease; }
  .slide:hover { transform: translateY(-8px) rotate(-1deg); }
  .go, .btn, .theme-toggle { transition: background 0.2s ease, color 0.2s ease; }
  .card { transition: background 0.2s ease, color 0.2s ease, translate 0.2s ease; }
  .card:hover { translate: 0 -4px; }
  @supports (animation-timeline: view()) {
    .shrink { animation: shrink linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; transform-origin: left top; }
    @keyframes shrink { to { transform: scale(0.72); opacity: 0.35; } }
    .ticker { animation: tick linear both; animation-timeline: scroll(root); }
    @keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
    .settle { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes settle { from { transform: translateY(70px) rotate(-2deg); } to { transform: none; } }
    .railmove { animation: railin linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    @keyframes railin { from { transform: translateX(160px); } to { transform: none; } }
  }
}

/* Elsewhere: three equal cards */
@media (min-width: 64rem) { .elsewhere .card.feature { grid-column: auto; } .elsewhere .card.feature .t { font-size: 1.75rem; } }

.step .when.now { color: var(--link); }
.ticker .tk-lead { color: var(--band-green); }

/* Luminary: two blocks side by side */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem; }
.block { border: 3px solid var(--ink); padding: 2rem; display: grid; gap: 1rem; align-content: start; }
.block .k { font-size: 0.75rem; color: var(--muted); }
.block p:not(.k) { font-size: 1.125rem; color: var(--muted); max-width: 46ch; }
.block p:first-of-type + p { color: var(--ink); font-weight: 600; }
.lum-link { margin-top: 2rem; }
@media (max-width: 40rem) { .block { padding: 1.4rem; } }

/* Real photos on the timeline and About strip */
.shot { margin: 0; grid-column: 3; }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 6px solid var(--emerald); background: var(--emerald); }
.shot figcaption { margin-top: 0.6rem; font-size: 0.6875rem; color: var(--muted); }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 6px solid var(--emerald); background: var(--emerald); }
@media (max-width: 52rem) { .shot { grid-column: 1; max-width: 24rem; } }


/* Along the way: photos at their own shape */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery .g { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border: 6px solid var(--emerald); background: var(--emerald); }
.gallery img.pos-low { object-position: center 62%; }
@media (max-width: 52rem) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
.gallery figcaption { margin-top: 0.6rem; font-size: 0.6875rem; color: var(--muted); }

/* Luminary: a statement on the left, the facts on the right */
.lum-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 3rem 4rem; align-items: start; border-top: 3px solid var(--ink); padding-top: 2.5rem; }
.say { font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; max-width: 30ch; }
.say + .say { margin-top: 1.5rem; }
.say mark { background: none; color: inherit; box-shadow: inset 0 -0.22em 0 var(--emerald); }
.say-sub { margin-top: 1.75rem; font-size: 1.125rem; color: var(--muted); max-width: 46ch; }
.lum-facts { margin: 0; display: grid; border-top: 2px solid var(--ink); }
.lum-facts div { padding: 1rem 0; border-bottom: 2px solid var(--rule); display: grid; gap: 0.35rem; }
.lum-facts dt { font-size: 0.75rem; color: var(--muted); }
.lum-facts dd { margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
@media (max-width: 52rem) { .lum-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Elsewhere: two on top, LinkedIn across the bottom */
@media (min-width: 40rem) {
  .elsewhere .grid { grid-template-columns: repeat(2, 1fr); }
  .elsewhere .card.feature { grid-column: auto; }
  .elsewhere .card.long { grid-column: 1 / -1; min-height: 0; }
}

/* Notes list */
.note-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.note-list li { padding: 1.75rem 0; border-bottom: 2px solid var(--rule); display: grid; gap: 0.5rem; justify-items: start; }
.note-list .nt { color: var(--ink); text-decoration: none; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 30ch; }
.note-list .nt:hover { color: var(--link); }
.note-list li > .draft { margin-left: 0; }
.note-list .nv { color: var(--muted); }
.note-list .nk { color: var(--muted); font-size: 1rem; }
.note-list .nk a { font-weight: 600; }

@media (max-width: 46rem) {
  .hero { grid-template-columns: 1fr; min-height: 0; row-gap: 2.25rem; padding-block: 2.75rem 3.5rem; }
  .hero .hero-title { font-size: clamp(2.2rem, 11vw, 4.4rem); font-size: clamp(2.2rem, 12.5cqi, 4.4rem); }
  .hero .photo { width: min(70%, 16rem); justify-self: end; margin: 0 0.75rem 0 0; }
}

/* Home: "Who I am" dark band, with the tools ticker along its bottom edge */
.me-band { background: var(--band); color: var(--band-ink); border-block: 2px solid var(--band-rule); }
.me-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem 4rem; align-items: start; padding-block: clamp(4rem, 9vw, 6.5rem); }
.me-title { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 0.95; letter-spacing: -0.035em; font-weight: 800; }
.me-bio p { font-size: clamp(1.25rem, 2.1vw, 1.625rem); line-height: 1.4; font-weight: 600; color: var(--band-ink); max-width: 34ch; text-wrap: pretty; }
.me-bio p + p { margin-top: 1rem; }
.me-bio .me-more { margin-top: 1.75rem; font-size: 1.0625rem; font-weight: 600; }
.me-band a { color: var(--band-green); }
.me-band a:hover { color: var(--band-ink); }
.me-band .ticker-band { background: none; border-top: 2px solid var(--band-rule); padding-block: 1.25rem 1.5rem; }
.tk-label { font-size: 0.75rem; color: var(--band-green); margin-bottom: 0.9rem; }
.tk-track { overflow: hidden; }
ul.ticker { list-style: none; margin: 0; padding: 0 var(--gut); }
ul.ticker li { display: flex; align-items: center; gap: 2.25rem; }
ul.ticker li::after { content: ""; width: 12px; height: 12px; background: var(--emerald); flex: none; }
@media (max-width: 52rem) { .me-grid { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { ul.ticker li { gap: 1.5rem; } }

/* Home: notes, free things and the signup in one section */
.notes-home .h2 { font-size: clamp(2.75rem, 6vw, 5.5rem); }
.hn-list { list-style: none; margin: 0 0 2.5rem; padding: 0; border-top: 2px solid var(--ink); }
.hn-list li { padding: 1.5rem 0; border-bottom: 2px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; }
.hn-t { color: var(--ink); text-decoration: none; font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.875rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 32ch; }
.hn-t:hover { color: var(--link); }
.hn-free { font-size: 0.6875rem; padding: 0.35em 0.55em; background: var(--emerald); color: #111311; }
.hn-line { flex-basis: 100%; color: var(--muted); font-size: 1.0625rem; max-width: 52ch; }
.hn-signup .hn-k { font-size: 0.75rem; color: var(--muted); margin: 0 0 0.9rem; }
.hn-signup h3 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.hn-signup.hn-strip { border-width: 6px; padding: 1.75rem 2rem; }
.hn-signup.hn-strip h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* Home: Humari Gullak photos alternate sides on wide screens */
@media (min-width: 52.01rem) {
  .gullak .step:nth-child(even) { grid-template-columns: 11rem 20rem 1fr; }
  .gullak .step:nth-child(even) .what { grid-column: 3; grid-row: 1; }
  .gullak .step:nth-child(even) .shot { grid-column: 2; grid-row: 1; }
}

/* Home: the gallery swipes sideways on phones instead of stacking six photos */
@media (max-width: 40rem) {
  .moments .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.9rem; padding-bottom: 0.75rem; scrollbar-width: thin; }
  .moments .gallery .g { flex: 0 0 78%; scroll-snap-align: start; }
}

/* Home footer: the links that used to be "Elsewhere" */
.site-foot .foot-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.5rem 4rem; padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem; color: var(--ink); font-size: 1rem; border-bottom: 2px solid var(--rule); }
.foot-title { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.foot-links { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.foot-links li { display: grid; gap: 0.2rem; padding: 1rem 0; border-bottom: 2px solid var(--rule); }
.foot-links a { font-weight: 700; font-size: 1.1875rem; color: var(--ink); text-decoration: none; }
.foot-links a:hover { color: var(--link); }
.foot-links span { color: var(--muted); }
@media (max-width: 52rem) { .site-foot .foot-more { grid-template-columns: 1fr; } }
.prose p { text-wrap: pretty; }
