/* =========================================================
   IMAVRA | style.css
   1. Design tokens   2. Base   3. Header / navigation
   4. Placeholders    5. Hero   6. Reduced motion
   Breakpoints: 1199px (tablet / compact) and 600px (phone)
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  --obsidian: #08090b;
  --charcoal: #17191d;
  --graphite: #30343b;
  --silver: #d9dce0;
  --offwhite: #f5f5f3;
  --muted: #8e949c;
  --hairline: rgba(217, 220, 224, 0.12);

  --font-display:
    "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:
    "Sora", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --header-h: 76px;
  --gutter: clamp(20px, 4vw, 56px);
  --container: 1360px;
  --text-w: clamp(420px, 52vw, 740px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Page is locked while the mobile menu is open */
html.menu-open,
html.menu-open body {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

section[id] {
  scroll-margin-top: 64px;
}

:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--offwhite);
  color: var(--obsidian);
  font: 500 0.875rem var(--font-body);
}
.skip-link:focus {
  top: 16px;
}

/* ---------- 3. HEADER / NAVIGATION ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.site-header.is-scrolled {
  --header-h: 64px;
  background: rgba(8, 9, 11, 0.92);
  border-bottom-color: var(--hairline);
}

/* Same container width as the hero, so every left and right edge lines up */
.header-inner {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.4s var(--ease);
  animation: header-in 1.1s var(--ease-out) 0.1s backwards;
}

.brand {
  position: relative;
  z-index: 2;
  display: block;
}
.brand img {
  height: 34px;
  width: auto;
  transition:
    height 0.4s var(--ease),
    opacity 0.3s;
}
.is-scrolled .brand img {
  height: 30px;
}
.brand:hover img {
  opacity: 0.85;
}

/* Desktop navigation (1200px and up) */
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.5vw, 52px);
}
.primary-nav ul {
  display: flex;
  gap: clamp(22px, 3vw, 40px);
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 0;
  font: 500 0.75rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8bcc2;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--silver);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--offwhite);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* Call-to-action: brushed-metal plate with chamfered corners (echoes the Monolith) */
.btn-talk {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--obsidian);
  background: linear-gradient(180deg, #e9ebee 0%, #c7cbd1 55%, #959ba3 100%);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  transition:
    filter 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.btn-talk:hover {
  filter: brightness(1.08);
}
.btn-talk:focus-visible {
  outline: none;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px var(--obsidian);
}

/* Menu button (hidden on desktop) */
.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--offwhite);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: currentColor;
  pointer-events: none;
  transition:
    transform 0.4s var(--ease),
    top 0.4s var(--ease);
}
.menu-toggle span:nth-child(1) {
  top: 17px;
}
.menu-toggle span:nth-child(2) {
  top: 26px;
}
.menu-open .menu-toggle span:nth-child(1) {
  top: 21.5px;
  transform: rotate(45deg);
}
.menu-open .menu-toggle span:nth-child(2) {
  top: 21.5px;
  transform: rotate(-45deg);
}

/* Mobile menu overlay: sits outside the header, never shown on desktop */
.mobile-menu {
  display: none;
}

/* ----- 1199px and below: full-screen menu ----- */
@media (max-width: 1199px) {
  :root {
    --header-h: 68px;
  }

  .brand img {
    height: 30px;
  }
  .is-scrolled .brand img {
    height: 28px;
  }

  .primary-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 16px) var(--gutter) 72px;
    overflow-y: auto;
    background: var(--obsidian);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.45s var(--ease),
      visibility 0s linear 0.45s;
  }
  .menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  /* Techy backdrop: fine grid and slow drifting light, all drawn in code */
  .menu-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .menu-bg::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
      radial-gradient(
        40% 36% at 78% 22%,
        rgba(100, 110, 130, 0.16) 0%,
        transparent 70%
      ),
      radial-gradient(
        36% 34% at 18% 86%,
        rgba(80, 88, 100, 0.11) 0%,
        transparent 70%
      );
  }
  .menu-open .menu-bg::before {
    animation: drift 22s ease-in-out infinite alternate;
  }
  .menu-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(217, 220, 224, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(217, 220, 224, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(
      75% 60% at 72% 28%,
      #000 0%,
      transparent 80%
    );
    mask-image: radial-gradient(75% 60% at 72% 28%, #000 0%, transparent 80%);
  }

  .mobile-menu nav {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    width: 100%;
    max-width: 560px;
    margin-block: auto;
  }

  .mobile-menu li {
    border-bottom: 1px solid var(--hairline);
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.5s var(--ease),
      transform 0.5s var(--ease);
  }
  .mobile-menu li:first-child {
    border-top: 1px solid var(--hairline);
  }
  .menu-open .mobile-menu li {
    opacity: 1;
    transform: none;
  }
  .menu-open .mobile-menu li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .menu-open .mobile-menu li:nth-child(2) {
    transition-delay: 0.16s;
  }
  .menu-open .mobile-menu li:nth-child(3) {
    transition-delay: 0.22s;
  }
  .menu-open .mobile-menu li:nth-child(4) {
    transition-delay: 0.28s;
  }

  .m-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font: 400 1.5rem/1.2 var(--font-display);
    letter-spacing: -0.005em;
    color: var(--silver);
    transition: color 0.3s var(--ease);
  }
  .m-link::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    opacity: 0.45;
    transform: rotate(45deg);
    transition:
      transform 0.4s var(--ease),
      opacity 0.3s var(--ease);
  }
  .m-link:hover,
  .m-link.is-active {
    color: var(--offwhite);
  }
  .m-link:hover::after,
  .m-link.is-active::after {
    opacity: 1;
    transform: translateX(4px) rotate(45deg);
  }

  .mobile-menu .btn-talk {
    align-self: flex-start;
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.5s var(--ease) 0.36s,
      transform 0.5s var(--ease) 0.36s,
      filter 0.3s var(--ease);
  }
  .menu-open .mobile-menu .btn-talk {
    opacity: 1;
    transform: none;
  }

  .menu-note {
    position: absolute;
    z-index: 1;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 28px;
    margin: 0;
    font: 500 0.625rem/1.5 var(--font-body);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    transition: opacity 0.6s var(--ease) 0.4s;
  }
  .menu-open .menu-note {
    opacity: 1;
  }
}

/* ----- 600px and below: phone refinements ----- */
@media (max-width: 600px) {
  :root {
    --header-h: 64px;
    --gutter: 20px;
  }

  .brand img {
    height: 26px;
  }
  .is-scrolled .brand img {
    height: 24px;
  }

  .m-link {
    font-size: 1.25rem;
    padding: 16px 0;
  }
  .mobile-menu .btn-talk {
    align-self: stretch;
    justify-content: center;
    padding: 16px 28px;
  }
}

