/* satyabrat.com — shared stylesheet
   Type: Instrument Serif (display) + Geist (body) + JetBrains Mono (eyebrow)
   Palette: warm cream + deep ink + ember accent */

:root {
  --bg: #F4F1EA;
  --bg-2: #EDE8DD;
  --paper: #FBF9F4;
  --ink: #15130F;
  --ink-2: #2A2620;
  --muted: #6B6358;
  --rule: #D9D2C2;
  --ember: oklch(0.66 0.14 50);
  --ember-soft: oklch(0.66 0.14 50 / 0.10);

  --serif: "Instrument Serif", "EB Garamond", Georgia, serif;
  --sans: "Geist", "Söhne", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--ink); color: var(--bg); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--ember);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 1px;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}
.display {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.022em;
}
.display em {
  font-style: italic;
  color: var(--ink-2);
}
.h1 { font-size: clamp(40px, 5.6vw, 84px); }
.h2 { font-size: clamp(32px, 3.8vw, 58px); }
.h3 { font-size: clamp(24px, 2.4vw, 34px); }
.lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.32;
  color: var(--ink-2);
  font-weight: 400;
  text-wrap: pretty;
}
p { text-wrap: pretty; }
.prose p { max-width: 62ch; color: var(--ink-2); }
.prose p + p { margin-top: 1.15em; }
.mono { font-family: var(--mono); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: clamp(72px, 11vw, 160px) 0; position: relative; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 50%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo .mark {
  width: 9px; height: 9px;
  background: var(--ember);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-2px);
}
.nav-links {
  display: flex;
  gap: clamp(14px, 2.2vw, 28px);
  align-items: center;
  font-size: 14.5px;
  color: var(--ink-2);
}
.nav-links a { position: relative; padding: 6px 0; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
}
.nav-cta {
  font-family: var(--sans);
  font-size: 14px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: transparent; color: var(--ink); }
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 6px; color: var(--ink);
}
/* Always hide close icon by default; show only when nav is open */
.nav-toggle .icon-close { display: none !important; }
.nav.open .nav-toggle .icon-menu { display: none !important; }
.nav.open .nav-toggle .icon-close { display: inline-block !important; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    padding: 18px var(--gutter) 24px;
    border-bottom: 1px solid var(--rule);
    gap: 14px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.link-arrow:hover { color: var(--ember); border-color: var(--ember); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 9vw, 130px) 0 clamp(60px, 9vw, 110px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}
/* ---------- Reusable page grids ---------- */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: end;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 780px) {
  .page-grid,
  .newsletter-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .form { border-left: none !important; padding-left: 0 !important; }
  .contact-grid #thanks { grid-column: 1 !important; border-left: none !important; padding-left: 0 !important; }
}

