/* ---------------------------------------------------------------
   moiki-presskit — components (v2)
   Modern indie product. Confident grotesque, vibrant accents,
   structured cards, "branching path" motif on section markers.
   --------------------------------------------------------------- */

/* ---------- Section heading: numbered chip + title ---------- */
.presskit > section,
.presskit > article > section {
  counter-increment: presskit-section;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fz-5);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  font-variation-settings: 'opsz' 36, 'wdth' 100;
  margin-block-end: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.section__title::before {
  content: counter(presskit-section, decimal-leading-zero);
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  min-width: 2em;
  height: 2em;
  padding: 0 0.6em;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--font-body);
  font-size: var(--fz-1);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  font-feature-settings: 'tnum','lnum';
  font-variant-numeric: tabular-nums lining-nums;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-block-end: var(--sp-5);
  flex-wrap: wrap;
}
.section__head .section__title {
  margin-block-end: 0;
  flex: 1 1 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.85em 1.35em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fz-2);
  text-decoration: none;
  font-feature-settings: 'kern','liga','calt';
  transition: background-color 180ms var(--easing-standard),
              border-color 180ms var(--easing-standard),
              color 180ms var(--easing-standard),
              transform 180ms var(--easing-emph),
              box-shadow 180ms var(--easing-emph);
  white-space: nowrap;
  min-height: 44px;
  position: relative;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 2px; box-shadow: var(--sh-glow); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(14, 13, 10, 0.1), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  box-shadow: 0 6px 18px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn--ghost {
  background: var(--bg-elev);
  color: var(--fg);
  border-color: var(--rule-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--small {
  padding: 0.55em 0.95em;
  font-size: var(--fz-1);
  min-height: 36px;
}

.btn > [aria-hidden="true"] {
  font-weight: 800;
  opacity: 0.95;
}

/* ---------- Landing ---------- */
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
  padding-block-start: var(--sp-3);
  position: relative;
}
.landing-hero__eyebrow {
  color: var(--fg-muted);
  font-size: var(--fz-1);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.landing-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--fg);
  opacity: 0.6;
}
.landing-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fz-8);
  line-height: 0.96;
  letter-spacing: var(--tracking-display);
  color: var(--fg);
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  max-width: 22ch;
  text-wrap: balance;
}
.landing-hero__subhero {
  color: var(--fg-soft);
  font-size: var(--fz-4);
  font-family: var(--font-body);
  font-weight: 400;
  max-width: var(--measure-tight);
  line-height: var(--lh-snug);
}
.landing-hero__lang {
  font-size: var(--fz-1);
  margin-block-start: var(--sp-2);
}
.landing-hero__lang a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 4px 0;
  transition: border-color 120ms var(--easing-standard),
              color 120ms var(--easing-standard);
}
.landing-hero__lang a:hover {
  border-color: var(--fg);
}

/* Two product cards as bold tiles */
.product-cards {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  /* Fix D: the parent `.page__main` already provides `gap: sp-9` between sections.
     A second margin would stack on top, leaving ~10rem of empty air. */
  margin-block-start: 0;
  counter-reset: card;
}
.product-card {
  position: relative;
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  isolation: isolate;
  counter-increment: card;
  transition: transform 280ms var(--easing-emph),
              box-shadow 280ms var(--easing-emph),
              border-color 280ms var(--easing-emph);
}
.product-card[data-product='moiki']     { --accent: #ff6a3d; --accent-deep: #e8521f; --accent-tint: #ff6a3d22; --accent-glow: #ff6a3d33; }
.product-card[data-product='moiki-edu'] { --accent: #1f8aff; --accent-deep: #1466cc; --accent-tint: #1f8aff22; --accent-glow: #1f8aff33; }
@media (prefers-color-scheme: dark) {
  .product-card[data-product='moiki']     { --accent: #ff8459; --accent-tint: #ff84592a; --accent-glow: #ff84593a; }
  .product-card[data-product='moiki-edu'] { --accent: #5cb0ff; --accent-tint: #5cb0ff2a; --accent-glow: #5cb0ff3a; }
}

/* Diagonal blurred wash that pulses on hover — energy without gradient overload */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--accent-tint) 0%, transparent 55%);
  opacity: 0.7;
  transition: opacity 280ms var(--easing-emph);
  pointer-events: none;
  z-index: 0;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2), 0 0 0 4px var(--accent-glow);
  border-color: var(--accent);
}
.product-card:hover::after { opacity: 1; }
.product-card:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }

