:root {
    --bg: #071216;
    --bg-soft: #0c191e;
    --panel: #102329;
    --panel-bright: #132b31;
    --line: #243c41;
    --line-bright: rgba(107, 179, 165, 0.28);
    --solar: #ffb817;
    --solar-soft: rgba(255, 184, 23, 0.12);
    --mint: #68c6ae;
    --white: #eff7f4;
    --muted: #91aaa7;
    --container: min(1200px, calc(100% - 3rem));
    --radius: 1.15rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--white);
    font-family: "Inter", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

p {
    line-height: 1.7;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    background: var(--solar);
    color: var(--bg);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 150;
    height: 2px;
    background: transparent;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--solar);
    box-shadow: 0 0 15px var(--solar);
}

.cursor-light {
    position: fixed;
    z-index: 0;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(104, 198, 174, 0.075), transparent 66%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 250ms ease;
}

.cursor-light.visible {
    opacity: 1;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    transition: background 200ms ease, border-color 200ms ease;
}

.site-header.scrolled {
    border-bottom: 1px solid var(--line);
    background: rgba(7, 18, 22, 0.91);
    backdrop-filter: blur(16px);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 5.3rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.brand img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.brand span {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 0.12rem;
    row-gap: 0.22rem;
}

.brand strong {
    color: var(--solar);
}

.brand small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.nav-links > a:not(.button) {
    position: relative;
    transition: color 170ms ease;
}

.nav-links > a:not(.button)::after {
    position: absolute;
    right: 0;
    bottom: -0.62rem;
    left: 0;
    height: 1px;
    content: "";
    background: var(--solar);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 170ms ease;
}

.nav-links > a:not(.button):hover {
    color: var(--white);
}

.nav-links > a:not(.button):hover::after {
    transform: scaleX(1);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.82rem 1.45rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--solar);
    color: var(--bg);
    box-shadow: 0 0 0 transparent, 0 18px 35px rgba(255, 184, 23, 0.12);
}

.button-primary:hover {
    box-shadow: 0 0 26px rgba(255, 184, 23, 0.2), 0 18px 35px rgba(255, 184, 23, 0.2);
}

.button-secondary {
    border-color: var(--line);
    color: var(--white);
}

.button-secondary:hover {
    border-color: var(--mint);
    background: rgba(104, 198, 174, 0.07);
}

.button-outline {
    border-color: var(--solar);
    color: var(--solar);
}

.nav-action {
    min-height: 2.9rem;
    padding: 0.7rem 1.25rem;
}

.language-switch {
    display: inline-flex;
    gap: 0.18rem;
    padding: 0.18rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
}

.language-option {
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    transition: background 160ms ease, color 160ms ease;
}

.language-option.active {
    background: var(--solar);
    color: var(--bg);
}

.menu-toggle {
    display: none;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0.73rem 0.63rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 0.28rem 0;
    background: currentColor;
    transition: transform 170ms ease, opacity 170ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 100svh;
    padding: clamp(7.3rem, 14vh, 9.5rem) 0 clamp(3rem, 7vh, 4.8rem);
    overflow: hidden;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(104, 198, 174, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104, 198, 174, 0.09) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.65) 55%, transparent 100%);
    animation: gridPulse 7s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.48; }
}

.hero-meta {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    margin-bottom: clamp(3.3rem, 7vw, 5.1rem);
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    align-items: center;
    gap: clamp(2.3rem, 6vw, 5.3rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.35rem;
    color: var(--solar);
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 2.3rem;
    height: 1px;
    content: "";
    background: var(--solar);
}

.hero-copy h1 {
    max-width: 690px;
    margin: 0 0 1.55rem;
    font-size: clamp(3.55rem, 7.5vw, 6.45rem);
    font-weight: 800;
    letter-spacing: -0.1em;
    line-height: 0.92;
}

.hero-copy h1 span {
    display: block;
    color: var(--solar);
    text-shadow: 0 0 42px rgba(255, 184, 23, 0.15);
}

.hero-summary {
    max-width: 530px;
    margin: 0 0 2.35rem;
    color: var(--muted);
    font-size: 1.01rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.power-monitor {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
}

.monitor-image {
    position: relative;
    overflow: hidden;
}

.monitor-image img {
    width: 100%;
    height: clamp(270px, 31vw, 355px);
    object-fit: cover;
    transform: scale(1.035);
    transition: transform 300ms ease;
}

.power-monitor:hover .monitor-image img {
    transform: scale(1.075);
}

.monitor-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(7, 18, 22, 0.35), transparent 46%);
}