/* ---------- 4. TEMPORARY PLACEHOLDERS (deleted as sections are built) ---------- */
.placeholder {
  min-height: 100vh;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--hairline);
}
.placeholder p {
  margin: 0;
  font: 500 0.75rem var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 5. HERO ---------- */
.hero {
  --p: 0; /* scroll progress, set by script.js */
  --glow-x: 72%;
  --glow-y: 46%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 clamp(110px, 15vw, 230px);
}

/* Film grain over the background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .13 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  opacity: 0.4;
}

/* Atmosphere: slow drifting light, plus a faint architectural grid */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(
      52% 68% at var(--glow-x) var(--glow-y),
      rgba(40, 44, 51, 0.5) 0%,
      rgba(20, 22, 26, 0.28) 45%,
      transparent 75%
    ),
    var(--obsidian);
  animation: fade-in 1.4s var(--ease-out) backwards;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(
      32% 36% at 68% 38%,
      rgba(100, 110, 130, 0.1) 0%,
      transparent 70%
    ),
    radial-gradient(
      30% 34% at 30% 78%,
      rgba(80, 88, 100, 0.08) 0%,
      transparent 70%
    );
  animation: drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 220, 224, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 220, 224, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(
    60% 62% at var(--glow-x) var(--glow-y),
    #000 0%,
    transparent 78%
  );
  mask-image: radial-gradient(
    60% 62% at var(--glow-x) var(--glow-y),
    #000 0%,
    transparent 78%
  );
}

/* Giant wordmark bleeding off the bottom edge (moves slower than the page) */
.hero-wordmark {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: min(calc(100% - var(--gutter) * 2), 1320px);
  height: auto;
  transform: translate(-50%, calc(26% + var(--p) * 110px));
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 85%);
  pointer-events: none;
  animation: wordmark-in 1.8s var(--ease-out) 0.5s backwards;
}

/* 3D canvas */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.hero.is-ready .hero-canvas {
  opacity: 1;
}

/* Shown only if the 3D cannot run */
.hero-fallback {
  display: none;
}
.no-webgl .hero-canvas {
  display: none;
}
.no-webgl .hero-fallback {
  display: block;
  position: absolute;
  z-index: 2;
  right: 12%;
  top: 50%;
  width: min(34vw, 380px);
  height: auto;
  transform: translateY(-50%);
  animation: fade-in 1.2s var(--ease-out) backwards;
}

/* Text column: same container as the header, so the left edges align exactly */
.hero-content {
  position: relative;
  z-index: 3;
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
  transform: translate3d(0, calc(var(--p) * -50px), 0);
  opacity: calc(1 - var(--p) * 1.3);
}
.hero-content > * {
  max-width: var(--text-w);
  animation: rise 1.3s var(--ease-out) backwards;
}
.hero-content > :nth-child(1) {
  animation-delay: 0.45s;
}
.hero-content > :nth-child(2) {
  animation-delay: 0.6s;
}
.hero-content > :nth-child(3) {
  animation-delay: 0.78s;
}
.hero-content > :nth-child(4) {
  animation-delay: 0.94s;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font: 500 0.6875rem/1.5 var(--font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
/* A fine hairline that fades out to the left */
.eyebrow::before {
  content: "";
  flex: none;
  width: 52px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(217, 220, 224, 0) 0%,
    rgba(217, 220, 224, 0.5) 100%
  );
  transform-origin: right;
  animation: line-grow 1.2s var(--ease-out) 0.7s backwards;
}

.hero h1 {
  margin: 26px 0 0;
  font: 500 clamp(2.3rem, 4vw, 4rem)/1.05 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--offwhite);
  text-wrap: balance;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.01em;
  color: var(--silver);
}

.hero-lead {
  max-width: 520px;
  margin: 26px 0 38px;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.75;
  font-weight: 300;
  color: #a9aeb5;
}

/* Wide gap so the magnetic pull can never make the buttons touch */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
}

/* Buttons (chamfered corners echo the Monolith) */
.btn-primary,
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  transition:
    transform 0.3s var(--ease),
    filter 0.3s var(--ease);
}
.btn-primary {
  color: var(--obsidian);
  background: linear-gradient(180deg, #e9ebee 0%, #c7cbd1 55%, #959ba3 100%);
}
.btn-primary svg {
  transition: transform 0.35s var(--ease);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  isolation: isolate;
  color: var(--offwhite);
  background: rgba(217, 220, 224, 0.3);
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--obsidian);
  clip-path: polygon(
    9.4px 0,
    100% 0,
    100% calc(100% - 9.4px),
    calc(100% - 9.4px) 100%,
    0 100%,
    0 9.4px
  );
  transition: background-color 0.3s var(--ease);
}
.btn-ghost:hover::before {
  background: #14161a;
}
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 4px;
}

/* Opening sequence + ambient motion */
@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes line-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes wordmark-in {
  from {
    opacity: 0;
    translate: 0 56px;
  }
  to {
    opacity: 0.5;
    translate: 0 0;
  }
}
@keyframes drift {
  from {
    transform: translate3d(-4%, -3%, 0) scale(1);
  }
  to {
    transform: translate3d(5%, 4%, 0) scale(1.12);
  }
}

/* Stacked layout: tall / portrait screens (sculpture on top, text below) */
@media (max-aspect-ratio: 23/20) {
  .hero {
    --glow-x: 50%;
    --glow-y: 28%;
    align-items: end;
    padding-top: calc(var(--header-h) + clamp(250px, 40vh, 460px));
    padding-bottom: clamp(90px, 22vw, 200px);
  }
  .hero h1 {
    font-size: clamp(2.2rem, 8.5vw, 4rem);
  }
  .hero-content > * {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: calc(var(--header-h) + clamp(250px, 38svh, 400px));
    padding-bottom: 100px;
  }
  .eyebrow {
    font-size: 0.625rem;
    letter-spacing: 0.17em;
    gap: 12px;
  }
  .eyebrow::before {
    width: 32px;
  }
  .hero h1 {
    margin-top: 20px;
    font-size: clamp(2rem, 9.6vw, 2.75rem);
    line-height: 1.07;
  }
  .hero-lead {
    margin: 20px 0 28px;
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  .hero-actions {
    gap: 16px;
  }
  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- 6. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   7. SELECTED WORK
   ========================================================= */
.work {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: var(--obsidian);
}
/* Soft fades at the top and bottom so the 3D world melts into the neighbouring sections */
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--obsidian) 0, rgba(8, 9, 11, 0) 220px),
    linear-gradient(0deg, var(--obsidian) 0, rgba(8, 9, 11, 0) 220px);
}

