/* ============================================================
   Apex Solutions — Editorial Luxury Theme
   Aesthetic: Deep ink black, warm gold, sharp serif display,
   generous negative space, subtle grain.
   ============================================================ */

:root {
  /* Palette — warm, restrained, expensive */
  --ink:        #0a0a0c;
  --ink-soft:   #111114;
  --ink-line:   #1d1d22;
  --bone:       #f5f1ea;
  --bone-soft:  #ebe5da;
  --bone-mute:  #a8a299;
  --bone-deep:  #6b6660;
  --gold:       #c9a35c;
  --gold-soft:  #d9b97a;
  --gold-deep:  #8a6f3a;
  --rust:       #b85c3a;

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max: 1340px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   Grain texture overlay
   ============================================================ */
.grain {
  position: fixed; inset: 0; pointer-events: none;
  z-index: 1000; opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: all 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); }
.brand-mark {
  width: 32px; height: 32px;
  color: var(--gold);
  display: grid; place-items: center;
}
.brand-mark svg { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 144;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-deep);
  margin-top: 4px;
}

.site-nav {
  display: flex;
  gap: 38px;
  justify-content: center;
}
.site-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--bone-mute);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.site-nav a:hover { color: var(--bone); }
.site-nav a.is-active { color: var(--bone); }
.site-nav a.is-active::after {
  content: ''; position: absolute;
  left: 50%; bottom: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}

.header-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  padding: 11px 20px;
  border: 1px solid rgba(201, 163, 92, 0.4);
  border-radius: 100px;
  color: var(--bone);
  transition: all 0.3s var(--ease);
}
.header-cta svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.header-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.header-cta:hover svg { transform: translateX(3px); }

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 1.5px; width: 22px;
  background: var(--bone);
  transition: all 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 980px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { grid-template-columns: 1fr auto; }

  .site-nav.is-open {
    display: flex;
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 60px var(--pad);
    gap: 28px;
    align-items: flex-start;
    z-index: 99;
  }
  .site-nav.is-open a {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--bone);
  }
}

/* ============================================================
   Typography utilities
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: var(--gold);
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--bone);
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--bone-mute);
  max-width: 60ch;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px var(--pad) 80px;
  overflow: hidden;
}

/* Decorative background — gradient + lines */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(201, 163, 92, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(184, 92, 58, 0.06), transparent 70%),
    rgba(10, 10, 12, 0.45);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 80%);
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-deep);
  border-top: 1px solid var(--ink-line);
  padding-top: 24px;
}

.hero-headline {
  font-size: clamp(48px, 9vw, 132px);
  max-width: 14ch;
}

.hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: rise 1s var(--ease-out) forwards;
}
.hero-headline .word:nth-child(1) { animation-delay: 0.1s; }
.hero-headline .word:nth-child(2) { animation-delay: 0.18s; }
.hero-headline .word:nth-child(3) { animation-delay: 0.26s; }
.hero-headline .word:nth-child(4) { animation-delay: 0.34s; }
.hero-headline .word:nth-child(5) { animation-delay: 0.42s; }
.hero-headline .word:nth-child(6) { animation-delay: 0.50s; }
.hero-headline .word:nth-child(7) { animation-delay: 0.58s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 880px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 40px; }
}

.hero-lede {
  max-width: 48ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--bone-mute);
  opacity: 0;
  animation: rise 1s var(--ease-out) forwards 0.7s;
}
.hero-lede strong { color: var(--bone); font-weight: 500; }

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s var(--ease-out) forwards 0.85s;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn-primary {
  background: var(--bone);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(201, 163, 92, 0.6); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  border: 1px solid var(--ink-line);
  color: var(--bone);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* Hero floating index numbers */
.hero-index {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--bone-deep);
  text-transform: uppercase;
}
.hero-index.top-right { top: 140px; right: var(--pad); }
.hero-index.bottom-left { bottom: 32px; left: var(--pad); writing-mode: vertical-rl; transform: rotate(180deg); }

@media (max-width: 880px) {
  .hero-index { display: none; }
}

