/* ============================================================
   Constantin Vermoere — personal site
   Design system borrowed from SMOVE.CITY brand
   ============================================================ */

:root {
  --paper: #F5F1E8;
  --white: #FCFAF4;
  --ink: #0F1419;
  --ink-soft: #3A3F47;
  --ink-mute: #6B7280;
  --line: #DAD3C6;
  --line-soft: #E8E3D6;
  --accent: #14304F;
  --col: 1280px;
  --gutter: 32px;
  --measure: 66ch;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
}

html[data-theme="dark"] {
  --paper: #10151B;
  --white: #161E27;
  --ink: #F5F1E8;
  --ink-soft: #D8D2C4;
  --ink-mute: #97A0AB;
  --line: #2B343F;
  --line-soft: #222A33;
  --accent: #8FB4DC;
}

html[data-theme="dark"] .podcast-band,
html[data-theme="dark"] .book-callout { background: #14304F; }
html[data-theme="dark"] .btn-solid { color: #F5F1E8; }
html[data-theme="dark"] .hero-badge { background: #14304F; color: #FCFAF4; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--white); }

.wrap {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 400; }

.display {
  font-family: var(--serif);
  font-size: clamp(3rem, 8.5vw, 7rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.04;
  margin-bottom: 28px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: var(--measure); }

.prose p {
  max-width: var(--measure);
  color: var(--ink-soft);
  margin-bottom: 1.2em;
}

.prose a { color: var(--accent); }

/* ---------- reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--ink); color: var(--paper); }

.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn-light { border-color: var(--white); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--accent); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.35s ease;
}

.site-header.hidden { transform: translateY(-100%); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.wordmark span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav a:not(.btn) {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.site-nav .btn { padding: 9px 18px; font-size: 0.75rem; }
.site-nav a.btn-solid { color: var(--white); }
.site-nav a.btn-solid:hover { color: var(--paper); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--white);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.site-nav a.active { color: var(--ink); }
.site-nav a.active::after { transform: scaleX(1); transform-origin: left; }

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 60;
  transition: width 0.1s linear;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.3s ease;
}

.theme-toggle:hover { border-color: var(--accent); transform: rotate(-12deg); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- hero ---------- */

.hero { padding: 96px 0 88px; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
}

.hero .display { margin-bottom: 28px; }
.hero .display em { font-style: normal; color: var(--accent); }

.hero-contact { margin-top: 36px; }

.hero-email {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease;
}

.hero-email:hover { border-color: var(--accent); }

.hero-photo-wrap { position: relative; }

.hero-photo {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.hero-socials {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-socials a { text-decoration: none; color: var(--ink-mute); transition: color 0.2s; }
.hero-socials a:hover { color: var(--accent); }

/* ---------- ventures: feature + index list ---------- */

.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.feature-text h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 14px 0 16px;
}

.feature-text p { color: var(--ink-soft); max-width: 44ch; margin-bottom: 20px; }

.quiet-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.feature:hover .quiet-link { border-color: var(--accent); color: var(--accent); }

.feature-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-media img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.v-list { border-top: 1px solid var(--line); }

.v-row {
  display: grid;
  grid-template-columns: 48px 200px 1fr 1.3fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s ease;
}

.v-row:hover { background: var(--white); }

.v-num {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-mute);
}

.v-thumb {
  width: 200px;
  height: 132px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.v-row:hover .v-thumb { transform: scale(1.03); }

.v-name { font-family: var(--serif); font-size: 1.7rem; }

.v-desc { color: var(--ink-mute); font-size: 1rem; }

.v-role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.holding-note { margin-top: 32px; color: var(--ink-mute); max-width: var(--measure); }
.holding-note a { color: var(--accent); }

/* ---------- writing list ---------- */

.w-list { border-top: 1px solid var(--line); }

.w-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 28px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s ease;
}

.w-row:hover { background: var(--white); }
.w-row:hover .w-title { color: var(--accent); }

.w-date {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.w-title { font-size: 1.1rem; font-weight: 500; line-height: 1.45; transition: color 0.2s ease; }

.w-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- photo pair ---------- */

.book-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.book-covers img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 20, 25, 0.12);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-covers a:hover img { transform: translateY(-5px); }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

.photo-pair img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

/* ---------- sections ---------- */

.section { padding: 104px 0; border-top: 1px solid var(--line); }

.section-head { margin-bottom: 48px; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  max-width: 960px;
  margin: 56px 0 0 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 24px;
  width: 1px;
  background: var(--line);
}

.tl-progress {
  position: absolute;
  left: 0;
  top: 6px;
  width: 1px;
  height: 0;
  background: var(--accent);
  z-index: 1;
}

.tl-item {
  position: relative;
  padding: 0 0 64px 48px;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 40px;
  align-items: start;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
  z-index: 2;
  transition: background 0.3s ease;
}

.tl-item.passed::before { background: var(--accent); }

.tl-photo {
  width: 180px;
  height: 135px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-top: 8px;
  transition: border-color 0.2s ease;
}

.tl-item a:hover .tl-photo { border-color: var(--accent); }


.tl-year {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.tl-item h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 8px 0 10px;
}

.tl-item p { color: var(--ink-soft); max-width: 62ch; }
.tl-item p a { color: var(--accent); }


/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover { border-color: var(--accent); }

.card-img { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line-soft); }

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-cover {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.card-cover span {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: 0.04em;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-cover span { transform: scale(1.06); }

.card-cover::after {
  content: '✦';
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 0.9rem;
  opacity: 0.45;
}

.cover-navy { background: var(--accent); }
.cover-navy span, .cover-navy::after { color: var(--white); }

.cover-ink { background: var(--ink); }
.cover-ink span, .cover-ink::after { color: var(--paper); }

.cover-cream { background: var(--white); }
.cover-cream span, .cover-cream::after { color: var(--accent); }

.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.card-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.card-title { font-size: 1.06rem; font-weight: 600; line-height: 1.35; }

.card-meta {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease, gap 0.25s ease;
}

.card:hover .card-meta { color: var(--accent); gap: 12px; }

/* ---------- ventures grid ---------- */

.ventures-grid { grid-template-columns: repeat(2, 1fr); }

.card-wide { grid-column: 1 / -1; }

.card-phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 22px 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.card-phones img {
  width: 100%;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  max-height: 320px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-wide:hover .card-phones img { transform: translateY(-6px); }

@media (max-width: 900px) {
  .ventures-grid { grid-template-columns: 1fr; }
}

/* ---------- beyond work ---------- */

.beyond-books-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

.beyond-books { list-style: none; }

.beyond-books li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-mute);
}

.beyond-books li:first-child { border-top: 1px solid var(--line-soft); }

.beyond-books a {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.beyond-books a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- book callout ---------- */

.book-callout {
  margin-top: 56px;
  background: var(--accent);
  color: var(--white);
  border-radius: 18px;
  padding: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.book-callout::before {
  content: '✺';
  position: absolute;
  right: -40px;
  top: -70px;
  font-size: 16rem;
  opacity: 0.08;
  font-family: var(--serif);
}

.book-callout h3 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  max-width: 26ch;
  position: relative;
}

/* ---------- podcast band ---------- */

.podcast-band {
  background: var(--accent);
  color: var(--white);
  padding: 104px 0;
}

.podcast-band .eyebrow { color: rgba(252, 250, 244, 0.6); }
.podcast-band .eyebrow::before { background: var(--white); }
.podcast-band .lede { color: rgba(252, 250, 244, 0.8); }

.podcast-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.podcast-thumb {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.podcast-thumb img { width: 100%; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.podcast-thumb:hover img { transform: scale(1.03); }

.podcast-thumb::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: var(--white);
  background: rgba(15, 20, 25, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.podcast-thumb:hover::after { opacity: 1; }

/* ---------- books ---------- */

.book-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.book {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.book::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.book > * { position: relative; transition: color 0.3s ease; }

.book:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(15, 20, 25, 0.12); }
.book:hover::before { transform: translateY(0); }
.book:hover > * { color: var(--white); }
.book:hover p { color: rgba(252, 250, 244, 0.75); }

.book-num { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-mute); letter-spacing: 0.12em; }

.book h3 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }

.book p { font-size: 0.92rem; color: var(--ink-mute); }

/* press strip sits tighter under the hero */
.section-press { padding-top: 64px; }

/* ---------- news ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.news-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.news-item:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: 0 16px 32px rgba(15, 20, 25, 0.1); }

.news-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- blog cards ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 20, 25, 0.1);
  border-color: var(--accent);
}

.post-card .card-img { aspect-ratio: 16 / 9; }

.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.post-card-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.post-card h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.4; }

.post-card .excerpt { font-size: 0.92rem; color: var(--ink-mute); }

.post-card .cat-chip { color: var(--accent); }

/* ---------- featured post (blog index) ---------- */

.post-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.post-featured .card-img {
  aspect-ratio: auto;
  min-height: 100%;
  border-bottom: 0;
  border-right: 1px solid var(--line-soft);
}

.post-featured .post-card-body { padding: 36px 40px; justify-content: center; }

.post-featured h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
}

@media (max-width: 900px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .card-img { aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line-soft); }
}

/* ---------- blog filter ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 48px;
}

.chip {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}

.chip:hover { border-color: var(--accent); color: var(--accent); }

.chip.active { background: var(--accent); border-color: var(--accent); color: var(--white); }

.search-input {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  width: min(360px, 100%);
  outline: none;
  transition: border-color 0.25s ease;
}

.search-input:focus { border-color: var(--accent); }

/* ---------- article (post page) ---------- */

.article-hero { padding: 72px 0 48px; }

.article-hero .display { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.06; margin: 20px 0 28px; }

.article-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.article-meta .cat { color: var(--accent); }

.article-cover {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 48px 0;
}

.article-cover img { width: 100%; max-height: 560px; object-fit: cover; }

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 96px;
}

.article-body p { color: var(--ink-soft); margin-bottom: 1.4em; }

.article-body h2, .article-body h3, .article-body h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 1.8em 0 0.6em;
}

.article-body h2 { font-size: 2.2rem; }
.article-body h3 { font-size: 1.8rem; }
.article-body h4 { font-size: 1.4rem; }
.article-body h5, .article-body h6 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.3; margin: 1.6em 0 0.5em; }

.article-body .label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3.2em 0 1.2em;
}

