/* ══════════════════════════════════════════════════════════════
   GLASS UNICORN v4 — Production Stylesheet
   patmalnieks.lv

   Design DNA:
   "Holding a piece of obsidian glass in a dark room,
    lit only by ember light."

   Asymmetric. Volumetric. Cinematic.
   Not a portfolio template. A visual experience.
   ══════════════════════════════════════════════════════════════ */

/* ─── SELF-HOSTED FONTS (GDPR compliant) ─── */
/* Bebas Neue — latin */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/bebas-neue-v16-latin-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bebas Neue — latin-ext */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/bebas-neue-v16-latin-ext-regular.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Outfit — latin (variable, 200-700) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('/fonts/outfit-v15-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit — latin-ext (variable, 200-700) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('/fonts/outfit-v15-latin-ext-variable.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono — latin (variable, 300-500) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-v24-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — latin-ext (variable, 300-500) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-v24-latin-ext-variable.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─── DESIGN TOKENS ─── */
:root {
  /* Backgrounds — warmer charcoal */
  --void: #0d0d12;
  --black: #12121a;
  --surface: #181822;
  --surface-2: #1e1e2a;
  --surface-3: #242432;

  /* Glass effects — enhanced */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-edge: rgba(255, 255, 255, 0.08);
  --glass-frost: rgba(255, 255, 255, 0.06);
  --glass-shine: rgba(255, 255, 255, 0.12);
  --glass-bright: rgba(255, 255, 255, 0.18);

  /* Chromatic depth blobs */
  --blob-amber: rgba(255, 140, 50, 0.15);
  --blob-blue: rgba(80, 120, 200, 0.12);
  --blob-rose: rgba(200, 100, 140, 0.10);
  --blob-warm: rgba(255, 240, 220, 0.08);

  /* Text — unchanged */
  --white: #ede9e1;
  --white-60: rgba(237, 233, 225, 0.6);
  --white-35: rgba(237, 233, 225, 0.35);
  --white-15: rgba(237, 233, 225, 0.15);

  /* Accent — unchanged */
  --ember: #ff6b1a;
  --ember-bright: #ff8f4a;
  --ember-deep: #d45500;
  --ember-glow: rgba(255, 107, 26, 0.12);
  --ember-faint: rgba(255, 107, 26, 0.04);

  /* Typography — unchanged */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Easing & spacing — unchanged */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --pad: clamp(24px, 6vw, 80px);
  --section-gap: clamp(48px, 6vw, 80px);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--ember) var(--void);
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: var(--ember);
  border-radius: 3px;
}

body {
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {

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

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

a {
  color: var(--ember);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

a:hover {
  color: var(--ember-bright);
}



/* ─── PARALLAX LAYERS ─── */
.parallax-depth {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}

.parallax-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.parallax-blob--amber {
  width: 500px;
  height: 500px;
  background: var(--blob-amber);
  top: 10%;
  left: 15%;
}

.parallax-blob--blue {
  width: 450px;
  height: 450px;
  background: var(--blob-blue);
  top: 40%;
  right: 10%;
}

.parallax-blob--rose {
  width: 400px;
  height: 400px;
  background: var(--blob-rose);
  bottom: 15%;
  left: 40%;
}

.parallax-blob--warm {
  width: 550px;
  height: 550px;
  background: var(--blob-warm);
  top: 60%;
  left: 5%;
}

.glass-surface {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  background: rgba(255, 255, 255, 0.03);
}

.glass-surface__traces {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23ede9e1' stroke-width='0.5'%3E%3Cpath d='M0 200h160M240 200h160'/%3E%3Cpath d='M200 0v160M200 240v160'/%3E%3Cpath d='M80 80h80v80M240 80h80v80'/%3E%3Cpath d='M80 240h80v80M240 240h80v80'/%3E%3Cpath d='M160 120h80M160 280h80'/%3E%3Cpath d='M120 160v80M280 160v80'/%3E%3C/g%3E%3Cg fill='%23ff6b1a' opacity='0.3'%3E%3Ccircle cx='160' cy='200' r='2'/%3E%3Ccircle cx='240' cy='200' r='2'/%3E%3Ccircle cx='200' cy='160' r='2'/%3E%3Ccircle cx='200' cy='240' r='2'/%3E%3Ccircle cx='80' cy='80' r='1.5'/%3E%3Ccircle cx='320' cy='80' r='1.5'/%3E%3Ccircle cx='80' cy='320' r='1.5'/%3E%3Ccircle cx='320' cy='320' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  background-repeat: repeat;
}

.glass-surface__traces::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  animation: tracePulse 4s ease-in-out infinite alternate;
  opacity: 0;
}

@keyframes tracePulse {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 0.5;
  }
}

/* Content layer sits above glass */
.nav,
section,
footer,
.marquee,
.ember-line {
  position: relative;
  z-index: 2;
}

/* ─── TYPOGRAPHY ─── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ember);
}

.mono-sm {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-35);
}

/* ─── CONTAINER ─── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─── GLASS CARD ─── */
.glass-card {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 50%, rgba(255, 255, 255, 0.03) 100%);
  background-size: 100px 100px, 100% 100%;
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  border: 1px solid var(--glass-edge);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), border-color 0.5s, box-shadow 0.5s;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine) 20%, var(--glass-bright) 50%, var(--glass-shine) 80%, transparent);
  opacity: 0.8;
  z-index: 2;
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.03) 55%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover {
  border-color: var(--glass-shine);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.5), 0 0 40px -10px var(--ember-glow);
}