/* Scrolling marquee at hero bottom */
.marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  overflow: hidden;
  border-top: 1px solid var(--ink-line);
  background: rgba(10, 10, 12, 0.4);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-deep);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee-track span::after {
  content: '◆';
  color: var(--gold);
  font-size: 8px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   Sections — generic
   ============================================================ */
.section {
  padding: clamp(80px, 12vw, 160px) var(--pad);
  position: relative;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section.alt {
  background: rgba(17, 17, 20, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink-line);
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
}
.section-head .eyebrow { align-self: start; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 144;
}
.section-head h2 em {
  font-style: italic;
  color: var(--gold);
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
}

/* ============================================================
   Sectors strip
   ============================================================ */
.sectors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.sector {
  padding: 36px 24px;
  border-right: 1px solid var(--ink-line);
  text-align: center;
  transition: background 0.3s var(--ease);
}
.sector:last-child { border-right: none; }
.sector:hover { background: var(--ink-soft); }
.sector-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.sector-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin-top: 12px;
  font-variation-settings: 'opsz' 144;
}
@media (max-width: 880px) {
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .sector { border-bottom: 1px solid var(--ink-line); }
  .sector:nth-child(even) { border-right: none; }
}

/* ============================================================
   Featured work
   ============================================================ */
.work-list {
  display: flex;
  flex-direction: column;
}
.work-item {
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr 200px;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--ink-line);
  position: relative;
  transition: all 0.4s var(--ease);
}
.work-item:last-child { border-bottom: 1px solid var(--ink-line); }
.work-item:hover { padding-left: 24px; }
.work-item:hover .work-name { color: var(--gold); }
.work-item:hover .work-arrow { background: var(--gold); color: var(--ink); transform: rotate(-45deg); }

.work-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bone-deep);
  letter-spacing: 0.15em;
}
.work-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
  font-variation-settings: 'opsz' 144;
}
.work-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.work-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-mute);
  padding: 6px 12px;
  border: 1px solid var(--ink-line);
  border-radius: 100px;
}
.work-arrow {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  display: grid; place-items: center;
  justify-self: end;
  transition: all 0.4s var(--ease);
}
.work-arrow svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .work-item {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }
  .work-num { grid-column: 1; }
  .work-arrow { grid-row: 1; grid-column: 2; width: 44px; height: 44px; }
  .work-name { grid-column: 1 / -1; }
  .work-tags { grid-column: 1 / -1; }
}

/* ============================================================
   Packages
   ============================================================ */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .packages { grid-template-columns: 1fr; }
}

.pkg {
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  padding: 40px;
  position: relative;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.pkg:hover {
  border-color: rgba(201, 163, 92, 0.35);
  transform: translateY(-4px);
}
.pkg::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(201, 163, 92, 0.3), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.pkg:hover::before { opacity: 1; }

.pkg-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  font-variation-settings: 'opsz' 144;
}
.pkg-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-deep);
  margin: 24px 0 12px;
}
.pkg-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
}
.pkg-desc {
  margin: 20px 0 28px;
  color: var(--bone-mute);
  font-size: 14.5px;
  line-height: 1.6;
}
.pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
}
.pkg-features li {
  font-size: 14px;
  color: var(--bone);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pkg-features li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  flex-shrink: 0;
}
.pkg-best {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
  font-size: 13px;
  color: var(--bone-deep);
  line-height: 1.5;
}
.pkg-best strong { color: var(--gold); font-weight: 500; }

/* ============================================================
   Quote / pull-quote
   ============================================================ */
.quote-block {
  padding: clamp(80px, 14vw, 180px) var(--pad);
  text-align: center;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin: 0 auto;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.quote-block blockquote em {
  font-style: italic;
  color: var(--gold);
}
.quote-block cite {
  display: block;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-deep);
  font-style: normal;
}

/* ============================================================
   CTA section
   ============================================================ */
