:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg-soft: #0b0d13;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.11);
  --line-bright: rgba(255, 255, 255, 0.2);
  --text: #f6f7fb;
  --muted: #9a9fac;
  --blue: #6e8cff;
  --violet: #9b79ff;
  --max-width: 1180px;
  --radius: 24px;
  --space-section: clamp(5rem, 10vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #aabaff; outline-offset: 4px; }
.container { width: min(calc(100% - 2.5rem), var(--max-width)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 1rem; left: 1rem; padding: .7rem 1rem; background: white; color: #08090d; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; z-index: 20; inset: 0 0 auto; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); font-weight: 720; font-size: .82rem; letter-spacing: .16em; text-decoration: none; }
.wordmark-logo { width: 34px; height: 34px; aspect-ratio: 1; border-radius: 50%; object-fit: contain; flex-shrink: 0; display: block; }
.wordmark-mark { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; font-size: .65rem; letter-spacing: -.03em; background: rgba(255,255,255,.035); }
.primary-nav { display: flex; gap: 2rem; align-items: center; }
.primary-nav a { min-height: 44px; display: inline-flex; align-items: center; color: #c8cbd4; font-size: .84rem; text-decoration: none; transition: color .2s ease; }
.primary-nav a:hover { color: white; }
.menu-button { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.menu-button span { display: block; width: 18px; height: 1px; margin: 5px auto; background: white; transition: transform .2s ease; }

.hero { position: relative; min-height: min(900px, 100svh); padding: clamp(9.5rem, 18vh, 13rem) 0 2rem; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.gravity-field { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(12px); opacity: .25; animation: float 12s ease-in-out infinite alternate; }
.orb-one { width: min(42vw, 600px); aspect-ratio: 1; right: -10%; top: 4%; background: radial-gradient(circle, rgba(90,110,255,.7), transparent 68%); }
.orb-two { width: 380px; aspect-ratio: 1; left: -12%; bottom: -20%; background: radial-gradient(circle, rgba(151,83,255,.35), transparent 70%); animation-delay: -5s; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; transform: rotate(-20deg); }
.orbit-one { width: 610px; height: 230px; right: -80px; top: 240px; }
.orbit-two { width: 380px; height: 130px; right: 45px; top: 290px; }
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.eyebrow { margin: 0 0 1.5rem; display: flex; align-items: center; gap: .7rem; color: #b9beca; font-size: .72rem; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.hero h1 { margin: 0; font-size: clamp(4.4rem, 12vw, 9rem); line-height: .82; letter-spacing: -.075em; font-weight: 760; }
.hero-tagline { max-width: 700px; margin: 1.8rem 0 0; font-size: clamp(1.65rem, 3.3vw, 3rem); line-height: 1.14; letter-spacing: -.04em; font-weight: 360; }
em { color: #aab6ff; font-family: Georgia, serif; font-weight: 400; }
.hero-summary { max-width: 570px; margin: 1.7rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.4rem; }
.button { min-height: 50px; padding: .75rem 1.2rem; border: 1px solid transparent; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 2rem; font-size: .84rem; font-weight: 650; text-decoration: none; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #f5f6fa; color: #08090d; }
.button-secondary { border-color: var(--line-bright); background: rgba(255,255,255,.025); }
.hero-object { position: relative; min-height: 440px; display: grid; place-items: center; perspective: 900px; }
.device-shell { width: min(245px, 68vw); aspect-ratio: .54; padding: 8px; border: 1px solid rgba(255,255,255,.26); border-radius: 36px; background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.025)); box-shadow: 0 35px 90px rgba(0,0,0,.65), 0 0 80px rgba(89,92,255,.11); transform: rotate(7deg) translateY(-5px); animation: deviceFloat 7s ease-in-out infinite; }
.device-screen { height: 100%; padding: 1.2rem; border-radius: 29px; background: radial-gradient(circle at 65% 20%, rgba(114,86,255,.23), transparent 35%), #090a10; border: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; }
.screen-label { color: #7c8291; font-size: .55rem; letter-spacing: .18em; }
.screen-core { flex: 1; display: grid; place-items: center; }
.screen-core span { width: 92px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 25px; background: linear-gradient(145deg, #7792ff, #7c4fff); box-shadow: 0 15px 45px rgba(104,76,255,.4); font-size: 2.2rem; font-weight: 730; }
.screen-logo { width: 96px; height: 96px; aspect-ratio: 1; object-fit: contain; border-radius: 50%; box-shadow: 0 12px 35px rgba(0, 162, 255, 0.25), 0 0 20px rgba(110, 140, 255, 0.2); display: block; }
.screen-lines { display: grid; gap: .55rem; }
.screen-lines i { height: 5px; border-radius: 5px; background: rgba(255,255,255,.12); }
.screen-lines i:nth-child(2) { width: 78%; } .screen-lines i:nth-child(3) { width: 48%; }
.status-chip { position: absolute; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(10,11,17,.8); backdrop-filter: blur(8px); color: #aeb3c0; font-size: .55rem; letter-spacing: .13em; }
.chip-one { top: 17%; right: -4%; } .chip-two { bottom: 18%; left: -10%; }
.hero-footnote { position: relative; z-index: 2; padding-top: 2rem; display: flex; justify-content: space-between; color: #666b78; font-size: .63rem; letter-spacing: .15em; text-transform: uppercase; }

.section { padding-block: var(--space-section); }
.section-heading { margin-bottom: clamp(2.5rem, 6vw, 5rem); display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: end; }
.section-heading h2, .about-grid h2, .contact-panel h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 1.02; letter-spacing: -.055em; }
.section-heading > p { max-width: 450px; margin: 0; color: var(--muted); }
.apps-section { background: linear-gradient(180deg, #090a0f, var(--bg)); }
.project-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: clamp(4rem, 8vw, 7rem); }
.project-category-card { min-width: 0; min-height: 310px; padding: clamp(1.35rem, 2.4vw, 2rem); display: flex; flex-direction: column; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.project-category-card:hover { transform: translateY(-5px); border-color: var(--line-bright); background: linear-gradient(145deg, rgba(119,104,255,.1), rgba(255,255,255,.018)); }
.project-category-card:focus-visible { outline: 2px solid #9aa6ff; outline-offset: 4px; }
.category-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #aeb8ff; border: 1px solid rgba(159,169,255,.28); border-radius: 15px; background: rgba(111,91,255,.09); }
.category-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.category-number { margin: 1.5rem 0 0; color: #686e7c; font-size: .62rem; letter-spacing: .18em; }
.project-category-card h3 { margin: auto 0 .75rem; padding-top: 2.5rem; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.08; letter-spacing: -.035em; }
.project-category-card p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.category-cta { margin-top: 1.75rem; display: flex; align-items: center; justify-content: space-between; color: #e9ebf6; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.category-cta > span { color: #9aa6ff; font-size: 1rem; transition: transform .3s ease; }
.project-category-card:hover .category-cta > span { transform: translate(3px, 3px); }
.project-list { scroll-margin-top: 2rem; }
.project-list-heading { margin-bottom: 2rem; }
.project-list-heading h3 { margin: .5rem 0 0; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; }
.app-card { overflow: hidden; min-height: 480px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .3s ease, border-color .3s ease; }
.app-card + .app-card { margin-top: 2rem; }
.app-card:hover { transform: translateY(-5px); border-color: var(--line-bright); }
.app-visual { position: relative; overflow: hidden; min-height: 380px; display: grid; place-items: center; background: radial-gradient(circle at center, rgba(102,85,255,.2), transparent 38%), linear-gradient(145deg, rgba(255,255,255,.035), transparent); border-right: 1px solid var(--line); }
.smart-prompt-visual { background: radial-gradient(circle at center, rgba(76,124,255,.23), transparent 38%), linear-gradient(145deg, rgba(255,255,255,.035), transparent); }
.app-visual::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.app-icon { z-index: 1; width: 132px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 34px; background: linear-gradient(145deg, #7996ff, #764ce9); box-shadow: 0 28px 65px rgba(91,67,228,.35); font-size: 3.2rem; font-weight: 750; }
.app-icon-image { z-index: 1; display: block; width: 148px; height: 148px; aspect-ratio: 1; object-fit: cover; border: 1px solid rgba(255,255,255,.15); border-radius: 35px; box-shadow: 0 28px 65px rgba(91,67,228,.38); }
.visual-ring { position: absolute; width: 90%; height: 32%; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; transform: rotate(-14deg); }
.visual-dot { position: absolute; width: 8px; aspect-ratio: 1; border-radius: 50%; background: #a5b3ff; box-shadow: 0 0 20px #7b8cff; }
.dot-one { top: 24%; right: 24%; } .dot-two { bottom: 22%; left: 20%; width: 5px; }
.app-content { padding: clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.app-index { color: #858b99; font-size: .65rem; letter-spacing: .17em; }
.app-content h3 { margin: .65rem 0 1rem; font-size: clamp(2.5rem, 4.6vw, 4.8rem); line-height: 1; letter-spacing: -.055em; }
.placeholder-copy { max-width: 420px; margin: 0; color: var(--muted); }
.app-link { margin-top: 2rem; gap: 1.25rem; }
.app-screenshots { grid-column: 1 / -1; display: flex; gap: 1rem; overflow-x: auto; padding: clamp(1.25rem, 3vw, 2rem); border-top: 1px solid var(--line); background: rgba(255,255,255,.018); scroll-snap-type: x proximity; scrollbar-color: rgba(150,157,255,.45) transparent; }
.app-screenshots img { flex: 0 0 clamp(190px, 23vw, 270px); width: clamp(190px, 23vw, 270px); height: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; box-shadow: 0 18px 45px rgba(0,0,0,.3); scroll-snap-align: start; }
.coming-soon { margin-top: 2rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: #c6cad4; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.future-note { margin: 2rem 0 0; color: #656a76; font-size: .8rem; text-align: center; }

.about-section { border-top: 1px solid rgba(255,255,255,.05); }
.about-grid { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1fr); gap: clamp(3rem, 9vw, 9rem); align-items: center; }
.about-portrait { position: relative; max-width: 470px; padding: 8px; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); box-shadow: 0 30px 80px rgba(0,0,0,.38), 0 0 65px rgba(91,86,255,.08); }
.about-portrait::after { content: ""; position: absolute; z-index: -1; width: 48%; aspect-ratio: 1; right: -8%; bottom: -7%; border-radius: 50%; background: rgba(105,82,255,.2); filter: blur(45px); }
.about-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1122 / 1402; object-fit: cover; object-position: center 38%; border-radius: 22px; }
.about-content { max-width: 620px; }
.about-copy { padding-top: clamp(1.75rem, 4vw, 3rem); }
.about-copy p { margin: 0 0 1.5rem; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.2rem); }
.about-copy p:first-child { color: #dde0e7; }
.principles-section { border-block: 1px solid var(--line); background: var(--bg-soft); }
.section-heading.compact { grid-template-columns: 1fr; }
.principles-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principles-grid article { min-width: 0; padding: clamp(1.5rem, 3vw, 2.4rem); border-right: 1px solid var(--line); }
.principles-grid article:last-child { border: 0; }
.principles-grid span { color: #666c79; font-size: .65rem; letter-spacing: .15em; }
.principles-grid h3 { margin: 4rem 0 .8rem; font-size: 1.25rem; }
.principles-grid p { margin: 0; color: var(--muted); font-size: .9rem; }

.contact-panel { padding: clamp(2rem, 6vw, 5rem); display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 90% 20%, rgba(98,83,255,.16), transparent 32%), var(--surface); }
.contact-copy p { margin: 0 0 1.2rem; color: var(--muted); }
.contact-links { display: grid; gap: .75rem; }
.contact-link { position: relative; min-height: 76px; padding: .9rem 3rem .9rem 1rem; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.contact-link:hover { transform: translateY(-2px); border-color: var(--line-bright); background: rgba(255,255,255,.055); }
.contact-link:active { transform: translateY(0); background: rgba(255,255,255,.075); }
.contact-link-label { color: #777d8a; font-size: .65rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.contact-link-value { overflow-wrap: anywhere; color: #e8eaf0; font-size: .88rem; }
.contact-link-arrow { position: absolute; right: 1rem; top: 50%; color: #9daaff; transform: translateY(-50%); }
.site-footer { padding: 4rem 0 1.7rem; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; align-items: center; }
.footer-main p { color: var(--muted); font-size: .85rem; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: #858a96; font-size: .78rem; }
.footer-main nav a { min-height: 44px; display: inline-flex; align-items: center; color: #c1c5cf; text-underline-offset: .25em; text-decoration-color: transparent; transition: color .2s ease, text-decoration-color .2s ease; }
.footer-main nav a:hover { color: white; text-decoration-color: currentColor; }
.footer-main small { margin-left: .25rem; color: #565b67; text-transform: uppercase; font-size: .55rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; color: #636874; font-size: .7rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }

.content-page { min-height: 100vh; }
.content-page .site-header { position: relative; background: rgba(7,8,12,.82); }
.content-main { position: relative; overflow: hidden; min-height: calc(100vh - 78px); padding-block: clamp(4.5rem, 10vw, 8rem); }
.content-main::before { content: ""; position: absolute; width: min(60vw, 760px); aspect-ratio: 1; top: -34%; right: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(92,91,255,.16), transparent 68%); pointer-events: none; }
.content-shell { position: relative; z-index: 1; width: min(calc(100% - 2.5rem), 820px); margin-inline: auto; }
.content-header { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.content-header h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: .95; letter-spacing: -.065em; }
.content-intro { max-width: 700px; margin: 1.5rem 0 0; color: #c9ccd5; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.content-card { padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.content-card h2 { margin: 0 0 1rem; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.035em; }
.content-card h2:not(:first-child) { margin-top: 2.5rem; }
.content-card p, .content-card li { color: var(--muted); }
.content-card p { margin: 0 0 1.25rem; }
.content-card ul { margin: 1.25rem 0 0; padding-left: 1.25rem; }
.content-card li { margin-block: .65rem; padding-left: .35rem; }
.content-card a:not(.button) { color: #c8d0ff; text-underline-offset: .25em; }
.content-card .button { margin-top: 1rem; }
.policy-date { display: inline-flex; margin-bottom: 2rem; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: #abb0bd; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.content-footer-note { margin: 2rem 0 0; color: #666c78; font-size: .78rem; }
.category-main { padding-block: clamp(4.5rem, 9vw, 8rem); }
.category-shell { width: min(calc(100% - 2.5rem), var(--max-width)); margin-inline: auto; }
.category-page-header { max-width: 820px; margin-bottom: clamp(3rem, 7vw, 5rem); }
.category-page-header h1 { margin: 0; font-size: clamp(3rem, 8vw, 6.5rem); line-height: .94; letter-spacing: -.065em; }
.category-page-header .content-intro { max-width: 680px; }
.category-back { min-height: 44px; margin-top: 1.5rem; display: inline-flex; align-items: center; color: #c8d0ff; font-size: .8rem; text-underline-offset: .3em; }
.empty-state { min-height: 280px; padding: clamp(2rem, 6vw, 4.5rem); display: grid; place-content: center; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.empty-state h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -.04em; }
.empty-state p { max-width: 520px; margin: .8rem auto 0; color: var(--muted); }
.agent-project-card { max-width:850px; padding:clamp(2rem,6vw,4.5rem); border:1px solid var(--line); border-radius:var(--radius); background:radial-gradient(circle at top right,rgba(104,82,255,.17),transparent 32%),var(--surface); }.agent-project-card h2{margin:.8rem 0 1rem;font-size:clamp(2rem,5vw,4.4rem);line-height:.98;letter-spacing:-.055em}.agent-project-card>p:not(.app-index){max-width:580px;margin:0;color:var(--muted)}.agent-project-card .button{margin-top:2rem}.status-pill{display:inline-flex;margin-top:1rem;padding:.4rem .7rem;border:1px solid rgba(156,166,255,.3);border-radius:999px;color:#c8d0ff;background:rgba(106,89,255,.1);font-size:.65rem;letter-spacing:.09em;text-transform:uppercase}
.hermes-hero{padding:clamp(5rem,12vw,10rem) 0 clamp(4rem,8vw,7rem);background:radial-gradient(circle at 78% 10%,rgba(108,87,255,.2),transparent 24%),linear-gradient(180deg,#090a0f,var(--bg))}.hermes-hero h1{max-width:920px;margin:0;font-size:clamp(3.2rem,8.7vw,8.4rem);line-height:.87;letter-spacing:-.075em}.hermes-lead{max-width:780px;margin:2rem 0 0;color:#c9ccd5;font-size:clamp(1.1rem,2.4vw,1.55rem);line-height:1.45}.hermes-section{padding-block:clamp(3.5rem,8vw,7rem);border-top:1px solid rgba(255,255,255,.06)}.hermes-prose{max-width:760px}.hermes-prose h2,.section-label h2,.split-grid h2{margin:0;font-size:clamp(2rem,5vw,4.4rem);line-height:.98;letter-spacing:-.055em}.hermes-prose p{color:var(--muted)}.section-label{margin-bottom:2rem}.feature-grid,.challenge-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.feature-grid span,.challenge-grid article{min-width:0;padding:1.25rem;border-right:1px solid var(--line);color:#d9dce6}.feature-grid span{min-height:120px;display:flex;align-items:flex-end;border-bottom:1px solid var(--line)}.feature-grid span:nth-child(4n),.challenge-grid article:last-child{border-right:0}.feature-grid span:nth-last-child(-n+4){border-bottom:0}.challenge-grid h3{margin:0;font-size:1.1rem}.challenge-grid p{color:var(--muted);font-size:.88rem}.challenge-grid strong{color:#d8dcf0}.architecture-flow{max-width:820px;margin:0;padding:0;list-style:none;display:grid;gap:.7rem}.architecture-flow li{position:relative;min-height:58px;padding:1rem 1.2rem;display:flex;align-items:center;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025)}.architecture-flow li:not(:last-child)::after{content:"↓";position:absolute;left:1.2rem;bottom:-.78rem;z-index:1;color:#9aa6ff}.split-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(2rem,9vw,9rem)}.stack-list{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}.stack-list li{padding:.85rem 0;border-bottom:1px solid var(--line);color:#d4d7e1}.workflow-statement{margin:0 0 1.2rem;color:#cbd3ff!important;font-size:clamp(1.15rem,3vw,1.7rem)}.evolution-grid,.hermes-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.evolution-grid{grid-template-columns:1fr 1fr;margin-bottom:2rem}.evolution-grid article{padding:1.5rem;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.025)}.evolution-grid article p:last-child{margin:.65rem 0 0;color:#e3e5ed}.gallery-note{max-width:720px;color:var(--muted);font-size:.86rem}.hermes-gallery a{overflow:hidden;display:block;min-width:0;border:1px solid var(--line);border-radius:18px;background:#0b0c10}.hermes-gallery a:first-child{grid-column:span 3}.hermes-gallery img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover}.hermes-gallery a:first-child img{aspect-ratio:16/8;object-position:top}.disclaimer{padding:1.2rem 1.5rem;border-left:2px solid #9aa6ff;background:rgba(108,87,255,.08);color:#d1d5e6;font-size:.86rem}

@keyframes float { to { transform: translate3d(20px, -25px, 0) scale(1.04); } }
@keyframes deviceFloat { 0%, 100% { transform: rotate(7deg) translateY(-5px); } 50% { transform: rotate(5deg) translateY(9px); } }

@media (max-width: 1000px) {
  .project-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header[data-open="true"] { position: fixed; background: rgba(7,8,12,.96); }
  .menu-button { display: block; }
  .site-header[data-open="true"] .menu-button span:first-child { transform: translateY(3px) rotate(45deg); }
  .site-header[data-open="true"] .menu-button span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .primary-nav { display: none; position: absolute; inset: 78px 0 auto; min-height: calc(100dvh - 78px); padding: 2rem 1.25rem; background: rgba(7,8,12,.98); flex-direction: column; align-items: stretch; }
  .site-header[data-open="true"] .primary-nav { display: flex; }
  .primary-nav a { min-height: 58px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .hero { min-height: auto; }
  .hero-layout, .section-heading, .about-grid, .contact-panel { grid-template-columns: 1fr; }
  .about-portrait { width: min(100%, 460px); margin-inline: auto; }
  .about-content { max-width: 680px; }
  .hero-object { min-height: 390px; margin-top: 1rem; }
  .orbit-one { right: -270px; } .orbit-two { right: -90px; }
  .app-card { grid-template-columns: 1fr; }
  .app-visual { border-right: 0; border-bottom: 1px solid var(--line); }
  .app-screenshots { grid-column: 1; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .principles-grid article:nth-child(2) { border-right: 0; }
  .principles-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-main { grid-template-columns: 1fr; }
  .feature-grid,.challenge-grid{grid-template-columns:1fr 1fr}.feature-grid span:nth-child(2n),.challenge-grid article:nth-child(2n){border-right:0}.feature-grid span:nth-last-child(-n+4){border-bottom:1px solid var(--line)}.feature-grid span:nth-last-child(-n+2){border-bottom:0}.challenge-grid article:nth-child(-n+2){border-bottom:1px solid var(--line)}.split-grid{grid-template-columns:1fr}
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 1.5rem), var(--max-width)); }
  .hero { padding-top: 8.5rem; }
  .hero h1 { font-size: clamp(3.7rem, 22vw, 6rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .project-category-grid { grid-template-columns: 1fr; }
  .project-category-card { min-height: 270px; }
  .app-screenshots img { flex-basis: min(78vw, 270px); width: min(78vw, 270px); }
  .hero-object { min-height: 350px; }
  .device-shell { width: 190px; }
  .chip-one { right: 0; } .chip-two { left: 0; }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .principles-grid article:nth-child(2) { border-right: 0; }
  .principles-grid article:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .principles-grid article:last-child { border-bottom: 0; }
  .principles-grid h3 { margin-top: 2.5rem; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .content-shell { width: min(calc(100% - 1.5rem), 820px); }
  .content-header h1 { font-size: clamp(2.75rem, 15vw, 4.2rem); }
  .feature-grid,.challenge-grid,.evolution-grid,.hermes-gallery{grid-template-columns:1fr}.feature-grid span,.challenge-grid article{border-right:0;border-bottom:1px solid var(--line)}.feature-grid span:last-child,.challenge-grid article:last-child{border-bottom:0}.hermes-gallery a:first-child{grid-column:auto}.hermes-gallery a:first-child img{aspect-ratio:1}
}

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