:root {
  color-scheme: dark;
  --bg: #11110f;
  --surface: #191916;
  --surface-2: #20201c;
  --ink: #f4f0e6;
  --muted: #aaa89f;
  --line: rgba(244, 240, 230, 0.17);
  --line-strong: rgba(244, 240, 230, 0.34);
  --lime: #c8ff48;
  --coral: #ff6c52;
  --blue: #6e8cff;
  --violet: #9f79ff;
  --red: #ff5d62;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --max: 1480px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f0ede4;
  --surface: #faf7ef;
  --surface-2: #e7e2d6;
  --ink: #161713;
  --muted: #696960;
  --line: rgba(22, 23, 19, 0.15);
  --line-strong: rgba(22, 23, 19, 0.3);
  --shadow: 0 28px 80px rgba(74, 68, 53, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); min-width: 320px; overflow-x: hidden; transition: background .3s ease, color .3s ease; }
body::selection { background: var(--lime); color: #11110f; }
a { color: inherit; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; background: var(--lime); color: #11110f; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0; min-height: 78px; padding: 16px clamp(22px, 4vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: #11110f; font-weight: 850; letter-spacing: -.08em; }
.brand-text { font-size: 12px; line-height: 1.06; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.desktop-nav { display: flex; gap: 34px; margin-left: auto; margin-right: 30px; }
.desktop-nav a { position: relative; text-decoration: none; font-size: 13px; color: var(--muted); }
.desktop-nav a::after { content: ""; position: absolute; height: 1px; left: 0; right: 100%; bottom: -5px; background: var(--lime); transition: right .2s ease; }
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after { right: 0; }
.theme-toggle { border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 9px; font: inherit; font-size: 12px; cursor: pointer; padding: 8px 0; }
.theme-toggle-track { width: 34px; height: 18px; border: 1px solid var(--line-strong); border-radius: 20px; padding: 2px; }
.theme-toggle-track span { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transition: transform .25s ease; }
html[data-theme="light"] .theme-toggle-track span { transform: translateX(16px); }

.hero { min-height: 100svh; padding: 145px clamp(22px, 5vw, 76px) 38px; max-width: 1800px; margin: 0 auto; position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); align-items: center; column-gap: clamp(40px, 6vw, 110px); overflow: hidden; }
.hero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(to bottom, black, transparent 92%); opacity: .22; }
.hero-copy { max-width: 920px; min-width: 0; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow span { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--lime) 16%, transparent); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 1000px; font-size: clamp(54px, 7.2vw, 122px); line-height: .91; letter-spacing: -.075em; font-weight: 670; margin: 34px 0 36px; }
h1 > span { display: block; }
h1 em { color: var(--lime); font-style: normal; }
.hero-lead { max-width: 700px; font-size: clamp(18px, 1.5vw, 24px); color: var(--muted); line-height: 1.47; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 100px; text-decoration: none; font-size: 14px; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--lime); color: #11110f; border-color: var(--lime); font-weight: 750; }
.button-primary:hover { background: #d9ff7e; }
.button-quiet:hover { border-color: var(--ink); }
.system-map { position: relative; width: min(42vw, 600px); aspect-ratio: 1; justify-self: end; }
.map-orbit { position: absolute; border: 1px solid var(--line-strong); border-radius: 50%; inset: 12%; animation: rotate 26s linear infinite; }
.orbit-one::before, .orbit-two::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); top: 19%; left: 4%; }
.orbit-two { inset: 28%; animation-direction: reverse; animation-duration: 17s; }
.orbit-two::before { background: var(--coral); top: auto; left: auto; bottom: 8%; right: 10%; }
.map-node { position: absolute; min-width: 105px; min-height: 46px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(10px); border-radius: 14px; box-shadow: var(--shadow); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.map-node small { color: var(--muted); }
.map-center { width: 148px; height: 148px; min-width: 0; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); justify-content: center; text-align: center; color: #11110f; background: var(--lime); border-color: var(--lime); font-weight: 850; font-size: 15px; line-height: 1.2; }
.map-process { left: 0; top: 19%; }
.map-logic { right: 0; top: 10%; }
.map-interface { left: 3%; bottom: 11%; }
.map-result { right: 0; bottom: 24%; }
.hero-index { grid-column: 1 / -1; align-self: end; padding-top: 60px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-family: Consolas, monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.numbers { max-width: var(--max); margin: 0 auto; padding: 0 clamp(22px, 5vw, 76px); display: grid; grid-template-columns: repeat(4, 1fr); }
.number { min-height: 175px; padding: 28px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.number:first-child { border-left: 1px solid var(--line); }
.number strong { font-size: clamp(34px, 4vw, 66px); letter-spacing: -.06em; font-weight: 620; }
.number span { color: var(--muted); font-size: 12px; line-height: 1.45; text-transform: uppercase; letter-spacing: .06em; }

.section { max-width: var(--max); margin: 0 auto; padding: 150px clamp(22px, 5vw, 76px); }
.section-heading { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(240px, .42fr); align-items: end; gap: 36px; margin-bottom: 70px; }
.section-heading h2, .about h2, .closing h2 { font-size: clamp(42px, 5.4vw, 84px); line-height: .98; letter-spacing: -.055em; font-weight: 640; margin: 0; }
.section-heading > p:last-child { color: var(--muted); line-height: 1.55; margin: 0; }
.project-list { display: grid; gap: 30px; }
.project-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.project-wide { display: grid; grid-template-columns: minmax(380px, .82fr) minmax(450px, 1.18fr); min-height: 610px; }
.project-reverse { grid-template-columns: minmax(450px, 1.18fr) minmax(380px, .82fr); }
.project-reverse .project-copy { order: 2; }
.project-reverse .project-visual { order: 1; }
.project-copy { padding: clamp(28px, 4vw, 58px); display: flex; flex-direction: column; }
.project-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font: 11px/1.2 Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; }
.project-copy h3 { font-size: clamp(38px, 4.3vw, 68px); line-height: .96; letter-spacing: -.055em; margin: auto 0 10px; font-weight: 650; }
.project-subtitle { color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 30px; }
.project-description { color: color-mix(in srgb, var(--ink) 78%, var(--muted)); font-size: 17px; line-height: 1.55; max-width: 660px; }
.project-results { list-style: none; padding: 0; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.project-results li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 20px; }
.project-results strong { color: var(--ink); font-weight: 650; }
.project-footer { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: 11px; padding: 7px 10px; }
.project-link { flex: 0 0 auto; color: var(--ink); text-decoration-color: var(--lime); text-underline-offset: 6px; font-size: 13px; font-weight: 650; }
.project-link:hover { color: var(--lime); }
.project-link-muted { color: var(--muted); text-decoration: none; font-weight: 400; }
.project-visual { position: relative; margin: 0; overflow: hidden; min-height: 410px; background: var(--surface-2); }
.project-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.project-visual > img.is-missing { display: none; }
.screenshot-placeholder { position: absolute; inset: 0; padding: clamp(24px, 4vw, 56px); display: grid; place-items: center; color: #11110f; }
.tone-coral .screenshot-placeholder { background: var(--coral); }
.tone-blue .screenshot-placeholder { background: var(--blue); }
.tone-violet .screenshot-placeholder { background: var(--violet); }
.tone-lime .screenshot-placeholder { background: var(--lime); }
.tone-red .screenshot-placeholder { background: var(--red); }
.screenshot-placeholder figcaption { position: absolute; left: 22px; bottom: 18px; font: 10px Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.mock-browser { position: absolute; left: 8%; right: 8%; top: 8%; height: 32px; display: flex; align-items: center; gap: 5px; padding: 0 12px; border-bottom: 1px solid rgba(17,17,15,.25); }
.mock-browser i { width: 6px; height: 6px; border-radius: 50%; background: rgba(17,17,15,.4); }
.mock-browser span { margin-left: auto; font: 9px Consolas, monospace; text-transform: uppercase; letter-spacing: .08em; }
.calendar-mock, .chat-mock { position: absolute; inset: 8%; border: 1px solid rgba(17,17,15,.3); border-radius: 14px; background: rgba(255,255,255,.2); overflow: hidden; padding-top: 32px; }
.calendar-mock { display: grid; grid-template-columns: 22% 1fr; }
.calendar-sidebar { border-right: 1px solid rgba(17,17,15,.2); padding: 24px 16px; display: grid; align-content: start; gap: 13px; }
.calendar-sidebar b { height: 7px; border-radius: 10px; background: rgba(17,17,15,.23); }
.calendar-body { padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calendar-body span { border: 1px solid rgba(17,17,15,.23); border-radius: 9px; background: rgba(255,255,255,.16); }
.chat-mock { padding: 80px 10% 30px; }
.chat-question, .chat-answer { display: block; border-radius: 10px; margin-bottom: 20px; }
.chat-question { height: 48px; width: 70%; margin-left: auto; background: rgba(255,255,255,.28); }
.chat-answer { height: 100px; width: 88%; background: rgba(17,17,15,.13); }
.chat-mock div { width: 70%; padding: 12px; border: 1px solid rgba(17,17,15,.25); border-radius: 10px; display: flex; justify-content: space-between; font-size: 10px; }
.chat-mock small { opacity: .6; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project-compact { min-width: 0; }
.project-compact .project-visual { height: 310px; min-height: 0; }
.project-compact .project-copy { min-height: 390px; padding: 30px; }
.project-compact .project-copy h3 { font-size: clamp(34px, 3.2vw, 48px); margin: 60px 0 16px; }
.project-compact .project-description { font-size: 15px; }
.project-compact .tags { margin-top: auto; margin-bottom: 28px; }
.agent-mock { position: absolute; inset: 9%; display: grid; grid-template-columns: 28% 1fr; background: rgba(255,255,255,.18); border: 1px solid rgba(17,17,15,.27); border-radius: 14px; overflow: hidden; }
.agent-sidebar { border-right: 1px solid rgba(17,17,15,.2); background: rgba(17,17,15,.08); }
.agent-mock div { padding: 30px 24px; display: grid; align-content: start; gap: 15px; }
.agent-mock b { font: 10px Consolas, monospace; text-transform: uppercase; }
.agent-mock i { display: block; width: 92%; height: 22px; border-radius: 6px; background: rgba(17,17,15,.14); }
.agent-mock i:nth-of-type(2) { width: 70%; }
.digits-mock, .code-mock { width: 86%; min-height: 55%; border: 1px solid rgba(17,17,15,.3); border-radius: 16px; background: rgba(255,255,255,.23); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 23px; text-align: center; padding: 25px; }
.digits-mock small, .code-mock small { text-transform: uppercase; font: 9px Consolas, monospace; letter-spacing: .1em; }
.digits-mock strong { font: 700 clamp(26px, 3vw, 50px)/1 Consolas, monospace; letter-spacing: .08em; }
.digits-mock span { width: 50%; height: 3px; background: #11110f; opacity: .3; }
.code-mock strong { font-size: 86px; line-height: .7; letter-spacing: -.08em; }
.code-mock span { font-weight: 650; font-size: 14px; }

.approach { border-top: 1px solid var(--line); }
.approach .section-heading { grid-template-columns: 220px 1fr; }
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.approach-card { min-height: 370px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; }
.approach-card:first-child { border-left: 1px solid var(--line); }
.approach-card > span { color: var(--lime); font: 11px Consolas, monospace; }
.approach-card h3 { margin: auto 0 22px; font-size: clamp(24px, 2vw, 32px); line-height: 1.06; letter-spacing: -.03em; }
.approach-card p { color: var(--muted); font-size: 14px; line-height: 1.58; margin: 0; }

.about { display: grid; grid-template-columns: minmax(0, .78fr) minmax(230px, .38fr) minmax(380px, .84fr); gap: clamp(30px, 4vw, 70px); border-top: 1px solid var(--line); }
.about-title .section-kicker { margin-bottom: 46px; }
.about-portrait { position: relative; align-self: start; margin: 80px 0 0; min-height: 470px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.about-portrait img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; object-position: 50% 35%; filter: saturate(.86) contrast(1.03); }
.about-portrait figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 14px; display: grid; gap: 4px; border-radius: 13px; background: rgba(17,17,15,.84); color: #f4f0e6; backdrop-filter: blur(12px); }
.about-portrait figcaption strong { color: var(--lime); font-size: 15px; }
.about-portrait figcaption span { font-size: 10px; line-height: 1.35; text-transform: uppercase; letter-spacing: .06em; }
.about-copy { padding-top: 80px; }
.about-copy p { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 720px; }
.about-copy .about-lead { color: var(--ink); font-size: clamp(25px, 2.2vw, 36px); line-height: 1.35; letter-spacing: -.03em; }
.competencies { display: flex; flex-wrap: wrap; margin-top: 45px; gap: 8px; }
.competencies span { border: 1px solid var(--line-strong); padding: 10px 13px; border-radius: 100px; font-size: 12px; }

.closing { max-width: none; text-align: center; background: var(--lime); color: #11110f; }
.closing .section-kicker { justify-content: center; color: rgba(17,17,15,.6); }
.closing h2 { max-width: 1050px; margin: 30px auto; }
.closing p:not(.section-kicker) { max-width: 700px; margin: 0 auto 40px; font-size: 18px; line-height: 1.55; }
.closing .button-primary { background: #11110f; color: #f4f0e6; border-color: #11110f; }
.contact-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 26px; }
.contact-links > a:not(.button) { color: #11110f; font-size: 13px; text-underline-offset: 5px; }

.site-footer { max-width: var(--max); margin: 0 auto; padding: 38px clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 12px; }
.site-footer > div { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.site-footer .brand-mark { width: 38px; height: 38px; }
.site-footer p { margin: 0; }
.site-footer a { text-underline-offset: 5px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes rotate { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 135px; }
  .system-map { width: min(75vw, 570px); justify-self: center; margin-top: 70px; }
  .section-heading { grid-template-columns: 160px 1fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .project-wide, .project-reverse { grid-template-columns: 1fr; }
  .project-reverse .project-copy, .project-reverse .project-visual { order: initial; }
  .project-wide .project-copy { min-height: 570px; }
  .project-wide .project-visual { min-height: 570px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-grid article:last-child { grid-column: 1 / -1; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .approach-card:nth-child(3) { border-left: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; padding: 12px 18px; }
  .brand-text, .desktop-nav, .theme-toggle [data-theme-label] { display: none; }
  .site-header .theme-toggle { margin-left: auto; }
  .hero { padding: 115px 20px 28px; min-height: auto; }
  .hero-copy { width: 100%; max-width: calc(100vw - 40px); }
  h1 { font-size: clamp(42px, 11vw, 54px); margin-top: 26px; overflow-wrap: anywhere; }
  .eyebrow { max-width: 100%; font-size: 9px; letter-spacing: .09em; }
  .hero-lead { overflow-wrap: anywhere; }
  .hero-lead { width: 100%; max-width: 330px; }
  .hero-lead { font-size: 18px; }
  .system-map { width: 92vw; transform: scale(.92); margin-left: -8vw; margin-right: -8vw; }
  .map-node { min-width: 90px; padding: 10px; font-size: 10px; }
  .map-center { min-width: 0; width: 120px; height: 120px; font-size: 13px; }
  .hero-index { display: none; }
  .numbers { grid-template-columns: 1fr 1fr; padding: 0 20px; margin-top: 60px; }
  .number { min-height: 145px; }
  .number:nth-child(3) { border-left: 1px solid var(--line); }
  .section { padding: 100px 20px; }
  .section-heading, .approach .section-heading { display: block; margin-bottom: 45px; }
  .section-heading h2 { margin: 28px 0; }
  .project-list, .project-grid { gap: 18px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid article:last-child { grid-column: auto; }
  .project-card { border-radius: 18px; }
  .project-wide .project-copy { min-height: 610px; }
  .project-wide .project-visual { min-height: 410px; }
  .project-copy { padding: 26px 22px; }
  .project-copy h3 { font-size: 43px; }
  .project-results li { display: block; }
  .project-results strong { display: block; margin-bottom: 4px; }
  .project-footer { display: block; }
  .project-footer .tags { margin-bottom: 28px; }
  .project-compact .project-copy { min-height: 370px; }
  .project-compact .project-copy h3 { margin-top: 50px; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-card, .approach-card:nth-child(3) { border-left: 1px solid var(--line); min-height: 290px; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .about-portrait { margin-top: 20px; min-height: 420px; }
  .about-portrait img { min-height: 420px; }
  .about-copy { padding-top: 0; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; }
  .site-footer p { order: 3; width: 100%; }
}

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