/* ---------- Background world: same atmosphere as the hero ---------- */
.work-bg {
  position: sticky;
  top: 0;
  z-index: -1;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  overflow: hidden;
  pointer-events: none;
}
.work-bg > * {
  position: absolute;
  inset: 0;
}
.wb-canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.work.is-3d .wb-canvas {
  opacity: 1;
}
.wb-grid {
  background-image:
    linear-gradient(rgba(217, 220, 224, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 220, 224, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(
    70% 66% at 70% 46%,
    #000 0%,
    transparent 78%
  );
  mask-image: radial-gradient(70% 66% at 70% 46%, #000 0%, transparent 78%);
}
.wb-grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .13 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  opacity: 0.4;
}
.wb-vignette {
  background:
    radial-gradient(
      120% 90% at 50% 45%,
      transparent 38%,
      rgba(8, 9, 11, 0.72) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 9, 11, 0.55) 0%,
      transparent 16%,
      transparent 84%,
      rgba(8, 9, 11, 0.55) 100%
    );
}

.work-inner {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
  padding: clamp(96px, 13vw, 190px) 0 0;
}
.work-inner--end {
  padding: clamp(40px, 6vw, 90px) 0 clamp(90px, 11vw, 160px);
}

/* ---------- Section heading (reused by later sections) ---------- */
.work-head {
  max-width: 900px;
  margin-bottom: clamp(50px, 6vw, 90px);
}
.work-head .eyebrow {
  margin-bottom: 26px;
}
.section-title {
  margin: 0;
  font: 500 clamp(2.2rem, 4.6vw, 4.2rem)/1.04 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--offwhite);
  text-wrap: balance;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.01em;
  color: var(--silver);
}
.section-lead {
  max-width: 540px;
  margin: 24px 0 0;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.75;
  color: #a9aeb5;
}

/* ---------- Text reveals (only active once work.js has started) ---------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translate3d(0, 56px, 0);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.3s var(--ease-out);
}
.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-group > :nth-child(1) {
  --k: 0;
}
.reveal-group > :nth-child(2) {
  --k: 1;
}
.reveal-group > :nth-child(3) {
  --k: 2;
}

.js-reveal .reveal-group > :not([data-split]) {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.9s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: calc(var(--k, 0) * 120ms + 120ms);
}
.js-reveal .reveal-group.is-in > :not([data-split]) {
  opacity: 1;
  transform: none;
}

/* Words rise out of a mask, sharpening as they appear */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.1em 0.08em 0.18em 0;
  margin: -0.1em -0.08em -0.18em 0;
}
.wi {
  display: inline-block;
}
.js-reveal .wi {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(0, 112%, 0);
  transition:
    transform 1.1s var(--ease-out),
    opacity 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 75ms + 140ms);
}
.js-reveal .is-in .wi {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* The eyebrow hairline draws itself in */
.js-reveal .work .eyebrow::before {
  animation: none;
  transform: scaleX(0);
  transition: transform 1.3s var(--ease-out) 0.3s;
}
.js-reveal .work .reveal-group.is-in .eyebrow::before {
  transform: scaleX(1);
}

/* =========================================================
   THE EXHIBITION: one pinned stage, three projects
   ========================================================= */
.exhibit {
  position: relative;
}
.exhibit-stage {
  position: relative;
  padding: 40px 0 72px;
}
.exhibit-inner {
  position: relative;
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

/* Without JavaScript the projects simply stack */
.project {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 2.4vw, 36px);
  align-items: center;
  margin-bottom: clamp(90px, 12vw, 160px);
  --yaw: -9deg;
  --pitch: 3deg;
}
.exhibit-nav {
  display: none;
}

/* With JavaScript: the stage pins to the screen while you scroll through the projects */
.js-exhibit .exhibit {
  height: 400vh;
  height: 400svh;
}
.js-exhibit .exhibit-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding: 88px 0 76px;
}
.js-exhibit .exhibit-inner {
  height: 100%;
}
.js-exhibit .project {
  position: absolute;
  inset: 0;
  margin: 0;
  grid-template-rows: minmax(0, 1fr);
  visibility: hidden;
  pointer-events: none;
}
.js-exhibit .project.is-on {
  visibility: visible;
}
.js-exhibit .project.is-hot {
  pointer-events: auto;
}

/* Each project has its own camera angle and side */
.project--ivory {
  --yaw: -9deg;
  --pitch: 3deg;
}
.project--ember {
  --yaw: 9deg;
  --pitch: 3deg;
}
.project--regent {
  --yaw: -4deg;
  --pitch: 4deg;
}

.p-info,
.rig {
  grid-row: 1;
}
.project--ivory .p-info,
.project--regent .p-info {
  grid-column: 1 / 5;
}
.project--ivory .rig,
.project--regent .rig {
  grid-column: 5 / 13;
  justify-self: end;
}
.project--ember .rig {
  grid-column: 1 / 9;
  justify-self: start;
}
.project--ember .p-info {
  grid-column: 9 / 13;
}

/* ---------- Project text ---------- */
.p-info {
  position: relative;
  z-index: 6;
}
.project-cat {
  max-width: 360px;
  margin: 0 0 18px;
  font: 500 0.6875rem/1.7 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-name {
  margin: 0;
  font: 500 clamp(1.9rem, 3vw, 2.9rem)/1.06 var(--font-display);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--offwhite);
}
.project-desc {
  max-width: 420px;
  margin: 22px 0 34px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #a9aeb5;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--offwhite);
}
.project-link .label {
  position: relative;
  padding-bottom: 8px;
}
.project-link .label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.4s var(--ease);
}
.project-link .arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(217, 220, 224, 0.28);
  transition:
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    color 0.3s var(--ease);
}
.project-link .arrow svg {
  transition: transform 0.5s var(--ease-out);
}
.project-link:hover .arrow,
.project-link:focus-visible .arrow {
  background: var(--silver);
  border-color: var(--silver);
  color: var(--obsidian);
}
.project-link:hover .arrow svg {
  transform: translate(2px, -2px);
}
.project-link:hover .label::after {
  opacity: 1;
}

/* ---------- The rig: Desktop, Tablet and Mobile as a staircase ---------- */
.rig {
  position: relative;
  width: min(100%, calc((100vh - 250px) * 1.6));
  width: min(100%, calc((100svh - 250px) * 1.6));
  aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  transform: perspective(1700px) rotateX(calc(var(--pitch) + var(--rx, 0deg)))
    rotateY(calc(var(--yaw) + var(--ry, 0deg) + var(--sy, 0deg)));
  transition: transform 0.4s var(--ease-out);
}
/* A cool light on the floor under the steps, matching the hero */
.rig::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -7%;
  height: 28%;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(150, 170, 210, 0.15),
    transparent 72%
  );
}
/* The invisible link over the devices: clicking them opens the real website */
.p-hit {
  position: absolute;
  inset: -2% -2% -6%;
  z-index: 5;
  border-radius: 14px;
  cursor: pointer;
}
.p-hit:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 4px;
}

