/*
 * newsletter-page.css — "The SV Letter" (/newsletter).
 *
 * Layout matches the approved mockup 1:1 (full-bleed editorial hero, segmented
 * icon tabs, hairline email form, isometric gold signup illustration); the
 * MATERIALS follow the site-wide luxury-glass finish layer (see
 * assets/luxury-glass.css): coffee translucency with backdrop frost, gradient
 * gold hairlines, inset top light + ambient shadows and a one-pass sheen on
 * the gold controls. Tokens mirror --lg-* so the page reads as the same
 * material family as the homepage. Every rule is scoped to
 * body.newsletter-page.
 */

/* Tokens --------------------------------------------------------------- */
body.newsletter-page {
  --nl-bg: oklch(17% 0.015 50);
  --nl-card: oklch(21% 0.018 50);
  --nl-wood: oklch(22% 0.035 50);
  --nl-fg: oklch(95% 0.02 85);
  --nl-muted: oklch(72% 0.03 75);
  --nl-gold: oklch(80% 0.11 82);
  --nl-gold-bright: oklch(93% 0.085 88);
  --nl-gold-deep: oklch(66% 0.1 68);
  --nl-gold-ink: oklch(18% 0.02 50);
  --nl-line: oklch(80% 0.11 82 / 22%);
  --nl-foil: linear-gradient(120deg, oklch(70% 0.1 70), oklch(92% 0.09 90), oklch(70% 0.11 68));
  /* Gold-foil control finish: champagne top light settling into deep gold. */
  --nl-gold-foil: linear-gradient(180deg,
      oklch(87% 0.102 85) 0%,
      oklch(81% 0.112 82) 46%,
      oklch(74% 0.112 75) 100%);
  --nl-sheen: linear-gradient(108deg,
      transparent 30%,
      oklch(95% 0.03 85 / 0.16) 46%,
      oklch(86% 0.08 82 / 0.09) 53%,
      transparent 70%);
  /* Ambient warmth behind the frosted bands, same recipe as the homepage. */
  background:
    radial-gradient(1100px 720px at 82% -8%, oklch(55% 0.095 74 / 0.15), transparent 60%),
    radial-gradient(900px 980px at 4% 34%, oklch(44% 0.085 54 / 0.12), transparent 62%),
    radial-gradient(1000px 880px at 97% 64%, oklch(56% 0.105 84 / 0.13), transparent 60%),
    radial-gradient(820px 600px at 30% 106%, oklch(48% 0.09 62 / 0.1), transparent 62%),
    var(--nl-bg);
  background-attachment: fixed;
  color: var(--nl-fg);
  font-family: Jost, Arial, sans-serif;
}

/* The shell's sticky frosted header (public-page-shell.css + the site-wide
   luxury-glass finish layer) rides over the hero exactly as on the homepage;
   this page adds no header override of its own. */

/* The shell derives breadcrumb data from the BreadcrumbList JSON-LD, which we
   keep for SEO; the mockup hero shows no breadcrumb trail. */
body.newsletter-page .public-breadcrumbs { display: none; }

body.newsletter-page .nl-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.newsletter-page .nl-container {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: 24px;
}

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

body.newsletter-page h1,
body.newsletter-page h2,
body.newsletter-page h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  color: var(--nl-fg);
  letter-spacing: -0.01em;
}

body.newsletter-page .nl-kicker {
  margin: 0;
  color: var(--nl-gold);
  font: 400 12px/1.6 "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 18px oklch(80% 0.11 82 / 0.28);
}

/* Gold foil italic words in the display headings. */
body.newsletter-page .nl-foil {
  font-style: italic;
  background: var(--nl-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 22px oklch(78% 0.11 80 / 0.22));
}

/* The mockup sets the foil half of each section h2 on its own line. */
body.newsletter-page .nl-inside h2 .nl-foil,
body.newsletter-page .nl-join h2 .nl-foil { display: block; }

body.newsletter-page .nl-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

/* Gold-foil control (mockup geometry: sentence case, 48px, radius 10 — not a
   giant pill — finished with the home hero's layered gold + sweep). -------- */

