/* ==========================================================================
   Sammy Margo — Sleep Expert
   v2 Design System — Editorial Luxury
   ========================================================================== */

/* --------------------------------------------------------------------------
   SELF-HOSTED FONTS
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Blair ITC';
  src: url('../fonts/BlairITC-Light.woff2') format('woff2'),
       url('../fonts/BlairITC-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Blair ITC';
  src: url('../fonts/BlairITC-Medium.woff2') format('woff2'),
       url('../fonts/BlairITC-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Blair ITC';
  src: url('../fonts/BlairITC-Bold.woff2') format('woff2'),
       url('../fonts/BlairITC-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  /* Palette: warm neutrals with teal accent */
  --ink: #1B1F22;
  --ink-soft: #3A3F44;
  --ink-muted: #6B7280;
  --parchment: #FAF8F5;
  --warm-white: #F4F1EC;
  --white: #FFFFFF;
  --teal: #5BAEA4;
  --teal-dark: #3E8E85;
  --teal-muted: rgba(91, 174, 164, 0.12);
  --gold: #BFA26E;
  --gold-soft: rgba(191, 162, 110, 0.15);
  --rule: rgba(27, 31, 34, 0.08);
  --rule-light: rgba(255, 255, 255, 0.1);

  /* Type */
  --font-display: 'Blair ITC', 'Helvetica Neue', sans-serif;
  --font-body: 'Verdana', 'Geneva', sans-serif;

  /* Spacing scale */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --s9: 6rem;
  --s10: 9rem;
  --s11: 13rem;

  /* Layout */
  --measure: 1280px;
  --measure-narrow: 720px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-mid: 0.5s;
  --duration-slow: 0.9s;
}


/* --------------------------------------------------------------------------
   RESET
   -------------------------------------------------------------------------- */
*, *::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 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--parchment);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }


/* --------------------------------------------------------------------------
   GRAIN OVERLAY — subtle warmth
   -------------------------------------------------------------------------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}


/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }

p { max-width: 58ch; }

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.label--gold { color: var(--gold); }

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.75;
  color: var(--ink-muted);
}

.display-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink);
  max-width: 42ch;
}


/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--s6);
}

.wrap--narrow { max-width: var(--measure-narrow); }

.block { padding: var(--s8) 0; }
.block--compact { padding: var(--s7) 0; }

.block--dark {
  background: var(--ink);
  color: var(--warm-white);
}

.block--dark h2,
.block--dark h3 { color: var(--white); }
.block--dark p { color: rgba(255, 255, 255, 0.65); }
.block--dark .label { color: var(--teal); }

.block--warm { background: var(--warm-white); }


/* --------------------------------------------------------------------------
   RULE — the editorial horizontal line
   -------------------------------------------------------------------------- */
.rule {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: var(--s7) 0;
}

.rule--gold {
  background: var(--gold);
  width: 48px;
  height: 1.5px;
}

.rule--teal {
  background: var(--teal);
  width: 48px;
  height: 1.5px;
}

.rule--dark { background: var(--rule-light); }

.rule--center { margin-left: auto; margin-right: auto; }


/* --------------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--s4) 0;
  transition: background var(--duration-mid) var(--ease-out),
              box-shadow var(--duration-mid) var(--ease-out),
              transform var(--duration-mid) var(--ease-out);
}

.nav--scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--rule);
}

.nav--hidden { transform: translateY(-100%); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--s6);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color var(--duration-fast);
}

.nav--scrolled .nav__brand { color: var(--ink); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s6);
}

.nav__link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast);
}

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

.nav--scrolled .nav__link { color: var(--ink-muted); }
.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link--active { color: var(--ink); }

.nav__cta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  padding: 0.65rem 1.5rem;
  transition: all var(--duration-fast);
}

.nav__cta:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-1px);
}

.nav--scrolled .nav__cta {
  background: var(--ink);
  color: var(--white);
}

.nav--scrolled .nav__cta:hover {
  background: var(--teal-dark);
}

/* Hamburger */
.nav__toggle {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: transform var(--duration-fast), opacity var(--duration-fast), background var(--duration-fast);
}

.nav--scrolled .nav__toggle span { background: var(--ink); }