.cta-section {
  padding: clamp(80px, 12vw, 160px) var(--pad);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(201, 163, 92, 0.12), transparent 60%),
    var(--ink-soft);
  border-top: 1px solid var(--ink-line);
}
.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
}
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 144;
}
.cta-headline em { font-style: italic; color: var(--gold); }
.cta-side {
  display: flex; flex-direction: column;
  gap: 24px;
  padding-left: 32px;
  border-left: 1px solid var(--ink-line);
}
@media (max-width: 880px) {
  .cta-side { padding-left: 0; padding-top: 32px; border-left: none; border-top: 1px solid var(--ink-line); }
}

.contact-line {
  display: flex; flex-direction: column;
  gap: 4px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-deep);
}
.contact-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--bone);
  font-variation-settings: 'opsz' 144;
  transition: color 0.3s var(--ease);
}
.contact-value:hover { color: var(--gold); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  padding: 80px var(--pad) 32px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--ink-line);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-mark { display: flex; flex-direction: column; gap: 20px; }
.footer-logo {
  width: 40px; height: 40px;
  color: var(--gold);
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--bone-mute);
  line-height: 1.4;
  font-variation-settings: 'opsz' 144;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 8px;
}
.footer-col a, .footer-col span {
  font-size: 14px;
  color: var(--bone-mute);
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--bone-deep);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-status { display: flex; align-items: center; gap: 10px; }
.footer-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  50% { opacity: 0.5; }
}

/* ============================================================
   Page header (non-home pages)
   ============================================================ */
.page-header {
  padding: 180px var(--pad) 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-line);
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(201, 163, 92, 0.08), transparent 60%);
}
.page-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-top: 32px;
  font-variation-settings: 'opsz' 144;
}
.page-header h1 em {
  font-style: italic;
  color: var(--gold);
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
}
.page-header .lede {
  margin-top: 40px;
  max-width: 56ch;
}

/* ============================================================
   Case study cards (Work page)
   ============================================================ */
.case-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.case-card:hover {
  border-color: rgba(201, 163, 92, 0.35);
}
@media (max-width: 980px) {
  .case-card { grid-template-columns: 1fr; }
}

.case-visual {
  position: relative;
  background: var(--ink);
  min-height: 420px;
  display: grid; place-items: center;
  padding: 40px;
  overflow: hidden;
}
.case-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 163, 92, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 163, 92, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 90%);
}

/* Mock dashboard visual */
.mock-dashboard {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  padding: 18px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.mock-bar {
  display: flex; gap: 6px; margin-bottom: 16px;
}
.mock-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-line);
}
.mock-bar span:first-child { background: var(--rust); }
.mock-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.mock-line {
  height: 8px; border-radius: 2px;
  background: var(--ink-line);
}
.mock-line.gold { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.mock-line.long { flex: 1; }
.mock-line.short { width: 40%; }
.mock-line.tiny { width: 24px; }
.mock-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 14px 0;
}
.mock-stat {
  padding: 12px 10px;
  background: var(--ink);
  border-radius: 3px;
  border: 1px solid var(--ink-line);
}
.mock-stat-val {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
}
.mock-stat-lbl {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--bone-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}
.mock-chart {
  height: 80px;
  background: var(--ink);
  border-radius: 3px;
  border: 1px solid var(--ink-line);
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  gap: 4px;
}
.mock-chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--gold-deep), var(--gold));
  border-radius: 1px;
  opacity: 0.7;
}

/* Mock phone visual */
.mock-phone {
  width: 200px;
  height: 380px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
  position: relative;
}
.mock-phone::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px;
  background: var(--ink);
  border-radius: 4px;
}
.mock-phone-screen {
  height: 100%;
  background: var(--ink);
  border-radius: 14px;
  padding: 20px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-body {
  padding: 48px;
  display: flex; flex-direction: column;
}
.case-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 16px;
}
.case-kicker .sep { color: var(--bone-deep); }
.case-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
  font-variation-settings: 'opsz' 144;
}
.case-desc {
  color: var(--bone-mute);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.case-desc h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 8px;
  margin-top: 20px;
}
.case-desc h4:first-child { margin-top: 0; }

