/* ==========================================================================
   EDNAS HAIR STUDIO — STYLESHEET
   Mobile-first: base styles are for phones, @media (min-width) adds
   layouts for tablets and desktops.

   CONTENTS
   1. Design tokens (colours, fonts, spacing)
   2. Reset & base
   3. Layout helpers & buttons
   4. Header & navigation
   5. Hero
   6. About
   7. Services
   8. Offers
   9. Gallery & lightbox
   10. Why choose us
   11. Contact
   12. Footer
   13. Reveal animation & reduced motion
   ========================================================================== */


/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Brand colours */
  --black:    #090909;
  --charcoal: #171717;
  --gold:     #D4AD68;   /* use for highlights on DARK backgrounds */
  --gold-deep:#8A6726;   /* darker gold, readable on LIGHT backgrounds */
  --ivory:    #F4F0E8;
  --white:    #FFFFFF;
  --grey:     #A9A399;   /* secondary text on dark */
  --grey-dark:#5C5850;   /* secondary text on light */

  --line-dark:  rgba(212, 173, 104, 0.28);
  --line-light: rgba(9, 9, 9, 0.16);

  /* Fonts */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --gutter: 1.25rem;
  --section-space: clamp(4.5rem, 10vw, 8rem);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}


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

html {
  scroll-behavior: smooth;              /* smooth scrolling for #links */
  scroll-padding-top: var(--header-h);  /* keeps headings clear of the sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ivory);
  background: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }   /* stops page scrolling behind the mobile menu */

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

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.005em;
}
em { font-style: italic; color: var(--gold); }

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

.skip-link {
  position: fixed;
  left: 1rem; top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--black);
  font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.noscript {
  padding: 1rem var(--gutter);
  background: var(--gold);
  color: var(--black);
  text-align: center;
}


/* 3. LAYOUT HELPERS & BUTTONS ------------------------------------------- */
.container {
  width: min(1200px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding-block: var(--section-space); }
.section--black    { background: var(--black);    color: var(--ivory); }
.section--charcoal { background: var(--charcoal); color: var(--ivory); }
.section--light    { background: var(--ivory);    color: var(--charcoal); }
.section--light em { color: var(--gold-deep); }

.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-title { font-size: clamp(2.1rem, 6vw, 3.6rem); }
.section-lead { margin-top: 1.1rem; color: var(--grey); }
.section--light .section-lead { color: var(--grey-dark); }

/* Small uppercase label with a gold rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 2.25rem; height: 1px;
  background: currentColor;
}
.eyebrow--dark { color: var(--gold-deep); }

/* Icons */
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 1.6rem; height: 1.6rem; color: var(--gold); margin-top: 0.2rem; }

/* Buttons: at least 48px tall for easy tapping */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.8rem 1.7rem;
  border: 1px solid var(--gold);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn[hidden] { display: none; }
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary { background: var(--gold); color: var(--black); }
.btn--primary:hover { background: var(--ivory); border-color: var(--ivory); }

.btn--outline { background: transparent; color: var(--ivory); }
.btn--outline:hover { background: var(--gold); color: var(--black); }


/* 4. HEADER & NAVIGATION ------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: box-shadow 0.3s var(--ease);
}
/* The header's background lives on a pseudo-element on purpose.
   Putting backdrop-filter on the header itself would trap the full-screen
   mobile menu inside the 72px bar (a "fixed" child is positioned relative to
   any ancestor that has a filter). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 9, 9, 0.75), rgba(9, 9, 9, 0));
  transition: background 0.3s var(--ease);
}
.site-header.is-scrolled,
body.nav-open .site-header { box-shadow: 0 1px 0 var(--line-dark); }
.site-header.is-scrolled::before,
body.nav-open .site-header::before {
  background: rgba(9, 9, 9, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo + wordmark (the supplied logo file is used unchanged) */
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; position: relative; z-index: 2; }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); }
.brand__sub { margin-top: 0.3rem; font-size: 0.62rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); }

