/* ==========================================================================
   About page — "Ethereal Glass" treatment
   --------------------------------------------------------------------------
   Page-scoped: every rule is anchored to .about-page, so the other routes keep
   the shared tokens.css / nucleus.css system untouched.

   Vibe archetype: Ethereal Glass, adapted to the brand's strictly monochrome
   palette. The mesh orbs are built from the sanctioned steel/silver tones,
   never a hue — the brand forbids accent colour anywhere in the system.
   Layout archetype: Asymmetrical Bento, collapsing to a single column below
   768px.

   Motion: one spring curve, cubic-bezier(0.32, 0.72, 0, 1). Only transform,
   opacity and filter animate — nothing that triggers layout.

   CSP note: the site pins style-src and font-src to 'self', so this file is
   the only place the page can carry its own styling, and the type stack names
   premium faces with a system fallback instead of a network font.
   ========================================================================== */

.about-page {
  --glass-bg: #050505;
  --glass-ink: #ffffff;
  --glass-ink-2: rgba(255, 255, 255, 0.66);
  --glass-ink-3: rgba(255, 255, 255, 0.42);
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-2: rgba(255, 255, 255, 0.16);
  --shell: rgba(255, 255, 255, 0.045);
  --core: #0b0d11;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --font-display: var(--font-serif); /* same editorial serif as nucleus.css headings */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius-shell: 2rem;
  --radius-core: calc(2rem - 0.375rem);
  --section-y-premium: clamp(6rem, 4rem + 8vw, 10rem);

  background: var(--glass-bg);
  color: var(--glass-ink);
  font-family: var(--font-body);
  min-height: 100dvh;
}

/* --------------------------------------------------------------------------
   1. Fixed texture layers — never on a scrolling container
   -------------------------------------------------------------------------- */

.about-page::before,
.about-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* Monochrome mesh: two dim orbs, no hue */
.about-page::before {
  z-index: 0;
  background:
    radial-gradient(60rem 60rem at 12% -10%, rgba(45, 48, 53, 0.55), transparent 65%),
    radial-gradient(48rem 48rem at 88% 8%, rgba(169, 170, 171, 0.14), transparent 60%);
}

/* Film grain, 3% */
.about-page::after {
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27160%27%20height%3D%27160%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.8%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27160%27%20height%3D%27160%27%20filter%3D%27url%28%23n%29%27%2F%3E%3C%2Fsvg%3E");
}

.about-page main {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   2. Fluid island nav — a glass pill detached from the top
   -------------------------------------------------------------------------- */

.about-page .site-header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(1200px, calc(100% - 2rem));
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px var(--hairline),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.about-page .header-nav {
  height: auto;
  padding: 0;
  gap: 1.25rem;
}

.about-page .brand-logo-link {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--glass-ink);
}

.about-page .nav-links {
  display: none;
}

@media (min-width: 56em) {
  .about-page .nav-links {
    display: flex;
    gap: 1.75rem;
  }
}

.about-page .nav-link {
  font-size: 0.875rem;
  color: var(--glass-ink-2);
  transition: color 400ms var(--spring);
}

.about-page .nav-link:hover {
  color: var(--glass-ink);
}

/* Button-in-button: the arrow lives in its own circular wrapper */
.about-page .btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 999px;
  background: var(--glass-ink);
  color: var(--glass-bg);
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 400ms var(--spring);
}

.about-page .btn-header-cta::after {
  content: "\2197";
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.10);
  transition: transform 400ms var(--spring);
}

.about-page .btn-header-cta:hover {
  transform: translateY(-1px);
}

.about-page .btn-header-cta:hover::after {
  transform: translate(3px, -1px) scale(1.05);
}

.about-page .btn-header-cta:active {
  transform: scale(0.98);
}

/* Hamburger morphs into an X rather than disappearing */
.about-page .nav-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--glass-ink);
}

.about-page .nav-toggle span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.about-page .nav-toggle__bars {
  position: absolute;
  inset: 0;
  display: block;
  background: none;
}

