/* =========================================================
   rishsec — shared styles for the newsletter (newsletter.html) and blog
   (blogs.html). Loaded after styles.css, which supplies the tokens,
   nav, buttons, eyebrow, mono labels and footer.
   ========================================================= */

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; }
.subhead { padding: 0 var(--gutter); }
.subhead .nav__links a.is-active { color: var(--text); }

.wrap { padding: 0 var(--gutter); }
.band { padding: clamp(64px, 9vw, 120px) var(--gutter); border-top: 1px solid var(--border); }
.band--panel { background: var(--panel-bg); color: var(--panel-text); border-top: 0; }
.band--panel .eyebrow, .band--panel .section__head p { color: var(--panel-faint); }

/* ---------- hero ---------- */
.sub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(70% 60% at 50% 120%, rgba(255, 74, 28, 0.16), rgba(255, 74, 28, 0) 60%);
}
.sub-hero__copy { min-width: 0; }
.sub-hero__title {
  margin: 22px 0 18px;
  font-size: clamp(64px, 10.5vw, 160px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.sub-hero__title em { font-style: normal; color: var(--ember); }
.sub-hero__title--sentence { text-transform: none; font-size: clamp(48px, 7vw, 104px); line-height: 0.95; }
.sub-hero__lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 18px; }
.sub-hero__p { font-size: 15px; line-height: 1.65; color: var(--text-2); max-width: 520px; }

/* ---------- subscribe ---------- */
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; max-width: 520px; }
.subscribe input {
  flex: 1 1 240px; min-width: 0; height: 48px; padding: 0 20px;
  font: inherit; font-size: 15px; color: var(--text);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border); border-radius: 999px; outline: none;
  transition: border-color .25s;
}
.subscribe input:focus { border-color: var(--text); }
.subscribe .btn { height: 48px; padding: 0 26px; }
.subscribe__note { margin-top: 12px; color: var(--text-3); min-height: 1.5em; }
.subscribe__note.ok { color: var(--text); }
.subscribe__note.ok::before { content: "● "; color: var(--ember); }
.subscribe__note.err { color: var(--ember); }
:where(.subscribe, .page) :focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
:root[data-theme="light"] :where(.subscribe, .page) :focus-visible { outline-color: var(--ink); }

/* ---------- sample issue (email preview) ---------- */
.dispatch {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
}
.dispatch__top { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); color: var(--text-3); }
.dispatch__mast { padding: 26px 22px 20px; border-bottom: 1px solid var(--border); }
.dispatch__name { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; text-transform: uppercase; line-height: 1; }
.dispatch__name em { font-style: normal; color: var(--ember); }
.dispatch__by { margin-top: 8px; color: var(--text-3); }
.dispatch__story { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.dispatch__story .mono { color: var(--ember); }
.dispatch__story h3 { margin: 8px 0 6px; font-size: 17px; letter-spacing: -0.01em; line-height: 1.25; }
.dispatch__story p { font-size: 13px; line-height: 1.55; color: var(--text-3); }
.dispatch__story--lead h3 { font-size: 21px; }
.dispatch__foot { display: flex; justify-content: space-between; padding: 14px 22px; color: var(--text-3); }
.dispatch__live { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.dispatch__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: var(--shadow-ember-glow, 0 0 12px rgba(255, 74, 28, 0.35)); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; }
.ticker__track { display: flex; width: max-content; gap: 34px; animation: tick 46s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 34px; color: var(--text-3); white-space: nowrap; }
.ticker__track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ember); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stats div { padding-top: 18px; border-top: 1px solid var(--panel-border); }
.stats strong { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.stats span { color: var(--panel-faint); }

/* ---------- two-column prose ---------- */
.prose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.prose p { font-size: 16px; line-height: 1.7; color: var(--panel-muted); }
.prose p strong { color: var(--panel-text); font-weight: 500; }

/* ---------- numbered list (issue contents) ---------- */
.rows { border-top: 1px solid var(--border); }
.row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(16px, 3vw, 40px); align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--border);
}
.row__n { color: var(--ember); }
.row h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; }
.row p { font-size: 14.5px; line-height: 1.65; color: var(--text-2); }

