/* MSIIA About v2 — extracted keyframes + reveal transitions
 * Generated by scripts/build-about-v2.mjs on 2026-07-24
 */

/* Local baseline for the /about-v2 root (does not affect other pages) */
.about-v2-main {
  position: relative;
  z-index: 1;
  color: #ede7db;
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: clip;
  background: transparent;
}

/* Fixed background layer sitting behind the main content but above the
 * site texture. Positioned inside main so it does not leak above the
 * shared header. */
.about-v2-bg { pointer-events: none; }

/* Keyframes — namespaced with av2_ prefix to avoid collision */
@keyframes av2_tkScroll     { from { transform: translateX(0); }              to { transform: translateX(-50%); } }
@keyframes av2_pulseDot     { 0%, 100% { opacity: 1; }                        50% { opacity: 0.3; } }
@keyframes av2_spinRing     { from { transform: rotateZ(0deg); }              to { transform: rotateZ(360deg); } }
@keyframes av2_spinRingR    { from { transform: rotateZ(360deg); }            to { transform: rotateZ(0deg); } }
@keyframes av2_coreFloat    { from { transform: translateY(-7px); }           to { transform: translateY(9px); } }
@keyframes av2_corePulse    { 0%, 100% { opacity: 0.45; transform: scale(0.95); } 50% { opacity: 0.9; transform: scale(1.06); } }
@keyframes av2_fogA         { 0%, 100% { transform: translate3d(-2%, -1%, 0) scale(1); } 50% { transform: translate3d(3%, 2%, 0) scale(1.07); } }
@keyframes av2_fogB         { 0%, 100% { transform: translate3d(2%, 2%, 0) scale(1.05); } 50% { transform: translate3d(-3%, -1%, 0) scale(1); } }
@keyframes av2_pFloat       { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 0.5; } 88% { opacity: 0.5; } 100% { transform: translateY(-54px); opacity: 0; } }
@keyframes av2_railLight    { from { background-position: -260px 0, 0 0; }   to { background-position: calc(100% + 260px) 0, 0 0; } }
@keyframes av2_archGlow     { 0%, 55%, 100% { opacity: 0; }                   22% { opacity: 0.55; } }
@keyframes av2_horizonPulse { 0%, 100% { opacity: 0.5; }                      50% { opacity: 0.95; } }
@keyframes av2_chipIn       { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes av2_labelFloat   { 0%, 100% { transform: translateY(0); }          50% { transform: translateY(-2px); } }

/* Reduced-motion + tab-hidden: pause every data-anim */
@media (prefers-reduced-motion: reduce) {
  [data-about-v2] [data-anim] { animation: none !important; }
}
[data-about-v2][data-motion="reduced"] [data-anim] { animation: none !important; }
[data-about-v2][data-vis="hidden"]     [data-anim] { animation-play-state: paused !important; }

/* Initial pre-reveal state — the JS observer flips these to visible.
 * Set here so the CSS matches the JS behaviour even if JS is late. */
.about-v2-main [data-rv2],
.about-v2-main [data-rv2c] > * { opacity: 0; }
.about-v2-main [data-rv2].is-rv2-in,
.about-v2-main [data-rv2c] > .is-rv2-in { opacity: 1; }

/* Hero core canvas — force block behaviour */
.about-v2-main [data-core-canvas] { display: block; }

/* Focus visibility for the skip-link + any interactive element */
.about-v2-main a:focus-visible,
.about-v2-main button:focus-visible {
  outline: 2px solid rgba(229, 203, 140, 0.75);
  outline-offset: 3px;
}

/* Selection colour */
.about-v2-main ::selection { background: rgba(200, 169, 110, 0.3); color: #F5F1E8; }

/* ─────────────────────────────────────────────────────────────
 * Final Platform Access CTA — mobile responsive fix
 *
 * The design ships a decorative absolutely-positioned atmospheric
 * gold line at `bottom: 24%` of the CTA section. At desktop widths
 * (three CTA buttons on one row) that percentage puts the line
 * roughly between the buttons and the secondary text links —
 * looks like a subtle divider by placement. On mobile the buttons
 * stack vertically so the section grows taller and the same 24%
 * migrates upward, intersecting the Account Workspace button.
 *
 * Fix (mobile only, desktop untouched):
 *   1. Hide the atmospheric absolutely-positioned line.
 *   2. Stack the three primary CTAs in a single full-width column.
 *   3. Grid the four secondary links 2×2 (1 col ≤ 339px).
 *   4. Add a real flow-based divider via border-top on the
 *      secondary-links wrapper so it always sits below the
 *      complete button group, regardless of button count / height.
 * ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .about-v2-main .av2-cta-atmos-line { display: none !important; }

  .about-v2-main .av2-cta-primary {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100%;
    max-width: min(100% - 32px, 420px);
    margin-inline: auto;
    margin-top: clamp(28px, 6vw, 40px) !important;
  }
  .about-v2-main .av2-cta-primary > a {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .about-v2-main .av2-cta-secondary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 12px !important;
    width: 100%;
    max-width: min(100% - 32px, 360px);
    margin-inline: auto;
    margin-top: clamp(24px, 6vw, 32px) !important;
    padding-top: clamp(22px, 5vw, 30px);
    border-top: 1px solid rgba(200, 169, 110, 0.24);
    text-align: center;
  }
  .about-v2-main .av2-cta-secondary > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 8px;
    white-space: normal;
  }
}

/* Very narrow phones: collapse secondary links to a single column */
@media (max-width: 339px) {
  .about-v2-main .av2-cta-secondary {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════
 * About Hero v3 — compact, cinematic, 3D-background
 *
 * The v2 hero was ~880px tall on desktop and put the 3D core
 * in a small right-hand card next to an oversized display title.
 * v3 halves the height, tightens the type hierarchy, and turns
 * the 3D architecture into a full-bleed background layer.
 * ═══════════════════════════════════════════════════════ */
.av2-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(400px, 46vh, 500px);
  padding: clamp(20px, 2.5vh, 36px) 0 clamp(24px, 3vh, 40px);
  overflow: hidden;
  isolation: isolate;
}

.av2-hero__field {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.av2-hero__grid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.62;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
}
.av2-hero__stage {
  position: absolute;
  top: 50%; right: clamp(-160px, -6vw, -40px);
  transform: translateY(-50%);
  width: min(78vw, 1100px);
  height: min(70vw, 720px);
  z-index: 1;
}
.av2-hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.av2-hero__halo {
  position: absolute;
  top: 50%; right: -8%;
  width: min(58vw, 820px);
  height: min(58vw, 820px);
  transform: translateY(-50%);
  background: radial-gradient(circle,
    rgba(200,169,110,0.22) 0%,
    rgba(200,169,110,0.10) 22%,
    rgba(200,169,110,0.035) 46%,
    transparent 64%);
  z-index: 0;
  pointer-events: none;
}
.av2-hero__ambient {
  position: absolute;
  bottom: -18%; left: 14%;
  width: 52vw; height: 44vw;
  background: radial-gradient(circle, rgba(180,160,120,0.07), transparent 62%);
  filter: blur(8px);
  animation: av2_fogA 58s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
.av2-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(5,7,11,0.94) 0%,
    rgba(5,7,11,0.88) 26%,
    rgba(5,7,11,0.56) 50%,
    rgba(5,7,11,0.16) 74%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
}
.av2-hero__bleed {
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 96px;
  background: linear-gradient(180deg,
    transparent,
    rgba(5,7,11,0.66) 62%,
    #05070B 100%);
  z-index: 3;
  pointer-events: none;
}

.av2-hero__wrap {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px);
}
.av2-hero__content {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Role 01 — Technical eyebrow */
.av2-hero__label {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 6px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c8a96e;
}
.av2-hero__label-rule {
  display: inline-block;
  width: 34px; height: 1px;
  background: rgba(200,169,110,0.55);
}

/* Intro strip */
.av2-hero__intro {
  margin: 0 0 14px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #817765;
}

/* Role 02 — Primary display + Role 03 — Editorial emphasis */
.av2-hero__title {
  margin: 0;
  max-width: 580px;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 3.2vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #F5F1E8;
  text-wrap: balance;
}
.av2-hero__title-primary { display: block; }
.av2-hero__title-emphasis {
  display: block;
  margin-top: 2px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.78em;
  letter-spacing: 0.005em;
  text-transform: none;
  color: #c8a96e;
}

/* Role 04 — Introductory body */
.av2-hero__desc {
  margin: 14px 0 0;
  max-width: 520px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);
  line-height: 1.58;
  color: #b4aa99;
}

/* Compact CTA group */
.av2-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.av2-hero__cta-primary,
.av2-hero__cta-secondary {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 220ms cubic-bezier(0.22,1,0.36,1),
              border-color 220ms cubic-bezier(0.22,1,0.36,1),
              color 220ms cubic-bezier(0.22,1,0.36,1),
              transform 220ms cubic-bezier(0.22,1,0.36,1);
}
.av2-hero__cta-primary {
  background: #c8a96e;
  color: #050506;
  border: 1px solid #c8a96e;
}
.av2-hero__cta-primary:hover {
  background: #e5cb8c;
  border-color: #e5cb8c;
  transform: translateY(-2px);
}
.av2-hero__cta-primary svg { width: 16px; height: 16px; }
.av2-hero__cta-secondary {
  background: transparent;
  color: #ede7db;
  border: 1px solid rgba(200,169,110,0.42);
}
.av2-hero__cta-secondary:hover {
  color: #e5cb8c;
  background: rgba(200,169,110,0.06);
  border-color: rgba(229,203,140,0.7);
  transform: translateY(-2px);
}
.av2-hero__cta-tertiary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 4px;
  color: #c8a96e;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(200,169,110,0.3);
  transition: color 220ms cubic-bezier(0.22,1,0.36,1),
              border-color 220ms cubic-bezier(0.22,1,0.36,1);
}
.av2-hero__cta-tertiary:hover {
  color: #e5cb8c;
  border-color: rgba(229,203,140,0.7);
}

/* Compact metadata register */
.av2-hero__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 0 22px;
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(200,169,110,0.14);
}
.av2-hero__meta > div {
  padding-left: 20px;
  border-left: 1px solid rgba(200,169,110,0.12);
}
.av2-hero__meta > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.av2-hero__meta dt {
  margin: 0 0 4px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #817765;
}
.av2-hero__meta dd {
  margin: 0;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #F5F1E8;
  font-variant-numeric: tabular-nums;
}

.av2-sr-only {
  position: absolute; left: 0; top: 0;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* — Tablet — stack copy above enlarged full-bleed 3D — */
@media (max-width: 960px) {
  .av2-hero {
    min-height: clamp(600px, 66vh, 760px);
    padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 5vw, 60px);
  }
  .av2-hero__content { max-width: 100%; }
  .av2-hero__stage {
    right: -14%;
    width: 96vw;
    height: 62vw;
    opacity: 0.88;
  }
  .av2-hero__halo {
    top: 54%; right: -12%;
    width: 88vw; height: 88vw;
  }
  .av2-hero__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
  }
  .av2-hero__meta > div {
    padding-left: 0;
    border-left: 0;
  }
  .av2-hero__meta > div:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid rgba(200,169,110,0.12);
  }
}

