/* ==========================================================================
   RageGame — studio site
   Design system: dark jade felt + gold foil, bold rounded display type
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #050a08;
  --bg-soft: #08130e;
  --felt: #0d2a1e;
  --felt-hi: #14402d;
  --gold: #f0c456;
  --gold-deep: #b8862b;
  --gold-pale: #fff0c2;
  --jade: #1db98a;
  --ivory: #f3eee1;
  --muted: rgba(243, 238, 225, .60);
  --line: rgba(240, 196, 86, .18);

  --f-display: "Trebuchet MS", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-serif: Georgia, "Times New Roman", "Songti SC", serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, .84, .28, 1);
  --shadow-gold: 0 24px 70px -30px rgba(240, 196, 86, .55);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: clamp(15px, .35vw + 14px, 17px);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--gold); color: #07211a; }

/* page background wash */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(240, 196, 86, .16), transparent 62%),
    radial-gradient(900px 620px at 8% 18%, rgba(29, 185, 138, .14), transparent 60%),
    radial-gradient(1000px 800px at 50% 115%, rgba(20, 64, 45, .55), transparent 70%),
    linear-gradient(180deg, #06100c 0%, var(--bg) 45%, #040806 100%);
}
/* fine felt grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px);
}

/* ---------- layers ---------- */
#fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 90;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--jade), var(--gold), var(--gold-pale));
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; gap: 18px;
  background: radial-gradient(600px 400px at 50% 45%, #10322a, #040806 70%);
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__tiles { display: flex; gap: 10px; perspective: 700px; }
.loader__tiles i {
  width: 30px; height: 42px; border-radius: 7px; background: linear-gradient(160deg, #fffdf6, #ded5c2);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .8), inset 0 -3px 0 rgba(0, 0, 0, .12);
  animation: tileFlip 1.15s var(--ease) infinite;
}
.loader__tiles i:nth-child(2) { animation-delay: .1s; }
.loader__tiles i:nth-child(3) { animation-delay: .2s; }
.loader__tiles i:nth-child(4) { animation-delay: .3s; }
.loader__tiles i:nth-child(5) { animation-delay: .4s; }
.loader span {
  font-family: var(--f-display); letter-spacing: .42em; text-transform: uppercase;
  font-size: 11px; color: rgba(240, 196, 86, .8);
}
@keyframes tileFlip { 0%, 100% { transform: rotateY(0); } 45% { transform: rotateY(180deg) translateY(-12px); } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: var(--nav-h);
  display: flex; align-items: center;
  transition: height .4s var(--ease), background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.is-stuck {
  height: 62px; background: rgba(6, 14, 11, .72); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(240, 196, 86, .14), 0 20px 40px -30px #000;
}
.nav__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; flex: none; }
.brand__logo {
  height: 34px; width: auto; opacity: .92; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55));
  transition: opacity .4s var(--ease), transform .5s var(--ease), filter .4s var(--ease);
}
.brand:hover .brand__logo { opacity: 1; transform: translateY(-1px) scale(1.03); filter: drop-shadow(0 8px 20px rgba(240, 196, 86, .35)); }

.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav__link {
  position: relative; font-family: var(--f-display); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 238, 225, .72); padding: 8px 2px;
  transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale)); transform: scaleX(0);
  transform-origin: right; transition: transform .45s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .03); cursor: pointer; padding: 0; place-items: center; }