.about-page .nav-toggle__bars::before,
.about-page .nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 500ms var(--spring);
}

.about-page .nav-toggle__bars::before {
  top: 50%;
  transform: translateY(-4px);
}

.about-page .nav-toggle__bars::after {
  top: 50%;
  transform: translateY(4px);
}

.about-page .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(0) rotate(45deg);
}

.about-page .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(0) rotate(-45deg);
}

/* Staggered mask reveal inside the glass overlay */
.about-page .mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-content: center;
  gap: 2rem;
  padding: 2rem;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms var(--spring), visibility 0s linear 600ms;
}

.about-page .mobile-nav[data-open="true"] {
  display: grid;
  opacity: 1;
  visibility: visible;
  transition: opacity 600ms var(--spring);
}

.about-page .mobile-nav__list li,
.about-page .mobile-nav__cta {
  transform: translateY(12px);
  opacity: 0;
  transition: transform 700ms var(--spring), opacity 700ms var(--spring);
}

.about-page .mobile-nav__list li:nth-child(1) { transition-delay: 100ms; }
.about-page .mobile-nav__list li:nth-child(2) { transition-delay: 150ms; }
.about-page .mobile-nav__list li:nth-child(3) { transition-delay: 200ms; }
.about-page .mobile-nav__list li:nth-child(4) { transition-delay: 250ms; }
.about-page .mobile-nav__cta { transition-delay: 300ms; }

.about-page .mobile-nav[data-open="true"] .mobile-nav__list li,
.about-page .mobile-nav[data-open="true"] .mobile-nav__cta {
  transform: none;
  opacity: 1;
}

.bento > * {
  grid-column: span 12;
}

/* Spans and stagger are set in CSS, not inline style attributes: the site's
   CSP pins style-src to 'self', so inline style is refused. */
@media (min-width: 768px) {
  .bento--a > :nth-child(1) { grid-column: span 7; }
  .bento--a > :nth-child(2) { grid-column: span 5; }
  .bento--b > :nth-child(1) { grid-column: span 4; }
  .bento--b > :nth-child(2) { grid-column: span 4; }
  .bento--b > :nth-child(3) { grid-column: span 4; }
  .bento--c > :nth-child(1) { grid-column: span 8; }
  .bento--c > :nth-child(2) { grid-column: span 4; }
}

@media (min-width: 768px) {
  .bento--stats > :nth-child(1) { grid-column: span 7; }
  .bento--stats > :nth-child(2) { grid-column: span 5; }
  .bento--stats > :nth-child(3) { grid-column: span 4; }
  .bento--stats > :nth-child(4) { grid-column: span 4; }
  .bento--stats > :nth-child(5) { grid-column: span 4; }
}

/* Editorial Split: massive type on the left, stacked fact plates on the right.
   The grid lives on the .wrap child so the container padding is preserved. */
.hero {
  display: block;
}

@media (min-width: 768px) {
  .hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
  }
}

.hero {
  padding-top: calc(var(--section-y-premium) + 3rem);
}

.hero__facts {
  display: grid;
  gap: 1rem;
}

.about-page .mobile-nav__link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--glass-ink);
}

/* --------------------------------------------------------------------------
   3. Macro-whitespace and display type
   -------------------------------------------------------------------------- */

.about-page .section {
  padding-block: var(--section-y-premium);
}

.about-page .section--tight {
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
}

.about-page .section,
.about-page .section--surface {
  background: transparent;
  border: 0;
}

.about-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.6rem + 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--glass-ink);
}

.about-page h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--glass-ink);
}

.about-page h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--glass-ink);
}

.about-page p,
.about-page li {
  color: var(--glass-ink-2);
}

.about-page .lede {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.6;
  color: var(--glass-ink-2);
}

.about-page .muted,
.about-page .dim,
.about-page .source {
  color: var(--glass-ink-3);
}

.about-page a {
  color: var(--glass-ink);
  text-decoration: none;
}

/* Eyebrow badge */
.eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px var(--hairline);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--glass-ink-2);
}