.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__toggle span:nth-child(3) { bottom: 0; }

.nav__toggle--open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav__toggle--open span:nth-child(2) { opacity: 0; }
.nav__toggle--open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: block; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--parchment);
    padding: var(--s6);
    gap: var(--s5);
    border-bottom: 1px solid var(--rule);
  }

  .nav__links--open { display: flex; }
}


/* --------------------------------------------------------------------------
   HERO — portrait-forward editorial layout
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.hero__image {
  position: relative;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 15%;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--ink));
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s10) var(--s8);
  position: relative;
  z-index: 1;
}

.hero__credentials {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--s5);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--s5);
}

.hero__rule {
  width: 48px;
  height: 1.5px;
  background: var(--gold);
  margin-bottom: var(--s5);
  border: none;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 32ch;
  margin-bottom: var(--s7);
}

.hero__actions {
  display: flex;
  gap: var(--s4);
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__image {
    height: 50vh;
    min-height: 400px;
  }

  .hero__image::after {
    background: linear-gradient(to top, var(--ink) 5%, transparent 50%);
  }

  .hero__content {
    padding: var(--s7) var(--s6);
  }
}


/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  transition: all var(--duration-fast);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91, 174, 164, 0.25);
}

.btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  transform: translateY(-1px);
}


/* --------------------------------------------------------------------------
   EDITORIAL GRID — asymmetric two-column
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: start;
}

.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split--wide { gap: var(--s10); }
.split--center { align-items: center; }

@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; gap: var(--s7); }
  .split--reverse { direction: ltr; }
}


/* --------------------------------------------------------------------------
   CREDENTIAL ROWS
   -------------------------------------------------------------------------- */
.credentials { margin-top: var(--s7); }

.credential-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s5);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.credential-row:last-child { border-bottom: none; }

.credential-row__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  min-width: 120px;
}

.credential-row__content { color: var(--ink); font-weight: 400; }
.credential-row__content strong { font-weight: 600; }

.block--dark .credential-row { border-color: var(--rule-light); }
.block--dark .credential-row__content { color: rgba(255, 255, 255, 0.7); }


/* --------------------------------------------------------------------------
   FEATURE CARDS — clean, spacious
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  gap: var(--s5);
}

.features--2 { grid-template-columns: 1fr 1fr; }
.features--3 { grid-template-columns: 1fr 1fr 1fr; }

.feature {
  padding: var(--s6);
  border: 1px solid var(--rule);
  transition: border-color var(--duration-mid) var(--ease-out);
}

.feature:hover { border-color: var(--teal); }

.block--dark .feature {
  border-color: var(--rule-light);
  color: rgba(255, 255, 255, 0.65);
}

.block--dark .feature h3 { color: var(--white); }
.block--dark .feature:hover { border-color: var(--teal); }

.feature__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--teal);
  line-height: 1;
  margin-bottom: var(--s4);
  opacity: 0.4;
}

.feature h3 { margin-bottom: var(--s3); }
.feature p { color: var(--ink-muted); font-size: 0.95rem; }

@media (max-width: 768px) {
  .features--2,
  .features--3 { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   PARTNER GRID — dark, minimal
   -------------------------------------------------------------------------- */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
}

.partner-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5) var(--s5);
  min-height: 80px;
  min-width: 160px;
  flex: 0 0 auto;
  border: 1px solid var(--rule-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  transition: color var(--duration-mid) var(--ease-out), border-color var(--duration-mid) var(--ease-out);
}

.partner-cell:hover {
  color: var(--white);
  border-color: var(--teal);
}

.text-center .partner-grid { justify-content: center; }

.partner-category {
  margin-bottom: var(--s8);
}

.partner-category__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s5);
}


/* --------------------------------------------------------------------------
   TIMELINE
   -------------------------------------------------------------------------- */
.timeline-list { margin-top: var(--s7); }

.timeline-entry {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--s5);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.timeline-entry:last-child { border-bottom: none; }

.timeline-entry__year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal);
}

.timeline-entry h3 {
  font-size: 1.2rem;
  margin-bottom: var(--s1);
}

.timeline-entry p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}


