/* ==========================================================================
   Samiyah Ali — Brand Site
   Design system: white, black, very light gray — no gold or beige fills
   Typography: Playfair Display (serif, editorial) + Inter (sans, clean)
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------
     Brand palette — Final Build Correction
     Primary: white / black only. Secondary: very light gray for subtle
     section separation. Borders: light gray hairline. No beige, cream,
     ivory, tan, sand, warm-neutral, or gold fills/buttons. Metallic
     accents may return later through approved photography, typography,
     or the official logo — not through UI color.
     ------------------------------------------------------------------ */
  --color-white: #ffffff;
  --color-black: #0a0a0a;
  --color-ink-70: rgba(10, 10, 10, 0.7);
  --color-ink-50: rgba(10, 10, 10, 0.5);
  --color-ink-30: rgba(10, 10, 10, 0.3);
  --color-ink-12: rgba(10, 10, 10, 0.12);
  --color-ink-08: rgba(10, 10, 10, 0.08);

  --color-mist: #f5f5f5;          /* subtle section separation only */
  --color-border: #d9d9d9;        /* hairline borders */
  --color-white-rgb: 255, 255, 255;

  /* Typography */
  --font-serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step-xs: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-sm: clamp(0.92rem, 0.9rem + 0.15vw, 1rem);
  --step-base: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
  --step-md: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);
  --step-lg: clamp(1.8rem, 1.5rem + 1.2vw, 2.6rem);
  --step-xl: clamp(2.4rem, 1.9rem + 2vw, 3.6rem);
  --step-2xl: clamp(3rem, 2.2rem + 3.2vw, 5rem);

  /* Layout */
  --container: 1240px;
  --container-narrow: 860px;
  --gutter: clamp(1.5rem, 4vw, 4.5rem);
  --section-pad: clamp(4.5rem, 5vw + 2rem, 9rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.9s;

  --radius: 2px;
  --shadow-soft: 0 20px 60px -30px rgba(28, 26, 23, 0.25);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: var(--step-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-black);
  color: var(--color-white);
  padding: 0.9em 1.4em;
  z-index: 1000;
  font-size: 0.95rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-pad); }
.section--tight { padding-block: calc(var(--section-pad) * 0.6); }
.section--muted { background: var(--color-mist); }
.section--black {
  background: var(--color-black);
  color: var(--color-white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: var(--step-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-black);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--color-black);
  display: inline-block;
}
.section--black .eyebrow,
.section--black .eyebrow::before { color: var(--color-white); background: var(--color-white); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 3vw, 4rem);
}
.section-head h2 {
  font-size: var(--step-xl);
  margin-top: 0.9rem;
}
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1em 2.1em;
  font-family: var(--font-sans);
  font-size: var(--step-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 0.4s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}
.btn-primary:hover { background: #2b2b2b; border-color: #2b2b2b; color: var(--color-white); }

/* Reversed outline button for text over photography (cinematic hero) */
.btn-invert {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-invert:hover { background: var(--color-white); color: var(--color-black); border-color: var(--color-white); }

.btn-outline {
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-ink-30);
}
.btn-outline:hover { border-color: var(--color-black); background: var(--color-black); color: var(--color-white); }

.section--black .btn-outline { color: var(--color-white); border-color: rgba(var(--color-white-rgb),0.35); }
.section--black .btn-outline:hover { background: var(--color-white); color: var(--color-black); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 500;
  padding-block: 1.4rem;
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(var(--color-white-rgb), 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  padding-block: 0.85rem;
  border-color: var(--color-border);
}
.site-header .container {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.site-header .brand-logo img {
  width: clamp(190px, 17vw, 285px);
  height: auto;
  max-height: 82px;
  object-fit: contain;
}
.brand-mark-word {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--color-black);
}

/* Header over the cinematic hero: swap to the light logo + white nav until
   the visitor scrolls past the hero (site-header.is-scrolled kicks in). */
.brand-logo-img--light { display: none; }
.site-header--on-dark:not(.is-scrolled) .brand-logo-img--dark { display: none; }
.site-header--on-dark:not(.is-scrolled) .brand-logo-img--light { display: block; }
.site-header--on-dark:not(.is-scrolled) .nav-primary a { color: var(--color-white); }
.site-header--on-dark:not(.is-scrolled) .nav-primary a[aria-current="page"] { color: var(--color-white); }
.site-header--on-dark:not(.is-scrolled) .nav-toggle span { background: var(--color-white); }
.site-header--on-dark:not(.is-scrolled) .btn-primary.nav-cta {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--color-white);
}
.site-header--on-dark:not(.is-scrolled) .btn-primary.nav-cta:hover {
  background: var(--color-white);
  color: var(--color-black);
}

.nav-primary { display: none; }
.nav-primary ul { display: flex; align-items: center; gap: clamp(1.6rem, 2.4vw, 2.8rem); }
.nav-primary a {
  text-decoration: none;
  font-size: var(--step-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-black);
  position: relative;
  padding-block: 0.3rem;
}
.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--color-black);
  transition: right var(--dur) var(--ease);
}
.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after { right: 0; }
.nav-primary a[aria-current="page"] { color: var(--color-black); }

