/* ==========================================================================
   CherAmi Digital — shared styles
   ========================================================================== */

:root {
  --red: #E63329;
  --red-deep: #B8231B;
  --bg: #F2F0EC;
  --bg-alt: #EAE7E1;
  --ink: #111111;
  --ink-2: #2A2A2A;
  --muted: #6B6B6B;
  --rule: rgba(17, 17, 17, 0.12);
  --charcoal: #232322;
  --charcoal-2: #1A1A19;

  --wrap: 1360px;
  --pad-x: clamp(20px, 4vw, 64px);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Archivo Narrow", "Helvetica Neue", Impact, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Layout primitives --------------------------------------------------------*/
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
  font-weight: 500;
}
.eyebrow::before { content: "/ "; opacity: 0.7; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
  margin: 0;
}

h1.display { font-size: clamp(48px, 7vw, 104px); }
h2.display { font-size: clamp(36px, 5vw, 72px); line-height: 0.95; }
h3.display { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: 0.01em; }

/* Nav ----------------------------------------------------------------------*/
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.nav--solid {
  position: sticky;
  background: var(--bg);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav__logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
}
.nav__logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav__logo-text {
  display: flex; flex-direction: column; line-height: 1;
}
.nav__logo-text strong { font-size: 18px; letter-spacing: 0.02em; }
.nav__logo-text span  { font-size: 10px; letter-spacing: 0.24em; opacity: 0.85; }

.nav__links {
  display: flex; gap: 34px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav__links a {
  text-decoration: none;
  color: inherit;
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%;
  bottom: 0; height: 1.5px; background: currentColor;
  transition: right .35s ease;
}
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }

.nav__end {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__social { display: flex; gap: 14px; align-items: center; }
.nav__social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.9;
  transition: background .2s, color .2s;
}
.nav__social a:hover {
  background: currentColor;
}
.nav__social a:hover svg { color: var(--red); }
.nav__social a svg { width: 14px; height: 14px; }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.nav__toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
}
.nav__toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav.is-open .nav__toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav__toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(0, 0, 0, 0.45);
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 720px) {
  .nav {
    padding: max(18px, env(safe-area-inset-top)) var(--pad-x) 18px;
  }
  .nav__logo {
    margin-right: auto;
  }
  .nav__toggle {
    display: inline-flex;
    border-radius: 999px;
  }
  .nav__social a {
    width: 44px;
    height: 44px;
  }
  .nav__links {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(58px + env(safe-area-inset-top));
    bottom: 0;
    z-index: 45;
    padding: 8px var(--pad-x) max(24px, env(safe-area-inset-bottom));
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(26, 26, 26, 0.98);
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open .nav__links {
    display: flex;
  }
  .nav.is-open + .nav__backdrop {
    display: block;
    top: calc(58px + env(safe-area-inset-top));
  }
  .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 16px;
  }
  .nav__links a::after {
    display: none;
  }
  .nav__links a.is-active {
    color: var(--red);
  }
}

/* Buttons ------------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translate(3px, -3px); }

.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn--ghost:hover { background: currentColor; color: var(--bg); }

/* Hero ---------------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  /* Override global `section` vertical padding — that padding was shrinking the
     flex area and left the headline visually centered in the viewport. */
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-image: url('assets/hero-clean.png');
  transform: scale(1.06);
  transition: transform 10s ease-out;
  z-index: -2;
}
.hero.is-ready .hero__bg { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.62) 100%);
  z-index: -1;
}

.hero__inner {
  width: 100%;
  /* Bottom-weighted hero: avoid tall top padding or the whole block grows upward
     and covers the photo’s focal area. */
  padding-bottom: clamp(72px, 10vw, 132px);
  padding-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
h1.hero__title {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 0.92;
}
.hero__title .word {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}
.hero__title .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: heroRise 1s cubic-bezier(.2,.7,.2,1) forwards;
}
/* Middle row: longest line + slightly larger type (visual peak of the stack). */
.hero__title .word--lead {
  font-size: clamp(32px, 4.25vw, 72px);
  line-height: 0.9;
}
.hero__title .word:nth-child(2) > span { animation-delay: .12s; }
.hero__title .word:nth-child(3) > span { animation-delay: .24s; }

