:root {
  --ink: #101b2a;
  --night: #0c1421;
  --night-alt: #111f31;
  --paper: #f2f5f8;
  --white: #fff;
  --muted: #45556a;
  --soft: #b6c6d9;
  --line: #d6dfe9;
  --blue: #1b5b7c;
  --cyan: #8ee5fa;
  --lilac: #c5afff;
  --heading: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Code", Consolas, "Courier New", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); line-height: 1.6; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.07; letter-spacing: -.045em; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 3px solid #1877a4; outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, .contact :focus-visible, .case-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }
html { scroll-padding-top: 1.25rem; }
.shell { width: min(1180px, calc(100% - 6rem)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); white-space: nowrap; overflow: hidden; border: 0; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 4; padding: .7rem 1rem; background: var(--cyan); color: var(--night); }
.site-header { background: var(--night); color: var(--white); border-bottom: 1px solid #263546; }
.nav-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .65rem 1.4rem; }
.nav-inner { min-height: 74px; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; font: 750 1.35rem/1 var(--heading); letter-spacing: -.035em; }
.wordmark img { object-fit: contain; }
.wordmark span span, .hero h1 span { color: var(--cyan); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.75rem, 3vw, 2.15rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: #d5e0ee; font-size: .9rem; font-weight: 550; text-decoration: none; }
nav a:hover, .site-footer a:hover, .back:hover { text-decoration: underline; text-underline-offset: .28em; }

.hero { overflow: hidden; color: var(--white); background: var(--night); }
.hero-inner { display: grid; grid-template-columns: 1fr .92fr; gap: clamp(2rem, 6vw, 5.8rem); align-items: center; min-height: clamp(440px, 48vw, 610px); padding-block: clamp(2.75rem, 5.6vw, 5rem); }
.hero-copy { position: relative; z-index: 1; }
.label { display: flex; flex-wrap: wrap; gap: .35rem .55rem; align-items: center; font: 700 .74rem/1.45 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--blue); }
.hero .label, .case-hero .label { color: var(--cyan); }
.role-line { flex: 0 0 1.65rem; height: 1px; background: var(--cyan); }
.hero h1 { margin-block: .85rem 1.25rem; font-size: clamp(4.45rem, 9.3vw, 8.9rem); font-weight: 780; line-height: .89; letter-spacing: -.085em; }
.hero-lead, .case-lead { max-width: 53ch; color: #c6d4e5; font-size: clamp(1rem, 1.7vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.hero .actions { margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 46px; padding: .55rem 1.05rem; border: 1px solid transparent; border-radius: 7px; font-size: .91rem; font-weight: 700; text-decoration: none; }
.button span, .case-link span { line-height: 1; }
.button-primary { color: #101d2a; background: var(--cyan); }
.button-primary:hover { background: #c4f2ff; }
.button-ghost { color: #e9eff7; border-color: #4a6076; background: #142134; }
.button-ghost:hover { background: #24374b; }
.hero-identity { position: relative; isolation: isolate; display: grid; place-items: center; min-width: 0; width: 100%; padding: 9%; aspect-ratio: 1.14; overflow: hidden; background: radial-gradient(ellipse at 27% 18%, #1b4050, transparent 60%), radial-gradient(ellipse at 80% 90%, #352859, transparent 60%), #142134; border: 1px solid #385268; border-radius: 16px; }
.hero-identity::before { position: absolute; z-index: -1; inset: 0; content: ""; background-image: linear-gradient(#bce3ff12 1px, transparent 1px), linear-gradient(90deg, #bce3ff12 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(ellipse, #000 22%, #0004 95%); }
.identity-ring { position: absolute; inset: 11% 15%; z-index: -1; border: 1px solid #accfff38; border-radius: 50%; box-shadow: 0 0 0 15px #bde1ff08, 0 0 0 30px #bde1ff07; }
.hero-identity img { width: 100%; max-width: 370px; height: auto; aspect-ratio: 480 / 460; object-fit: contain; filter: drop-shadow(0 12px 20px #0007); }

.section { padding-block: clamp(3.35rem, 6vw, 5.7rem); }
.section h2, .contact h2 { font-size: clamp(2.35rem, 5vw, 4.35rem); font-weight: 770; }
.section-heading { margin-bottom: clamp(1.3rem, 3.6vw, 2.3rem); }
.feature-card, .mini-card { background: var(--white); border: 1px solid var(--line); overflow: hidden; border-radius: 13px; }
.feature-card { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 340px; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.25rem, 3vw, 1.8rem); }
.feature-card .card-body { justify-content: center; padding: clamp(1.5rem, 4.2vw, 3.3rem); }
.card-body h3 { margin-top: .4rem; font-size: clamp(1.45rem, 2.3vw, 2rem); }
.feature-card h3 { font-size: clamp(2.15rem, 4.1vw, 3.35rem); }
.card-body p:not(.label) { max-width: 48ch; color: var(--muted); margin-top: .7rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin-block: 1.2rem .8rem; list-style: none; }
.tags li { padding: .22rem .46rem; color: #334b60; border: 1px solid #d7e2eb; border-radius: 5px; background: #f2f6fa; font: 650 .71rem/1.35 var(--mono); }
.case-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: #165778; font-weight: 750; text-decoration: underline; text-underline-offset: .22em; }
.case-link:hover { color: #7827a8; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.mini-card { display: grid; grid-template-rows: auto 1fr; }
.mini-card .tags { margin-top: auto; padding-top: 1.2rem; }
.project-cover { display: grid; place-items: center; overflow: hidden; padding: 1.15rem; min-height: 143px; }
.cover-knowledge { align-content: center; gap: .6rem; min-width: 0; padding: clamp(.85rem, 3vw, 2.5rem); color: #deebf4; background: radial-gradient(ellipse at 21% 45%, #2e5e70, transparent 65%), linear-gradient(135deg, #162839, #342858); }
.cover-knowledge figcaption { font-size: .73rem; color: #dbe5ef; }
.mock-window { width: min(100%, 480px); overflow: hidden; border: 1px solid #58758c; border-radius: 10px; background: #142435; box-shadow: 0 14px 30px #10141b70; }
.mock-bar { display: flex; align-items: center; gap: .62rem; padding: .6rem .8rem; background: #1c2f43; color: #dcebf6; font: .73rem/1.35 var(--mono); }
.traffic { display: inline-flex; gap: .23rem; }
.traffic i { display: block; width: 6px; height: 6px; background: #8ca9bb; border-radius: 50%; }
.traffic i:first-child { background: var(--lilac); }
.traffic i:last-child { background: var(--cyan); }
.mock-page { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.mock-side { display: grid; align-content: start; gap: .54rem; padding: .95rem .63rem; background: #17283b; color: #c4d5e3; font-size: .7rem; }
.mock-side span:first-child { color: var(--cyan); }
.mock-main { min-width: 0; display: grid; gap: .42rem; padding: .92rem .68rem; }
.mock-field, .mock-result { border: 1px solid #43586f; border-radius: 5px; padding: .3rem .47rem; line-height: 1.4; }
.mock-field { color: var(--cyan); border-color: #6ba0b3; font-size: .78rem; }
.mock-result { display: grid; color: #f0f5fb; font-size: .72rem; }
.mock-result span { font-size: .64rem; color: #b6c8dc; }
.cover-orbivia { background: #d7edf1; }
.routes-visual { position: relative; display: flex; align-items: center; gap: .7rem; font: 700 .7rem/1.2 var(--mono); color: #21435a; }
.routes-visual::before { content: ""; position: absolute; inset: 50% 14% auto; border-top: 2px dashed #4e8396; }
.routes-visual i { position: absolute; width: 10px; height: 10px; top: -22px; left: 12%; border: 2px solid #286789; border-radius: 50%; background: #d7edf1; }
.routes-visual i:nth-child(2) { top: auto; bottom: -15px; left: 40%; }
.routes-visual i:nth-child(3) { top: -18px; left: 82%; }
.routes-visual span { position: relative; padding: .5rem .55rem; border: 1px solid #6392a4; border-radius: .45rem; background: #f0fbfd; }
.cover-dotfiles { background: #182b3e; }
.terminal-visual { width: min(100%, 220px); overflow: hidden; background: #101c2a; color: #edf5fa; border: 1px solid #546c84; border-radius: 7px; font: .72rem/1.42 var(--mono); }
.terminal-visual div { display: flex; align-items: center; gap: .45rem; padding: .34rem .55rem; background: #22394e; color: #d9e9f7; }
.terminal-visual div span { width: 7px; height: 7px; border-radius: 50%; background: var(--lilac); }
.terminal-visual pre { margin: 0; padding: .4rem .6rem; font: inherit; white-space: pre-wrap; }
.terminal-visual b { color: var(--cyan); }
.cover-tap { background: #e8e0fa; }
.tiles-visual { display: grid; grid-template-columns: repeat(6, 21px); gap: 4px; transform: rotate(-5deg); border: 1px solid #a792cb; padding: 6px; border-radius: 10px; background: #d9c9f2; }
.tiles-visual i { display: block; width: 21px; aspect-ratio: 1; border-radius: 6px; border: 1px solid #0003; box-shadow: inset 0 0 0 2px #fff3; }
.tile-a { background: #6654ae; }
.tile-b { background: #46acc4; }
.tile-c { background: #d17c88; }
.tile-d { background: #f1bc62; }

.experience { background: var(--white); border-top: 1px solid var(--line); }
.experience-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.55rem, 6vw, 5rem); }
.experience-intro { margin-top: .8rem; max-width: 39ch; color: var(--muted); }
.experience-list article { border-top: 1px solid var(--line); padding-block: 1.05rem; }
.experience-list article:last-child { border-bottom: 1px solid var(--line); }
.experience-list h3 { font-size: 1.19rem; letter-spacing: -.024em; }
.experience-list p { margin-top: .5rem; color: var(--muted); }
.contact { padding-block: clamp(2.7rem, 6vw, 4.65rem); background: linear-gradient(110deg, #142737, #152337 70%, #292448); color: var(--white); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.15rem; }
.site-footer { color: #c1cfe0; background: var(--night); }
.footer-inner { min-height: 66px; font-size: .82rem; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; gap: .35rem; text-decoration: none; }
.dot { color: #72b4cf; }

.case-hero { padding-block: clamp(2.65rem, 6vw, 4.6rem); color: var(--white); background: radial-gradient(ellipse at 81% 40%, #293e57, transparent 53%), var(--night); }
.case-hero-inner { display: grid; justify-items: start; }
.back { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin: -.6rem 0 .9rem; color: #d4e3f1; font-size: .9rem; text-decoration: none; }
.case-hero h1 { margin-block: .65rem .8rem; font-size: clamp(2.85rem, 7.25vw, 6rem); }
.case-lead { max-width: 66ch; }
.case-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 2fr); align-items: start; gap: clamp(1.35rem, 4.5vw, 4rem); padding-block: clamp(2.15rem, 4.6vw, 3.8rem); }
.case-facts { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem; }
.case-facts dl { display: grid; gap: .78rem; }
.case-facts dl > div + div { border-top: 1px solid var(--line); padding-top: .78rem; }
.case-facts dt { color: var(--blue); font: 700 .74rem/1.4 var(--mono); }
.case-facts dd { font-weight: 650; margin-top: .22rem; }
.case-story { display: grid; gap: 1.6rem; }
.case-story h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.case-story p { margin-top: .57rem; max-width: 74ch; color: var(--muted); }
.case-demo { background: #e8f0f6; border: 1px solid #c9d9e5; border-radius: 12px; padding: clamp(1rem, 3vw, 1.5rem); }
.demo-search { margin-top: 1rem; }
.demo-search label { display: block; margin-bottom: .25rem; font-size: .85rem; font-weight: 700; }
.demo-search input { width: min(100%, 430px); min-height: 44px; padding: .45rem .7rem; border: 1px solid #7598b0; border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; }
.demo-status { font-size: .83rem; }
.demo-items, .architecture { display: grid; gap: .5rem; margin-top: .8rem; padding: 0; list-style: none; }
.architecture { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-items li, .architecture > * { display: grid; align-content: start; gap: .13rem; padding: .65rem .75rem; background: var(--white); border: 1px solid #d3e0e9; border-radius: 7px; }
.demo-items span, .architecture span { color: var(--muted); font-size: .85rem; }
.score-examples dd { color: var(--blue); font-weight: 750; }
.other-projects { padding-bottom: 2.5rem; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 3rem); }
  .hero-inner { gap: 2rem; }
  .hero h1 { font-size: clamp(4rem, 10.4vw, 6.2rem); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .architecture { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .shell { width: calc(100% - 2rem); }
  .nav-inner { min-height: 62px; }
  .wordmark { gap: .25rem; font-size: 1.12rem; }
  .wordmark img { width: 26px; height: 26px; }
  nav { gap: .55rem; }
  nav a { font-size: .78rem; }
  .hero-inner, .feature-card, .project-grid, .experience-grid, .case-layout { grid-template-columns: 1fr; }
  .hero-inner { gap: 1.6rem; min-height: 0; }
  .hero h1 { font-size: clamp(3rem, 11.5vw, 5rem); }
  .hero h1 br { display: none; }
  .hero-identity { width: 100%; aspect-ratio: 1.5; padding: 6%; }
  .hero-identity img { max-width: 230px; width: 56%; }
  .identity-ring { inset: 9% 21%; }
  .feature-card { min-height: auto; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .case-facts dl { gap: .55rem; }
  .case-facts dl > div + div { padding-top: .55rem; }
}

@media (max-width: 355px) {
  .nav-inner { flex-wrap: wrap; gap: 0 .5rem; padding-block: .25rem; }
  .mock-side { display: none; }
  .mock-page { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; padding-block: .45rem; }
}

