:root {
    color-scheme: light dark;
    --bg: #f2f4f1;
    --surface: #fbfcfa;
    --surface-2: #e9eeea;
    --text: #192322;
    --muted: #5e6b67;
    --line: #d7dfd9;
    --accent: #376b5a;
    --accent-strong: #285344;
    --accent-soft: #dce9df;
    --warm: #d1a779;
    --accent-panel: #203a34;
    --accent-on-panel: #eff5ef;
    --panel-muted: #c4d0c9;
    --panel-eyebrow: #bed7c3;
    --header-bg: rgba(242, 244, 241, .88);
    --shadow: 0 24px 80px rgba(22, 39, 33, .10);
    font-family: Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --header-height: 82px;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #11191d;
        --surface: #182226;
        --surface-2: #1e2a2d;
        --text: #e9efeb;
        --muted: #a6b4ae;
        --line: #30403f;
        --accent: #a1c9ae;
        --accent-strong: #c0dec8;
        --accent-soft: #263b33;
        --warm: #d3aa7b;
        --header-bg: rgba(17, 25, 29, .88);
        --shadow: 0 24px 80px rgba(0, 0, 0, .24);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #11191d;
    --surface: #182226;
    --surface-2: #1e2a2d;
    --text: #e9efeb;
    --muted: #a6b4ae;
    --line: #30403f;
    --accent: #a1c9ae;
    --accent-strong: #c0dec8;
    --accent-soft: #263b33;
    --warm: #d3aa7b;
    --header-bg: rgba(17, 25, 29, .88);
    --shadow: 0 24px 80px rgba(0, 0, 0, .24);
}

:root[data-theme="light"] {
    color-scheme: light;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/static/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
        U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
        U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/static/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/static/fonts/dm-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
        U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
        U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/static/fonts/dm-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}