body.newsletter-page .nl-button,
body.newsletter-page .nl-tab.is-selected {
  position: relative;
  overflow: hidden;
}
body.newsletter-page .nl-button::after,
body.newsletter-page .nl-tab.is-selected::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--nl-sheen);
  transform: translateX(-120%);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.newsletter-page .nl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 8px 24px;
  border: 0;
  border-radius: 10px;
  background: var(--nl-gold);
  color: var(--nl-gold-ink);
  font: 500 14px/1.4 Jost, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 oklch(96% 0.045 85 / 0.42),
    inset 0 -1px 0 oklch(30% 0.1 30 / 0.35),
    0 16px 36px -18px oklch(55% 0.16 42 / 0.78),
    0 3px 10px -3px oklch(0 0 0 / 0.45);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}
/* Layered champagne-to-gold foil (kept in a follow-up rule so the flat token
   remains the declared base). */
body.newsletter-page .nl-form .nl-button,
body.newsletter-page .nl-hero-cta .nl-button { background: var(--nl-gold-foil); }

body.newsletter-page .nl-button .nl-icon { width: 20px; height: 20px; }

body.newsletter-page .nl-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 oklch(96% 0.045 85 / 0.5),
    inset 0 -1px 0 oklch(30% 0.1 30 / 0.35),
    0 22px 44px -18px oklch(55% 0.16 42 / 0.85),
    0 4px 12px -3px oklch(0 0 0 / 0.45);
}
body.newsletter-page .nl-button:hover::after,
body.newsletter-page .nl-tab.is-selected:hover::after { transform: translateX(120%); }
body.newsletter-page .nl-button:active { transform: translateY(0); }

body.newsletter-page :is(.nl-button, .nl-tab, .nl-text-link, .nl-form input):focus-visible {
  outline: 2px solid var(--nl-gold);
  outline-offset: 3px;
}

/* Section 1 — full-bleed hero ------------------------------------------ */

body.newsletter-page .nl-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 118px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

body.newsletter-page .nl-hero-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  animation: nl-hero-zoom 28s ease-in-out infinite alternate;
}
@keyframes nl-hero-zoom {
  from { transform: scale(1.01); }
  to { transform: scale(1.07); }
}

body.newsletter-page .nl-hero-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg,
      rgb(23 20 17 / 0.9),
      rgb(23 20 17 / 0.75) 38%,
      rgb(23 20 17 / 0.08) 75%);
}

/* Cinematic depth: a soft dissolve into the band below, an edge vignette and
   a warm lamp bloom over the desk — the home hero's layering vocabulary. */
body.newsletter-page .nl-hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 440px at 88% 6%, oklch(62% 0.1 78 / 0.16), transparent 70%),
    linear-gradient(to top,
      oklch(17% 0.015 50 / 0.62) 0%,
      oklch(17% 0.015 50 / 0.08) 34%,
      transparent 52%),
    radial-gradient(125% 95% at 30% 42%, transparent 52%, oklch(10% 0.008 6 / 0.42) 100%);
}

body.newsletter-page .nl-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
}

body.newsletter-page .nl-hero-copy {
  position: relative;
  max-width: 400px;
}

/* Frosted-glass text plate behind the hero copy: coffee frost, gold hairline
   ring and a soft inner top light. backdrop-filter blurs to the hard edge of
   its box, so the whole plate is masked out toward the photograph — frost
   pools behind the words and dissolves into the desk on the right. */
