/* ==========================================================================
   Noy Shani / Life Unlocked
   Palette: Life Unlocked V4 (1A3398, EAA638, EBEBEB, 2247CC, 2A2A2A)
   ========================================================================== */

:root {
  /* brand primitives */
  --summit-navy: #1A3398;
  --unlock-blue: #2247CC;
  --flag-gold: #EAA638;
  --charcoal: #2A2A2A;
  --mist: #EBEBEB;
  --black: #000000;
  --white: #FFFFFF;

  /* semantic roles */
  --text: var(--charcoal);
  --text-muted: #4D4D4D;
  --text-on-dark: var(--white);
  --text-on-dark-muted: #D4D9EC;
  --link: var(--unlock-blue);
  --focus: var(--unlock-blue);

  /* type */
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 2.875rem);
  --step-4: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);

  /* space (8pt rhythm) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --section-pad: clamp(4rem, 9vw, 8rem);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max-width: 72rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-weight: 600; margin-bottom: var(--space-1); }

p { margin: 0 0 var(--space-3); max-width: 65ch; }

a { color: var(--link); text-underline-offset: 0.2em; }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--flag-gold);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-2); }

.icon {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- section themes ---------- */
.section-mist { background: var(--mist); }

.section-navy,
.section-black {
  color: var(--text-on-dark);
  --focus: var(--flag-gold);
  --link: var(--flag-gold);
}
.section-navy { background: var(--summit-navy); }
.section-black { background: var(--black); }
.section-navy p,
.section-black p { color: var(--text-on-dark-muted); }

.section-head { margin-bottom: var(--space-6); }
.section-head p { font-size: var(--step-1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.btn-gold { background: var(--flag-gold); color: var(--charcoal); }
.btn-gold:hover { background: #F2BC62; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-navy { background: var(--summit-navy); color: var(--white); }
.btn-navy:hover { background: var(--unlock-blue); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  color: var(--white);
  --focus: var(--flag-gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--white);
  text-decoration: none;
}
.brand-logo { height: 60px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-left: var(--space-2);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  line-height: 1.2;
}

.site-nav { display: flex; align-items: center; gap: var(--space-4); }

.nav-list,
.social-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list { gap: var(--space-3); }

.nav-list a {
  position: relative;
  display: inline-block;
  padding: var(--space-1) 0;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--flag-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav-list a:hover::after,
.nav-list a[aria-current="true"]::after { transform: scaleX(1); }

.social-list { gap: var(--space-1); }
.social-list a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--white);
  border-radius: 50%;
  transition: color 180ms var(--ease-out);
}
.social-list a:hover { color: var(--flag-gold); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  place-items: center;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  --focus: var(--flag-gold);
  min-height: min(calc(100dvh - var(--header-h)), 820px);
  display: flex;
  align-items: center;
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
}
.hero-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 20%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%);
          mask-image: linear-gradient(to right, transparent 0%, #000 30%);
}

/* recognition badges are pinned into the photo's bottom-right corner; absolutely placed so the hero copy never moves.
   Only the inner (top-left) corner is rounded, and only the two inner edges have a border. */
.hero-badges {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  margin: 0;
  padding: clamp(0.75rem, 1.4vw, 1.125rem) clamp(1rem, 2vw, 1.75rem);
  list-style: none;
  background: rgba(8, 14, 40, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md) 0 0 0;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.hero-badges img { display: block; height: clamp(3.25rem, 6vw, 5.25rem); width: auto; }
.hero-badges .badge-wide { height: clamp(1rem, 1.7vw, 1.5rem); }

.hero-content {
  position: relative;
  padding-block: var(--space-6);
}

.hero-title {
  font-size: var(--step-4);
  max-width: 11ch;
  margin-bottom: var(--space-4);
}

.summit-line {
  width: min(320px, 70%);
  margin-bottom: var(--space-4);
}
.summit-line svg { display: block; width: 100%; height: auto; overflow: visible; }
.summit-rule,
.summit-pole {
  fill: none;
  stroke: var(--flag-gold);
  stroke-width: 6;
}
.summit-pole { stroke-width: 3; }
.summit-flag { fill: var(--flag-gold); }

.hero-lede {
  font-size: var(--step-1);
  color: #E2E2E2;
  max-width: 34ch;
  margin-bottom: var(--space-4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* single orchestrated load moment: the summit line draws, then the flag goes up */
@media (prefers-reduced-motion: no-preference) {
  .summit-rule { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 900ms var(--ease-out) 250ms forwards; }
  .summit-pole { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 300ms var(--ease-out) 1100ms forwards; }
  .summit-flag { opacity: 0; transform: translateY(8px); transform-box: fill-box; animation: raise 350ms var(--ease-out) 1350ms forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes raise { to { opacity: 1; transform: none; } }

/* ---------- featured logos ---------- */
.featured {
  background: var(--white);
  padding-block: var(--space-5);
  border-bottom: 1px solid #DCDCDC;
}
.featured-title {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-4);
}
.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-items: center;
  align-items: center;
  gap: var(--space-4) var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.logo-wall img {
  height: 64px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* ---------- about ---------- */
.about { padding-block: var(--section-pad); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-6);
  align-items: center;
}
.about-photo { margin: 0; }
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--radius-md);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
  padding-top: var(--space-4);
  border-top: 2px solid var(--summit-navy);
}
.facts dt {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--summit-navy);
  line-height: 1.1;
}
.facts dd { margin: var(--space-1) 0 0; font-size: var(--step--1); color: var(--text-muted); line-height: 1.4; }

/* ---------- speaking ---------- */
.speaking { padding-block: var(--section-pad); }
.speaking-title { font-size: var(--step-4); margin-bottom: var(--space-4); }

.keynote-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 60%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.topic-feature { padding-bottom: var(--space-6); }
.topic-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-5);
  align-items: start;
}
.topic-intro h3 { font-size: var(--step-3); color: var(--white); }
.topic-intro p { font-size: var(--step-1); }

