/* ============================================================
   FELIX LENHARD — Personal Brand Website
   v4.0 — Apple MacBook Pro-inspired design system
   Dark, cinematic, typography-driven. Premium through restraint.
   Every animation, every pixel, every space is intentional.
   ============================================================ */

/* ─── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Neutral palette — dark-first */
  --white:       #FFFFFF;
  --gray-50:     #F5F5F7;
  --gray-100:    #E8E8ED;
  --gray-200:    #D2D2D7;
  --gray-300:    #A1A1A6;
  --gray-400:    #86868B;
  --gray-500:    #6E6E73;
  --gray-600:    #424245;
  --gray-700:    #2D2D2D;
  --gray-800:    #1D1D1F;
  --gray-900:    #141414;
  --black:       #0A0A0A;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   1.3125rem;

  /* Spacing scale */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.25rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-32: 8rem;
  --s-40: 10rem;

  /* Layout */
  --max-w:       1000px;
  --max-w-wide:  1200px;
  --max-w-narrow: 680px;

  /* Motion */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --duration:    0.8s;
  --duration-sm: 0.5s;
  --duration-xs: 0.2s;

  /* Apple-style tokens */
  --radius:      20px;
  --radius-sm:   12px;
  --tile-gap:    14px;
  --lift:        -4px;
  --shadow-lift: 0 12px 40px rgba(0,0,0,0.45);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration: 0s;
    --duration-sm: 0s;
    --duration-xs: 0s;
  }
}

/* ─── 2. RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-200);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* ─── 3. TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
}

.headline-xl {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.headline-lg {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.headline-md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.1875rem); font-weight: 600; line-height: 1.3; }

p { margin-bottom: var(--s-4); color: var(--gray-300); }
p:last-child { margin-bottom: 0; }

.body-lg {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
}

/* Statement — standalone full-width text */
.statement {
  font-size: clamp(1.1875rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  font-weight: 600;
  color: var(--gray-400);
  max-width: 820px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

/* Eyebrow/label */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  display: block;
  margin-bottom: var(--s-4);
}

.text-muted  { color: var(--gray-400); }
.text-subtle { color: var(--gray-300); }

/* ─── 4. LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-8);
}
.container--wide   { max-width: var(--max-w-wide); }
.container--narrow { max-width: var(--max-w-narrow); }

@media (max-width: 767px) {
  .container { padding: 0 var(--s-6); }
}

/* ─── 5. SECTIONS ───────────────────────────────────────────── */

/* Full-viewport section */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--s-32) 0;
}

/* Compact section (auto height) */
.section--compact {
  min-height: auto;
  padding: var(--s-20) 0;
}

/* Centered text section */
.section--centered {
  text-align: center;
  justify-content: center;
}

.section--centered .section__body {
  max-width: 900px;
  margin: 0 auto;
}

/* Light section (white bg) */
.section--light {
  background: var(--white);
  color: var(--gray-800);
}
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 { color: var(--gray-800); }
.section--light .eyebrow { color: var(--gray-500); }
.section--light .text-muted,
.section--light p { color: var(--gray-500); }
.section--light .statement { color: var(--gray-500); }

/* Surface section (subtle bg shift) */
.section--surface { background: var(--gray-900); }

/* Section with background image */
.section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
}

.section__bg--darken::after {
  background: rgba(10, 10, 10, 0.6);
}

.section__bg--gradient::after {
  background: linear-gradient(
    to right,
    var(--black) 0%,
    rgba(10,10,10,0.8) 35%,
    rgba(10,10,10,0.3) 100%
  );
}

.section__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* 50/50 split layout */
.section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: auto;
  padding: 0;
}