.article-body .label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5em 0;
}

.article-body .steps-line {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.6em 0 1em;
}

.article-body .steps-line span { color: var(--ink-mute); font-weight: 400; padding: 0 8px; }

.article-body .trust-line {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.article-body strong, .article-body b { color: var(--ink); }

.article-body a { color: var(--accent); }

.article-body ul, .article-body ol { margin: 0 0 1.4em 1.4em; color: var(--ink-soft); }
.article-body li { margin-bottom: 0.5em; }

.article-body img { border-radius: 14px; border: 1px solid var(--line); margin: 2em auto; }

.img-top { object-position: top !important; }

.article-body .phone-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 2em 0;
}

.article-body .phone-row img {
  margin: 0;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
}

@media (max-width: 560px) {
  .article-body .phone-row { grid-template-columns: repeat(2, 1fr); }
}

.article-body .img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 2em 0;
}

.article-body .img-grid img {
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (max-width: 560px) {
  .article-body .img-grid { grid-template-columns: 1fr; }
}

.article-body blockquote {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 28px;
  margin: 2em 0;
}

.article-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 14px;
  margin: 2em 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.92rem;
}

.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  color: var(--ink-soft);
}

.article-body th { background: var(--white); color: var(--ink); }

.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 48px 0 32px;
}

