/* =========================================================
   ORZU TECH — premium industrial cinematic site
   Palette: Red · White · Dark Navy
   ========================================================= */

:root {
  /* Brand palette */
  --bg: #050b18;
  /* deep industrial navy */
  --bg-2: #0a1628;
  --bg-3: #0f1d33;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);

  --ink: #f5f7fa;
  /* near-white */
  --ink-soft: #d6dde8;
  --ink-dim: #8a96ad;

  --red: #e30613;
  /* Orzu signature red */
  --red-2: #ff2d3a;
  /* hot accent */
  --red-glow: rgba(227, 6, 19, .45);

  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);

  --maxw: 1240px;
  --ease: cubic-bezier(.7, .05, .2, 1);
  --radius: 16px;

  --font-sans: 'Space Grotesk', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: auto
}

html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.55;
  font-weight: 400
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  transform: translateY(-150%);
  z-index: 10000;
  padding: .7rem .95rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.skip-link:focus-visible {
  transform: translateY(0)
}

a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.service-card:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Brand-tinted gradient text */
em {
  font-style: normal;
  background: linear-gradient(120deg, var(--red), var(--red-2) 60%, #ffb1b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* Light atmospheric tint — must NOT obscure the 3D canvas */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(227, 6, 19, .08), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(5, 11, 24, .45), transparent 65%);
}

/* =================== LOADER =================== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}

#loader.hidden {
  opacity: 0;
  visibility: hidden
}

.loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem
}

.loader-logo-img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: .25rem
}

.loader-logo {
  font-weight: 700;
  letter-spacing: .28em;
  font-size: 1.05rem;
  color: var(--ink);
}

.loader-logo span {
  color: var(--red)
}

.loader-bar {
  width: 240px;
  height: 2px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  border-radius: 2px
}

.loader-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  box-shadow: 0 0 12px var(--red-glow);
  transition: width .25s var(--ease);
}

.loader-text {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .28em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* Page background gradient (fixed, behind everything) */
html {
  background:
    radial-gradient(ellipse at 50% 30%, #122144 0%, #050b18 70%) fixed;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/old Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  /* Chrome / Safari / new Edge */
}

/* Subtle red atmospheric layers per scene (kept lightweight) */
.parallax-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden
}

.layer {
  position: absolute;
  inset: -15%;
  will-change: transform;
  mix-blend-mode: screen
}

.layer-bg {
  opacity: .28
}

.layer-mid {
  opacity: .32
}

.layer-fg {
  opacity: .4
}

/* Far background — soft red glow + faint blueprint grid */
.scene-hero .layer-bg {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(227, 6, 19, .14), transparent 60%),
    linear-gradient(rgba(227, 6, 19, .045) 1px, transparent 1px) 0 0/80px 80px,
    linear-gradient(90deg, rgba(227, 6, 19, .045) 1px, transparent 1px) 0 0/80px 80px;
}

.scene-hero .layer-mid {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 45, 58, .18), transparent 50%),
    radial-gradient(circle at 25% 70%, rgba(227, 6, 19, .12), transparent 45%);
}

.scene-hero .layer-fg {
  background:
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, .06), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255, 45, 58, .08), transparent 25%);
}

.scene-factory .layer-bg {
  background:
    linear-gradient(180deg, rgba(15, 29, 51, .5), transparent),
    linear-gradient(rgba(227, 6, 19, .04) 1px, transparent 1px) 0 0/100px 100px,
    linear-gradient(90deg, rgba(227, 6, 19, .04) 1px, transparent 1px) 0 0/100px 100px;
}

.scene-factory .layer-mid {
  background: radial-gradient(ellipse at 30% 70%, rgba(227, 6, 19, .16), transparent 55%)
}

.scene-factory .layer-fg {
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .05), transparent 40%)
}

/* =================== NAV =================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2rem;
  background: linear-gradient(180deg, rgba(5, 11, 24, .78), rgba(5, 11, 24, .0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s;
}

.nav.scrolled {
  background: rgba(5, 11, 24, .88);
  border-bottom-color: var(--line);
}

.brand {
  font-weight: 700;
  letter-spacing: .22em;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .6rem
}

.brand span {
  color: var(--red)
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain
}

.nav nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  font-size: .88rem
}

.nav nav a {
  color: var(--ink-soft);
  transition: color .25s
}

.nav nav a:hover {
  color: var(--red-2)
}

.nav .btn-ghost {
  padding: .55rem 1rem
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .03);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--ink-soft);
  border-radius: 2px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: rgba(255, 255, 255, .05)
}

.scroll-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  box-shadow: 0 0 8px var(--red-glow);
}

/* =================== BUTTONS =================== */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .05em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--red), var(--red-2));
  color: #fff;
  box-shadow: 0 10px 28px -10px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px var(--red-glow)
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, .03);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: #fff;
  background: rgba(227, 6, 19, .08)
}

/* =================== LAYOUT =================== */
main {
  position: relative;
  z-index: 2
}

.scene {
  position: relative;
  min-height: 100vh;
  padding: 7rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.content-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem
}

.content-top {
  margin-bottom: 3.5rem
}

.content-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: start
}