.case-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
}
.case-features li {
  font-size: 13.5px;
  color: var(--bone);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.case-features li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .case-features { grid-template-columns: 1fr; }
  .case-body { padding: 32px; }
}

.case-impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--ink-line);
}
.impact-stat .val {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  font-variation-settings: 'opsz' 144;
}
.impact-stat .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-deep);
  margin-top: 10px;
  line-height: 1.4;
}

.case-badge {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 100px;
  padding: 6px 12px;
}

/* ============================================================
   Approach / process steps
   ============================================================ */
.process-list {
  display: flex;
  flex-direction: column;
}
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr 1.5fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--ink-line);
}
.process-step:last-child { border-bottom: 1px solid var(--ink-line); }
@media (max-width: 880px) {
  .process-step { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
}
.process-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  font-variation-settings: 'opsz' 144;
}
.process-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
}
.process-desc {
  color: var(--bone-mute);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ============================================================
   Contact form
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.info-block h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 12px;
}
.info-block p {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--bone);
  line-height: 1.3;
  font-variation-settings: 'opsz' 144;
}
.info-block a {
  color: var(--bone);
  transition: color 0.3s var(--ease);
}
.info-block a:hover { color: var(--gold); }
.info-block .muted {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--bone-mute);
  margin-top: 4px;
}

.contact-form {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.form-row .form-field { margin-bottom: 0; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-deep);
  margin-bottom: 10px;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-line);
  padding: 12px 0;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.form-field textarea {
  resize: vertical;
  min-height: 100px;
}
.form-field select { cursor: pointer; }
.form-field select option { background: var(--ink-soft); color: var(--bone); }
.form-submit {
  width: 100%;
  padding: 18px;
  background: var(--bone);
  color: var(--ink);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  transition: all 0.3s var(--ease);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
}
.form-submit:hover { background: var(--gold); }
.form-submit svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.form-submit:hover svg { transform: translateX(4px); }

.form-notice {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #86efac;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 14px;
}
.form-notice.error {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.25);
  color: #fca5a5;
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PORTFOLIO 3D ANIMATED HERO SECTION
   Awwwards / Atelier tier 3D interactive hero
   ============================================================ */
.portfolio-hero-3d {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 130px var(--pad) 40px;
  background: radial-gradient(ellipse 90% 60% at 75% 25%, rgba(20, 20, 26, 0.95), #0a0a0c 70%);
  border-bottom: 1px solid var(--ink-line);
  overflow: hidden;
  box-sizing: border-box;
}

/* WebGL Background Canvas */
.portfolio-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

/* Ambient glow & grid overlays */
.hero-3d-ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: 
    radial-gradient(circle 600px at 70% 40%, rgba(201, 163, 92, 0.12), transparent 70%),
    radial-gradient(circle 500px at 20% 70%, rgba(201, 163, 92, 0.05), transparent 60%);
}

.hero-3d-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image:
    linear-gradient(rgba(201, 163, 92, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 163, 92, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 25%, transparent 85%);
}

/* Top bar controls */
.hero-3d-topbar {
  position: relative;
  z-index: 10;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-3d-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(14, 14, 18, 0.82);
  border: 1px solid rgba(201, 163, 92, 0.22);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--bone-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse-beacon 2s infinite ease-in-out;
}

@keyframes pulse-beacon {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px var(--gold); }
  50% { transform: scale(1.35); opacity: 0.6; box-shadow: 0 0 14px var(--gold); }
}

.hero-3d-engine-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 8px 5px 16px;
  background: rgba(14, 14, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--bone-mute);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-3d-engine-badge strong {
  color: var(--gold-soft);
  font-weight: 500;
}

.engine-icon {
  color: var(--gold);
  font-size: 13px;
  animation: spin-slow 18s linear infinite;
  display: inline-block;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.engine-mode-pills {
  display: flex;
  gap: 4px;
}

.mode-pill {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--bone-deep);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}

.mode-pill:hover {
  color: var(--bone);
  border-color: rgba(201, 163, 92, 0.3);
}