.glass-card:hover::after {
  transform: translateX(100%);
}

.glass-card>* {
  position: relative;
  z-index: 2;
}

/* ─── TRAPEZOID BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 42px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  color: var(--ember);
  background: transparent;
  clip-path: polygon(7% 0%, 100% 0%, 93% 100%, 0% 100%);
  transition: all 0.5s var(--ease-out);
  isolation: isolate;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ember-glow), var(--ember-faint));
  border: 1px solid rgba(255, 107, 26, 0.25);
  clip-path: polygon(7% 0%, 100% 0%, 93% 100%, 0% 100%);
  transition: all 0.5s var(--ease-out);
  z-index: -1;
}

.btn:hover {
  color: var(--white);
  transform: translateX(5px);
}

.btn:hover::before {
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.22), rgba(255, 107, 26, 0.08));
  border-color: var(--ember);
  box-shadow: 0 0 40px rgba(255, 107, 26, 0.08);
}

.btn--fill {
  color: var(--void);
}

.btn--fill::before {
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  border-color: var(--ember);
}

.btn--fill:hover {
  color: var(--void);
}

.btn--fill:hover::before {
  background: linear-gradient(135deg, var(--ember-bright), var(--ember));
  box-shadow: 0 0 50px rgba(255, 107, 26, 0.15);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal.vis {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal-left.vis {
  opacity: 1;
  transform: none;
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal-right.vis {
  opacity: 1;
  transform: none;
}

.stagger.vis>* {
  opacity: 1;
  transform: none;
}

.stagger>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.stagger.vis>*:nth-child(1) {
  transition-delay: 0s;
}

.stagger.vis>*:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger.vis>*:nth-child(3) {
  transition-delay: 0.2s;
}

.stagger.vis>*:nth-child(4) {
  transition-delay: 0.3s;
}

.stagger.vis>*:nth-child(5) {
  transition-delay: 0.4s;
}

/* ─── DIVIDER ─── */
.ember-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember-faint), var(--ember-glow), var(--ember-faint), transparent);
  margin: 0 var(--pad);
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  transition: all 0.5s var(--ease-out);
}

.nav--scrolled {
  height: 58px;
  background: rgba(13, 13, 18, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-edge);
}

.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
}

.nav__brand span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 5px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-35);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav__links a:hover {
  color: var(--ember);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ember);
  transition: width 0.4s var(--ease-out);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  padding: 7px 22px !important;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  background: var(--ember) !important;
  color: var(--void) !important;
  font-weight: 600 !important;
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  background: var(--ember-bright) !important;
  color: var(--void) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 9010;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: 0.3s var(--ease-out);
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 18, 0.97);
  backdrop-filter: blur(40px);
  z-index: 9005;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.nav__mobile.open {
  display: flex;
  opacity: 1;
}