/* --------------------------------------------------------------------------
   PAGE HEADER — inner pages
   -------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--s11) + 20px) 0 var(--s9);
  background: var(--ink);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.25;
}

.page-hero .label { margin-bottom: var(--s4); }

.page-hero h1 {
  color: var(--white);
  margin-bottom: var(--s4);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}


/* --------------------------------------------------------------------------
   QUOTE BLOCK
   -------------------------------------------------------------------------- */
.quote-block {
  padding: var(--s7) 0;
  text-align: center;
  position: relative;
}

.quote-block::before,
.quote-block::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto var(--s5);
}

.quote-block::after {
  margin: var(--s5) auto 0;
}

.quote-block .display-quote {
  margin: 0 auto;
}


/* --------------------------------------------------------------------------
   CTA STRIP
   -------------------------------------------------------------------------- */
.cta-strip {
  padding: var(--s8) 0;
  background: var(--ink);
  text-align: center;
}

.cta-strip h2 { color: var(--white); margin-bottom: var(--s3); }
.cta-strip p { color: rgba(255, 255, 255, 0.5); margin: 0 auto var(--s6); }

.cta-strip__actions {
  display: flex;
  gap: var(--s4);
  justify-content: center;
  flex-wrap: wrap;
}


/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  padding: var(--s8) 0 var(--s6);
  background: var(--ink);
  border-top: 1px solid var(--rule-light);
}

.footer__upper {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: var(--s7);
  border-bottom: 1px solid var(--rule-light);
  margin-bottom: var(--s6);
  flex-wrap: wrap;
  gap: var(--s6);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}

.footer__nav {
  display: flex;
  gap: var(--s5);
  flex-wrap: wrap;
}

.footer__link {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--duration-fast);
}

.footer__link:hover { color: var(--teal); }

.footer__lower {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
}


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

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

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-left--visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-right--visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.4s; }


/* --------------------------------------------------------------------------
   UTILITY
   -------------------------------------------------------------------------- */
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.mt-7 { margin-top: var(--s7); }
.mt-8 { margin-top: var(--s8); }
.mb-5 { margin-bottom: var(--s5); }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.max-narrow { max-width: var(--measure-narrow); }


/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .block { padding: var(--s7) 0; }
  .block--compact { padding: var(--s6) 0; }
  .wrap { padding: 0 var(--s5); }

  .credential-row {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }

  .credential-row__tag { min-width: auto; }

  .timeline-entry {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }

  .footer__upper {
    flex-direction: column;
  }

  .footer__nav {
    flex-direction: column;
    gap: var(--s3);
  }

  .partner-cell {
    min-width: 130px;
  }
}


/* ==========================================================================
   DESIGN REFINEMENTS — applied after base styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   MOBILE NAV — legible dropdown on parchment background
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav:has(.nav__links--open) {
    background: var(--parchment);
  }

  .nav:has(.nav__links--open) .nav__brand {
    color: var(--ink);
  }

  .nav:has(.nav__links--open) .nav__toggle span {
    background: var(--ink);
  }

  .nav__links {
    box-shadow: 0 16px 40px rgba(27, 31, 34, 0.08);
  }

  .nav__links--open .nav__link {
    color: var(--ink-soft);
    font-size: 0.85rem;
    padding: var(--s3) 0;
  }

  .nav__links--open .nav__link:hover,
  .nav__links--open .nav__link--active {
    color: var(--ink);
  }

  .nav__links--open .nav__cta {
    background: var(--ink);
    color: var(--white);
    margin-top: var(--s2);
    align-self: stretch;
    text-align: center;
    justify-content: center;
  }

  .nav__links--open .nav__cta:hover {
    background: var(--teal-dark);
  }
}


/* --------------------------------------------------------------------------
   HERO — smoother gradient, top-left vignette to conceal watermark
   -------------------------------------------------------------------------- */
.hero__image::after {
  background:
    radial-gradient(
      ellipse 45% 30% at top left,
      rgba(27, 31, 34, 0.95) 0%,
      rgba(27, 31, 34, 0.7) 35%,
      rgba(27, 31, 34, 0) 75%
    ),
    linear-gradient(
      to right,
      rgba(27, 31, 34, 0) 0%,
      rgba(27, 31, 34, 0) 30%,
      rgba(27, 31, 34, 0.35) 65%,
      rgba(27, 31, 34, 0.85) 88%,
      var(--ink) 100%
    );
}

