﻿/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0B1A2B;
  --white-88: rgba(255,255,255,0.88);
  --white-42: rgba(255,255,255,0.42);
  --white-35: rgba(255,255,255,0.35);
  --white-22: rgba(255,255,255,0.22);
  --white-18: rgba(255,255,255,0.18);
  --white-12: rgba(255,255,255,0.12);
  --serif: 'Noto Serif JP', 'Cormorant Garamond', serif;
  --sans: 'Noto Sans JP', 'DM Sans', sans-serif;
  --brand-font: 'Cormorant Garamond', serif;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar { display: none; } /* Chrome / Safari / Edge */

body {
  background: radial-gradient(
    circle at 50% 30%,
    #11263f 0%,
    #0b1a2b 60%,
    #08121d 100%
  );
  color: var(--white-88);
  font-family: var(--sans);
  height: auto;
  overflow-x: hidden;
}

/* ── Canvas ───────────────────────────────────────────────────── */
#field-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* ── Progress Rail ────────────────────────────────────────────── */
#progress-rail {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
  transition: opacity 0.4s ease;
}

.tick {
  width: 2px;
  height: 10px;
  background: var(--white-22);
  transition: height 0.3s, background 0.3s;
  cursor: pointer;
  position: relative;
}

.tick::before {
  content: '';
  position: absolute;
  inset: -8px -12px;
}

.tick.active {
  height: 18px;
  background: var(--white-88);
}

.tick.past {
  background: var(--white-35);
}

/* ── Hero (sticky container) ──────────────────────────────────── */
#hero {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 3;
}

/* ── Loading Overlay — Split curtain intro ────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: all;
}

#page-loader.ldr-done {
  pointer-events: none;
}

/* Two panels that split apart on exit */
.ldr-panel {
  position: absolute;
  left: 0;
  right: 0;
  background: #060f1a;
  transition: transform 0.92s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.ldr-panel--top    { top: 0;    height: 50.5%; }
.ldr-panel--bottom { bottom: 0; height: 50.5%; }

.ldr-panel--top.ldr-exit    { transform: translateY(-100%); }
.ldr-panel--bottom.ldr-exit { transform: translateY(100%);  }

/* Content overlay — sits above both panels */
.ldr-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.38s ease;
}

.ldr-content.ldr-content-out { opacity: 0; }

/* Brand letters */
.ldr-brand-wrap {
  display: flex;
  overflow: hidden;
  padding-bottom: 6px;
}

.ldr-char {
  font-family: var(--brand-font);
  font-size: clamp(40px, 6.5vw, 86px);
  font-weight: 600;
  letter-spacing: 0.38em;
  color: rgba(255,255,255,0.92);
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.ldr-char.ldr-char-in { transform: translateY(0); }

/* Thin gold rule */
.ldr-divider {
  width: 44px;
  height: 1px;
  background: rgba(201,168,76,0.6);
  margin: 22px auto 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ldr-divider.ldr-div-in { transform: scaleX(1); }

/* Subtitle */
.ldr-sub {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.38em;
  color: rgba(255,255,255,0.26);
  margin-top: 14px;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.ldr-sub.ldr-sub-in { opacity: 1; }

/* Counter — small, center bottom */
.ldr-num-wrap {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}

.ldr-num-wrap.ldr-sub-in { opacity: 1; }

#ldr-num {
  font-family: var(--sans);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1;
  letter-spacing: 0.08em;
  min-width: 2ch;
  text-align: right;
  transition: color 0.4s ease;
}

#ldr-num.ldr-complete { color: rgba(255,255,255,0.75); }

.ldr-pct {
  font-family: var(--sans);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
}

/* Progress bar — 2px at bottom of screen */
.ldr-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.04);
}

.ldr-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(201,168,76,0.3) 0%, rgba(201,168,76,0.8) 100%);
}

/* ── Nav ──────────────────────────────────────────────────────── */
#nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 52px;
  z-index: 50;
  opacity: 0.3;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ── Lang Toggle ──────────────────────────────────────────────── */
#lang-toggle {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--white-42);
  background: none;
  border: 1px solid var(--white-22);
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
  flex-shrink: 0;
  line-height: 1.4;
}

#lang-toggle:hover {
  color: var(--white-88);
  border-color: var(--white-42);
}

.nav-brand {
  font-family: var(--brand-font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--white-88);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links li {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--white-42);
  cursor: pointer;
}

.nav-links li a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  padding: 8px 0;
  transition: color 0.25s;
}

.nav-links li a:hover {
  color: var(--white-88);
}

.nav-links li a.nav-link--active {
  color: rgba(201,168,76,0.85);
}

/* ── Scenes (all stacked, absolutely positioned) ─────────────── */
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}

/* ── Scene 1: Intro ───────────────────────────────────────────── */
#scene-intro {
  opacity: 1;
  flex-direction: column;
  gap: 0;
}

.intro-headline {
  text-align: center;
}

.intro-line-1 {
  font-family: var(--brand-font);
  font-size: clamp(36px, 5.5vw, 70px);
  font-weight: 600;
  color: var(--white-88);
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.intro-line-2 {
  font-family: var(--brand-font);
  font-size: clamp(26px, 3.8vw, 50px);
  font-weight: 300;
  font-style: italic;
  color: var(--white-88);
  margin-left: 2em;
  line-height: 1.1;
}

.scroll-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: var(--white-35);
}

.scroll-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--white-35);
  text-transform: uppercase;
}

/* ── Section Counter ──────────────────────────────────────────── */
.section-counter {
  position: absolute;
  top: 52px;
  left: 52px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--white-22);
  opacity: 0;
}

/* ── Scene 2: Lock ────────────────────────────────────────────── */
#scene-lock {
  flex-direction: column;
}

