/* ─────────────────────────────────────────
   GENESISX — styles.css
───────────────────────────────────────── */

/* ── 1. CSS CUSTOM PROPERTIES ─────────── */
:root {
  /* Colors */
  --color-black:      #000000;
  --color-white:      #ffffff;
  --color-white-70:   rgba(255, 255, 255, 0.70);
  --color-white-50:   rgba(255, 255, 255, 0.50);
  --color-white-30:   rgba(255, 255, 255, 0.30);
  --color-grey-mid:   #7F807F;
  --color-grey-dim:   #4F4F4F;
  --color-grey-muted: #8E8E8E;

  /* Typography — brand fonts only */
  --font-display:   "GROUPE BOLD", sans-serif;
  --font-heading:   "GROUPE MEDIUM", sans-serif;
  --font-nav:       "GROUPE REGULAR", sans-serif;
  --font-ui:        "SF-PRO-DISPLAY-REGULAR", sans-serif;
  --font-ui-light:  "SF-PRO-DISPLAY-LIGHT", sans-serif;
  --font-ui-semi:   "SF-PRO-DISPLAY-SEMIBOLD", sans-serif;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   6rem;
  --space-2xl: 10rem;

  /* Layout */
  --max-width:     1440px;
  --gutter:        clamp(1.5rem, 4vw, 5.5rem);
  --nav-height:    48px;
  --article-width: 1120px;    /* used by .hero--article, .article-figure & .article__container */

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);

  /* Nav underline width - adjust this to change the size */
  --nav-underline-width: 100px;
}

/* ── 2. RESET & BASE ──────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  /* padding: 0; */
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-ui);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* ── 3. NAVIGATION ────────────────────── */
/* The nav is taller than --nav-height so it fully contains the curved
   backdrop. The visible "black strip" of the curve sits in the top portion;
   we pad the bottom so content centers inside that black strip. */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* total height = strip + curved tails area below it */
  height: calc(var(--nav-height) + 26px);
  display: flex;
  align-items: center;
  /* push content up so it visually centers within the flat black strip
     (a bit less than 26px so it sits slightly lower than the very top) */
  padding: 4px var(--gutter) 5px;
  /* Slide the whole bar (curve + links + button) up/down for hide-on-scroll */
  transform: translateY(0);
  transition: transform 0.8s var(--ease-out);
  will-change: transform;
  pointer-events: none; /* let clicks pass through the transparent curved areas */
}

/* Re-enable pointer events on the actual nav content */
.nav__inner,
.nav__toggle {
  pointer-events: auto;
}

/* Curved black backdrop built from Curve.svg, used as a mask.
   Semi-transparent so the content behind stays slightly visible. */
.nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201905%2097%22%20preserveAspectRatio%3D%22none%22%3E%3Cg%20transform%3D%22matrix%281.001577%2C0%2C0%2C1.002203%2C0%2C0%29%22%3E%3Cg%20transform%3D%22matrix%280.780213%2C0%2C0%2C2.850384%2C196.24846%2C0.997802%29%22%3E%3Cpath%20d%3D%22M137.625%2C11.924C120.827%2C6.368%2095.841%2C3.151%2069.481%2C3.151L-251.532%2C3.151L-251.532%2C-0.35L2186.265%2C-0.35L2186.265%2C3.151L1911.932%2C3.151C1856.971%2C3.151%201804.877%2C9.858%201769.851%2C21.444C1769.851%2C21.444%201769.851%2C21.444%201769.851%2C21.444C1746.575%2C29.144%201711.956%2C33.601%201675.433%2C33.601L260.618%2C33.601C224.224%2C33.601%20189.727%2C29.159%20166.534%2C21.487C166.534%2C21.487%20151.869%2C16.636%20137.625%2C11.924Z%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") no-repeat top center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201905%2097%22%20preserveAspectRatio%3D%22none%22%3E%3Cg%20transform%3D%22matrix%281.001577%2C0%2C0%2C1.002203%2C0%2C0%29%22%3E%3Cg%20transform%3D%22matrix%280.780213%2C0%2C0%2C2.850384%2C196.24846%2C0.997802%29%22%3E%3Cpath%20d%3D%22M137.625%2C11.924C120.827%2C6.368%2095.841%2C3.151%2069.481%2C3.151L-251.532%2C3.151L-251.532%2C-0.35L2186.265%2C-0.35L2186.265%2C3.151L1911.932%2C3.151C1856.971%2C3.151%201804.877%2C9.858%201769.851%2C21.444C1769.851%2C21.444%201769.851%2C21.444%201769.851%2C21.444C1746.575%2C29.144%201711.956%2C33.601%201675.433%2C33.601L260.618%2C33.601C224.224%2C33.601%20189.727%2C29.159%20166.534%2C21.487C166.534%2C21.487%20151.869%2C16.636%20137.625%2C11.924Z%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") no-repeat top center / 100% 100%;
  pointer-events: none;
  z-index: -2;
}