.nav-cta { display: none; }

.nav-toggle {
  background: none;
  border: none;
  padding: 0.4rem;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 26px;
  height: 1px;
  background: var(--color-black);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 600;
  display: flex;
  flex-direction: column;
  padding: 6.5rem var(--gutter) 3rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 1.6rem; }
.mobile-nav a {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--color-black);
}
.mobile-nav-close {
  position: absolute;
  top: 1.6rem;
  right: var(--gutter);
  background: none;
  border: none;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mobile-nav-foot {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--color-ink-12);
}

@media (min-width: 960px) {
  .nav-primary { display: block; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(7rem, 10vw, 9rem);
  background: var(--color-white);
}
.hero .container {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; }
  .hero--reverse .container { grid-template-columns: 0.95fr 1.05fr; }
  .hero--reverse .hero-media { order: 2; }
}

.hero-eyebrow { margin-bottom: 1.4rem; }
.hero h1 {
  font-size: var(--step-2xl);
  color: var(--color-black);
}
.hero-sub {
  margin-top: 1.5rem;
  font-size: var(--step-md);
  color: var(--color-ink-70);
  max-width: 36rem;
  font-weight: 400;
}
.hero .btn-row { margin-top: 2.6rem; }

.hero-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Image placeholder component ---------- */
.img-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(var(--color-mist), var(--color-mist));
  border: 1px solid var(--color-border);
}
.img-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--color-border);
}
.img-frame-label {
  position: relative;
  padding: 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--step-xs);
  letter-spacing: 0.08em;
  color: var(--color-ink-50);
  max-width: 22rem;
}
.img-frame-label strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-black);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

/* ---------- Cinematic hero (Home page) ---------- */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-black);
}
.hero-cinematic-media {
  position: absolute;
  inset: 0;
}
.hero-cinematic-media img,
.hero-cinematic-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-cinematic-scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.46);
}
.hero-cinematic-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding-block: clamp(6rem, 12vw, 8rem);
}
.hero-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(3rem, 5vw + 2rem, 7.5rem);
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1;
}
.hero-tagline {
  margin-top: 1.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1vw + 1.2rem, 2rem);
  color: rgba(255,255,255,0.92);
}
.hero-roles {
  margin-top: 1.4rem;
  font-size: var(--step-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.hero-cinematic .btn-row { justify-content: center; margin-top: 2.6rem; }
.hero-cinematic .scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.5);
}
.hero-cinematic .scroll-cue::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 5px; height: 5px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--color-white);
  animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { top: 0; opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cinematic .scroll-cue::after { animation: none; top: 60%; }
}

/* ---------- Story carousel ---------- */
.carousel {
  position: relative;
}
.carousel-track {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-black);
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
}
.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide img.is-contained {
  object-fit: contain;
  background: var(--color-black);
}
.carousel-caption {
  position: absolute;
  left: clamp(1.5rem, 4vw, 4rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 4vw, 4rem);
  color: var(--color-white);
}
.carousel-caption p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.7rem);
  max-width: 34rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--color-ink-30);
  background: transparent;
  padding: 0;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.carousel-dots button.is-active {
  background: var(--color-black);
  border-color: var(--color-black);
}

