/* ============================================================
   UNREZ STUDIO — Design System
   Apple-level dark aesthetic · Orange amber accent
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap');

/* ── Custom Font ── */
@font-face {
  font-family: 'Unrez';
  src: url('../fonts/UnrezRegular.woff2') format('woff2');
  font-display: swap;
}

/* ══════════════════════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES
   ══════════════════════════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg:         #080808;
  --surface:    #101010;
  --surface-2:  #181818;
  --surface-3:  #222222;

  /* Text */
  --text:       #f0f0f0;
  --text-2:     #999999;
  --text-3:     #444444;

  /* Accent — warm amber */
  --accent:         #F08A20;
  --accent-hover:   #D97518;
  --accent-dim:     rgba(240, 138, 32, 0.15);
  --accent-glow:    rgba(240, 138, 32, 0.22);
  --accent-subtle:  rgba(240, 138, 32, 0.07);

  /* Borders */
  --border:     #1c1c1c;
  --border-2:   rgba(240, 138, 32, 0.25);

  /* Spacing scale */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  24px;
  --sp-lg:  48px;
  --sp-xl:  80px;
  --sp-2xl: 140px;

  /* Radius */
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --dur:        0.65s;
  --dur-fast:   0.25s;
}

/* ══════════════════════════════════════════════════════════════
   2. RESET + BASE
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

::selection {
  background: rgba(240, 138, 32, 0.3);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   3. TYPOGRAPHY SCALE
   ══════════════════════════════════════════════════════════════ */
.eyebrow {
  display: inline-block;
  font-family: 'Rubik', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, .h1 {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
}

h2, .h2 {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

h3, .h3 {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

h4, .h4 {
  font-family: 'Rubik', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.body-xl {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  color: var(--text-2);
  font-weight: 400;
}

.body-lg {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
}

.caption {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════════
   4. LAYOUT UTILITIES
   ══════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.container--narrow {
  max-width: 760px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding: var(--sp-2xl) 0;
}

.section--sm {
  padding: var(--sp-xl) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

/* ══════════════════════════════════════════════════════════════
   5. NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background var(--dur-fast) var(--ease-out),
              padding var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(8, 8, 8, 0.88);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
  padding: 16px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav__logo-text {
  font-family: 'Rubik', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
}

.nav__link--cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 9px 20px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 13px;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out) !important;
}

.nav__link--cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Dropdown */
.nav__item {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  box-shadow: 0 24px 48px rgba(0,0,0,0.6);
}

.nav__item:hover .nav__dropdown,
.nav__item.open .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 6px;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.nav__dropdown a:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 99px;
  transition: transform var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(8,8,8,0.97);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.nav__mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.nav__mobile a {
  font-family: 'Rubik', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-2);
  transition: color var(--dur-fast);
}

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

/* ══════════════════════════════════════════════════════════════
   6. BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--dur-fast);
  background: rgba(255,255,255,0.08);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow), 0 0 0 1px rgba(240,138,32,0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}

.btn-outline:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-dim);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--surface-3);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 15px;
}

.btn svg, .btn .arrow {
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .arrow { transform: translateX(4px); }

/* ══════════════════════════════════════════════════════════════
   7. HERO — Base
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  margin-bottom: 24px;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__body {
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Ambient glow at hero bottom */
.hero__glow {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(240,138,32,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
   8. SECTION HEADERS
   ══════════════════════════════════════════════════════════════ */
.section-header {
  margin-bottom: 64px;
}

.section-header .eyebrow {
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 580px;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.65;
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   9. CARDS
   ══════════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.card:hover {
  border-color: rgba(240,138,32,0.2);
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(240,138,32,0.12);
  transform: translateY(-4px);
}

.card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.2) 60%, transparent 100%);
}

.card__body {
  padding: 28px;
}

.card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 16px;
}

.card__tag--accent {
  background: var(--accent-subtle);
  border-color: var(--border-2);
  color: var(--accent);
}

.card__title {
  font-family: 'Rubik', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card__desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur-fast);
}

.card:hover .card__link { gap: 10px; }

/* ══════════════════════════════════════════════════════════════
   10. PROJECT HERO CARDS (large)
   ══════════════════════════════════════════════════════════════ */
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  cursor: pointer;
  text-decoration: none;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(240,138,32,0.2);
}

.project-card__bg {
  position: absolute;
  inset: 0;
  background: var(--surface-2);
  overflow: hidden;
}

.project-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  filter: brightness(0.55) saturate(0.8);
}

.project-card:hover .project-card__bg img {
  transform: scale(1.06);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,8,8,0.95) 0%,
    rgba(8,8,8,0.5) 50%,
    rgba(8,8,8,0.1) 100%
  );
  transition: opacity 0.5s var(--ease);
}

