/* ==========================================================================
   Evans Gyakye — Personal Brand Website
   Brand palette: Deep Charcoal / Warm Ivory / Muted Gold
   ========================================================================== */

:root {
  --charcoal: #111111;
  --charcoal-soft: #2a2a2a;
  --ivory: #f5f1e8;
  --ivory-deep: #ece5d4;
  --gold: #b89b5e;
  --gold-deep: #93783f;
  --grey: #5a5a55;
  --white: #ffffff;

  --font-serif: "Playfair Display", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max-width: 1120px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(17,17,17,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--charcoal);
}
.nav-links {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--gold-deep); border-color: var(--gold); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--charcoal);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--ivory);
    flex-direction: column;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    border-bottom: 1px solid rgba(17,17,17,0.08);
    display: none;
  }
  .nav-links.is-open { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--charcoal);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-primary { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--ivory); transform: translateY(-1px); }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: 0.03em;
  font-weight: 600;
  color: var(--charcoal-soft);
  margin-bottom: 1.75rem;
}
.hero-body { max-width: 720px; margin-inline: auto; font-size: 1.05rem; color: var(--charcoal-soft); }
.hero-signoff { font-family: var(--font-serif); font-style: italic; margin-top: 2rem; font-size: 1.15rem; }
.hero-headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--gold);
  box-shadow: 0 10px 24px rgba(17,17,17,0.12);
}

/* ---------- Page loader (book-flip) ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.book-loader { position: relative; width: 72px; height: 52px; perspective: 320px; }
.book-loader .cover-half {
  position: absolute; top: 0; bottom: 0; width: 36px;
  background: var(--charcoal); border: 1px solid var(--gold);
}
.book-loader .cover-half.left { left: 0; border-radius: 4px 0 0 4px; }
.book-loader .cover-half.right { right: 0; border-radius: 0 4px 4px 0; background: var(--ivory-deep); }
.book-loader .page {
  position: absolute; top: 2px; bottom: 2px; left: 36px; width: 34px;
  background: var(--ivory); border: 1px solid var(--gold); border-radius: 0 3px 3px 0;
  transform-origin: left center;
  animation: page-flip 1.6s ease-in-out infinite;
}
.loader-label {
  font-family: var(--font-serif); font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--charcoal-soft);
}
@keyframes page-flip {
  0% { transform: rotateY(0deg); }
  40% { transform: rotateY(-165deg); }
  55% { transform: rotateY(-165deg); }
  95% { transform: rotateY(0deg); }
  100% { transform: rotateY(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader { transition: none; }
  .book-loader .page { animation: none; }
}

/* ---------- Section shell ---------- */
section { padding-block: clamp(3rem, 7vw, 4.5rem); }
section:nth-of-type(even) { background: var(--ivory-deep); }

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin: 0 0 0.75rem;
}
.section-head p { color: var(--grey); margin: 0; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 14px;
  padding: 1.75rem;
}
.card h3 { font-family: var(--font-serif); margin: 0.25rem 0 0.6rem; font-size: 1.15rem; }
.card p { color: var(--grey); margin: 0; font-size: 0.96rem; }
.card-index {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ---------- Book feature ---------- */
.book-feature {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 620px) { .book-feature { grid-template-columns: 1fr; } }
.book-cover-slot {
  aspect-ratio: 3 / 4.5;
  border: 1.5px dashed rgba(17,17,17,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--grey);
  font-size: 0.85rem;
  padding: 1rem;
  background: var(--ivory-deep);
}
.book-feature h3 { font-family: var(--font-serif); font-size: 1.6rem; margin: 0 0 0.25rem; }
.book-feature .book-byline { color: var(--gold-deep); font-weight: 600; margin-bottom: 1rem; }
.purchase-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.purchase-list a {
  text-decoration: none;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.purchase-list a:hover { background: var(--charcoal); color: var(--ivory); }

/* ---------- Quote ---------- */
.quote-block {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.quote-block blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin: 0 0 1.5rem;
}

/* ---------- Areas of influence tag list ---------- */
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 1.5rem 0 0; }
.tag-list li {
  font-size: 0.85rem;
  border: 1px solid rgba(17,17,17,0.18);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: var(--charcoal-soft);
}

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 560px;
  margin: 1.75rem auto 0;
}
.newsletter-form input {
  flex: 1 1 200px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,0.25);
  font-size: 0.95rem;
  background: var(--white);
}
.newsletter-form input:focus-visible,
.nav-links a:focus-visible,
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* ---------- Final CTA ---------- */
/* "main section.final-cta" is deliberately more specific than the alternating
   section rule (section:nth-of-type(even)). Without that, the homepage's
   12th section turned light and the light text became invisible. */
