/* ============================================================
   TOMAS SOETERIK — styles.css
   8px grid · CSS custom properties · Syne + Sora
   ============================================================ */

/* 1. RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body {
  overscroll-behavior-y: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* 2. DESIGN TOKENS
   ============================================================ */
:root {
  /* Colours */
  --ground: #0A0C0E;
  --ground-2: #101317;
  --ink: #EDE7DC;
  --ink-2: #9EA5A8;
  --muted: #6C7378;
  --amber: #E8913C;
  --teal: #2E6B72;
  --hair: rgba(237, 231, 220, 0.13);

  /* Spacing (8px grid) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Sora', sans-serif;
}

/* 3. BASE
   ============================================================ */
body {
  background-color: #fafaf8; /* Off-white page border */
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* On mobile the hero is dark — match the body background so iOS rubber-band
   overscroll never flashes white behind the hero when swiping. */
@media (pointer: coarse) {
  body {
    background-color: var(--ground);
    /* Prevent iOS elastic over-scroll bounce that causes the hero to visually stretch */
    overscroll-behavior-y: none;
  }

  html {
    overscroll-behavior-y: none;
  }
}

/* ============================================================
   FRAMED SECTION UTILITY
   ============================================================ */
.framed-section {
  background-color: var(--ground); /* Dark background for text */
  margin: var(--sp-4);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .framed-section {
    margin: var(--sp-2);
    border-radius: 16px;
  }
}

/* 4. COLOUR UTILITIES
   ============================================================ */
.c-amber {
  color: var(--amber);
}

.c-teal {
  color: var(--teal);
}

.c-muted {
  color: var(--muted);
}

.c-ink-2 {
  color: var(--ink-2);
}

/* 5. TYPOGRAPHY UTILITIES
   ============================================================ */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.t-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 6. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  transform-origin: center;
}

.btn:hover,
.btn:focus-visible {
  transform: scale(1.05);
}

.btn-pill {
  padding: 12px 24px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--ink);
}

.btn-pill:hover,
.btn-pill:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
  outline: none;
}

.btn-pill--teal:hover,
.btn-pill--teal:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-text {
  gap: var(--sp-1);
  color: var(--ink-2);
  padding: 4px 0;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  transform-origin: center;
}

.btn-text:hover,
.btn-text:focus-visible {
  color: var(--amber);
  outline: none;
  transform: scale(1.05);
}

.btn-outline {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.btn-outline--amber {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-outline--amber:hover,
.btn-outline--amber:focus-visible {
  background: var(--amber);
  color: var(--ground);
  outline: none;
}

.btn-outline--teal {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-outline--teal:hover,
.btn-outline--teal:focus-visible {
  background: var(--teal);
  color: var(--ink);
  outline: none;
}

/* 7. LAYOUT WRAPPER
   ============================================================ */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-bar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 58px;
  z-index: 1000;
  background: rgba(10, 12, 14, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
  transform: translateY(0) translateZ(0);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  /* Force compositing layer to prevent backdrop-filter flicker */
}

.nav-bar--hidden {
  transform: translateY(-100%) translateZ(0);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
  gap: var(--sp-4);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
  transform-origin: left center;
  display: inline-block;
}

.nav-wordmark:hover,
.nav-wordmark:focus-visible {
  transform: scale(1.05);
  outline: none;
}

.nav-links {
  display: flex;
  gap: var(--sp-6);
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 4px 0;
  display: inline-block;
  transform-origin: center;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--amber);
  outline: none;
  transform: scale(1.1);
}

.nav-link--active {
  color: var(--ink);
  pointer-events: none;
  transform: scale(1.1);
}

.nav-cta {
  margin-left: var(--sp-4);
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: var(--sp-1);
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   HERO — Portal
   ============================================================ */
.hero-section {
  position: relative;
  /* svh = small viewport height = stable on iOS (excludes address bar).
     Falls back to vh for older browsers. */
  min-height: 140vh;
  min-height: 140svh;
}

.hero-section--sub {
  min-height: 120vh;
}

.hero-stage {
  position: sticky;
  top: 0;
  /* dvh = dynamic viewport height — adjusts as iOS address bar slides.
     Falls back to vh for browsers without dvh support. */
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #07090f;
}

/* Layer 0 — star-canvas */
[id^="star-canvas"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  will-change: transform;
  /* z-index set inline by stars.js: 0 (standalone) or 1 (overlay) */
}

/* On mobile: remove individual will-change declarations so all hero
   children composite as ONE layer. Independent compositor layers each
   stretch at slightly different rates during iOS rubber-band, causing
   the visible 'stretch' glitch. One layer = uniform movement. */
@media (pointer: coarse) {
  [id^="star-canvas"],
  .hero-img-wrap,
  .hero-duotone,
  .hero-panel-left,
  .hero-panel-right,
  .hero-dot,
  .hero-title-wrap {
    will-change: auto;
  }
}

/* Layer 0 — background image (sub-pages: magic, engineering) */
.hero-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  will-change: transform;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Layer 1 — duotone overlay */
.hero-duotone {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, var(--amber) 0%, var(--teal) 100%);
  mix-blend-mode: overlay;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* Layer 2 — radial edge vignette */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 80% 80% at 50% 50%,
      transparent 35%,
      rgba(10, 12, 14, 0.35) 100%);
  pointer-events: none;
}

/* Layer 3 & 4 — panels */
.hero-panel-left,
.hero-panel-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background: var(--ground);
  z-index: 3;
  will-change: transform;
}