.project-card__body {
  position: relative;
  z-index: 2;
  padding: 40px;
}

.project-card__eyebrow {
  margin-bottom: 12px;
}

.project-card__title {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.project-card__desc {
  font-size: 16px;
  color: rgba(240,240,240,0.7);
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 24px;
}

.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--dur-fast);
}

.project-card:hover .project-card__cta { gap: 12px; }

/* No-image project card (Baluminaria) */
.project-card--ambient .project-card__bg {
  background: var(--surface);
}

.project-card--ambient .project-card__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(240,138,32,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(240,138,32,0.08) 0%, transparent 50%);
  animation: ambientPulse 4s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   11. FEATURE TILES
   ══════════════════════════════════════════════════════════════ */
.feature-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}

.feature-tile:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.feature-tile__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-tile h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.feature-tile p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   12. DIVIDER
   ══════════════════════════════════════════════════════════════ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.divider--glow {
  background: linear-gradient(to right, transparent, var(--accent-dim), transparent);
}

/* ══════════════════════════════════════════════════════════════
   13. FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  background: var(--bg);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__brand-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer__brand-name {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.footer__brand-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 260px;
}

.footer__col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 20px;
}

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

.footer__col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color var(--dur-fast);
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer__copy {
  font-size: 13px;
  color: var(--text-3);
}

.footer__contact-email {
  font-size: 13px;
  color: var(--text-3);
  transition: color var(--dur-fast);
}

.footer__contact-email:hover {
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   14. ANIMATIONS
   ══════════════════════════════════════════════════════════════ */

/* Hero entry */
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate {
  animation: heroReveal 1s var(--ease) both;
}

.hero-animate--1 { animation-delay: 0.1s; }
.hero-animate--2 { animation-delay: 0.25s; }
.hero-animate--3 { animation-delay: 0.4s; }
.hero-animate--4 { animation-delay: 0.55s; }

/* Scroll reveal */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.fade-up[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

.fade-up--delay-1 { transition-delay: 0.1s; }
.fade-up--delay-2 { transition-delay: 0.2s; }
.fade-up--delay-3 { transition-delay: 0.3s; }
.fade-up--delay-4 { transition-delay: 0.4s; }

/* Fade in (no translate) */
.fade-in {
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.fade-in[data-visible="true"] {
  opacity: 1;
}

/* Floating glow orb */
@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50%       { transform: translateY(-30px) scale(1.05); opacity: 1; }
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  animation: floatOrb 8s ease-in-out infinite;
}

.orb--orange {
  background: radial-gradient(circle, rgba(240,138,32,0.4), transparent 70%);
}

.orb--dim {
  background: radial-gradient(circle, rgba(240,138,32,0.15), transparent 70%);
}

/* Number / stat */
.stat {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}

.stat__number {
  font-family: 'Rubik', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat__label {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════
   15. PAGE — HOMEPAGE SPECIFIC
   ══════════════════════════════════════════════════════════════ */

/* Hero noise texture */
.hero--home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

.home-hero__grid-line {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--text) 1px, transparent 1px),
    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 80px 80px;
  inset: 0;
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: heroReveal 1s var(--ease) 1s both;
}

.scroll-hint__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-hint__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* About pillars */
.pillar {
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--dur-fast) var(--ease-out);
}

.pillar:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
}

.pillar__number {
  font-family: 'Rubik', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
}

.pillar h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* Contact section */
.contact-section {
  text-align: center;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.contact-section__email {
  display: inline-block;
  font-family: 'Rubik', sans-serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
  margin-top: 32px;
}

.contact-section__email:hover {
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   16. PAGE — LUMBRA SPECIFIC
   ══════════════════════════════════════════════════════════════ */
.hero--lumbra {
  background: var(--bg);
}

.hero--lumbra .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero--lumbra .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.25) saturate(0.6);
}

.hero--lumbra .hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.2) 0%,
    rgba(8,8,8,0.5) 60%,
    rgba(8,8,8,1) 100%
  );
}

.lumbra-accent-block {
  display: inline-block;
  position: relative;
  padding: 0 16px;
}

