:root {
  color-scheme: dark;
  --bg: #080a10;
  --ink: #f7f8ff;
  --muted: #a6afc2;
  --line: #252a38;
  --accent: #aab9ff;
  --blue: #3959ff;
  --panel: #101522;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1,h2,h3,p,figure { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
img,video { display: block; max-width: 100%; }
button,input,textarea,select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
p { color: var(--muted); line-height: 1.6; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 2; background: white; color: #080a10; padding: .7rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.shell { width: min(1320px, calc(100% - 9vw)); margin-inline: auto; }
.bar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.bar nav { display: flex; flex-wrap: wrap; gap: clamp(12px,3vw,38px); }
.bar nav a,footer a { text-decoration: none; color: var(--muted); }
.bar nav a:hover,footer a:hover { color: white; }
.wordmark { display: inline-flex; flex: none; }
.wordmark img { width: clamp(140px, 19vw, 190px); height: auto; }
footer small { color: var(--muted); }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; text-align: center; border: 1px solid transparent; border-radius: 6px; padding: .65rem .92rem; text-decoration: none; color: white; font-weight: 650; cursor: pointer; transition: background .18s; }
.button:disabled { opacity: .65; cursor: default; }
.primary { background: var(--blue); }
.primary:hover { background: #2846e3; }
.outline { border-color: #46516f; background: #101522; }
.outline:hover { background: #232c48; }
.hero { position: relative; isolation: isolate; min-height: min(710px,88vh); display: grid; grid-template-columns: 1fr .95fr; align-items: center; padding-block: clamp(65px,10vw,150px); }
.hero::before { content: ""; position: absolute; inset: 0 -4vw; z-index: -1; background: radial-gradient(ellipse at 66% 52%,#243997 0, #121a46 28%, transparent 65%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
h1,h2 { font-weight: 730; letter-spacing: -.075em; line-height: .96; text-wrap: balance; }
h1 { font-size: clamp(3.7rem,8.1vw,8.25rem); }
h1 em { color: #b9c7ff; font-style: normal; }
h2 { font-size: clamp(2.7rem,5.65vw,5.6rem); }
h3 { font-size: clamp(1.3rem,2.5vw,2.25rem); letter-spacing: -.04em; line-height: 1.08; }
.hero-copy > p:not(.eyebrow) { margin-top: 1.5rem; max-width: 31rem; font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.hero-media { align-self: center; margin-left: -11%; border: 1px solid #485685; border-radius: 16px; overflow: hidden; background: #0d1224; box-shadow: 0 28px 90px #0009; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 1.57; object-fit: cover; object-position: 65% 38%; }
.hero-media figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding: .9rem 1.05rem; color: var(--muted); font-size: .9rem; }
.hero-media figcaption a { color: var(--accent); }
.section { padding-block: clamp(64px,9vw,132px); scroll-margin-top: 1rem; }
.section-heading { display: flex; justify-content: space-between; gap: 1.25rem; align-items: end; margin-bottom: 2rem; }
.section-heading > p { max-width: 22rem; }
.work-nav { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.1rem; }
.work-nav a { padding: .56rem .73rem; border: 1px solid #343e57; border-radius: 5px; text-decoration: none; color: var(--accent); }
.work-nav a:hover { background: var(--panel); }
.portfolio { display: grid; gap: clamp(28px,5vw,72px); }
.case { display: grid; grid-template-columns: 1.44fr 1fr; align-items: start; border: 1px solid var(--line); border-radius: 16px; overflow: clip; background: linear-gradient(135deg,#11182a,var(--bg)); scroll-margin-top: 1.5rem; }
.case:nth-child(even) { grid-template-columns: 1fr 1.44fr; }
.case:nth-child(even) .case-image { grid-column: 2; grid-row: 1; }
.case:nth-child(even) .case-copy { grid-column: 1; grid-row: 1; }
.case-image { display: block; margin: clamp(8px,1.2vw,20px); border-radius: 9px; overflow: hidden; }
.case-image:focus-visible { outline-offset: -2px; }
.case-image img { width: 100%; height: auto; }
.case-copy { min-width: 0; padding: clamp(20px,3vw,45px); }
.case-copy h3 { margin-bottom: .55rem; }
.case-status { margin-block: .7rem 1.05rem; font-size: .9rem; }
summary { cursor: pointer; color: var(--accent); font-weight: 650; padding-block: .45rem; }
dl { margin: 1rem 0; }
dl > div { border-top: 1px solid var(--line); padding: .64rem 0; }
dt { color: var(--ink); font-weight: 700; }
dd { margin: .22rem 0 0; color: var(--muted); line-height: 1.55; }
.case-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .85rem; }
.case-links a,.demo a { color: var(--accent); }
.demo video { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 7px; background: #080a10; margin-bottom: .55rem; }
.steps { margin-top: .55rem; }
.steps ol { color: var(--muted); padding-left: 1.25rem; line-height: 1.6; }
.band { background: #0c111f; border-block: 1px solid var(--line); }
.capabilities { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 1rem; }
.capabilities article { grid-column: span 2; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); padding: clamp(18px,3vw,38px); }
.capabilities article:nth-child(n+4) { grid-column: span 3; }
.capabilities article:first-child { background: #182b74; border-color: #465fbc; }
.capabilities h3,.process h3 { margin-bottom: .6rem; }
.process { display: grid; gap: 1.2rem; grid-template-columns: repeat(3,1fr); padding-left: 0; list-style: none; counter-reset: phase; margin: 0; }
.process li { counter-increment: phase; border-top: 1px solid #46516f; padding-top: 1.2rem; }
.process li::before { content: "0" counter(phase); color: var(--accent); font-variant-numeric: tabular-nums; display: block; margin-bottom: 1rem; }
.consult { display: grid; grid-template-columns: .95fr 1fr; gap: clamp(1.5rem,7vw,7rem); }
.consult h2 + p { margin-top: 1rem; max-width: 32rem; }
form { display: grid; gap: .85rem; border: 1px solid var(--line); padding: clamp(16px,3vw,36px); border-radius: 12px; background: #101522; }
form label { display: grid; gap: .38rem; font-weight: 650; }
input,select,textarea { min-width: 0; width: 100%; background: #0a0e19; color: var(--ink); border: 1px solid #46516f; border-radius: 5px; padding: .65rem; }
textarea { resize: vertical; }
.form-note { font-size: .88rem; }
#result:empty { display: none; }
footer { padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1.15rem; align-items: center; }
footer .wordmark { margin-right: auto; }
@keyframes enter { from { opacity: .55; transform: translateY(13px); } to { opacity: 1; transform: none; } }
.revealed { animation: enter .58s ease-out both; }
@media (max-width: 800px) {
  .bar { padding-block: .65rem; flex-wrap: wrap; }
  .bar nav { order: 3; flex-basis: 100%; }
  .hero { grid-template-columns: 1fr; gap: 1.65rem; min-height: 0; }
  .hero-media { margin-left: 0; }
  .hero-media img { aspect-ratio: 1.65; }
  .section-heading { display: grid; }
  .case,.case:nth-child(even) { grid-template-columns: minmax(0,1fr); }
  .case:nth-child(even) .case-image,.case:nth-child(even) .case-copy { grid-column: auto; grid-row: auto; }
  .capabilities { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .capabilities article,.capabilities article:nth-child(n+4) { grid-column: auto; }
  .process,.consult { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 420px) {
  .bar .button { font-size: .78rem; padding-inline: .48rem; }
  h1 { font-size: clamp(3.05rem,13.1vw,3.7rem); }
  .capabilities { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.demo .play-demo { margin: 0 .6rem .5rem 0; }
.life-visual { position: relative; aspect-ratio: 1.55; min-width: 0; background: radial-gradient(ellipse at 74% 70%, #394485 0%, #192552 40%, #0a0d1a 74%); }
.life-desktop { position: absolute; inset: 8% 19% auto 4%; border-radius: 8px; padding: 2px; background: #6273ac; box-shadow: 0 14px 38px #030611b3; }
.life-visual .life-desktop img { display: block; width: 100%; height: auto; border-radius: 6px; aspect-ratio: auto; object-fit: contain; }
.life-phone { position: absolute; right: 5%; bottom: 5%; width: 32%; border: 3px solid #7383bc; border-radius: 12px; background: #070b17; box-shadow: 0 12px 29px #000b, 0 0 28px #8394ff41; }
.life-visual .life-phone img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 8px; }
.demo-preview { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 7px; overflow: hidden; cursor: pointer; touch-action: manipulation; margin-bottom: .55rem; }
.demo-preview img { width: 100%; height: auto; }
.demo-preview span { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 1px solid var(--accent); background: #101936ec; color: white; }
.demo-preview:hover span { background: var(--blue); }
.demo-note { font-size: .85rem; margin: .35rem 0; }

.case-image { background: transparent; padding: 0; border: 0; cursor: pointer; touch-action: manipulation; }
.case-image:focus-visible { outline-offset: 3px; }
.project-visual { position: relative; width: 100%; aspect-ratio: 1.65; background: radial-gradient(ellipse at 72% 63%, #323d74, #11182d 62%, #0b0f1b); }
.project-desktop { position: absolute; inset: 10% 25% auto 4%; background: #151c2f; border: 2px solid #52628a; border-radius: 8px; overflow: hidden; box-shadow: 0 12px 36px #02050fb3; }
.project-secondary { position: absolute; right: 5%; bottom: 5%; width: 25%; border: 2px solid #6478a4; border-radius: 10px; overflow: hidden; background: #0b0f1b; box-shadow: 0 12px 30px #000b; }
.with-proof .project-secondary { width: 34%; top: 50%; bottom: auto; transform: translateY(-50%); border-radius: 4px; }
.project-visual img { display: block; width: 100%; height: auto; }
.life-visual,.project-visual { display: block; }

#consult a[href^="mailto:"] { color: var(--accent); }
#inquiry-title { margin-block: 0; }
#consult .button { max-width: 100%; }

.privacy-page { max-width: 48rem; padding-block: 3rem; }
.privacy-page h1 { font-size: clamp(2rem, 7vw, 4rem); }
.privacy-page h2 { font-size: clamp(1.2rem, 4vw, 1.65rem); margin-block: 2rem .5rem; }
.privacy-page a, #inquiry-privacy a { color: var(--accent); overflow-wrap: anywhere; }
.privacy-page p, #inquiry-privacy { line-height: 1.65; }
#inquiry-privacy { font-size: .95rem; }
