/* ─── Fonts ───────────────────────────────────────────────────────────────── */
@font-face { font-family:'Satoshi'; src:url('Satoshi-Medium.otf') format('opentype'); font-weight:500; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('Satoshi-Bold.otf')   format('opentype'); font-weight:700; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('Satoshi-Black.otf')  format('opentype'); font-weight:900; font-display:swap; }
@font-face { font-family:'Noto Sans'; src:url('NotoSans-SemiBold.ttf') format('truetype'); font-weight:600; font-display:swap; }
@font-face { font-family:'Noto Sans'; src:url('NotoSans-Black.ttf')    format('truetype'); font-weight:900; font-display:swap; }

/* ─── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg:      #10100e;
  --fg:      #ffffe6;
  --fg-dim:  rgba(255,255,230,0.5);
  --border:  rgba(255,255,230,0.18);
  --nav-h:   116px;
  --px:      48px;
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background:var(--bg);
  color:var(--fg);
  font-family:'Satoshi', sans-serif;
  font-size:16px;
  line-height:1.5;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
body.lang-bg { font-family:'Noto Sans', sans-serif; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
button { cursor:pointer; font-family:inherit; }
ul,ol { list-style:none; }

/* ─── Nav — Fontshare-style tab strip ────────────────────────────────────── */
nav {
  position:fixed;
  top:0; left:0; right:0;
  z-index:200;
  height:var(--nav-h);
  display:flex;
  align-items:stretch;
  background:var(--bg);
  border-bottom:1.5px solid var(--border);
}

.nav-tab {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:0 28px;
  border-right:1.5px solid var(--border);
  color:rgba(255,255,230,0.4);
  transition:background .18s, color .18s;
  gap:5px;
  flex-shrink:0;
}
.nav-tab:hover { background:rgba(255,255,230,0.035); color:var(--fg); }
.nav-tab.active { background:var(--fg); color:var(--bg); }

/* Page nav tabs — evenly fill remaining space */
.nav-tab:not(.nav-logo):not(.nav-lang):not(.nav-cta):not(.nav-hamburger) {
  flex:1;
}

.tab-label {
  font-size:12px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  line-height:1;
  white-space:nowrap;
}
.tab-count {
  font-size:11px;
  line-height:1;
  opacity:.35;
  font-weight:500;
}
.nav-tab.active .tab-count { opacity:.45; }

/* Logo tab */
.nav-logo { padding:0 36px; flex-shrink:0; flex:0 0 auto; align-items:center; }
.nav-logo img { height:100px; width:auto; }
.logo-dark  { display:none; }
.nav-logo.active .logo-light { display:none; }
.nav-logo.active .logo-dark  { display:block; }

/* Spacer — neutralised; page tabs now flex:1 instead */
.nav-spacer { flex:0; width:0; overflow:hidden; }

/* Lang tab */
.nav-lang { flex-direction:row; align-items:center; gap:0; flex-shrink:0; flex:0 0 auto; }
.lang-btn {
  background:none;
  border:none;
  font-size:11px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:rgba(255,255,230,0.28);
  cursor:pointer;
  padding:4px 7px;
  transition:color .18s;
}
.lang-btn.active,.lang-btn:hover { color:var(--fg); }
.nav-lang.active .lang-btn       { color:rgba(16,16,14,.35); }
.nav-lang.active .lang-btn.active,
.nav-lang.active .lang-btn:hover { color:var(--bg); }
.lang-sep { font-size:9px; color:rgba(255,255,230,.15); user-select:none; }
.nav-lang.active .lang-sep { color:rgba(16,16,14,.15); }

/* CTA tab */
.nav-cta {
  flex-direction:row;
  align-items:center;
  gap:10px;
  border-right:none;
  padding:0 36px;
  color:rgba(255,255,230,.62);
  flex-shrink:0;
}
.nav-cta svg { width:11px; height:11px; transition:transform .18s; }
.nav-cta:hover svg,.nav-cta.active svg { transform:translate(2px,-2px); }

/* Hamburger */
.nav-hamburger {
  display:none;
  border:none;
  border-right:none;
  background:none;
  padding:0 22px;
  margin-left:auto;
  align-items:center;
  justify-content:center;
}
.ham-lines { display:flex; flex-direction:column; gap:5px; }
.ham-lines span { display:block; width:24px; height:1.5px; background:var(--fg); transition:transform .3s, opacity .3s; }
body.menu-open .ham-lines span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
body.menu-open .ham-lines span:nth-child(2) { opacity:0; }
body.menu-open .ham-lines span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }

/* Mobile overlay menu */
.nav-mobile {
  display:none;
  position:fixed;
  top:var(--nav-h); left:0; right:0; bottom:0;
  background:var(--bg);
  z-index:190;
  flex-direction:column;
  border-top:1px solid var(--border);
  overflow-y:auto;
}
body.menu-open .nav-mobile { display:flex; }
.nav-mobile a {
  padding:20px 24px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--fg-dim);
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  transition:color .18s;
}
.nav-mobile a:hover { color:var(--fg); }
.nav-mobile a.active { background:var(--fg); color:var(--bg); }
.nav-mobile-lang { display:flex; gap:16px; padding:18px 24px; border-bottom:1px solid var(--border); }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
main { padding-top:var(--nav-h); }
.page-section { border-bottom:1px solid var(--border); padding:88px var(--px); }

.section-bar {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  padding-bottom:22px;
  margin-bottom:56px;
  border-bottom:1px solid var(--border);
}
.section-label {
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,230,.36);
  font-weight:700;
}
.section-meta { font-size:11px; letter-spacing:.06em; color:rgba(255,255,230,.2); }
.section-link {
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(255,255,230,.45);
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:color .18s;
}
.section-link:hover { color:var(--fg); }
.section-link svg { width:11px; height:11px; transition:transform .18s; }
.section-link:hover svg { transform:translate(2px,-2px); }

/* Page header */
.page-header { padding:72px var(--px) 60px; border-bottom:1px solid var(--border); }
.page-eyebrow {
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,230,.35);
  font-weight:700;
  margin-bottom:22px;
}
.page-title {
  font-size:clamp(52px,8vw,120px);
  font-weight:900;
  line-height:.88;
  letter-spacing:-.035em;
}
.page-sub {
  max-width:500px;
  font-size:15px;
  font-weight:500;
  line-height:1.72;
  color:var(--fg-dim);
  margin-top:32px;
}

/* ─── Reveal ──────────────────────────────────────────────────────────────── */
.reveal { opacity:0; transform:translateY(18px); transition:opacity .72s ease, transform .72s ease; }
.reveal.in { opacity:1; transform:none; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn-outline {
  display:inline-flex;
  align-items:center;
  gap:11px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,230,.28);
  padding:14px 26px;
  white-space:nowrap;
  transition:background .2s, color .2s, border-color .2s;
  cursor:pointer;
  background:none;
  color:var(--fg);
}
.btn-outline:hover { background:var(--fg); color:var(--bg); border-color:var(--fg); }
.btn-outline svg { width:12px; height:12px; transition:transform .2s; }
.btn-outline:hover svg { transform:translate(3px,-3px); }

.btn-solid {
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:var(--fg);
  color:var(--bg);
  border:none;
  font-size:11px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  padding:15px 30px;
  cursor:pointer;
  transition:opacity .18s;
}
.btn-solid:hover { opacity:.82; }
.btn-solid:disabled { opacity:.38; cursor:default; }

/* ─── Portfolio cards ─────────────────────────────────────────────────────── */
.portfolio-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
  background:rgba(255,255,230,.08);
  border:1px solid rgba(255,255,230,.08);
}
.portfolio-card {
  aspect-ratio:16/10;
  background:var(--bg);
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:28px 32px;
  transition:background .22s;
}
.portfolio-card:hover { background:transparent; }
.card-video {
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  opacity:.55;
  transition:opacity .4s;
  pointer-events:none;
}
.portfolio-card:hover .card-video { opacity:.75; }
.card-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(16,16,14,.92) 0%, rgba(16,16,14,.35) 55%, transparent 100%);
  pointer-events:none;
}
.card-bg-icon {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  opacity:.03; pointer-events:none;
}
.card-bg-icon svg { width:80px; height:80px; }
.card-tag {
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,230,.5);
  margin-bottom:6px;
  font-weight:700;
  position:relative;
}
.card-name {
  font-size:22px;
  font-weight:700;
  letter-spacing:-.015em;
  color:rgba(255,255,230,.85);
  transition:color .2s;
  line-height:1.1;
  position:relative;
}
.portfolio-card:hover .card-name { color:var(--fg); }