@media (max-width: 768px) {
  .hero__image img {
    object-position: 55% 20%;
  }

  .hero__actions {
    flex-wrap: wrap;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero__image::after {
    background:
      radial-gradient(
        ellipse 50% 22% at top left,
        rgba(27, 31, 34, 0.95) 0%,
        rgba(27, 31, 34, 0.7) 35%,
        rgba(27, 31, 34, 0) 75%
      ),
      linear-gradient(
        to top,
        var(--ink) 0%,
        rgba(27, 31, 34, 0.7) 12%,
        rgba(27, 31, 34, 0) 45%
      );
  }
}

.hero__content .reveal:nth-child(1) { transition-delay: 0s; }
.hero__content .reveal:nth-child(2) { transition-delay: 0.1s; }
.hero__content .reveal:nth-child(3) { transition-delay: 0.18s; }
.hero__content .reveal:nth-child(4) { transition-delay: 0.26s; }
.hero__content .reveal:nth-child(5) { transition-delay: 0.36s; }


/* --------------------------------------------------------------------------
   PAGE HERO — tighter rhythm, constrained measure
   -------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--s10) + 8px) 0 var(--s7);
}

.page-hero .wrap > * {
  max-width: 760px;
}

.page-hero .label {
  margin-bottom: var(--s4);
}

.page-hero h1 {
  margin-bottom: var(--s5);
}

.page-hero h1 + p {
  margin-top: 0;
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.01em;
}

.page-hero p + p {
  margin-top: var(--s3);
}

@media (max-width: 768px) {
  .page-hero {
    padding: calc(var(--s9) + 12px) 0 var(--s6);
  }
}


/* --------------------------------------------------------------------------
   SECTION HEADERS — consistent left-aligned rhythm
   -------------------------------------------------------------------------- */
.section-head {
  max-width: 760px;
  margin-bottom: var(--s7);
}

.section-head .label {
  margin-bottom: var(--s4);
}

.section-head h2 {
  margin-bottom: var(--s5);
}


/* --------------------------------------------------------------------------
   SPLIT — heading + content rhythm (left col narrower)
   -------------------------------------------------------------------------- */
.split {
  grid-template-columns: 5fr 6fr;
  gap: var(--s8);
}

.split--equal {
  grid-template-columns: 1fr 1fr;
}

.split--wide { gap: var(--s10); }

.split > div > h2,
.split > div > .label,
.split > div > p {
  max-width: 38ch;
}

.split > div:nth-child(2) > * {
  max-width: none;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--s7); }
  .split--equal { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   FEATURES — handle 5-item orphan cleanly
   -------------------------------------------------------------------------- */
.features--3:has(> .feature:nth-child(5):last-child) {
  grid-template-columns: repeat(6, 1fr);
}

.features--3:has(> .feature:nth-child(5):last-child) > .feature {
  grid-column: span 2;
}

.features--3:has(> .feature:nth-child(5):last-child) > .feature:nth-child(4),
.features--3:has(> .feature:nth-child(5):last-child) > .feature:nth-child(5) {
  grid-column: span 3;
}

@media (max-width: 900px) {
  .features--3:has(> .feature:nth-child(5):last-child),
  .features--3:has(> .feature:nth-child(5):last-child) > .feature {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}


/* --------------------------------------------------------------------------
   FEATURE STAGGER — reveal cards sequentially
   -------------------------------------------------------------------------- */
.features > .reveal:nth-child(1) { transition-delay: 0s; }
.features > .reveal:nth-child(2) { transition-delay: 0.08s; }
.features > .reveal:nth-child(3) { transition-delay: 0.16s; }
.features > .reveal:nth-child(4) { transition-delay: 0.24s; }
.features > .reveal:nth-child(5) { transition-delay: 0.32s; }
.features > .reveal:nth-child(6) { transition-delay: 0.4s; }


/* --------------------------------------------------------------------------
   PARTNER CATEGORY — magazine-index layout: label left, brands right
   -------------------------------------------------------------------------- */
.partner-category {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s7);
  padding: var(--s6) 0;
  margin: 0;
  align-items: baseline;
  border-bottom: 1px solid var(--rule-light);
}

.partner-category:first-of-type {
  padding-top: 0;
}

.partner-category:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.partner-category__title {
  margin: 0;
  padding-top: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .partner-category {
    grid-template-columns: 1fr;
    gap: var(--s3);
    padding: var(--s5) 0;
  }
  .partner-category__title {
    padding-top: 0;
  }
}


/* --------------------------------------------------------------------------
   CTA STRIP — constrained measure
   -------------------------------------------------------------------------- */
.cta-strip p {
  max-width: 48ch;
}


/* --------------------------------------------------------------------------
   CREDENTIAL ROW VARIANTS
   -------------------------------------------------------------------------- */
.credential-row--simple {
  grid-template-columns: 1fr;
}

.credential-row--simple .credential-row__content {
  padding-left: 0;
}


/* --------------------------------------------------------------------------
   HELPERS
   -------------------------------------------------------------------------- */
.center-block { margin-left: auto; margin-right: auto; }


/* --------------------------------------------------------------------------
   FEATURE CARDS — confident numbers, refined hover
   -------------------------------------------------------------------------- */
.feature {
  position: relative;
  transition: border-color var(--duration-mid) var(--ease-out),
              transform var(--duration-mid) var(--ease-out),
              box-shadow var(--duration-mid) var(--ease-out);
}

.feature__number {
  font-size: 2.4rem;
  opacity: 0.85;
  margin-bottom: var(--s5);
  position: relative;
  display: inline-block;
}

.feature__number::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.feature:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(27, 31, 34, 0.06);
}

