:root {
  --bg: #0c0f11;
  --bg-2: #11161a;
  --panel: #171d21;
  --panel-2: #1e252a;
  --text: #f5f7f8;
  --muted: #aeb8bf;
  --line: rgba(255,255,255,.12);
  --accent: #ff7a1a;
  --accent-soft: rgba(255,122,26,.16);
  --white: #fff;
  --shadow: 0 22px 70px rgba(0,0,0,.28);
  --radius: 22px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
::selection { background: var(--accent); color: #111; }

.skip-link {
  position: fixed; top: -60px; left: 20px; z-index: 9999;
  background: var(--white); color: #111; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 860px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: #d8dee2; text-transform: uppercase; letter-spacing: .15em;
  font-size: .76rem; font-weight: 800;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.section { padding: 110px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.section.light { background: #f3f5f6; color: #11171a; }
.section-head { display: grid; grid-template-columns: 1fr minmax(260px, .65fr); gap: 70px; align-items: end; margin-bottom: 52px; }
.section-head h2, .section-title {
  margin: 12px 0 0; font-size: clamp(2.15rem, 4.5vw, 4.4rem); line-height: .98;
  letter-spacing: -.045em; font-weight: 800;
}
.section-head p { margin: 0; color: var(--muted); max-width: 620px; }
.light .section-head p, .light .muted { color: #5b656a; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.35rem); color: #c9d0d4; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; height: 86px;
  display: flex; align-items: center; transition: background .25s, border-color .25s, height .25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(10,13,15,.92); backdrop-filter: blur(16px); border-color: var(--line); height: 74px; }
.header-inner { width: min(calc(100% - 40px), var(--max)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.32); border-radius: 12px;
  display: grid; place-items: center; font-weight: 900; letter-spacing: -.08em; background: rgba(255,255,255,.06);
}
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font-size: .95rem; letter-spacing: .08em; }
.brand-text small { color: #9da9af; letter-spacing: .24em; font-size: .57rem; margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: .83rem; font-weight: 700; letter-spacing: .02em; color: #d7dde0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--accent); transition: right .2s; }
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav-cta { padding: 12px 18px !important; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.nav-cta::after { display: none; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--white); }
.menu-btn span, .menu-btn::before, .menu-btn::after { content: ""; display: block; width: 20px; height: 2px; background: currentColor; margin: 5px auto; transition: .2s; }

/* Hero */
.hero { min-height: 100svh; position: relative; overflow: hidden; display: flex; align-items: flex-end; background: #0b0e10; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,8,9,.88) 0%, rgba(5,8,9,.54) 48%, rgba(5,8,9,.20) 76%),
    linear-gradient(0deg, rgba(5,8,9,.92) 0%, rgba(5,8,9,.08) 58%);
}
.hero-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 82px 82px; mask-image: linear-gradient(to right, #000, transparent 78%); }
.hero-content { position: relative; z-index: 2; width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 150px 0 88px; }
.hero-kicker { color: #dfe5e8; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: .78rem; }
.hero h1 { max-width: 900px; margin: 18px 0 24px; font-size: clamp(3.4rem, 8vw, 7.5rem); line-height: .86; letter-spacing: -.065em; font-weight: 850; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.72); }
.hero-copy { max-width: 690px; font-size: clamp(1.08rem, 1.8vw, 1.35rem); color: #d4dade; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-size: .82rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; transition: transform .2s, background .2s, border-color .2s; border: 1px solid transparent; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: #141414; }
.btn.ghost { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); color: #fff; }
.btn.dark { background: #101416; color: #fff; }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 660px; margin-top: 66px; border-top: 1px solid rgba(255,255,255,.24); }
.hero-meta > div { padding: 18px 28px 0 0; }
.hero-meta strong { font-size: 1.7rem; line-height: 1; display: block; }
.hero-meta span { font-size: .74rem; color: #aeb8bd; text-transform: uppercase; letter-spacing: .08em; }
.scroll-cue { position: absolute; right: 4vw; bottom: 48px; z-index: 2; writing-mode: vertical-rl; text-transform: uppercase; letter-spacing: .15em; color: #b6bec2; font-size: .65rem; }
.scroll-cue::after { content: ""; display: inline-block; width: 1px; height: 54px; background: linear-gradient(var(--accent), transparent); margin-top: 12px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.02); }
.stat { padding: 40px 34px; min-height: 180px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.stat:last-child { border-right: 0; }
.stat-number { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .9; letter-spacing: -.055em; font-weight: 850; }
.stat-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .075em; }

/* Grids / cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); min-height: 275px; position: relative; overflow: hidden; }
.feature-card::before { content: ""; position: absolute; width: 140px; height: 140px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -55px; top: -50px; }
.feature-card .num { color: var(--accent); font-weight: 900; font-size: .74rem; letter-spacing: .1em; }
.feature-card h3 { font-size: 1.5rem; line-height: 1.12; margin: 56px 0 12px; }
.feature-card p { color: var(--muted); margin: 0; }

.project-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.project-card { position: relative; min-height: 520px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.project-card.small { min-height: 249px; }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover img { transform: scale(1.03); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,10,12,.9), rgba(7,10,12,.08) 68%); }
.project-info { position: absolute; z-index: 2; inset: auto 28px 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.project-info small { text-transform: uppercase; letter-spacing: .11em; color: #c3ccd1; font-weight: 800; }
.project-info h3 { font-size: clamp(1.55rem, 3vw, 2.65rem); margin: 4px 0 0; line-height: 1; }
.project-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.34); display: grid; place-items: center; flex: 0 0 auto; }
.project-stack { display: grid; gap: 22px; }

.blueprint-card { min-height: 250px; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background-color: #151b1f; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.blueprint-card::after { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(255,122,26,.38); transform: rotate(38deg); right: -80px; top: -90px; }
.blueprint-card .tag { color: var(--accent); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 850; }
.blueprint-card h3 { font-size: 2rem; margin: 4px 0 0; position: relative; z-index: 1; }

/* Image split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; min-height: 560px; position: relative; box-shadow: var(--shadow); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-copy h2 { font-size: clamp(2.2rem, 4.5vw, 4.4rem); line-height: .98; letter-spacing: -.05em; margin: 14px 0 24px; }
.split-copy p { color: var(--muted); }
.checks { display: grid; gap: 12px; margin: 28px 0 34px; }
.check { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.check::before { content: "↗"; color: var(--accent); font-weight: 900; }

/* CTA */
.cta { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; padding: 58px; background: linear-gradient(120deg, #171d21, #0e1214); }
.cta::after { content: "RT"; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-size: 17rem; line-height: 1; font-weight: 900; letter-spacing: -.1em; color: rgba(255,255,255,.025); }
.cta h2 { font-size: clamp(2.1rem, 5vw, 4.6rem); line-height: .95; margin: 0 0 18px; max-width: 850px; letter-spacing: -.055em; }
.cta p { color: var(--muted); max-width: 650px; margin: 0 0 30px; }

/* Inner pages */
.page-hero { padding: 170px 0 80px; min-height: 560px; display: flex; align-items: end; position: relative; overflow: hidden; background: #101416; }
.page-hero.has-image { min-height: 690px; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,12,.93), rgba(7,10,12,.45)), linear-gradient(0deg, rgba(7,10,12,.88), transparent 60%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(3.3rem, 8vw, 7rem); line-height: .88; letter-spacing: -.065em; margin: 16px 0 20px; max-width: 1000px; }
.page-hero p { max-width: 750px; color: #c5cdd1; font-size: 1.18rem; }
.breadcrumb { color: #aab4b9; font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; }
.breadcrumb span { color: var(--accent); }

.timeline { position: relative; padding-left: 30px; border-left: 1px solid var(--line); display: grid; gap: 42px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); left: -36px; top: .55rem; box-shadow: 0 0 0 6px var(--accent-soft); }
.timeline-item strong { font-size: 1.7rem; display: block; margin-bottom: 6px; }
.timeline-item p { margin: 0; color: var(--muted); }

.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service { padding: 36px; border-radius: var(--radius); border: 1px solid var(--line); background: #14191d; }
.service .icon { color: var(--accent); font-size: 1.7rem; }
.service h3 { font-size: 1.65rem; margin: 24px 0 10px; }
.service p { margin: 0; color: var(--muted); }

.video-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #07090a; box-shadow: var(--shadow); }
.video-frame video { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #050607; }
.project-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 38px; }
.project-tab { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.project-tab small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: .66rem; }
.project-tab strong { font-size: 1.12rem; }
.project-tab.active { border-color: rgba(255,122,26,.7); background: var(--accent-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.contact-card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact-card small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; margin-bottom: 5px; }
.contact-card a, .contact-card strong { font-size: 1.18rem; }
.form { display: grid; gap: 16px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #14191d; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #b6c0c5; margin: 0 0 7px; }
.field input, .field textarea { width: 100%; color: #fff; background: #0d1113; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 14px 15px; outline: 0; transition: border-color .2s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.honeypot { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 12px; background: rgba(91,200,128,.12); border: 1px solid rgba(91,200,128,.32); }
.notice.error { background: rgba(255,90,90,.10); border-color: rgba(255,90,90,.28); }

/* Footer */
.site-footer { background: #080a0b; border-top: 1px solid var(--line); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .8fr; gap: 70px; }
.footer-brand p { max-width: 430px; color: #8e9aa0; font-size: .9rem; }
.footer-title { text-transform: uppercase; letter-spacing: .11em; color: #aeb8bd; font-size: .68rem; font-weight: 800; margin-bottom: 14px; }
.footer-links { display: grid; gap: 9px; font-size: .92rem; }
.footer-links a { color: #d6dcdf; }
.footer-bottom { margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: #78858b; font-size: .76rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .nav { position: fixed; inset: 0; background: rgba(8,10,11,.98); display: flex; flex-direction: column; justify-content: center; gap: 24px; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .2s; }
  .nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav a { font-size: 1.25rem; }
  .menu-btn { display: block; position: relative; z-index: 1002; }
  .section-head, .split, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards-3 { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-stack { grid-template-columns: 1fr 1fr; }
  .split-media { min-height: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container, .narrow, .header-inner, .hero-content { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 78px 0; }
  .site-header { height: 72px; }
  .brand-mark { width: 40px; height: 40px; }
  .hero-content { padding-bottom: 50px; }
  .hero h1 { font-size: clamp(3.25rem, 17vw, 5.3rem); }
  .hero-meta { grid-template-columns: 1fr 1fr; max-width: 100%; margin-top: 48px; }
  .hero-meta > div:nth-child(3) { grid-column: 1 / -1; }
  .scroll-cue { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 145px; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .stat:last-child { border-bottom: 0 !important; }
  .project-card { min-height: 420px; }
  .project-stack { grid-template-columns: 1fr; }
  .service-list, .project-tabs, .form-row { grid-template-columns: 1fr; }
  .cta { padding: 36px 26px; }
  .page-hero { padding-top: 135px; min-height: 520px; }
  .page-hero.has-image { min-height: 590px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .section-head h2, .section-title { font-size: clamp(2.35rem, 12vw, 3.7rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