.section--split > .split__image {
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.section--split > .split__text {
  display: flex;
  align-items: center;
  padding: var(--s-20) var(--s-16);
}

.split__inner {
  max-width: 480px;
}

.section--split-reverse {
  direction: rtl;
}
.section--split-reverse > * {
  direction: ltr;
}

@media (max-width: 767px) {
  .section {
    min-height: auto;
    padding: var(--s-24) 0;
  }
  .section--split {
    grid-template-columns: 1fr;
  }
  .section--split > .split__image {
    min-height: 55vw;
    max-height: 360px;
  }
  .section--split > .split__text {
    padding: var(--s-12) var(--s-6);
  }
  .section--split-reverse > .split__image {
    order: -1;
  }
}

/* ─── 6. NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--s-5) 0;
  transition: background var(--duration-xs) var(--ease),
              padding var(--duration-xs) var(--ease),
              box-shadow var(--duration-xs) var(--ease);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: var(--s-3) 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--s-8);
}

.nav__logo img { height: 26px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(var(--s-4), 2vw, var(--s-8));
}

.nav__link {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--gray-300);
  transition: color var(--duration-xs) var(--ease);
  letter-spacing: 0.01em;
}
.nav__link:hover { color: var(--white); }
.nav__link.active { color: var(--white); }

.nav__lang {
  display: flex;
  gap: var(--s-2);
  font-size: 0.6875rem;
  color: var(--gray-600);
  margin-left: var(--s-6);
}
.nav__lang a { transition: color var(--duration-xs) var(--ease); }
.nav__lang a:hover,
.nav__lang a.active { color: var(--white); }
.nav__lang span { color: var(--gray-700); }

/* Mobile nav */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-2);
  z-index: 1001;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner { padding: 0 var(--s-6); }
}

/* ─── 7. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 980px;
  transition: all var(--duration-xs) var(--ease);
  white-space: nowrap;
}

.btn--white {
  background: var(--white);
  color: var(--black);
}
.btn--white:hover {
  background: var(--gray-50);
  transform: scale(1.03);
}

.btn--dark {
  background: var(--gray-800);
  color: var(--white);
}
.btn--dark:hover {
  background: var(--gray-700);
  transform: scale(1.03);
}

.section--light .btn--dark {
  background: var(--black);
}
.section--light .btn--dark:hover {
  background: var(--gray-800);
}

.btn--outline {
  background: transparent;
  color: var(--gray-200);
  border-color: var(--gray-600);
}
.btn--outline:hover {
  border-color: var(--white);
  color: var(--white);
}

.section--light .btn--outline {
  color: var(--gray-800);
  border-color: var(--gray-200);
}
.section--light .btn--outline:hover {
  border-color: var(--gray-800);
}

.btn--ghost {
  background: transparent;
  padding: 0;
  font-weight: 500;
  color: var(--gray-300);
  border: none;
  border-radius: 0;
}
.btn--ghost::after {
  content: ' \2192';
  transition: transform var(--duration-xs) var(--ease);
  display: inline-block;
}
.btn--ghost:hover { color: var(--white); }
.btn--ghost:hover::after { transform: translateX(4px); }

.section--light .btn--ghost { color: var(--gray-500); }
.section--light .btn--ghost:hover { color: var(--black); }

.btn--lg {
  font-size: var(--text-base);
  padding: 14px 36px;
}

.btn-group {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .btn-group { flex-direction: column; align-items: flex-start; }
  .btn-group .btn { width: 100%; justify-content: center; }
}

/* ─── 8. STATS BAR ──────────────────────────────────────────── */
.stats {
  padding: var(--s-16) 0;
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-8);
  text-align: center;
}

.stats__number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--s-2);
  color: var(--white);
}

.stats__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  line-height: 1.4;
}

@media (max-width: 767px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-8) var(--s-4); }
  .stats__grid > *:last-child { grid-column: 1 / -1; }
}

/* ─── 9. TESTIMONIALS ───────────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
}

.testimonial {
  display: flex;
  flex-direction: column;
}

.testimonial__quote {
  font-size: var(--text-base);
  font-style: italic;
  line-height: 1.7;
  color: var(--gray-200);
  margin-bottom: var(--s-8);
  flex: 1;
}

.testimonial__quote::before {
  content: '\201C';
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gray-700);
  font-style: normal;
  margin-bottom: var(--s-4);
}

.testimonial__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
}

.testimonial__role {
  font-size: var(--text-xs);
  color: var(--gray-500);
}

@media (max-width: 1023px) { .testimonials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px)  { .testimonials { grid-template-columns: 1fr; } }

/* ─── 10. CLIENTS ───────────────────────────────────────────── */
.clients {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-6) var(--s-4);
  text-align: center;
}

.client__name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-300);
}