@keyframes heroRise { to { transform: translateY(0); } }

.hero__side {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: min(100%, 360px);
  margin-left: auto;
  padding: clamp(14px, 2vw, 20px) clamp(18px, 3vw, 26px);
  border-radius: 6px;
  opacity: 0;
  animation: fadeIn 1s .6s ease-out forwards;
}
/* Frosted panel: blurs the hero photo behind the intro copy for legibility. */
.hero__side::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  z-index: 0;
  pointer-events: none;
}
.hero__side > * {
  position: relative;
  z-index: 1;
}
.hero__side p { margin: 0; font-size: 14px; line-height: 1.55; opacity: 0.95; }

.hero__scroll {
  position: absolute; bottom: 28px; left: var(--pad-x);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0; animation: fadeIn 1s 1s ease-out forwards;
  display: flex; align-items: center; gap: 10px;
}
.hero__scroll::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleX(1); transform-origin: left; }
  50% { transform: scaleX(0.4); transform-origin: left; }
}
@keyframes fadeIn { to { opacity: 1; } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 24px; padding-top: 0; }
  h1.hero__title { font-size: clamp(26px, 7.2vw, 40px); }
  .hero__title .word--lead { font-size: clamp(30px, 8.4vw, 48px); }
  .hero__side { max-width: none; margin-left: 0; }
  .hero__scroll { display: none; }
}

@media (max-width: 768px) {
  .hero__bg { background-position: 20% center; }
}

@media (max-width: 420px) {
  h1.hero__title { font-size: clamp(20px, 5.2vw, 28px); }
  .hero__title .word--lead { font-size: clamp(24px, 6.2vw, 34px); }
}

/* Sections -----------------------------------------------------------------*/
section { padding: clamp(72px, 10vw, 140px) 0; }
.section--alt { background: var(--bg-alt); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: clamp(40px, 5vw, 72px);
  align-items: start;
}
/* One-column heads (e.g. objectives): use full wrap width instead of the narrow 1fr track. */
.section-head > div:only-child {
  grid-column: 1 / -1;
  max-width: 100%;
}
.section-head .body {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 16px;
}
.section-head .body p { margin: 0 0 1em; }
.section-head .body p:last-child { margin-bottom: 0; }
.section-head h2.display {
  font-size: clamp(26px, 2.75vw, 40px);
  line-height: 1.06;
  letter-spacing: 0.015em;
  max-width: min(68ch, 100%);
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

/* Mission ------------------------------------------------------------------*/
.mission {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.mission__photo {
  aspect-ratio: 9 / 10;
  background-size: cover; background-position: center;
  background-image: url('assets/mission-photo.png');
  position: relative;
}
.mission__photo::after {
  content: "";
  position: absolute; inset: -12px -12px 12px 12px;
  border: 1px solid var(--rule);
  z-index: -1;
  pointer-events: none;
}
.mission__body h2 {
  margin-bottom: 28px;
  max-width: min(40ch, 100%);
}
.mission__body h2.display {
  font-size: clamp(26px, 2.75vw, 40px);
  line-height: 1.06;
  letter-spacing: 0;
}
.mission__body p { margin: 0 0 1.1em; color: var(--ink-2); max-width: 52ch; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  max-width: 520px;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--red);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat__label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  max-width: 22ch;
}

@media (max-width: 820px) {
  .mission { grid-template-columns: 1fr; }
  .mission__photo { max-width: 520px; }
}

/* Objectives ---------------------------------------------------------------*/
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.18);
  border-color: var(--rule);
}
.card__icon {
  width: 52px; height: 52px;
  background: var(--red);
  display: grid; place-items: center;
  color: #fff;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 8px 0 0;
  max-width: 20ch;
}
.card__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.card__num {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

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

/* How it works -------------------------------------------------------------*/
.how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin-bottom: 72px;
}
.how__photo {
  aspect-ratio: 3 / 2;
  background-size: cover; background-position: center;
  background-image: url('assets/trailer-photo.png');
}
.how__body h2 { max-width: 14ch; margin-bottom: 20px; }
.how__body p { color: var(--ink-2); max-width: 48ch; margin: 0 0 1em; }
.how__cta { margin-top: 16px; }

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

