/* =========================================================================
   Ohalik — "Our Story" (About) page · cinematic redesign
   Scoped under .as-page so it never collides with style.css
   Drop at: public/css/about-story.css   →   <link href="/css/about-story.css">
   ========================================================================= */

.as-page {
  /* nightfall theme (default). Swap to .as-page.is-forest / .is-midnight below */
  --deep:  #0B1A1A;
  --deep2: #102A28;
  --gold:  #C8A24B;
  --paper: #F4EFE6;
  --ink:   #1A1714;

  font-family: 'Hanken Grotesk', sans-serif;
  background: var(--deep);
  color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.as-page.is-forest   { --deep:#0C1A12; --deep2:#143524; }
.as-page.is-midnight { --deep:#0A1320; --deep2:#122238; }

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

.as-page ::selection { background: var(--gold); color: var(--deep); }

/* ---- scroll progress bar ---- */
.as-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 1200;
  background: var(--gold); box-shadow: 0 0 12px rgba(200,162,75,.6);
  transition: width .1s linear;
}

/* ---- shared section padding ---- */
.as-section { padding: clamp(5rem,12vh,9rem) clamp(1.5rem,6vw,4rem); }
.as-section--paper { background: var(--paper); color: var(--ink); }
.as-section--deep  { background: var(--deep); }
.as-section--deep2 { background: var(--deep2); }
.as-wrap { max-width: 1180px; margin: 0 auto; }

/* ---- reveal-on-scroll base ---- */
.as-page [data-reveal] { opacity: 0; transform: translateY(32px); }
.as-page .as-in { opacity: 1 !important; transform: none !important; }

/* ---- type primitives ---- */
.as-kicker {
  text-transform: uppercase; letter-spacing: .36em; font-size: .72rem;
  font-weight: 600; color: var(--gold); margin: 0 0 1.3rem;
}
.as-section--paper .as-kicker { color: #a07d22; }
.as-h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(2.2rem,4.5vw,3.4rem); line-height: 1.05;
  letter-spacing: -.01em; color: #fff; margin: 0 0 1.5rem;
}
.as-section--paper .as-h2 { color: var(--ink); }

/* =========================== HERO =========================== */
.as-hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  overflow: hidden; background: #0B1A1A;
}
.as-hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform-origin: 60% 40%; animation: as-kenburns 24s ease-out forwards;
}
.as-page.no-motion .as-hero > img { animation: none; }
.as-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,17,15,.93) 0%, rgba(7,17,15,.18) 52%, rgba(7,17,15,.55) 100%);
}
.as-hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 0 clamp(1.25rem,5vw,3.25rem) clamp(3.5rem,9vh,7rem);
}
.as-hero-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(3rem,8.5vw,7rem); line-height: .97; letter-spacing: -.01em;
  color: #fff; margin: 0; max-width: 14ch;
}
.as-hero-sub {
  max-width: 560px; margin: 1.9rem 0 0; font-weight: 300;
  font-size: clamp(1.02rem,1.5vw,1.22rem); line-height: 1.65; color: rgba(244,239,230,.82);
}
.as-scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.as-scroll span:first-child {
  font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: rgba(244,239,230,.6);
}
.as-scroll-line {
  width: 1px; height: 38px; animation: as-scrollbob 2.4s ease-in-out infinite;
  background: linear-gradient(to bottom, rgba(244,239,230,.7), transparent);
}