/* Subtle 1px outline that follows the curve silhouette */
.nav::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201905%2097%22%20preserveAspectRatio%3D%22none%22%3E%3Cg%20transform%3D%22matrix%281.001577%2C0%2C0%2C1.002203%2C0%2C0%29%22%3E%3Cg%20transform%3D%22matrix%280.780213%2C0%2C0%2C2.850384%2C196.24846%2C0.997802%29%22%3E%3Cpath%20d%3D%22M137.625%2C11.924C120.827%2C6.368%2095.841%2C3.151%2069.481%2C3.151L-251.532%2C3.151L-251.532%2C-0.35L2186.265%2C-0.35L2186.265%2C3.151L1911.932%2C3.151C1856.971%2C3.151%201804.877%2C9.858%201769.851%2C21.444C1769.851%2C21.444%201769.851%2C21.444%201769.851%2C21.444C1746.575%2C29.144%201711.956%2C33.601%201675.433%2C33.601L260.618%2C33.601C224.224%2C33.601%20189.727%2C29.159%20166.534%2C21.487C166.534%2C21.487%20151.869%2C16.636%20137.625%2C11.924Z%22%20fill%3D%22none%22%20stroke%3D%22rgba%28255%2C255%2C255%2C0.18%29%22%20stroke-width%3D%222%22%20vector-effect%3D%22non-scaling-stroke%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") no-repeat top center / 100% 100%;
  pointer-events: none;
  z-index: -1;
}

/* Hidden state: slide the whole nav above the viewport */
.nav--hidden {
  transform: translateY(calc(-100% - 30px));
}

/* (kept for compatibility; the curved ::before now provides the backdrop) */
.nav--scrolled::before {
  background: rgba(0, 0, 0, 0.85);
}

.nav__inner {
  width: 60%;
  min-width: 720px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: 20px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.nav__link {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 0.85vw, 0.75rem);
  letter-spacing: -0.1em;
  text-transform: uppercase;
  color: var(--color-white-70);
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-white);
}

.nav__cta {
  font-family: "GROUPE MEDIUM";
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.6rem 3.0rem;
  border-radius: 25px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav__cta:hover {
  background: #7437f6;
  border-color: rgba(0, 0, 0, 0);
}

/* Cursor-following underline */
/* .nav__underline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 10px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 101;
}

.nav__underline--active {
  opacity: 1;
} */

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 2px;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-black);
  z-index: 99;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-lg) var(--gutter);
  gap: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav__mobile.open {
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-white-70);
  transition: color 0.2s ease;
  line-height: 1;
}

.nav__mobile-link:hover { color: var(--color-white); }

/* ── 4. HERO SECTION ─────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 45svh;
  min-height: 540px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .3;
}

/* dark gradient at bottom so text below reads on scroll */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.0) 40%,
    rgba(0,0,0,0.7) 85%,
    rgba(0,0,0,1) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__eyebrow {
  font-family: "GROUPE LIGHT";
  font-size: clamp(1.6rem, 0.9vw, 3.75rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white-50);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  max-width: 14ch;
  margin-left: -0.18em;;
}

/* ── 5. BLOG SECTION ─────────────────── */
.blog {
  padding: var(--space-xl) 0;
}

.blog__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.blog__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.15em;
  text-transform: uppercase;
  line-height: 1;
}

.blog__subtitle {
  font-family: var(--font-ui-light);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  color: var(--color-grey-mid);
  max-width: 42ch;
  line-height: 1.6;
}