.lock-word {
  font-family: var(--brand-font);
  font-size: clamp(80px, 11vw, 130px);
  font-weight: 600;
  color: var(--white-88);
  letter-spacing: 0.38em;
  transform: scaleX(0.9);
  transform-origin: center;
  will-change: transform, letter-spacing;
}

/* ── Scene 3: Hero ────────────────────────────────────────────── */
#scene-hero {
  opacity: 0;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 52px 80px;
}

.hero-left {
  flex: 1;
  opacity: 0;
  transform: translateY(20px);
}

.hero-line-1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  color: var(--white-88);
  line-height: 1.1;
}

.hero-line-2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.42);
  margin-left: 1.5em;
  margin-top: 4px;
  line-height: 1.1;
}

.hero-right {
  width: 320px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(20px);
}

.hero-rule {
  width: 100%;
  height: 1px;
  background: var(--white-22);
  margin-bottom: 20px;
}

.hero-body {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.8;
  color: var(--white-35);
  font-weight: 300;
  margin-bottom: 28px;
}

.hero-cta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--white-88);
  text-decoration: none;
  border-bottom: 1px solid var(--white-42);
  padding-bottom: 2px;
  pointer-events: all;
}
/* ── Hero Video ───────────────────────────────────────────────── */
#hero-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  filter:
    saturate(0.45)
    hue-rotate(160deg)
    brightness(0.38)
    contrast(1.15);
}

#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  opacity: 0;
  will-change: opacity;
}

#hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 30% 50%,
      transparent 30%,
      rgba(11, 26, 43, 0.65) 70%,
      rgba(11, 26, 43, 0.95) 100%);
  pointer-events: none;
}

/* ── Spacetime Canvas ─────────────────────────────────────────── */
#spacetime-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
}

/* ── Hero Track (scroll space for GSAP animations) ────────────── */
#hero-track {
  position: relative;
  height: 350vh;
}

/* ── Fade-in (Intersection Observer) ─────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: 0.12s; }
.fade-in.delay-2 { transition-delay: 0.24s; }
.fade-in.delay-3 { transition-delay: 0.36s; }

/* ── Content Sections (shared) ────────────────────────────────── */
.content-section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 120px 52px;
  background: #060f1a;
  content-visibility: auto;
  contain-intrinsic-size: 0 900px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-variant: small-caps;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.22);
  margin-bottom: 40px;
}

.label-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.65s cubic-bezier(0.16,1,0.3,1);
}
.label-reveal.visible { clip-path: inset(0 0% 0 0); }

.section-heading {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  line-height: 1.15;
}

.section-heading::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: rgba(201,168,76,0.60);
  margin-top: 14px;
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1) 0.35s;
}
.section-heading.sh-visible::after { width: 48px; }

.section-heading em {
  font-style: italic;
  font-weight: 300;
}

.body-text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.68);
  font-weight: 300;
}

.body-text + .body-text { margin-top: 18px; }

/* ── Purpose ──────────────────────────────────────────────────── */
.purpose-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 40px;
  align-items: start;
}

.pillars {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.pillar {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.pillar-num {
  font-family: var(--brand-font);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 400;
  color: rgba(201,168,76,0.7);
  letter-spacing: 0.08em;
  min-width: 20px;
}

.pillar-title {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.pillar-desc {
  font-family: var(--sans);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.50);
  padding-left: 36px;
}

/* ── Works ────────────────────────────────────────────────────── */
.works-subtitle {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
  margin-bottom: 0;
}

.works-subtitle a {
  color: rgba(201,168,76,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 1px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.work-cell {
  aspect-ratio: 1;
  border: 1px solid rgba(201,168,76,0.22);
  background: rgba(8,18,29,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.work-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, transparent 60%);
}

.work-coming-line {
  width: 24px;
  height: 1px;
  background: rgba(201,168,76,0.30);
}

.work-coming-label {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(201,168,76,0.45);
  font-variant: small-caps;
}

.works-cta {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 12px 28px;
  transition: border-color 0.3s, color 0.3s;
}

.works-cta:hover {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

/* ── Projects ─────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(8,18,29,0.5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,18,29,0.65) 100%);
}

.project-tag {
  font-family: var(--sans);
  font-size: 8px;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.25);
  position: relative;
  z-index: 1;
  margin-bottom: 4px;
}

.project-title {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.40);
  position: relative;
  z-index: 1;
}

/* ── Team ─────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-top: 56px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-photo {
  width: 120px;
  height: 140px;
  overflow: hidden;
  border: none;
  outline: 1px solid rgba(200,200,200,0.45);
  outline-offset: 5px;
  margin-bottom: 4px;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(18%) contrast(1.04);
}

.team-card:nth-child(3) .team-photo img {
  object-position: center top;
}

.team-role {
  font-family: var(--sans);
  font-size: 10px;
  font-variant: small-caps;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.30);
}

.team-name {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  line-height: 1.2;
}

.team-name-en {
  font-family: var(--sans);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 300;
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.team-rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin: 0;
}

.team-bio {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.60);
  font-weight: 300;
}

.team-linkedin {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(201,168,76,0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.25);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: color 0.2s;
}

.team-linkedin:hover { color: rgba(201,168,76,1); }

/* ── Footer ───────────────────────────────────────────────────── */
#footer {
  position: relative;
  z-index: 10;
  background: #08121d;
  padding: 96px 52px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-brand {
  font-family: var(--brand-font);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.88);
}

.footer-tagline {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.06em;
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 36px;
  margin-top: 8px;
}

.footer-links a {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 2px;
  transition: color 0.3s;
}

.footer-links a:hover { color: rgba(255,255,255,0.75); }

.footer-copy {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.08em;
  margin-top: 12px;
}

/* ── Section backgrounds & dividers ──────────────────────────── */
#purpose {
  background: #050810;
  border-top: 1px solid rgba(201,168,76,0.20);
}


#works {
  background: #060f1a;
  border-top: 1px solid rgba(201,168,76,0.20);
}

#projects {
  background: #0b1a2b;
  border-top: 1px solid rgba(201,168,76,0.20);
}

#team {
  background: #060f1a;
  border-top: 1px solid rgba(201,168,76,0.20);
}