/* — Mobile — 3D becomes a full atmospheric background — */
@media (max-width: 640px) {
  .av2-hero {
    min-height: clamp(560px, 92vw, 700px);
    padding: 20px 0 32px;
  }
  .av2-hero__title {
    font-size: clamp(1.9rem, 9vw, 2.9rem);
    line-height: 1;
  }
  .av2-hero__title-emphasis {
    font-size: 0.74em;
    margin-top: 2px;
  }
  .av2-hero__desc {
    font-size: 0.98rem;
    margin-top: 12px;
  }
  .av2-hero__stage {
    top: 62%; right: -22%;
    width: 140vw; height: 96vw;
    opacity: 0.6;
  }
  .av2-hero__halo {
    top: 66%; right: -18%;
    width: 100vw; height: 100vw;
  }
  .av2-hero__grid { opacity: 0.32; }
  .av2-hero__scrim {
    background: linear-gradient(180deg,
      rgba(5,7,11,0.96) 0%,
      rgba(5,7,11,0.88) 40%,
      rgba(5,7,11,0.58) 62%,
      rgba(5,7,11,0.16) 84%,
      transparent 100%);
  }
  .av2-hero__actions {
    gap: 10px;
    width: 100%;
  }
  .av2-hero__cta-primary,
  .av2-hero__cta-secondary {
    flex: 1 1 100%;
    justify-content: center;
  }
  .av2-hero__cta-tertiary { padding-left: 0; }
}

/* — Very narrow — single-column metadata — */
@media (max-width: 360px) {
  .av2-hero__meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .av2-hero__meta > div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}

/* Reduced motion — freeze ambient halo */
@media (prefers-reduced-motion: reduce) {
  .av2-hero__ambient { animation: none !important; }
}