.client__tag {
  font-size: var(--text-xs);
  color: var(--gray-600);
}

@media (max-width: 1023px) { .clients { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px)  { .clients { grid-template-columns: repeat(3, 1fr); } }

/* ─── 11. KEYNOTES ──────────────────────────────────────────── */
.keynotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gray-800);
}

.keynote {
  background: var(--black);
  padding: var(--s-12) var(--s-10);
}

.keynote__number {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gray-600);
  margin-bottom: var(--s-6);
}

.keynote__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
  color: var(--white);
}

.keynote__subtitle {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--s-4);
}

.keynote__desc {
  font-size: var(--text-sm);
  color: var(--gray-400);
  line-height: 1.7;
}

.keynote__meta {
  margin-top: var(--s-4);
  font-size: var(--text-xs);
  color: var(--gray-600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.keynote--wide {
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 767px) {
  .keynotes { grid-template-columns: 1fr; }
  .keynote { padding: var(--s-8) var(--s-6); }
}

/* ─── 12. OFFERING LIST ─────────────────────────────────────── */
.offering-list {
  display: flex;
  flex-direction: column;
}

.offering {
  padding: var(--s-12) 0;
  border-bottom: 1px solid var(--gray-800);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-10);
  align-items: start;
}
.offering:first-child { padding-top: 0; }
.offering:last-child { border-bottom: none; }

.offering__title {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}

.offering__text {
  font-size: var(--text-sm);
  color: var(--gray-300);
  line-height: 1.7;
}

.offering__list {
  margin-top: var(--s-4);
}

.offering__list li {
  font-size: var(--text-sm);
  color: var(--gray-500);
  padding: var(--s-2) 0 var(--s-2) var(--s-6);
  position: relative;
}

.offering__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--gray-700);
}

@media (max-width: 767px) {
  .offering { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* ─── 13. WORKSHOP TOPICS ───────────────────────────────────── */
.workshop-list {
  display: flex;
  flex-direction: column;
}

.workshop-item {
  padding: var(--s-10) 0;
  border-bottom: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-8);
}
.workshop-item:first-child { padding-top: 0; }
.workshop-item:last-child { border-bottom: none; }

.workshop-item__title {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}

.workshop-item__desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: var(--s-2);
}

.workshop-item__arrow {
  font-size: 1.5rem;
  color: var(--gray-600);
  flex-shrink: 0;
  transition: transform var(--duration-xs) var(--ease),
              color var(--duration-xs) var(--ease);
}

.workshop-item:hover .workshop-item__arrow {
  transform: translateX(4px);
  color: var(--white);
}

/* ─── 14. CONTACT ───────────────────────────────────────────── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.contact-info__label {
  font-size: var(--text-xs);
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-1);
}

.contact-info__value { color: var(--gray-200); }
.contact-info__value a:hover { color: var(--white); }

/* ─── 15. PHOTO ANNOTATION ──────────────────────────────────── */
.photo-note {
  position: absolute;
  bottom: var(--s-4);
  right: var(--s-4);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  color: var(--gray-500);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--gray-800);
  z-index: 2;
  max-width: 280px;
  line-height: 1.4;
}

/* ─── 16. BLOCKQUOTE ────────────────────────────────────────── */
blockquote {
  border-left: 2px solid var(--gray-700);
  padding-left: var(--s-6);
  font-style: italic;
  color: var(--gray-200);
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* ─── 17. FOOTER ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--gray-800);
  padding: var(--s-16) 0 var(--s-8);
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-8);
  margin-bottom: var(--s-8);
}

.footer__brand img { height: 22px; margin-bottom: var(--s-3); }
.footer__tagline { font-size: var(--text-sm); color: var(--gray-600); }

.footer__links {
  display: flex;
  gap: var(--s-6);
}
.footer__links a {
  font-size: var(--text-sm);
  color: var(--gray-500);
  transition: color var(--duration-xs) var(--ease);
}
.footer__links a:hover { color: var(--white); }

.footer__contact { text-align: right; }
.footer__contact a {
  display: block;
  font-size: var(--text-sm);
  color: var(--gray-500);
  transition: color var(--duration-xs) var(--ease);
}
.footer__contact a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy { font-size: var(--text-xs); color: var(--gray-700); }

