/* GregCook.net modern foundation — Batch 1 · July 2026 */
:root {
  --canvas: #f2f2f4;
  --surface: #ffffff;
  --surface-2: #e7e7eb;
  --surface-3: #dfe7ff;
  --ink: #111118;
  --muted: #62626c;
  --line: rgba(17, 17, 24, 0.14);
  --line-strong: rgba(17, 17, 24, 0.28);
  --accent: #285dff;
  --accent-2: #8bc8ff;
  --accent-ink: #06153f;
  --dark: #161620;
  --dark-ink: #f7f7fa;
  --header: rgba(242, 242, 244, 0.88);
  --shadow: 0 22px 60px rgba(17, 17, 24, 0.10);
  --shadow-small: 0 12px 34px rgba(17, 17, 24, 0.08);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shell: min(1460px, calc(100% - 48px));
  --reading: min(780px, calc(100% - 48px));
  --font-sans: "Segoe UI Variable", "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
  --canvas: #101015;
  --surface: #1a1a22;
  --surface-2: #25252f;
  --surface-3: #1d2a55;
  --ink: #f7f7fa;
  --muted: #b1b1bc;
  --line: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.30);
  --accent: #7aa7ff;
  --accent-2: #93d4ff;
  --accent-ink: #071333;
  --dark: #f0f0f4;
  --dark-ink: #111118;
  --header: rgba(16, 16, 21, 0.90);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  --shadow-small: 0 12px 34px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 28rem),
    var(--canvas);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.56;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection { color: #fff; background: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-170%);
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: #111118;
  font-weight: 800;
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }
.shell { width: var(--shell); margin-inline: auto; }
.reading-width { width: var(--reading); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: var(--header);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(17, 17, 24, 0.05);
}
.header-shell {
  width: var(--shell);
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 1;
}
.wordmark span { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.desktop-nav { display: flex; align-items: center; gap: 5px; margin-right: 12px; }
.desktop-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  transition: color 160ms ease, background 160ms ease;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.icon-button:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.theme-toggle span { transform: translateY(-1px); font-size: 1.18rem; line-height: 1; }
.menu-toggle { display: none; }
.menu-bars { width: 18px; height: 14px; position: relative; display: block; }
.menu-bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, top 180ms ease;
}
.menu-bars i:first-child { top: 3px; }
.menu-bars i:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-bars i:first-child { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars i:last-child { top: 6px; transform: rotate(-45deg); }
.mobile-nav { width: var(--shell); margin: 0 auto; padding: 8px 0 26px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.05rem, 4vw, 1.4rem);
  font-weight: 780;
}

.eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  line-height: 1.25;
  text-transform: uppercase;
}
.eyebrow span { color: var(--accent); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 820;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 28%, transparent); }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 820; }
.text-link span { transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(4px); }

.intro {
  min-height: calc(100svh - 82px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding-block: clamp(54px, 8vw, 120px);
}
.intro-copy { grid-column: span 8; max-width: 930px; }
.intro h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(3.35rem, 7.7vw, 8rem);
  font-weight: 790;
  letter-spacing: -0.075em;
  line-height: 0.91;
}
.intro h1 em { display: block; color: var(--accent); font-style: normal; }
.intro-text { max-width: 690px; margin: clamp(28px, 4vw, 48px) 0 0; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.45; }
.intro-actions, .page-actions { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; }
.intro-portrait { grid-column: span 4; margin: 0; align-self: center; }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: min(3vw, 34px); background: var(--surface-2); box-shadow: var(--shadow); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, 0.26); border-radius: inherit; pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.intro-portrait figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 0.78rem; font-weight: 720; }