/* ---------- weekly schedule ---------- */
.schedule { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.schedule h2 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin: 14px 0 22px; }
.schedule__intro { font-size: 15px; line-height: 1.7; color: var(--text-2); max-width: 440px; }
.week { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.week li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--border); }
.week .mono { color: var(--text-3); }
.week b { font-weight: 400; font-size: 14.5px; color: var(--text-2); }
.week li:last-child { border-bottom-color: var(--ember); }
.week li:last-child b { color: var(--text); font-weight: 500; }
.week li:last-child .mono:last-child { color: var(--ember); }

/* ---------- author ---------- */
.author { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.author__photo { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 18px; overflow: hidden; background: var(--ink); }
.author__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: grayscale(1) contrast(1.35) brightness(0.74); }
.author__photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 115%, rgba(255, 74, 28, 0.22), transparent 60%); }
.author h2 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 500; letter-spacing: -0.03em; margin: 14px 0 8px; }
.author__role { color: var(--panel-faint); margin-bottom: 22px; }
.author p { font-size: 16px; line-height: 1.7; color: var(--panel-muted); max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips span { padding: 7px 12px; border: 1px solid var(--panel-border); border-radius: 999px; color: var(--panel-muted); }

/* ---------- cards (archive, blog, programmes) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 26px; border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface); color: var(--text);
  transition: border-color .4s var(--ease), translate .5s var(--ease);
}
a.card:hover { border-color: rgba(255, 74, 28, 0.6); translate: 0 -4px; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--text-3); }
.card__tag { color: var(--ember); }
.card h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
.card p { font-size: 14px; line-height: 1.6; color: var(--text-2); flex: 1; }
.card__foot { color: var(--text-3); padding-top: 14px; border-top: 1px solid var(--border); }
.card__price { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.card__price span { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
.card .btn { align-self: flex-start; }

/* ---------- closing CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(44px, 7vw, 104px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.92; text-transform: uppercase; margin: 18px auto 22px; max-width: 14ch; }
.cta h2 em { font-style: normal; color: var(--ember); }
.cta p { font-size: 15px; line-height: 1.65; color: var(--text-2); max-width: 520px; margin: 0 auto; }
.cta .subscribe { margin-left: auto; margin-right: auto; justify-content: center; }
.cta .subscribe__note { text-align: center; }

.feed-status { margin-top: 18px; color: var(--text-3); }

@media (max-width: 1023px) {
  .sub-hero, .schedule, .author { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 48px minmax(0, 1fr); }
  .row p { grid-column: 2; }
}
@media (max-width: 760px) {
  .subhead .nav__links:not(.nav__links--right) { display: none; }
  .subhead .nav { grid-template-columns: auto 1fr; }
  .subhead .nav__right { gap: 14px; }
  .subhead .nav__links--right { gap: 16px; }
  .cards, .cards--2, .stats, .prose { grid-template-columns: 1fr; }
  .week li { grid-template-columns: 80px minmax(0, 1fr); }
  .week li .mono:last-child { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track, .dispatch__live::before { animation: none; }
  a.card:hover { translate: none; }
}

/* ---------- policy pages ---------- */
.legal { max-width: 760px; width: 100%; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(72px, 9vw, 120px); }
.legal h1 { font-size: clamp(40px, 5.5vw, 72px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin: 18px 0 14px; }
.legal__date { color: var(--text-3); margin-bottom: 36px; }
.legal h2 { font-size: 22px; letter-spacing: -0.015em; margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--border); }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
.legal ul { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.legal li::marker { color: var(--ember); }
.legal b { color: var(--text); font-weight: 500; }
.legal a { color: var(--text); border-bottom: 1px solid var(--border); }
.legal a:hover { border-color: var(--ember); }
/* unfilled business decisions: impossible to miss before launch */
.todo { background: color-mix(in srgb, var(--ember) 18%, transparent); color: var(--text); border: 1px dashed var(--ember); border-radius: 4px; padding: 0 5px; font-style: normal; }

/* =========================================================
   Refinement pass: calmer scale, tighter rhythm, one hero moment.
   (Overrides the rules above; kept together so the scale lives in one place.)
   ========================================================= */
/* hero: faint blueprint grid fading out, ember glow behind the sample issue */
.sub-hero { position: relative; isolation: isolate; }
.sub-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 70% 40%, #000 0%, transparent 75%);
  opacity: .55;
}
.sub-hero__title { font-size: clamp(56px, 8vw, 120px); margin: 20px 0 16px; }
.sub-hero__title--sentence { font-size: clamp(44px, 6vw, 88px); }
.sub-hero__lede { font-size: clamp(17px, 1.4vw, 20px); }
.dispatch {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ember) 10%, transparent),
    0 50px 110px -50px rgba(255, 74, 28, 0.38),
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.dispatch__story h3 { font-weight: 500; }