#contact {
  background: #0b1a2b;
  border-top: 1px solid rgba(201,168,76,0.20);
}

#contact::before { content: none; }

/* ── Pricing section ─────────────────────────────────────────── */
#pricing {
  background: #060f1a;
  border-top: 1px solid rgba(201,168,76,0.20);
}

.pricing-single {
  position: relative;
  background: rgba(201,168,76,0.035);
  border: 1px solid rgba(201,168,76,0.50);
  padding: 48px 48px 40px;
  margin-top: 52px;
  max-width: 860px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.pricing-single::after {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.90), transparent);
}

.pricing-single.shimmer-active {
  animation: pricing-border-glow 1.6s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes pricing-border-glow {
  0%   { box-shadow: 0 0  0px 0px rgba(201,168,76,0.00); }
  35%  { box-shadow: 0 0 28px 4px rgba(201,168,76,0.28); }
  100% { box-shadow: 0 0  0px 0px rgba(201,168,76,0.00); }
}

.pricing-breakdown {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 48px;
  align-items: center;
  margin-bottom: 12px;
}

.pricing-breakdown-sep {
  font-family: var(--brand-font);
  font-size: 40px;
  font-weight: 300;
  color: rgba(201,168,76,0.40);
  text-align: center;
  line-height: 1;
  padding-bottom: 28px;
  align-self: center;
}

.pricing-breakdown-title {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pricing-features--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 48px;
}

/* ── Base card ───────────────────────────────────────────────── */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(201,168,76,0.18);
  padding: 36px 32px 32px;
  transition: border-color 0.3s;
}

.pricing-card:hover {
  border-color: rgba(201,168,76,0.38);
}

/* ── Featured card ───────────────────────────────────────────── */
.pricing-card--featured {
  background: rgba(201,168,76,0.035);
  border-color: rgba(201,168,76,0.50);
}

.pricing-card--featured:hover {
  border-color: rgba(201,168,76,0.80);
}

.pricing-card--featured::after {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.90), transparent);
}

/* ── Badge ───────────────────────────────────────────────────── */
.pricing-badge {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.20em;
  color: #C9A84C;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ── Eyebrow label ───────────────────────────────────────────── */
.pricing-card-eyebrow {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* ── Build price display ─────────────────────────────────────── */
.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
  margin-bottom: 8px;
}

.pricing-currency {
  font-family: var(--brand-font);
  font-size: 28px;
  font-weight: 300;
  color: rgba(255,255,255,0.60);
  align-self: flex-start;
  margin-top: 6px;
}

.pricing-number {
  font-family: var(--brand-font);
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 400;
  color: var(--white-88);
  letter-spacing: -0.02em;
  line-height: 1;
}

.pricing-period {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 28px;
}

/* ── Monthly tier rows ───────────────────────────────────────── */
.pricing-tiers {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
}

.pricing-tier {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}

.pricing-tier-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.40);
  white-space: nowrap;
}

.pricing-tier-value {
  font-family: var(--brand-font);
  font-size: 32px;
  font-weight: 400;
  color: var(--white-88);
  letter-spacing: -0.01em;
  line-height: 1;
}

.pricing-tier-value strong {
  font-weight: 400;
}

.pricing-tier-value--free {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #C9A84C;
  text-transform: uppercase;
}

.pricing-tier--regular .pricing-tier-value {
  font-size: 24px;
  color: rgba(255,255,255,0.55);
}

.pricing-mo {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  margin-left: 2px;
}

.pricing-regular-note {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  margin-top: 4px;
}

.pricing-strike {
  text-decoration: line-through;
  text-decoration-color: rgba(201,168,76,0.50);
  color: rgba(255,255,255,0.28);
}

/* ── Divider ─────────────────────────────────────────────────── */
.pricing-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 24px;
}

/* ── Feature list ────────────────────────────────────────────── */
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-features li {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  letter-spacing: 0.04em;
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 1px;
  background: rgba(201,168,76,0.55);
}

/* ── Pricing total summary ───────────────────────────────────── */
.pricing-summary {
  font-family: var(--serif);
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.06em;
  text-align: center;
  margin: 0 0 20px;
}

/* ── CTA button ──────────────────────────────────────────────── */
.pricing-cta {
  display: block;
  text-align: center;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.60);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 15px 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  margin-top: auto;
}

.pricing-cta:hover {
  color: var(--white-88);
  border-color: rgba(255,255,255,0.45);
}

.pricing-cta--featured {
  color: #C9A84C;
  border-color: rgba(201,168,76,0.45);
}

.pricing-cta--featured:hover {
  color: #d4b060;
  border-color: rgba(201,168,76,0.85);
  background: rgba(201,168,76,0.06);
}

/* ── Fine print ──────────────────────────────────────────────── */
.pricing-note {
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pricing-single {
    padding: 36px 24px 28px;
  }

  .pricing-breakdown {
    grid-template-columns: 1fr;
    gap: 28px 0;
  }

  .pricing-breakdown-sep {
    text-align: left;
    padding-bottom: 0;
    font-size: 28px;
  }

  .pricing-features--two-col {
    grid-template-columns: 1fr;
  }

  .pricing-number {
    font-size: clamp(44px, 12vw, 64px);
  }

  .pricing-tier-value {
    font-size: 26px;
  }
}