/* =========================== OPENING LEAD =========================== */
.as-lead-wrap {
  max-width: 980px; margin: 0 auto; text-align: center;
  transition: opacity 1.1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.as-lead {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(1.7rem,3.6vw,2.9rem); line-height: 1.32; color: var(--ink); margin: 0;
}
.as-lead em { font-style: italic; color: #8a6d2a; }

/* =========================== FEATURE (founder / name) =========================== */
.as-feature {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  gap: clamp(2.5rem,6vw,5.5rem); align-items: start;
}
.as-feature.as-feature--center { align-items: center; }
.as-feature-col {
  transition: opacity 1.1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.as-feature-col--delay { transition-delay: .12s; }
.as-feature-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.as-feature-media--bordered { border: 1px solid rgba(244,239,230,.1); }
.as-feature-media--sticky { position: sticky; top: 96px; }
.as-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.as-feature-media--founder img { object-position: center 30%; }
.as-prose { max-width: 54ch; }
.as-prose p { font-size: 1.08rem; line-height: 1.85; font-weight: 300; color: rgba(244,239,230,.78); margin: 0 0 1.4rem; }
.as-section--paper .as-prose p { color: #5A5248; font-weight: 400; }
.as-prose em { font-style: italic; }
.as-section--paper .as-prose em { color: var(--ink); }
.as-prose p:last-child { margin-bottom: 0; }
.as-sign {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.4rem;
  color: var(--gold); margin: 2.2rem 0 0;
}

/* =========================== PULL QUOTE BAND =========================== */
.as-quote-band {
  position: relative; padding: clamp(6rem,18vh,12rem) clamp(1.5rem,6vw,4rem);
  background-image: linear-gradient(rgba(7,17,15,.72), rgba(7,17,15,.82)), url('/images/slider/uzbekistan1.jpg');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.as-quote-inner {
  max-width: 960px; margin: 0 auto; text-align: center;
  transition: opacity 1.1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.as-quote {
  font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic;
  font-size: clamp(2.1rem,5.5vw,4.2rem); line-height: 1.18; color: #fff; margin: 0;
}
.as-cite {
  display: block; margin-top: 2rem; font-style: normal; text-transform: uppercase;
  letter-spacing: .28em; font-size: .78rem; font-weight: 600; color: var(--gold);
}

/* =========================== VALUES =========================== */
.as-values {
  display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  gap: clamp(2.5rem,6vw,5.5rem); align-items: start;
}
.as-values-head {
  position: sticky; top: 120px;
  transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1);
}
.as-values-head .as-h2 { margin-bottom: 1.6rem; }
.as-line {
  display: block; width: 0; height: 2px; background: var(--gold);
  transition: width 1.2s cubic-bezier(.22,.61,.36,1) .35s;
}
.as-values-sub {
  font-size: 1.02rem; line-height: 1.7; font-weight: 300; color: rgba(244,239,230,.6);
  max-width: 34ch; margin: 1.6rem 0 0;
}
.as-values-list { border-top: 1px solid rgba(244,239,230,.14); }
.as-value {
  display: flex; gap: clamp(1.25rem,3vw,2.5rem); align-items: flex-start;
  padding: clamp(1.8rem,3.5vw,2.6rem) 0; border-bottom: 1px solid rgba(244,239,230,.14); cursor: default;
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1),
              background .45s ease, padding .45s ease;
}
.as-value:hover { background: rgba(244,239,230,.035); padding-left: 1.5rem; padding-right: 1.5rem; }
.as-value-num {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; line-height: .85;
  font-size: clamp(2.6rem,5vw,4rem); flex-shrink: 0; width: 1.6em;
  color: transparent; -webkit-text-stroke: 1px rgba(200,162,75,.5);
  transition: color .45s ease, -webkit-text-stroke .45s ease;
}
.as-value:hover .as-value-num { color: var(--gold); -webkit-text-stroke: 1px var(--gold); }
.as-value-body { padding-top: .4rem; }
.as-value-body h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(1.5rem,2.6vw,2.1rem); line-height: 1.08; color: #fff; margin: 0 0 .7rem;
}
.as-value-body p { font-size: 1.02rem; line-height: 1.75; font-weight: 300; color: rgba(244,239,230,.7); margin: 0; max-width: 52ch; }

/* =========================== TIMELINE =========================== */
.as-tl-head { text-align: center; max-width: 680px; margin: 0 auto clamp(3rem,7vh,5rem);
  transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1); }
.as-tl-head .as-h2 { margin-bottom: 0; }
.as-timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 2.5rem; }
.as-timeline-track {
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(to bottom, var(--gold), rgba(200,162,75,.25));
}
.as-tl-item {
  position: relative; padding-bottom: 2.75rem;
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
}
.as-tl-item:last-child { padding-bottom: 0; }
.as-tl-dot {
  position: absolute; left: -2.5rem; top: 4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(200,162,75,.12);
}
.as-tl-year { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: #8a6d2a; margin: 0 0 .4rem; }
.as-tl-text { font-size: 1.06rem; line-height: 1.7; color: #5A5248; margin: 0; max-width: 52ch; }

/* =========================== FULL-BLEED BAND =========================== */
.as-band {
  position: relative; min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: clamp(4rem,10vh,8rem) clamp(1.5rem,6vw,4rem);
  background-image: linear-gradient(rgba(7,17,15,.55), rgba(7,17,15,.7)), url('/images/slider/uzbekistan-mountai.jpg');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.as-band-inner { transition: opacity 1.1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1); }
.as-band-inner .as-kicker { letter-spacing: .4em; font-size: .74rem; margin-bottom: 1.4rem; }
.as-band-inner .as-h2 { font-size: clamp(2.6rem,6.5vw,5rem); margin: 0; }

/* =========================== STAT =========================== */
.as-stat { text-align: center; }
.as-stat-inner { max-width: 760px; margin: 0 auto;
  transition: opacity 1.1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1); }
.as-stat-num {
  font-family: 'Cormorant Garamond', serif; font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(5rem,16vw,11rem); line-height: .9; color: var(--gold); margin: 0;
}
.as-stat-lead { font-size: clamp(1.05rem,1.7vw,1.3rem); line-height: 1.6; color: var(--paper); margin: 1.5rem 0 0; }
.as-stat-note { font-size: 1.02rem; line-height: 1.8; font-weight: 300; color: rgba(244,239,230,.62);
  max-width: 600px; margin: 1.6rem auto 0; }
.as-stat-note em { font-style: italic; color: rgba(244,239,230,.85); }

/* =========================== TEAM =========================== */
.as-team-head { text-align: center; max-width: 680px; margin: 0 auto clamp(3rem,7vh,5rem);
  transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1); }
.as-team-head .as-h2 { margin-bottom: 0; }
.as-team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.25rem,2.5vw,2rem); }
.as-team-card { transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1); }
.as-team-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; margin-bottom: 1.1rem; }
.as-team-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.95);
  transition: transform 1.1s cubic-bezier(.22,.61,.36,1);
}
.as-team-card:hover .as-team-photo img { transform: scale(1.05); }
.as-team-name { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.5rem; line-height: 1.1; color: #fff; margin: 0; }
.as-team-role { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 600; color: var(--gold); margin: .5rem 0 .8rem; }
.as-team-bio { font-size: .96rem; line-height: 1.7; font-weight: 300; color: rgba(244,239,230,.66); margin: 0; }

/* =========================== CTA =========================== */
.as-cta { text-align: center; border-top: 1px solid rgba(244,239,230,.06); }
.as-cta-inner { max-width: 720px; margin: 0 auto;
  transition: opacity 1.1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1); }