.block--dark .feature:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}


/* --------------------------------------------------------------------------
   PARTNER GRID — editorial typography, no boxes
   -------------------------------------------------------------------------- */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  align-items: baseline;
}

.partner-cell {
  display: inline-block;
  padding: 0;
  min-height: 0;
  min-width: 0;
  border: none;
  background: none;
  box-shadow: none;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.5vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  transition: color var(--duration-fast);
  cursor: default;
}

.partner-cell:hover {
  color: var(--gold);
  box-shadow: none;
  border-color: transparent;
}

.text-center .partner-grid {
  justify-content: flex-start;
}


/* --------------------------------------------------------------------------
   QUOTE BLOCK — slightly more present accent lines
   -------------------------------------------------------------------------- */
.quote-block::before,
.quote-block::after {
  width: 64px;
  height: 1.5px;
  opacity: 0.85;
}


/* --------------------------------------------------------------------------
   CTA STRIP — more generous vertical breathing room
   -------------------------------------------------------------------------- */
.cta-strip {
  padding: var(--s9) 0;
}

.cta-strip h2 {
  margin-bottom: var(--s4);
}


/* --------------------------------------------------------------------------
   FOOTER — better link contrast
   -------------------------------------------------------------------------- */
.footer__link {
  color: rgba(255, 255, 255, 0.6);
}

.footer__lower {
  color: rgba(255, 255, 255, 0.35);
}


/* --------------------------------------------------------------------------
   CREDENTIAL ROWS — subtle warmth on hover
   -------------------------------------------------------------------------- */
.credential-row {
  transition: border-color var(--duration-fast);
}

.credential-row:hover {
  border-bottom-color: var(--gold);
}


/* --------------------------------------------------------------------------
   NAV — refined brand
   -------------------------------------------------------------------------- */