/* ── Beams background ─────────────────────────────────────────── */
.beams-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  filter: blur(15px);
}


/* ── Grid pattern — all content sections ──────────────────────── */
.content-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(180,210,255,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(180,210,255,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.content-section .section-inner {
  position: relative;
  z-index: 1;
}

/* ── Works — live site preview ────────────────────────────────── */
.works-live {
  margin-top: 48px;
}

.works-live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.works-live-grid .browser-viewport {
  height: 260px;
}

.works-live-badge {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(201,168,76,0.75);
  font-variant: small-caps;
  margin-bottom: 14px;
}

.works-live-frame {
  border: 1px solid rgba(201,168,76,0.22);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(8,18,29,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.browser-address {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  flex: 1;
}

.browser-open {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(201,168,76,0.65);
  text-decoration: none;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  transition: color 0.2s;
}
.browser-open:hover { color: rgba(201,168,76,1); }

.browser-viewport {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #07111c;
}

.browser-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.browser-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7,17,28,0.55);
  opacity: 0;
  transition: opacity 0.3s;
  text-decoration: none;
  pointer-events: all;
}

.browser-overlay:hover { opacity: 1; }

.browser-overlay span {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 24px;
}

/* ── Projects — Interactive Selector ────────────────────────────── */
.proj-selector {
  display: flex;
  width: 100%;
  height: 440px;
  margin-top: 28px;
  overflow: hidden;
}

.proj-panel {
  position: relative;
  flex: 1 1 0%;
  overflow: hidden;
  cursor: pointer;
  background: #0a1520;
  border: 2px solid #1a2a3a;
  min-width: 56px;
  opacity: 0;
  transform: translateX(-40px);
  will-change: flex-grow;
  transition:
    flex         0.7s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s ease,
    box-shadow   0.7s ease;
}

@keyframes proj-slide-in {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.proj-panel.proj-visible {
  animation: proj-slide-in 0.55s ease forwards;
}

.proj-panel.proj-active {
  flex: 7 1 0%;
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}

.proj-panel:not(.proj-active) {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.proj-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.1);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj-panel.proj-active .proj-bg {
  transform: scale(1);
}

.proj-shadow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: box-shadow 0.7s ease;
}

.proj-panel.proj-active .proj-shadow {
  box-shadow: inset 0 -160px 120px -60px rgba(0,0,0,0.9);
}

.proj-panel:not(.proj-active) .proj-shadow {
  box-shadow: inset 0 -80px 60px -40px rgba(0,0,0,0.6);
}

.proj-label {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  pointer-events: none;
  z-index: 2;
}

.proj-orb {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(10,20,32,0.95);
  border: 1px solid rgba(201,168,76,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(201,168,76,0.85);
}

.proj-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.proj-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.45s ease 0.1s, transform 0.45s ease 0.1s;
}

.proj-sub {
  font-family: var(--mono, monospace);
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.45s ease 0.18s, transform 0.45s ease 0.18s;
}

.proj-panel.proj-active .proj-title,
.proj-panel.proj-active .proj-sub {
  opacity: 1;
  transform: translateX(0);
}

.proj-visit-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.85);
  background: rgba(8,18,29,0.72);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 14px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease 0.2s, transform 0.35s ease 0.2s;
}

.proj-panel.proj-active .proj-visit-badge {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  cursor: pointer;
}

.proj-panel.proj-active .proj-visit-badge:hover {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.55);
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.proj-hint {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.28);
  text-align: center;
}

@media (max-width: 900px) {
  .proj-selector { height: 380px; }
}

@media (max-width: 640px) {
  .proj-selector {
    flex-direction: column;
    height: auto;
  }
  .proj-panel {
    flex: 0 0 72px !important;
    min-width: unset;
    transform: translateX(0);
    opacity: 0;
  }
  .proj-panel.proj-active {
    flex: 0 0 280px !important;
  }
}

/* ── Works — case cards ────────────────────────────────────────── */
.works-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
}

.work-case {
  background: #060f1a;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-case-cat {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  font-variant: small-caps;
  color: rgba(201,168,76,0.65);
}

.work-case-title {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  line-height: 1.2;
}

.work-case-desc {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,0.52);
  font-weight: 300;
  flex: 1;
}

.work-case-link {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 1px;
  align-self: flex-start;
  margin-top: 4px;
  transition: color 0.2s;
}
.work-case-link:hover { color: rgba(255,255,255,0.88); }

.work-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0;
}

.work-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.work-stat-num {
  font-family: var(--brand-font);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  color: rgba(201,168,76,0.9);
  letter-spacing: 0.04em;
}

.work-stat-label {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  font-variant: small-caps;
  color: rgba(255,255,255,0.35);
}

.work-stat-div {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.12);
}

/* ── Contact form ──────────────────────────────────────────────── */
.contact-hours {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
  margin-bottom: 52px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.contact-hours strong {
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cf-row {
  display: grid;
  gap: 20px;
}

.cf-row--2 { grid-template-columns: 1fr 1fr; }

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-variant: small-caps;
  color: rgba(255,255,255,0.45);
  transition: color 0.25s;
}

.cf-field:has(.cf-input:focus) .cf-label {
  color: rgba(201,168,76,0.9);
}

.cf-req { color: rgba(201,168,76,0.8); }

.cf-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
  font-family: var(--sans);
  font-size: 13px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.cf-input::placeholder { color: rgba(255,255,255,0.20); }

.cf-input:focus { border-color: rgba(201,168,76,0.85); }

.cf-input--error { border-color: rgba(210,70,70,0.75) !important; }

.cf-error-msg {
  font-family: var(--sans);
  font-size: 10px;
  color: rgba(220,90,80,0.85);
  letter-spacing: 0.04em;
}

.cf-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.3)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.cf-select option { background: #0B1A2B; color: rgba(255,255,255,0.88); }

.cf-textarea { resize: vertical; min-height: 100px; }

.cf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cf-note {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

.cf-submit {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.88);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  padding: 14px 36px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.cf-submit:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.55);
}