/* Hamburger button (mobile) */
.nav-toggle {
  position: relative; z-index: 2;
  display: grid; place-content: center; gap: 6px;
  width: 48px; height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--ivory);
  cursor: pointer;
}
.nav-toggle__bar { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile: full-screen menu panel */
.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;                 /* scrolls on short screens (e.g. phone held sideways) */
  overscroll-behavior: contain;
  padding: calc(var(--header-h) + 1rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  background: var(--black);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.75rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav__list { width: 100%; margin-top: auto; }   /* auto margins centre the menu without ever clipping it */
.nav__list li { border-bottom: 1px solid var(--line-dark); }

/* Extra info at the bottom of the mobile menu */
.nav__extra { margin: 1.75rem 0 auto; display: grid; gap: 1rem; }
.nav__extra p { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: var(--grey); }
.nav__extra p .icon { color: var(--gold); width: 1.1rem; height: 1.1rem; }
.nav__extra .btn { width: 100%; }

.nav__link {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-serif);
  font-size: 2.1rem;
  text-decoration: none;
  color: var(--ivory);
  transition: color 0.2s, padding-left 0.3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--gold); padding-left: 0.5rem; }

/* Tablet/desktop: inline menu */
@media (min-width: 900px) {
  :root { --gutter: 2.5rem; --header-h: 84px; }

  .brand__logo { width: 50px; height: 50px; }
  .nav-toggle { display: none; }

  .nav {
    position: static;
    display: block;
    overflow: visible;
    padding: 0;
    background: transparent;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav__extra { display: none; }
  .nav__list { display: flex; gap: 2.4rem; margin-top: 0; }
  .nav__list li { border: 0; }
  .nav__link {
    position: relative;
    padding: 0.5rem 0;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .nav__link:hover, .nav__link[aria-current="true"] { padding-left: 0; }
  .nav__link::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
}


/* 5. HERO ---------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 2rem);
  background: var(--black);
  overflow: hidden;
}

/* Phone: photo fills the screen behind the text */
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(9,9,9,0.55) 0%, rgba(9,9,9,0.25) 28%, rgba(9,9,9,0.88) 70%, var(--black) 100%);
}

.hero__inner { padding-bottom: 2rem; }
.hero__title { font-size: clamp(2.9rem, 12.5vw, 5.8rem); line-height: 1; color: var(--white); }
.hero__lead { max-width: 30rem; margin-top: 1.4rem; font-size: 1.1rem; color: #d9d4ca; }
.hero__actions { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 2rem; }

.hero__facts {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
  color: var(--grey);
}
.hero__facts li { display: flex; align-items: center; gap: 0.7rem; }
.hero__facts .icon { color: var(--gold); width: 1.1rem; height: 1.1rem; }

@media (min-width: 560px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
}

/* Desktop: text on the left, tall photo on the right */
@media (min-width: 900px) {
  .hero { align-items: center; padding-block: calc(var(--header-h) + 2rem) 3rem; }
  .hero__media { inset: 0 0 0 auto; width: 52%; }
  .hero__media::after {
    background:
      linear-gradient(to right, var(--black) 0%, rgba(9,9,9,0.55) 22%, rgba(9,9,9,0) 55%),
      linear-gradient(to top, rgba(9,9,9,0.55), rgba(9,9,9,0) 30%);
  }
  .hero__inner { position: relative; padding-bottom: 0; }
  .hero__content { max-width: 36rem; }
  .hero__facts {
    flex-direction: row; gap: 2.5rem;
    max-width: 36rem;
  }
}


/* 6. ABOUT --------------------------------------------------------------- */
.about { display: grid; gap: 3.5rem; align-items: center; }
.about__media { position: relative; padding-bottom: 3rem; }
.about__main { width: 88%; aspect-ratio: 1 / 1.05; object-fit: cover; }
.about__accent {
  position: absolute;
  right: 0; bottom: 0;
  width: 38%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 6px solid var(--ivory);
  outline: 1px solid var(--line-light);
}
.about__text p { margin-top: 1.25rem; color: var(--grey-dark); }
.about__text p:first-of-type { margin-top: 1.75rem; }
.about__text .section-title { color: var(--black); }

.facts { margin-top: 2.5rem; border-top: 1px solid var(--line-light); }
.facts__row { display: grid; gap: 0.1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-light); }
.facts dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.facts dd { color: var(--charcoal); }

@media (min-width: 560px) {
  .facts__row { grid-template-columns: 8rem 1fr; align-items: baseline; gap: 1rem; }
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; gap: 6rem; }
  .about__main { width: 85%; aspect-ratio: 4 / 4.6; }
}


/* 7. SERVICES ------------------------------------------------------------ */
.services { display: grid; gap: 1rem; }