body.newsletter-page .nl-hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -38px -120px -30px -40px;
  border-radius: 22px;
  pointer-events: none;
  background: linear-gradient(100deg,
      oklch(19% 0.016 49 / 0.74) 0%,
      oklch(19% 0.016 49 / 0.44) 52%,
      oklch(19% 0.016 49 / 0.1) 74%,
      oklch(19% 0.016 49 / 0) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(138%);
  backdrop-filter: blur(14px) saturate(138%);
  -webkit-mask: linear-gradient(90deg, #000 0%, #000 58%, transparent 86%);
  mask: linear-gradient(90deg, #000 0%, #000 58%, transparent 86%);
  box-shadow:
    inset 0 1px 0 oklch(97% 0.03 88 / 0.14),
    inset 0 30px 60px -42px oklch(86% 0.09 86 / 0.28),
    inset 0 0 0 1px oklch(80% 0.11 82 / 0.12),
    0 30px 70px -42px oklch(0 0 0 / 0.8);
}

body.newsletter-page .nl-kicker-rule {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.newsletter-page .nl-kicker-rule-line {
  flex: 0 0 24px;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--nl-gold-bright), var(--nl-gold));
  box-shadow: 0 0 12px oklch(80% 0.11 82 / 0.5);
}

body.newsletter-page .nl-hero h1 {
  margin-top: 28px;
  font-size: clamp(56px, 7.2vw, 96px);
  line-height: 0.95;
  /* The display title runs wider than the 400px copy column in the mockup;
     cap to the viewport instead so it naturally wraps on phones. */
  width: max-content;
  max-width: calc(100vw - 48px);
  text-shadow: 0 4px 34px oklch(0 0 0 / 0.5);
}

body.newsletter-page .nl-subtitle {
  margin: 28px 0 0;
  max-width: 384px;
  color: var(--nl-fg);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 30px;
  line-height: 1.25;
  text-shadow: 0 2px 20px oklch(0 0 0 / 0.45);
}

body.newsletter-page .nl-subtitle span { display: block; }

body.newsletter-page .nl-lede {
  margin: 20px 0 0;
  max-width: 384px;
  color: var(--nl-muted);
  font-size: 16px;
  line-height: 1.625;
  text-shadow: 0 1px 12px oklch(0 0 0 / 0.5);
}

body.newsletter-page .nl-hero-cta { margin: 28px 0 0; }

body.newsletter-page .nl-tags {
  margin: 22px 0 0;
  color: var(--nl-gold);
  font: 400 10px/1.6 "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 16px oklch(80% 0.11 82 / 0.3);
}

/* Section 2 — tagline band: frosted strip with lit gold edges ---------- */

body.newsletter-page .nl-band-statement {
  position: relative;
  border: 0;
  background: linear-gradient(180deg,
      oklch(28% 0.03 52 / 0.52),
      oklch(20% 0.024 50 / 0.62));
  -webkit-backdrop-filter: blur(14px) saturate(138%);
  backdrop-filter: blur(14px) saturate(138%);
  box-shadow:
    inset 0 1px 0 oklch(97% 0.03 88 / 0.12),
    inset 0 18px 36px -28px oklch(86% 0.09 86 / 0.3);
}

body.newsletter-page .nl-band-statement::before,
body.newsletter-page .nl-band-statement::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
}
body.newsletter-page .nl-band-statement::before {
  top: 0;
  background: linear-gradient(90deg, transparent, oklch(93% 0.085 88 / 0.5), transparent);
}
body.newsletter-page .nl-band-statement::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent, oklch(80% 0.11 82 / 0.34), transparent);
}

body.newsletter-page .nl-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 24px;
}

body.newsletter-page .nl-band-line {
  margin: 0;
  color: var(--nl-gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.3;
  text-shadow: 0 0 22px oklch(80% 0.11 82 / 0.25);
}

body.newsletter-page .nl-band-sub {
  margin: 0;
  color: var(--nl-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Section 3 — inside the letter ---------------------------------------- */

body.newsletter-page .nl-inside { padding: 96px 0; }

body.newsletter-page .nl-inside-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
}

body.newsletter-page .nl-inside-head .nl-kicker { margin-bottom: 20px; }

body.newsletter-page .nl-kicker-num { margin-right: 6px; }

body.newsletter-page .nl-inside h2 {
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1;
  text-shadow: 0 2px 26px oklch(0 0 0 / 0.4);
}

body.newsletter-page .nl-standfirst {
  margin: 0;
  color: var(--nl-muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 460px;
  justify-self: end;
}

/* Segmented 3-column tab buttons over one shared lit-gold hairline. */
body.newsletter-page .nl-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 48px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nl-line);
}
/* Bright centre, fading ends — the site's gradient edge-light. */
body.newsletter-page .nl-tabs::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
      transparent,
      oklch(80% 0.11 82 / 0.18) 16%,
      oklch(93% 0.085 88 / 0.4) 50%,
      oklch(80% 0.11 82 / 0.18) 84%,
      transparent);
}

body.newsletter-page .nl-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg,
      oklch(34% 0.028 51 / 0.42),
      oklch(22% 0.02 48 / 0.5));
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
  color: var(--nl-fg);
  font: 500 14px/1.4 Jost, Arial, sans-serif;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px oklch(80% 0.11 82 / 0.16),
    inset 0 1px 0 oklch(95% 0.02 85 / 0.08),
    0 10px 26px -20px oklch(0 0 0 / 0.7);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