.nav__mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--white-60);
  text-decoration: none;
}

.nav__mobile a:hover {
  color: var(--ember);
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }
}

/* ═══════════════════════════════════════════════════════════════
   HERO — THE ENTRANCE
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: min(100vh, 900px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Old .hero__unicorn, .facet, .hero__orb removed — replaced by shard system */

.hero__gridlines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.4;
}

.hero__gridlines .gl {
  position: absolute;
  background: rgba(237, 233, 225, 0.03);
}

.gl--h {
  height: 1px;
  width: 100%;
}

.gl--v {
  width: 1px;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 10;
  padding: 0 var(--pad);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
  animation: slideUp 1s 0.3s var(--ease-out) forwards;
}

.hero__eyebrow::before {
  content: '';
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, var(--ember), transparent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.88;
  letter-spacing: 2px;
  margin-bottom: 8px;
  opacity: 0;
  animation: slideUp 1s 0.45s var(--ease-out) forwards;
}

.hero__title .line-accent {
  display: block;
  font-size: 0.48em;
  letter-spacing: 6px;
  color: var(--ember);
  margin-top: 4px;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 200;
  color: var(--white-60);
  max-width: 480px;
  margin: 28px 0 48px;
  opacity: 0;
  animation: slideUp 1s 0.6s var(--ease-out) forwards;
}

.hero__subtitle strong {
  color: var(--white);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: slideUp 1s 0.75s var(--ease-out) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

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

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: slideUp 1s 1.2s var(--ease-out) forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--ember), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.3;
    transform: scaleY(0.5);
  }
}

@media (max-width: 1000px) {
  .hero__unicorn {
    opacity: 0.3 !important;
    right: -20%;
    width: 80vw;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--glass-edge);
  border-bottom: 1px solid var(--glass-edge);
  user-select: none;
}

.marquee__track {
  display: flex;
  animation: marquee 45s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.06);
  padding: 0 28px;
  flex-shrink: 0;
}

.marquee__track .m-dot {
  color: rgba(255, 107, 26, 0.12);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════════════════════════════
   MANIFESTO
   ═══════════════════════════════════════════════════════════════ */
.manifesto {
  padding: var(--section-gap) 0;
}

.manifesto__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 20px;
  align-items: center;
}

.manifesto__text {
  grid-column: 1 / 6;
  grid-row: 1;
  z-index: 2;
  position: relative;
}

.manifesto__text h2 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: 2px;
  line-height: 0.95;
}

.manifesto__text h2 span {
  color: var(--ember);
}

.manifesto__panel {
  grid-column: 4 / 11;
  grid-row: 1;
  z-index: 1;
  padding: 48px 48px 48px 180px;
  font-size: 1rem;
  font-weight: 300;
  color: var(--white-60);
  line-height: 1.9;
  position: relative;
}

.manifesto__panel .q-mark {
  font-family: var(--font-display);
  font-size: 7rem;
  color: var(--ember);
  opacity: 0.07;
  position: absolute;
  top: 12px;
  left: 140px;
  line-height: 1;
  user-select: none;
}

.manifesto__panel strong {
  color: var(--white);
  font-weight: 500;
}

@media (max-width: 860px) {
  .manifesto__grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .manifesto__panel {
    padding: 36px;
  }

  .manifesto__panel .q-mark {
    left: 16px;
    top: -4px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════ */
.services {
  padding: var(--section-gap) 0;
  position: relative;
}

.services__header {
  margin-bottom: 32px;
}

.services__header h2 {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  letter-spacing: 2px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.services__grid>*:nth-child(1) {
  grid-row: 1 / 3;
  grid-column: 1;
}

.services__grid>*:nth-child(2) {
  grid-column: 2;
  margin-top: 80px;
}

.services__grid>*:nth-child(3) {
  grid-column: 3;
  margin-top: 40px;
  margin-left: 20px;
}

.services__grid>*:nth-child(4) {
  grid-column: 2 / 4;
  margin-top: -10px;
  max-width: 500px;
  justify-self: center;
}

.svc {
  padding: 36px 32px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: transform 0.6s var(--ease-out), border-color 0.5s, box-shadow 0.5s;
}

.svc:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 26, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--ember-faint);
}

.svc__num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(255, 107, 26, 0.06);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.4s;
}