/* Accordion ---------------------------------------------------------------*/
.accordion {
  border-top: 1px solid var(--rule);
}
.ac {
  border-bottom: 1px solid var(--rule);
}
.ac__trigger {
  width: 100%;
  background: none;
  border: 0;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: left;
  transition: color .2s ease;
}
.ac__trigger:hover { color: var(--red); }
.ac__icon {
  width: 22px; height: 22px;
  position: relative; flex-shrink: 0;
}
.ac__icon::before, .ac__icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}
.ac__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.ac[open] .ac__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.ac__panel {
  padding: 0 0 28px;
  max-width: 70ch;
  color: var(--ink-2);
  font-size: 15px;
}

/* Partner / Contact --------------------------------------------------------*/
.partner {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: clamp(80px, 10vw, 140px) 0;
  isolation: isolate;
}
.partner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.55) 50%, rgba(10,10,10,0.75) 100%),
    url('assets/partner-bg.png?v=3') center/cover no-repeat;
  z-index: -1;
}
.partner__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.partner__left h2 {
  margin-bottom: 22px;
  max-width: min(28ch, 100%);
  color: #fff;
}
.partner__left h2.display {
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.06;
  letter-spacing: 0;
}
.partner__left p { max-width: 46ch; color: rgba(255,255,255,0.82); margin: 0 0 1em; }