.share-row > span {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 8px;
}

.related { padding: 72px 0 104px; border-top: 1px solid var(--line); }
.related .eyebrow { margin-bottom: 28px; }

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 24px;
}

.article-nav a {
  text-decoration: none;
  max-width: 44%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-nav a:hover .post-title { color: var(--accent); }

.article-nav .dir {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.article-nav .post-title { font-size: 1rem; font-weight: 600; line-height: 1.4; transition: color 0.2s; }

.article-nav .next { text-align: right; margin-left: auto; }

/* ---------- page hero (subpages) ---------- */

.page-hero { padding: 84px 0 56px; }

/* ---------- contact ---------- */

.contact {
  padding: 140px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.contact .display { margin-bottom: 32px; }
.contact .display em { font-style: italic; color: var(--accent); }
.contact .eyebrow { justify-content: center; }
.contact .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--accent); display: inline-block; }

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  text-decoration: none;
  color: var(--accent);
  position: relative;
}

.contact-email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-email:hover::after { transform: scaleX(1); }

/* ---------- footer ---------- */

.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--white); }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }

.footer-nav a { font-size: 0.92rem; text-decoration: none; color: var(--ink-soft); transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

/* ---------- back to top ---------- */

.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s, color 0.2s;
  z-index: 40;
}

.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .split, .podcast-feature, .feature { grid-template-columns: 1fr; gap: 40px; }
  .book-row { grid-template-columns: 1fr; }
  .news-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-photo-wrap { max-width: 420px; }

  .tl-item { grid-template-columns: 1fr; gap: 18px; }
  .tl-photo { width: 100%; max-width: 320px; height: 160px; margin-top: 0; }

  .v-row { grid-template-columns: 40px 120px 1fr; gap: 18px; row-gap: 6px; }
  .v-thumb { width: 120px; height: 84px; }
  .v-name { font-size: 1.4rem; }
  .v-desc { grid-column: 2 / -1; }
  .v-role { grid-column: 2 / -1; }
  .w-row { grid-template-columns: 1fr; gap: 6px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 24px var(--gutter) 32px;
    gap: 18px;
  }

  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 560px) {
  .news-grid, .post-grid { grid-template-columns: 1fr; }
  .photo-strip img { height: 200px; }
  .book-callout { padding: 36px 28px; }
  .article-nav { flex-direction: column; }
  .article-nav a { max-width: 100%; }
  .article-nav .next { text-align: left; margin-left: 0; }
}