.burger i { display: block; width: 18px; height: 2px; background: var(--gold); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s; }
.burger i + i { margin-top: 4px; }
.burger.is-open i:first-child { transform: translateY(6px) rotate(45deg); }
.burger.is-open i:nth-child(2) { opacity: 0; }
.burger.is-open i:last-child { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-family: var(--f-display); font-weight: 800;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .3s, background .3s;
}
.btn--gold { background: linear-gradient(135deg, var(--gold-pale), var(--gold) 40%, var(--gold-deep));
  color: #241802; box-shadow: var(--shadow-gold); }
.btn--gold:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 30px 60px -26px rgba(240, 196, 86, .8); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--ivory); border: 1px solid var(--line); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold-pale); }
.btn::after {
  content: ""; position: absolute; top: -60%; left: -70%; width: 45%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: rotate(20deg); opacity: 0;
}
.btn:hover::after { animation: shine .9s var(--ease); }
@keyframes shine { 0% { opacity: .9; left: -70%; } 100% { opacity: 0; left: 130%; } }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- layout helpers ---------- */
.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.section--tight { padding-top: clamp(40px, 6vw, 70px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-serif); font-style: italic;
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.h1 { font-size: clamp(40px, 8.4vw, 92px); }
.h2 { font-size: clamp(28px, 4.6vw, 52px); }
.h3 { font-size: clamp(19px, 2.2vw, 26px); letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 62ch; margin-top: 18px; }
.gold { color: var(--gold); }
.gold-text {
  background: linear-gradient(100deg, #b8862b, #f0c456 25%, #fff5d0 45%, #f0c456 62%, #b8862b 85%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pan 7s linear infinite;
}
@keyframes pan { to { background-position: 250% 0; } }
.section__head { max-width: 780px; margin-bottom: clamp(34px, 5vw, 60px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::before { display: none; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal="left"] { transform: translateX(-42px); }
[data-reveal="right"] { transform: translateX(42px); }
[data-reveal="zoom"] { transform: scale(.9); }
[data-reveal].is-in { opacity: 1; transform: none; }
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 60px; overflow: hidden; }
.hero__bg { position: absolute; inset: -6%; z-index: -4; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(1.1) contrast(1.05);
  animation: breathe 26s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-2%, -2%, 0); } }
.hero__scrim { position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(700px 420px at 18% 40%, rgba(5, 10, 8, .30), transparent 70%),
    linear-gradient(90deg, rgba(4, 9, 7, .94) 0%, rgba(4, 9, 7, .72) 42%, rgba(4, 9, 7, .35) 70%, rgba(4, 9, 7, .8) 100%),
    linear-gradient(180deg, rgba(4, 9, 7, .9), transparent 30%, rgba(4, 9, 7, .95)); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 60px);
  align-items: center; width: 100%; }
.hero__title { margin: 0 0 22px; }
.hero__title em, .phero .h1 em, [data-split] .line--em { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
/* character split headline (home hero + subpage heroes) */
[data-split] .line { display: block; overflow: hidden; padding-bottom: .04em; }
[data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; }
[data-split] .ch { display: inline-block; transform: translateY(110%) rotate(6deg); opacity: 0;
  transition: transform 1s var(--ease-out), opacity .7s; }
body.is-ready [data-split] .ch { transform: none; opacity: 1; transition-delay: calc(var(--d, 0) * 34ms + 250ms); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(29, 185, 138, .07); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; font-family: var(--f-display); font-weight: 700; color: rgba(243, 238, 225, .82);
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 12px var(--jade);
  animation: blip 2.4s ease-in-out infinite; }
@keyframes blip { 50% { opacity: .35; transform: scale(.7); } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center;
  gap: 8px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.hero__scroll span { display: block; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent);
  animation: drop 2.2s var(--ease) infinite; }
@keyframes drop { 0% { transform: scaleY(.2); transform-origin: top; opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* device mockup */
.stage { position: relative; display: grid; place-items: center; perspective: 1400px; }
.stage__halo { position: absolute; width: 118%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 196, 86, .30), rgba(29, 185, 138, .12) 45%, transparent 66%);
  filter: blur(24px); animation: pulse 8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.1); opacity: .78; } }
.stage__ring { position: absolute; width: 92%; aspect-ratio: 1; border: 1px solid rgba(240, 196, 86, .22);
  border-radius: 50%; animation: spin 34s linear infinite; }
.stage__ring::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.stage__ring--2 { width: 112%; border-color: rgba(29, 185, 138, .18); animation-duration: 46s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(1turn); } }
.phone {
  position: relative; width: min(330px, 74vw); aspect-ratio: 9 / 19.2; border-radius: 44px; padding: 11px;
  background: linear-gradient(150deg, #2a2f2b, #0c110e 40%, #242a25);
  box-shadow: 0 60px 90px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(240, 196, 86, .28), inset 0 0 0 1px rgba(255, 255, 255, .07);
  transform-style: preserve-3d; transition: transform .3s var(--ease); animation: hover 6.5s ease-in-out infinite;
}
@keyframes hover { 50% { translate: 0 -14px; } }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #0a1a13; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__glare { position: absolute; inset: 0; background: linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, .28) 46%, transparent 58%);
  transform: translateX(-60%); animation: glare 6s ease-in-out infinite; }
@keyframes glare { 0%, 55% { transform: translateX(-70%); } 85%, 100% { transform: translateX(70%); } }
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px;
  border-radius: 999px; background: #0b100d; z-index: 2; }