.hero-panel-left {
  left: 0;
}

.hero-panel-right {
  right: 0;
}

/* Layer 5 & 6 — accent dots */
.hero-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  /* translate centred to mid; JS handles the rest */
  z-index: 4;
  pointer-events: none;
  will-change: transform;
}

.hero-dot-amber {
  background: var(--amber);
}

.hero-dot-teal {
  background: var(--teal);
}

/* Layer 7 — split title */
.hero-title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  will-change: transform;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 8vw, 104px);
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 80vw;
  /* gives the column room to push spans to edges */
  max-width: 880px;
  will-change: letter-spacing;
}

.hero-title--single {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100vw !important;
  max-width: 100vw !important;
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
}

.hero-title--eng {
  font-size: clamp(32px, 7.5vw, 88px);
}

.hero-title-l,
.hero-title-r {
  display: block;
  will-change: transform;
  line-height: 0.9;
}

.hero-title-l {
  align-self: flex-start;
}

.hero-title-r {
  align-self: flex-end;
}

/* Layer 8 — corner metadata */
.hero-meta {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  pointer-events: none;
}

.hero-meta-sep {
  color: var(--muted);
  font-size: 10.5px;
}

.hero-meta-top {
  top: calc(58px + var(--sp-4));
  left: var(--sp-8);
}

.hero-meta-bottom {
  bottom: var(--sp-6);
  bottom: calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  right: var(--sp-8);
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(237, 231, 220, 0.16);
  border-radius: 100px;
  padding: 6px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--sp-6);
  bottom: calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  pointer-events: none;
}

.scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.scroll-chevrons .chevron {
  width: 18px;
  height: 18px;
  border-right: 3px solid rgba(255, 255, 255, 0.85);
  border-bottom: 3px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
  animation: scroll-chevron-anim 1.8s ease-in-out infinite;
}

.scroll-chevrons .chevron:nth-child(2) {
  margin-top: -8px;
}

@keyframes scroll-chevron-anim {
  0%, 100% {
    transform: rotate(45deg) translate(-4px, -4px);
  }
  50% {
    transform: rotate(45deg) translate(4px, 4px);
  }
}

.hero-section-divider {
  border: none;
  height: 1px;
  background: var(--hair);
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-line::after,
  .mobile-swipe-icon {
    animation: none;
  }
}

/* ============================================================
   BRANCH SECTION
   ============================================================ */