/* Filter tabs */
.blog__filters {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.blog__filter {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white-50);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog__filter:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.blog__filter--active {
  color: var(--color-white);
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}

/* ── 6. CARD GRID ────────────────────── */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Featured card — full width, tall */
.card--featured {
  grid-column: 1 / -1;
}

/* Regular cards — 4 columns each (3 per row) */
.card {
  grid-column: span 4;
  background: var(--color-black);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Hover state */
.card:hover .card__image-inner {
  transform: scale(1.05);
}

.card:hover .card__arrow {
  transform: translate(3px, -3px);
  opacity: 1;
}

/* Image */
.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}

.card--featured .card__image {
  aspect-ratio: 21 / 9;
}

@media (max-width: 900px) {
  .card--featured .card__image {
    aspect-ratio: 16 / 9;
  }
}

.card__image-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--ease-out);
  display: block;
}

/* Overlay gradient on image */
.card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  pointer-events: none;
}

/* Card body */
.card__body {
  padding: 1.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card--featured .card__body {
  padding: 2rem 2.5rem 2.5rem;
}

.card__tag {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white-50);
  margin-bottom: 0.75rem;
}

.card__title {
  /* font-family: var(--font-heading); */
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: auto;
}

.card--featured .card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  letter-spacing: -0.025em;
  max-width: 22ch;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card__link {
  font-family: var(--font-ui-semi);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white-70);
  transition: color 0.2s ease;
}

.card:hover .card__link {
  color: var(--color-white);
}

.card__arrow {
  font-size: 1rem;
  color: var(--color-white-50);
  transition: transform 0.3s ease, opacity 0.2s ease;
  opacity: 0.6;
  line-height: 1;
}

/* ── 7. CONTACT / CTA SECTION ─────────── */
.contact {
  position: relative;
  overflow: hidden;
  min-height: min(100svh, 700px);
  display: flex;
  align-items: center;
}

.contact__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.20);
  z-index: 1;
}

.contact__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--gutter);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.contact__label {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-white-50);
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-white);
  max-width: 14ch;
}

.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui-semi);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-black);
  background: var(--color-white);
  padding: 1rem 2.5rem;
  border-radius: 25px;
  transition: background 0.2s ease, color 0.2s ease;
  margin-top: var(--space-sm);
}

.contact__cta:hover {
  background: rgba(255, 255, 255, 0.88);
}

/* ── 8. FOOTER ───────────────────────── */
.footer {
  background: var(--color-black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-xl) var(--gutter) var(--space-lg);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Top row: logo + nav */
.footer__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo img {
  height: 22px;
  width: auto;
  opacity: 0.9;
}

.footer__nav {
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__nav-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white-30);
  margin-bottom: 0.25rem;
}

.footer__nav-link {
  font-family: var(--font-ui-light);
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white-50);
  transition: color 0.2s ease;
  line-height: 1;
}

.footer__nav-link:hover {
  color: var(--color-white);
}

/* Contact column (right) */
.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.footer__contact-email {
  font-family: var(--font-ui-light);
  font-size: clamp(0.75rem, 1.1vw, 0.95rem);
  color: var(--color-grey-mid);
  transition: color 0.2s ease;
}

.footer__contact-email:hover {
  color: var(--color-white);
}

.footer__contact-phone {
  font-family: var(--font-ui-light);
  font-size: 0.8rem;
  color: var(--color-grey-dim);
}