/* A device: background removed, so it sits straight on the page */
.dev {
  position: absolute;
  margin: 0;
  aspect-ratio: var(--ar, 1.6);
  will-change: transform, opacity;
  animation: bob 9s ease-in-out var(--bd, 0s) infinite alternate;
}
.dev:not(.is-ready) {
  visibility: hidden;
}
@keyframes bob {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -8px;
  }
}
.dev img,
.dev .cut {
  display: block;
  width: 100%;
  height: auto;
}
.dev img {
  opacity: 0;
}
.dev .cut {
  filter: drop-shadow(0 34px 38px rgba(0, 0, 0, 0.7));
  -webkit-box-reflect: below 2px
    linear-gradient(to bottom, transparent 62%, rgba(255, 255, 255, 0.14));
  transition: filter 0.5s var(--ease);
}
.dev.is-raw img {
  opacity: 1;
  -webkit-mask-image: radial-gradient(closest-side, #000 66%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 66%, transparent 100%);
}
/* A fine baseline under each step */
.dev::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(217, 220, 224, 0.3),
    transparent
  );
}
.dev figcaption {
  position: absolute;
  left: 0;
  top: -26px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 0.625rem/1 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.dev figcaption::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(217, 220, 224, 0.4);
}

/* Steps: each device sits lower and nearer than the one before */
.dev--desktop {
  width: 62%;
  bottom: 34%;
  z-index: 1;
  --bd: 0s;
}
.dev--tablet {
  width: 34%;
  bottom: 16%;
  z-index: 2;
  --bd: -3s;
}
.dev--phone {
  width: 16%;
  bottom: 0;
  z-index: 3;
  --bd: -5s;
}

.project--ivory .dev--desktop,
.project--regent .dev--desktop {
  left: 0;
}
.project--ivory .dev--tablet,
.project--regent .dev--tablet {
  left: 38%;
}
.project--ivory .dev--phone,
.project--regent .dev--phone {
  left: 76%;
}

.project--ember .dev--desktop {
  right: 0;
}
.project--ember .dev--tablet {
  right: 38%;
}
.project--ember .dev--phone {
  right: 76%;
}

.project--regent .dev--desktop {
  bottom: 38%;
}
.project--regent .dev--tablet {
  bottom: 19%;
}

@media (hover: hover) and (pointer: fine) {
  .rig:has(.p-hit:hover) .dev .cut {
    filter: drop-shadow(0 34px 38px rgba(0, 0, 0, 0.7)) brightness(1.07);
  }
}

/* ---------- Project buttons (names only, no numbers) ---------- */
.js-exhibit .exhibit-nav {
  position: absolute;
  left: 0;
  bottom: -58px;
  z-index: 9;
  display: flex;
  gap: clamp(22px, 3vw, 44px);
}
.en-btn {
  position: relative;
  padding: 10px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: 500 0.6875rem/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.en-btn::before,
.en-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
}
.en-btn::before {
  background: rgba(217, 220, 224, 0.16);
}
.en-btn::after {
  background: var(--silver);
  transform: scaleX(var(--f, 0));
  transform-origin: left;
  transition: transform 0.12s linear;
}
.en-btn:hover,
.en-btn.is-active {
  color: var(--offwhite);
}

/* End of the section */
.work-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.work-note {
  max-width: 520px;
  margin: 0;
  font: 400 0.75rem/1.7 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.work-next {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--offwhite);
}
.work-next svg {
  transition: transform 0.45s var(--ease-out);
}
.work-next:hover svg {
  transform: translateY(4px);
}

/* ----- 1199px and below: devices on top, text underneath ----- */
@media (max-width: 1199px) {
  .project {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(22px, 3.6vh, 36px);
  }
  .project .rig {
    order: 1;
    align-self: center;
    width: min(100%, calc((100vh - 370px) * 1.6));
    width: min(100%, calc((100svh - 370px) * 1.6));
  }
  .project .p-info {
    order: 2;
    max-width: 560px;
  }
  .project-cat {
    max-width: none;
  }
  .project-desc {
    margin: 16px 0 24px;
  }
  .js-exhibit .exhibit-stage {
    padding: 76px 0 64px;
  }

  .js-exhibit .exhibit-nav {
    left: 50%;
    translate: -50% 0;
    bottom: -50px;
    gap: 14px;
  }
  .en-btn {
    width: 48px;
    height: 26px;
    padding: 0;
  }
  .en-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* ----- 600px and below: phones ----- */
@media (max-width: 600px) {
  .work-inner {
    padding-top: 88px;
  }
  .work-head {
    margin-bottom: 40px;
  }
  .project-name {
    font-size: 1.7rem;
  }
  .project-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 12px 0 20px;
  }
  .project-cat {
    margin-bottom: 12px;
    font-size: 0.625rem;
  }
  .dev figcaption {
    display: none;
  }
  .project .rig {
    width: min(100%, calc((100svh - 400px) * 1.6));
  }
  .work-inner--end {
    padding-bottom: 80px;
  }
}

/* =========================================================
   8. CAPABILITIES
   ========================================================= */
.cap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(110px, 14vw, 210px) 0 clamp(110px, 14vw, 210px);
  background: var(--obsidian);
}
.cap-inner {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}
.cap-head {
  max-width: 860px;
  margin-bottom: clamp(64px, 8vw, 120px);
}
.cap-head .eyebrow {
  margin-bottom: 26px;
}

/* The eyebrow hairline draws itself in */
.js-reveal .cap .eyebrow::before {
  animation: none;
  transform: scaleX(0);
  transition: transform 1.3s var(--ease-out) 0.3s;
}
.js-reveal .cap .reveal-group.is-in .eyebrow::before {
  transform: scaleX(1);
}