/* ---------- Gallery / Affiliations grids ---------- */
.gallery-grid {
  display: grid;
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid .img-frame,
.gallery-grid img {
  aspect-ratio: 4/5;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.affiliations-grid {
  display: grid;
  gap: 1px;
  background: var(--color-ink-12);
  border: 1px solid var(--color-ink-12);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .affiliations-grid { grid-template-columns: repeat(4, 1fr); } }
.affiliations-item {
  background: var(--color-white);
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.affiliations-item img { max-height: 60px; width: auto; }

/* ---------- Welcome / editorial text ---------- */
.editorial {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
}
@media (min-width: 860px) {
  .editorial--split { grid-template-columns: 0.8fr 1.2fr; }
}
.editorial-lede {
  font-family: var(--font-serif);
  font-size: var(--step-lg);
  color: var(--color-black);
  line-height: 1.3;
}
.editorial-body p { margin-bottom: 1.4rem; color: var(--color-ink-70); }
.editorial-body p:last-child { margin-bottom: 0; }
.editorial-body .line-emph {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2em;
  color: var(--color-black);
}
.signature {
  margin-top: 2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-black);
}

/* ---------- Quote block ---------- */
.quote-block { text-align: center; }
.quote-block blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 2vw + 1.2rem, 3.2rem);
  line-height: 1.35;
  max-width: 54rem;
  margin-inline: auto;
  color: var(--color-black);
}
.quote-rule {
  width: 3rem;
  height: 1px;
  background: var(--color-black);
  margin: 2rem auto 0;
}

/* ---------- Ecosystem / cards ---------- */
.card-grid {
  display: grid;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1180px) {
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.eco-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: clamp(2rem, 2.5vw, 2.6rem) clamp(1.6rem, 2vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.eco-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--color-black); }
.eco-card-mark { height: 46px; display: flex; align-items: center; }
.eco-card-mark img, .eco-card-mark svg { max-height: 100%; width: auto; }
.eco-card-mark--photo {
  height: 84px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 0.2rem;
}
.eco-card-mark--photo img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.eco-card-mark--wordmark {
  height: auto;
  align-items: flex-start;
  width: 100%;
}
.eco-card-mark--wordmark span {
  display: block;
  width: 100%;
  font-family: "Montserrat", var(--font-sans);
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-black);
}
.eco-card h3 { font-size: var(--step-md); }
.eco-card p { color: var(--color-ink-70); font-size: var(--step-sm); }

/* ---------- Philosophy / values list ---------- */
.belief-list { display: flex; flex-direction: column; }
.belief-list li {
  padding-block: 1.5rem;
  border-top: 1px solid var(--color-ink-12);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: baseline;
}
.belief-list li:last-child { border-bottom: 1px solid var(--color-ink-12); }
.belief-list .num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-black);
  font-size: var(--step-sm);
}
.belief-list p {
  font-family: var(--font-serif);
  font-size: var(--step-md);
  color: var(--color-black);
}

.value-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}
.value-tags li {
  font-size: var(--step-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7em 1.2em;
  border: 1px solid var(--color-ink-12);
  color: var(--color-ink-70);
}

/* ---------- Two-column bullet list (affiliations / recognitions) ---------- */
.bullet-columns {
  display: grid;
  gap: 0.9rem 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .bullet-columns { grid-template-columns: 1fr 1fr; } }
.bullet-columns li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-ink-70);
  font-size: var(--step-sm);
  line-height: 1.5;
}
.bullet-columns li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--color-black);
}

/* ---------- Invitation / CTA band ---------- */
.invite {
  text-align: center;
}
.invite h2 { font-size: var(--step-xl); }
.invite p {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  color: var(--color-ink-70);
  font-size: var(--step-md);
}
.invite .btn-row { justify-content: center; margin-top: 2.4rem; }

/* ---------- Two column info (mission/vision) ---------- */
.info-columns {
  display: grid;
  gap: clamp(1.8rem, 3vw, 3rem);
}
@media (min-width: 780px) { .info-columns { grid-template-columns: 1fr 1fr; } }
.info-card {
  padding: clamp(2rem, 2.5vw, 3rem);
  background: var(--color-white);
  border-top: 2px solid var(--color-black);
}
.info-card h3 { font-size: var(--step-md); margin-bottom: 1rem; }
.info-card p { color: var(--color-ink-70); }

/* ---------- Highlights grid ---------- */
.highlight-grid {
  display: grid;
  gap: 1px;
  background: var(--color-ink-12);
  border: 1px solid var(--color-ink-12);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .highlight-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .highlight-grid { grid-template-columns: repeat(6, 1fr); } }
.highlight-item {
  background: var(--color-white);
  padding: 2rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
  min-height: 150px;
}
.highlight-item .mark {
  width: 34px; height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-black);
  font-family: var(--font-serif);
  font-style: italic;
}
.highlight-item span { font-size: var(--step-xs); letter-spacing: 0.06em; color: var(--color-ink-70); }