.product-card__link {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--sp-5);
  padding: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  text-decoration: none;
  color: inherit;
  min-height: 320px;
  position: relative;
  z-index: 1;
}

/* Issue badge on the right (decimal-leading-zero counter) */
.product-card__link::before {
  content: counter(card, decimal-leading-zero);
  position: absolute;
  inset-inline-end: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  inset-block-start: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  font-family: var(--font-display);
  font-size: var(--fz-3);
  font-weight: 700;
  color: var(--accent);
  font-feature-settings: 'tnum','lnum';
  letter-spacing: var(--tracking-tight);
  opacity: 0.85;
}

/* Color flag — bigger, takes more room */
.product-card__link::after {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 6px;
  background: var(--accent);
}

.product-card__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-block-start: var(--sp-4);
}
.product-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.5vw, 3.25rem);
  line-height: 0.96;
  letter-spacing: var(--tracking-display);
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  text-wrap: balance;
  color: var(--fg);
}
.product-card__tagline {
  color: var(--fg-soft);
  font-size: var(--fz-3);
  line-height: var(--lh-snug);
  max-width: 32ch;
}
/* Fix A: the JSX text already includes "→" — drop the ::after arrow that
   was producing "→ →". Animate the whole CTA on hover instead. */
.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--accent);
  font-weight: 600;
  font-size: var(--fz-2);
  letter-spacing: var(--tracking-tight);
  padding-block-start: var(--sp-3);
  border-top: 1px solid var(--rule);
  transition: transform 200ms var(--easing-emph),
              letter-spacing 200ms var(--easing-emph);
  transform-origin: left center;
}
.product-card:hover .product-card__cta { transform: translateX(2px); }

/* ---------- Press kit page ---------- */
.presskit {
  display: flex;
  flex-direction: column;
  gap: var(--sp-9);
  counter-reset: presskit-section;
}

/* HERO */
.hero {
  display: grid;
  gap: var(--sp-6) var(--sp-7);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  position: relative;
}
/* Fix B: only split into two columns when a media figure exists.
   Moiki EDU has no `header` asset → keep a single column instead of a wasted right side. */
@media (min-width: 920px) {
  .hero:has(.hero__media) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.hero__copy { display: flex; flex-direction: column; gap: var(--sp-3); }
.hero__eyebrow {
  color: var(--accent);
  font-size: var(--fz-1);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fz-8);
  line-height: 0.92;
  letter-spacing: var(--tracking-display);
  font-variation-settings: 'opsz' 144, 'wdth' 100;
  margin-block: var(--sp-1) 0;
  color: var(--fg);
  text-wrap: balance;
}
.hero__tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fz-4);
  line-height: var(--lh-snug);
  color: var(--fg-soft);
  max-width: 36ch;
  margin-block-start: var(--sp-2);
  text-wrap: balance;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block-start: var(--sp-5);
}
.hero__contact {
  margin-block-start: var(--sp-4);
  color: var(--fg-muted);
  font-size: var(--fz-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  line-height: 1.4;
}
.hero__email {
  color: var(--fg);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: var(--accent);
}
.hero__email:hover { text-decoration-thickness: 3px; }

.hero__media {
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--bg-elev);
  margin: 0;
  position: relative;
  border: 1px solid var(--rule);
  box-shadow: var(--sh-2);
  /* Fix E: drop the slight tilt — read as misalignment, not whimsy. */
  transition: transform 320ms var(--easing-emph),
              box-shadow 320ms var(--easing-emph);
}
.hero__media:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2), 0 0 0 4px var(--accent-glow);
}
.hero__media::before {
  /* Accent halo behind the image */
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
}
.hero__image {
  width: 100%;
  height: auto;
  display: block;
}

/* Two-column: factsheet aside + description body */
.presskit__columns {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 920px) {
  .presskit__columns {
    grid-template-columns: 19rem minmax(0, 1fr);
    align-items: start;
  }
}