body.newsletter-page .nl-tab:hover {
  color: var(--nl-gold-bright);
  box-shadow:
    inset 0 0 0 1px oklch(80% 0.11 82 / 0.34),
    inset 0 1px 0 oklch(95% 0.02 85 / 0.12),
    0 12px 28px -20px oklch(0 0 0 / 0.75);
}

body.newsletter-page .nl-tab.is-selected {
  background: var(--nl-gold);
  color: var(--nl-gold-ink);
  box-shadow:
    inset 0 1px 0 oklch(96% 0.045 85 / 0.42),
    inset 0 -1px 0 oklch(30% 0.1 30 / 0.3),
    0 16px 34px -18px oklch(55% 0.16 42 / 0.7),
    0 3px 10px -3px oklch(0 0 0 / 0.4);
}
body.newsletter-page .nl-tabs .nl-tab.is-selected { background: var(--nl-gold-foil); }

body.newsletter-page .nl-tab.is-selected:hover { color: var(--nl-gold-ink); }

body.newsletter-page .nl-panels { margin-top: 40px; }

body.newsletter-page .nl-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

body.newsletter-page .nl-panel[hidden] { display: none; }

body.newsletter-page .nl-panel-left { max-width: 480px; }

body.newsletter-page .nl-panel h3 {
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 18px;
}

body.newsletter-page .nl-panel-body {
  margin: 0 0 28px;
  color: var(--nl-muted);
  font-size: 16px;
  line-height: 1.625;
}

body.newsletter-page .nl-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nl-gold);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

body.newsletter-page .nl-text-link .nl-icon { width: 18px; height: 18px; }
body.newsletter-page .nl-text-link:hover {
  color: oklch(88% 0.09 88);
  text-shadow: 0 0 18px oklch(80% 0.11 82 / 0.45);
}

body.newsletter-page .nl-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid oklch(80% 0.11 82 / 0.18);
}

body.newsletter-page .nl-topic-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid oklch(80% 0.11 82 / 0.14);
}

body.newsletter-page .nl-topic-num {
  flex: 0 0 auto;
  color: var(--nl-gold);
  font: 400 12px/1.6 "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  text-shadow: 0 0 14px oklch(80% 0.11 82 / 0.35);
}

body.newsletter-page .nl-topic-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--nl-fg);
}

/* Section 4 — signup: full-bleed frosted glass card ------------------- */

body.newsletter-page .nl-join {
  position: relative;
  background: linear-gradient(155deg,
      oklch(31% 0.029 54 / 0.5),
      oklch(21% 0.021 51 / 0.38) 52%,
      oklch(14% 0.015 48 / 0.52));
  -webkit-backdrop-filter: blur(22px) saturate(148%);
  backdrop-filter: blur(22px) saturate(148%);
  box-shadow:
    inset 0 1px 0 oklch(97% 0.03 88 / 0.17),
    inset 0 30px 58px -36px oklch(86% 0.09 86 / 0.3),
    inset 0 -44px 74px -52px oklch(0 0 0 / 0.85),
    0 2px 10px -2px oklch(0 0 0 / 0.4),
    0 46px 98px -42px oklch(8% 0.03 50 / 0.9);
  scroll-margin-top: 96px;
  overflow: hidden;
}

/* Bright centre hairline on the top edge; the warm corner bloom sits below. */
body.newsletter-page .nl-join::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, oklch(93% 0.085 88 / 0.5), transparent);
}
body.newsletter-page .nl-join::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 420px at 96% 100%, oklch(64% 0.11 82 / 0.18), transparent 70%),
    radial-gradient(420px 300px at 4% 0%, oklch(56% 0.09 72 / 0.08), transparent 72%);
}
body.newsletter-page .nl-join > .nl-container { position: relative; z-index: 2; }

body.newsletter-page .nl-signup-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-block: 96px;
}

body.newsletter-page .nl-signup-copy .nl-kicker { margin-bottom: 20px; }

body.newsletter-page .nl-join h2 {
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.25;
}

body.newsletter-page .nl-join-lede {
  margin: 22px 0 0;
  max-width: 512px;
  color: var(--nl-muted);
  font-size: 16px;
  line-height: 1.5;
}

body.newsletter-page .nl-form { margin-top: 36px; }

body.newsletter-page .nl-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--nl-fg);
  font-size: 14px;
  line-height: 1.4;
}