main section.final-cta { text-align: center; background: var(--charcoal); color: var(--ivory); }
main section.final-cta .section-label { color: #d9bc7e; }
main section.final-cta h2 { color: #ffffff; }
main section.final-cta p { color: #efe9db; font-size: 1.05rem; }
main section.final-cta .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
main section.final-cta .btn-primary:hover { background: #d9bc7e; border-color: #d9bc7e; color: var(--charcoal); }
main section.final-cta .btn-outline { background: transparent; border-color: var(--ivory); color: #ffffff; }
main section.final-cta .btn-outline:hover { background: var(--ivory); border-color: var(--ivory); color: var(--charcoal); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #c9c4b8;
  padding-block: 2.5rem;
  font-size: 0.9rem;
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer a { color: #e7e2d6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; margin: 0; }
.footer-bottom { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.8rem; color: #9a9689; }

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

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--reveal-index, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .hero > * { animation: none !important; opacity: 1 !important; }
}

/* ---------- Hero entrance (plays once on load, not scroll-triggered) ---------- */
@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero > * {
  opacity: 0;
  animation: fade-up-in 0.7s ease forwards;
}
.hero .hero-eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero .hero-tagline { animation-delay: 0.25s; }
.hero .hero-body:nth-of-type(1) { animation-delay: 0.35s; }
.hero .hero-body:nth-of-type(2) { animation-delay: 0.45s; }
.hero .hero-signoff { animation-delay: 0.55s; }

/* ---------- Subtle card lift on hover ---------- */
.card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(17,17,17,0.08); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding-block: 1rem;
  font-size: 0.85rem;
  color: var(--grey);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumbs a { text-decoration: none; color: var(--grey); }
.breadcrumbs a:hover { color: var(--gold-deep); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: rgba(17,17,17,0.3); }
.breadcrumbs li[aria-current="page"] { color: var(--charcoal); font-weight: 600; }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.page-header h1 { font-family: var(--font-serif); font-size: clamp(2rem, 4.5vw, 3rem); margin: 0.5rem 0 1rem; }
.page-header .lede { max-width: 680px; margin-inline: auto; color: var(--charcoal-soft); font-size: 1.05rem; }

/* ---------- Category filter tabs (Think archive) ---------- */
.filter-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0 0 2.5rem; }
.filter-tabs button {
  font: inherit;
  cursor: pointer;
  background: var(--white);
  border: 1px solid rgba(17,17,17,0.18);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
}
.filter-tabs button[aria-pressed="true"] { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }

.empty-state {
  border: 1.5px dashed rgba(17,17,17,0.25);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  color: var(--grey);
  background: var(--white);
}

/* ---------- Process steps (Advisory) ---------- */
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.step-list li { display: flex; gap: 1.25rem; }
.step-num {
  flex: none;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-list h3 { margin: 0 0 0.25rem; font-family: var(--font-serif); font-size: 1.05rem; }
.step-list p { margin: 0; color: var(--grey); font-size: 0.95rem; }

/* ---------- Contact form ---------- */
.contact-form { max-width: 640px; }
.contact-form fieldset { border: none; padding: 0; margin: 0 0 1.5rem; }
.contact-form legend { font-weight: 600; margin-bottom: 0.75rem; padding: 0; }
.radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.6rem; }
.radio-grid label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(17,17,17,0.22);
  font: inherit;
  background: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-hint { font-size: 0.8rem; color: var(--grey); margin-top: 0.3rem; }

/* ---------- Book detail ---------- */
.book-meta-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.book-meta-list li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.book-meta-list strong { color: var(--gold-deep); }

/* ---------- Buy now dropdown ---------- */
.book-feature { position: relative; }
.book-feature.menu-open { z-index: 60; }
.buy-menu { position: relative; display: inline-block; margin-top: 1.5rem; }
.buy-menu-toggle { cursor: pointer; font-family: inherit; }
.buy-menu-caret { font-size: 0.8em; transition: transform 0.2s ease; }
.buy-menu.is-open .buy-menu-caret { transform: rotate(180deg); }
.buy-menu-list {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 0.4rem);
  min-width: 260px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--white);
  border: 1px solid rgba(17,17,17,0.12);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(17,17,17,0.15);
  z-index: 50;
}
.buy-menu.is-open .buy-menu-list { display: block; }
.buy-menu-list a,
.buy-menu-list button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.buy-menu-list a:hover,
.buy-menu-list button:hover,
.buy-menu-list a:focus-visible,
.buy-menu-list button:focus-visible { background: var(--ivory-deep); outline: none; }
.buy-menu-list small { font-weight: 400; font-size: 0.8rem; color: var(--grey); }

/* ---------- Book grid (4-6 books per row on desktop) ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 2rem 1.25rem;
  align-items: start;
}
@media (max-width: 520px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0.9rem; }
}
.book-card { position: relative; display: flex; flex-direction: column; }
.book-card.menu-open { z-index: 60; }
.book-card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 6px 10px 10px 6px;
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid var(--gold);
  box-shadow: 0 10px 22px rgba(17,17,17,0.18);
}
.book-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-card-cover-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0.75rem; text-align: center;
  color: var(--ivory);
  font-family: var(--font-serif); font-weight: 700; font-size: 0.95rem; line-height: 1.25;
}
.book-card-title { font-family: var(--font-serif); font-size: 1rem; margin: 0.9rem 0 0.15rem; line-height: 1.25; }
.book-card-author { margin: 0; font-size: 0.82rem; color: var(--grey); }
.book-card-price { margin: 0.4rem 0 0; font-weight: 700; color: var(--gold-deep); font-size: 0.95rem; }
.book-card .buy-menu { display: block; margin-top: 0.75rem; }
.book-card .buy-menu-toggle { width: 100%; justify-content: center; padding-inline: 0.75rem; }
.book-card .buy-menu-list { min-width: 230px; }
.buy-menu-list.align-right { left: auto; right: 0; }
.book-card-details { margin-top: 0.75rem; font-size: 0.85rem; color: var(--charcoal-soft); }
.book-card-details summary { cursor: pointer; color: var(--gold-deep); font-weight: 600; }
.book-card-details p { margin: 0.5rem 0 0; }

/* ---------- Images inside cards (articles, projects, testimonials, media) ---------- */
.card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 1rem; display: block; }
.testimonial-quote { margin: 0; font-style: italic; }
.testimonial-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; font-style: normal; font-size: 0.9rem; color: var(--gold-deep); }
.testimonial-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold); }
.media-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 1rem; display: block; }
.media-player { width: 100%; border-radius: 10px; margin-bottom: 1rem; display: block; background: var(--charcoal); }
audio.media-player { background: transparent; }