.section-heading { max-width: 860px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 5rem); line-height: 0.98; letter-spacing: -0.06em; }
.bento-section { padding-block: clamp(80px, 10vw, 150px); }
.bento-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(110px, auto); gap: 18px; }
.tile { position: relative; min-height: 310px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-small); }
.tile-feature { grid-column: span 8; min-height: 620px; }
.tile-now { grid-column: span 4; }
.tile-longread { grid-column: span 4; }
.tile-garage { grid-column: span 4; }
.tile-trail { grid-column: span 4; }
.tile-photography { grid-column: span 7; min-height: 480px; }
.tile-web { grid-column: span 5; }
.tile-journal { grid-column: span 12; }
.tile-link { position: absolute; inset: 0; display: block; }
.tile-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.tile-image:hover img { transform: scale(1.035); }
.image-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,7,16,.02) 20%, rgba(4,7,16,.82) 100%); }
.image-shade-soft { background: linear-gradient(180deg, rgba(4,7,16,.04) 15%, rgba(4,7,16,.72) 100%); }
.tile-content { position: relative; z-index: 2; min-height: 100%; padding: clamp(24px, 3vw, 38px); }
.tile-content-bottom { position: absolute; inset: auto 0 0; color: #fff; }
.tile-kicker, .tile-footer { display: flex; justify-content: space-between; gap: 16px; font-size: 0.72rem; font-weight: 820; letter-spacing: 0.08em; text-transform: uppercase; }
.tile-kicker { margin-bottom: 28px; }
.tile h3 { max-width: 900px; margin: 0; font-size: clamp(1.8rem, 3.5vw, 4.6rem); line-height: 0.98; letter-spacing: -0.055em; }
.tile p { max-width: 560px; margin: 22px 0 0; color: var(--muted); }
.tile-content-bottom p { color: rgba(255,255,255,.82); }
.tile-footer { align-items: center; margin-top: 30px; }
.round-arrow { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1.05rem; }
.tile-accent { color: var(--accent-ink); background: linear-gradient(145deg, var(--accent-2), #dbe8ff); }
.tile-accent p { color: color-mix(in srgb, var(--accent-ink) 72%, transparent); }
.now-mark { position: absolute; right: 28px; bottom: 18px; color: color-mix(in srgb, var(--accent-ink) 10%, transparent); font-size: clamp(5rem, 12vw, 12rem); font-weight: 900; letter-spacing: -0.1em; line-height: .8; }
.tile-dark { color: var(--dark-ink); background: var(--dark); }
.tile-dark p { color: color-mix(in srgb, var(--dark-ink) 65%, transparent); }
.text-tile-link { position: static; min-height: 100%; }
.journal-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.journal-links a { display: grid; gap: 8px; min-height: 145px; padding: 24px; border-right: 1px solid var(--line); transition: background 160ms ease; }
.journal-links a:last-child { border-right: 0; }
.journal-links a:hover { background: var(--surface-2); }
.journal-links span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.journal-links strong { font-size: 1.15rem; line-height: 1.2; }
.journal-links i { align-self: end; font-style: normal; }

.page-hero { padding-block: clamp(70px, 10vw, 150px) clamp(48px, 7vw, 100px); }
.page-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: clamp(28px, 5vw, 80px); }
.page-hero-copy { grid-column: span 7; }
.page-hero h1 { max-width: 980px; margin: 0; font-size: clamp(3.4rem, 8vw, 8.5rem); font-weight: 790; letter-spacing: -0.075em; line-height: .9; }
.page-hero h1 em { color: var(--accent); font-style: normal; }
.page-lede { max-width: 780px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.5; }
.page-hero-media { grid-column: span 5; margin: 0; }
.page-hero-media .media-frame { overflow: hidden; aspect-ratio: 5 / 4; border-radius: var(--radius-xl); background: var(--surface-2); box-shadow: var(--shadow); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-note { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--muted); font-size: .78rem; font-weight: 720; }

.content-section { padding-block: clamp(60px, 9vw, 130px); }
.content-section + .content-section { padding-top: 0; }
.split-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split-main { grid-column: span 7; }
.split-side { grid-column: span 5; }
.prose { font-size: clamp(1.02rem, 1.2vw, 1.17rem); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.7em 0 .65em; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.045em; line-height: 1.05; }
.prose h3 { margin: 2.2em 0 .5em; font-size: 1.35rem; letter-spacing: -0.025em; }
.prose p { margin: 0 0 1.35em; }
.prose ul { margin: 0 0 1.5em; padding-left: 1.2em; }
.prose li + li { margin-top: .55em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose code { padding: .1em .35em; border-radius: 6px; background: var(--surface-2); font-size: .9em; }
.pullquote { margin: 42px 0; padding: 30px 0 30px 28px; border-left: 4px solid var(--accent); font-size: clamp(1.4rem, 2.8vw, 2.3rem); font-weight: 680; letter-spacing: -0.035em; line-height: 1.2; }

.stat-panel, .info-panel, .toc-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-small); }
.info-panel { padding: clamp(24px, 4vw, 40px); }
.info-panel h2, .info-panel h3 { margin-top: 0; letter-spacing: -0.035em; }
.info-panel p:last-child { margin-bottom: 0; }
.stat-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; overflow: hidden; border-radius: inherit; background: var(--line); }
.stat-item { padding: 24px; background: var(--surface); }
.stat-item strong { display: block; font-size: clamp(1.6rem, 3vw, 3rem); letter-spacing: -0.06em; line-height: 1; }
.stat-item span { display: block; margin-top: 8px; color: var(--muted); font-size: .78rem; font-weight: 750; }