.branch-section {
  padding: var(--sp-6) 0 var(--sp-16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  /* Visual separator from the About section above */
  border-top: 1px solid var(--hair);
}

.branch-intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.branch-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.branch-cards {
  display: flex;
  gap: var(--sp-8);
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

/* Playing-card proportions: width 280px → height 392px (5:7 ratio) */
.branch-card {
  display: flex;
  flex-direction: column;
  width: 280px;
  background: var(--ground-2);
  border: 1px solid var(--hair);
  cursor: grab;
  text-decoration: none;
  color: var(--ink);
  /* Revealed state (without motion-ready the card is always visible) */
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.branch-card:active {
  cursor: grabbing;
}

.branch-card:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 4px;
}

/* Top accent hairline */
.branch-card-accent {
  height: 2px;
  width: 100%;
  flex-shrink: 0;
}

.branch-card--magic .branch-card-accent {
  background: var(--amber);
}

.branch-card--engineering .branch-card-accent {
  background: var(--teal);
}

/* Image area — portrait ratio */
.branch-card-img {
  width: 100%;
  aspect-ratio: 5 / 4;
  background: var(--ground);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  flex-shrink: 0;
}

.branch-card-img-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.branch-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branch-card-body {
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.branch-card-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.branch-card-line {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

.branch-card-arrow {
  font-size: 14px;
  color: var(--muted);
  margin-top: auto;
  padding-top: var(--sp-2);
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.branch-card:hover .branch-card-arrow,
.branch-card:focus-visible .branch-card-arrow {
  transform: translateX(5px);
  color: var(--ink);
}

/* ============================================================
   MAGIC SECTION
   ============================================================ */
.section-magic {
  padding: var(--sp-16) 0;
  border-top: 1px solid var(--hair);
}

.magic-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.magic-col-left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.magic-headline {
  font-size: clamp(28px, 3.8vw, 52px);
  margin-top: var(--sp-2);
}

.magic-lede {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 40ch;
}

.magic-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-2);
  flex-wrap: wrap;
}

/* Deck & Card Collection Visual */
.magic-col-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-8);
  perspective: 1200px;
  position: relative;
}

.deck-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

/* Playing card: 240 × 336 (5:7 ratio) */
.deck {
  position: relative;
  width: 260px;
  height: 364px;
  cursor: grab;
  touch-action: pan-y;
}

.deck:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 8px;
}

.deck:active {
  cursor: grabbing;
}

/* Individual card */
.deck-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--ground-2);
  border: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  will-change: transform;
  /* transition set/removed by JS during drag */
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Only top card gets shadow (only allowed shadow on page) */
.deck-card[data-top="true"] {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.deck-card-visual {
  width: 100%;
  height: 45%;
  background: var(--ground);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--hair);
  flex-shrink: 0;
  position: relative;
}

/* Hairline amber accent at top of card */
.deck-card-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber);
}

.deck-card-icon {
  font-size: 32px;
  color: var(--muted);
  opacity: 0.4;
}

.deck-card-body {
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  flex: 1;
}

.deck-card-idx {
  margin-bottom: 2px;
}

.deck-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.deck-card-desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
  flex: 1;
}

.deck-card-cta {
  color: var(--amber);
  margin-top: auto;
  padding-top: var(--sp-1);
}

.deck-hint {
  margin-top: 0;
  color: var(--muted);
}

.deck-dots {
  display: flex;
  gap: 6px;
  min-height: 6px;
}

.deck-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hair);
  transition: background 0.2s ease;
}

.deck-dot.active {
  background: var(--amber);
}

/* ============================================================
   ENGINEERING SECTION
   ============================================================ */
.section-engineering {
  padding: var(--sp-16) 0;
  border-top: 1px solid var(--hair);
  background: var(--ground-2);
}

.eng-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.eng-col-left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: sticky;
  top: 80px;
}

.eng-headline {
  font-size: clamp(28px, 3.8vw, 52px);
  margin-top: var(--sp-2);
}

.eng-lede {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 40ch;
}

.eng-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-2);
  flex-wrap: wrap;
}

/* Services rows */
.eng-services {
  width: 100%;
}

.eng-service-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--hair);
  cursor: default;
  transition: padding-left 0.2s ease;
}

.eng-service-row:last-child {
  border-bottom: 1px solid var(--hair);
}

.eng-service-row:hover {
  padding-left: var(--sp-1);
}