.service {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s var(--ease), translate 0.3s var(--ease), background 0.3s var(--ease);
}
.service:hover { border-color: var(--gold); background: rgba(212, 173, 104, 0.05); translate: 0 -4px; }
.service__icon { width: 2.4rem; height: 2.4rem; color: var(--gold); stroke-width: 1.3; }
.service__num { position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-serif); font-size: 1.1rem; color: var(--grey); }
.service__name { margin-top: 1.4rem; font-size: 1.7rem; color: var(--white); }
.service__text { margin-top: 0.6rem; font-size: 0.98rem; color: var(--grey); }

@media (min-width: 600px)  { .services { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(4, 1fr); } }


/* 8. OFFERS -------------------------------------------------------------- */
.draft-note {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.6rem 1rem;
  border: 1px dashed var(--gold);
  font-size: 0.88rem;
  color: var(--gold);
}
.draft-note[hidden] { display: none; }

.offers { display: grid; gap: 1.25rem; }

.offer {
  display: flex; flex-direction: column;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line-dark);
  background: var(--charcoal);
  transition: border-color 0.3s var(--ease), translate 0.3s var(--ease);
}
.offer:hover { border-color: var(--gold); translate: 0 -4px; }

.offer__label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }

.offer__includes { flex: 1; margin: 1.25rem 0 1.75rem; }
.offer__includes li {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(244, 240, 232, 0.08);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--white);
}
.offer__includes li::before {
  content: "";
  flex: none;
  width: 0.4rem; height: 0.4rem;
  background: var(--gold);
  transform: translateY(-0.12rem) rotate(45deg);
}

.offer__prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 1rem; }
.offer__was { font-size: 1.05rem; color: var(--grey); text-decoration: line-through; }
.offer__now { font-family: var(--font-serif); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--gold); }
.offer__save { margin-top: 0.6rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }

.offers__cta { margin-top: clamp(2.5rem, 6vw, 3.5rem); text-align: center; }

@media (min-width: 700px)  { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .offers { grid-template-columns: repeat(4, 1fr); } }


/* 9. GALLERY & LIGHTBOX -------------------------------------------------- */
/* Even grid of 4:5 tiles (2 across on phones/tablets, 4 across on desktop).
   Photos are cropped to fit the tile, never stretched; click one to see it in full. */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

.gallery__link { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--charcoal); }
.gallery__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.4s; }
.gallery__link:hover .gallery__img { transform: scale(1.04); }
.gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 0.9rem 0.8rem;
  background: linear-gradient(to top, rgba(9,9,9,0.82), rgba(9,9,9,0));
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory);
}

@media (min-width: 700px)  { .gallery { gap: 1rem; } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.lightbox {
  width: 100vw; max-width: 100vw;
  height: 100vh; max-height: 100vh;
  height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 1rem;
  border: 0;
  background: transparent;
  color: var(--ivory);
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
.lightbox::backdrop { background: rgba(9, 9, 9, 0.92); }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 7rem); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.lightbox__close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 48px; height: 48px;
  border: 1px solid var(--line-dark);
  background: rgba(9, 9, 9, 0.7);
  color: var(--ivory);
  font-size: 1.9rem; line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--gold); color: var(--black); }


/* 10. WHY CHOOSE US ------------------------------------------------------ */
.why { display: grid; gap: 2.25rem 3rem; }
.why__item { padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.why__num { font-family: var(--font-serif); font-size: 1.1rem; color: var(--gold); letter-spacing: 0.1em; }
.why__item h3 { margin-top: 0.6rem; font-size: 1.8rem; color: var(--white); }
.why__item p { margin-top: 0.7rem; color: var(--grey); }

.tagline {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line-dark);
  text-align: center;
}
.tagline p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1.1;
  color: var(--gold);
}

@media (min-width: 640px)  { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .why { grid-template-columns: repeat(4, 1fr); gap: 2.25rem; } }


/* 11. CONTACT ------------------------------------------------------------ */
.contact { display: grid; gap: 3rem; align-items: center; }
.contact__block { display: flex; gap: 1rem; margin-top: 1.75rem; color: var(--grey); }
.contact__block:first-of-type { margin-top: 2rem; }
.contact__block strong { font-weight: 500; color: var(--white); }
.contact__block a { color: var(--gold); text-underline-offset: 3px; }

/* Clearly visible placeholder until the real number is supplied */
.placeholder {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px dashed var(--gold);
  font-size: 0.92rem;
  color: var(--gold);
}