/* ─── Opener overlay ──────────────────────────────────────────────────────── */
#opener {
  position:fixed; inset:0; z-index:9999;
  background:#10100e;
  display:flex; align-items:center; justify-content:center;
  transition:opacity .7s ease;
}
#opener.fade-out { opacity:0; pointer-events:none; }
#opener video {
  width:100%; height:100%;
  object-fit:contain;
}

/* ─── Services ────────────────────────────────────────────────────────────── */
.services-grid { display:grid; grid-template-columns:1fr 1fr; }
.svc {
  display:grid;
  grid-template-columns:44px 1fr;
  gap:24px;
  padding:44px 0;
  border-bottom:1px solid var(--border);
}
.svc:nth-child(odd)  { padding-right:56px; border-right:1px solid var(--border); }
.svc:nth-child(even) { padding-left:56px; }
.svc-num { font-size:11px; letter-spacing:.05em; color:rgba(255,255,230,.2); padding-top:4px; font-weight:700; }
.svc-name { font-size:20px; font-weight:700; letter-spacing:-.01em; margin-bottom:10px; }
.svc-desc { font-size:14px; line-height:1.72; color:var(--fg-dim); font-weight:500; }

/* ─── Stats ───────────────────────────────────────────────────────────────── */
.stats-col { display:flex; flex-direction:column; gap:1px; }
.stat { display:flex; align-items:baseline; justify-content:space-between; padding:26px 30px; border:1px solid var(--border); gap:16px; }
.stat-val { font-size:48px; font-weight:900; letter-spacing:-.04em; line-height:1; }
.stat-label { font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,230,.36); text-align:right; line-height:1.55; font-weight:700; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list { max-width:780px; }
.faq-item { border-bottom:1px solid var(--border); }
.faq-q {
  width:100%;
  background:none;
  border:none;
  color:var(--fg);
  text-align:left;
  font-size:17px;
  font-weight:700;
  letter-spacing:-.01em;
  padding:26px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  line-height:1.3;
}
.faq-cross { flex-shrink:0; width:17px; height:17px; position:relative; }
.faq-cross::before,.faq-cross::after { content:''; position:absolute; background:var(--fg); transition:transform .28s, opacity .28s; }
.faq-cross::before { width:100%; height:1px; top:50%; transform:translateY(-50%); }
.faq-cross::after  { width:1px; height:100%; left:50%; transform:translateX(-50%); }
.faq-item.open .faq-cross::after { transform:translateX(-50%) scaleY(0); opacity:0; }
.faq-body { max-height:0; overflow:hidden; transition:max-height .38s ease; }
.faq-inner { padding-bottom:26px; font-size:14px; line-height:1.8; color:var(--fg-dim); font-weight:500; max-width:620px; }

/* ─── Form fields ─────────────────────────────────────────────────────────── */
.fg { border-bottom:1px solid rgba(255,255,230,.13); }
.fg:first-child { border-top:1px solid rgba(255,255,230,.13); }
.fg:focus-within { border-bottom-color:rgba(255,255,230,.48); }
.fg label { display:block; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,230,.3); font-weight:700; padding-top:16px; margin-bottom:5px; }
.fg input,.fg textarea,.fg select { width:100%; background:none; border:none; color:var(--fg); font-family:inherit; font-size:15px; font-weight:500; padding-bottom:16px; outline:none; resize:none; -webkit-appearance:none; }
.fg textarea { min-height:88px; }
.fg input::placeholder,.fg textarea::placeholder { color:rgba(255,255,230,.18); }
.fg select option { background:var(--bg); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:32px var(--px);
  border-top:1px solid var(--border);
  flex-wrap:wrap;
  gap:16px;
}
.footer-logo img { height:18px; opacity:.4; }
.footer-copy { font-size:11px; letter-spacing:.05em; color:rgba(255,255,230,.2); }
.footer-links { display:flex; gap:28px; }
.footer-links a { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,230,.25); font-weight:700; transition:color .18s; }
.footer-links a:hover { color:var(--fg); }

/* ─── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width:860px) {
  :root { --px:24px; }
  .nav-tab:not(.nav-logo):not(.nav-hamburger) { display:none; }
  .nav-hamburger { display:flex; }
  .nav-spacer { display:none; }
  .page-section { padding:64px var(--px); }
  .page-header { padding:56px var(--px) 48px; }
  .portfolio-grid { grid-template-columns:1fr; }
  .services-grid { grid-template-columns:1fr; }
  .svc:nth-child(odd)  { padding-right:0; border-right:none; }
  .svc:nth-child(even) { padding-left:0; }
  footer .footer-links { display:none; }
}