body.newsletter-page .nl-form-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

body.newsletter-page .nl-input-wrap {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid oklch(80% 0.11 82 / 0.3);
}

/* Gold underline ignites along the field when the form is focused. */
body.newsletter-page .nl-input-wrap::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--nl-gold-bright), var(--nl-gold));
  box-shadow: 0 0 14px oklch(80% 0.11 82 / 0.45);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.35s ease;
}
body.newsletter-page .nl-form-row:focus-within .nl-input-wrap::after { transform: scaleX(1); }

body.newsletter-page .nl-input-wrap .nl-icon-mail {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--nl-gold);
  filter: drop-shadow(0 0 8px oklch(80% 0.11 82 / 0.4));
}

body.newsletter-page .nl-form input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--nl-fg);
  font: 400 16px/1.5 Jost, Arial, sans-serif;
}

body.newsletter-page .nl-form input::placeholder { color: var(--nl-muted); opacity: 1; }

body.newsletter-page .nl-form button { flex: 0 0 auto; }

body.newsletter-page .nl-form-note {
  margin: 14px 0 0;
  color: var(--nl-muted);
  font-size: 12px;
  line-height: 1.6;
}

body.newsletter-page .nl-form-status {
  margin: 14px 0 0;
  color: oklch(88% 0.09 88);
  font-size: 13px;
  line-height: 1.6;
}

body.newsletter-page .nl-form-status[data-error="true"] { color: #ffb6a6; }

/* Inline isometric illustration with a warm gold bloom behind the line art. */
body.newsletter-page .nl-illo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
body.newsletter-page .nl-illo::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 720 / 460;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, oklch(72% 0.11 80 / 0.16), transparent 72%);
  filter: blur(8px);
}

body.newsletter-page .nl-illo svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  filter: drop-shadow(0 24px 44px oklch(0 0 0 / 0.4));
}

/* Section 5 — note before you join ------------------------------------- */

body.newsletter-page .nl-note { padding: 64px 0; }

body.newsletter-page .nl-note-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 32px;
}

body.newsletter-page .nl-note-grid > .nl-kicker { padding-top: 6px; }

body.newsletter-page .nl-note h3 {
  font-size: 24px;
  line-height: 1.33;
  margin-bottom: 14px;
}

body.newsletter-page .nl-note p {
  margin: 0 0 16px;
  color: var(--nl-muted);
  font-size: 16px;
  line-height: 1.6;
}

body.newsletter-page .nl-note-col p:last-child { margin-bottom: 18px; }

/* Entrance reveals (only while JS + motion enable them) ---------------- */

html.nl-animate body.newsletter-page .nl-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.nl-animate body.newsletter-page .nl-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* No-backdrop-filter fallback: opaque coffee surfaces keep legibility. -- */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  body.newsletter-page .nl-hero-copy::before {
    background: linear-gradient(100deg, oklch(19% 0.016 49 / 0.94) 0%, oklch(19% 0.016 49 / 0.72) 68%, transparent 100%);
  }
  body.newsletter-page .nl-band-statement { background: linear-gradient(180deg, oklch(26% 0.028 51), oklch(20% 0.022 49)); }
  body.newsletter-page .nl-tab { background: oklch(25% 0.022 49); }
  body.newsletter-page .nl-join {
    background: linear-gradient(155deg, oklch(27% 0.026 51), oklch(20% 0.02 49) 55%, oklch(17% 0.017 48));
  }
}

/* RTL ------------------------------------------------------------------ */