.three-d {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
}
.d-mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 3rem + 8vw, 10rem);
  line-height: 0.8;
  color: var(--flag-gold);
  margin-bottom: var(--space-3);
}
.three-d h4 { color: var(--white); font-size: var(--step-2); }
.three-d p { margin: 0; }

/* the one separator in this section: between the talk and the photos from the stage */
.stage-intro {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.stage-intro p { font-size: var(--step-1); margin-bottom: var(--space-4); }

/* wide stage shot over two landscapes, tall slide shot down the right */
.stage-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: clamp(200px, 28vw, 400px) clamp(150px, 18vw, 260px);
  grid-template-areas:
    "stage stage slide"
    "audience cricket slide";
  gap: var(--space-2);
}
.stage-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.g-stage { grid-area: stage; object-position: center 30%; }
.g-slide { grid-area: slide; }
.g-audience { grid-area: audience; }
.g-cricket { grid-area: cricket; object-position: 40% center; }

/* ---------- coaching ---------- */
.coaching { padding-block: var(--section-pad); }
.coaching-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-6);
  align-items: center;
}
.coaching-logo { width: 160px; height: auto; margin-bottom: var(--space-4); }
.coaching-copy > p:first-of-type { font-size: var(--step-1); }

.checks {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.checks li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-on-dark);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 1.1rem; height: 0.6rem;
  border-left: 3px solid var(--flag-gold);
  border-bottom: 3px solid var(--flag-gold);
  transform: rotate(-45deg);
}
.coaching-results {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--flag-gold) !important;
  margin-bottom: var(--space-4);
}
.coaching-photo { margin: 0; }
.coaching-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ---------- books ---------- */
.books { padding-block: var(--section-pad); }
.book-list { display: grid; gap: var(--space-6); margin-top: var(--space-5); }

.book {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-5);
  align-items: center;
}
.book img { border-radius: var(--radius-md); width: 100%; }
/* the book is cut out of its original dark backdrop, so it stands directly on the mist */
.book-upcoming { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.book-upcoming h3 { font-size: var(--step-3); color: var(--charcoal); }
.book-upcoming img {
  max-width: 360px;
  justify-self: center;
  border-radius: 0;
  filter: drop-shadow(18px 24px 28px rgba(26, 51, 152, 0.28)) drop-shadow(4px 6px 8px rgba(0, 0, 0, 0.25));
}

.book-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin-bottom: var(--space-2);
  background: var(--summit-navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  border-radius: 999px;
}
.book-badge-soon { background: var(--flag-gold); color: var(--charcoal); }
.book-tagline {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--summit-navy);
}

/* ---------- testimonials ---------- */
.testimonials { padding-block: var(--section-pad); background: var(--white); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-md);
}
.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-1);
  background: var(--charcoal);
}
.video-thumb img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
.play {
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 56px;
  padding: 14px 12px 14px 16px;
  transform: translate(-50%, -50%);
  background: var(--flag-gold);
  fill: var(--charcoal);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-name { font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); line-height: 1.3; }
.video-result { font-size: var(--step--1); color: var(--text-muted); line-height: 1.45; }

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-4);
}
/* divider between the audience quotes and the coaching client videos */
.clients-head {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid #DCDCDC;
}
.quote { margin: 0; }
.quote blockquote { margin: 0 0 var(--space-3); position: relative; padding-top: var(--space-5); }
.quote blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.15em; left: -0.05em;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--unlock-blue);
}
.quote blockquote p { font-size: var(--step-1); line-height: 1.6; }
.quote figcaption { font-size: var(--step--1); color: var(--text-muted); line-height: 1.5; }
.quote figcaption strong { display: block; font-family: var(--font-display); font-size: var(--step-0); color: var(--text); }

/* ---------- contact ---------- */
.contact { padding-block: var(--section-pad); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { font-size: var(--step-4); }
.contact p { font-size: var(--step-1); }
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 0.8rem + 3.5vw, 3.25rem);
  font-weight: 600;
  color: var(--white) !important;
  text-decoration-color: var(--flag-gold);
  text-decoration-thickness: 3px;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--flag-gold) !important; }