.footer__legal { display: flex; gap: var(--s-6); }
.footer__legal a {
  font-size: var(--text-xs);
  color: var(--gray-700);
  transition: color var(--duration-xs) var(--ease);
}
.footer__legal a:hover { color: var(--gray-500); }

@media (max-width: 767px) {
  .footer__grid { flex-direction: column; gap: var(--s-6); }
  .footer__contact { text-align: left; }
  .footer__bottom { flex-direction: column; gap: var(--s-3); text-align: center; }
}

/* ─── 18. SCROLL ANIMATIONS ────────────────────────────────── */

/* Base: hidden until triggered */
.anim {
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

/* Fade up (default) */
.anim--up {
  transform: translate3d(0, 40px, 0);
}

/* Fade in (no movement) */
.anim--fade {
  transform: none;
}

/* Scale in */
.anim--scale {
  transform: scale(0.96);
}

/* Slide from left */
.anim--left {
  transform: translate3d(-40px, 0, 0);
}

/* Slide from right */
.anim--right {
  transform: translate3d(40px, 0, 0);
}

/* Visible state */
.anim.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Stagger group: children animate sequentially */
.anim-group > * {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.anim-group.is-visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.anim-group.is-visible > *:nth-child(1)  { transition-delay: 0ms; }
.anim-group.is-visible > *:nth-child(2)  { transition-delay: 80ms; }
.anim-group.is-visible > *:nth-child(3)  { transition-delay: 160ms; }
.anim-group.is-visible > *:nth-child(4)  { transition-delay: 240ms; }
.anim-group.is-visible > *:nth-child(5)  { transition-delay: 320ms; }
.anim-group.is-visible > *:nth-child(6)  { transition-delay: 400ms; }
.anim-group.is-visible > *:nth-child(7)  { transition-delay: 480ms; }
.anim-group.is-visible > *:nth-child(8)  { transition-delay: 560ms; }
.anim-group.is-visible > *:nth-child(9)  { transition-delay: 640ms; }
.anim-group.is-visible > *:nth-child(10) { transition-delay: 720ms; }
.anim-group.is-visible > *:nth-child(11) { transition-delay: 800ms; }
.anim-group.is-visible > *:nth-child(12) { transition-delay: 880ms; }

/* Parallax background (controlled by JS) */
.parallax {
  will-change: transform;
  transition: none;
}

/* ─── 19. UTILITIES ─────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.mb-2  { margin-bottom: var(--s-2); }
.mb-4  { margin-bottom: var(--s-4); }
.mb-6  { margin-bottom: var(--s-6); }
.mb-8  { margin-bottom: var(--s-8); }
.mb-12 { margin-bottom: var(--s-12); }
.mb-16 { margin-bottom: var(--s-16); }
.mt-4  { margin-top: var(--s-4); }
.mt-8  { margin-top: var(--s-8); }
.mt-12 { margin-top: var(--s-12); }

.text-center { text-align: center; }

/* Match tile grid width/padding for non-tile sections */
.container--tile {
  max-width: var(--max-w-wide);
  padding-left: var(--tile-gap);
  padding-right: var(--tile-gap);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-8); }

@media (max-width: 1023px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ─── 20. APPLE TILE GRID ──────────────────────────────────── */

/* Tile container */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tile-gap);
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--tile-gap);
}

/* Base tile — clickable card with bg image */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  transition: transform var(--duration-xs) var(--ease),
              box-shadow var(--duration-xs) var(--ease);
}

.tile:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-lift);
}

/* Background image layer */
.tile__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
  z-index: 0;
}

.tile:hover .tile__bg {
  transform: scale(1.04);
}

/* Gradient overlay */
.tile__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0.15) 100%
  );
}

/* Text content inside tile */
.tile__body {
  position: relative;
  z-index: 1;
  padding: var(--s-10) var(--s-8);
}

.tile__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--s-3);
}

.tile__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: var(--s-3);
}

.tile__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: var(--s-4);
}

.tile__arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  transition: gap var(--duration-xs) var(--ease);
}

.tile__arrow::after {
  content: '\2192';
  transition: transform var(--duration-xs) var(--ease);
}