.lumbra-accent-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--accent);
  border-radius: 99px;
}

/* Character cards */
.character-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}

.character-card:hover {
  transform: translateY(-4px);
}

.character-card--light {
  border-top: 3px solid rgba(240,138,32,0.6);
}

.character-card--shadow {
  border-top: 3px solid rgba(60,60,80,0.8);
}

.character-card--light:hover {
  border-color: var(--accent);
  border-top-color: var(--accent);
  box-shadow: 0 0 60px rgba(240,138,32,0.1);
}

.character-card--shadow:hover {
  border-color: rgba(80,80,100,0.5);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.character-card__symbol {
  font-size: 48px;
  margin-bottom: 24px;
  display: block;
}

.character-card__name {
  font-family: 'Rubik', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.character-card__role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}

.character-card__text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
}

/* Gameplay loop */
.loop-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.loop-step:last-child { border-bottom: none; }

.loop-step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

.loop-step h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.loop-step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Lore quote */
.lore-quote {
  position: relative;
  padding: 40px 48px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 48px 0;
}

.lore-quote p {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
}

/* CTA strip */
.cta-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(240,138,32,0.1), transparent 70%);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   17. PAGE — LUMIRIC ALPHABET
   ══════════════════════════════════════════════════════════════ */
.hero--alphabet {
  text-align: center;
  background: var(--bg);
}

.hero--alphabet .hero__content {
  width: 100%;
}

.alphabet-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.alphabet-particle {
  position: absolute;
  font-family: 'Unrez', sans-serif;
  color: rgba(240,138,32,0.08);
  animation: particleDrift linear infinite;
  user-select: none;
}

@keyframes particleDrift {
  from { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

.alphabet-sample {
  font-family: 'Unrez', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--accent);
  letter-spacing: 0.1em;
  line-height: 2;
  text-align: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Translator */
.translator-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}

.translator-box:focus-within {
  border-color: var(--border-2);
  box-shadow: 0 0 0 4px rgba(240,138,32,0.08);
}

.translator-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px 28px;
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  color: var(--text);
  outline: none;
  border-bottom: 1px solid var(--border);
  resize: none;
  min-height: 80px;
}

.translator-input::placeholder { color: var(--text-3); }

.translator-output {
  padding: 24px 28px;
  font-family: 'Unrez', sans-serif;
  font-size: 28px;
  color: var(--accent);
  min-height: 80px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  word-break: break-all;
}

.translator-label {
  padding: 10px 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

/* Alphabet grid */
.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px;
}

.alphabet-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  text-align: center;
  transition: all var(--dur-fast);
}

.alphabet-cell:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
}

.alphabet-cell__symbol {
  font-family: 'Unrez', sans-serif;
  font-size: 28px;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.alphabet-cell__latin {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   18. PAGE — BALUMINARIA
   ══════════════════════════════════════════════════════════════ */
.hero--baluminaria {
  text-align: center;
  background: var(--bg);
}

.balloon-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.balloon-shape {
  width: 200px;
  height: 240px;
  background: radial-gradient(circle at 35% 35%, rgba(255,180,60,0.9), rgba(200,90,10,0.7));
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  position: relative;
  box-shadow:
    0 0 60px rgba(240,138,32,0.4),
    0 0 120px rgba(240,138,32,0.15),
    inset -20px -20px 40px rgba(0,0,0,0.3);
  animation: balloonFloat 5s ease-in-out infinite;
}

.balloon-shape::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(240,138,32,0.5), transparent);
}

@keyframes balloonFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-20px) rotate(2deg); }
}

.balloon-glow-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(240,138,32,0.12);
  animation: ringPulse 3s ease-in-out infinite;
}

.balloon-glow-ring:nth-child(2) {
  width: 420px;
  height: 420px;
  animation-delay: 1s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.03); }
}

/* Material cards */
.material-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--dur-fast);
}

.material-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.material-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.material-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.material-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   19. MEDIA QUERIES
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --sp-2xl: 96px;
    --sp-xl:  56px;
  }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .container { padding-left: 20px; padding-right: 20px; }

  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }

  .projects-grid { grid-template-columns: 1fr; }

  .project-card { min-height: 400px; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .lore-quote { padding: 28px 24px; }
  .character-card { padding: 28px 24px; }

  .alphabet-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .grid-4 { grid-template-columns: 1fr; }

  .section-header { margin-bottom: 40px; }

  .project-card__body { padding: 24px; }

  .scroll-hint { display: none; }
}