/* FACTSHEET — clean stacked card */
.factsheet {
  /* Fix J: sit below the sticky header (~70px header + small breathing room). */
  position: sticky;
  top: calc(70px + var(--sp-3));
  padding: var(--sp-5);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  background: var(--bg-elev);
}
.factsheet > .section__title {
  font-size: var(--fz-2);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-block-end: var(--sp-4);
  font-weight: 700;
}
.factsheet > .section__title::before { display: none; }
.factsheet > .section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.factsheet__list {
  font-size: var(--fz-2);
  line-height: var(--lh-snug);
}
.factsheet__list dt {
  color: var(--fg-muted);
  font-size: var(--fz-0);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-weight: 700;
  /* Tight gap to its own dd — the pair reads as one unit. */
  margin-block-end: var(--sp-1);
}
/* Larger gap between pairs (before each dt that follows a dd). */
.factsheet__list dd + dt {
  margin-block-start: var(--sp-4);
}
.factsheet__list dd {
  color: var(--fg);
  font-weight: 500;
  margin: 0;
}
.factsheet__list dd a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color 120ms var(--easing-standard);
}
.factsheet__list dd a:hover { text-decoration-color: var(--accent); }
.factsheet__list time { font-feature-settings: 'kern','tnum','lnum'; }
.factsheet__socials {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.factsheet__socials a {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fz-1);
  transition: background-color 120ms var(--easing-standard);
}
.factsheet__socials a:hover {
  background: var(--accent);
  color: var(--accent-fg);
}

/* DESCRIPTION — clean body */
.description__body {
  font-size: var(--fz-3);
  line-height: var(--lh-relaxed);
  color: var(--fg-soft);
  max-width: var(--measure);
}
/* Defensive: trim outer margins on first/last child of the body so the
   block aligns precisely with the section title above. */
.description__body > :first-child { margin-block-start: 0; }
.description__body > :last-child  { margin-block-end: 0; }
.description__body p + p { margin-block-start: var(--sp-4); }
.description__body strong, .description__body b {
  color: var(--fg);
  font-weight: 700;
}
.description__body a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
  font-weight: 600;
  transition: text-decoration-thickness 120ms var(--easing-standard);
}
.description__body a:hover { text-decoration-thickness: 2px; }
.description__body em, .description__body i { font-style: italic; }
.description__body ul, .description__body ol {
  padding-inline-start: 1.25em;
  margin-block: var(--sp-3);
}
.description__body ul { list-style: none; }
.description__body ul > li { position: relative; padding-block: 0.1em; }
.description__body ul > li::before {
  content: '→';
  position: absolute;
  inset-inline-start: -1.4em;
  color: var(--accent);
  font-weight: 700;
}
.description__body ol { list-style: decimal; }
.description__body ol::marker { color: var(--accent); font-weight: 700; }

/* GALLERY — index-card grid */
.gallery__grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  list-style: none;
  padding: 0;
}
.gallery__item { display: contents; }
.gallery__link {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-elev);
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms var(--easing-standard),
              transform 200ms var(--easing-emph),
              box-shadow 200ms var(--easing-emph);
}
.gallery__link:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}
.gallery__figure { margin: 0; }
.gallery__img {
  /* Fix H: aspect-ratio: 4/3 keeps the grid tidy. `contain` + checker bg makes
     wide *and* tall screenshots equally legible without unfortunate crops. */
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  background:
    linear-gradient(45deg, var(--bg-deep) 25%, transparent 25%, transparent 75%, var(--bg-deep) 75%),
    linear-gradient(45deg, var(--bg-deep) 25%, transparent 25%, transparent 75%, var(--bg-deep) 75%),
    var(--bg-elev);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  display: block;
  transition: transform 320ms var(--easing-emph);
}
.gallery__link:hover .gallery__img { transform: scale(1.03); }
.gallery__caption {
  padding: var(--sp-2) var(--sp-3);
  color: var(--fg-muted);
  font-size: var(--fz-0);
  border-block-start: 1px solid var(--rule);
}
.gallery__hint {
  position: absolute;
  inset-block-end: var(--sp-2);
  inset-inline-end: var(--sp-2);
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: var(--fz-0);
  letter-spacing: var(--tracking-wide);
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms var(--easing-standard),
              transform 200ms var(--easing-emph);
}
.gallery__link:hover .gallery__hint,
.gallery__link:focus-visible .gallery__hint {
  opacity: 1;
  transform: translateY(0);
}