/* --------------------------------------------------------------------------
   4. Asymmetrical Bento — Double-Bezel cards
   -------------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento > * {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .bento > * {
    grid-column: span var(--span, 6);
  }
}

.bezel {
  padding: 0.375rem;
  border-radius: var(--radius-shell);
  background: var(--shell);
  box-shadow:
    0 0 0 1px var(--hairline),
    0 24px 48px -28px rgba(255, 255, 255, 0.07);
}

/* Inner core: its own plate, concentric radius, inner highlight */
.bezel__core {
  border-radius: var(--radius-core);
  background: var(--core);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.bezel__core > * + * {
  margin-top: 1rem;
}

.bezel__core h3 {
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. Scroll interpolation — entry animation
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition:
    opacity 800ms var(--spring),
    transform 800ms var(--spring),
    filter 800ms var(--spring);
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* Stagger index comes from position: inline style attributes are refused by the
   site's CSP (style-src 'self'), so the delay cannot be set on the element. */
.bento > [data-reveal]:nth-child(1) { --i: 0; }
.bento > [data-reveal]:nth-child(2) { --i: 1; }
.bento > [data-reveal]:nth-child(3) { --i: 2; }
.bento > [data-reveal]:nth-child(4) { --i: 3; }
.bento > [data-reveal]:nth-child(5) { --i: 4; }
.bento > [data-reveal]:nth-child(6) { --i: 5; }

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* --------------------------------------------------------------------------
   6. Island CTA — pill with a nested arrow
   -------------------------------------------------------------------------- */

.pill-cta,
.about-page a.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--glass-ink);
  color: var(--glass-bg);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 400ms var(--spring);
}

.pill-cta .orb {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.10);
  transition: transform 400ms var(--spring);
}

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

.pill-cta:hover .orb {
  transform: translate(4px, -1px) scale(1.05);
}

.pill-cta:active {
  transform: scale(0.98);
}

.pill-cta--ghost,
.about-page a.pill-cta--ghost {
  background: transparent;
  color: var(--glass-ink);
  box-shadow: 0 0 0 1px var(--hairline-2);
}

.pill-cta--ghost .orb {
  background: rgba(255, 255, 255, 0.10);
}

/* --------------------------------------------------------------------------
   7. Page-local details
   -------------------------------------------------------------------------- */

.about-page .stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--glass-ink);
}

.about-page .stat__label {
  color: var(--glass-ink-2);
}

.about-page dl {
  margin: 0;
}

.about-page dt {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glass-ink-3);
}

.about-page dd {
  margin: 0.25rem 0 1.25rem;
  color: var(--glass-ink-2);
}

.about-page .input {
  background: rgba(255, 255, 255, 0.05);
  border: 0;
  box-shadow: 0 0 0 1px var(--hairline);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--glass-ink);
}

.about-page .input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--glass-ink);
}

.about-page .cta-band {
  padding-block: clamp(5rem, 3rem + 8vw, 9rem);
  background: transparent;
}

.about-page .cta-band .bezel__core {
  display: grid;
  gap: 1.5rem;
}

.about-page .site-footer {
  background: transparent;
  border-top: 0;
  box-shadow: 0 0 0 1px var(--hairline);
  border-radius: var(--radius-shell);
  padding: 2rem;
}

.about-page .footer-col-title {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glass-ink-3);
}

.about-page .footer-link {
  color: var(--glass-ink-2);
}

.about-page .footer-business-contact p {
  color: var(--glass-ink-2);
}

/* --------------------------------------------------------------------------
   8. Motion guard
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .about-page [data-reveal],
  .about-page .mobile-nav,
  .about-page .mobile-nav__list li,
  .about-page .mobile-nav__cta,
  .about-page .nav-toggle__bars::before,
  .about-page .nav-toggle__bars::after,
  .about-page .pill-cta,
  .about-page .pill-cta .orb,
  .about-page .btn-header-cta,
  .about-page .btn-header-cta::after {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}