.cf-status {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  min-height: 20px;
}

.cf-status.success { color: rgba(160,220,140,0.85); }
.cf-status.error   { color: rgba(220,120,100,0.85); }

/* ── Aurora background (Process) ──────────────────────────────── */
@keyframes aurora-1 {
  0%   { transform: translate(0%,   0%)   scale(1);   }
  25%  { transform: translate(20%,  -20%) scale(1.2); }
  50%  { transform: translate(-20%, 20%)  scale(0.8); }
  75%  { transform: translate(10%,  -10%) scale(1.1); }
  100% { transform: translate(0%,   0%)   scale(1);   }
}
@keyframes aurora-2 {
  0%   { transform: translate(0%,   0%)   scale(1);   }
  25%  { transform: translate(-20%, 20%)  scale(1.1); }
  50%  { transform: translate(20%,  -20%) scale(0.9); }
  75%  { transform: translate(-10%, 10%)  scale(1.2); }
  100% { transform: translate(0%,   0%)   scale(1);   }
}

.aurora-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
}

.aurora-blob-1 {
  top: -20%;
  left: 20%;
  background: rgba(18, 45, 110, 0.55);
  animation: aurora-1 20s ease-in-out infinite;
}

.aurora-blob-2 {
  bottom: -20%;
  right: 20%;
  background: rgba(10, 25, 70, 0.45);
  animation: aurora-2 20s ease-in-out infinite;
}


/* ── Process Section ───────────────────────────────────────────── */
#process {
  background: #060f1a;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.orbital-wrap {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.orbital-hint {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.18);
  font-variant: small-caps;
  text-align: center;
}

/* Stage — full viewport height, flex-centered so absolute children
   inherit centered static position (matches React's flex container) */
.orbital-stage {
  position: relative;
  width: 100%;
  max-width: 768px;
  height: 680px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Orbit ring */
.ob-ring {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
  pointer-events: none;
}

/* Center hub — 64px matching React's w-16 h-16 */
.ob-hub {
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A84C 0%, #9a7028 50%, #e8c96b 100%);
  animation: ob-hub-pulse 2s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 10;
}

/* Ping rings — matching React's w-20/w-24 */
.ob-hub-r1 {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.20);
  animation: ob-ping 1s cubic-bezier(0,0,0.2,1) infinite;
  opacity: 0.70;
}
.ob-hub-r2 {
  position: absolute;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
  animation: ob-ping 1s cubic-bezier(0,0,0.2,1) infinite;
  animation-delay: 0.5s;
  opacity: 0.50;
}

/* Inner white core — matching React's w-8 bg-white/80 */
.ob-hub-letter {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: #08121d;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

@keyframes ob-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes ob-hub-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

/* ── Orbital nodes ─────────────────────────────────────────────── */
/* Absolute, no top/left — uses flex static-position (centered) like React */
.ob-node {
  position: absolute;
  cursor: pointer;
  will-change: transform, opacity;
  transition: opacity 0.7s;
}

/* Orb button — w-10 h-10 matching React */
.ob-orb {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.40);
  background: #08121d;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  position: relative; z-index: 1;
}

.ob-num {
  font-family: var(--brand-font);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.04em;
}

/* Label — absolute top-12 = 48px, matching React */
.ob-label {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s, transform 0.3s;
}