.tile:hover .tile__arrow::after {
  transform: translateX(4px);
}

/* Featured tile — full width */
.tile--featured {
  grid-column: 1 / -1;
  min-height: 480px;
}

.tile--featured .tile__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

.tile--featured .tile__desc {
  max-width: 520px;
}

@media (max-width: 767px) {
  .tiles {
    grid-template-columns: 1fr;
    padding: 0 var(--s-6);
  }
  .tile {
    min-height: 340px;
  }
  .tile--featured {
    min-height: 380px;
  }
}

/* ─── 21. CARD ENHANCEMENTS ────────────────────────────────── */

/* Keynote cards — override old 1px-gap border grid */
.keynotes {
  background: transparent;
  gap: var(--tile-gap);
}

.keynote {
  background: var(--gray-900);
  border-radius: var(--radius);
  transition: transform var(--duration-xs) var(--ease),
              box-shadow var(--duration-xs) var(--ease);
}

.keynote:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-lift);
}

.keynote--wide {
  background: var(--gray-900);
}

/* Testimonial cards */
.testimonial {
  background: var(--gray-900);
  border-radius: var(--radius);
  padding: var(--s-8);
  transition: transform var(--duration-xs) var(--ease),
              box-shadow var(--duration-xs) var(--ease);
}

.testimonial:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-lift);
}

/* Offering cards — override base .offering grid layout */
.offering.offering--card {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: var(--s-3);
  background: var(--gray-900);
  border-radius: var(--radius);
  padding: var(--s-8);
  border-bottom: none;
  transition: transform var(--duration-xs) var(--ease),
              box-shadow var(--duration-xs) var(--ease);
}

.offering.offering--card:first-child { padding-top: var(--s-8); }
.offering.offering--card:last-child { border-bottom: none; }

.offering.offering--card:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-lift);
}

/* Workshop item cards — override base .workshop-item flex layout */
.workshop-item.workshop-item--card {
  flex-direction: column;
  align-items: flex-start;
  background: var(--gray-900);
  border-radius: var(--radius);
  padding: var(--s-8);
  border-bottom: none;
  transition: transform var(--duration-xs) var(--ease),
              box-shadow var(--duration-xs) var(--ease);
}

.workshop-item.workshop-item--card:first-child { padding-top: var(--s-8); }
.workshop-item.workshop-item--card:last-child { border-bottom: none; }

.workshop-item.workshop-item--card .workshop-item__arrow {
  align-self: flex-end;
  margin-top: var(--s-4);
}

.workshop-item.workshop-item--card:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-lift);
}

/* Outcome cards */
.outcome-card {
  background: var(--gray-900);
  border-radius: var(--radius);
  padding: var(--s-8);
  transition: transform var(--duration-xs) var(--ease),
              box-shadow var(--duration-xs) var(--ease);
}

.outcome-card:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-lift);
}

/* On surface sections, outcome cards use darker bg */
.section--surface .outcome-card {
  background: var(--gray-800);
}

/* Identity cards (about page) */
.identity-card {
  background: var(--gray-900);
  border-radius: var(--radius-sm);
  padding: var(--s-6) var(--s-8);
  border-bottom: none;
  transition: transform var(--duration-xs) var(--ease),
              box-shadow var(--duration-xs) var(--ease);
}

.identity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Stage photos */
.stage-photo {
  border-radius: var(--radius);
  overflow: hidden;
}

.stage-photo img {
  transition: transform 0.6s var(--ease-out);
}

.stage-photo:hover img {
  transform: scale(1.03);
}

/* ─── 22. CARD GRID LAYOUTS ────────────────────────────────── */

/* Offering grid (2x2) */
.offering-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tile-gap);
}

@media (max-width: 767px) {
  .offering-grid {
    grid-template-columns: 1fr;
  }
}

/* Workshop grid (2x2) */
.workshop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tile-gap);
}

@media (max-width: 767px) {
  .workshop-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── 23. PRINT ─────────────────────────────────────────────── */
@media print {
  .nav, .footer, .photo-note { display: none; }
  body { background: #fff; color: #000; }
  .section { min-height: auto; padding: 2rem 0; }
  .anim, .anim-group > * { opacity: 1 !important; transform: none !important; }
}