.nav__brand {
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* --------------------------------------------------------------------------
   BUTTONS — slightly more presence
   -------------------------------------------------------------------------- */
.btn {
  padding: 1rem 2.1rem;
  font-size: 0.74rem;
}

.btn--primary:hover {
  box-shadow: 0 8px 22px rgba(91, 174, 164, 0.32);
}


/* --------------------------------------------------------------------------
   RULES — slightly more confident
   -------------------------------------------------------------------------- */
.rule--gold,
.rule--teal {
  width: 56px;
  height: 2px;
}


/* --------------------------------------------------------------------------
   TIMELINE — better visual rhythm
   -------------------------------------------------------------------------- */
.timeline-entry {
  transition: padding-left var(--duration-mid) var(--ease-out),
              border-bottom-color var(--duration-fast);
}

.timeline-entry__year {
  letter-spacing: 0.04em;
}


/* ==========================================================================
   FINAL COMMIT — centred, billion-dollar editorial
   Overrides earlier left-aligned experiments. One accent: gold.
   ========================================================================== */

/* --------------------------------------------------------------------------
   RULES — single accent style, always centred
   -------------------------------------------------------------------------- */
.rule--gold,
.rule--teal {
  width: 56px;
  height: 1.5px;
  background: var(--gold);
  margin-left: auto;
  margin-right: auto;
  border: none;
  display: block;
}

.block--dark .rule--gold,
.block--dark .rule--teal {
  background: var(--gold);
  opacity: 0.85;
}


/* --------------------------------------------------------------------------
   HERO — content centred
   -------------------------------------------------------------------------- */
.hero__content {
  text-align: center;
  align-items: center;
}

.hero__credentials {
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  margin-left: auto;
  margin-right: auto;
}

.hero__rule {
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  justify-content: center;
}


/* --------------------------------------------------------------------------
   PAGE HERO — centred
   -------------------------------------------------------------------------- */
.page-hero .wrap {
  text-align: center;
}

.page-hero .wrap > * {
  margin-left: auto;
  margin-right: auto;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero h1 + p {
  max-width: 60ch;
}


/* --------------------------------------------------------------------------
   SECTION HEAD — universal pattern, centred
   -------------------------------------------------------------------------- */
.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto var(--s8);
}

.section-head .label {
  margin-bottom: var(--s4);
}

.section-head h2 {
  margin-bottom: var(--s5);
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.section-head .lead,
.section-head > p {
  margin-top: var(--s5);
  margin-left: auto;
  margin-right: auto;
  max-width: 56ch;
}


/* --------------------------------------------------------------------------
   FEATURE CARDS — centred text, more generous padding
   -------------------------------------------------------------------------- */
.feature {
  text-align: center;
  padding: var(--s7) var(--s5);
}

.feature__number {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}

.feature__number::after {
  left: 50%;
  transform: translateX(-50%);
}

.feature h3 {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--s3);
}

.feature p {
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}


/* --------------------------------------------------------------------------
   CREDENTIAL ROW — stacked, centred
   -------------------------------------------------------------------------- */
.credentials {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.credential-row {
  grid-template-columns: 1fr;
  text-align: center;
  gap: var(--s2);
  padding: var(--s5) 0;
}

.credential-row__tag {
  min-width: 0;
  display: block;
  margin-bottom: 0;
  color: var(--gold);
}

.credential-row__content {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}


/* --------------------------------------------------------------------------
   TIMELINE — stacked, centred
   -------------------------------------------------------------------------- */
.timeline-list {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-entry {
  grid-template-columns: 1fr;
  text-align: center;
  gap: var(--s1);
  padding: var(--s5) 0;
}

.timeline-entry:hover {
  padding-left: 0;
  border-bottom-color: var(--gold);
}

.timeline-entry__year {
  display: block;
  color: var(--gold);
  margin-bottom: var(--s2);
}

.timeline-entry h3 {
  margin: 0 auto var(--s1);
  max-width: 38ch;
}

.timeline-entry p {
  margin: 0 auto;
  max-width: 48ch;
}


/* --------------------------------------------------------------------------
   PARTNER CATEGORY — stacked, centred
   -------------------------------------------------------------------------- */
.partner-category {
  display: block;
  text-align: center;
  padding: var(--s6) 0;
  margin: 0;
  border-bottom: 1px solid var(--rule-light);
}

.partner-category:first-of-type {
  padding-top: 0;
}

.partner-category:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.partner-category__title {
  margin: 0 auto var(--s5);
  display: block;
}

.partner-grid {
  justify-content: center;
}


/* --------------------------------------------------------------------------
   QUOTE BLOCK — already centred, refine
   -------------------------------------------------------------------------- */
.quote-block .label {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--s5) !important;
}

.quote-block .display-quote {
  margin: 0 auto;
}


/* --------------------------------------------------------------------------
   CTA STRIP
   -------------------------------------------------------------------------- */
.cta-strip h2,
.cta-strip p {
  margin-left: auto;
  margin-right: auto;
}

.cta-strip h2 {
  max-width: 22ch;
}


/* --------------------------------------------------------------------------
   FOOTER — centred composition
   -------------------------------------------------------------------------- */
.footer {
  padding: var(--s9) 0 var(--s6);
}

.footer__upper {
  flex-direction: column;
  align-items: center;
  gap: var(--s5);
  text-align: center;
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: var(--s7);
}

.footer__nav {
  justify-content: center;
}

.footer__lower {
  text-align: center;
  margin-top: var(--s5);
  max-width: none;
}

.footer__lower a {
  color: var(--teal);
  transition: color var(--duration-fast);
}

.footer__lower a:hover {
  color: var(--white);
}


/* --------------------------------------------------------------------------
   BLOCKS — one body colour, centred default
   -------------------------------------------------------------------------- */
.block--warm {
  background: var(--parchment);
}

.block {
  text-align: center;
}

.block .wrap > h2,
.block .wrap > .label,
.block .wrap > p {
  margin-left: auto;
  margin-right: auto;
}

.block h2 {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.block .wrap > .label + h2 {
  margin-top: var(--s4);
}

.block .wrap > h2 + .rule {
  margin-top: var(--s5);
}


/* --------------------------------------------------------------------------
   SPLIT — disabled (hero is the only split now)
   Keep the .split styles intact so the hero still works,
   but inner page sections no longer use .split markup.
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   FEATURE GRID — keep stagger, but centre rows of 5 cleanly
   -------------------------------------------------------------------------- */
.features {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}


/* --------------------------------------------------------------------------
   HERO image position — push down/right to crop watermark further
   -------------------------------------------------------------------------- */
.hero__image img {
  object-position: 55% 30%;
}

@media (max-width: 768px) {
  .hero__image img {
    object-position: 55% 15%;
  }
}


/* --------------------------------------------------------------------------
   PORTRAIT FEATURE — centred image used on about page
   -------------------------------------------------------------------------- */
.portrait-feature {
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.portrait-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait-lead {
  max-width: 56ch;
  margin: var(--s7) auto 0;
  text-align: center;
}


/* --------------------------------------------------------------------------
   ONE ACCENT — gold for editorial detail, teal only on buttons
   -------------------------------------------------------------------------- */
.label,
.label--gold {
  color: var(--gold);
}

.feature__number {
  color: var(--gold);
  opacity: 0.7;
}

.feature__number::after {
  background: var(--gold);
}

.feature:hover {
  border-color: var(--gold);
}

.block--dark .feature:hover {
  border-color: var(--gold);
}

.credential-row:hover {
  border-bottom-color: var(--gold);
}

.timeline-entry:hover {
  border-bottom-color: var(--gold);
}

.partner-cell:hover {
  color: var(--gold);
}

.footer__link:hover {
  color: var(--gold);
}

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

.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link--active {
  color: var(--ink);
}

/* page hero bottom seam — single warm tone */
.page-hero::after {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}


/* --------------------------------------------------------------------------
   MOBILE — adjustments for centred composition
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section-head {
    margin-bottom: var(--s7);
  }

  .feature {
    padding: var(--s6) var(--s5);
  }

  .credential-row {
    padding: var(--s4) 0;
  }

  .partner-category {
    padding: var(--s5) 0;
  }

  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s4) var(--s5);
  }
}


/* --------------------------------------------------------------------------
   CONTACT FORM
   -------------------------------------------------------------------------- */
.contact-form {
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
}

.contact-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.contact-form__group {
  margin-bottom: var(--s5);
}

.contact-form__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s2);
}

.contact-form__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  padding: var(--s4);
  transition: border-color var(--duration-fast);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

.contact-form__submit {
  width: 100%;
  margin-top: var(--s4);
}

.contact-form__status {
  margin-top: var(--s5);
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.6em;
}

.contact-form__status--success {
  color: var(--teal-dark);
}

.contact-form__status--error {
  color: #b44;
}

.contact-form__input--error {
  border-color: #b44;
}