/* section heads on these pages: label over headline, blurb to the right */
.band .section__head {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas: "eyebrow eyebrow" "title blurb";
  row-gap: 14px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.band .section__head .eyebrow { grid-area: eyebrow; padding-bottom: 0; }
.band .section__head h2 { grid-area: title; font-size: clamp(30px, 3.4vw, 48px); max-width: 16ch; text-wrap: balance; }
.band .section__head p { grid-area: blurb; justify-self: end; text-align: right; }

/* one scale for in-page headings */
.schedule h2, .author h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; }
.stats strong { font-size: clamp(30px, 3.2vw, 44px); }
.row { padding: 22px 0; }
.row h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; }
.card h3 { font-weight: 500; font-size: 18px; }

/* closing call to action: a calm card, not a poster */
.band.cta { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 112px); }
.cta__card {
  position: relative; overflow: hidden;
  max-width: 980px; margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--border); border-radius: 24px;
  background:
    radial-gradient(60% 90% at 50% 120%, rgba(255, 74, 28, 0.22), rgba(255, 74, 28, 0) 70%),
    var(--surface);
}
.cta h2 {
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-transform: none;
  max-width: 18ch;
  margin: 16px auto 18px;
  text-wrap: balance;
}
.cta p { font-size: 15px; }

/* the note under every signup is small print, wherever it sits */
p.subscribe__note { font-family: var(--font-mono); font-size: 11px; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); max-width: none; }

@media (max-width: 760px) {
  .band .section__head { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "blurb"; }
  .band .section__head p { justify-self: start; text-align: left; }
  .sub-hero::before { background-size: 44px 44px; }
}

/* =========================================================
   NEWSLETTER (newsletter.html) — built from the homepage's own components
   (.hero, .marquee, .section__head, .news/.post, .work/.case, .founder,
   .contact). Only the pieces the homepage doesn't have live here.
   ========================================================= */
.ai-plus { font-style: normal; color: var(--ember); }

/* review-style rows on a plain (non-panel) section: point the panel tokens at the page tokens */
.ai-plain {
  --panel-text: var(--text);
  --panel-muted: var(--text-2);
  --panel-faint: var(--text-3);
  --panel-border: var(--border);
  --panel-card: var(--hover);
}
.ai-plain .post { grid-template-columns: 220px minmax(0, 1fr) auto; }
.ai-plain .post .mono { color: var(--text-2); }
.ai-plain .post h3 { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.35; letter-spacing: -0.015em; }
.ai-plain .post h3 span { color: var(--text-3); }
.ai-plain .post__arrow { font-size: 24px; font-weight: 300; line-height: 1; transition: transform .4s var(--ease); }
.ai-plain .post:hover .post__arrow { transform: rotate(90deg); }

/* hero: subscribe pill in the intro column, sample issue where the orb sits */
.ai-sub {
  display: flex; align-items: center; gap: 6px;
  margin-top: 26px; padding: 5px 5px 5px 18px;
  border: 1px solid var(--border); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .3s;
}
.ai-sub:focus-within { border-color: var(--text-3); }
.ai-sub input {
  flex: 1; min-width: 0; height: 40px;
  font: inherit; font-size: 14px; color: var(--text);
  background: transparent; border: 0; outline: none;
}
.ai-sub input::placeholder { color: var(--text-3); }
.ai-sub .btn { flex: none; }
.ai-hero .subscribe__note { margin-top: 12px; font-size: 10px; }