.contact .cta-row { justify-content: center; margin-top: var(--space-4); }
.social-list-large { margin-top: var(--space-4); gap: var(--space-2); }
.social-list-large a { width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.35); }
.social-list-large .icon { width: 22px; height: 22px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--black);
  color: #BDBDBD;
  font-family: var(--font-display);
  font-size: var(--step--1);
  padding-block: var(--space-4);
  --focus: var(--flag-gold);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.footer-inner img { height: 40px; width: auto; }
.footer-inner p { margin: 0; text-align: center; line-height: 1.6; }
.footer-center { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-links button {
  min-height: 32px;
  padding: 0.25rem 0.125rem;
  background: none;
  border: 0;
  color: var(--white);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}
.legal-links button:hover { color: var(--flag-gold); text-decoration-color: currentColor; }

/* ---------- legal policy overlays ---------- */
body:has(dialog.policy[open]) { overflow: hidden; }

.policy {
  width: min(760px, calc(100% - 2rem));
  max-width: none;
  max-height: min(88dvh, 920px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.policy[open] { display: flex; flex-direction: column; }
.policy::backdrop { background: rgba(8, 14, 40, 0.72); }

.policy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2) var(--space-2) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--summit-navy);
  color: var(--white);
  --focus: var(--flag-gold);
}
.policy-head h2 { margin: 0; font-size: var(--step-2); }

.policy-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.policy-close:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.policy-close .icon { width: 22px; height: 22px; }

/* only the text scrolls; the title bar and X stay in view */
.policy-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-4) clamp(1.25rem, 4vw, 2.5rem) var(--space-5);
  font-size: var(--step-0);
  line-height: 1.75;
}
.policy-body:focus-visible { outline-offset: -3px; }
.policy-body h3 {
  font-size: var(--step-1);
  margin: var(--space-5) 0 var(--space-2);
  color: var(--summit-navy);
}
.policy-body ul { margin: 0 0 var(--space-3); padding-left: 1.25rem; }
.policy-body li { margin-bottom: var(--space-1); max-width: 65ch; }
.policy-body li::marker { color: var(--unlock-blue); }
.policy-body > :last-child { margin-bottom: 0; }
.policy-updated {
  font-family: var(--font-display);
  font-size: var(--step--1);
  color: var(--text-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .policy[open] { animation: policy-in 220ms var(--ease-out); }
  .policy[open]::backdrop { animation: backdrop-in 220ms var(--ease-out); }
}
@keyframes policy-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes backdrop-in { from { opacity: 0; } }
.footer-inner a { color: var(--white); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    padding: var(--space-3) var(--gutter) var(--space-4);
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 0.75rem 0; font-size: var(--step-1); }
  .nav-list a::after { right: auto; width: 2rem; }

  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand-logo { height: 48px; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-photo { position: relative; width: 100%; height: 56vw; max-height: 460px; }
  /* sit above the faded bottom edge, where the headline overlaps the photo */
  .hero-badges {
    bottom: var(--space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
  }
  .hero-photo > img {
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  }
  .hero-content { padding-top: 0; margin-top: calc(var(--space-5) * -1); }
  .hero-title { max-width: 14ch; }

  .about-grid,
  .coaching-grid,
  .topic-intro,
  .book,
  .book-upcoming,
  .quotes { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }

  .about-photo { max-width: 420px; }
  .coaching-photo { max-width: 420px; }
  .book img { max-width: 420px; }
  .book-upcoming img { order: 0; justify-self: start; max-width: 260px; }

  .three-d { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .three-d li { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-3); align-items: center; }
  .d-mark { grid-row: span 2; margin: 0; font-size: 5rem; }

  .keynote-photo { aspect-ratio: 3 / 2; margin-bottom: var(--space-5); }

  .stage-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas:
      "stage stage"
      "slide audience"
      "cricket cricket";
  }
  .stage-gallery img { aspect-ratio: 4 / 5; height: auto; }
  .stage-gallery .g-stage,
  .stage-gallery .g-cricket { aspect-ratio: 3 / 2; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 1.25rem; padding-left: 0.75rem; }
  .brand-logo { height: 42px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3) var(--space-2); }
  .logo-wall img { height: 40px; max-width: 100%; }
  .hero-actions .btn,
  .cta-row .btn { flex: 1 1 100%; }

  /* phones: a taller, square photo with Noy to the left, so the badges can sit in its bottom-right
     corner over the TEDx lettering; the headline starts below the photo instead of overlapping it */
  .hero-photo { height: auto; max-height: none; aspect-ratio: 1 / 1; }
  .hero-photo > img {
    object-position: 62% 12%;
    -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  }
  .hero-content { margin-top: 0; padding-top: var(--space-4); }

  .hero-badges {
    bottom: 0;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 0;
    border-radius: var(--radius-md) 0 0 0;
  }
  .hero-badges img { height: 2.5rem; }
  .hero-badges .badge-wide { height: 0.8rem; }

  /* on phones the policy fills the screen, like a page */
  .policy {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .footer-inner { flex-direction: column; text-align: center; }
}

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