/* Active — bg-white text-black scale-150 shadow matching React */
.ob-node--active .ob-orb {
  background: #fff;
  border-color: #fff;
  color: #08121d;
  box-shadow: 0 4px 24px rgba(255,255,255,0.30);
  transform: scale(1.5);
}
.ob-node--active .ob-num   { color: #08121d; }
.ob-node--active .ob-label { color: #fff; transform: translateX(-50%) scale(1.15); }

/* Dim */
.ob-node--dim { opacity: 0.20 !important; pointer-events: none; }

/* ── Detail card — top-20 = 80px matching React ────────────────── */
.ob-card {
  display: none;
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 256px;
  background: rgba(6,15,26,0.97);
  border: 1px solid rgba(255,255,255,0.30);
  padding: 16px 16px 14px;
  z-index: 300;
  box-shadow: 0 20px 60px rgba(255,255,255,0.10);
  overflow: visible;
  animation: ob-card-in 0.25s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes ob-card-in {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Connector — -top-3 matching React */
.ob-card-connector {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 12px;
  background: rgba(255,255,255,0.50);
}

.ob-node--active .ob-card { display: block; }

/* Flip card above the orb when node is in the lower half of the orbit */
.ob-node--flip .ob-card {
  top: auto;
  bottom: 80px;
  animation: ob-card-in-up 0.25s cubic-bezier(0.16,1,0.3,1) both;
}
.ob-node--flip .ob-card-connector {
  top: auto;
  bottom: -12px;
}

@keyframes ob-card-in-up {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Card header */
.ob-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Badge — rounded-full px-2 matching React */
.ob-badge {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.10em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
}
/* Status styles matching React: completed=dark/white, in-progress=white/dark, pending=dark/faint */
.ob-badge--completed   { color: #fff;            background: #08121d;              border-color: #fff; }
.ob-badge--in-progress { color: #08121d;          background: #fff;                 border-color: #08121d; }
.ob-badge--pending     { color: rgba(255,255,255,0.70); background: rgba(8,18,29,0.40); border-color: rgba(255,255,255,0.50); }

.ob-card-date {
  font-family: var(--sans);
  font-size: 10px;
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.04em;
}

/* Card title — text-sm mt-2 matching React CardTitle */
.ob-card-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  margin-top: 8px;
  line-height: 1.3;
}

/* Card content */
.ob-card-content {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.80;
  color: rgba(255,255,255,0.80);
  font-weight: 300;
  padding-top: 4px;
}

/* Duration row */
.ob-duration {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.ob-duration-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
}

.ob-duration-val {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: #C9A84C;
  letter-spacing: 0.04em;
}

/* ── Works — Instagram showcase ──────────────────────────────── */
.works-instagram {
  margin-top: 48px;
}

.ig-badge {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(201,168,76,0.75);
  font-variant: small-caps;
  margin-bottom: 14px;
}

.ig-card {
  border: 1px solid rgba(201,168,76,0.22);
  background: rgba(8,18,29,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ig-card-left {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.ig-profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ig-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--brand-font);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
  overflow: hidden;
  padding: 2px;
}

.ig-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.ig-profile-info {
  flex: 1;
}

.ig-handle {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.02em;
}

.ig-tagline {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 3px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.ig-open {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(201,168,76,0.65);
  text-decoration: none;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(201,168,76,0.25);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.ig-open:hover { color: rgba(201,168,76,1); }

.ig-desc {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,0.52);
  font-weight: 300;
}

.ig-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 4px;
}

.ig-tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 11px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.ig-tag:hover {
  color: rgba(201,168,76,0.8);
  border-color: rgba(201,168,76,0.3);
}

/* Stats bar — full-width row at bottom of ig-card */
.ig-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(201,168,76,0.18);
  background: rgba(4,10,20,0.55);
}

.ig-stat-item {
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.ig-stat-item:last-child { border-right: none; }

.ig-stat-kpi {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}

.ig-stat-big {
  font-family: var(--brand-font);
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 600;
  color: rgba(201,168,76,0.92);
  letter-spacing: -0.01em;
  line-height: 1;
}

.ig-stat-unit {
  font-family: var(--brand-font);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 400;
  color: rgba(201,168,76,0.42);
  line-height: 1;
}

.ig-stat-track {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.ig-stat-fill {
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, rgba(201,168,76,0.72) 0%, rgba(201,168,76,0.12) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ig-stat-fill.bar-in { transform: scaleX(1); }

.ig-stat-label {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  font-variant: small-caps;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

/* ── Works — artwork gallery ──────────────────────────────────── */
.works-artwork {
  margin-top: 48px;
}

.artwork-badge {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(201,168,76,0.75);
  font-variant: small-caps;
  margin-bottom: 14px;
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
}

.artwork-piece {
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform;
}

.artwork-img-wrap {
  position: relative;
  overflow: hidden;
}

.artwork-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.artwork-piece:hover .artwork-img-wrap img {
  transform: scale(1.03);
}

.artwork-caption {
  background: #08121d;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-variant: small-caps;
  color: rgba(255,255,255,0.40);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Tablet ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .works-live-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  #nav          { padding: 20px 24px; }
  .nav-right    { gap: 14px; }
  .nav-links    { gap: 10px 18px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-links li { font-size: 14px; }
  .nav-links li a { padding: 10px 4px; }

  /* Hero scenes */
  .lock-word    { font-size: clamp(28px, 9vw, 80px); }
  .intro-line-1 { font-size: clamp(20px, 5.5vw, 36px); }
  .intro-line-2 { font-size: clamp(14px, 3.8vw, 26px); margin-left: 0.5em; }
  .hero-line-1  { font-size: clamp(20px, 5vw, 36px); }
  .hero-line-2  { font-size: clamp(13px, 3.2vw, 24px); }

  #scene-hero {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 24px 72px;
    gap: 24px;
  }

  .hero-left  { flex: none; width: 100%; }
  .hero-right { width: 100%; }

  /* Content sections */
  .content-section { padding: 72px 24px; }
  .purpose-layout  { grid-template-columns: 1fr; gap: 40px; }
  .works-grid      { grid-template-columns: repeat(2, 1fr); }
  .projects-grid   { grid-template-columns: 1fr; }
  .team-grid       { grid-template-columns: 1fr; gap: 48px; }

  /* Orbital process */
  .orbital-stage  { height: 80vh; }
  .ob-ring        { width: 260px; height: 260px; }
  .ob-hub         { width: 48px; height: 48px; }
  .ob-hub-r1      { width: 60px; height: 60px; }
  .ob-hub-r2      { width: 72px; height: 72px; }
  .ob-hub-core    { width: 24px; height: 24px; }
  .ob-card        { width: 200px; padding: 14px 12px; }
  .ob-card-title  { font-size: 13px; }

  /* Works live + cases */
  .browser-viewport { height: 280px; }
  .works-cases      { grid-template-columns: 1fr; }
  .works-live-grid  { grid-template-columns: 1fr; }
  .works-live-grid .browser-viewport { height: 240px; }

  /* Instagram card */
  .ig-card-left  { padding: 24px 20px; }
  .ig-stats-bar  { grid-template-columns: repeat(2, 1fr); }
  .ig-stat-item  { padding: 20px 20px; }
  .ig-stat-item:nth-child(2) { border-right: none; }
  .ig-profile-row { flex-wrap: wrap; gap: 10px; }
  .ig-open        { width: 100%; }

  /* Artwork grid */
  .artwork-grid     { grid-template-columns: 1fr; }

  /* Contact form */
  .cf-row--2 { grid-template-columns: 1fr; }
  .cf-footer { flex-direction: column; align-items: flex-start; }

  /* Footer */
  #footer         { padding: 64px 24px 48px; }
  .footer-links   { gap: 20px; flex-wrap: wrap; justify-content: center; }
}

/* ── 02 PROCESS — Scroll-driven redesign ─────────────────────── */
#process {
  position: relative;
  background: #060f1a;
  border-top: 1px solid rgba(201,168,76,0.15);
  z-index: 10;
}

/* Pin container: matches viewport height */
#proc-pin {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Two-column flow layout (visible by default) */
.proc-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 0 52px;
  position: relative;
  z-index: 5;
  pointer-events: none;
}

/* Left: heading block */
.proc-left {
  flex: 0 0 340px;
  padding-right: 40px;
  pointer-events: auto;
}

.proc-left .section-label {
  margin-bottom: 20px;
}

.proc-left .section-heading {
  font-size: clamp(28px, 3.2vw, 46px);
  white-space: nowrap;
  margin-bottom: 16px;
}

.proc-left .body-text {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,0.42);
}

/* Right: orbital wrapper */
.proc-orbital-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  pointer-events: auto;
}

/* Wheel wrap — GSAP scales this */
#proc-wheel-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform-origin: center center;
}

/* Click hint — mobile only */
.proc-click-hint {
  display: none;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.28);
  text-align: center;
  pointer-events: none;
}

/* Text panel: overlaid on right, driven by GSAP */
#proc-text-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(to right, transparent 0%, #060f1a 18%, #060f1a 100%);
}

.proc-phase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 52px 60px 40px;
  opacity: 0;
  pointer-events: none;
}

.proc-phase-numeral {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: rgba(201,168,76,0.65);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.proc-phase-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  line-height: 1.15;
  margin-bottom: 24px;
}

.proc-phase-body {
  font-family: var(--sans);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 2.0;
  color: rgba(255,255,255,0.48);
  margin-bottom: 32px;
  max-width: 380px;
}

.proc-phase-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.proc-phase-date {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(201,168,76,0.6);
  text-transform: uppercase;
}

.proc-phase-dur {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.28);
}

/* Progress dots */
#proc-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 30;
  pointer-events: none;
}

