:root {
  --bg: #F4EEE3;
  --linen: #ECE3D3;
  --card: #FAF6EE;
  --espresso: #261C15;
  --fg: #2A1E17;
  --muted: rgba(42, 30, 23, 0.68);
  --line: rgba(42, 30, 23, 0.14);
  --gold: #DFB565;
  --gold-deep: #C79A46;
  --terracotta: #B24A2A;
  --font-display: 'Amiri', Georgia, serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.75;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; letter-spacing: 0; }

.bidi {
  display: inline-block;
  unicode-bidi: isolate;
}

.ao-container {
  width: min(1220px, calc(100% - 44px));
  margin-inline: auto;
}

/* Navbar */
.ao-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 70;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.ao-header.is-stuck {
  background: rgba(244, 238, 227, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
}

.ao-nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ao-brand {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  white-space: nowrap;
}

.ao-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.ao-links a {
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.ao-links a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.ao-links a:hover::after { transform: scaleX(1); }

.ao-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ao-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: transform 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}

.ao-pill:hover { transform: translateY(-2px); }

.ao-pill-dark {
  background: var(--espresso);
  color: var(--bg);
}

.ao-pill-gold {
  background: var(--gold);
  color: var(--espresso);
}

.ao-pill-ghost {
  background: rgba(250, 246, 238, 0.24);
  color: var(--card);
  border: 1px solid rgba(250, 246, 238, 0.45);
  backdrop-filter: blur(8px);
}

.ao-pill-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}

.ao-pill-sm {
  padding: 8px 16px;
  font-size: 12.5px;
}

/* 1. Editorial Sunlit Meadow Hero */
.ao-hero {
  position: relative;
  min-height: 100svh;
  padding: 96px 0 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  color: #FAF5EC;
}

.ao-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  z-index: -3;
}

.ao-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to left, rgba(38, 28, 21, 0.72) 0%, rgba(38, 28, 21, 0.36) 52%, rgba(38, 28, 21, 0.14) 100%),
    linear-gradient(to top, rgba(38, 28, 21, 0.76) 0%, transparent 45%);
}

.ao-masthead {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 11.8vw, 10.6rem);
  font-weight: 400;
  line-height: 1.18;
  text-align: center;
  color: rgba(250, 245, 236, 0.88);
  pointer-events: none;
  user-select: none;
  margin-top: 6px;
  text-shadow: 0 8px 36px rgba(38, 28, 21, 0.18);
}

.ao-hero-lower {
  max-width: 620px;
  margin-top: auto;
  padding-top: 24px;
}

.ao-kicker-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(250, 245, 236, 0.34);
  background: rgba(38, 28, 21, 0.26);
  backdrop-filter: blur(8px);
  font-size: 12px;
  color: rgba(250, 245, 236, 0.92);
  margin-bottom: 18px;
}

.ao-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.7vw, 4.3rem);
  font-weight: 400;
  line-height: 1.32;
  margin-bottom: 16px;
}

.ao-h1 em {
  font-style: italic;
  color: var(--gold);
}

.ao-hero-lead {
  font-size: 16px;
  color: rgba(250, 245, 236, 0.88);
  max-width: 530px;
  margin-bottom: 24px;
}

.ao-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.ao-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 245, 236, 0.28);
  max-width: 560px;
}

.ao-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.28;
  color: #FFFDF8;
}

.ao-stat-lbl {
  font-size: 12.5px;
  color: rgba(250, 245, 236, 0.78);
}

/* Sections */
.ao-sec {
  padding: 104px 0;
}

.ao-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 18px;
}

.ao-eyebrow::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: var(--gold-deep);
}

.ao-h2 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  font-weight: 400;
  line-height: 1.32;
  margin-bottom: 18px;
}

.ao-h2 em {
  font-style: italic;
  color: var(--terracotta);
}

/* 2. About + 3 Principles */
.ao-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
  margin-bottom: 64px;
}

.ao-portrait-frame {
  border-radius: 18px;
  overflow: hidden;
  background: var(--linen);
  border: 1px solid var(--line);
  padding: 14px;
}

.ao-portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: left top;
  border-radius: 10px;
}

.ao-portrait-cap {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
}

.ao-pillars-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.ao-pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.ao-pillar h3 {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.32;
  margin-bottom: 8px;
}

.ao-pillar p {
  font-size: 14.5px;
  color: var(--muted);
}

/* 3. Drag-to-Scrub Speaking Gallery + Espresso Keynote Band */
.ao-scrub-wrap {
  padding-bottom: 56px;
}

.ao-scrub-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.ao-scrub-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 36vw);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 14px;
  cursor: grab;
  scrollbar-width: thin;
}

.ao-scrub-track:active { cursor: grabbing; }

.ao-stage-card {
  padding: 28px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ao-dark-band {
  background: var(--espresso);
  color: #F4EEE3;
  padding: 84px 0;
}

.ao-keynote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}

.ao-kn-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 12px;
}

.ao-keynote-grid p {
  color: rgba(244, 238, 227, 0.8);
  font-size: 15px;
}

/* 4. Programs + Advisory Planner */
.ao-prog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.ao-prog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.ao-prog-card h3 {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.32;
}

.ao-planner {
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
}

.ao-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.ao-mode-tab {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  cursor: pointer;
}

.ao-mode-tab.active {
  background: var(--espresso);
  color: var(--bg);
  border-color: var(--espresso);
}

.ao-planner-out {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}

/* 5. Book & Podcast */
.ao-book-pod {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: start;
}

.ao-book-card {
  background: var(--espresso);
  color: #F4EEE3;
  border-radius: 24px;
  padding: 36px;
  position: relative;
}

.ao-pod-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.ao-pod-row.playing {
  border-color: var(--terracotta);
  background: #FFFDF8;
}

/* Footer */
.ao-footer {
  background: var(--espresso);
  color: #F4EEE3;
  padding: 56px 0 40px;
}

.ao-showcase-rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid rgba(244, 238, 227, 0.14);
}

@media (max-width: 720px) {
  .ao-links { display: none; }
  .ao-about-grid,
  .ao-pillars-3,
  .ao-keynote-grid,
  .ao-prog-grid,
  .ao-planner,
  .ao-book-pod,
  .ao-hero-stats { grid-template-columns: 1fr; }
}
