:root {
  --bg: #121623;
  --bg-2: #181d2f;
  --bg-3: #1f2640;
  --ink: #ece7d9;
  --muted: #a9b0c6;
  --gold: #e2b765;
  --gold-2: #f0cf8b;
  --line: rgba(226, 183, 101, .22);
  --radius: 14px;
  --serif: "Cinzel", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1a1a1a; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 22, 35, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .04em; }
nav { display: flex; align-items: center; gap: 6px; }
nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; }
nav a:hover { background: rgba(255, 255, 255, .06); }
nav .nav-cta { border: 1px solid var(--gold); color: var(--gold); }
nav .nav-cta:hover { background: var(--gold); color: #1a1a1a; }

/* hero */
.hero { position: relative; isolation: isolate; min-height: min(86vh, 760px); display: grid; align-items: end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url("images/hero.jpg") center 35% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,22,35,.25) 0%, rgba(18,22,35,.55) 45%, var(--bg) 100%), linear-gradient(90deg, rgba(18,22,35,.7) 0%, rgba(18,22,35,0) 65%); }
.hero-inner { padding: 120px 0 64px; }
.eyebrow { font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--gold); margin: 0 0 16px; }
h1 { font-size: clamp(40px, 7vw, 84px); color: #fff; max-width: 14ch; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
h1 span { display: block; color: var(--gold); }
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 60ch; color: #e6e1d2; margin: 22px 0 28px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, background .15s, color .15s; }
.btn-gold { background: var(--gold); color: #1b1b1b; }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.is-disabled { background: rgba(226,183,101,.16); color: var(--gold-2); border-color: var(--line); cursor: default; }
.btn.is-disabled:hover { transform: none; background: rgba(226,183,101,.16); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(18,22,35,.6); font-size: 14px; color: var(--ink); }

/* stats */
.stats { background: var(--bg-2); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 28px 0; text-align: center; }
.stats b { display: block; font: 700 clamp(26px, 4vw, 40px)/1.1 var(--serif); color: var(--gold); }
.stats span { color: var(--muted); font-size: 14px; }

/* sections */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2, .split-text h2, .narrow h2 { font-size: clamp(28px, 4.2vw, 46px); margin-bottom: 16px; }
.section-head p:last-child, .split-text p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section.alt .card { background: var(--bg-3); }
.card h3 { font-size: 20px; color: var(--gold); margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
figure { margin: 0; }
figure button, .split-img button, .inside-img button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0d101a; cursor: zoom-in; }
figure button img { transition: transform .35s ease; }
figure button:hover img { transform: scale(1.04); }
figcaption { padding: 10px 4px 0; color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 96px); }
.split.flip { grid-template-columns: 1.25fr 1fr; }
.split.flip .split-text { order: 2; }
.split-img { margin: 0; }

.inside { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 28px; align-items: start; }
.inside h3 { font-size: 24px; margin-bottom: 14px; }
.inside h3 small { font: 600 15px var(--sans); color: var(--gold); margin-left: 8px; }
.counts { list-style: none; margin: 0; padding: 0; }
.counts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; }
.counts b { color: var(--gold); font-variant-numeric: tabular-nums; }
.inside-img { margin: 0; }

.tech { margin-top: 56px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.tech h3 { font-size: 24px; margin-bottom: 18px; }
.tech dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.tech dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.tech dt { color: var(--gold); font-weight: 600; }
.tech dd { margin: 0; color: var(--ink); }

.narrow p { color: var(--muted); }
.contact { background: linear-gradient(180deg, var(--bg) 0%, #0e1220 100%); }
.contact .btn { font-size: 18px; padding: 15px 28px; }

.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; text-align: center; }
.site-footer p { margin: 0 0 6px; }
.site-footer .fine { font-size: 13px; opacity: .8; }

/* lightbox */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(7, 9, 16, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 20px 8px; }
.lightbox figure { grid-column: 2; display: grid; gap: 12px; justify-items: center; max-height: 100%; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; max-width: 100%; border-radius: 10px; box-shadow: 0 10px 50px rgba(0,0,0,.6); }
.lightbox figcaption { color: var(--ink); text-align: center; max-width: 70ch; padding: 0; }
.lb-close, .lb-nav { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; width: 46px; height: 46px; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: #111; }
.lb-close { position: absolute; top: 14px; right: 14px; }
.lb-prev { grid-column: 1; justify-self: center; }
.lb-next { grid-column: 3; justify-self: center; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .inside { grid-template-columns: 1fr 1fr; }
  .inside-img { grid-column: 1 / -1; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .split-text { order: 0; }
  .tech dl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .gallery, .inside { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stats-grid > div:last-child { grid-column: 1 / -1; }
  nav a:not(.nav-cta) { display: none; }
  .hero { min-height: min(78vh, 640px); }
  .hero-inner { padding: 96px 0 40px; }
  .tech dl > div { grid-template-columns: 1fr; gap: 2px; }
  .lightbox { grid-template-columns: 1fr; padding: 60px 8px 8px; }
  .lightbox figure { grid-column: 1; }
  .lb-nav { position: absolute; bottom: 14px; }
  .lb-prev { left: 14px; } .lb-next { right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  figure button img { transition: none; }
}