.feature-band { padding-block: clamp(60px, 9vw, 130px); background: var(--dark); color: var(--dark-ink); }
.feature-band .eyebrow { color: color-mix(in srgb, var(--dark-ink) 58%, transparent); }
.feature-band h2 { max-width: 1060px; margin: 0; font-size: clamp(2.4rem, 6vw, 6rem); line-height: .95; letter-spacing: -0.065em; }
.feature-band p { max-width: 700px; color: color-mix(in srgb, var(--dark-ink) 66%, transparent); }

.card-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.story-card { grid-column: span 4; min-height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-small); transition: transform 180ms ease, border-color 180ms ease; }
.story-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.story-card-link { display: flex; flex-direction: column; min-height: 100%; }
.story-card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(145deg, var(--surface-2), var(--surface-3)); }
.story-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.story-card:hover .story-card-media img { transform: scale(1.035); }
.story-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.story-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; margin-bottom: 18px; color: var(--muted); font-size: .7rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.story-card h2, .story-card h3 { margin: 0; font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.07; letter-spacing: -0.045em; }
.story-card p { margin: 16px 0 0; color: var(--muted); font-size: .94rem; }
.story-card-action { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 820; }
.story-card--wide { grid-column: span 8; }
.story-card--wide .story-card-link { display: grid; grid-template-columns: 1.1fr 1fr; }
.story-card--wide .story-card-media { aspect-ratio: auto; min-height: 100%; }
.story-card--text .story-card-media { display: none; }
.story-card--accent { color: var(--accent-ink); background: linear-gradient(145deg, var(--accent-2), #dce8ff); }
.story-card--accent p, .story-card--accent .story-card-meta { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }

.archive-toolbar { position: sticky; top: 94px; z-index: 20; margin-bottom: 34px; padding: 14px; border: 1px solid var(--line); border-radius: 24px; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.archive-search { display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.archive-search span { color: var(--muted); }
.archive-search input { width: 100%; min-height: 48px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filter-button { min-height: 38px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); cursor: pointer; font-size: .78rem; font-weight: 800; }
.filter-button[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: var(--accent); }
.archive-status { margin: 18px 0 0; color: var(--muted); font-size: .84rem; font-weight: 720; }
.archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.archive-item { min-height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); transition: transform 160ms ease, border-color 160ms ease; }
.archive-item:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.archive-item[hidden] { display: none; }
.archive-item a { display: flex; flex-direction: column; min-height: 100%; }
.archive-image { overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(145deg, var(--surface-2), var(--surface-3)); }
.archive-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 360ms ease; }
.archive-item:hover img { transform: scale(1.035); }
.archive-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.archive-card-body h2 { margin: 0; font-size: 1.22rem; line-height: 1.08; letter-spacing: -0.035em; }
.archive-card-body p { margin: 12px 0 0; color: var(--muted); font-size: .85rem; }
.archive-card-body .story-card-action { padding-top: 18px; }
.archive-year { color: var(--muted); }

.category-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.category-link { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transition: transform 170ms ease, background 170ms ease; }
.category-link:hover { transform: translateY(-4px); background: var(--surface-2); }
.category-link span { color: var(--muted); font-size: .72rem; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.category-link strong { font-size: 1.3rem; line-height: 1.05; letter-spacing: -0.04em; }

.photo-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); grid-auto-flow: dense; gap: 14px; }
.photo-tile { position: relative; grid-column: span 3; overflow: hidden; min-height: 280px; border-radius: 24px; background: var(--surface-2); }
.photo-tile--wide { grid-column: span 6; }
.photo-tile--tall { grid-row: span 2; min-height: 574px; }
.photo-tile a { position: absolute; inset: 0; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 430ms ease; }
.photo-tile:hover img { transform: scale(1.04); }
.photo-caption { position: absolute; inset: auto 0 0; padding: 50px 20px 18px; color: #fff; background: linear-gradient(transparent, rgba(5,7,14,.82)); font-size: .82rem; font-weight: 780; }

.about-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.about-image { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-2); }
.about-image:nth-child(2) { transform: translateY(36px); }
.about-image img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.value-card { min-height: 230px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.value-card span { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 36px; border-radius: 50%; color: #fff; background: var(--accent); font-size: .78rem; font-weight: 850; }
.value-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.035em; }
.value-card p { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }

.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 18px; }
.contact-card { grid-column: span 4; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-small); }
.contact-card:first-child { color: var(--accent-ink); background: linear-gradient(145deg, var(--accent-2), #dce8ff); }
.contact-label { color: currentColor; opacity: .62; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.contact-card strong { display: block; margin-top: 8px; font-size: clamp(1.4rem, 2.5vw, 2.4rem); line-height: 1.05; letter-spacing: -0.05em; overflow-wrap: anywhere; }
.contact-card a { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; }
.contact-note { margin-top: 34px; padding: clamp(28px, 5vw, 60px); border-radius: var(--radius-xl); color: var(--dark-ink); background: var(--dark); }
.contact-note h2 { max-width: 760px; margin: 0; font-size: clamp(2.4rem, 5.5vw, 5.8rem); line-height: .95; letter-spacing: -0.06em; }
.contact-note-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; margin-top: 54px; }
.contact-note h3 { margin: 0 0 10px; font-size: 1.15rem; }
.contact-note p { margin: 0; color: color-mix(in srgb, var(--dark-ink) 66%, transparent); }

.utility-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 820px); justify-content: center; gap: clamp(36px, 7vw, 100px); padding-bottom: clamp(80px, 10vw, 150px); }
.toc-panel { position: sticky; top: 112px; align-self: start; padding: 22px; }
.toc-panel strong { display: block; margin-bottom: 14px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.toc-panel a { display: block; padding: 8px 0; color: var(--muted); font-size: .86rem; font-weight: 700; }
.toc-panel a:hover { color: var(--accent); }
.utility-content { min-width: 0; }
.utility-meta { margin: 0 0 34px; color: var(--muted); font-size: .9rem; }
.utility-content section { scroll-margin-top: 120px; }
.utility-content section + section { margin-top: 58px; padding-top: 54px; border-top: 1px solid var(--line); }
.utility-content h2 { margin: 0 0 18px; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -0.045em; }
.utility-content p, .utility-content li { max-width: 760px; }
.utility-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.utility-content ul { padding-left: 1.25em; }
.utility-content li + li { margin-top: .7em; }
.notice { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }

.site-footer { margin-top: clamp(70px, 10vw, 150px); border-top: 1px solid var(--line); }
.footer-shell { width: var(--shell); margin-inline: auto; padding-block: clamp(50px, 7vw, 90px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 60px; }
.footer-intro p { max-width: 520px; margin: 20px 0 0; color: var(--muted); }
.footer-links strong { display: block; margin-bottom: 14px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { display: block; width: fit-content; padding: 5px 0; color: var(--muted); font-size: .9rem; font-weight: 700; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-small); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 520ms ease, transform 520ms ease; }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .desktop-nav a { padding-inline: 9px; }
  .tile-feature { grid-column: span 12; }
  .tile-now, .tile-longread, .tile-garage, .tile-trail { grid-column: span 6; }
  .tile-photography, .tile-web { grid-column: span 6; }
  .story-card { grid-column: span 6; }
  .story-card--wide { grid-column: span 12; }
  .archive-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .category-links { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .value-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .photo-tile { grid-column: span 4; }
  .photo-tile--wide { grid-column: span 8; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 760px); --reading: min(100% - 32px, 720px); }
  .desktop-nav { display: none; }
  html.no-js .desktop-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .menu-toggle { display: inline-grid; }
  .intro { min-height: auto; padding-block: 62px 96px; }
  .intro-copy, .intro-portrait { grid-column: span 12; }
  .intro-portrait { max-width: 560px; }
  .page-hero-copy, .page-hero-media { grid-column: span 12; }
  .page-hero-media { max-width: 680px; }
  .split-main, .split-side { grid-column: span 12; }
  .about-strip { grid-template-columns: 1fr; }
  .about-image:nth-child(2) { transform: none; }
  .about-image img { min-height: 360px; }
  .utility-layout { grid-template-columns: 1fr; }
  .toc-panel { position: static; }
  .toc-panel nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .toc-panel a { padding: 4px 0; }
  .contact-card { grid-column: span 6; }
  .contact-card:last-child { grid-column: span 12; }
  .contact-note-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 24px); --reading: calc(100% - 24px); --radius-xl: 26px; --radius-lg: 22px; }
  body { font-size: 17px; }
  .header-shell { min-height: 72px; }
  .theme-toggle { display: none; }
  .intro h1, .page-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .intro-portrait figcaption, .page-hero-note { flex-direction: column; gap: 3px; }
  .tile-feature, .tile-now, .tile-longread, .tile-garage, .tile-trail, .tile-photography, .tile-web, .tile-journal { grid-column: span 12; }
  .tile-feature { min-height: 500px; }
  .tile-photography { min-height: 390px; }
  .journal-links { grid-template-columns: 1fr; }
  .journal-links a { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--line); }
  .journal-links a:last-child { border-bottom: 0; }
  .story-card, .story-card--wide { grid-column: span 12; }
  .story-card--wide .story-card-link { display: flex; }
  .story-card--wide .story-card-media { aspect-ratio: 4 / 3; min-height: auto; }
  .archive-toolbar { position: static; }
  .archive-grid { grid-template-columns: 1fr; }
  .category-links { grid-template-columns: 1fr; }
  .category-link { min-height: 135px; }
  .photo-tile, .photo-tile--wide { grid-column: span 12; min-height: 320px; }
  .photo-tile--tall { grid-row: auto; min-height: 440px; }
  .value-grid { grid-template-columns: 1fr; }
  .contact-card, .contact-card:last-child { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .stat-list { grid-template-columns: 1fr; }
  .back-to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

.info-panel-spaced { margin-top: 18px; }


/* =============================================================
   Batch 2 — flagship story and photo-essay system
   ============================================================= */
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 140;
  height: 3px;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}