.proc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: background 0.35s, transform 0.35s;
}

.proc-dot--active {
  background: rgba(201,168,76,0.75);
  transform: scale(1.5);
}

/* Scroll hint */
.proc-scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 30;
  pointer-events: none;
}

.proc-scroll-hint .scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(201,168,76,0), rgba(201,168,76,0.55));
  animation: proc-line-pulse 2.2s ease-in-out infinite;
}

@keyframes proc-line-pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1; }
}

.proc-scroll-hint span {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  writing-mode: vertical-rl;
}

/* Mobile */
@media (max-width: 767px) {
  #process {
    min-height: 100vh;
    padding: 80px 0 40px;
  }
  #proc-pin {
    height: auto;
    overflow: visible;
    justify-content: flex-start;
  }
  .proc-layout {
    flex-direction: column;
    padding: 0 24px;
    gap: 24px;
    align-items: flex-start;
  }
  .proc-left {
    flex: none;
    padding-right: 0;
  }
  .proc-orbital-wrap {
    width: 100%;
  }
  #proc-wheel-wrap {
    width: 100%;
  }
  #proc-text-panel,
  #proc-dots,
  .proc-scroll-hint {
    display: none !important;
  }
  .proc-click-hint {
    display: block;
  }
}


/* ── 3D Rotating Gallery ─────────────────────────────────────────── */
.sphere-badge {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(201,168,76,0.55);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.gal3-outer {
  position: relative;
  height: 560px;
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  margin-top: 8px;
}
.gal3-outer.is-dragging { cursor: grabbing; }

/* Perspective container — fills stage, centers scene */
.gal3-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  perspective-origin: 50% 46%;
}

/* Slight downward tilt so back row is visible */
.gal3-rig {
  transform-style: preserve-3d;
  transform: rotateX(-7deg);
}

/* The rotating ring — width/height 0, cards orbit around center */
.gal3-ring {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Each slot is a 3D point on the circle — transform set by JS */
.gal3-slot {
  position: absolute;
  transform-style: preserve-3d;
}

/* ── Card ─────────────────────────────────────────────────────── */
.gal3-card {
  display: block;
  width: 320px;
  height: 210px;
  margin-left: -160px;
  margin-top:  -105px;
  border: 1px solid rgba(201,168,76,0.16);
  overflow: hidden;
  text-decoration: none;
  position: relative;
  background: #060f1a;
  transition: border-color 0.35s ease;
}
.gal3-card:hover {
  border-color: rgba(201,168,76,0.45);
}
.gal3-slot.is-active .gal3-card {
  border-color: rgba(201,168,76,0.48);
  box-shadow: 0 0 28px rgba(201,168,76,0.08), 0 20px 60px rgba(0,0,0,0.65);
}

.gal3-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  background-color: #0a1628;
  transition: transform 0.5s ease;
}
.gal3-slot.is-active .gal3-card:hover .gal3-thumb {
  transform: scale(1.04);
}

.gal3-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px 18px 14px;
  background: linear-gradient(to top, rgba(4,10,20,0.97) 0%, rgba(4,10,20,0.7) 50%, transparent 100%);
}
.gal3-num {
  font-family: var(--brand-font);
  font-size: 11px;
  color: rgba(201,168,76,0.52);
  letter-spacing: 0.14em;
  margin-bottom: 2px;
}
.gal3-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.86);
  letter-spacing: 0.05em;
}
.gal3-url {
  font-family: monospace;
  font-size: 9.5px;
  color: rgba(255,255,255,0.24);
  margin-top: 3px;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}
.gal3-slot.is-active .gal3-url { color: rgba(201,168,76,0.48); }

/* ── Reflection canvas ────────────────────────────────────────── */
.gal3-reflect-canvas {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.50;
  filter: blur(1.5px);
  top: 68%;
}