/* ---------- Footer social icons ---------- */
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.5rem; }
.footer-social[hidden] { display: none; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  color: #e7e2d6;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icon:hover, .social-icon:focus-visible { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---------- Logo in the navigation ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-logo { height: 36px; width: auto; max-width: 64px; object-fit: contain; display: block; }

/* ---------- Embedded YouTube / Vimeo videos ---------- */
.media-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; margin-bottom: 1rem; background: #000; }
.media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Hero with background video ---------- */
.hero--video {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--charcoal);
  color: #ffffff;
  overflow: hidden;
}
.hero--video > .hero-video,
.hero--video > .hero-overlay { opacity: 1; animation: none; transform: none; }
.hero--video .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero--video .hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,17,17,0.55), rgba(17,17,17,0.74)); }
.hero--video .hero-content { width: 100%; }
.hero--video h1, .hero--video .hero-tagline, .hero--video .hero-body, .hero--video .hero-signoff { color: #ffffff; }
.hero--video .hero-eyebrow { color: #d9bc7e; }
.hero-video-toggle {
  position: absolute; right: 1rem; bottom: 1rem;
  background: rgba(17,17,17,0.6); color: #ffffff;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 999px;
  padding: 0.45rem 1rem; font: 600 0.8rem var(--font-sans); cursor: pointer;
}
.hero-video-toggle:hover { background: rgba(17,17,17,0.85); }
.hero-video-toggle[hidden] { display: none; }



/* ---------- What I do: image cards ---------- */
.role-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.role-card {
  background: var(--white);
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.role-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(17,17,17,0.08); }
.role-card-media { aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--charcoal), #2b2b27); overflow: hidden; }
.role-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.role-card:hover .role-card-media img { transform: scale(1.03); }
.role-card-body { padding: 1.25rem 1.4rem 1.6rem; }
.role-card-body h3 { font-family: var(--font-serif); margin: 0 0 0.5rem; font-size: 1.2rem; }
.role-card-body p { color: var(--grey); margin: 0; font-size: 0.96rem; }

/* ---------- Picture beside text (Bring Me Into the Room) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.split-media { margin: 0; position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--charcoal); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 25%; display: block; }
.split-content .section-head { max-width: none; }
.split.no-media { grid-template-columns: 1fr; }
.split.no-media .split-content .section-head { max-width: 680px; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 480px; width: 100%; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .role-card, .role-card-media img { transition: none; }
  .role-card:hover { transform: none; }
  .role-card:hover .role-card-media img { transform: none; }
}

/* ---------- Newsletter pop-up (optional, opens only on click) ---------- */
.nl-teaser {
  position: fixed; left: 1.25rem; bottom: 1.5rem; z-index: 250;
  display: flex; align-items: stretch; max-width: 330px;
  background: #1c1c19; color: var(--ivory); border: 1px solid rgba(217,188,126,0.45);
  border-radius: 14px; box-shadow: 0 12px 30px rgba(17,17,17,0.35);
  animation: nl-rise 0.45s ease both;
}
.nl-teaser-open {
  display: flex; align-items: center; gap: 0.8rem; flex: 1; min-width: 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left;
  padding: 0.85rem 0.5rem 0.85rem 1rem; cursor: pointer; border-radius: 14px 0 0 14px;
}
.nl-teaser-icon { font-size: 1.35rem; color: #d9bc7e; line-height: 1; }
.nl-teaser-text { display: flex; flex-direction: column; min-width: 0; }
.nl-teaser-text strong { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #d9bc7e; }
.nl-teaser-text span { font-family: var(--font-serif); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-teaser-close {
  background: none; border: 0; color: inherit; opacity: 0.7; font-size: 1.4rem; line-height: 1;
  padding: 0 0.85rem; cursor: pointer; border-radius: 0 14px 14px 0;
}
.nl-teaser-close:hover, .nl-teaser-open:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.nl-teaser button:focus-visible { outline: 2px solid #d9bc7e; outline-offset: -2px; }

.nl-backdrop {
  position: fixed; inset: 0; z-index: 400; background: rgba(17,17,17,0.55);
  display: flex; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto;
}
.nl-modal {
  position: relative; width: 100%; max-width: 520px; margin: auto;
  background: var(--ivory); color: var(--charcoal); border-radius: 18px;
  padding: clamp(1.75rem, 5vw, 2.5rem); text-align: center;
  box-shadow: 0 24px 60px rgba(17,17,17,0.35); animation: nl-rise 0.3s ease both;
}
.nl-modal h2 { font-family: var(--font-serif); margin: 0.4rem 0 0.75rem; }
.nl-modal p { color: var(--grey); margin: 0 0 1.25rem; }
.nl-close {
  position: absolute; top: 0.6rem; right: 0.8rem; background: none; border: 0;
  font-size: 1.8rem; line-height: 1; color: var(--grey); cursor: pointer; padding: 0.25rem 0.5rem;
}
.nl-close:hover { color: var(--charcoal); }
.nl-form { display: flex; flex-direction: column; gap: 0.7rem; }
.nl-form input[type="text"], .nl-form input[type="email"] {
  padding: 0.85rem 1.1rem; border-radius: 999px; border: 1px solid rgba(17,17,17,0.25);
  font-size: 1rem; background: var(--white); width: 100%;
}
.nl-form input:focus-visible, .nl-modal button:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.nl-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.nl-status { min-height: 1.2em; margin: 0 !important; font-size: 0.9rem; }
.nl-thanks { font-family: var(--font-serif); font-size: 1.2rem; color: var(--charcoal) !important; margin: 0.5rem 0 !important; }
.nl-later { background: none; border: 0; color: var(--grey); font: inherit; font-size: 0.9rem; text-decoration: underline; cursor: pointer; margin-top: 0.75rem; }
.nl-later:hover { color: var(--charcoal); }
html.nl-open { overflow: hidden; }
@keyframes nl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  /* leave room for the cart button on the right */
  .nl-teaser { left: 1rem; right: 9rem; bottom: 1rem; max-width: none; }
  .nl-teaser-text strong { display: none; }
  .nl-teaser-text span { font-size: 0.95rem; white-space: normal; line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) { .nl-teaser, .nl-modal { animation: none; } }