.mode-pill.active {
  background: rgba(201, 163, 92, 0.16);
  border-color: var(--gold);
  color: var(--gold-soft);
  box-shadow: 0 0 12px rgba(201, 163, 92, 0.2);
}

/* Main Container Grid */
.portfolio-hero-container {
  position: relative;
  z-index: 10;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  flex: 1;
}

/* Left: Editorial Content */
.portfolio-hero-content {
  display: flex;
  flex-direction: column;
}

.hero-category-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-category-tag .tag-hash {
  opacity: 0.6;
}

.portfolio-hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.8vw, 84px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--bone);
  font-variation-settings: 'opsz' 144;
}

.hero-title-accent {
  font-style: italic;
  color: var(--gold);
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
  text-shadow: 0 0 40px rgba(201, 163, 92, 0.28);
}

.portfolio-hero-lede {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.68;
  color: var(--bone-mute);
  max-width: 52ch;
  margin-bottom: 34px;
}

/* Metric Strip */
.hero-metrics-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 24px;
  background: rgba(14, 14, 18, 0.65);
  border: 1px solid rgba(201, 163, 92, 0.16);
  border-radius: 6px;
  max-width: 540px;
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
}

.hero-metric-item .metric-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--gold-soft);
  line-height: 1;
}

.hero-metric-item .metric-desc {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-deep);
  margin-top: 5px;
}

.hero-metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(201, 163, 92, 0.15);
}

/* Action Buttons */
.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  box-shadow: 0 10px 30px -10px rgba(201, 163, 92, 0.5);
}

.hero-explore-btn:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(201, 163, 92, 0.6);
}

.hero-explore-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.hero-explore-btn:hover svg {
  transform: translateY(3px);
}

.hero-consult-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid rgba(201, 163, 92, 0.35);
  border-radius: 100px;
  color: var(--bone);
  font-size: 13.5px;
  transition: all 0.3s var(--ease);
}

.hero-consult-btn:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(201, 163, 92, 0.08);
}

.hero-consult-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.hero-consult-btn:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   RIGHT COLUMN: 3D HOLOGRAPHIC PERSPECTIVE STAGE
   ============================================================ */
.portfolio-hero-stage-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stage-3d-scene {
  perspective: 1400px;
  width: 100%;
  max-width: 510px;
  position: relative;
  padding: 30px 10px;
}

.stage-3d-card {
  position: relative;
  transform-style: preserve-3d;
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.94), rgba(12, 12, 16, 0.97));
  border: 1px solid rgba(201, 163, 92, 0.32);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 
    0 35px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(201, 163, 92, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  will-change: transform;
  transition: border-color 0.4s ease;
}

.stage-3d-card:hover {
  border-color: rgba(201, 163, 92, 0.55);
}

/* Specular sheen glare layer */
.card-specular-glare {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

/* Stage Header & Tabs */
.stage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 163, 92, 0.12);
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.stage-window-dots {
  display: flex;
  gap: 6px;
}

.stage-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-line);
}

.stage-window-dots span:first-child {
  background: #d9534f;
}

.stage-window-dots span:nth-child(2) {
  background: var(--gold);
}

.stage-window-dots span:nth-child(3) {
  background: #5cb85c;
}

.stage-tabs-nav {
  display: flex;
  gap: 6px;
  background: rgba(10, 10, 12, 0.85);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(201, 163, 92, 0.15);
}

.stage-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--bone-mute);
  transition: all 0.25s var(--ease);
}

.stage-tab-btn .tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--bone-deep);
  transition: all 0.25s;
}

.stage-tab-btn:hover {
  color: var(--bone);
}

.stage-tab-btn.active {
  background: rgba(201, 163, 92, 0.18);
  color: var(--gold-soft);
  font-weight: 500;
}

.stage-tab-btn.active .tab-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}

.stage-live-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.85;
}

/* Case preview panels */
.stage-case-panel {
  display: none;
  flex-direction: column;
  animation: fadeIn 0.35s var(--ease);
}

.stage-case-panel.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.stage-panel-meta {
  margin-bottom: 16px;
}

.stage-panel-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.stage-panel-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.stage-panel-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--bone-deep);
  letter-spacing: 0.08em;
}