.eng-idx {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.eng-service-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eng-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.eng-note {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

.eng-arrow {
  color: var(--muted);
  font-size: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.eng-service-row:hover .eng-arrow {
  transform: translateX(4px);
  color: var(--teal);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.section-about {
  padding: var(--sp-16) 0;
  border-top: 1px solid var(--hair);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  position: relative;
}

.about-numeral {
  position: absolute;
  top: -0.1em;
  left: -0.08em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(100px, 18vw, 220px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--hair);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: relative;
  z-index: 1;
}

.about-headline {
  font-size: clamp(24px, 3.6vw, 52px);
  margin-top: var(--sp-2);
}

.about-headline em {
  font-style: normal;
}

.about-bio {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 44ch;
}

.about-location {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.about-rule {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}

.about-circle-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}

.about-circle {
  --circle-size: clamp(240px, 28vw, 380px);
  --bg-color: var(--ground);
  --crop-size: calc(var(--circle-size) / 10);

  position: relative;
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-circle::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  z-index: 1;
  box-shadow: inset 0 0 0 var(--crop-size) var(--bg-color);
  transition: box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.about-circle:hover::after {
  box-shadow: inset 0 0 0 0 var(--bg-color);
}

/* On touch devices: reveal the full image immediately (no hover available).
   The crop effect is a desktop-hover interaction only. */
@media (pointer: coarse) {
  .about-circle::after {
    box-shadow: inset 0 0 0 0 var(--bg-color);
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-circle::after {
    transition: none;
  }
}

.about-circle img {
  position: absolute;
  inset: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  max-width: calc(100% - 2px);
  max-height: calc(100% - 2px);
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  border-radius: 50%;
}

.about-circle-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================================
   CV / EXPERIENCE SECTION
   ============================================================ */
.section-cv {
  padding: var(--sp-16) 0;
  border-top: 1px solid var(--hair);
  background: var(--ground-2);
}

.cv-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.cv-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
}

.cv-headline {
  font-size: clamp(28px, 4vw, 56px);
}

.cv-lede {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 50ch;
}

.cv-download-btn {
  margin-top: var(--sp-2);
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
}

.cv-card {
  background: var(--ground);
  border: 1px solid var(--hair);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cv-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}

.cv-year {
  font-size: 10.5px;
}

.cv-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.cv-org {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.cv-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ============================================================
   3D ROTATING CARD DECK (Magic page)
   ============================================================ */
.card3d-scene {
  width: 100%;
  height: 400px;
  perspective: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: var(--sp-8);
}

.card3d-deck {
  width: 180px;
  height: 260px;
  position: relative;
  transform-style: preserve-3d;
  animation: card3d-spin 16s infinite linear;
}


@keyframes card3d-spin {
  0% {
    transform: rotateX(12deg) rotateY(0deg) rotateZ(-3deg);
  }

  50% {
    transform: rotateX(-12deg) rotateY(180deg) rotateZ(3deg);
  }

  100% {
    transform: rotateX(12deg) rotateY(360deg) rotateZ(-3deg);
  }
}

/* Each card in the stack */
.card3d-card {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* Stack depth: each card is offset backward and slightly rotated */
.card3d-card--0 {
  transform: translateZ(8px);
}

.card3d-card--1 {
  transform: translateZ(4px) rotateZ(2deg);
}

.card3d-card--2 {
  transform: translateZ(0px) rotateZ(-1deg);
}

.card3d-card--3 {
  transform: translateZ(-4px) rotateZ(3deg);
}

.card3d-card--4 {
  transform: translateZ(-8px) rotateZ(-2deg);
}

/* Card faces */
.card3d-face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  backface-visibility: hidden;
  overflow: hidden;
}

/* Front face — white card */
.card3d-front {
  background: #fafaf8;
  transform: rotateY(0deg) translateZ(1px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.card3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Corner labels */
.card3d-corner {
  position: absolute;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #1a1a1a;
}

.card3d-corner--tl {
  top: 10px;
  left: 12px;
}

.card3d-corner--br {
  bottom: 10px;
  right: 12px;
  transform: rotate(180deg);
}

/* Suit symbols */
.card3d-suit {
  font-size: 14px;
  display: block;
  margin-top: 2px;
}

.card3d-suit--red {
  color: #c43333;
}

/* Centre pip */
.card3d-pip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: #1a1a1a;
  opacity: 0.15;
}

.card3d-pip--red {
  color: #c43333;
}

/* Back face — Bicycle-style crosshatch */
.card3d-back {
  transform: rotateY(180deg) translateZ(1px);
  background: #1a1a2e;
  border: 1px solid rgba(224, 172, 65, 0.3);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.card3d-pattern {
  position: absolute;
  inset: 8px;
  border-radius: 6px;
  border: 2px solid var(--amber);
  background:
    repeating-linear-gradient(45deg,
      transparent,
      transparent 4px,
      rgba(224, 172, 65, 0.15) 4px,
      rgba(224, 172, 65, 0.15) 5px),
    repeating-linear-gradient(-45deg,
      transparent,
      transparent 4px,
      rgba(224, 172, 65, 0.15) 4px,
      rgba(224, 172, 65, 0.15) 5px);
}

.card3d-pattern::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(224, 172, 65, 0.4);
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .card3d-deck {
    animation: none;
    transform: rotateX(10deg) rotateY(25deg);
  }
}

/* ============================================================
   3D ROTATING PCB BOARD
   ============================================================ */
.pcb-3d-scene {
  width: 100%;
  height: 420px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pcb-3d-board {
  width: 260px;
  height: 320px;
  position: relative;
  transform-style: preserve-3d;
  animation: pcb-spin 14s infinite linear;
}


@keyframes pcb-spin {
  0% {
    transform: rotateX(15deg) rotateY(0deg) rotateZ(0deg);
  }

  50% {
    transform: rotateX(-15deg) rotateY(180deg) rotateZ(5deg);
  }

  100% {
    transform: rotateX(15deg) rotateY(360deg) rotateZ(0deg);
  }
}

.pcb-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  background: #09201e;
  border: 2px solid var(--teal);
  box-shadow: 0 0 30px rgba(78, 205, 196, 0.25), inset 0 0 20px rgba(78, 205, 196, 0.15);
  overflow: hidden;
}

.pcb-front {
  transform: rotateY(0deg) translateZ(2px);
}

.pcb-back {
  transform: rotateY(180deg) translateZ(2px);
  background: #061716;
}

/* Grid lines */
.pcb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78, 205, 196, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 205, 196, 0.1) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Traces */
.pcb-trace {
  position: absolute;
  background: rgba(78, 205, 196, 0.6);
  box-shadow: 0 0 6px rgba(78, 205, 196, 0.8);
}

.pcb-trace-1 {
  top: 40px;
  left: 30px;
  width: 130px;
  height: 2px;
}

.pcb-trace-2 {
  top: 40px;
  left: 160px;
  width: 2px;
  height: 100px;
}

.pcb-trace-3 {
  bottom: 60px;
  right: 40px;
  width: 110px;
  height: 2px;
}

.pcb-trace-4 {
  top: 80px;
  right: 30px;
  width: 140px;
  height: 2px;
}

.pcb-trace-5 {
  bottom: 80px;
  left: 40px;
  width: 2px;
  height: 110px;
}

/* Chips */
.pcb-chip {
  position: absolute;
  background: #111;
  border: 1px solid #333;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-chip {
  top: 95px;
  left: 75px;
  width: 110px;
  height: 110px;
  border-radius: 4px;
  border-color: rgba(78, 205, 196, 0.5);
}

.chip-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
}

/* Chip pins */
.chip-pins-top,
.chip-pins-bottom {
  position: absolute;
  width: 80%;
  height: 4px;
  background: repeating-linear-gradient(90deg, #aaa, #aaa 4px, transparent 4px, transparent 8px);
}

.chip-pins-top {
  top: -4px;
}

.chip-pins-bottom {
  bottom: -4px;
}

.chip-pins-left,
.chip-pins-right {
  position: absolute;
  height: 80%;
  width: 4px;
  background: repeating-linear-gradient(0deg, #aaa, #aaa 4px, transparent 4px, transparent 8px);
}

.chip-pins-left {
  left: -4px;
}

.chip-pins-right {
  right: -4px;
}

.sub-chip-1 {
  top: 25px;
  left: 25px;
  width: 34px;
  height: 22px;
}

.sub-chip-2 {
  bottom: 35px;
  left: 35px;
  width: 44px;
  height: 28px;
}

.back-chip {
  top: 110px;
  right: 55px;
  width: 75px;
  height: 75px;
}

/* LEDs */
.pcb-led {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.led-teal {
  top: 25px;
  right: 30px;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: pulse-led 2s infinite ease-in-out;
}

.led-amber {
  bottom: 25px;
  right: 30px;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: pulse-led 2s infinite 1s ease-in-out;
}

@keyframes pulse-led {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Solder pads */
.pcb-pad {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: inset 0 0 2px #000;
}

.pad-1 {
  top: 230px;
  left: 35px;
}

.pad-2 {
  top: 230px;
  left: 55px;
}

.pad-3 {
  top: 230px;
  left: 75px;
}

.pad-4 {
  top: 230px;
  left: 95px;
}

.pcb-logo {
  position: absolute;
  bottom: 25px;
  right: 25px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: rgba(78, 205, 196, 0.4);
  letter-spacing: 0.2em;
}

@media (prefers-reduced-motion: reduce) {
  .pcb-3d-board {
    animation: none;
    transform: rotateX(10deg) rotateY(25deg);
  }
}

/* ============================================================
   CV PAGE
   ============================================================ */
.section-cv-page {
  padding: 140px 0 var(--sp-24);
}

.cv-page-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cv-page-header {
  margin-bottom: var(--sp-12);
}

.cv-page-headline {
  margin: var(--sp-2) 0 var(--sp-4);
}

.cv-page-lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 480px;
  margin-bottom: var(--sp-6);
}

.cv-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  position: relative;
}

.cv-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--hair);
}

.cv-timeline-item {
  position: relative;
  padding-left: var(--sp-8);
}

.cv-timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 4px solid var(--ground);
  box-shadow: 0 0 0 1px var(--hair);
}

.cv-timeline-dot--teal {
  background: var(--teal);
}

.cv-timeline-dot--amber {
  background: var(--amber);
}

.cv-timeline-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.cv-year {
  margin-bottom: var(--sp-1);
}

.cv-title {
  font-size: clamp(24px, 4vw, 32px);
}

.cv-org {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--sp-2);
}

.cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.cv-skill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  border: 1px solid var(--hair);
}

.cv-skill--amber {
  background: rgba(220, 105, 40, 0.06);
  border-color: rgba(220, 105, 40, 0.2);
}

/* ============================================================
   CONTACT / CLOSE
   ============================================================ */
.section-contact {
  padding-top: var(--sp-16);
  border-top: 1px solid var(--hair);
  overflow: hidden;
}

.contact-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8);
  padding-bottom: var(--sp-16);
  flex-wrap: wrap;
}

