/* ============================================================================
   SARART · ABOUT — hero split (portrait + typewriter / video slider), My Story
   video banner, the "exhibition room" gallery (scroll-linked band + coverflow +
   pixel-trail) and the closing CTA.

   Every value here is transcribed from the approved mockup (components/about/*
   and app/globals.css of sarart-web). Where a literal has an exact token, the
   token is used; the rest are mockup-specific one-offs and stay literal.
   ============================================================================ */

/* ═══════════════════════════ 1 · HERO (split) ═══════════════════════════ */
.about-hero {
  position: relative;
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* single row with a DEFINITE minimum height → children (align-items:stretch,
     the grid default) fill the full height, so no empty strip appears below.
     Grows past the minimum only if the copy is taller. */
  grid-template-rows: minmax(clamp(560px, calc(100vh - var(--nav-h)), 900px), auto);
  /* clear the fixed marquee + navbar (106px) so the top of the photo/video is
     not hidden behind it (the gold rhombus reads in full). */
  margin-top: var(--nav-h);
}
.about-hero-left,
.about-hero-right { position: relative; overflow: hidden; min-width: 0; }

.about-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 72px) clamp(24px, 4.5vw, 60px) clamp(38px, 5vw, 68px);
}
.about-hero__portrait {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 26%;
  filter: brightness(.82) saturate(.95);
}
/* bottom-heavy scrim (text zone) */
.about-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(13, 13, 18, .95) 0%, rgba(13, 13, 18, .72) 26%, rgba(13, 13, 18, .3) 54%, rgba(13, 13, 18, .04) 100%);
}
/* soft side scrim */
.about-hero__scrim-side {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(13, 13, 18, .5) 0%, rgba(13, 13, 18, 0) 58%);
}

.about-hero__copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 14px;
  max-width: 540px;
}
.about-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  color: var(--gold);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}
.about-hero__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  margin: 0;
  line-height: 1.03;
  letter-spacing: -.01em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .55);
}
.about-hero__role {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 3.4vw, 1.9rem);
  color: var(--gold);
  min-height: 1.5em;
  display: flex;
  align-items: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}
.about-hero__role-prefix { color: #e7e7ee; font-style: normal; font-weight: 300; margin-right: .4ch; }
.about-hero__caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: var(--gold);
  margin-left: 3px;
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
.about-hero__intro {
  color: #eaeaf0;
  font-weight: 300;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.65;
  margin: 8px 0 0;
  max-width: 40ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
}

/* ---- right half: the three-clip slider ---- */
.hero-vids { position: absolute; inset: 0; overflow: hidden; background: var(--dark-3); }
.hero-vids__clip {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* anchor the crop to the RIGHT edge so the filmed "SARART" logo is never
     clipped; the overflow is absorbed on the left (dark textured background). */
  object-position: right center;
  will-change: transform, opacity;
}
.hero-vids__counter {
  position: absolute; right: 18px; bottom: 16px; z-index: 5;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}
.hero-vids__idx { color: var(--gold); }
.hero-vids__total { opacity: .6; }

@media (max-width: 880px) {
  .about-hero { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .about-hero-left { min-height: clamp(440px, 60vh, 620px); }
  .about-hero-right { min-height: clamp(340px, 48vh, 540px); }
}

/* ═══════════════════════════ 2 · MY STORY ═══════════════════════════ */
.story {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: clamp(480px, 62vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 10vw, 110px) clamp(24px, 6vw, 72px);
}
.story__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
/* MINIMAL global veil — just enough to unify; the mural colour stays alive on
   the sides (the video is the soul of this section). */
.story__veil { position: absolute; inset: 0; z-index: 1; background: rgba(10, 10, 14, .15); }
/* legibility handled LOCALLY: a soft dark radial concentrated behind the centred
   copy, fading to almost nothing toward the edges. */
.story__focus {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(72% 64% at 50% 50%, rgba(6, 6, 10, .74) 0%, rgba(6, 6, 10, .44) 40%, rgba(6, 6, 10, 0) 72%);
}
/* edge blend into the neighbouring sections */
.story__edges {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, #16151b 0%, rgba(22, 21, 27, 0) 15%, rgba(22, 21, 27, 0) 84%, #16151b 100%);
}
.story__copy {
  position: relative; z-index: 2;
  max-width: 820px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.story__eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  color: var(--gold);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .85);
}
.story__title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2.2rem, 6.6vw, 3.9rem);
  margin: 0;
  line-height: 1.06;
  text-shadow: 0 2px 34px rgba(0, 0, 0, .9), 0 1px 6px rgba(0, 0, 0, .75);
}
.story__title-gold { font-style: italic; font-weight: 500; color: var(--gold); white-space: nowrap; }
.story__body {
  color: #f1f0f5;
  font-weight: 300;
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  line-height: 1.72;
  margin: 0;
  max-width: 60ch;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .95), 0 1px 3px rgba(0, 0, 0, .8);
}