/* =================== TYPOGRAPHY =================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 1.2rem;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--red-2)
}

h1.title {
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
}

.title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .05em
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .55rem;
  letter-spacing: -.005em;
}

h4 {
  font-size: .74rem;
  font-family: var(--font-mono);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: .7rem;
}

h5 {
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1rem;
}

p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65
}

.lede {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  max-width: 640px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.content-center .lede {
  margin-left: auto;
  margin-right: auto
}

.cta-row {
  display: flex;
  gap: .8rem;
  margin-top: 1.4rem;
  flex-wrap: wrap
}

.content-center .cta-row {
  justify-content: center
}

/* =================== ACT 1 — HERO =================== */
.scene-hero {
  padding-top: 9rem
}

.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  opacity: .8;
  z-index: 5;
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, var(--red));
  animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue {
  0% {
    transform: scaleY(0);
    transform-origin: top
  }

  50% {
    transform: scaleY(1);
    transform-origin: top
  }

  51% {
    transform-origin: bottom
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom
  }
}

/* =================== ACT 2 — DEEP DIVE / STATS =================== */
.scene-dive {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: center;
}

.scene-dive .content-left {
  grid-column: 2 / span 5;
  max-width: 560px
}

.scene-dive .content-right {
  grid-column: 8 / span 4
}

.pinned-stat {
  display: flex;
  flex-direction: column;
  gap: 2.25rem
}

.stat {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--red);
  padding-left: 1.25rem;
}

.stat .num {
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(120deg, #fff 0%, var(--red-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat small {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: .6rem;
}

/* =================== ACT 3 — SERVICES =================== */
.services-grid {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 3;
}

.service-card {
  position: relative;
  padding: 1.9rem 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .45s var(--ease), border-color .35s, background .35s, box-shadow .35s;
  will-change: transform;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(227, 6, 19, .18), transparent 55%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1
}

.service-card:hover {
  border-color: rgba(227, 6, 19, .45);
  box-shadow: 0 24px 48px -28px rgba(227, 6, 19, .45);
}

.card-num {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .25em;
  color: var(--red-2);
  margin-bottom: 1.1rem;
}

.service-card h3 {
  margin-bottom: .5rem
}

.service-card p {
  font-size: .94rem;
  color: var(--ink-soft)
}

/* =================== ACT 4 — ABOUT =================== */
.scene-globe {
  padding-top: 9rem;
  padding-bottom: 9rem
}

.split-r {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding-top: .5rem
}

.mv {
  padding-left: 1.25rem;
  border-left: 2px solid var(--red)
}

/* =================== VOICES =================== */
.scene-voices {
  padding-top: 5rem;
  padding-bottom: 5rem
}

.quotes {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

blockquote {
  position: relative;
  padding: 2rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

blockquote::before {
  content: '"';
  position: absolute;
  top: .4rem;
  left: 1rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--red);
  opacity: .35;
  font-family: Georgia, serif;
}

blockquote p {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  font-weight: 400
}

blockquote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .22em;
  color: var(--red-2);
  text-transform: uppercase;
}

/* =================== CTA =================== */
.scene-cta {
  min-height: 90vh
}

.cta-title {
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.02
}

/* =================== FOOTER =================== */
footer {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem 2rem;
  border-top: 1px solid var(--line);
  background: rgba(5, 11, 24, .75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.foot-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
}

.foot-grid>div p {
  margin-top: .85rem;
  max-width: 380px;
  font-size: .92rem;
  color: var(--ink-dim)
}

.foot-grid a {
  display: block;
  font-size: .9rem;
  color: var(--ink-dim);
  margin-bottom: .5rem;
  transition: color .25s
}

.foot-grid a:hover {
  color: var(--red-2)
}

.foot-bottom {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .76rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  letter-spacing: .18em;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1100px) {
  .content-split {
    grid-template-columns: 1fr;
    gap: 2.5rem
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 760px) {
  .nav {
    padding: 1rem 1.25rem
  }

  .nav-toggle {
    display: inline-flex
  }

  .nav nav {
    position: absolute;
    top: calc(100% + .5rem);
    left: 1rem;
    right: 1rem;
    gap: .45rem;
    font-size: .82rem;
    flex-direction: column;
    align-items: stretch;
    padding: .7rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(6, 12, 24, .96);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }

  .nav.nav-open nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav nav a:not(.btn-ghost) {
    display: block
  }

  .nav nav a {
    padding: .6rem .72rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
  }

  .nav nav .btn-ghost {
    margin-top: .3rem;
    justify-content: center;
  }

  .scene {
    padding: 6rem 1.25rem 4rem
  }

  .scene-dive {
    display: flex;
    flex-direction: column;
    gap: 2.5rem
  }

  .scene-dive .content-left,
  .scene-dive .content-right {
    max-width: 100%;
    width: 100%;
    margin: 0
  }

  .services-grid {
    grid-template-columns: 1fr
  }

  .quotes {
    grid-template-columns: 1fr
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .pinned-stat {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem
  }

  .stat {
    flex: 1 1 40%
  }

  .scene-hero {
    padding-top: 7.5rem
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important
  }
}