.ai-stage {
  position: relative; z-index: 1;
  display: flex; justify-content: center;
  margin-top: clamp(8px, 2vh, 24px);
  min-height: clamp(320px, 44vh, 520px);
  perspective: 1400px;
  /* the issue rises out of the ember glow: fade its lower half into the hero */
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
}
/* the deck: three sample issues, shuffled by pages.js */
.ai-deck {
  position: relative;
  width: min(520px, 100%);
  height: clamp(320px, 44vh, 520px);
  align-self: flex-start;
}
.ai-card {
  --x: 0px; --y: 0px; --r: 0deg; --s: 1;
  position: absolute; top: 0; left: 0; width: 100%;
  transform-origin: 50% 0;
  transform: translate3d(var(--x), var(--y), 0) rotateX(14deg) rotate(var(--r)) scale(var(--s));
  transition: transform .95s var(--ease), opacity .95s var(--ease), box-shadow .6s;
  cursor: pointer;
  /* deal in on load (backwards fill only, so the shuffle transitions stay in charge afterwards) */
  animation: ai-deal 1.1s var(--ease) .2s backwards;
}
.ai-card .dispatch__mast { padding: 22px 22px 16px; }
.ai-card .dispatch__name { font-size: clamp(22px, 6.4vw, 30px); }
/* cards stay fully opaque (a see-through card mid-shuffle shows three issues at once);
   the rear ones are dimmed by a shade layer instead */
.ai-card::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  border-radius: inherit; background: var(--bg);
  opacity: 0; transition: opacity .95s var(--ease);
}
.ai-card[data-pos="0"] { z-index: 3; animation-delay: .38s; }
.ai-card[data-pos="1"] { z-index: 2; --x: -46px; --y: 18px; --r: -6deg; --s: .97; animation-delay: .2s; }
.ai-card[data-pos="2"] { z-index: 1; --x: 44px;  --y: 18px; --r: 5deg;  --s: .97; animation-delay: .28s; }
.ai-card[data-pos="1"]::after, .ai-card[data-pos="2"]::after { opacity: .55; }
.ai-card[data-pos="0"]:hover { box-shadow: 0 0 0 1px rgba(255, 74, 28, .45), 0 50px 110px -50px rgba(255, 74, 28, .5), 0 30px 60px -30px rgba(0, 0, 0, .6); }
/* the front issue sinks into the ember glow before tucking in at the back */
.ai-card.is-leaving {
  z-index: 0; opacity: 0;
  --x: 0px; --y: 110px; --r: 3deg; --s: .94;
  transition: transform .55s cubic-bezier(.55, 0, .75, .2), opacity .45s ease-in;
}
@keyframes ai-deal { from { opacity: 0; transform: translate3d(0, 60px, 0) rotateX(24deg); } }

/* first-issue cards: a quiet footer instead of stats */
.ai-case__foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--panel-border); color: var(--panel-faint);
}
.ai-soon { display: inline-flex; align-items: center; gap: 8px; color: var(--panel-text); }
.ai-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px rgba(255, 74, 28, .5); animation: blink 1.6s ease-in-out infinite; }

/* founder band: NEWS / LETTER is longer than RISH / SEC, so a touch smaller */
.ai-founder .founder__display { font-size: clamp(52px, 9.6vw, 160px); padding: 0 clamp(16px, 3vw, 64px); }
.ai-founder .founder__side { max-width: 210px; }