/* ---------- Background: same atmosphere as the hero ---------- */
.cap-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.cap-bg > * {
  position: absolute;
}
.cap-glow {
  inset: -25%;
  background:
    radial-gradient(
      34% 36% at 76% 24%,
      rgba(100, 112, 138, 0.13) 0%,
      transparent 70%
    ),
    radial-gradient(
      32% 34% at 16% 78%,
      rgba(80, 90, 108, 0.1) 0%,
      transparent 70%
    );
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
.cap-gridlines {
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 220, 224, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 220, 224, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(
    70% 62% at 72% 28%,
    #000 0%,
    transparent 78%
  );
  mask-image: radial-gradient(70% 62% at 72% 28%, #000 0%, transparent 78%);
}
.cap-grain {
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .13 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  opacity: 0.4;
}

/* A large Monolith in dark metal, drifting and turning slowly behind the heading */
.cap-mono {
  top: 4%;
  right: -4%;
  width: clamp(300px, 36vw, 600px);
  aspect-ratio: 88 / 100.5;
  perspective: 1400px;
  transform-style: preserve-3d;
  animation: mono-turn 26s ease-in-out infinite alternate;
  filter: drop-shadow(0 50px 70px rgba(0, 0, 0, 0.7));
  opacity: 0.6;
}
.cm {
  position: absolute;
  inset: 0;
}
.cm-chev {
  clip-path: polygon(
    50% 0,
    100% 25.3%,
    100% 43.2%,
    50% 17.9%,
    0 43.2%,
    0 25.3%
  );
  background: linear-gradient(180deg, #454a53, #1b1d21);
  transform: translateZ(40px);
}
.cm-left {
  clip-path: polygon(0 51.1%, 45.5% 74.1%, 45.5% 100%, 0 77%);
  background: linear-gradient(160deg, #2e3238, #101114);
}
.cm-right {
  clip-path: polygon(100% 51.1%, 54.5% 74.1%, 54.5% 100%, 100% 77%);
  background: linear-gradient(200deg, #1a1c20, #08090b);
  transform: translateZ(-40px);
}
@keyframes mono-turn {
  from {
    transform: rotateY(-24deg) rotateX(6deg) translate3d(0, -10px, 0);
  }
  to {
    transform: rotateY(24deg) rotateX(-4deg) translate3d(0, 14px, 0);
  }
}

/* ---------- The four slabs ---------- */
.cap-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 28px);
  align-items: stretch;
}
.cap-card:nth-child(even) {
  margin-top: 48px;
} /* stepped rhythm */

.cap-card {
  --chamfer: 24px;
  position: relative;
  padding: 1px; /* becomes the metallic edge */
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer)) 0,
    100% var(--chamfer),
    100% 100%,
    var(--chamfer) 100%,
    0 calc(100% - var(--chamfer))
  );
  background: linear-gradient(
    160deg,
    rgba(217, 220, 224, 0.34),
    rgba(217, 220, 224, 0.06) 42%,
    rgba(217, 220, 224, 0.16)
  );
  transition:
    transform 0.6s var(--ease-out),
    translate 0.6s var(--ease-out),
    opacity 1s var(--ease-out);
}
.cap-in {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(24px, 2.2vw, 34px);
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer) + 1px) 0,
    100% calc(var(--chamfer) - 1px),
    100% 100%,
    calc(var(--chamfer) - 1px) 100%,
    0 calc(100% - var(--chamfer) + 1px)
  );
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 30%),
    linear-gradient(180deg, #14161a, #0b0c0e);
}
/* Light that follows the cursor */
.cap-in::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  background: radial-gradient(
    300px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.075),
    transparent 62%
  );
}
.cap-in > * {
  position: relative;
  z-index: 1;
}

.cap-title {
  margin: 0;
  font: 500 clamp(1.2rem, 1.55vw, 1.5rem)/1.2 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--offwhite);
}
.cap-text {
  margin: 16px 0 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #a9aeb5;
}
.cap-line {
  display: block;
  height: 1px;
  margin-top: auto;
  transform: scaleX(0.18);
  transform-origin: left;
  background: linear-gradient(90deg, var(--silver), transparent);
  transition: transform 0.7s var(--ease-out);
}
.cap-in .cap-text {
  margin-bottom: 30px;
}

/* Arrival: slabs rise one after another */
.js-reveal .cap-card {
  opacity: 0;
  transform: translate3d(0, 56px, 0);
}
.js-reveal .cap-card.is-in {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 120ms);
}

/* ---------- Emblems: small 3D objects drawn in code ---------- */
.emblem {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(150px, 13vw, 190px);
  margin: 0 0 26px;
  perspective: 900px;
}
.e-stage {
  position: relative;
  width: 100px;
  height: 100px;
  transform-style: preserve-3d;
}
.cap:not(.is-live) .e-stage,
.cap:not(.is-live) .e-stage *,
.cap:not(.is-live) .cap-mono,
.cap:not(.is-live) .cap-glow {
  animation-play-state: paused;
}

/* Design: a stack of artboards */
.emblem--design .e-stage {
  transform: rotateX(62deg) rotateZ(-35deg);
  animation: spin-z 30s linear infinite;
}
.e-layer {
  --gap: 26px;
  position: absolute;
  inset: 0;
  border: 1px solid rgba(217, 220, 224, 0.5);
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 11px,
      rgba(217, 220, 224, 0.1) 11px 12px
    ),
    linear-gradient(
      135deg,
      rgba(217, 220, 224, 0.16),
      rgba(217, 220, 224, 0.02)
    );
  transform: translateZ(calc(var(--l) * var(--gap)));
  transition: transform 0.8s var(--ease-out);
}
@keyframes spin-z {
  from {
    transform: rotateX(62deg) rotateZ(-35deg);
  }
  to {
    transform: rotateX(62deg) rotateZ(325deg);
  }
}

/* Frontend: a wireframe cube */
.emblem--code .e-stage {
  width: 88px;
  height: 88px;
  animation: spin-cube 22s linear infinite;
}
.f {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(217, 220, 224, 0.5);
  background: linear-gradient(
    135deg,
    rgba(217, 220, 224, 0.1),
    rgba(217, 220, 224, 0.015)
  );
}
.f-front {
  transform: translateZ(44px);
}
.f-back {
  transform: rotateY(180deg) translateZ(44px);
}
.f-right {
  transform: rotateY(90deg) translateZ(44px);
}
.f-left {
  transform: rotateY(-90deg) translateZ(44px);
}
.f-top {
  transform: rotateX(90deg) translateZ(44px);
}
.f-bottom {
  transform: rotateX(-90deg) translateZ(44px);
}
@keyframes spin-cube {
  from {
    transform: rotateX(-22deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-22deg) rotateY(360deg);
  }
}

/* Responsive: three frames stepping up in size, like the device staircase */
.emblem--responsive .e-stage {
  width: 128px;
  height: 96px;
  animation: sway 12s ease-in-out infinite alternate;
}
.fr {
  position: absolute;
  border: 1px solid rgba(217, 220, 224, 0.55);
  background: linear-gradient(
    135deg,
    rgba(217, 220, 224, 0.14),
    rgba(217, 220, 224, 0.02)
  );
  transition: transform 0.8s var(--ease-out);
}
.fr::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 12%;
  height: 2px;
  background: rgba(217, 220, 224, 0.4);
  box-shadow:
    0 8px 0 rgba(217, 220, 224, 0.22),
    0 16px 0 rgba(217, 220, 224, 0.22);
}
.fr-desktop {
  left: 0;
  bottom: 22px;
  width: 82px;
  height: 56px;
  transform: translateZ(0);
}
.fr-tablet {
  left: 48px;
  bottom: 8px;
  width: 48px;
  height: 62px;
  transform: translateZ(28px);
}
.fr-phone {
  left: 92px;
  bottom: 0;
  width: 28px;
  height: 54px;
  transform: translateZ(56px);
}
@keyframes sway {
  from {
    transform: rotateY(-26deg) rotateX(8deg);
  }
  to {
    transform: rotateY(18deg) rotateX(4deg);
  }
}

