/* Elevate Interactive - corporate site. No external fonts/scripts (no cookies, no third-party requests). */
:root {
  --ink: #0d1424;
  --ink-2: #3b4459;
  --ink-3: #6b7489;
  --line: #e4e7ee;
  --bg: #ffffff;
  --bg-2: #f6f7fa;
  --navy: #0b1220;
  --accent: #0f5bff;
  --accent-2: #3b82f6;
  --radius: 14px;
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-family: Arial, Helvetica, sans-serif; font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.brand small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13.5px; letter-spacing: 0; text-transform: none; margin-top: 3px; }
.brand .name { line-height: 1; }
.nav { display: flex; gap: 30px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #1a2438; }
.btn-line { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* hero */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(900px 480px at 85% 10%, rgba(15,91,255,.35), transparent 60%),
  radial-gradient(700px 420px at 10% 110%, rgba(56,140,255,.22), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #9cc3ff; font-weight: 600; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 22px; max-width: 900px; font-weight: 750; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #6fa8ff, #b3d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: #c4c9d6; max-width: 640px; margin: 0 0 36px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 88px; border-top: 1px solid rgba(255,255,255,.14); }
.hero .facts div { padding: 26px 24px 0 0; }
.hero .facts b { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.hero .facts span { font-size: 14px; color: #9aa3b8; }

/* sections */
section { padding: 112px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 56px; }
.head .eyebrow { color: var(--accent); }
.head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.025em; margin: 16px 0 16px; font-weight: 720; }
.head p { color: var(--ink-2); font-size: 18px; margin: 0; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: #eaf1ff; color: var(--accent); margin-bottom: 22px; }
.card h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* project */
.project { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.project .art { background: #081426; position: relative; min-height: 420px; overflow: hidden; }
.project .art::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(420px 300px at 30% 30%, rgba(56,189,248,.35), transparent 60%),
  radial-gradient(500px 360px at 80% 90%, rgba(15,91,255,.45), transparent 60%); }
.project .art .blocks { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px; }
.project .art .mark { position: absolute; left: 40px; bottom: 40px; color: #fff; }
.project .art .mark .t { font-size: 42px; font-weight: 800; letter-spacing: -.03em; }
.project .art .mark .t i { font-style: normal; color: #7cc8ff; }
.project .art .mark .t b { color: #4d8dff; font-weight: 800; }
.project .art .mark .s { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #b8d4ff; }
.project .body { padding: 48px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: #eaf1ff; border-radius: 999px; padding: 6px 12px; }
.project h3 { font-size: 30px; letter-spacing: -.02em; margin: 18px 0 12px; }
.project p { color: var(--ink-2); margin: 0 0 22px; }
.list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.list li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: #eaf1ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.link { font-weight: 600; color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* principles */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row .n { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.row h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.row p { margin: 0; color: var(--ink-2); }

/* contact */
.contact { background: var(--navy); color: #fff; border-radius: 22px; padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 100% 0%, rgba(15,91,255,.4), transparent 60%); }
.contact > * { position: relative; }
.contact h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.025em; margin: 14px 0 14px; line-height: 1.12; }
.contact p { color: #c4c9d6; margin: 0; }
.contact .eyebrow { color: #9cc3ff; }
.contact dl { margin: 0; display: grid; gap: 22px; align-content: center; }
.contact dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8f98ad; margin-bottom: 4px; }
.contact dd { margin: 0; font-size: 16px; }
.contact dd a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }

/* footer */
footer { padding: 48px 0 40px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* legal pages */
.legal { padding: 88px 0 100px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: 40px; letter-spacing: -.03em; margin: 14px 0 32px; }
.legal h2 { font-size: 20px; margin: 40px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--ink-2); }
.legal .box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.legal .box p { margin: 4px 0; }

/* responsive */
@media (max-width: 920px) {
  .nav { display: none; }
  .grid3 { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
  .project .art { min-height: 260px; }
  .project .body { padding: 32px 24px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .contact { grid-template-columns: 1fr; padding: 40px 24px; }
  .hero .wrap { padding-top: 80px; padding-bottom: 72px; }
  .hero .facts { grid-template-columns: 1fr; margin-top: 56px; }
  .hero .facts div { padding: 18px 0 0; }
  section { padding: 80px 0; }
}
@media (max-width: 480px) { .wrap { padding: 0 16px; } .top .btn { display: none; } }
.btn-accent { background: var(--accent); color: #fff; } .btn-accent:hover { background: #0a46cc; } .pt0 { padding-top: 0; }
.project .art { background: #07101f url("endrock-earth.jpg") center/cover no-repeat; }
.project .art::before { background: linear-gradient(180deg, rgba(7,16,31,0) 35%, rgba(7,16,31,.85) 100%), radial-gradient(500px 360px at 80% 90%, rgba(15,91,255,.35), transparent 60%); }
.project .art .blocks { display: none; }
.project .art { min-height: 360px; } @media (max-width: 920px) { .project .art { min-height: 220px; } }

/* fixes carried over from later versions */
[hidden] { display: none !important; }

/* ---- light / dark switch (assets/theme.js sets data-theme="dark" on <html>) ---- */
.top .wrap { justify-content: flex-start; gap: 16px; }
.brand { margin-right: auto; }
.nav { margin-right: 14px; }
.theme-toggle { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef2fa;
  --ink-2: #b7c0d4;
  --ink-3: #8d97ad;
  --line: #223049;
  --bg: #0b1220;
  --bg-2: #0f182b;
  --navy: #060b16;
  --accent-text: #7aabff;
}
:root[data-theme="dark"] .top { background: rgba(11, 18, 32, .88); }
:root[data-theme="dark"] .hero { border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .btn-dark { background: #1b2740; }
:root[data-theme="dark"] .btn-dark:hover { background: #24324f; }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .project { background: #111b30; }
:root[data-theme="dark"] .card .ic, :root[data-theme="dark"] .tag { background: #15294f; color: var(--accent-text); }
:root[data-theme="dark"] .list li::before { background-color: #15294f; }
:root[data-theme="dark"] .head .eyebrow, :root[data-theme="dark"] .link, :root[data-theme="dark"] .legal a { color: var(--accent-text); }
:root[data-theme="dark"] .contact { border: 1px solid var(--line); }
@media (max-width: 480px) { .top .wrap { gap: 10px; } }
.legal .eyebrow { color: var(--accent); }
:root[data-theme="dark"] .legal .eyebrow { color: var(--accent-text); }

/* ---- contact form (inside the dark contact box) ---- */
.contact { grid-template-columns: 1fr 1.15fr; }
.contact dl { margin-top: 36px; align-content: start; }
.cform { display: grid; gap: 14px; align-content: start; }
.cform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform label { display: block; font-size: 13px; font-weight: 600; color: #dbe2ef; margin-bottom: 6px; }
.cform label span { font-weight: 400; color: #8f98ad; }
.cform input, .cform select, .cform textarea { width: 100%; font: inherit; font-size: 15px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 11px 13px; }
.cform select option { color: #0d1424; }
.cform textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.cform input::placeholder, .cform textarea::placeholder { color: #8f98ad; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 2px solid rgba(91,150,255,.6); outline-offset: 0; border-color: #5b96ff; }
.cform [aria-invalid="true"] { border-color: #ff9f93; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .send { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.cform .btn:disabled { opacity: .6; cursor: default; }
.cform .note { flex: 1 1 220px; font-size: 13px; color: #8f98ad; margin: 0; }
.cform .note a { color: #c4c9d6; }
.cf-msg { margin: 0; font-size: 14px; color: #ffb4a9; min-height: 0; }
.cf-msg:empty { display: none; }
.cf-done { padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.05); outline: none; }
.cf-done h3 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.cf-done p { margin: 0; color: #c4c9d6; }
@media (max-width: 920px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cform .two { grid-template-columns: 1fr; } }

/* language switch */
.lang { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-decoration: none; color: var(--ink-2); }
.lang:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 480px) { .lang { min-width: 36px; height: 36px; } }