.form {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.form__row { display: flex; flex-direction: column; gap: 8px; }
.form__row label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.form__row label .req { color: var(--red); margin-left: 4px; }
.form__row input,
.form__row textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font: inherit;
  font-size: 15px;
  padding: 10px 0;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.form__row input:focus,
.form__row textarea:focus { border-color: var(--red); }
.form__row textarea { min-height: 110px; resize: vertical; }
.form__actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; }
.form__note { font-size: 12px; color: rgba(255,255,255,0.6); }
.form__status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  min-height: 16px;
  color: rgba(255,255,255,0.7);
}
.form__status.is-error { color: #ff8a80; }
.form__status.is-ok { color: #b7ffcb; }

@media (max-width: 900px) {
  .partner__grid { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  /* 16px+ avoids iOS zoom-on-focus for inputs */
  .form__row input,
  .form__row textarea {
    font-size: 16px;
  }
}

/* Footer -------------------------------------------------------------------*/
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer__col p, .footer__col a {
  margin: 4px 0;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.7;
}
.footer__col a:hover { color: var(--red); }
.footer__col--brand .nav__logo { color: #fff; }
.footer__col--brand .footer__tag {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  max-width: 28ch;
}
.footer__socials { display: flex; gap: 10px; margin-top: 8px; }
.footer__socials a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: #fff;
  transition: background .2s, border-color .2s;
}
.footer__socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer__socials svg { width: 14px; height: 14px; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  gap: 20px;
  flex-wrap: wrap;
}
.footer__bottom a { color: inherit; text-decoration: none; margin-left: 28px; }
.footer__bottom a:hover { color: #fff; }

@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer__bottom a {
    margin-left: 0;
  }
  .footer__bottom > span:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

/* Reveal on scroll ---------------------------------------------------------*/
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease-out, transform .9s ease-out; }
.reveal.in-view { opacity: 1; transform: none; }

/* Page hero (sub-pages) ----------------------------------------------------*/
.page-hero {
  padding: 200px 0 80px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .page-hero {
    padding: 120px 0 56px;
  }
}
.page-hero h1 { max-width: 16ch; font-size: clamp(40px, 6vw, 78px); }
.page-hero .eyebrow { color: var(--red); }

/* Legal documents ----------------------------------------------------------*/
.legal-doc {
  max-width: min(68ch, 100%);
  margin: 0 auto;
  padding-bottom: clamp(56px, 8vw, 100px);
}
.legal-doc__effective {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.legal-doc__intro {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 28px;
}
.legal-doc h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.35vw, 22px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc p {
  margin: 0 0 1.1em;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.legal-doc ul {
  margin: 0 0 1.2em 1.25em;
  padding: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.legal-doc li { margin: 0 0 0.45em; }
.legal-doc a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}
.legal-doc a:hover { text-decoration: underline; }

/* Articles -----------------------------------------------------------------*/
.news-grid {
  display: grid;
  gap: 18px;
}
.news-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.news-card__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.news-card__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.news-card .read {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.news-card .read::after {
  content: "";
  width: 30px;
  height: 1.5px;
  background: currentColor;
  transition: width .3s;
}
.news-card .read:hover::after { width: 48px; }

@media (max-width: 700px) {
  .news-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Single news article ------------------------------------------------------*/
.news-article-page .page-hero {
  padding-bottom: 36px;
}
.news-article-page .page-hero h1 {
  max-width: 22ch;
}
.news-article__back {
  display: inline-block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.news-article__back:hover {
  color: var(--red);
}
.news-article__meta {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Override global `section` padding — avoids a huge gap above the article body and
   keeps the image + prose in one `.wrap` so copy aligns with the title column. */
.news-article-page .news-article__main {
  padding: clamp(12px, 2.5vw, 24px) 0 clamp(56px, 8vw, 100px);
}
.news-article-hero {
  margin: 0 0 4px;
  max-width: min(680px, 100%);
}
.news-article-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.news-article-page .news-article__main .legal-doc {
  margin-left: 0;
  margin-right: auto;
  padding-top: 12px;
}
.news-article-page .legal-doc h2:first-of-type {
  margin-top: 36px;
}

.articles-filter {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow-x: auto;
}
.articles-filter button {
  background: none; border: 0;
  padding: 8px 12px;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: inherit;
  font: inherit;
  transition: color .2s;
  white-space: nowrap;
}
.articles-filter button.is-active {
  color: var(--ink);
  position: relative;
}
.articles-filter button.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -20px;
  height: 2px; background: var(--red);
}
.articles-filter button:hover { color: var(--ink); }

.article-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.article-feature__media {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  position: relative;
}
.article-feature__tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--red); color: #fff;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.article-feature__meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
  display: flex; gap: 20px;
}
.article-feature h2 { margin: 0 0 18px; max-width: 14ch; }
.article-feature__excerpt { color: var(--ink-2); max-width: 52ch; margin: 0 0 26px; }
.article-feature a.read { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; text-decoration: none; color: var(--ink); }
.article-feature a.read::after {
  content: ""; width: 30px; height: 1.5px; background: currentColor;
  transition: width .3s;
}
.article-feature a.read:hover::after { width: 48px; }

@media (max-width: 820px) {
  .article-feature { grid-template-columns: 1fr; }
}

.article-list { display: flex; flex-direction: column; }
.article-row {
  display: grid;
  grid-template-columns: 140px 120px 1fr 120px 44px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: padding .3s ease;
  position: relative;
}
.article-row:hover { padding-left: 16px; }
.article-row:hover .article-row__arrow { transform: translate(4px, -4px); color: var(--red); }
.article-row__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.article-row__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.article-row__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.article-row__read {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.article-row__arrow {
  justify-self: end;
  transition: transform .3s ease, color .3s ease;
  color: var(--muted);
}
@media (max-width: 820px) {
  .article-row {
    grid-template-columns: 100px 1fr 30px;
    grid-template-areas:
      "date tag  arrow"
      "title title title"
      "read read read";
    gap: 8px;
  }
  .article-row__date { grid-area: date; }
  .article-row__tag { grid-area: tag; }
  .article-row__title { grid-area: title; margin-top: 8px; }
  .article-row__read { grid-area: read; text-align: left; }
  .article-row__arrow { grid-area: arrow; }
}

/* Tweaks panel -------------------------------------------------------------*/
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.24);
  padding: 18px;
  width: 280px;
  font-size: 13px;
  display: none;
}
.tweaks.is-open { display: block; }
.tweaks h5 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.tweaks .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.tweaks .row label { font-size: 12px; }
.tweaks input[type="color"] { width: 40px; height: 28px; border: 1px solid var(--rule); background: none; padding: 0; }
.tweaks select, .tweaks input[type="text"] {
  font: inherit; font-size: 12px;
  border: 1px solid var(--rule);
  padding: 6px 8px;
  flex: 1;
  min-width: 0;
}
.tweaks .swatches { display: flex; gap: 6px; }
.tweaks .swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  outline: 1px solid var(--rule);
}
.tweaks .swatch.is-active { border-color: var(--ink); outline: 0; }