.scan-line {
    position: absolute;
    z-index: 1;
    right: 0;
    left: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mint), transparent);
    filter: drop-shadow(0 0 5px var(--mint));
    animation: scan 3.6s linear infinite;
}

@keyframes scan {
    from { transform: translateY(0); opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    to { transform: translateY(350px); opacity: 0; }
}

.live-chip {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.48rem 0.7rem;
    border: 1px solid rgba(104, 198, 174, 0.25);
    background: rgba(7, 18, 22, 0.7);
    color: var(--mint);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.live-chip i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 10px var(--mint);
    animation: livePulse 1.7s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.monitor-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.monitor-stats div {
    padding: 1.12rem 1.2rem;
    border-top: 1px solid var(--line);
}

.monitor-stats div:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.monitor-stats small,
.project-data span,
.contact-details small {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.monitor-stats strong {
    font-size: 1.43rem;
}

.hero-status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: clamp(3.2rem, 8vh, 5rem);
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-status span {
    color: var(--mint);
}

.hero-status p {
    margin: 0 0 0 auto;
    font-size: 0.75rem;
}

.impact {
    position: relative;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.impact-card {
    padding: clamp(1.6rem, 3vw, 2.25rem);
    border-right: 1px solid var(--line);
}

.impact-card:last-child {
    border-right: 0;
}

.impact-card strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--solar);
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.07em;
}

.impact-card span {
    color: var(--muted);
    font-size: 0.87rem;
}

.performance {
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 184, 23, 0.08), transparent 30%),
        var(--bg);
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.data-panel {
    min-height: 410px;
    margin: 0;
    padding: clamp(1.4rem, 4vw, 2rem);
    border: 1px solid var(--line);
    background: var(--panel);
}

.data-panel figcaption {
    margin-bottom: clamp(1.5rem, 4vw, 2.2rem);
}

.data-panel .card-label {
    margin-bottom: 0.75rem;
}

.data-panel h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.62rem);
    letter-spacing: -0.05em;
}

.bar-chart {
    display: grid;
    gap: 1.65rem;
}