/* ---------- Community strip ---------- */
.community-grid {
  display: grid;
  gap: clamp(1.2rem, 2vw, 2rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 780px) { .community-grid { grid-template-columns: repeat(5, 1fr); } }
.community-item {
  text-align: center;
  padding: 1.6rem 1rem;
}
.community-item p {
  margin-top: 0.9rem;
  font-size: var(--step-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-70);
}

/* ---------- Book hero (Decide page) ---------- */
.book-hero .hero-media { aspect-ratio: 3 / 4.4; max-width: 340px; margin-inline: auto; box-shadow: var(--shadow-soft); }
.book-hero h1 {
  font-size: clamp(2.6rem, 2.2rem + 3vw, 5.2rem);
  letter-spacing: 0.03em;
}
.book-hero .hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-lg);
  color: var(--color-black);
  margin-top: 0.6rem;
}
.book-hero .desc { margin-top: 1.6rem; color: var(--color-ink-70); max-width: 34rem; }

/* ---------- Ways grid (Stay Connected) ---------- */
.ways-grid {
  display: grid;
  gap: 1px;
  background: var(--color-ink-12);
  border: 1px solid var(--color-ink-12);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ways-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ways-grid { grid-template-columns: repeat(4, 1fr); } }
.ways-item {
  background: var(--color-white);
  padding: 2.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.ways-item h3 { font-size: 1.15rem; }
.ways-item p { color: var(--color-ink-70); font-size: var(--step-sm); flex-grow: 1; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: var(--step-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-black);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.2rem;
  width: fit-content;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.text-link:hover { color: var(--color-black); border-color: var(--color-black); }
.text-link::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Form ---------- */
.contact-panel {
  display: grid;
  gap: clamp(2.5rem, 4vw, 5rem);
}
@media (min-width: 900px) { .contact-panel { grid-template-columns: 1.1fr 0.9fr; } }

.form-field { margin-bottom: 1.5rem; }
.form-field label {
  display: block;
  font-size: var(--step-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--color-ink-70);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-ink-30);
  background: transparent;
  padding: 0.7em 0.1em;
  color: var(--color-black);
  transition: border-color 0.3s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-black);
  outline: none;
}
.form-note {
  font-size: var(--step-xs);
  color: var(--color-ink-50);
  margin-top: 1rem;
}
.form-status[hidden] { display: none; }
.form-status {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  background: var(--color-mist);
  font-size: var(--step-sm);
}

.contact-meta dt {
  font-size: var(--step-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-50);
  margin-top: 1.6rem;
}
.contact-meta dt:first-child { margin-top: 0; }
.contact-meta dd {
  margin: 0.3rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}
.contact-meta a { text-decoration: none; border-bottom: 1px solid var(--color-border); }
.contact-meta a:hover { border-color: var(--color-black); }

.social-row { display: flex; gap: 1rem; margin-top: 1.6rem; }
.social-row a {
  width: 42px; height: 42px;
  border: 1px solid var(--color-ink-12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  text-decoration: none;
}
.social-row a:hover { background: var(--color-black); border-color: var(--color-black); }
.social-row a:hover svg { stroke: var(--color-white); }
.social-row svg { width: 18px; height: 18px; stroke: var(--color-black); transition: stroke var(--dur) var(--ease); }

/* ---------- Closing statement ---------- */
.closing-statement {
  text-align: center;
}
.closing-statement p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2.1rem);
  max-width: 46rem;
  margin-inline: auto;
  color: var(--color-white);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding-block: clamp(3rem, 4vw, 5rem) 2.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(var(--color-white-rgb),0.14);
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { color: rgba(var(--color-white-rgb),0.65); margin-top: 1rem; max-width: 26rem; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: var(--step-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col a { text-decoration: none; color: rgba(var(--color-white-rgb),0.8); font-size: var(--step-sm); }
.footer-col a:hover { color: var(--color-white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  font-size: var(--step-xs);
  color: rgba(var(--color-white-rgb),0.5);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
.footer-legal a {
  color: rgba(var(--color-white-rgb),0.6);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--color-white); }
.footer-social {
  display: flex;
  gap: 0.8rem;
}
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(var(--color-white-rgb),0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-social a:hover { background: var(--color-white); border-color: var(--color-white); }
.footer-social svg { width: 15px; height: 15px; stroke: var(--color-white); }
.footer-social a:hover svg { stroke: var(--color-black); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 0.05s; }
.reveal-2 { transition-delay: 0.15s; }
.reveal-3 { transition-delay: 0.25s; }
.reveal-4 { transition-delay: 0.35s; }

/* ---------- Simple legal pages (Privacy / Terms / Accessibility) ---------- */
.legal-content h2 {
  font-size: var(--step-lg);
  margin-top: 3rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  margin-top: 1rem;
  color: var(--color-ink-70);
}
.legal-content p:first-of-type { margin-top: 1.6rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