[dir="rtl"] body.newsletter-page .nl-icon-dir { transform: scaleX(-1); }
[dir="rtl"] body.newsletter-page .nl-hero-shade {
  background: linear-gradient(270deg,
      rgb(23 20 17 / 0.9),
      rgb(23 20 17 / 0.75) 38%,
      rgb(23 20 17 / 0.08) 75%);
}
[dir="rtl"] body.newsletter-page .nl-hero-bg { object-position: left center; }
[dir="rtl"] body.newsletter-page .nl-standfirst { justify-self: start; }
[dir="rtl"] body.newsletter-page .nl-hero-copy::before {
  background: linear-gradient(260deg,
      oklch(19% 0.016 49 / 0.74) 0%,
      oklch(19% 0.016 49 / 0.44) 52%,
      oklch(19% 0.016 49 / 0.1) 74%,
      oklch(19% 0.016 49 / 0) 100%);
  -webkit-mask: linear-gradient(270deg, #000 0%, #000 58%, transparent 86%);
  mask: linear-gradient(270deg, #000 0%, #000 58%, transparent 86%);
}
[dir="rtl"] body.newsletter-page .nl-button::after,
[dir="rtl"] body.newsletter-page .nl-tab.is-selected::after { transform: translateX(120%); }
[dir="rtl"] body.newsletter-page .nl-button:hover::after,
[dir="rtl"] body.newsletter-page .nl-tab.is-selected:hover::after { transform: translateX(-120%); }

/* Bengali metrics — Latin display faces and tracked Latin caps do not
   apply; relax the tight leading/wide tracking for the Bengali system face. */
html[lang="bn"] body.newsletter-page h1 { font-size: clamp(44px, 9vw, 80px); line-height: 1.22; letter-spacing: 0; }
html[lang="bn"] body.newsletter-page h2 { line-height: 1.22; letter-spacing: 0; }
html[lang="bn"] body.newsletter-page h3 { line-height: 1.32; letter-spacing: 0; }
html[lang="bn"] body.newsletter-page .nl-kicker,
html[lang="bn"] body.newsletter-page .nl-tab,
html[lang="bn"] body.newsletter-page .nl-button,
html[lang="bn"] body.newsletter-page .nl-text-link,
html[lang="bn"] body.newsletter-page .nl-tags,
html[lang="bn"] body.newsletter-page .nl-form label { letter-spacing: 0.04em; }
html[lang="bn"] body.newsletter-page .nl-button,
html[lang="bn"] body.newsletter-page .nl-tab { line-height: 1.4; }

/* Responsive ----------------------------------------------------------- */

@media (min-width: 768px) {
  body.newsletter-page .nl-hero { min-height: 590px; }
}

@media (max-width: 980px) {
  body.newsletter-page .nl-signup-grid { grid-template-columns: 1fr; gap: 48px; }
  body.newsletter-page .nl-illo { order: -1; max-width: 460px; margin-inline: auto; }
  body.newsletter-page .nl-illo svg { max-height: 340px; }
}

@media (max-width: 860px) {
  body.newsletter-page .nl-inside-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  body.newsletter-page .nl-standfirst { justify-self: stretch; max-width: 560px; }
  body.newsletter-page .nl-panel { grid-template-columns: 1fr; gap: 32px; }
  body.newsletter-page .nl-note-grid { grid-template-columns: 1fr; gap: 24px; }
  body.newsletter-page .nl-note-grid > .nl-kicker { padding-top: 0; }
}

@media (max-width: 700px) {
  body.newsletter-page .nl-hero { min-height: 0; padding: 104px 0 56px; }
  body.newsletter-page .nl-hero-bg { object-position: 62% center; }
  body.newsletter-page .nl-hero-copy::before { inset: -24px -28px -20px; border-radius: 18px; }
  body.newsletter-page .nl-inside { padding: 64px 0; }
  body.newsletter-page .nl-signup-grid { padding-block: 64px; }
  /* The segmented row becomes a horizontal swipe rail at phone width. */
  body.newsletter-page .nl-tabs {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -20px;
    padding: 0 20px 12px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  body.newsletter-page .nl-tab { flex: 0 0 auto; }
  body.newsletter-page .nl-form-row { flex-direction: column; align-items: stretch; gap: 18px; }
  body.newsletter-page .nl-form button { width: 100%; }
  body.newsletter-page .nl-note { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html.nl-animate body.newsletter-page .nl-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  body.newsletter-page .nl-button,
  body.newsletter-page .nl-tab,
  body.newsletter-page .nl-text-link,
  body.newsletter-page .nl-input-wrap::after { transition: none; }
  body.newsletter-page .nl-button:hover,
  body.newsletter-page .nl-tab:hover { transform: none; }
  body.newsletter-page .nl-button::after,
  body.newsletter-page .nl-tab.is-selected::after { display: none; }
  body.newsletter-page .nl-hero-bg { animation: none !important; transform: none; }
  /* The illustration's one-shot entrance animations stay at their calm
     final state (flying envelopes are invisible by default). */
  body.newsletter-page .nl-illo [class*="fm"],
  body.newsletter-page .nl-illo .bounce,
  body.newsletter-page .nl-illo .labb { animation: none !important; }
}