.bar-caption {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.bar-caption strong {
    color: var(--white);
    font-size: 1rem;
}

.bar-track {
    height: 0.8rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.bar-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
}

.shown .residential-bar {
    width: 92.3%;
    background: linear-gradient(90deg, var(--mint), rgba(104, 198, 174, 0.56));
}

.shown .pharmacy-bar {
    width: 100%;
    background: linear-gradient(90deg, var(--solar), #f58d23);
}

.chart-note {
    margin: 1.6rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
}

.capacity-chart {
    display: grid;
    gap: 1.35rem;
}

.capacity-row {
    padding: 0.95rem;
    border: 1px solid rgba(36, 60, 65, 0.9);
    background: rgba(7, 18, 22, 0.34);
}

.capacity-name {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.capacity-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.capacity-values span {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.48rem;
    align-items: center;
}

.capacity-values b {
    font-size: 1.07rem;
}

.capacity-values small {
    grid-column: 2;
    color: var(--muted);
}

.dot {
    grid-row: span 2;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
}

.residential-dot {
    background: var(--mint);
    box-shadow: 0 0 9px rgba(104, 198, 174, 0.5);
}

.pharmacy-dot {
    background: var(--solar);
    box-shadow: 0 0 9px rgba(255, 184, 23, 0.5);
}

.continuity-callout {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1.2rem;
    padding: 0.85rem 0.95rem;
    background: var(--solar-soft);
}

.continuity-callout strong {
    flex-shrink: 0;
    color: var(--solar);
    font-size: 1.5rem;
}

.continuity-callout span {
    color: var(--muted);
    font-size: 0.84rem;
}

.section {
    position: relative;
    padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.about-layout {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: clamp(2.3rem, 8vw, 7.5rem);
    align-items: start;
}

.section-heading h2,
.systems-header h2,
.projects-header h2,
.contact-copy h2 {
    margin: 0;
    font-size: clamp(2.15rem, 4.5vw, 3.45rem);
    letter-spacing: -0.075em;
    line-height: 1.08;
}

.about-content {
    padding-top: 2.5rem;
}

.about-content p {
    margin: 0 0 1.2rem;
    color: var(--muted);
}

.about-content .about-lead {
    color: var(--white);
    font-size: 1.23rem;
    font-weight: 600;
}

.inline-action {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.7rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--solar);
    font-weight: 700;
}

.inline-action span {
    transition: transform 170ms ease;
}

.inline-action:hover span {
    transform: translateX(5px);
}

.systems {
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}

.systems-header,
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 3rem;
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.systems-header h2,
.projects-header h2 {
    max-width: 720px;
}

.systems-header > p,
.projects-header > p {
    max-width: 350px;
    margin: 0;
    color: var(--muted);
}

.system-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    margin-bottom: clamp(2.4rem, 5vw, 3.4rem);
}

.system-node {
    position: relative;
    min-height: 235px;
    padding: 1.55rem;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.006);
    transition: background 230ms ease, box-shadow 230ms ease;
}

.system-node:last-child {
    border-right: 0;
}

.system-node::after {
    position: absolute;
    top: 2rem;
    right: -0.55rem;
    z-index: 2;
    color: var(--solar);
    content: "→";
}

.system-node:last-child::after {
    content: none;
}

.system-node small {
    color: var(--mint);
    font-weight: 800;
}

.system-node h3 {
    margin: 2.45rem 0 0.75rem;
    font-size: 1.18rem;
}

.system-node p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.system-node.active {
    background: var(--panel-bright);
    box-shadow: inset 0 -2px var(--solar);
}

.system-node.active small {
    color: var(--solar);
}

.expertise-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.expertise-card {
    display: flex;
    flex-direction: column;
    min-height: 295px;
    padding: clamp(1.45rem, 4vw, 2.2rem);
    border: 1px solid var(--line);
    background: var(--panel);
    transition: border-color 180ms ease, transform 180ms ease;
}

.expertise-card:hover {
    border-color: var(--line-bright);
    transform: translateY(-4px);
}

.card-label {
    margin: 0 0 2.25rem;
    color: var(--mint);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.expertise-card h3 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.35rem, 3vw, 1.62rem);
    letter-spacing: -0.05em;
}

.expertise-card > p:not(.card-label) {
    flex: 1;
    margin: 0 0 1.2rem;
    color: var(--muted);
}

.projects {
    border-top: 1px solid var(--line);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    transition: border-color 190ms ease, transform 190ms ease;
}

.project-card:hover {
    border-color: var(--line-bright);
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 218px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease, filter 360ms ease;
}

.project-card:hover .project-image img {
    transform: scale(1.07);
    filter: saturate(1.1);
}