.contact-top {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.contact-headline {
  font-size: clamp(28px, 4.5vw, 64px);
}

.contact-fine {
  font-size: 13px;
  color: var(--muted);
}

.contact-btns {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
}

.footer-hr {
  border: none;
  border-top: 1px solid var(--hair);
  margin: var(--sp-4) var(--sp-8) 0;
}

.footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-8);
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--muted);
}

.footer-social,
.footer-nav {
  display: flex;
  gap: var(--sp-4);
}

.footer-link {
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  transform-origin: center;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--ink);
  outline: none;
  transform: scale(1.05);
}

.close-wordmark-wrap {
  overflow: hidden;
  padding: 0 var(--sp-5);
  margin-top: var(--sp-2);
  line-height: 1;
}

.close-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 12vw, 180px);
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
  transform: translateY(35%);
  opacity: 0.15;
  user-select: none;
  line-height: 1;
  display: inline-block;
  padding-right: 0.5em;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
  will-change: transform;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation-play-state: paused;
  }
}

/* ============================================================
   ONE-SHOT REVEALS (motion-ready only)
   ============================================================ */
body.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
}

body.motion-ready [data-reveal].revealed {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 1;
  transform: translateY(0);
}

/* Branch cards get a staggered delay via inline style set by JS */

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .section-inner {
    padding: 0 var(--sp-4);
  }

  .nav-inner {
    padding: 0 var(--sp-4);
  }

  .footer-hr {
    margin: 0 var(--sp-4);
  }

  .footer-strip {
    padding: var(--sp-3) var(--sp-4);
  }

  .close-wordmark-wrap {
    padding: 0 var(--sp-4);
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .section-inner {
    padding: 0 var(--sp-3);
  }

  .nav-inner {
    padding: 0 var(--sp-3);
    gap: 0;
  }

  /* Nav collapse */
  .nav-links {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 12, 14, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: var(--sp-4) var(--sp-4);
    gap: var(--sp-3);
    border-bottom: 1px solid var(--hair);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 14px;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .hero-meta-top {
    left: var(--sp-3);
  }

  /* Bottom meta + swipe arrow must clear the iPhone home indicator */
  .hero-meta-bottom {
    bottom: calc(var(--sp-12) + env(safe-area-inset-bottom, 20px));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    white-space: nowrap;
    justify-content: center;
    background: rgba(7, 9, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(237, 231, 220, 0.22);
    border-radius: 100px;
    padding: 8px 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .scroll-indicator {
    bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 20px));
    left: 50%;
    transform: translateX(-50%);
  }

  /* Branch */
  .branch-cards {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
  }

  /* Hero — mobile: portal scroll is off so we don't need 250vh of scroll room */
  .hero-section {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-stage {
    height: 100vh;
    height: 100svh;
  }

  /* Title: smaller font + centered spans so nothing clips at stage edges */
  .hero-title {
    font-size: clamp(28px, 9vw, 52px);
    width: 90vw;
    letter-spacing: -0.01em;
  }

  /* Spans: center both lines (no JS offset on mobile) */
  .hero-title-l {
    align-self: center;
  }

  .hero-title-r {
    align-self: center;
    text-align: center;
  }

  /* hero-title--single (single-word pages like ENGINEERING) must stay
     100vw — override the 90vw rule above */
  .hero-title--single {
    width: 100vw !important;
    font-size: clamp(24px, 8vw, 52px) !important;
  }

  /* ENGINEERING-specific: long word needs smaller font to fit on narrow screens */
  .hero-title--eng {
    font-size: clamp(20px, 6vw, 52px) !important;
    letter-spacing: -0.03em !important;
  }

  /* Magic */
  .magic-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .magic-col-right {
    order: -1;
  }

  /* Engineering */
  .eng-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .eng-col-left {
    position: static;
  }

  .eng-service-row {
    grid-template-columns: 32px 1fr;
  }

  .eng-arrow {
    display: none;
  }

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .about-numeral {
    font-size: clamp(80px, 20vw, 140px);
  }

  .about-circle-wrap {
    order: -1;
  }

  /* Contact — add generous bottom padding so buttons don't sit flush against the hr */
  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-6);
    padding-bottom: var(--sp-12);
  }

  .contact-btns {
    align-items: flex-start;
    width: 100%;
  }

  .contact-btns .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-hr {
    margin: 0 var(--sp-3);
  }

  .footer-strip {
    padding: var(--sp-3);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }

  .close-wordmark-wrap {
    padding: 0 var(--sp-3);
  }
}