/* ═══════════════════════════ 3 · GALLERY ═══════════════════════════ */
.about-gallery {
  position: relative;
  padding: clamp(56px, 10vw, 96px) clamp(20px, 6vw, 72px);
  background: linear-gradient(180deg, #16151b 0%, var(--dark-4) 14%, var(--dark-4) 100%);
  overflow: hidden;
}
/* overhead spotlight — champagne-tinted (a warm museum luminaire over a cool
   room): the brand gold lives in the LIGHT, while the base + vignette keep the
   ambient cold. */
.about-gallery__spot,
.about-gallery__vignette,
.about-gallery__floor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.about-gallery__spot { background: radial-gradient(68% 54% at 50% 2%, rgba(232, 208, 158, .08), rgba(232, 208, 158, 0) 60%); }
.about-gallery__vignette { background: radial-gradient(120% 96% at 50% 38%, transparent 52%, rgba(7, 7, 11, .6) 100%); }
/* faint gold reflection on the "floor" — grounds the spinning cards. */
.about-gallery__floor { background: radial-gradient(66% 32% at 50% 100%, rgba(211, 148, 7, .06), rgba(211, 148, 7, 0) 72%); }

/* gold pixel-trail — ONE canvas, above the fog/vignette, below the carousel */
.pixel-trail { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

.about-gallery__inner { position: relative; z-index: 1; }

/* ---- scroll-linked band (two mirrored lines, transform-only) ---- */
.band {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  /* flex column + gap keeps the two lines as separate stacked rows with clear
     air between them (no negative margins, no overlap at any width). */
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.6rem);
}
.band__line {
  white-space: nowrap;
  text-align: center;
  font-family: var(--font-serif);
  line-height: 1;
  will-change: transform;
}
.band__line--name {
  font-weight: 800;
  font-size: clamp(4rem, 9vw, 6.5rem);
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(211, 148, 7, .5);
}
.band__line--roles {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  color: rgba(211, 148, 7, .5);
}

/* ---- coverflow ---- */
.about-gallery__cards { max-width: 1200px; margin: clamp(30px, 5vw, 60px) auto 0; }
.about-gallery__title { display: block; text-align: center; margin-bottom: clamp(22px, 3.5vw, 36px); }
.about-gallery__title-text {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  color: var(--gold);
}

/* Geometry lives in variables so the FIRST PAINT is already the desktop ring.
   assets/js/about.js only re-scales them (uniform down-scale on phones: card,
   radius AND perspective shrink by the same factor, so the separation ratio
   stays the desktop one and cards never touch) and spins the ring. */
.about-gallery__stage {
  position: relative;
  width: 100%;
  height: var(--stage-h, clamp(380px, 46vw, 480px));
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: var(--persp, 1600px);
}
.about-gallery__ring {
  position: relative;
  width: 100%; height: 100%;
  transform: rotateY(0deg);
  transform-style: preserve-3d;
}
.about-gallery__card {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--card-w, 210px);
  height: var(--card-h, 280px);
  margin-left: calc(var(--card-w, 210px) * -.5);
  margin-top: calc(var(--card-h, 280px) * -.5);
  transform: rotateY(var(--angle, 0deg)) translateZ(var(--ring-r, 340px));
  transition: opacity .3s linear;
  /* Only the front card pauses the spin; side cards ignore the mouse entirely so
     hovering the background/sides never stops it. */
  pointer-events: none;
}
.about-gallery__card.is-front { pointer-events: auto; }
.about-gallery__plate {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
  background: linear-gradient(180deg, #f6f5f1 0%, #eceae3 100%);
}
.about-gallery__watermark {
  position: absolute; top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: monospace;
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  color: var(--text-placeholder);
}
.about-gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 14px;
  background: linear-gradient(transparent, rgba(12, 12, 16, .86));
  display: flex; flex-direction: column; gap: 2px;
}
.about-gallery__piece { font-family: var(--font-serif); font-weight: 600; font-size: 15px; color: #fff; }
.about-gallery__medium { font-size: 12px; color: #d2d2da; opacity: .85; }
.about-gallery__brand {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-top: 2px;
}

/* ═══════════════════════════ 4 · CLOSING ═══════════════════════════ */
.about-closing {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 13vw, 140px) clamp(20px, 6vw, 72px) clamp(64px, 11vw, 110px);
  /* fades from the gallery cool into the deep footer dark */
  background: linear-gradient(180deg, var(--dark-4) 0%, var(--dark-3) 100%);
}
.about-float {
  position: absolute; top: 50%; left: 50%; z-index: 0;
  width: 70vw; height: 70vw;
  max-width: 720px; max-height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(211, 148, 7, .11), rgba(211, 148, 7, 0) 64%);
  transform: translate(-50%, -50%);
  animation: floatY 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floatY {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -54%) scale(1.06); }
}
.about-closing__inner {
  position: relative; z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 30px;
}
.about-closing__line {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 5.5vw, 2.7rem);
  line-height: 1.22;
  margin: 0;
  color: #f4f4f7;
}
.about-closing__btn {
  font-weight: 700;
  font-size: 16px;
  padding: 17px 40px;
  border-radius: var(--r-pill);
  min-height: 54px;
  box-shadow: var(--shadow-gold);
}

@media (prefers-reduced-motion: reduce) {
  .about-float { animation: none !important; }
}