.project-image span {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.52rem;
    border: 1px solid rgba(255, 184, 23, 0.34);
    background: rgba(7, 18, 22, 0.77);
    color: var(--solar);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.project-content {
    padding: 1.35rem;
}

.project-content h3 {
    margin: 0 0 0.55rem;
    font-size: 1.25rem;
    letter-spacing: -0.05em;
}

.project-content > p {
    margin: 0 0 1.1rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.project-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 1.05rem;
}

.project-data span {
    padding: 0.62rem;
    background: rgba(255, 255, 255, 0.035);
}

.project-data em {
    font-style: normal;
}

.project-data b {
    display: block;
    margin-top: 0.3rem;
    color: var(--white);
    font-size: 0.94rem;
    letter-spacing: normal;
    text-transform: none;
}

.project-result {
    min-height: auto;
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
}

.project-result strong {
    color: var(--solar);
}

.project-source {
    max-width: 720px;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.journal-preview {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(12, 25, 30, 0.25), rgba(12, 25, 30, 0.86));
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.journal-card {
    display: flex;
    flex-direction: column;
    min-height: 285px;
    padding: clamp(1.35rem, 3vw, 1.8rem);
    border: 1px solid var(--line);
    background: var(--panel);
    transition: transform 190ms ease, border-color 190ms ease;
}

.journal-card:hover {
    border-color: var(--line-bright);
    transform: translateY(-5px);
}

.journal-card .card-label {
    margin-bottom: 1.3rem;
}

.journal-card h3 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.2rem, 2.2vw, 1.38rem);
    letter-spacing: -0.05em;
    line-height: 1.24;
}

.journal-card > p:not(.card-label) {
    flex: 1;
    margin: 0 0 1.15rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.journal-all {
    margin-top: clamp(1.5rem, 4vw, 2.2rem);
}

.faq {
    border-top: 1px solid var(--line);
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: clamp(2.4rem, 7vw, 6rem);
    align-items: start;
}

.faq-intro {
    max-width: 430px;
    margin: 1.2rem 0 0;
    color: var(--muted);
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    position: relative;
    padding: 1.35rem 2.4rem 1.35rem 0;
    color: var(--white);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    position: absolute;
    top: 1.22rem;
    right: 0;
    color: var(--solar);
    content: "+";
    font-size: 1.4rem;
    transition: transform 160ms ease;
}

.faq-list details[open] summary::after {
    transform: rotate(45deg);
}

.faq-list details p {
    max-width: 620px;
    margin: 0;
    padding: 0 2.4rem 1.4rem 0;
    color: var(--muted);
}

.contact {
    padding: clamp(4.7rem, 9vw, 7rem) 0;
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 0.7fr;
    gap: clamp(2.4rem, 7vw, 6rem);
    align-items: start;
}

.contact-copy > p:not(.eyebrow) {
    max-width: 490px;
    color: var(--muted);
}

.contact-details {
    display: grid;
    gap: 0.7rem;
    max-width: 490px;
    margin-top: 2.2rem;
}

.contact-details a,
.contact-details p {
    margin: 0;
    padding: 0.95rem 1.05rem;
    border: 1px solid var(--line);
    color: var(--white);
    transition: border-color 180ms ease;
}

.contact-details a:hover {
    border-color: var(--mint);
}

.contact-details small {
    color: var(--mint);
}

.form-panel {
    border: 1px solid var(--line);
    background: var(--panel);
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.panel-head p {
    margin: 0;
}

.panel-head span {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 9px var(--mint);
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: clamp(1.3rem, 4vw, 2rem);
}

.contact-form label {
    display: grid;
    gap: 0.48rem;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.86rem 0.92rem;
    border: 1px solid var(--line);
    outline: 0;
    background: var(--bg-soft);
    color: var(--white);
    resize: vertical;
    transition: border-color 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--solar);
}

.contact-form select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 19px) 50%,
        calc(100% - 13px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.contact-form .button {
    width: 100%;
    margin-top: 0.4rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--line);
}

.footer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 2rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.footer-layout p {
    margin: 0;
}

.footer-advice {
    display: inline-block;
    margin-top: 0.45rem;
    color: var(--solar);
    font-weight: 700;
}

.mobile-contact-bar {
    display: none;
}

.detail-dialog {
    width: min(780px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--white);
    box-shadow: 0 30px 85px rgba(0, 0, 0, 0.55);
}

.detail-dialog::backdrop {
    background: rgba(3, 10, 12, 0.76);
    backdrop-filter: blur(4px);
}

.detail-dialog > img {
    width: 100%;
    height: min(285px, 31vh);
    object-fit: cover;
}