.article-header { padding-block: clamp(44px, 7vw, 100px) clamp(46px, 7vw, 92px); }
.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 78px);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 760;
}
.article-breadcrumb a:hover { color: var(--accent); }
.article-title-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
}
.article-title-copy h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(3.25rem, 7.6vw, 8rem);
  font-weight: 790;
  letter-spacing: -.075em;
  line-height: .9;
  text-wrap: balance;
}
.article-deck {
  max-width: 850px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1.18rem, 2vw, 1.62rem);
  line-height: 1.48;
}
.article-meta-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.article-meta-card div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.article-meta-card div:first-child { border-top: 0; }
.article-meta-card dt { color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.article-meta-card dd { margin: 0; font-size: .88rem; font-weight: 780; }
.article-hero-media {
  margin: clamp(46px, 7vw, 94px) 0 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.article-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-hero-media figcaption,
.article-figure figcaption,
.article-gallery-card figcaption {
  padding: 13px 16px 16px;
  color: var(--muted);
  background: var(--surface);
  font-size: .8rem;
  line-height: 1.45;
}
.article-body {
  padding-block: clamp(30px, 5vw, 72px) clamp(70px, 10vw, 145px);
  font-size: clamp(1.04rem, 1.2vw, 1.18rem);
}
.article-body section { scroll-margin-top: 120px; }
.article-body section + section { margin-top: clamp(58px, 8vw, 108px); }
.article-body p { margin: 0 0 1.35em; }
.article-body h2 {
  margin: 0 0 .72em;
  font-size: clamp(2.05rem, 4vw, 4rem);
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}
.article-body h3 {
  margin: 2.1em 0 .65em;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: -.035em;
  line-height: 1.05;
}
.article-body h4 { margin: 2em 0 .65em; font-size: 1.18rem; }
.article-opening {
  margin-bottom: clamp(44px, 7vw, 82px) !important;
  color: var(--ink);
  font-size: clamp(1.32rem, 2.4vw, 2rem);
  font-weight: 610;
  letter-spacing: -.025em;
  line-height: 1.42;
}
.article-pullquote {
  width: min(1040px, calc(100vw - 48px));
  margin: clamp(50px, 8vw, 110px) 50%;
  transform: translateX(-50%);
  padding: clamp(34px, 6vw, 74px);
  border-radius: var(--radius-xl);
  color: var(--dark-ink);
  background: var(--dark);
  font-size: clamp(1.65rem, 3.8vw, 3.75rem);
  font-weight: 760;
  letter-spacing: -.048em;
  line-height: 1.1;
}
.article-callout {
  margin: 32px 0 40px;
  padding: 24px 26px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.article-callout--warning { border-left-color: #e09623; background: color-mix(in srgb, #e09623 10%, var(--surface)); }
.article-callout strong { display: block; margin-bottom: 6px; font-size: .83rem; letter-spacing: .08em; text-transform: uppercase; }
.article-callout p:last-child { margin-bottom: 0; }
.article-figure {
  margin: clamp(42px, 7vw, 86px) 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.article-figure--wide,
.article-gallery-section,
.article-toc,
.article-note,
.article-sources,
#article-notes {
  width: min(1180px, calc(100vw - 48px));
  margin-left: 50%;
  transform: translateX(-50%);
}
.article-figure--portrait { width: min(660px, 100%); margin-inline: auto; }
.article-image-button {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  background: var(--surface-2);
  cursor: zoom-in;
}
.article-image-button img { width: 100%; height: auto; transition: transform 420ms cubic-bezier(.2,.7,.2,1); }
.article-image-button:hover img { transform: scale(1.018); }
.article-section-heading { max-width: 850px; margin-bottom: 30px; }
.article-section-heading h2 { margin-bottom: 0; }
.article-gallery-section { margin-top: clamp(70px, 10vw, 140px) !important; }
.article-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.article-gallery-card {
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.article-gallery--two .article-gallery-card { grid-column: span 6; }
.article-gallery--four .article-gallery-card { grid-column: span 3; }
.article-gallery-card--wide { grid-column: span 8 !important; }
.article-gallery-card .article-image-button { overflow: hidden; aspect-ratio: 4 / 3; }
.article-gallery-card img { width: 100%; height: 100%; object-fit: cover; }
.article-note {
  margin-top: clamp(58px, 8vw, 110px);
  padding: clamp(30px, 5vw, 62px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
}
.article-note--accent { color: var(--accent-ink); background: linear-gradient(145deg, var(--accent-2), #dce8ff); }
.article-note--accent .eyebrow { color: color-mix(in srgb, var(--accent-ink) 65%, transparent); }
.article-note--dark { color: var(--dark-ink); background: var(--dark); }
.article-note--dark .eyebrow { color: color-mix(in srgb, var(--dark-ink) 58%, transparent); }
.article-note h2 { max-width: 900px; }
.article-note-quote { max-width: 980px; font-size: clamp(1.6rem, 3.5vw, 3.25rem); font-weight: 760; letter-spacing: -.045em; line-height: 1.1; }
.article-fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 36px 0 44px; }
.article-fact-grid article { min-height: 170px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.article-fact-grid strong { display: block; color: var(--accent); font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.06em; line-height: .95; }
.article-fact-grid span { display: block; margin-top: 14px; color: var(--muted); font-size: .86rem; font-weight: 720; }
.article-toc {
  margin-top: 0;
  margin-bottom: clamp(58px, 8vw, 100px);
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.article-toc h2 { margin-bottom: 20px; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.article-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 34px; margin: 0; padding-left: 1.35em; }
.article-toc a { color: var(--muted); font-size: .9rem; font-weight: 720; }
.article-toc a:hover { color: var(--accent); }
.article-table {
  width: 100%;
  margin: 30px 0 38px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
}
.article-table caption { margin-bottom: 10px; text-align: left; color: var(--muted); font-size: .82rem; font-weight: 800; }
.article-table th,
.article-table td { padding: 15px 16px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.article-table th { width: 24%; background: var(--surface-2); }
.article-sources {
  margin-top: clamp(68px, 9vw, 120px) !important;
  padding: clamp(30px, 5vw, 58px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
}
.article-sources ul { padding-left: 1.2em; }
.article-sources li + li { margin-top: .65em; }
.article-sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.article-note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-note-card { min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.article-note-card h3 { margin: 0 0 20px; font-size: 1.35rem; }
.article-note-card p { color: var(--muted); font-size: .94rem; }
.article-related { padding-bottom: clamp(20px, 4vw, 60px); }
.article-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.article-related-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-small); transition: transform 180ms ease, border-color 180ms ease; }
.article-related-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.article-related-card > a { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr); min-height: 100%; }
.article-related-card--text > a { grid-template-columns: 1fr; }
.article-related-media { min-height: 320px; overflow: hidden; background: var(--surface-2); }
.article-related-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.article-related-card:hover img { transform: scale(1.035); }
.article-related-copy { display: flex; flex-direction: column; padding: 28px; }
.article-related-copy h3 { margin: 20px 0 14px; font-size: clamp(1.55rem, 2.6vw, 2.5rem); letter-spacing: -.05em; line-height: 1.02; }
.article-related-copy > p:not(.card-meta) { color: var(--muted); }
.article-related-copy .text-link { margin-top: auto; padding-top: 20px; }
.article-end-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.image-lightbox {
  width: min(1200px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: #fff;
  background: #09090d;
  box-shadow: 0 34px 100px rgba(0,0,0,.55);
}
.image-lightbox::backdrop { background: rgba(3,3,8,.86); backdrop-filter: blur(10px); }
.image-lightbox-shell { position: relative; display: grid; grid-template-rows: minmax(0,1fr) auto; max-height: calc(100vh - 32px); }
.image-lightbox-media { min-height: 0; display: grid; place-items: center; overflow: hidden; }
.image-lightbox-media img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; }
.image-lightbox-caption { margin: 0; padding: 14px 70px 18px 20px; color: rgba(255,255,255,.74); font-size: .86rem; }
.image-lightbox-close,
.image-lightbox-nav {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff;
  background: rgba(8,8,13,.72);
  cursor: pointer;
  font-size: 1.35rem;
}
.image-lightbox-close { top: 14px; right: 14px; }
.image-lightbox-nav { top: 50%; transform: translateY(-50%); }
.image-lightbox-prev { left: 14px; }
.image-lightbox-next { right: 14px; }
.image-lightbox-nav[hidden] { display: none; }

@media (max-width: 1000px) {
  .article-title-grid { grid-template-columns: 1fr; }
  .article-meta-card { display: grid; grid-template-columns: 1fr 1fr; }
  .article-meta-card div:nth-child(2) { border-top: 0; }
  .article-related-card > a { grid-template-columns: 1fr; }
  .article-related-media { min-height: 280px; }
  .article-gallery--four .article-gallery-card { grid-column: span 4; }
  .article-note-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .article-title-copy h1 { font-size: clamp(3rem, 14vw, 5.4rem); }
  .article-hero-media { border-radius: 24px; }
  .article-hero-media img { aspect-ratio: 4 / 3; }
  .article-figure--wide,
  .article-gallery-section,
  .article-toc,
  .article-note,
  .article-sources,
  #article-notes,
  .article-pullquote { width: calc(100vw - 28px); }
  .article-gallery-card,
  .article-gallery--two .article-gallery-card,
  .article-gallery--four .article-gallery-card,
  .article-gallery-card--wide { grid-column: span 6 !important; }
  .article-toc ol { grid-template-columns: 1fr; }
  .article-fact-grid { grid-template-columns: 1fr; }
  .article-table { display: block; overflow-x: auto; }
  .article-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .article-meta-card { grid-template-columns: 1fr; }
  .article-meta-card div:nth-child(2) { border-top: 1px solid var(--line); }
  .article-meta-card div { grid-template-columns: 92px 1fr; }
  .article-gallery-card,
  .article-gallery--two .article-gallery-card,
  .article-gallery--four .article-gallery-card,
  .article-gallery-card--wide { grid-column: span 12 !important; }
  .article-pullquote { padding: 30px 24px; }
  .article-related-media { min-height: 230px; }
  .image-lightbox { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 16px; }
  .image-lightbox-media img { max-height: calc(100vh - 110px); }
  .image-lightbox-nav { width: 40px; height: 40px; }
}