/* LOGOS — fixed light + dark bands. The bands are intentionally absolute
   colours (not theme-dependent) so journalists can preview how the logos
   read on a real white sheet of paper or a real dark background. */
.logos__row {
  padding: var(--sp-6) var(--sp-5);
  border-radius: var(--r-3);
  border: 1px solid var(--rule-strong);
  position: relative;
}
.logos__row + .logos__row { margin-block-start: var(--sp-4); }
.logos__row--light { background: #ffffff; border-color: #e2dcc8; }
.logos__row--dark  { background: #0a0a0a; border-color: #0a0a0a; }
/* Fix C: in dark mode the page bg is also near-black — without an inset rim
   the dark band would dissolve into the page. Add a subtle outline. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .logos__row--dark {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}
:root[data-theme='dark'] .logos__row--dark {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.logos__row::before {
  position: absolute;
  inset-block-start: -8px;
  inset-inline-start: var(--sp-5);
  padding: 2px 8px;
  font-size: var(--fz-0);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  font-weight: 700;
  border-radius: var(--r-1);
  /* Fix I: a solid pill so the badge reads against any wash, not just the page bg. */
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--fg-muted);
  line-height: 1.3;
}
.logos__row--light::before { content: 'on light'; }
.logos__row--dark::before  { content: 'on dark'; }
.logos__grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center;
  justify-items: center;
}
.logo-tile { width: 100%; }
.logo-tile__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  border-radius: var(--r-3);
  transition: background-color 160ms var(--easing-standard),
              transform 160ms var(--easing-emph);
}
.logo-tile__link:hover {
  background: rgba(255,255,255,0.06);
  transform: scale(1.06);
}
.logos__row--light .logo-tile__link:hover { background: rgba(0,0,0,0.04); }
.logo-tile__img {
  max-height: 88px;
  width: auto;
  max-width: 80%;
}

/* QUOTES — bold rounded cards */
.quotes__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.quote {
  margin: 0;
  padding: var(--sp-5);
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: var(--r-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  transition: border-color 200ms var(--easing-standard),
              box-shadow 200ms var(--easing-emph),
              transform 200ms var(--easing-emph);
}
.quote::before {
  /* Fix F: pin the giant quotation mark to the inner top-right corner so
     it never overlaps the content paragraph. Smaller, more discreet. */
  content: '"';
  position: absolute;
  inset-block-start: -0.5rem;
  inset-inline-end: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.18;
  pointer-events: none;
  font-variation-settings: 'opsz' 96;
}
.quote:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.quote__content { margin: 0; }
.quote__content p {
  font-size: var(--fz-3);
  line-height: var(--lh-snug);
  color: var(--fg);
  text-wrap: pretty;
}
.quote__author {
  color: var(--fg-muted);
  font-size: var(--fz-1);
  font-weight: 600;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  letter-spacing: var(--tracking-wide);
}
.quote__author::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
}
.quote__author a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ARTICLES — numbered list, hairline rows */
.articles__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-block-start: 1px solid var(--rule);
  counter-reset: article;
}
.articles__item {
  counter-increment: article;
  border-block-end: 1px solid var(--rule);
}
.article-card {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: var(--sp-4);
  row-gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-2);
  background: transparent;
  border: 0;
  border-radius: 0;
  align-items: baseline;
  position: relative;
  transition: background-color 160ms var(--easing-standard);
}
.article-card::before {
  content: counter(article, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--fz-0);
  color: var(--fg-faint);
  font-feature-settings: 'tnum','lnum';
  font-variant-numeric: tabular-nums lining-nums;
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  padding-block-start: 0.5em;
}
.article-card > * { grid-column: 2; }
.article-card:hover { background: var(--accent-tint); }
.article-card__title {
  font-family: var(--font-display);
  font-size: var(--fz-3);
  line-height: var(--lh-snug);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  font-variation-settings: 'opsz' 24;
  margin-block-end: var(--sp-1);
  text-wrap: balance;
}
.article-card__title a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms var(--easing-standard),
              color 120ms var(--easing-standard);
}
.article-card__title a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.article-card__title a::after {
  /* Fix G: align the small "↗" indicator on the baseline cleanly. */
  content: '↗';
  font-size: 0.7em;
  color: var(--fg-muted);
  margin-inline-start: 0.4em;
  vertical-align: 0.15em;
  display: inline-block;
  transition: transform 160ms var(--easing-emph), color 160ms var(--easing-standard);
}
.article-card__title a:hover::after {
  color: var(--accent);
  transform: translate(2px, -2px);
}
.article-card__meta {
  color: var(--fg-muted);
  font-size: var(--fz-1);
}
.article-card__source { font-weight: 700; color: var(--fg); }
.article-card__author { color: var(--fg-soft); }
.article-card__host {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--fg-faint);
}
.article-card__lang {
  display: inline-block;
  margin-inline-start: var(--sp-2);
  padding: 0 6px;
  border-radius: var(--r-1);
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78em;
  letter-spacing: var(--tracking-wide);
  font-weight: 700;
  vertical-align: 1px;
}
.article-card__blurb {
  margin-block-start: var(--sp-2);
  color: var(--fg-muted);
  font-size: var(--fz-2);
  max-width: var(--measure);
}