.dialog-close {
    position: sticky;
    top: 1rem;
    z-index: 3;
    display: block;
    width: 2.8rem;
    height: 2.8rem;
    margin: 1rem 1rem -3.8rem auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg);
    color: var(--white);
    font-size: 1.7rem;
}

.dialog-copy {
    padding: clamp(1.45rem, 5vw, 2.3rem);
}

.dialog-copy h2 {
    margin: 0 0 0.9rem;
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    letter-spacing: -0.055em;
}

.dialog-copy > p:not(.eyebrow) {
    margin: 0 0 1.25rem;
    color: var(--muted);
}

.dialog-copy ul {
    display: grid;
    gap: 0.48rem;
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(23px);
    transition: opacity 580ms ease, transform 580ms ease;
}

.reveal.shown {
    opacity: 1;
    transform: translateY(0);
}

.confirmation-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
}

.confirmation {
    width: min(620px, calc(100% - 2rem));
}

.confirmation .brand {
    margin-bottom: 2rem;
}

.confirmation-card {
    padding: clamp(2rem, 6vw, 3.2rem);
    border: 1px solid var(--line);
    background: var(--panel);
}

.confirmation-card h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 7vw, 3.2rem);
    letter-spacing: -0.07em;
}

.confirmation-card > p:not(.eyebrow) {
    margin: 0 0 2rem;
    color: var(--muted);
}

@media (max-width: 1120px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% - 0.35rem);
        right: 1.5rem;
        left: 1.5rem;
        display: none;
        padding: 0.85rem;
        border: 1px solid var(--line);
        background: var(--panel);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > a:not(.button) {
        padding: 0.85rem;
    }

    .nav-action {
        margin-top: 0.5rem;
    }

    .language-switch {
        align-self: flex-start;
        margin-top: 0.65rem;
    }

    .hero-layout,
    .about-layout,
    .contact-layout,
    .faq-layout,
    .performance-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding-top: 0;
    }

    .systems-header,
    .projects-header {
        align-items: start;
        flex-direction: column;
        gap: 1rem;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .journal-card:last-child {
        grid-column: span 2;
    }

    .project-card:last-child {
        grid-column: span 2;
    }

    .footer-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 670px) {
    :root {
        --container: min(100% - 1.4rem, 1200px);
    }

    .cursor-light {
        display: none;
    }

    .site-nav {
        min-height: 4.8rem;
    }

    .brand img {
        width: 2.7rem;
        height: 2.7rem;
    }

    .brand small {
        display: none;
    }

    .hero {
        padding-top: 6.5rem;
    }

    .hero-meta {
        display: none;
    }

    .hero-copy h1 {
        font-size: clamp(2.85rem, 17vw, 3.6rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .landing-page {
        padding-bottom: 4.25rem;
    }

    .mobile-contact-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 120;
        display: grid;
        grid-template-columns: 0.7fr 1fr;
        gap: 0.55rem;
        padding: 0.55rem 0.7rem max(0.55rem, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(7, 18, 22, 0.96);
        backdrop-filter: blur(14px);
    }

    .mobile-contact-bar a {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-height: 3rem;
        border: 1px solid var(--line);
        border-radius: 999px;
        font-size: 0.86rem;
        font-weight: 700;
    }

    .mobile-contact-bar a:last-child {
        border-color: var(--solar);
        background: var(--solar);
        color: var(--bg);
    }

    .monitor-image img {
        height: 265px;
    }

    .hero-status {
        align-items: start;
        flex-wrap: wrap;
    }

    .hero-status p {
        width: 100%;
        margin: 0.5rem 0 0;
    }

    .impact-grid,
    .system-flow,
    .expertise-panels,
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-card:nth-child(2),
    .system-node:nth-child(2) {
        border-right: 0;
    }

    .impact-card:nth-child(-n + 2),
    .system-node:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .system-node {
        min-height: 215px;
    }

    .system-node:nth-child(2)::after {
        content: none;
    }

    .expertise-panels,
    .project-grid,
    .journal-grid {
        grid-template-columns: 1fr;
    }

    .project-card:last-child,
    .journal-card:last-child {
        grid-column: auto;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