.svc:hover .svc__num {
  color: rgba(255, 107, 26, 0.18);
}

.svc h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 1px;
  margin: 8px 0 12px;
  font-weight: 400;
}

.svc p {
  font-size: 0.85rem;
  color: var(--white-60);
  flex: 1;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .services__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .services__grid>* {
    margin: 0 !important;
    max-width: 100% !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════════════════════════ */
.process {
  padding: var(--section-gap) 0;
  overflow: hidden;
}

.process__header {
  text-align: center;
  margin-bottom: 40px;
}

.process__header h2 {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  letter-spacing: 2px;
}

.process__flow {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 70px);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.proc-step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 32px 36px;
  transition: transform 0.6s var(--ease-out);
}

.proc-step:nth-child(1) {
  transform: translateX(-3%);
}

.proc-step:nth-child(2) {
  transform: translateX(8%);
}

.proc-step:nth-child(3) {
  transform: translateX(-5%);
}

.proc-step:nth-child(4) {
  transform: translateX(12%);
}

.proc-step__num {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--ember);
  opacity: 0.15;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.4s;
}

.proc-step:hover .proc-step__num {
  opacity: 0.5;
}

.proc-step__body h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.proc-step__body p {
  font-size: 0.87rem;
  color: var(--white-60);
  max-width: 440px;
}

.proc-step__body p em {
  color: var(--white);
  font-style: normal;
  font-weight: 400;
}

.process__flow::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 80%;
  background: linear-gradient(to bottom, transparent, var(--ember-faint), var(--ember-glow), var(--ember-faint), transparent);
  left: 50%;
  transform: translateX(-50%) rotate(3deg);
  z-index: 0;
  opacity: 0.4;
}