/* subscribe: homepage contact layout, form + how-it's-made list */
.ai-signup { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 56px); padding-top: 34px; }
.ai-signup .form input { font-size: 18px; }
.ai-signup .subscribe__note { margin-top: -6px; }
.ai-week { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.ai-week li {
  display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.ai-week .mono { color: var(--text-3); }
.ai-week b { font-weight: 400; font-size: 14px; color: var(--text-2); }
.ai-week li:last-child { border-bottom-color: var(--ember); }
.ai-week li:last-child b { color: var(--text); font-weight: 500; }
.ai-week li:last-child .mono:last-child { color: var(--ember); }

@media (max-width: 1180px) {
  .ai-hero .hero__caption { display: none; }
}
@media (max-width: 1024px) {
  .ai-plain .post { grid-template-columns: 180px minmax(0, 1fr) auto; }
}
@media (max-width: 760px) {
  .ai-plain .post { grid-template-columns: 1fr; gap: 8px; }
  /* phones: the portrait covers the middle, so set NEWS LETTER in one line over the shoulders */
  .ai-founder .founder__display {
    z-index: 4; font-size: clamp(40px, 13.5vw, 80px);
    justify-content: center; align-items: flex-end; gap: .22em;
    padding: 0 0 clamp(96px, 26vw, 130px);
  }
  .ai-stage { min-height: 360px; margin-top: 28px; }
  .ai-card[data-pos="1"] { --x: -14px; --r: -4deg; }
  .ai-card[data-pos="2"] { --x: 14px; --r: 3deg; }
  .ai-deck { height: 360px; }
  /* the sample issue fills the hero here: keep the scroll hint and Share off it */
  .ai-hero .hero__scroll, .ai-hero .hero__share { display: none; }
  .ai-sub { padding-left: 14px; }
  .ai-sub .btn { padding-left: 16px; padding-right: 16px; }
  .ai-week li { grid-template-columns: 84px minmax(0, 1fr); }
  .ai-week li .mono:last-child:not(:first-child) { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-card { animation: none; transition: none; }
  .ai-soon::before { animation: none; }
}

/* =========================================================
   BLOG — homepage components (.hero, .marquee, .work/.case, .plans,
   .contact) plus the featured-article card in the hero
   ========================================================= */
.bl-hero { min-height: auto; grid-template-rows: auto auto auto auto; padding-bottom: clamp(56px, 8vw, 104px); }
.bl-stage { position: relative; z-index: 2; margin-top: clamp(36px, 6vh, 64px); }
.bl-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "meta meta" "title excerpt" "title cta";
  column-gap: clamp(28px, 5vw, 80px); row-gap: 18px;
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--border); border-radius: 22px;
  background:
    radial-gradient(70% 120% at 0% 120%, rgba(255, 74, 28, 0.18), rgba(255, 74, 28, 0) 60%),
    color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 50px 110px -60px rgba(255, 74, 28, 0.45);
  transition: border-color .4s, translate .5s var(--ease);
  animation: bl-in .9s var(--ease) .35s both;
}
.bl-feature:hover { border-color: rgba(255, 74, 28, .6); translate: 0 -4px; }
.bl-feature__meta { grid-area: meta; display: flex; justify-content: space-between; gap: 12px; color: var(--text-3); padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.bl-feature__tag { color: var(--ember); }
.bl-feature__title { grid-area: title; font-size: clamp(26px, 3.2vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.bl-feature__excerpt { grid-area: excerpt; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.bl-feature__cta { grid-area: cta; align-self: end; color: var(--text); }
.bl-feature:hover .bl-feature__cta { color: var(--ember); }

/* article cards: the homepage .case, as links; fade in when the feed renders */
.bl-case { color: inherit; animation: bl-in .7s var(--ease) both; }
@keyframes bl-in { from { opacity: 0; transform: translateY(24px); } }
.bl-case:nth-child(3n+2) { animation-delay: .06s; }
.bl-case:nth-child(3n+3) { animation-delay: .12s; }
.bl-case .case__meta { margin-bottom: 28px; }
.bl-case h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; }
.bl-tag { color: var(--ember); }
.bl-read { color: var(--panel-text); transition: color .3s; }
.bl-case:hover .bl-read { color: var(--ember); }

.bl-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bl-form { padding-top: 34px; }
.bl-form input { font-size: 18px; }

@media (max-width: 900px) {
  .bl-feature { grid-template-columns: 1fr; grid-template-areas: "meta" "title" "excerpt" "cta"; }
}
@media (max-width: 760px) {
  .bl-plans { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-feature, .bl-case { animation: none; }
  .bl-feature:hover { translate: none; }
}