.contact__actions { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 2.5rem; }

.contact__media img { width: 100%; height: auto; border: 1px solid var(--line-dark); }
.contact__media figcaption { margin-top: 0.8rem; font-size: 0.88rem; color: var(--grey); }

@media (min-width: 560px) { .contact__actions { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 900px) { .contact { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; } }


/* 12. FOOTER ------------------------------------------------------------- */
.site-footer { padding-top: 4rem; background: var(--black); border-top: 1px solid var(--line-dark); color: var(--grey); font-size: 0.95rem; }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer__tagline { margin-top: 1.25rem; font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--gold); }
.footer__heading { margin-bottom: 1rem; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); }
.footer__nav ul { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 0.35rem 2.5rem; }
.footer__nav a, .footer__contact a { text-decoration: none; transition: color 0.2s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact p + p { margin-top: 0.9rem; }
.footer__bottom { padding-block: 1.5rem; border-top: 1px solid rgba(244, 240, 232, 0.08); font-size: 0.85rem; }

@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 4rem; } }


/* 12b. OPENING ANIMATION (INTRO) ----------------------------------------
   The logo appears, "opens" like a shutter, then the screen splits down the
   middle through the logo and slides apart to reveal the website.
   Two identical copies of the logo scene (left half + right half) are shown
   side by side, so when the halves slide apart the logo itself is split.
   Only runs when <html> has the class "intro-active" (set in index.html). */
.intro { display: none; }

html.intro-active, html.intro-active body { overflow: hidden; }
html.intro-active .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 300;
  cursor: pointer;
}

.intro__half {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
  background: var(--black);
  animation-duration: 1.05s;
  animation-delay: 2.2s;                     /* wait for the logo scene to play first */
  animation-timing-function: cubic-bezier(0.77, 0, 0.18, 1);
  animation-fill-mode: forwards;
}
.intro__half--left  { left: 0;  animation-name: introSlideLeft; }
.intro__half--right { right: 0; animation-name: introSlideRight; }
.intro__half--left  .intro__stage { left: 0; }
.intro__half--right .intro__stage { right: 0; }

/* Each stage is as wide as the whole screen, so the logo sits in the exact
   centre and gets cut by the seam between the two halves. */
.intro__stage {
  position: absolute;
  top: 0; bottom: 0;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.intro__mark { position: relative; width: clamp(150px, 44vw, 250px); aspect-ratio: 1; }
.intro__logo {
  width: 100%; height: 100%;
  border-radius: 50%;
  /* shutter opens from the centre line outwards */
  animation: introOpen 1.1s cubic-bezier(0.65, 0, 0.2, 1) 0.25s both;
}
.intro__ring {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px); height: calc(100% + 24px);
  fill: none; stroke: var(--gold); stroke-width: 0.5;
}
.intro__ring circle {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: introDraw 1.3s cubic-bezier(0.65, 0, 0.2, 1) 0.7s forwards;
}
.intro__tagline {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  letter-spacing: 0.04em;
  color: var(--gold);
  animation: introFade 0.9s var(--ease) 1.3s both;
}

@keyframes introOpen {
  from { clip-path: inset(50% 0 50% 0); opacity: 0; transform: scale(0.9); }
  30%  { opacity: 1; }
  to   { clip-path: inset(0 0 0 0);     opacity: 1; transform: scale(1); }
}
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introFade {
  from { opacity: 0; transform: translateY(0.6rem); }
  to   { opacity: 1; transform: none; }
}
@keyframes introSlideLeft  { to { transform: translateX(-101%); } }
@keyframes introSlideRight { to { transform: translateX(101%); } }

/* The hero content rises into place as the intro opens (or straight away when there is no intro) */
html.js:not(.intro-active) .hero__content,
html.intro-opening .hero__content { animation: heroIn 1s var(--ease) both; }
html.js:not(.intro-active) .hero__facts,
html.intro-opening .hero__facts   { animation: heroIn 1s var(--ease) 0.25s both; }
html.js:not(.intro-active) .hero__media img,
html.intro-opening .hero__media img { animation: heroZoom 2.4s var(--ease) both; }

@keyframes heroIn   { from { opacity: 0; transform: translateY(1.75rem); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: none; } }


/* 13. REVEAL ANIMATION & REDUCED MOTION --------------------------------- */
/* Items fade up as they scroll into view. Only active when JavaScript runs. */
.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), translate 0.3s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