@media (max-width: 768px) {
  .proc-step:nth-child(n) {
    transform: none;
  }

  .process__flow::before {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════════ */
.stats {
  padding: var(--section-gap) 0;
  perspective: 1000px;
}

.stats__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.stat-card {
  padding: 36px 40px;
  text-align: center;
  min-width: 180px;
  transition: transform 0.6s var(--ease-out);
}

.stat-card:nth-child(1) {
  transform: translateZ(20px) translateY(-10px);
}

.stat-card:nth-child(2) {
  transform: translateZ(-10px) translateY(5px);
}

.stat-card:nth-child(3) {
  transform: translateZ(30px) translateY(-15px);
}

.stat-card:nth-child(4) {
  transform: translateZ(0px) translateY(8px);
}

.stat-card:hover {
  transform: translateZ(40px) translateY(-8px) !important;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--ember);
  line-height: 1;
}

.stat__label {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .stat-card:nth-child(n) {
    transform: none;
  }

  .stats {
    perspective: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TRUST
   ═══════════════════════════════════════════════════════════════ */
.trust {
  padding: var(--section-gap) 0;
}

.trust__title {
  text-align: center;
  color: var(--white-35);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.trust__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.trust__logo {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  transition: all 0.5s var(--ease-out);
}

.trust__logo:hover {
  border-color: rgba(255, 107, 26, 0.2);
  background: var(--ember-faint);
  transform: translateY(-3px);
}

.trust__logo img {
  max-width: 100%;
  max-height: 100%;
  filter: grayscale(1) brightness(0.5);
  opacity: 0.5;
  transition: all 0.5s;
}

.trust__logo:hover img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq {
  padding: var(--section-gap) 0;
}

.faq__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.faq__inner h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.faq__item {
  border-bottom: 1px solid var(--glass-edge);
}

.faq__q {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--white);
  transition: color 0.3s;
  user-select: none;
}

.faq__q:hover {
  color: var(--ember);
}

.faq__icon {
  font-size: 1.2rem;
  color: var(--ember);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out);
}

.faq__item.open .faq__icon {
  transform: rotate(45deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
  font-size: 0.87rem;
  color: var(--white-60);
  line-height: 1.85;
}

.faq__item.open .faq__a {
  max-height: 300px;
  padding-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact {
  padding: var(--section-gap) 0;
}

.contact__grid {
  display: flex;
  gap: 60px;
  align-items: stretch;
}

.contact__left {
  flex: 0 0 38.2%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__right {
  flex: 1;
}

.contact__left h2 {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.contact__left h2 span {
  color: var(--ember);
}

.contact__left p {
  color: var(--white-60);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact__dot {
  width: 5px;
  height: 5px;
  background: var(--ember);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

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

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 300;
  outline: none;
  transition: all 0.3s var(--ease-out);
  -webkit-appearance: none;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: rgba(255, 107, 26, 0.35);
  background: rgba(255, 107, 26, 0.025);
  box-shadow: 0 0 24px var(--ember-faint);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--white-15);
}

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

.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ff6b1a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.form__select option {
  background: var(--surface);
  color: var(--white);
}

@media (max-width: 768px) {
  .contact__grid {
    flex-direction: column;
    gap: 40px;
  }

  .contact__left {
    flex: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: 36px var(--pad);
  border-top: 1px solid var(--glass-edge);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--white-15);
  letter-spacing: 1px;
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 1px;
  color: var(--white-35);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--ember);
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-edge);
  color: var(--white-35);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}

.footer__social a:hover {
  border-color: var(--ember);
  color: var(--ember);
  background: var(--ember-faint);
}



/* ─── PARTICLES ─── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--ember);
  opacity: 0;
  border-radius: 50%;
  animation: particleRise linear infinite;
}

@keyframes particleRise {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  10% {
    opacity: 0.2;
  }

  90% {
    opacity: 0.2;
  }

  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}



/* --- Background Grid --- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.015;
}

.bg-grid .vline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--white);
}

/* --- Background Orbs --- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.03;
}

.bg-orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--ember);
  top: 10%;
  right: -10%;
}

.bg-orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: #1a1aff;
  bottom: 20%;
  left: -5%;
}

.bg-orb:nth-child(3) {
  width: 500px;
  height: 500px;
  background: var(--ember-deep);
  top: 50%;
  left: 40%;
}



/* ═══════════════════════════════════════════════════════════════
   PAGE-SPECIFIC STYLES (for non-homepage pages)
   ═══════════════════════════════════════════════════════════════ */

/* ─── PAGE HERO (used on inner pages) ─── */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 2px;
}

.page-hero p {
  color: var(--white-60);
  max-width: 600px;
  margin-top: 16px;
}

/* ─── PORTFOLIO GRID ─── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.6s;
}

.portfolio-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 3, 5, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

/* ─── FILTER BAR ─── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  color: var(--white-35);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--ember);
  color: var(--ember);
  background: var(--ember-faint);
}

/* ─── MASONRY GALLERY ─── */
.gallery-masonry {
  columns: 3;
  column-gap: 16px;
}

.gallery-masonry>* {
  break-inside: avoid;
  margin-bottom: 16px;
}

@media (max-width: 860px) {
  .gallery-masonry {
    columns: 2;
  }
}

@media (max-width: 500px) {
  .gallery-masonry {
    columns: 1;
  }
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(3, 3, 5, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  color: var(--ember);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.lightbox__close:hover {
  background: var(--ember);
  color: var(--void);
}

/* ─── BLOG LIST ─── */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-item {
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}

.blog-item:hover {
  transform: translateX(8px);
  border-color: rgba(255, 107, 26, 0.2);
}

.blog-item__date {
  flex-shrink: 0;
  text-align: right;
  min-width: 90px;
}

/* ─── CENTERED PAGE (thanks, 404) ─── */
.page-centered {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-gap) var(--pad);
}

.page-centered h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 16px;
}

.page-centered p {
  color: var(--white-60);
  margin-bottom: 32px;
}

/* ─── PRIVACY / LEGAL PAGES ─── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--section-gap) var(--pad);
}

.legal-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--ember);
}

.legal-content p {
  color: var(--white-60);
  margin-bottom: 16px;
}

.legal-content ul {
  color: var(--white-60);
  margin: 0 0 16px 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--ember);
}