/* ============================================================
   RESPONSIVE — 480px (small phones)
   ============================================================ */
@media (max-width: 480px) {
  /* Even tighter side padding on very small phones */
  .section-inner {
    padding: 0 var(--sp-2);
  }

  /* 3D card deck — scale down so it doesn't overflow */
  .card3d-scene {
    height: 300px;
    perspective: 600px;
  }

  .card3d-deck {
    width: 130px;
    height: 190px;
  }

  /* 3D PCB board */
  .pcb-3d-scene {
    height: 300px;
  }

  .pcb-3d-board {
    width: 190px;
    height: 240px;
  }

  /* Branch cards full-width */
  .branch-card {
    width: 100%;
    max-width: 320px;
  }

  /* Deck cards full-width */
  .deck {
    width: 220px;
    height: 308px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  body.motion-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .branch-card {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Disable hover scale for text/links */
  .nav-link:hover,
  .nav-link:focus-visible,
  .btn:hover,
  .btn:focus-visible,
  .footer-link:hover,
  .footer-link:focus-visible,
  .nav-wordmark:hover,
  .nav-wordmark:focus-visible {
    transform: none !important;
  }
}

/* ============================================================
   CLIP TEXT ANIMATION (.animate-clip-text)
   ============================================================ */
.animate-clip-text .clip-wrapper {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}

.animate-clip-text .char {
  display: inline-block;
  transform: translateY(-100%);
  will-change: transform;
}

.animate-clip-text.revealed .char {
  animation: clip-slide-down 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.animate-clip-text .char.space {
  transform: none;
  animation: none;
}

@keyframes clip-slide-down {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-clip-text .char {
    transform: none;
    animation: none;
  }
}