/* Visualization inside 3D Card */
.stage-vis-container {
  background: rgba(10, 10, 12, 0.88);
  border: 1px solid rgba(201, 163, 92, 0.14);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.vis-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.vis-metric-box {
  background: rgba(18, 18, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
  transition: transform 0.25s ease;
}

.vis-metric-box.gold-border {
  border-color: rgba(201, 163, 92, 0.3);
  background: rgba(201, 163, 92, 0.06);
}

.vis-m-val {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--gold-soft);
  line-height: 1.1;
}

.vis-m-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-deep);
  margin-top: 4px;
}

/* Charts */
.vis-chart-wrapper {
  margin-bottom: 14px;
  background: rgba(14, 14, 18, 0.6);
  border-radius: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.vis-chart-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--bone-deep);
  margin-bottom: 10px;
}

.live-blink {
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-blink::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-beacon 1.4s infinite ease-in-out;
}

.vis-bars-stream {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  padding: 4px 0;
}

.stream-bar {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(to top, rgba(138, 111, 58, 0.4), var(--gold));
  border-radius: 2px;
  transition: height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 8px rgba(201, 163, 92, 0.2);
}

/* CRM Funnel in 3D Card */
.vis-funnel-wrapper {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}

.funnel-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.funnel-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--bone-mute);
}

.funnel-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.funnel-fill {
  height: 100%;
  background: rgba(201, 163, 92, 0.5);
  border-radius: 3px;
  transition: width 0.8s ease;
}

.funnel-fill.gold {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  box-shadow: 0 0 8px rgba(201, 163, 92, 0.4);
}

/* Status strip */
.vis-status-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.status-indicator-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--bone-mute);
}

.tiny-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tiny-dot.ok {
  background: #5cb85c;
  box-shadow: 0 0 6px #5cb85c;
}

.tiny-dot.alert {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}

/* Panel Footer & link */
.stage-panel-footer {
  display: flex;
  justify-content: flex-end;
}

.stage-inspect-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
  transition: all 0.25s var(--ease);
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(201, 163, 92, 0.08);
  border: 1px solid rgba(201, 163, 92, 0.2);
}

.stage-inspect-link:hover {
  background: rgba(201, 163, 92, 0.16);
  border-color: var(--gold);
  transform: translateX(3px);
}

.stage-inspect-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s;
}

.stage-inspect-link:hover svg {
  transform: translateX(3px);
}

/* Floating 3D Holographic Badges (translateZ) */
.floating-badge {
  position: absolute;
  z-index: 25;
  background: rgba(14, 14, 18, 0.94);
  border: 1px solid rgba(201, 163, 92, 0.45);
  border-radius: 9px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(201, 163, 92, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  transition: transform 0.1s linear;
}

.floating-badge .f-icon {
  font-size: 13px;
  color: var(--gold);
}

.floating-badge .f-text {
  display: flex;
  flex-direction: column;
}

.floating-badge .f-text strong {
  font-size: 11px;
  color: var(--bone);
  font-weight: 500;
  line-height: 1.2;
}

.floating-badge .f-text span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--bone-deep);
  margin-top: 2px;
}

/* Badge positions */
.badge-top-right {
  top: -18px;
  right: -16px;
  transform: translateZ(55px);
}

.badge-bottom-left {
  bottom: -22px;
  left: -20px;
  transform: translateZ(65px);
}

.badge-side-pulse {
  top: 48%;
  right: -18px;
  transform: translateZ(45px);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold-soft);
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(14, 14, 18, 0.94);
  border: 1px solid rgba(201, 163, 92, 0.45);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(201, 163, 92, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse-beacon 1.6s infinite ease-in-out;
}

/* Bottom Scroll Hint */
.hero-3d-scroll-hint {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 30px;
}

.scroll-hint-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--bone-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.scroll-hint-link:hover {
  color: var(--gold);
}

