/* ---------------------------------------------------------
   Tokens
--------------------------------------------------------- */
:root {
  --bg: #0b0b0c;
  --bg-alt: #141415;
  --fg: #f5f4f1;
  --fg-muted: #b8b6b1;
  --paper: #f7f5f1;
  --ink: #171614;
  --accent: #d21f2c;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-height: 88px;
  --container-max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; }

/* ---------------------------------------------------------
   Hero header
--------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  /* Slightly taller than the source photo's native ratio (3168x1344 ≈
     2.357:1) so the header reads a bit more substantial. object-fit:
     cover on .hero-img crops the excess width off the right side (see
     object-position below), which is safe because that's plain black
     background in the photo, not the subject. */
  aspect-ratio: 3168 / 1500;
  max-height: 92vh;
  min-height: 460px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Biased left so the subject stays fully framed; the crop eats into
     the black area on the right instead. */
  object-position: 38% top;
}

/* Subtle gradients so the nav and slider text stay legible regardless
   of the exact tonal range of the photo you drop in. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.hero::before {
  top: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
}

.hero::after {
  bottom: 0;
  height: 140px;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0));
}

/* ---------------------------------------------------------
   Nav (overlaid on the hero photo)
--------------------------------------------------------- */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-signature {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  opacity: .9;
  transition: opacity .2s ease;
}

.nav-links a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
}

/* ---------------------------------------------------------
   Hero slider (titles/subtitles rotating in the dark
   right-hand portion of the header photo)
--------------------------------------------------------- */
.hero-slider {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  width: min(38%, 480px);
  text-align: left;
}

.slide-track {
  position: relative;
  min-height: 8em;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
  /* Keeps text rasterization stable during the opacity animation so it
     doesn't shimmer/ghost mid-fade (a common artifact when browsers
     re-rasterize antialiased text on every animation frame). */
  will-change: opacity;
  backface-visibility: hidden;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease;
}

.slide-quote {
  margin: 0 0 .5em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.35;
  color: #fff;
}

.slide-source {
  margin: 0;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

.slide-dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.slide-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.35);
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.slide-dots button.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

/* ---------------------------------------------------------
   Content sections
--------------------------------------------------------- */
.section { padding: 96px 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.4;
  max-width: 760px;
  margin: 0;
}

.lead-secondary {
  margin-top: 24px;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  color: #4a4744;
}

.section-about { background: var(--paper); }

.section-highlights { background: var(--bg-alt); color: var(--fg); }
.section-highlights .eyebrow { color: var(--accent); }

.card-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.card {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 32px;
}

.card h3 {
  font-family: var(--font-serif);
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: .95rem;
}

.section-newsletter { background: var(--paper); }

.newsletter-form {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  max-width: 460px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid #d8d5cf;
  border-radius: 4px;
  font-size: .95rem;
  font-family: var(--font-sans);
}

.newsletter-form button {
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s ease;
}

.newsletter-form button:hover { background: var(--accent); }
.newsletter-form button:disabled { opacity: .6; cursor: default; }

/* Honeypot field: present in the DOM for bots to fill, invisible and
   unreachable for real visitors (not display:none, which some bots skip). */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin: 12px 0 0;
  font-size: .9rem;
  min-height: 1.2em;
}

.form-status.is-success { color: #1a7a3c; }
.form-status.is-error { color: var(--accent); }

.newsletter-alt {
  margin-top: 20px;
  font-size: .85rem;
  color: #7a766f;
}

.newsletter-alt a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer {
  background: var(--bg);
  color: var(--fg-muted);
  padding: 32px 0;
  font-size: .85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--fg); }

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    /* A fixed aspect ratio (rather than a viewport-height-based height)
       keeps the crop consistent across phones. height:78vh previously
       made the crop depend on the device's actual screen height, which
       cropped away far more of the photo's width on tall-screened
       phones than on the ones this was tested against, pushing her
       face out of frame entirely on some devices. */
    aspect-ratio: 4 / 6.3;
    max-height: 85vh;
    min-height: 520px;
  }

  .hero-img {
    /* On a narrow/tall viewport, cover shows the photo's full height and
       crops width instead of the other way around, so the desktop
       object-position (biased for a wide crop) misses her face entirely.
       Anchor closer to where her face actually sits in the source photo. */
    object-position: 24% top;
  }

  .hero-slider {
    /* Anchored near the bottom, below where her face sits, instead of
       vertically centered (which overlapped her face). */
    top: auto;
    bottom: 3%;
    transform: none;
    width: auto;
    left: 6%;
    right: 6%;
  }

  .slide-quote {
    font-size: clamp(1.05rem, 4.8vw, 1.4rem);
    margin-bottom: .35em;
  }

  .slide-source {
    font-size: .7rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11,11,12,.97);
    flex-direction: column;
    gap: 0;
    /* padding lives only in the .is-open state below — padding on the
       closed element isn't clipped by max-height:0, so it was rendering
       as a permanent thin dark strip under the nav even when "closed". */
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, padding .25s ease;
  }

  .nav-links.is-open {
    max-height: 320px;
    padding: 8px 0;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 40px;
  }

  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .site-nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .newsletter-form { flex-direction: column; }
}