/* ---------- About grid (index) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 780px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-grid img {
    width: 100%;
    max-width: 320px;
  }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 22px;
  margin-bottom: clamp(36px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.hero-meta span + span::before {
  content: "·";
  margin: 0 14px;
  color: var(--rule);
}

/* ---------- Placeholder imagery (no fake photos) ---------- */
.placeholder {
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    var(--bg-2) 0 14px,
    var(--paper) 14px 28px
  );
  border: 1px solid var(--rule);
  overflow: hidden;
}
.placeholder .label {
  position: absolute;
  left: 14px; bottom: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--rule);
}
.placeholder .corner {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.portrait { aspect-ratio: 4/5; }
.landscape { aspect-ratio: 16/10; }
.square { aspect-ratio: 1/1; }

/* ---------- Marquee strip ---------- */
.strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  overflow: hidden;
  background: var(--paper);
}
.strip-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: slide 38s linear infinite;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip-track span::before {
  content: "—";
  margin-right: 56px;
  color: var(--rule);
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Companies / cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.cards > .card {
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  position: relative;
}
.cards > .card.col-6 { grid-column: span 6; }
.cards > .card.col-4 { grid-column: span 4; }
.cards > .card.col-12 { grid-column: span 12; }
@media (max-width: 780px) {
  .cards > .card.col-6, .cards > .card.col-4 { grid-column: span 12; }
}
.card .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; justify-content: space-between;
}
.card .name {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}
.card .desc { color: var(--ink-2); max-width: 46ch; }
.card .more {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline-row {
  display: grid;
  grid-template-columns: 180px 1fr 1.2fr;
  gap: clamp(20px, 3vw, 56px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.timeline-row:last-child { border-bottom: 1px solid var(--rule); }
.timeline-year {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 8px;
}
.timeline-year .num {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.timeline-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
}
.timeline-body { color: var(--ink-2); max-width: 55ch; }
@media (max-width: 780px) {
  .timeline-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Quote block ---------- */
.quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 22ch;
}
.quote .em { font-style: italic; color: var(--ember); }
.quote-cite {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px);
}
.stat .n {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .l {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Testimonial ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.testi { background: var(--bg); padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; gap: 18px; }
.testi p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.32;
  color: var(--ink);
  margin: 0;
}
.testi .who { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: auto; }
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr; } }

/* ---------- Press logos ---------- */
.press-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.press-row .p {
  background: var(--bg);
  padding: 28px;
  font-family: var(--serif);
  font-size: 22px;
  text-align: center;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
@media (max-width: 780px) { .press-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(60px, 8vw, 110px) 0 36px;
}
footer .wrap > .top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
footer h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 65%, transparent);
  font-weight: 500;
  margin-bottom: 18px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer a { color: color-mix(in srgb, var(--bg) 85%, transparent); font-size: 15px; }
footer a:hover { color: var(--bg); }
footer .brand-block .display-name {
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: -0.01em;
}
footer .brand-block p { color: color-mix(in srgb, var(--bg) 65%, transparent); max-width: 36ch; font-size: 14.5px; }
footer .bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 12%, transparent);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
}
@media (max-width: 880px) {
  footer .wrap > .top { grid-template-columns: 1fr 1fr; }
  footer .bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
  padding: clamp(60px, 9vw, 130px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--rule);
}
.page-head .crumbs {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.page-head .crumbs span { color: var(--ember); }
.page-head h1 {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  max-width: 14ch;
}
.page-head .lede { margin-top: 28px; max-width: 56ch; }

/* ---------- Manifesto / Long-form ---------- */
.manifesto {
  background: var(--ink);
  color: var(--bg);
}
.manifesto .wrap { max-width: 920px; }
.manifesto .display em { color: color-mix(in srgb, var(--bg) 60%, var(--ember)); }
.manifesto p {
  color: color-mix(in srgb, var(--bg) 80%, transparent);
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.42;
  margin: 1.1em 0;
  max-width: 38ch;
}
.manifesto .sig {
  margin-top: 60px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
}
.manifesto .sigline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  color: var(--bg);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

/* ---------- Writing list ---------- */
.essay {
  display: grid;
  grid-template-columns: 130px 1fr 200px;
  gap: 36px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.essay:last-child { border-bottom: 1px solid var(--rule); }
.essay .meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.essay h3 { font-size: clamp(22px, 2vw, 32px); line-height: 1.15; }
.essay .read { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: right; }
.essay:hover h3 { color: var(--ember); }
@media (max-width: 780px) {
  .essay { grid-template-columns: 1fr; gap: 8px; }
  .essay .read { text-align: left; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Subtle film grain over hero ---------- */
.grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Two-column editorial ---------- */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.editorial .col-label { position: sticky; top: 96px; }
@media (max-width: 880px) { .editorial { grid-template-columns: 1fr; } .editorial .col-label { position: static; } }

/* ---------- Contact form ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form .full { grid-column: span 2; }
.form label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form input, .form textarea, .form select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0 14px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  outline: none;
  resize: vertical;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ink); }
.form textarea { min-height: 120px; }
@media (max-width: 780px) { .form { grid-template-columns: 1fr; } .form .full { grid-column: span 1; } }

/* ---------- Big quote moment ---------- */
.big-quote {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(80px, 12vw, 180px) 0;
  position: relative;
  overflow: hidden;
}
.big-quote .wrap { max-width: 1180px; position: relative; z-index: 2; }
.big-quote .quote-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 780px) {
  .big-quote .quote-grid {
    grid-template-columns: 1fr;
  }
  .big-quote .quote-grid img {
    width: clamp(140px, 50vw, 240px) !important;
    margin: 0 auto;
  }
}
.big-quote .qmark {
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(140px, 28vw, 580px);
  line-height: 0.7;
  color: color-mix(in srgb, var(--bg) 7%, transparent);
  top: -20px;
  left: clamp(20px, 4vw, 56px);
  pointer-events: none;
  user-select: none;
}
.big-quote h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  max-width: 22ch;
}
.big-quote h2 .em { font-style: italic; color: var(--ember); }
.big-quote h2 .strike {
  position: relative;
  white-space: nowrap;
}
.big-quote h2 .strike::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 56%;
  height: 4px; background: var(--ember); transform: rotate(-2deg); border-radius: 2px;
}
.big-quote .qcite {
  margin-top: clamp(36px, 5vw, 60px);
  font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
}
.big-quote .qcite .sig {
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, 3vw, 26px);
  color: var(--bg); letter-spacing: -0.01em; text-transform: none;
  display: block; margin-bottom: 6px;
}

/* ---------- Full-bleed photo strip ---------- */
.bleed-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.bleed-strip .cell {
  background: var(--bg);
  min-height: clamp(280px, 38vw, 420px);
  position: relative;
  overflow: hidden;
}
.bleed-strip .cell .placeholder { position: absolute; inset: 0; border: 0; }
.bleed-strip .cell .caption {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 880px) { .bleed-strip { grid-template-columns: 1fr; } }

/* ---------- Section header (visual) ---------- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(40px, 6vw, 72px);
  align-items: end;
}
.sec-head .label-col { display: flex; align-items: center; gap: 14px; }
.sec-head .label-col .num {
  font-family: var(--serif); font-size: 56px; line-height: 1;
  color: var(--ember); letter-spacing: -0.02em;
}
.sec-head h2 { font-size: clamp(32px, 4vw, 60px); max-width: 18ch; }
@media (max-width: 780px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Ribbon ticker (decorative) ---------- */
.ribbon {
  background: var(--ember);
  color: var(--ink);
  padding: 18px 0;
  overflow: hidden;
}
.ribbon-track {
  display: flex; gap: 56px; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(20px, 2vw, 28px);
  font-style: italic; letter-spacing: -0.01em;
  animation: slide 44s linear infinite;
}
.ribbon-track span::before {
  content: "✦"; margin-right: 56px; color: var(--ink); font-style: normal; opacity: 0.6;
}

/* ---------- Misc ---------- */
.kbd {
  display: inline-block;
  font-family: var(--mono); font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--muted);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 14px;
}
.pill .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 0 0 var(--ember);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ember) 60%, transparent); }
  100% { box-shadow: 0 0 0 12px transparent; }
}

/* ---------- Global mobile safety ---------- */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

@media (max-width: 600px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero-meta { gap: 6px; font-size: 11px; }
  .btn { font-size: 13px; padding: 10px 18px; }
  .sec-head h2 { font-size: clamp(26px, 7vw, 40px); }
  .big-quote h2 { font-size: clamp(28px, 8vw, 52px); }
  footer .wrap > .top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  footer .wrap > .top { grid-template-columns: 1fr; }
  .jrail .step { padding: 18px; }
}