/* Bottom row */
.footer__bottom {
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copyright {
  font-family: var(--font-ui-light);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--color-white-30);
  text-transform: uppercase;
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal-link {
  font-family: var(--font-ui-light);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--color-white-30);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer__legal-link:hover {
  color: var(--color-white-70);
}

/* ── 9. SCROLL ANIMATIONS ─────────────── */
/* .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; } */

/* ── 10. RESPONSIVE ───────────────────── */

/* Tablet: 768px–1023px */
@media (max-width: 1023px) {
  .card {
    grid-column: span 6;
  }

  .card--featured {
    grid-column: 1 / -1;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__contact {
    align-items: flex-start;
  }
}

/* ── Nav responsive: switches to hamburger below 1600px ─────────────
   Below this width, the curved SVG backdrop is replaced by a normal
   semi-transparent black bar (like the original design). */
@media (max-width: 1599px) {
  /* Restore a normal, full-width nav bar without the curved SVG backdrop */
  .nav {
    height: var(--nav-height);
    padding: 0 var(--gutter);
    pointer-events: auto;
    /* Solid semi-transparent dark backdrop with blur (replaces the curve) */
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Hide the curved backdrop and its outline on tablet/mobile */
  .nav::before,
  .nav::after {
    display: none;
  }

  .nav__inner {
    width: 100%;
    min-width: 0;
    align-items: center;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__mobile {
    display: flex;
  }
}

/* Mobile: <768px */
@media (max-width: 767px) {
  :root {
    --space-xl:  4rem;
    --space-2xl: 6rem;
  }

  .card {
    grid-column: 1 / -1;
  }

  .card--featured {
    grid-column: 1 / -1;
  }

  .blog__header {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .contact__title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .footer__nav {
    gap: var(--space-md);
    justify-content: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .blog__grid {
    gap: 0;
  }

  .card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ── 11. ARTICLE PAGE ─────────────────────
   Scoped to body.page--article so these rules
   NEVER bleed into index.html or any other page.
   ─────────────────────────────────────────── */

/* Body background override — only for article pages */
body.page--article {
  background-color: #f6f6f7;
  color: #000000;
}

/* Nav stays black on article pages (nav has its own bg via nav--scrolled,
   but on load it needs a solid black so it reads over the white hero) */
body.page--article .nav::before {
  background: rgba(0, 0, 0, 0.85);
}

/* Hero — article variant */
body.page--article .hero--article {
  background-color: #f6f6f7;
  /* Override the global ::after dark gradient — article hero is light */
  /* Tighter, more editorial header: no oversized empty space above the title */
  min-height: 0;
  height: auto;
  padding-top: calc(var(--nav-height) + 4.5rem);
  padding-bottom: 2rem;
}

/* Neutralise the global hero::after dark gradient for article hero */
body.page--article .hero--article::after {
  background: none;
}

/* Hero content alignment — flex-start so content sits right under the nav
   instead of being pushed to the bottom (which left a big empty band). */
body.page--article .hero--article .hero__content {
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 0;
  max-width: var(--article-width);
  margin: 0 auto;
}

/* Title overrides — editorial serif for comfortable long-form reading.
   Charter is a classic editorial typeface (used by Medium, NYT, etc.)
   already declared in fonts.css. */
body.page--article .hero--article .hero__title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;     /* much softer than the -0.15em display version */
  text-transform: none;          /* keep sentence case for readability */
  margin-left: 0;
  margin-top: 0.5rem;
  max-width: 24ch;
  color: #111111;
}

/* Eyebrow color on light background */
body.page--article .hero--article .hero__eyebrow {
  font-family: "GROUPE MEDIUM", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 0.25rem;
}

/* Article meta line (author · date · read time) */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.25rem;
  font-family: system-ui;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.55);
}
.article-meta__sep {
  opacity: 0.4;
}

/* Featured image */
.article-figure {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  background-color: #f6f6f7;
}
.article-figure__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Article body wrapper */
.article {
  padding: 3rem 0 6rem;
  background-color: #f6f6f7;
  color: #000000;
}
.article__container {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Back link */
.article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
  font-family: "GROUPE MEDIUM", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease;
}
.article__back:hover { color: #000000; }

/* Rich text body — editorial serif, larger comfortable size */
.article__body {
  font-family: Manrope, sans-serif;
  font-size: 1.35rem;
  line-height: 1.75;
  color: #1a1a1a;
}
.article__body p {
  margin: 0 0 1.4rem;
}
.article__body h2 {
  font-family: Manrope, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  /* text-transform: uppercase; */
  margin: 3.5rem 0 1.25rem;
  color: #000000;
}
.article__body h3 {
  font-family: Manrope, sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 2.5rem 0 0.9rem;
  color: #000000;
}
.article__body ul,
.article__body ol {
  list-style: revert;      /* restore browser bullets/numbers */
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}
.article__body li { margin-bottom: 0.5rem; }
.article__body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #000000;
}
.article__body strong { font-weight: 700; }
.article__body em { font-style: italic; }

/* Inline CTA box */
.article-cta {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-align: center;
  color: #000000;
}
.article-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}
.article-cta__button {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: 1px solid #000000;
  color: #000000;
  font-family: var(--font-ui-semi);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.article-cta__button:hover {
  background: #000000;
  color: #ffffff;
}

/* ── Responsive — article ─────────────── */
@media (max-width: 1023px) {
  body.page--article .hero--article .hero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
  }
}

@media (max-width: 767px) {
  body.page--article .hero--article {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 2rem;
    min-height: auto;
  }
  body.page--article .hero--article .hero__title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    letter-spacing: -0.02em;
    max-width: 100%;
  }
  .article { padding: 2.5rem 0 4rem; }
  .article__body { font-size: 1rem; }
  .article-cta { padding: 2rem 1.25rem; }
}