/* ── Floor glow ───────────────────────────────────────────────── */
.gal3-floor-glow {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 56px;
  background: radial-gradient(ellipse at 50% 100%, rgba(201,168,76,0.11) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Drag hint ────────────────────────────────────────────────── */
.gal3-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.16);
  white-space: nowrap;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 760px) {
  .gal3-outer { height: 460px; }
  .gal3-card  { width: 260px; height: 178px; margin-left: -130px; margin-top: -89px; }
}
@media (max-width: 480px) {
  .gal3-outer { height: 390px; }
  .gal3-card  { width: 220px; height: 152px; margin-left: -110px; margin-top: -76px; }
}

/* ── Focus Rail Portfolio ──────────────────────────────────────── */

/* Full-screen section wrapper */
.projects-fs {
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 10;
  content-visibility: auto;
  contain-intrinsic-size: 0 100vh;
}

.fr-outer {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  margin-top: 0;
  background: #060f1a;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  cursor: default;
}

/* Section header overlay — mirrors section-inner positioning */
.fr-header-ov {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: calc(1200px + 104px); /* 1200px content + 52px padding each side */
  padding: 0 52px;
  box-sizing: border-box;
  z-index: 15;
  pointer-events: none;
}

.fr-header-ov .section-heading {
  font-family: var(--serif);
  color: rgba(255,255,255,0.88);
  margin: 6px 0 8px;
}
.fr-header-ov .section-heading::after { display: none; }

.fr-badge {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.65);
}

.fr-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fr-ambient-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(48px) saturate(1.3);
  opacity: 0.18;
  transition: opacity 0.6s ease;
  transform: scale(1.08); /* prevents blur edge bleed */
}

.fr-ambient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #060f1a 0%, rgba(6,15,26,0.65) 55%, rgba(6,15,26,0.18) 100%);
}

/* 3D card rail */
.fr-rail {
  position: absolute;
  top: 160px;
  left: 0;
  right: 0;
  height: 68vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  z-index: 1;
  pointer-events: none;
}

.fr-card {
  position: absolute;
  width: min(580px, 82vw);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0d1b2c;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  transition:
    transform 0.5s cubic-bezier(0.33, 1, 0.68, 1),
    opacity   0.4s ease,
    filter    0.4s ease,
    border-color 0.35s ease,
    box-shadow   0.35s ease;
  pointer-events: all;
  will-change: transform;
}

.fr-card.fr-card-active {
  border-color: rgba(201,168,76,0.38);
  box-shadow:
    0 0 60px rgba(201,168,76,0.07),
    0 24px 64px rgba(0,0,0,0.55);
}

/* Browser chrome */
.fr-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  background: #181818;
  padding: 0 12px;
  flex-shrink: 0;
}

.fr-chrome-dots { display: flex; gap: 4px; flex-shrink: 0; }

.fr-chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.fr-chrome-dot-r { background: #ff5f57; }
.fr-chrome-dot-y { background: #febc2e; }
.fr-chrome-dot-g { background: #28c840; }

.fr-chrome-addr {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #2a2a2a;
  border-radius: 6px;
  padding: 4px 8px;
  overflow: hidden;
  margin: 0 6px;
}

.fr-chrome-addr svg { flex-shrink: 0; opacity: 0.5; }

.fr-chrome-url {
  font-family: monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

/* Screenshot */
.fr-screenshot {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a1628;
}

.fr-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  user-select: none;
  display: block;
  -webkit-user-drag: none;
}

.fr-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.06) 0%, transparent 35%);
  pointer-events: none;
}

.fr-hover-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.fr-card.fr-card-active:hover .fr-hover-hint { opacity: 1; }

.fr-hover-hint-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(201,168,76,0.5);
  background: rgba(6,15,26,0.9);
  color: rgba(201,168,76,1);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 15px;
  border-radius: 100px;
}

/* Info panel */
.fr-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 48px 44px;
  pointer-events: none;
}

.fr-info-text {
  flex: 1;
  max-width: 420px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.fr-meta {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.72);
  margin-bottom: 6px;
}

.fr-title {
  font-family: var(--sans);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  margin: 0 0 6px;
  line-height: 1.1;
}

.fr-desc {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin: 0;
  line-height: 1.65;
}

/* Controls */
.fr-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  pointer-events: all;
}

.fr-nav-group {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(6,15,26,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 4px;
}

.fr-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
  padding: 0;
}

.fr-nav-btn:hover  { background: rgba(255,255,255,0.1); color: white; }
.fr-nav-btn:active { transform: scale(0.9); }

.fr-counter {
  min-width: 44px;
  text-align: center;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.32);
  font-variant-numeric: tabular-nums;
}

.fr-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,1);
  color: #060f1a;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 11px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.fr-cta:hover  { transform: scale(1.05); }
.fr-cta:active { transform: scale(0.95); }

@media (max-width: 900px) {
  .fr-header-ov { padding: 0 24px; top: 24px; }
  .fr-info { padding: 0 24px 32px; }
}

@media (max-width: 760px) {
  .fr-rail  { top: 120px; height: 56vh; min-height: 300px; }
  .fr-info  { flex-direction: column; align-items: flex-start; padding: 0 20px 28px; gap: 10px; }
  .fr-info-text { max-width: 100%; }
  .fr-title { font-size: 22px; }
  .fr-desc  { display: none; }
  .fr-controls { width: 100%; justify-content: space-between; }
  .fr-header-ov .section-heading { font-size: clamp(28px, 6vw, 36px); }
}

@media (max-width: 480px) {
  .fr-outer { min-height: 600px; }
  .fr-rail  { top: 100px; height: 52vh; min-height: 280px; }
  .fr-header-ov { left: 16px; top: 16px; }
}