/* CONTACT — strong CTA card */
.contact__card {
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--r-4);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: var(--sp-4);
  position: relative;
  overflow: hidden;
}
.contact__card::after {
  content: '';
  position: absolute;
  inset-block-end: -50%;
  inset-inline-end: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.contact__lead {
  color: var(--accent-fg);
  font-size: var(--fz-4);
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: var(--tracking-tight);
  font-variation-settings: 'opsz' 36, 'wdth' 100;
  line-height: var(--lh-snug);
  position: relative;
  z-index: 1;
}
.contact__primary { display: flex; }
.contact__primary .btn {
  font-size: var(--fz-3);
  padding: 1em 1.5em;
  background: var(--accent-fg);
  color: var(--accent);
  border-color: var(--accent-fg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.contact__primary .btn:hover {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.92);
  color: var(--accent-deep);
}
.contact__socials {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
}
.contact__socials .btn {
  background: rgba(255,255,255,0.12);
  color: var(--accent-fg);
  border-color: rgba(255,255,255,0.24);
}
.contact__socials .btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
  color: var(--accent-fg);
}

/* 404 */
.error-page {
  padding-block: var(--sp-9);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  align-items: flex-start;
  position: relative;
  max-width: 50rem;
}
.error-page::before {
  content: '404';
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wdth' 100;
  font-size: clamp(8rem, 22vw, 14rem);
  line-height: 0.85;
  letter-spacing: var(--tracking-display);
  color: var(--accent);
  opacity: 0.18;
}
.error-page__title {
  font-family: var(--font-display);
  font-size: var(--fz-7);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  margin-block-start: -2rem;
  text-wrap: balance;
}
.error-page__lead {
  font-size: var(--fz-4);
  color: var(--fg-soft);
  max-width: 42ch;
  line-height: var(--lh-snug);
}

/* ---------- Hero entrance choreography ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow,
  .hero__title,
  .hero__tagline,
  .hero__actions,
  .hero__contact,
  .hero__media,
  .landing-hero__eyebrow,
  .landing-hero__title,
  .landing-hero__subhero,
  .product-card {
    animation: rise 700ms var(--easing-emph) both;
  }
  .hero__eyebrow,        .landing-hero__eyebrow { animation-delay:  40ms; }
  .hero__title,          .landing-hero__title   { animation-delay: 120ms; }
  .hero__tagline,        .landing-hero__subhero { animation-delay: 220ms; }
  .hero__actions                                { animation-delay: 320ms; }
  .hero__contact                                { animation-delay: 400ms; }
  .hero__media                                  { animation-delay: 200ms; animation-duration: 900ms; }
  .product-card:nth-child(1) { animation-delay: 100ms; }
  .product-card:nth-child(2) { animation-delay: 220ms; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- Selection ---------- */
::selection {
  background: var(--accent);
  color: var(--accent-fg);
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
  .article-card { grid-template-columns: 2.25rem 1fr; }
  .factsheet { position: static; }
  .product-card__link::before { display: none; }
  .section__title::before { min-width: 1.8em; height: 1.8em; font-size: var(--fz-0); }
}