/* Brand: the Monolith in separated layers */
.emblem--brand .e-stage {
  width: 96px;
  height: 110px;
  animation: sway-brand 14s ease-in-out infinite alternate;
}
.m {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease-out);
}
.m-chev {
  clip-path: polygon(
    50% 0,
    100% 25.3%,
    100% 43.2%,
    50% 17.9%,
    0 43.2%,
    0 25.3%
  );
  background: linear-gradient(180deg, #f5f5f3, #a9aeb5);
  transform: translateZ(26px);
}
.m-left {
  clip-path: polygon(0 51.1%, 45.5% 74.1%, 45.5% 100%, 0 77%);
  background: linear-gradient(160deg, #d9dce0, #6c727a);
}
.m-right {
  clip-path: polygon(100% 51.1%, 54.5% 74.1%, 54.5% 100%, 100% 77%);
  background: linear-gradient(200deg, #9aa0a8, #3a3f46);
  transform: translateZ(-26px);
}
@keyframes sway-brand {
  from {
    transform: rotateY(-34deg) rotateX(6deg);
  }
  to {
    transform: rotateY(34deg) rotateX(-4deg);
  }
}

/* Hover (mouse devices only): layers open up, the line draws */
@media (hover: hover) and (pointer: fine) {
  .cap-card:hover {
    translate: 0 -8px;
  }
  .cap-card:hover .cap-in::before {
    opacity: 1;
  }
  .cap-card:hover .cap-line {
    transform: scaleX(1);
  }
  .cap-card:hover .e-layer {
    --gap: 42px;
  }
  .cap-card:hover .fr-tablet {
    transform: translateZ(44px);
  }
  .cap-card:hover .fr-phone {
    transform: translateZ(88px);
  }
  .cap-card:hover .m-chev {
    transform: translateZ(48px);
  }
  .cap-card:hover .m-right {
    transform: translateZ(-48px);
  }
}

/* ----- 1199px and below: two columns ----- */
@media (max-width: 1199px) {
  .cap-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .cap-card:nth-child(even) {
    margin-top: 0;
  }
  .cap-mono {
    right: -14%;
    top: 2%;
    opacity: 0.45;
  }
}

/* ----- 600px and below: one column ----- */
@media (max-width: 600px) {
  .cap {
    padding-top: 88px;
    padding-bottom: 88px;
  }
  .cap-head {
    margin-bottom: 52px;
  }
  .cap-cards {
    grid-template-columns: 1fr;
  }
  .emblem {
    height: 150px;
  }
  .cap-mono {
    width: 300px;
    right: -34%;
    top: 0;
    opacity: 0.35;
  }
}

/* =========================================================
   9. OUR APPROACH
   ========================================================= */
.approach {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-bottom: clamp(60px, 8vw, 120px);
  background: var(--obsidian);
}
.ap-inner {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
  padding-top: clamp(110px, 14vw, 210px);
}
.ap-head {
  max-width: 860px;
  margin-bottom: clamp(50px, 6vw, 90px);
}
.ap-head .eyebrow {
  margin-bottom: 26px;
}

/* The eyebrow hairline draws itself in */
.js-reveal .approach .eyebrow::before {
  animation: none;
  transform: scaleX(0);
  transition: transform 1.3s var(--ease-out) 0.3s;
}
.js-reveal .approach .reveal-group.is-in .eyebrow::before {
  transform: scaleX(1);
}

/* ---------- Background: same atmosphere as the hero, stays on screen while pinned ---------- */
.ap-bg {
  position: sticky;
  top: 0;
  z-index: -1;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  overflow: hidden;
  pointer-events: none;
}
.ap-bg > * {
  position: absolute;
}
.ap-glow {
  inset: -25%;
  background:
    radial-gradient(
      34% 36% at 74% 40%,
      rgba(100, 112, 138, 0.14) 0%,
      transparent 70%
    ),
    radial-gradient(
      32% 34% at 14% 80%,
      rgba(80, 90, 108, 0.1) 0%,
      transparent 70%
    );
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
.ap-gridlines {
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 220, 224, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 220, 224, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(
    64% 66% at 74% 46%,
    #000 0%,
    transparent 78%
  );
  mask-image: radial-gradient(64% 66% at 74% 46%, #000 0%, transparent 78%);
}
.ap-grain {
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .13 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  opacity: 0.4;
}
.approach:not(.is-live) .ap-glow,
.approach:not(.is-live) .ring {
  animation-play-state: paused;
}

/* ---------- The pinned stage ---------- */
.ap-track {
  position: relative;
}
.ap-stage {
  position: relative;
  padding: 40px 0;
  /* The build, driven by scroll (approach.js). Defaults show the finished sculpture. */
  --guide: 0;
  --sep: 0;
  --fill: 1;
  --shine: 0;
  --edge: 0;
  --outline: 0.35;
  --ry: -12deg;
  --tx: 0deg;
  --ty: 0deg;
}
.js-approach .ap-track {
  height: 500vh;
  height: 500svh;
}
.js-approach .ap-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding: 88px 0 40px;
}
.ap-stage-inner {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 2.4vw, 36px);
  align-items: center;
}

/* ---------- The five steps ---------- */
.ap-list {
  grid-column: 1 / 7;
  max-width: 580px;
}
.ap-item {
  --f: 0;
  position: relative;
  padding: 0 0 clamp(14px, 2.4svh, 26px) 44px;
}
/* A rail that fills down from one step to the next */
.ap-item::before,
.ap-item::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 28px;
  bottom: -2px;
  width: 1px;
}
.ap-item::before {
  background: rgba(217, 220, 224, 0.14);
}
.ap-item::after {
  background: linear-gradient(180deg, var(--silver), rgba(217, 220, 224, 0.4));
  transform: scaleY(var(--f));
  transform-origin: top;
}
.ap-item:last-child::before,
.ap-item:last-child::after {
  display: none;
}

.ap-dot {
  position: absolute;
  left: 0;
  top: 13px;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(217, 220, 224, 0.4);
  background: var(--obsidian);
  transform: rotate(45deg);
  transition:
    background-color 0.5s var(--ease),
    border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.ap-item.is-past .ap-dot {
  background: rgba(217, 220, 224, 0.5);
}
.ap-item.is-active .ap-dot {
  background: var(--offwhite);
  border-color: var(--offwhite);
  box-shadow: 0 0 18px rgba(169, 189, 240, 0.6);
}

.ap-h {
  margin: 0;
  font: 500 clamp(1.35rem, 2.3vw, 2.2rem)/1.15 var(--font-display);
  letter-spacing: -0.02em;
}
.ap-btn {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  color: #5d636b;
  cursor: pointer;
  transition: color 0.5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.ap-btn em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: -0.01em;
}
.ap-btn:hover {
  color: var(--silver);
}
.ap-item.is-past .ap-btn {
  color: #8e949c;
}
.ap-item.is-active .ap-btn {
  color: var(--offwhite);
}

/* The active step opens to show its description */
.ap-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}
.ap-more p {
  overflow: hidden;
  margin: 0;
  max-width: 440px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #a9aeb5;
  opacity: 0;
  transition:
    opacity 0.5s var(--ease) 0.1s,
    padding 0.6s var(--ease-out);
}
.ap-item.is-active .ap-more {
  grid-template-rows: 1fr;
}
.ap-item.is-active .ap-more p {
  opacity: 1;
  padding-top: 14px;
}
/* Without JavaScript every step stays open */
html:not(.js-approach) .ap-more {
  grid-template-rows: 1fr;
}
html:not(.js-approach) .ap-more p {
  opacity: 1;
  padding-top: 14px;
}

/* ---------- The Monolith that builds itself ---------- */
.ap-model {
  position: relative;
  grid-column: 7 / 13;
  justify-self: end;
  width: min(100%, calc(100vh - 200px));
  width: min(100%, calc(100svh - 200px));
  aspect-ratio: 1;
}
.ap-model::before {
  /* cool light on the floor, matching the hero */
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 4%;
  height: 22%;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(150, 170, 210, 0.16),
    transparent 72%
  );
}
.ap-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(217, 220, 224, 0.35);
}
.ap-c1 {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}
.ap-c2 {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}
.ap-c3 {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}
.ap-c4 {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

.ap-scene {
  position: absolute;
  inset: 6%;
  display: grid;
  place-items: center;
  perspective: 1100px;
  transform-style: preserve-3d;
}

/* Two thin rings orbit the sculpture */
.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  aspect-ratio: 1;
  margin: -59% 0 0 -59%;
  border: 1px solid rgba(217, 220, 224, 0.12);
  border-radius: 50%;
}
.ring::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--silver);
  box-shadow: 0 0 12px rgba(169, 189, 240, 0.9);
}
.ring-a {
  animation: ring-a 40s linear infinite;
}
.ring-b {
  width: 92%;
  margin: -46% 0 0 -46%;
  border-color: rgba(217, 220, 224, 0.09);
  animation: ring-b 56s linear infinite reverse;
}
@keyframes ring-a {
  from {
    transform: rotateX(74deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(74deg) rotateZ(360deg);
  }
}
@keyframes ring-b {
  from {
    transform: rotateX(62deg) rotateY(34deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(62deg) rotateY(34deg) rotateZ(360deg);
  }
}

.ap-obj {
  position: relative;
  width: 58%;
  aspect-ratio: 88 / 100.5;
  transform-style: preserve-3d;
  transform: rotateX(calc(8deg + var(--ty)))
    rotateY(calc(var(--ry) + var(--tx)));
  transition: transform 0.4s var(--ease-out);
}
.ap-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: var(--guide);
}
.ap-ghost polygon {
  fill: none;
  stroke: rgba(169, 189, 240, 0.55);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

/* Each piece separates, takes on material, and slides into place */
.pc {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.pc > * {
  position: absolute;
  inset: 0;
}
.pc-chev {
  transform: translate3d(0, calc(var(--sep) * -34%), calc(var(--sep) * 160px))
    rotateZ(calc(var(--sep) * -4deg));
}
.pc-left {
  transform: translate3d(
      calc(var(--sep) * -60%),
      calc(var(--sep) * 22%),
      calc(var(--sep) * -40px)
    )
    rotateZ(calc(var(--sep) * 6deg));
}
.pc-right {
  transform: translate3d(
      calc(var(--sep) * 60%),
      calc(var(--sep) * 22%),
      calc(var(--sep) * -140px)
    )
    rotateZ(calc(var(--sep) * -6deg));
}

.pc-chev :is(.pc-d, .pc-fill, .pc-shine) {
  clip-path: polygon(
    50% 0,
    100% 25.3%,
    100% 43.2%,
    50% 17.9%,
    0 43.2%,
    0 25.3%
  );
}
.pc-left :is(.pc-d, .pc-fill, .pc-shine) {
  clip-path: polygon(0 51.1%, 45.5% 74.1%, 45.5% 100%, 0 77%);
}
.pc-right :is(.pc-d, .pc-fill, .pc-shine) {
  clip-path: polygon(100% 51.1%, 54.5% 74.1%, 54.5% 100%, 100% 77%);
}

.pc-d {
  /* depth layers give the piece real thickness */
  background: #0d0e11;
  opacity: var(--fill);
  transform: translateZ(calc(var(--k) * -7px));
}
.pc-fill {
  opacity: var(--fill);
}
.pc-chev .pc-fill {
  background: linear-gradient(180deg, #8e949d, #3a3e45);
}
.pc-left .pc-fill {
  background: linear-gradient(160deg, #5b6169, #1f2227);
}
.pc-right .pc-fill {
  background: linear-gradient(200deg, #30343b, #0c0d10);
}

.pc-shine {
  overflow: hidden;
  pointer-events: none;
}
.pc-shine b {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 30%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  transform: translateX(calc(-120% + var(--shine) * 540%)) skewX(-18deg);
}

.pc-line {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pc-line polygon {
  fill: none;
  stroke: rgba(
    217,
    220,
    224,
    calc(0.12 + var(--outline) * 0.5 + var(--edge) * 0.38)
  );
  stroke-width: 1.2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* ----- 1199px and below: sculpture on top, steps underneath ----- */
@media (max-width: 1199px) {
  .js-approach .ap-stage {
    padding: 76px 0 28px;
  }
  .ap-stage-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(14px, 3svh, 32px);
  }
  .ap-model {
    order: 1;
    align-self: center;
    width: min(100%, 40vh);
    width: min(100%, 40svh);
  }
  .ap-list {
    order: 2;
    width: 100%;
    max-width: 560px;
  }
}

/* ----- 600px and below: phones ----- */
@media (max-width: 600px) {
  .ap-inner {
    padding-top: 88px;
  }
  .ap-head {
    margin-bottom: 40px;
  }
  .ap-model {
    width: min(86%, 34vh);
    width: min(86%, 34svh);
  }
  .ap-h {
    font-size: 1.2rem;
  }
  .ap-item {
    padding-left: 38px;
    padding-bottom: 10px;
  }
  .ap-dot {
    top: 8px;
  }
  .ap-item::before,
  .ap-item::after {
    top: 22px;
  }
  .ap-more p {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .ap-item.is-active .ap-more p {
    padding-top: 8px;
  }
}

/* Numbers that used to be inline style attributes (blocked by the security policy) */
.cap-card:nth-child(1) {
  --i: 0;
}
.cap-card:nth-child(2) {
  --i: 1;
}
.cap-card:nth-child(3) {
  --i: 2;
}
.cap-card:nth-child(4) {
  --i: 3;
}

.e-layer:nth-child(1) {
  --l: 0;
}
.e-layer:nth-child(2) {
  --l: 1;
}
.e-layer:nth-child(3) {
  --l: 2;
}

.pc-d:nth-child(1) {
  --k: 3;
}
.pc-d:nth-child(2) {
  --k: 2;
}
.pc-d:nth-child(3) {
  --k: 1;
}

/* =========================================================
   10. ABOUT
   ========================================================= */
.about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(110px, 14vw, 210px) 0;
  background: var(--obsidian);
}
.ab-inner {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 2.4vw, 36px);
  align-items: center;
}
.ab-copy {
  grid-column: 1 / 8;
}
.ab-seal {
  grid-column: 9 / 13;
  justify-self: end;
}
.ab-head .eyebrow {
  margin-bottom: 26px;
}

/* The eyebrow hairline draws itself in */
.js-reveal .about .eyebrow::before {
  animation: none;
  transform: scaleX(0);
  transition: transform 1.3s var(--ease-out) 0.3s;
}
.js-reveal .about .reveal-group.is-in .eyebrow::before {
  transform: scaleX(1);
}

/* ---------- Background: same atmosphere as the hero ---------- */
.ab-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ab-bg > * {
  position: absolute;
}
.ab-glow {
  inset: -25%;
  background:
    radial-gradient(
      34% 36% at 80% 50%,
      rgba(100, 112, 138, 0.14) 0%,
      transparent 70%
    ),
    radial-gradient(
      30% 34% at 12% 20%,
      rgba(80, 90, 108, 0.09) 0%,
      transparent 70%
    );
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
.ab-gridlines {
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 220, 224, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 220, 224, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(
    60% 70% at 78% 50%,
    #000 0%,
    transparent 78%
  );
  mask-image: radial-gradient(60% 70% at 78% 50%, #000 0%, transparent 78%);
}
.ab-grain {
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .13 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  opacity: 0.4;
}
.about:not(.is-live) .ab-glow,
.about:not(.is-live) .ab-ring,
.about:not(.is-live) .ab-orbit,
.about:not(.is-live) .ab-mark {
  animation-play-state: paused;
}

/* ---------- The three principles ---------- */
.ab-values {
  margin: clamp(48px, 5vw, 72px) 0 0;
  max-width: 720px;
}
.ab-value {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: baseline;
  gap: 8px 32px;
  padding: 24px 0;
}
.ab-value::before,
.ab-value::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
}
.ab-value::before {
  background: var(--hairline);
}
.ab-value::after {
  background: linear-gradient(90deg, var(--silver), transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out);
}
.ab-word {
  font: 500 clamp(1.45rem, 2.4vw, 2.2rem)/1.15 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--silver);
  transition:
    color 0.4s var(--ease),
    transform 0.5s var(--ease-out);
}
.ab-note {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #a9aeb5;
}
.ab-value:first-child::before {
  top: 0;
  bottom: auto;
}

/* The hairlines draw in as the list arrives, and brighten on hover */
.js-reveal .ab-values.is-in .ab-value::after {
  transform: scaleX(0.28);
  transition-delay: 0.6s;
}
@media (hover: hover) and (pointer: fine) {
  .ab-value:hover .ab-word {
    color: var(--offwhite);
    transform: translateX(10px);
  }
  .js-reveal .ab-values.is-in .ab-value:hover::after,
  .ab-value:hover::after {
    transform: scaleX(1);
    transition-delay: 0s;
  }
}

/* ---------- Founder line and button ---------- */
.ab-foot {
  margin-top: clamp(40px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 40px;
}
.ab-founder {
  max-width: 380px;
  margin: 0;
  font: 400 0.9rem/1.7 var(--font-body);
  color: var(--muted);
}

/* ---------- The seal ---------- */
.ab-seal {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate3d(0, var(--py, 0px), 0) perspective(1200px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition:
    transform 0.5s var(--ease-out),
    opacity 1.2s var(--ease-out);
}
.js-reveal .ab-seal {
  opacity: 0;
}
.js-reveal .ab-seal.is-in {
  opacity: 1;
}

.ab-seal > * {
  position: absolute;
}
/* A ring of fine tick marks, like an instrument dial */
.ab-ticks {
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    rgba(217, 220, 224, 0.42) 0 0.5deg,
    transparent 0.5deg 3deg
  );
  -webkit-mask: radial-gradient(
    closest-side,
    transparent 90%,
    #000 90.5%,
    #000 97%,
    transparent 97.5%
  );
  mask: radial-gradient(
    closest-side,
    transparent 90%,
    #000 90.5%,
    #000 97%,
    transparent 97.5%
  );
}
.ab-orbit {
  inset: 1.5%;
  border-radius: 50%;
  animation: ab-spin 26s linear infinite;
}
.ab-orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--silver);
  box-shadow: 0 0 14px rgba(169, 189, 240, 0.95);
}
.ab-ring {
  inset: 6%;
  width: 88%;
  height: 88%;
  animation: ab-spin 80s linear infinite reverse;
  overflow: visible;
}
.ab-ring text {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  fill: #8e949c;
}
.ab-disc {
  inset: 25%;
  border-radius: 50%;
  border: 1px solid rgba(217, 220, 224, 0.14);
  background: radial-gradient(
    closest-side,
    rgba(48, 52, 59, 0.6),
    rgba(8, 9, 11, 0)
  );
  box-shadow: 0 0 80px -10px rgba(120, 140, 190, 0.25);
}
.ab-mark {
  position: relative;
  width: 24%;
  height: auto;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.75));
  animation: ab-float 7s ease-in-out infinite alternate;
}
@keyframes ab-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes ab-float {
  from {
    translate: 0 -6px;
  }
  to {
    translate: 0 8px;
  }
}

/* ----- 1199px and below: seal on top, text underneath ----- */
@media (max-width: 1199px) {
  .ab-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 64px;
  }
  .ab-seal {
    order: -1;
    align-self: center;
    width: min(78vw, 380px);
  }
  .ab-copy {
    max-width: 760px;
  }
}

/* ----- 600px and below: phones ----- */
@media (max-width: 600px) {
  .about {
    padding-top: 88px;
    padding-bottom: 88px;
  }
  .ab-inner {
    gap: 48px;
  }
  .ab-value {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }
  .ab-foot {
    gap: 24px;
  }
  .ab-cta {
    width: 100%;
    justify-content: center;
  }
}