:root[data-font="dm-sans"] { font-family: "DM Sans", sans-serif; }
:root[data-font="inter"] { font-family: Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: var(--header-height); }
body {
    margin: 0;
    background:
        radial-gradient(ellipse at 86% 11%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    transition: background-color .2s ease, color .2s ease;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, main:focus-visible {
    outline: 3px solid var(--warm);
    outline-offset: 4px;
}
::selection { background: var(--accent); color: var(--bg); }
.skip-link {
    position: fixed; z-index: 20; top: 0; left: 12px;
    padding: 10px 14px; transform: translateY(calc(-100% - 12px));
    background: var(--text); color: var(--bg); border-radius: 4px;
}
.skip-link:focus-visible { transform: translateY(0); }
.site-header {
    position: sticky; z-index: 10; top: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
    background: var(--header-bg); backdrop-filter: blur(16px);
}
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.header-inner, .content-wrap, .section-wrap, .footer-inner, .footer-bottom {
    width: min(1180px, calc(100% - 64px)); margin-inline: auto;
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
    width: 38px; height: 38px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 9px; color: var(--accent);
    font-size: 15px; font-weight: 750; letter-spacing: -.11em;
}
.brand-mark-image { display: block; width: 38px; height: 38px; flex: 0 0 auto; }
.brand-mark span, .core-monogram span { color: var(--warm); }
.brand-name { font-weight: 750; letter-spacing: .08em; font-size: 14px; line-height: 1.1; }
.brand-name small { display: block; color: var(--muted); font-weight: 450; font-size: 10px; letter-spacing: .01em; margin-top: 5px; }
.page-back-link {
    display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; margin-left: auto;
    color: var(--muted); text-decoration: none; font-size: 13px; white-space: nowrap;
}
.page-back-link:hover { color: var(--text); }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); margin-left: auto; }
.main-nav a, .back-link {
    text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 550;
    transition: color .18s ease; white-space: nowrap;
}
.main-nav a:hover, .back-link:hover, .footer-links a:hover { color: var(--text); }
.main-nav .nav-contact { color: var(--text); }
.nav-contact span { color: var(--accent); margin-left: 4px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.language-switch, .theme-toggle {
    width: 38px; height: 38px; display: inline-grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%; background: transparent;
    color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700;
}
.language-switch { position: relative; overflow: hidden; }
.language-switch img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; opacity: .42; filter: saturate(.45); transition: opacity .18s ease, filter .18s ease; }
.theme-toggle { cursor: pointer; }
.language-switch:hover, .theme-toggle:hover { border-color: var(--accent); color: var(--text); }
.language-switch:hover img, .language-switch:focus-visible img { opacity: .58; filter: saturate(.6); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-moon { display: none; }
.theme-menu, .mobile-menu { position: relative; }
.theme-menu > summary, .mobile-menu > summary { cursor: pointer; list-style: none; }
.theme-menu > summary::-webkit-details-marker, .mobile-menu > summary::-webkit-details-marker { display: none; }
.theme-options {
    position: absolute; z-index: 12; top: calc(100% + 10px); right: 0;
    display: grid; min-width: 130px; padding: 5px; border: 1px solid var(--line);
    background: var(--surface); box-shadow: var(--shadow);
}
.theme-options button { padding: 9px 10px; border: 0; background: transparent; color: var(--text); text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.theme-options button:hover { background: var(--surface-2); }
.mobile-menu { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: none; }
    :root:not([data-theme="light"]) .icon-moon { display: block; }
}

.hero {
    min-height: 640px; display: grid; grid-template-columns: 1fr .92fr;
    align-items: center; gap: clamp(42px, 8vw, 110px); padding-block: 90px 102px;
}
.hero-copy { max-width: 590px; }
.eyebrow {
    display: flex; align-items: center; gap: 10px; margin: 0 0 22px;
    color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .105em;
    text-transform: uppercase;
}
.eyebrow-line { width: 23px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
.hero h1 {
    max-width: 600px; margin-bottom: 24px;
    font-size: clamp(48px, 6vw, 76px); line-height: 1.02;
    font-weight: 570; letter-spacing: -.065em;
}
.hero-intro { max-width: 480px; margin-bottom: 31px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.button {
    min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 17px;
    padding: 0 19px; border: 1px solid transparent; border-radius: 4px;
    text-decoration: none; font-size: 13px; font-weight: 680; transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #f8fbf8; }
:root[data-theme="dark"] .button-primary { color: #11191d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .button-primary { color: #11191d; } }
.button-primary:hover { background: var(--accent-strong); }
.text-link { text-decoration: none; color: var(--text); font-size: 13px; font-weight: 650; }
.text-link span { margin-left: 5px; color: var(--accent); }
.hero-footnote { display: flex; align-items: center; gap: 9px; margin: 43px 0 0; color: var(--muted); font-size: 12px; }
.status-dot, .status-live i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.system-card {
    position: relative; min-height: 405px; overflow: hidden;
    border: 1px solid var(--line); border-radius: 6px;
    background:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px),
        var(--surface);
    background-size: 38px 38px; box-shadow: var(--shadow);
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
    transform-style: preserve-3d;
}
.system-card::before {
    content: ""; position: absolute; z-index: 0; inset: -30%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, color-mix(in srgb, var(--accent) 12%, transparent) 65deg, transparent 135deg, color-mix(in srgb, var(--warm) 10%, transparent) 215deg, transparent 290deg);
    animation: diagram-glow 36s linear infinite;
}
.system-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 47%, transparent 0, var(--surface) 76%);
    opacity: .47;
}
@keyframes diagram-glow { to { transform: rotate(360deg); } }
.system-topline, .system-status { position: absolute; z-index: 1; left: 23px; right: 23px; display: flex; align-items: center; }
.system-topline { top: 20px; justify-content: space-between; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.system-status { bottom: 18px; gap: 9px; color: var(--muted); font-size: 10px; }
.status-check { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 10px; }
.status-live { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 8px; letter-spacing: .1em; }
.status-live i { width: 5px; height: 5px; }
.system-core { position: absolute; inset: 45px 0 45px; display: grid; place-items: center; }
.core-ring { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.ring-outer { width: 270px; height: 270px; border-style: dashed; opacity: .85; }
.ring-inner { width: 184px; height: 184px; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.ring-outer { animation: orbit 72s linear infinite; }
.ring-inner { animation: orbit-reverse 48s linear infinite; }
.core-center {
    position: relative; z-index: 1; width: 112px; height: 112px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%;
    background: var(--surface); box-shadow: 0 0 0 9px color-mix(in srgb, var(--surface) 72%, transparent);
}
.core-monogram { font-size: 27px; font-weight: 750; letter-spacing: -.12em; line-height: 1.1; }
.core-caption { margin-top: 7px; color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.orbit-node {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
    padding: 7px 10px 7px 7px; border: 1px solid var(--line); border-radius: 3px;
    background: var(--surface); color: var(--text); font-size: 10px; box-shadow: 0 5px 18px rgba(0,0,0,.08);
}
.node-mark { display: grid; min-width: 25px; height: 25px; place-items: center; border-radius: 2px; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 750; }
.node-web { top: 13%; left: 5%; }
.node-infra { top: 17%; right: 4%; }
.node-email { bottom: 28%; left: 2%; }
.node-hardware { right: 2%; bottom: 28%; }
.node-software { bottom: 13%; left: 50%; transform: translateX(-50%); }
.orbit-node { animation: node-float 7s ease-in-out infinite; }
.node-infra { animation-delay: -2.5s; }
.node-software { animation-delay: -4s; }
.diagram-connection {
    position: absolute; width: 105px; height: 1px; z-index: 0;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .52; transform-origin: center;
}
.connection-web { top: 38%; left: 18%; transform: rotate(36deg); }
.connection-infra { top: 38%; right: 17%; transform: rotate(-39deg); }
.connection-software { bottom: 30%; left: 39%; transform: rotate(90deg); }
.connection-email { bottom: 39%; left: 17%; transform: rotate(-32deg); }
.connection-hardware { right: 17%; bottom: 39%; transform: rotate(33deg); }
.diagram-packet { position: absolute; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 10px var(--warm); }
.packet-one { top: 34%; left: 31%; animation: packet-one 6s ease-in-out infinite; }
.packet-two { right: 27%; bottom: 36%; animation: packet-two 7s ease-in-out infinite; }
@keyframes packet-one { 0%, 100% { transform: translate(0, 0); opacity: .2; } 50% { transform: translate(53px, 22px); opacity: 1; } }
@keyframes packet-two { 0%, 100% { transform: translate(0, 0); opacity: .2; } 50% { transform: translate(-37px, -20px); opacity: 1; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes orbit-reverse { to { transform: rotate(-360deg); } }
@keyframes node-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

.section-wrap { padding-block: 97px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 43px; }
.section-heading h2, .approach-heading h2, .contact-panel h2, .legal-page h1 {
    max-width: 650px; margin-bottom: 0; font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.08; font-weight: 560; letter-spacing: -.055em;
}
.section-intro { max-width: 360px; margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.service-card { min-height: 285px; padding: 23px 20px 19px; border-right: 1px solid var(--line); }
.service-card:last-child { border-right: 0; }
.service-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 31px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.service-arrow { color: var(--accent); font-size: 17px; }
.service-card h3 { margin-bottom: 11px; font-size: 18px; font-weight: 620; line-height: 1.25; letter-spacing: -.025em; }
.service-card p { min-height: 88px; margin-bottom: 19px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag-list li { padding: 4px 7px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); font-size: 9px; }

.portfolio-section { border-block: 1px solid var(--line); background: var(--surface); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { min-width: 0; border: 1px solid var(--line); background: var(--bg); }
.project-art { min-height: 220px; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); }
.project-art::before, .project-art::after { content: ""; position: absolute; border: 1px solid color-mix(in srgb, var(--accent) 27%, transparent); border-radius: 50%; }
.project-art::before { width: 250px; height: 250px; }
.project-art::after { width: 180px; height: 180px; }
.project-art-2 { background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.project-art-3 { background: color-mix(in srgb, var(--warm) 12%, var(--surface-2)); }
.project-art-window { position: relative; z-index: 1; width: 66%; height: 116px; padding: 10px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.project-art-window > span { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--accent); opacity: .55; }
.project-art-window i, .project-art-window b { position: absolute; left: 15%; top: 42%; width: 42%; height: 8px; background: var(--accent); opacity: .72; }
.project-art-window b { top: 58%; width: 65%; height: 4px; opacity: .23; }
.project-art-2 .project-art-window { width: 58%; height: 130px; border-radius: 6px; }
.project-art-2 .project-art-window i { width: 9px; height: 9px; left: 20%; top: 41%; border-radius: 50%; box-shadow: 19px 0 var(--warm), 38px 0 var(--accent); }
.project-art-2 .project-art-window b { top: 64%; width: 48%; left: 25%; }
.project-art-3 .project-art-window { width: 72%; height: 94px; }
.project-art-3 .project-art-window i { top: 39%; width: 70%; height: 1px; background: var(--warm); transform: rotate(-12deg); }
.project-art-3 .project-art-window b { top: 62%; width: 52%; }
.project-index { position: absolute; right: 15px; bottom: 12px; z-index: 1; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.project-copy { padding: 18px; }
.project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.demo-badge { padding: 3px 7px; border: 1px solid color-mix(in srgb, var(--warm) 50%, var(--line)); color: var(--text); }
.project-copy h3 { margin: 14px 0 8px; font-size: 19px; line-height: 1.25; }
.project-copy p { margin: 0; color: var(--muted); font-size: 12px; }

.approach-section { border-block: 1px solid var(--line); background: var(--surface-2); }
.approach-inner { display: grid; grid-template-columns: .9fr 1fr; gap: 12%; align-items: start; }
.approach-heading h2 { margin-bottom: 20px; }
.approach-heading > p:last-child { max-width: 440px; color: var(--muted); font-size: 14px; }
.steps-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 48px 1fr; gap: 17px; padding: 0 0 23px; border-bottom: 1px solid var(--line); }
.steps-list li + li { padding-top: 21px; }
.step-number { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.steps-list h3 { margin: -4px 0 5px; font-size: 17px; font-weight: 620; }
.steps-list p { margin: 0; color: var(--muted); font-size: 12px; }

.faq-section { display: grid; grid-template-columns: .8fr 1fr; gap: 10%; }
.faq-heading h2 { max-width: 440px; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; letter-spacing: -.05em; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; font-size: 14px; font-weight: 620; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--accent); font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -5px 25px 18px 0; color: var(--muted); font-size: 13px; }

.contact-section { padding-block: 90px; }
.contact-panel {
    display: flex; align-items: center; justify-content: space-between; gap: 36px;
    padding: clamp(30px, 6vw, 66px); border-radius: 5px;
    background: var(--accent-panel); color: var(--accent-on-panel);
}
.contact-direct { margin: 62px 0 0; padding-top: 36px; border-top: 1px solid var(--line); }
.contact-direct h3 { margin: 0 0 14px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.contact-alternative-links { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.contact-alternative-links > * { display: grid; gap: 4px; color: var(--text); text-decoration: none; }
.contact-alternative-links > * > span { color: var(--muted); font-size: 12px; }
.contact-alternative-links strong { font-size: 14px; font-weight: 550; }
.contact-alternative-links .text-link { color: var(--accent); font-size: 12px; }
.contact-map { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact-map > p { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.contact-map-canvas { width: 100%; height: 320px; margin-top: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.contact-map-canvas .leaflet-tile { outline: 1px solid transparent; }
.map-data-notice { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.map-data-notice code { color: var(--text); }
.map-fallback-link { display: inline-block; margin: 10px 0 0 12px; color: var(--accent); font-size: 12px; text-underline-offset: 3px; }
.contact-panel .eyebrow { color: var(--panel-eyebrow); }
.contact-panel .eyebrow-line { background: var(--panel-eyebrow); }
.contact-panel h2 { max-width: 590px; margin-bottom: 13px; }
.contact-panel p:not(.eyebrow) { max-width: 510px; margin-bottom: 0; color: var(--panel-muted); font-size: 14px; }
.contact-heading { max-width: 600px; }
.contact-form-panel { width: min(100%, 530px); padding: 25px; border: 1px solid color-mix(in srgb, var(--panel-muted) 24%, transparent); background: color-mix(in srgb, var(--accent-panel) 70%, black); }
.contact-form-panel h3 { margin-bottom: 4px; font-size: 20px; }
.form-intro { margin-bottom: 20px !important; font-size: 12px !important; }
.contact-form-panel form, .admin-form { display: grid; gap: 14px; }
.contact-form-panel label, .admin-form label { display: grid; gap: 6px; color: var(--accent-on-panel); font-size: 11px; font-weight: 600; }
.contact-form-panel input:not([type="checkbox"]), .contact-form-panel select, .contact-form-panel textarea {
    width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid color-mix(in srgb, var(--panel-muted) 35%, transparent);
    border-radius: 3px; background: var(--accent-panel); color: var(--accent-on-panel); font: inherit; font-size: 13px;
}
.contact-form-panel textarea { min-height: 112px; resize: vertical; }
.contact-form-panel input::placeholder, .contact-form-panel textarea::placeholder { color: var(--panel-muted); }
.contact-form-panel select option { background: var(--accent-panel); color: var(--accent-on-panel); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.consent-label { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 9px !important; font-weight: 450 !important; line-height: 1.5; }
.consent-label input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); }
.consent-label a { text-underline-offset: 3px; }
.form-privacy-note { margin: -3px 0 0 !important; font-size: 10px !important; }
.contact-form-panel .button-light { justify-self: start; border: 0; cursor: pointer; }
.funnel-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 0 0 20px; padding: 0; list-style: none; }
.funnel-progress li { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--panel-muted); font-size: 9px; line-height: 1.25; opacity: .62; }
.funnel-progress li[aria-current="step"] { opacity: 1; color: var(--accent-on-panel); }
.funnel-progress li > span:first-child { display: grid; flex: 0 0 21px; width: 21px; height: 21px; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.funnel-progress li[aria-current="step"] > span:first-child { background: var(--panel-eyebrow); color: var(--accent-panel); border-color: var(--panel-eyebrow); }
.funnel-fieldset { min-width: 0; margin: 0 0 17px; padding: 0; border: 0; }
.funnel-fieldset legend { margin-bottom: 11px; color: var(--accent-on-panel); font-size: 12px; font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-card { position: relative; display: flex !important; align-items: flex-start; gap: 9px !important; min-height: 48px; padding: 10px; border: 1px solid color-mix(in srgb, var(--panel-muted) 32%, transparent); background: color-mix(in srgb, var(--accent-panel) 80%, transparent); cursor: pointer; font-size: 11px !important; line-height: 1.4; }
.choice-card:has(input:checked) { border-color: var(--panel-eyebrow); background: color-mix(in srgb, var(--panel-eyebrow) 15%, var(--accent-panel)); }
.choice-card input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--panel-eyebrow); }
.choice-grid-compact { grid-template-columns: 1fr; gap: 6px; }
.choice-grid-compact .choice-card { min-height: 40px; padding-block: 8px; }
.funnel-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.form-back { color: var(--panel-muted); font-size: 12px; text-underline-offset: 3px; }
.form-success { padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--text) !important; font-size: 12px !important; }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.button-light { flex-shrink: 0; background: #e9f0e8; color: var(--accent-panel); }
.button-light:hover { background: #fff; }
.contact-placeholder { max-width: 250px; text-align: right; }

.ambient-section { position: relative; isolation: isolate; }
.ambient-section > * { position: relative; z-index: 1; }
.ambient-section::before {
    position: absolute; z-index: 0; top: -24%; right: 0;
    width: min(70vw, 900px); aspect-ratio: 1;
    border-radius: 50%; background: radial-gradient(ellipse 45% 55% at 50% 50%, color-mix(in srgb, var(--accent) 19%, transparent), transparent 100%);
    content: ""; opacity: .62; pointer-events: none;
    animation: ambient-drift 19s ease-in-out infinite alternate;
}
.portfolio-section::before { top: 4%; right: auto; left: 0; animation-delay: -8s; }
.approach-section::before { top: -45%; right: 0; animation-delay: -13s; }
@keyframes ambient-drift {
    from { transform: translate3d(0, 0, 0) scale(.94); }
    to { transform: translate3d(-24px, 19px, 0) scale(1.06); }
}

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 105px; display: flex; align-items: center; gap: 25px; }
.footer-brand { text-decoration: none; font-size: 13px; font-weight: 750; letter-spacing: .04em; }
.footer-brand span { color: var(--muted); font-weight: 450; letter-spacing: 0; }
.footer-inner > p { margin: 0; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; gap: 19px; margin-left: auto; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

.legal-page { min-height: 70vh; max-width: 840px; padding-block: 75px 110px; }
.legal-page h1 { margin: 29px 0 35px; }
.draft-notice { display: grid; gap: 4px; padding: 14px 17px; border-left: 3px solid #b87332; background: color-mix(in srgb, #b87332 11%, var(--surface)); font-size: 12px; }
.draft-notice strong { color: var(--text); }
.draft-notice span { color: var(--muted); }
.legal-lead { max-width: 720px; color: var(--muted); }
.legal-block { padding: 23px 0; border-bottom: 1px solid var(--line); }
.legal-block h2 { margin-bottom: 12px; font-size: 18px; }
.legal-block p { color: var(--muted); font-size: 14px; }
.legal-block p:last-child { margin-bottom: 0; }

.admin-login { max-width: 480px; min-height: 70vh; padding-block: 90px; }
.admin-login h1, .admin-title-row h1 { margin-bottom: 16px; font-size: clamp(36px, 5vw, 54px); line-height: 1.05; letter-spacing: -.05em; }
.admin-login .admin-form label, .admin-form label { color: var(--text); }
.admin-form input:not([type="checkbox"]), .admin-form textarea {
    width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line);
    border-radius: 3px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px;
}
.admin-form textarea { resize: vertical; }
.admin-form input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); }
.admin-error { padding: 12px; border-left: 3px solid #b87332; background: var(--surface-2); }
.admin-page { padding-block: 65px 100px; }
.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 35px; }
.admin-title-row p:last-child { max-width: 650px; color: var(--muted); }
.admin-tabs { position: sticky; z-index: 5; top: 82px; display: flex; flex-wrap: wrap; gap: 20px; padding: 14px 0; border-block: 1px solid var(--line); background: var(--bg); }
.admin-tabs a { color: var(--accent); font-size: 13px; font-weight: 650; text-underline-offset: 4px; }
.admin-section { padding-top: 40px; scroll-margin-top: 130px; }
.admin-section > h2 { font-size: 27px; letter-spacing: -.04em; }
.admin-section > p { color: var(--muted); font-size: 13px; }
.stats-summary { display: flex; flex-wrap: wrap; gap: 12px; }
.stats-summary > div { display: grid; gap: 4px; min-width: 190px; padding: 15px 18px; border: 1px solid var(--line); background: var(--surface); }
.stats-summary strong { font-size: 24px; letter-spacing: -.04em; }
.stats-summary span, .stats-note { color: var(--muted); font-size: 12px; }
.stats-chart-scroll { overflow-x: auto; margin: 18px 0 10px; border: 1px solid var(--line); background: var(--surface); }
.stats-chart { min-width: 900px; height: 164px; display: grid; grid-template-columns: repeat(30, minmax(20px, 1fr)); align-items: stretch; gap: 4px; padding: 12px; }
.stats-chart-day { min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) 20px; justify-items: center; gap: 6px; }
.stats-bar { align-self: end; display: block; width: min(100%, 18px); height: var(--bar-height); min-height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.stats-chart-day:hover .stats-bar, .stats-chart-day:focus .stats-bar { background: var(--text); }
.stats-chart-date { color: var(--muted); font-size: 9px; line-height: 20px; white-space: nowrap; }
.stats-pages { display: grid; gap: 7px; max-width: 520px; }
.stats-pages > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.stats-pages code { color: var(--text); }
.stats-pages span { color: var(--muted); white-space: nowrap; }
.admin-item { margin: 10px 0; border: 1px solid var(--line); background: var(--surface); }
.admin-item summary { display: flex; justify-content: space-between; gap: 14px; padding: 14px; cursor: pointer; font-size: 13px; font-weight: 650; }
.admin-item summary span { color: var(--muted); font-size: 11px; font-weight: 450; }
.content-editor { padding: 17px; border-top: 1px solid var(--line); }
.content-editor .consent-label { display: flex !important; color: var(--text); }
.button-outline, .button-danger { min-height: 40px; padding-inline: 14px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.button-danger { border-color: #a84f45; color: #a84f45; }
.inquiry-body { padding: 0 14px; color: var(--muted); font-size: 12px; }
.inquiry-message { padding: 12px; border: 1px solid var(--line); background: var(--bg); white-space: pre-wrap; overflow-wrap: anywhere; }
.inquiry-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; }
.inquiry-exports { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 20px; }
.inquiry-exports .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.inquiry-exports span { color: var(--muted); font-size: 11px; }

.about-hero { padding-block: 95px 85px; }
.about-hero h1 { max-width: 770px; margin-bottom: 18px; font-size: clamp(48px, 7vw, 78px); line-height: 1.02; letter-spacing: -.06em; }
.about-hero > p:not(.eyebrow) { max-width: 690px; margin-bottom: 24px; color: var(--muted); font-size: 18px; }
.about-story-section { border-block: 1px solid var(--line); background: var(--surface-2); }
.about-story { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8%; padding-block: 72px; }
.about-story h2 { margin-bottom: 17px; font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -.05em; }
.about-story > div > p { max-width: 720px; margin: 0; color: var(--muted); white-space: pre-line; font-size: 16px; }
.profile-grid { display: grid; grid-template-columns: 1fr; max-width: 960px; margin-inline: auto; gap: 28px; }
.profile-card { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; min-width: 0; min-height: 320px; border: 1px solid var(--line); background: var(--surface); }
.profile-card > img, .profile-placeholder { width: 100%; height: 100%; min-height: 320px; object-fit: cover; background: var(--surface-2); }
.profile-placeholder { display: grid; place-items: center; color: var(--accent); font-size: 40px; font-weight: 750; letter-spacing: -.12em; }
.profile-copy { align-self: center; padding: clamp(24px, 4vw, 46px); }
.profile-role { margin-bottom: 6px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-copy h3 { margin-bottom: 15px; font-size: clamp(24px, 3vw, 32px); }
.profile-copy > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; white-space: pre-line; }
.admin-link { color: var(--muted); text-decoration: none; }
.upload-form { border-top: 1px dashed var(--line); }

.about-story { display: block; padding-block: clamp(54px, 8vw, 92px); }
.about-story-copy {
    max-width: 820px; margin-inline: auto; padding: clamp(26px, 5vw, 54px);
    border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.about-story-copy h2 {
    max-width: 700px; margin-bottom: 22px;
    font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -.05em;
}
.about-story-copy > p:last-child {
    max-width: 700px; margin: 0; color: var(--muted); white-space: pre-line;
    font-size: 16px; line-height: 1.85;
}
.choice-card {
    display: grid !important; grid-template-columns: 17px minmax(0, 1fr);
    align-items: center;
}
.choice-card > span { min-width: 0; }
.selection-summary {
    display: block; min-width: 0; margin: 0 0 20px; padding: 12px;
    border: 1px solid color-mix(in srgb, var(--panel-muted) 32%, transparent);
}
.selection-summary legend {
    padding-inline: 6px; color: var(--panel-eyebrow); font-size: 10px;
    font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.selection-summary dl { display: grid; gap: 11px; margin: 0; }
.selection-summary dl > div {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 12px;
}
.selection-summary dt { color: var(--panel-muted); font-size: 10px; }
.selection-summary dd {
    margin: 0; color: var(--accent-on-panel); font-size: 11px; font-weight: 600;
}
.contact-details-heading { margin: 0 0 12px; font-size: 15px; }
.form-error {
    padding: 10px 12px; border-left: 3px solid #d07868;
    color: var(--accent-on-panel); font-size: 12px;
}
.button:disabled { cursor: wait; opacity: .7; }

@media (max-width: 900px) {
    .hero { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding-block: 70px 80px; }
    .hero-copy { max-width: 720px; }
    .system-card { width: min(100%, 620px); min-height: 380px; margin-inline: auto; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-card:nth-child(2) { border-right: 0; }
    .service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .service-card p { min-height: 60px; }
    .approach-inner { gap: 7%; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 980px) {
    .header-inner { gap: 12px; }
    .header-tools { gap: 7px; }
    .main-nav { display: none; }
    .mobile-menu { display: block; }
    .header-tools { margin-left: auto; }
    .header-inner { min-height: var(--header-height); }
    .page-back-link {
        width: 38px; height: 38px; justify-content: center; margin-left: 0;
        border: 1px solid var(--line); border-radius: 50%;
    }
    .page-back-link > span:first-child { font-size: 18px; }
    .page-back-label { display: none; }
    .mobile-menu > summary { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; }
    .mobile-menu[open] > summary { border-color: var(--accent); }
    .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 15px; height: 1px; background: currentColor; }
    .menu-icon { position: relative; }
    .menu-icon::before, .menu-icon::after { position: absolute; left: 0; content: ""; }
    .menu-icon::before { top: -5px; }
    .menu-icon::after { top: 5px; }
    .mobile-menu > nav { position: absolute; z-index: 11; top: calc(100% + 13px); right: -6px; display: grid; min-width: 220px; padding: 7px 15px; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow); }
    .mobile-menu > nav a { padding: 10px 2px; color: var(--text); text-decoration: none; font-size: 13px; }
    .mobile-menu > nav a + a { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
    .header-inner, .content-wrap, .section-wrap, .footer-inner, .footer-bottom { width: min(100% - 40px, 560px); }
    .header-inner { min-height: 70px; gap: 12px; }
    .brand-mark, .brand-mark-image { width: 34px; height: 34px; }
    .brand-name { font-size: 12px; }
    .brand-name small { font-size: 9px; }
    .hero { display: flex; flex-direction: column; align-items: stretch; gap: 42px; padding-block: 64px 60px; }
    .hero h1 { font-size: clamp(45px, 12vw, 62px); }
    .hero-intro { font-size: 15px; }
    .hero-footnote { margin-top: 28px; }
    .system-card { min-height: 325px; }
    .ring-outer { width: 230px; height: 230px; }
    .ring-inner { width: 158px; height: 158px; }
    .node-web { left: 3%; }
    .node-infra { right: 3%; }
    .orbit-node { gap: 5px; padding-right: 6px; font-size: 9px; }
    .node-mark { min-width: 22px; height: 22px; }
    .section-wrap { padding-block: 66px; }
    .project-grid { grid-template-columns: 1fr; gap: 14px; }
    .project-art { min-height: 190px; }
    .section-heading { display: block; margin-bottom: 28px; }
    .section-heading h2, .approach-heading h2, .contact-panel h2, .legal-page h1 { font-size: 38px; }
    .section-intro { margin-top: 17px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: auto; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
    .service-card:nth-child(2) { border-bottom: 1px solid var(--line); }
    .service-card:last-child { border-bottom: 0; }
    .service-card-top { margin-bottom: 17px; }
    .service-card p { min-height: 0; margin-bottom: 16px; }
    .approach-inner { grid-template-columns: 1fr; gap: 25px; }
    .contact-section { padding-block: 65px; }
    .contact-panel { display: grid; grid-template-columns: 1fr; padding: 24px 18px; gap: 25px; }
    .contact-form-panel { padding: 17px; }
    .contact-direct { margin-top: 36px; padding-top: 28px; }
    .contact-alternative-links { display: grid; gap: 15px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-panel .button, .contact-placeholder { margin-top: 25px; }
    .contact-placeholder { text-align: left; }
    .footer-inner { align-items: flex-start; flex-wrap: wrap; gap: 12px 22px; padding-block: 25px; }
    .footer-inner > p { order: 3; width: 100%; }
    .footer-links { gap: 13px; }
    .footer-links a { font-size: 10px; }
    .footer-bottom { font-size: 9px; }
    .legal-page { padding-block: 48px 80px; }
    .faq-section { grid-template-columns: 1fr; gap: 12px; }
    .admin-title-row { align-items: flex-start; flex-direction: column; }
    .admin-tabs { top: 70px; gap: 12px; }
    .admin-item summary { flex-direction: column; gap: 4px; }
    .about-hero { padding-block: 65px 55px; }
    .about-story { grid-template-columns: 1fr; gap: 10px; padding-block: 50px; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-card { grid-template-columns: minmax(110px, .65fr) 1fr; }
    .profile-card > img, .profile-placeholder { min-height: 200px; }
    .funnel-progress li { gap: 5px; font-size: 8px; }
    .choice-grid { grid-template-columns: 1fr; }
}
@keyframes section-entry {
    from { opacity: .75; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
main > section:not(.hero) {
    animation: section-entry .55s ease-out both;
}
@media (max-width: 380px) {
    .header-inner, .content-wrap, .section-wrap, .footer-inner, .footer-bottom { width: calc(100% - 32px); }
    .header-inner, .header-tools { gap: 4px; }
    .brand { gap: 7px; }
    .brand-mark, .brand-mark-image { width: 30px; height: 30px; }
    .page-back-link, .language-switch, .theme-toggle, .mobile-menu > summary {
        width: 32px; height: 32px;
    }
    .system-topline, .system-status { left: 14px; right: 14px; }
    .orbit-node { font-size: 8px; }
    .hero h1 { font-size: 44px; }
    .profile-card { grid-template-columns: 1fr; }
    .profile-card > img, .profile-placeholder { min-height: 260px; max-height: 360px; }
    .funnel-progress .funnel-step-label { display: none; }
}
@media (max-width: 680px) {
    :root { --header-height: 70px; }
}
@media (pointer: coarse) {
    .system-card { transform: none; }
}
@media (max-width: 680px) {
    .about-story-copy { padding: 24px 19px; }
    .selection-summary dl > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .system-card { transform: none !important; transition: none !important; }
    .ambient-section::before { animation: none !important; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation: none !important;
    }
}