.as-cta .as-kicker { letter-spacing: .4em; font-size: .74rem; margin-bottom: 1.4rem; }
.as-cta .as-h2 { font-size: clamp(2.4rem,5.5vw,4.2rem); margin-bottom: 1.5rem; }
.as-cta-lead { font-size: 1.1rem; line-height: 1.7; font-weight: 300; color: rgba(244,239,230,.72); max-width: 520px; margin: 0 auto 2.6rem; }
.as-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.as-btn {
  display: inline-flex; align-items: center; padding: 1rem 2.3rem; border-radius: 2px;
  font-weight: 600; font-size: .92rem; letter-spacing: .04em; text-decoration: none;
  transition: all .3s ease; cursor: pointer; border: 1.5px solid transparent;
}
.as-btn--gold { background: var(--gold); color: #1a1206; }
.as-btn--gold:hover { filter: brightness(1.08); transform: translateY(-2px); }
.as-btn--ghost { background: transparent; color: #fff; border-color: rgba(244,239,230,.5); }
.as-btn--ghost:hover { background: rgba(244,239,230,.1); border-color: #fff; }

/* =========================== KEYFRAMES =========================== */
@keyframes as-kenburns { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.16) translateY(-1.5%); } }
@keyframes as-scrollbob { 0%,100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(8px); opacity: 1; } }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 900px) {
  .as-feature, .as-values { grid-template-columns: 1fr; }
  .as-feature-media--sticky, .as-values-head { position: static; }
  .as-feature-col--delay { transition-delay: 0s; }
  .as-team-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .as-team-grid { grid-template-columns: 1fr; }
  .as-timeline { padding-left: 2rem; }
  .as-value { gap: 1rem; }
}

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .as-page [data-reveal] { opacity: 1; transform: none; }
  .as-hero > img { animation: none; }
  .as-scroll-line { animation: none; }
  .as-quote-band, .as-band { background-attachment: scroll; }
}