/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(20, 64, 45, .5), rgba(6, 14, 11, .2), rgba(20, 64, 45, .5)); padding: 18px 0; }
.marquee__track { display: flex; gap: 46px; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: flex; align-items: center; gap: 46px; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(14px, 1.5vw, 19px); letter-spacing: .22em; text-transform: uppercase; color: rgba(243, 238, 225, .78); white-space: nowrap; }
.marquee__track b { color: var(--gold); }
.marquee__track i { width: 9px; height: 9px; background: var(--jade); transform: rotate(45deg); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; overflow: hidden; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(20, 52, 38, .62), rgba(7, 16, 12, .88));
  border: 1px solid rgba(240, 196, 86, .14); transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; opacity: 0; transition: opacity .5s;
  background: radial-gradient(340px 220px at var(--mx, 50%) var(--my, 0%), rgba(240, 196, 86, .20), transparent 65%);
}
.card::after {
  content: ""; position: absolute; top: -50%; left: -60%; width: 35%; height: 200%; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); transform: rotate(18deg);
}
.card:hover { transform: translateY(-10px); border-color: rgba(240, 196, 86, .5); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .95); }
.card:hover::before { opacity: 1; }
.card:hover::after { animation: shine 1.1s var(--ease); }
.card__num { font-family: var(--f-serif); font-size: 13px; letter-spacing: .2em; color: rgba(240, 196, 86, .6); }
.card__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(150deg, rgba(240, 196, 86, .22), rgba(29, 185, 138, .12)); border: 1px solid var(--line);
  color: var(--gold); transition: transform .6s var(--ease); }
.card:hover .card__icon { transform: rotate(-10deg) scale(1.08); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; }
.card--tile { display: flex; flex-direction: column; gap: 14px; }
.card--plain { background: rgba(255, 255, 255, .02); border-radius: var(--r); }
.card ul { margin-top: 16px; display: grid; gap: 10px; }
.card li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; }
.card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(140deg, var(--gold), var(--gold-deep)); transform: rotate(45deg); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { position: relative; padding: 26px 20px; text-align: center; border-radius: var(--r);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02); overflow: hidden; }
.stat__v { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); color: var(--gold); line-height: 1; }
.stat__l { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* ---------- feature rows ---------- */
.row { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 70px);
  align-items: center; padding: clamp(30px, 5vw, 60px) 0; }
.row:nth-child(even) .row__media { order: 2; }
.row__media { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: #09150f; box-shadow: 0 50px 80px -50px #000; }
.row__media img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top;
  transition: transform 1.2s var(--ease); }
.row__media:hover img { transform: scale(1.05); }
.row__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 9, 7, .85)); }
.row__tag { position: absolute; z-index: 2; left: 18px; bottom: 18px; font-family: var(--f-serif); font-style: italic;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.row h3 { margin-bottom: 14px; }
.row p { color: var(--muted); }

/* ---------- game showcase (portfolio) ---------- */
.showcase { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(240, 196, 86, .22);
  background: linear-gradient(160deg, rgba(20, 64, 45, .7), rgba(6, 14, 11, .95)); padding: clamp(26px, 4vw, 56px); }
.showcase::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(600px 300px at 88% 0%, rgba(240, 196, 86, .22), transparent 60%); }
.showcase__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(26px, 4vw, 54px);
  align-items: center; }
.showcase__meta { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 22px 0; font-size: 13px; color: var(--muted); }
.showcase__meta b { display: block; color: var(--gold); font-family: var(--f-display); font-size: 17px; letter-spacing: .04em; }
.showcase__meta span { text-transform: uppercase; letter-spacing: .16em; font-size: 10px; }

/* screenshot rail */
.rail { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 26px; scroll-snap-type: x mandatory; cursor: grab; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: rgba(240, 196, 86, .35); border-radius: 99px; }
.rail::-webkit-scrollbar-track { background: rgba(255, 255, 255, .05); }
.rail figure { position: relative; flex: 0 0 clamp(210px, 26vw, 280px); margin: 0; scroll-snap-align: center;
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #08130e;
  transition: transform .6s var(--ease), border-color .6s; }
.rail figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; aspect-ratio: 3 / 4; }
.rail figcaption { position: absolute; inset: auto 0 0; padding: 40px 16px 16px; font-family: var(--f-display);
  font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(4, 9, 7, .95)); }
.rail figure:hover { transform: translateY(-12px) scale(1.02); border-color: var(--gold); }

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 1px;
  background: linear-gradient(var(--gold), rgba(240, 196, 86, .1)); }
.step { position: relative; padding-left: 78px; }
.step__n { position: absolute; left: 0; top: 2px; width: 55px; height: 55px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; color: var(--gold); background: #081510; border: 1px solid var(--line);
  box-shadow: 0 0 0 6px rgba(5, 10, 8, 1), 0 0 26px -6px rgba(240, 196, 86, .6); transition: transform .5s var(--ease); }
.step:hover .step__n { transform: scale(1.1) rotate(-6deg); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; max-width: 60ch; }

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; letter-spacing: .08em;
  color: rgba(243, 238, 225, .8); background: rgba(255, 255, 255, .03); transition: all .4s var(--ease); }