.mouse-icon {
  width: 18px;
  height: 30px;
  border: 1.5px solid rgba(201, 163, 92, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.mouse-icon .wheel {
  width: 3px;
  height: 6px;
  background: var(--gold);
  border-radius: 2px;
  animation: mouse-scroll 1.8s infinite ease-in-out;
}

@keyframes mouse-scroll {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(9px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Target card glow when jumped from hero */
.targeted-glow {
  animation: targetPulse 1.6s ease-out;
}

@keyframes targetPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 163, 92, 0.7);
    border-color: var(--gold);
  }
  50% {
    box-shadow: 0 0 45px 8px rgba(201, 163, 92, 0.35);
    border-color: var(--gold-soft);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 163, 92, 0);
  }
}

/* Responsive queries */
@media (max-width: 1100px) {
  .portfolio-hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .portfolio-hero-stage-wrapper {
    margin-top: 10px;
  }
  .badge-top-right {
    right: 0px;
    top: -14px;
  }
  .badge-bottom-left {
    left: 0px;
    bottom: -16px;
  }
  .badge-side-pulse {
    display: none;
  }
}

@media (max-width: 768px) {
  .portfolio-hero-3d {
    padding: 110px var(--pad) 30px;
    min-height: auto;
  }
  .hero-3d-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-metrics-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }
  .hero-metric-divider {
    width: 100%;
    height: 1px;
  }
  .stage-3d-scene {
    padding: 20px 0;
  }
  .stage-3d-card {
    padding: 16px;
  }
  .stage-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .stage-live-badge {
    display: none;
  }
  .floating-badge {
    display: none;
  }
}

/* ============================================================
   GLOBAL 3D ANIMATED BACKGROUND CANVAS
   ============================================================ */
.global-3d-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  will-change: transform;
}

/* Ensure all page content layers above the global 3D canvas */
.site-header,
.hero,
.section,
.cta-section,
.page-header,
.site-footer,
.portfolio-hero-3d {
  position: relative;
  z-index: 2;
}

/* ============================================================
   CUSTOM INTERACTIVE CURSOR
   Awwwards luxury atelier cursor with dual-element physics
   ============================================================ */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 163, 92, 0.9), 0 0 4px #ffffff;
  pointer-events: none;
  z-index: 99999;
  transform: translate3d(-100px, -100px, 0);
  margin: -3px 0 0 -3px;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.3s ease, background 0.2s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-cursor-dot.is-hovered {
  transform: scale(0.6);
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff;
}

.custom-cursor-dot.is-clicking {
  transform: scale(1.6);
  background: var(--gold-soft);
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 163, 92, 0.55);
  background: rgba(201, 163, 92, 0.03);
  box-shadow: 0 0 15px rgba(201, 163, 92, 0.12);
  pointer-events: none;
  z-index: 99998;
  transform: translate3d(-100px, -100px, 0);
  margin: -18px 0 0 -18px;
  opacity: 0;
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  will-change: transform, opacity;
  transition: 
    width 0.28s var(--ease-out),
    height 0.28s var(--ease-out),
    margin 0.28s var(--ease-out),
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.3s ease;
}

.custom-cursor-ring.is-hovered {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-color: rgba(201, 163, 92, 0.95);
  background: rgba(201, 163, 92, 0.14);
  box-shadow: 0 0 24px rgba(201, 163, 92, 0.4), inset 0 0 12px rgba(201, 163, 92, 0.1);
}

.custom-cursor-ring.is-clicking {
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.28);
  box-shadow: 0 0 28px rgba(201, 163, 92, 0.6);
}

.custom-cursor-ring.is-text {
  width: 4px;
  height: 28px;
  border-radius: 2px;
  margin: -14px 0 0 -2px;
  border: none;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

/* Hide native cursor only on hover-capable fine pointer devices */
@media (hover: hover) and (pointer: fine) {
  body, 
  a, 
  button, 
  input, 
  textarea, 
  select, 
  .btn, 
  .case-card, 
  .work-item, 
  .sector,
  .mode-pill,
  .stage-tab-btn,
  .header-cta,
  .brand,
  .nav-toggle {
    cursor: none !important;
  }
}

/* Disable custom cursor entirely on touch devices */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