.tag:hover { color: #07211a; background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }

/* ---------- quote / about ---------- */
.quote { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(240, 196, 86, .10), rgba(29, 185, 138, .05)); border: 1px solid var(--line); }
.quote p { font-family: var(--f-serif); font-size: clamp(19px, 2.3vw, 28px); line-height: 1.45; color: var(--ivory); }
.quote::before { content: "“"; position: absolute; top: -18px; left: 22px; font-family: var(--f-serif); font-size: 110px;
  color: rgba(240, 196, 86, .35); line-height: 1; }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.value { padding: 26px; border-radius: var(--r); background: rgba(255, 255, 255, .02); border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color .4s, transform .4s var(--ease); }
.value:hover { border-color: rgba(240, 196, 86, .45); transform: translateY(-6px); }
.value h4 { font-family: var(--f-display); font-size: 16px; letter-spacing: .06em; margin-bottom: 8px; color: var(--gold); }
.value p { font-size: 14.5px; color: var(--muted); }

/* ---------- contact / cta ---------- */
.cta { position: relative; overflow: hidden; text-align: center; border-radius: var(--r-lg);
  padding: clamp(40px, 7vw, 84px) clamp(22px, 5vw, 60px);
  background: linear-gradient(150deg, rgba(20, 64, 45, .85), rgba(6, 14, 11, .95)); border: 1px solid rgba(240, 196, 86, .25); }
.cta::before { content: ""; position: absolute; inset: -40% -10% auto; height: 320px; filter: blur(60px); opacity: .55;
  background: radial-gradient(closest-side, rgba(240, 196, 86, .55), transparent); animation: sweep 12s ease-in-out infinite alternate; }
@keyframes sweep { to { transform: translateX(28%) scale(1.15); } }
.cta > * { position: relative; }
.cta .h2 { margin-bottom: 16px; }
.cta p { color: var(--muted); margin-inline: auto; max-width: 56ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.mail { font-family: var(--f-display); font-weight: 800; font-size: clamp(19px, 3vw, 34px); letter-spacing: .02em;
  color: var(--gold); position: relative; display: inline-block; }
.mail::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.mail:hover::after { transform: scaleX(1); }

/* ---------- footer ---------- */
.footer { position: relative; margin-top: 60px; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 19, 14, .6), rgba(4, 8, 6, 1)); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: clamp(26px, 4vw, 50px); padding: clamp(40px, 6vw, 70px) 0 30px; }
.footer__logo { width: 168px; margin-bottom: 18px; }
.footer h4 { font-family: var(--f-display); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer a { color: var(--muted); font-size: 15px; transition: color .3s, transform .3s; display: inline-block; }
.footer a:hover { color: var(--gold-pale); transform: translateX(4px); }
.footer__bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  padding: 22px 0 30px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 13px; color: rgba(243, 238, 225, .45); }
.social { display: flex; gap: 12px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line);
  color: var(--muted); transition: all .4s var(--ease); }
.social a:hover { color: #07211a; background: var(--gold); transform: translateY(-4px) rotate(-6deg); }
.social svg { width: 18px; height: 18px; }

/* ---------- subpage hero ---------- */
.phero { position: relative; padding: calc(var(--nav-h) + clamp(50px, 9vw, 100px)) 0 clamp(30px, 5vw, 60px); overflow: hidden; }
.phero::before { content: ""; position: absolute; right: -10%; top: -30%; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 196, 86, .16), transparent 62%); filter: blur(30px); }
.phero .h1 { font-size: clamp(38px, 7vw, 76px); margin-bottom: 18px; }
.crumbs { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .hero__grid, .showcase__grid, .row { grid-template-columns: minmax(0, 1fr); }
  .row:nth-child(even) .row__media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stage { margin-top: 34px; }
  .showcase .phone { width: min(280px, 68vw); }
}
@media (max-width: 860px) {
  :root { --nav-h: 66px; }
  .brand__logo { height: 27px; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 26px; padding: 0 34px; background: rgba(5, 12, 9, .96);
    backdrop-filter: blur(18px); border-left: 1px solid var(--line); transform: translateX(102%);
    transition: transform .55s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { opacity: 0; transform: translateX(28px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav__links.is-open a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
  .nav__link { font-size: 19px; }
  .burger { display: grid; }
  .grid--3, .grid--2, .values { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--4, .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
}

/* no-JS / early-JS safety: content is never hidden behind the curtain */
html:not(.js) .loader { display: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }
html:not(.js) [data-split] .ch { opacity: 1; transform: none; }

/* ---------- print / motion prefs ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-split] .ch { opacity: 1 !important; transform: none !important; }
}
@media print { .nav, .footer, #fx, .loader { display: none !important; } body { background: #fff; color: #000; } }
