@font-face {font-family:"Cormorant Garamond";src:url("./assets/fonts/cormorant.woff2") format("woff2");font-style:normal;font-weight:500 600;font-display:swap}
@font-face {font-family:"Cormorant Garamond";src:url("./assets/fonts/cormorant-italic.woff2") format("woff2");font-style:italic;font-weight:500 600;font-display:swap}
@font-face {font-family:Manrope;src:url("./assets/fonts/manrope.woff2") format("woff2");font-weight:400 700;font-display:swap}
@font-face {font-family:Inter;src:url("./assets/fonts/inter.woff2") format("woff2");font-weight:400 700;font-display:swap}
@font-face {font-family:"IBM Plex Mono";src:url("./assets/fonts/plex-mono.woff2") format("woff2");font-weight:500;font-display:swap}

:root {
    color-scheme: light;
    --porcelain: #f5f0eb;
    --ivory: #e8e3df;
    --silver: #d4d1ce;
    --industrial-grey: #bbbdbc;
    --pearl-white: #f2f0ef;
    --deep-teal: #103d46;
    --ocean-teal: #245f73;
    --copper: #914d2b;
    --copper-dark: #733e24;
    --copper-light: #ce9c7b;
    --paper: #2b2b2b;
    --muted: #555a57;
    --amber: #914d2b;
    --aqua: #103d46;
    --ink: var(--porcelain);
    --night: #fbf8f5;
    --surface: #eee7e0;
    --rule: #8378725e;
    --field-border: #867c76;
    --warm-gradient: linear-gradient(115deg, var(--porcelain) 0%, var(--ivory) 35%, var(--silver) 65%, var(--industrial-grey) 100%);
    --button-text: #fffaf5;
    --body: Manrope, "Segoe UI", system-ui, sans-serif;
    --display: "Cormorant Garamond", Georgia, serif;
    --label: "IBM Plex Mono", Consolas, monospace;
    --section-title: clamp(2.65rem, 4.5vw, 4rem);
    --shadow-soft: 0 8px 24px #2b2b2b0d;
    --radius-card: 12px;
    --radius-button: 4px;
    --timing: 300ms ease;
}

.site-header {
    background: var(--porcelain);
    border-bottom: var(--line);
}
.site-header nav a, .footer-row a, .text-link, .credit a { color: var(--aqua); }
.brand { letter-spacing: .035em; }
.brand > span:last-child { border-left: 1px solid var(--copper); padding-left: 1rem; font-size: 1.04rem; letter-spacing: .24em; font-weight: 600; }
.site-header .feature-menu summary { color: var(--paper); }
.site-header > nav { align-items: center; }
.site-header .feature-menu summary { white-space: nowrap; }
.site-header button, .header-report, .feature-menu summary { font-size: .875rem; font-weight: 500; }
.site-header > nav button { border: 0; padding: .35rem 0; background: none; white-space: nowrap; }
.site-header > nav button:hover, .header-report:hover, .site-header .feature-menu summary:hover { color: var(--copper); }
.header-report { white-space: nowrap; }
.site-header .contact-trigger {
    min-height: 44px;
    padding: .3rem 0;
    border: 0;
    background: transparent;
    white-space: nowrap;
}
.contact-trigger:hover, .contact-trigger:has(+ :popover-open) { color: var(--copper); }
.contact-panel {
    position: fixed;
    inset: calc(var(--header-height, 4rem) + .55rem) var(--inset) auto auto;
    width: min(23rem, calc(100% - 2 * var(--inset)));
    max-height: calc(100dvh - var(--header-height, 4rem) - 1.1rem);
    margin: 0;
    padding: clamp(1rem, 3vw, 1.5rem);
    overflow: auto;
    background: var(--porcelain);
    color: var(--paper);
    border: 1px solid var(--silver);
    border-radius: var(--radius-button);
    box-shadow: var(--shadow-soft);
}
.contact-panel .eyebrow { color: var(--deep-teal); margin-bottom: .55rem; }
.contact-panel h2 { font: 600 clamp(2.1rem, 5vw, 3rem)/1 var(--display); }
.contact-panel h2 em { color: var(--copper); }
.contact-intro { margin: .55rem 0 1rem; color: var(--muted); font-size: .9rem; }
.contact-methods { margin: 0; padding: 0; list-style: none; }
.contact-methods li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem;
    align-items: center;
    padding: .28rem 0;
    border-top: 1px solid var(--silver);
}
.contact-methods a, .footer-contact a { color: var(--deep-teal); overflow-wrap: anywhere; }
.contact-methods a { color: var(--paper); font-size: .88rem; padding-block: .45rem; }
.contact-methods a:hover, .footer-contact a:hover { color: var(--copper); text-decoration: underline; }
.contact-copy {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--ivory);
    color: var(--copper);
    border: 1px solid var(--silver);
    border-radius: var(--radius-button);
}
.contact-copy:hover { border-color: var(--copper); }
.contact-copy span, .contact-copy span::after {
    display: block;
    width: .65rem;
    height: .75rem;
    border: 1px solid currentColor;
    border-radius: 2px;
}
.contact-copy span { position: relative; transform: translate(-2px, -2px); }
.contact-copy span::after { content: ""; position: absolute; inset: 3px auto auto 3px; background: var(--ivory); }
.contact-feedback { min-height: 1lh; margin: .35rem 0 0; color: var(--deep-teal); font-size: .78rem; }
.footer-contact { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
    .contact-panel {
        opacity: 0;
        transform: translateY(-.35rem);
        transition: opacity 180ms ease, transform 180ms ease, display 180ms allow-discrete, overlay 180ms allow-discrete;
    }
    .contact-panel:popover-open { opacity: 1; transform: none; }
    @starting-style {
        .contact-panel:popover-open { opacity: 0; transform: translateY(-.35rem); }
    }
}
.login-button { padding: .65rem .85rem; border: 1px solid var(--copper); border-radius: var(--radius-button); background: transparent; white-space: nowrap; }
.login-button:hover { background: var(--surface); }
.login-button [aria-hidden] { color: var(--copper); margin-left: .15rem; }
.site-header .mobile-report { display: none; }
.camera-options, .stage-controls button, .views {
    color: var(--paper);
    background: #f5f0ebeb;
    border: var(--line);
}
.scene-status, .scene-error {
    color: var(--paper);
    background: var(--night);
}
.camera-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .65rem;
    accent-color: var(--amber);
}
.camera-options label, #orbit-tools { display: inline-flex; align-items: center; gap: .35rem; }
.camera-options select {
    font: inherit;
    background: var(--night);
    color: var(--paper);
    border: 1px solid var(--field-border);
    border-radius: 3px;
    padding: .14rem .28rem;
}

.factory { background: var(--warm-gradient); }
.hero-shade {
    background: linear-gradient(90deg, #f5f0eb 0%, #f5f0ebf2 22%, #f5f0eb92 38%, #f5f0eb00 52%);
}
.hero-shade::after { height: 8%; }
.hero-copy h1 {
    color: var(--paper);
    font-size: clamp(2.6rem, 4.9vw, 6.1rem);
    letter-spacing: -.04em;
    text-wrap: initial;
    line-height: .96;
    font-weight: 600;
}
.hero-copy h1 em { display: block; margin-top: .1em; font-weight: 600; }
.hero-copy h1 .scan-text {
    background-image: repeating-linear-gradient(0deg, #103d46 0 1px, #914d2b 1px 2px, #76523d 2px 4px);
    -webkit-text-stroke: .35px #76523d;
}
.stage-description { color: var(--paper); max-width: 34rem; line-height: 1.52; }
.eyebrow, .plan-frame figcaption, .station-note, .parts-track span { font-family: var(--label); }
.hero-entry { display: grid; justify-items: start; gap: .65rem; }
.hero-entry .button { gap: 1.2rem; padding-inline: 1.15rem; }
.hero-actions #explore { align-self: start; min-height: 2.85rem; padding: .3rem 0; border: 0; background: transparent; }
.button { border-radius: var(--radius-button); }
.stage-description::before {
    content: "";
    display: block;
    height: 2px;
    width: clamp(2rem, 5vw, 5rem);
    background: var(--amber);
    margin-bottom: .95rem;
}
.accent { color: var(--button-text); }
.accent:hover { background: #71391f; }
.factory-footer { border-color: var(--rule); }
.factory-footer p { color: var(--paper); }
.views button span { color: var(--muted); }
.factory-footer { justify-content: flex-start; gap: 1.6rem; }
.factory-footer .engineering-line { max-width: none; color: var(--paper); letter-spacing: .17em; font-weight: 700; }
.inspection-cursor i { border-color: var(--aqua); box-shadow: 0 0 0 1px var(--ivory); }
.inspection-cursor span { background: var(--aqua); color: var(--button-text); border-color: var(--aqua); }

.parts-strip, .site-footer { background: var(--ivory); }
.parts-track span, .plan-frame figcaption, .station-note { color: var(--aqua); }
.raw-reveal, .inside { color: var(--paper); padding-block: clamp(3.75rem, 8vw, 7rem); }
.raw-reveal { min-height: 0; }
.editorial-header { max-width: 49rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.editorial-header h2 { font-size: var(--section-title); line-height: 1; font-weight: 600; letter-spacing: -.025em; }
.editorial-header p, .raw-grid p, .raw-grid dd { line-height: 1.6; color: var(--muted); }
.editorial-header p { max-width: 36rem; font-size: 1.03rem; }
.faq {
    padding: clamp(3.5rem, 7vw, 7rem) var(--inset);
    background: var(--porcelain);
    border-top: 1px solid var(--industrial-grey);
}
.faq-inner { max-width: 65rem; margin-inline: auto; }
.faq .editorial-header { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.faq .eyebrow { color: var(--deep-teal); font-size: .78rem; }
.faq h2 { color: var(--paper); font-family: var(--display); }
.faq h2 em { color: var(--copper); }
.faq-list {
    --faq-padding: clamp(.7rem, 2.5vw, 1.5rem);
    --faq-gap: clamp(.65rem, 2vw, 1.2rem);
    --faq-number-width: 1.1rem;
    display: grid;
    gap: .55rem;
}
.faq-list details {
    background: var(--porcelain);
    border: 1px solid var(--silver);
    border-radius: var(--radius-button);
}
.faq-list details[open] { border-color: var(--copper); background: var(--ivory); }
.faq-list summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--faq-gap);
    min-height: 3.65rem;
    padding: .7rem var(--faq-padding);
    list-style: none;
    font-size: clamp(.94rem, 1.5vw, 1.075rem);
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline: 2px solid var(--deep-teal); outline-offset: 2px; }
.faq-number { min-width: var(--faq-number-width); color: var(--deep-teal); font: 500 .82rem var(--label); }
.faq-icon {
    display: grid;
    place-items: center;
    width: 1.55rem;
    aspect-ratio: 1;
    color: var(--copper);
    border: 1px solid currentColor;
    border-radius: 50%;
}
.faq-icon::before, .faq-icon::after {
    content: "";
    grid-area: 1 / 1;
    width: .6rem;
    height: 1px;
    background: currentColor;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-list details[open] .faq-icon::after { transform: rotate(0); }
.faq-answer {
    padding: 0 var(--faq-padding) 1.15rem calc(var(--faq-padding) + var(--faq-gap) + var(--faq-number-width));
    color: var(--muted);
    line-height: 1.65;
}
.faq-answer p { max-width: 72ch; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
    .faq-list details { transition: background-color 275ms ease, border-color 275ms ease; }
    .faq-icon::after { transition: transform 275ms ease; }
    @supports selector(details::details-content) and (interpolate-size: allow-keywords) {
        .faq-list details::details-content {
            interpolate-size: allow-keywords;
            block-size: 0;
            overflow: clip;
            transition: block-size 275ms ease, content-visibility 275ms allow-discrete;
        }
        .faq-list details[open]::details-content { block-size: auto; }
    }
}
@media (forced-colors: active) {
    .faq-icon::before, .faq-icon::after { background: ButtonText; forced-color-adjust: none; }
}
.workflow {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
    padding: 0; margin: 0 0 clamp(2.5rem, 6vw, 5rem); list-style: none;
}
.workflow li { position: relative; border-block: var(--line); padding: 1.2rem 0; }
.workflow li:not(:last-child)::after { content: "→"; position: absolute; right: -1.4rem; top: 2rem; color: var(--copper); }
.workflow svg { width: 4rem; height: 3.125rem; stroke: var(--aqua); stroke-width: 1.35; fill: none; }
.workflow h3 { margin: .6rem 0 .4rem; font-size: .98rem; }
.workflow p, .capabilities p { margin: 0; font-size: .9rem; }
.raw-grid { position: static; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.raw-grid h3, .line-summary h3 { margin: 0 0 1rem; font: 600 clamp(1.6rem, 2.55vw, 2.25rem)/1 var(--display); }
.methodology dl { margin: 0 0 2rem; display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); column-gap: 1.3rem; }
.methodology dt, .methodology dd { margin: 0; padding: .66rem 0; border-top: var(--line); }
.methodology dt { color: var(--deep-teal); font-weight: 650; }
.methodology .raw-visual { max-width: 30rem; margin-top: 1.6rem; }
.technology-list, .intended-benefits ul, .line-indicators { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; }
.technology-list li { border: var(--line); border-radius: 3px; padding: .3rem .55rem; }
.capabilities { background: var(--night); border: var(--line); padding: clamp(1.25rem, 3vw, 2.25rem); }
.capabilities ul { list-style: none; padding: 0; margin: 0; }
.capabilities li { padding: .68rem 0 .7rem 1.2rem; border-top: var(--line); position: relative; }
.capabilities li::before, .line-indicators li::before { content: ""; display: inline-block; width: .45rem; height: .45rem; border: 1px solid var(--copper); transform: rotate(45deg); }
.capabilities li::before { position: absolute; left: 0; top: 1rem; }
.capabilities a { font-weight: 700; }
.capabilities a:hover { text-decoration: underline; text-underline-offset: .2em; }
.intended-benefits { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin-top: 3rem; padding: 1rem 1.25rem; background: var(--deep-teal); color: var(--button-text); font-size: .9rem; }
.intended-benefits strong { color: #f0cab2; }
.inside-header h2 { color: var(--deep-teal); font-weight: 600; }
#inside .inside-header > p:last-child { grid-column: 1 / -1; color: var(--copper); font: italic 600 clamp(1.3rem, 2.5vw, 1.875rem)/1.15 var(--display); }
.inside { background: var(--pearl-white); }
.line-summary { padding: clamp(1.1rem, 3vw, 2.1rem); border: var(--line); background: var(--night); box-shadow: var(--shadow-soft); margin-bottom: 1rem; }
.line-summary p { margin: 0 0 .65rem; }
.line-indicators { border-top: var(--line); padding-top: .8rem; font-size: .75rem; font-weight: 650; }
.line-indicators li::before { margin-right: .4rem; }
.project-dialog { width: min(38rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow-wrap: anywhere; border: var(--line); background: var(--night); color: var(--paper); padding: clamp(1.5rem,5vw,3rem); box-shadow: var(--shadow-soft); }
.project-dialog::backdrop { background: #103d466b; }
.project-dialog h2 { font-size: var(--section-title); font-weight: 600; }
.project-dialog p { line-height: 1.6; }
#project-information[open]:has(.research-content) {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    max-height: min(80vh, 80dvh);
    overflow: hidden;
}
#information-content:has(> .research-content) {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.research-content {
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-inline: -.5rem;
    padding-inline: .5rem;
}
#project-information:has(.research-content) .dialog-close { z-index: 1; }
.research-references { margin: 0; padding: 0; list-style: none; }
.research-references li + li { margin-block-start: 1rem; }
html:has(#project-information[open] .creator-profile) { overflow: hidden; }
#project-information:has(.creator-profile) {
    width: min(76rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: clamp(1rem, 3vw, 2rem);
    background: var(--porcelain);
    font-family: var(--body);
}
#project-information:has(.creator-profile)::backdrop { backdrop-filter: blur(6px); }
#project-information:has(.creator-profile) .dialog-close {
    inset: 1rem 1rem auto auto;
    border: 1px solid var(--silver);
    border-radius: 50%;
    color: var(--paper);
}
.creator-profile { --creator-rule: 1px solid var(--copper-light); }
.creator-profile :is(h2, h3, h4, p, ol) { margin: 0; }
.creator-profile .creator-label {
    color: var(--copper-dark);
    font: 800 .88rem/1.35 var(--body);
    letter-spacing: .09em;
    text-transform: uppercase;
}
.creator-profile > .creator-label { padding-inline-end: 3rem; }
.creator-profile h2 {
    padding-inline-end: 2rem;
    color: var(--deep-teal);
    font: 600 clamp(2.5rem, 6vw, 5rem)/.98 var(--display);
}
.creator-identity { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); margin-block: 1.5rem; }
.creator-monogram {
    display: grid;
    place-items: center;
    flex: 0 0 clamp(3rem, 8vw, 6rem);
    aspect-ratio: 1;
    border: var(--creator-rule);
    border-radius: 50%;
    background: var(--ivory);
    color: var(--deep-teal);
    font: 700 clamp(1.6rem, 4vw, 3rem)/1 var(--display);
}
.creator-identity h3 { max-width: 20ch; color: var(--deep-teal); font: 700 clamp(1.4rem, 3vw, 2.8rem)/1 var(--display); }
.creator-role { color: var(--copper-dark); font-weight: 800; }
.creator-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.5rem);
    border-block-start: var(--creator-rule);
    padding-block: 1.5rem;
}
.creator-columns p + p { margin-block-start: .8rem; }
.creator-work { border-inline-start: var(--creator-rule); padding-inline-start: clamp(1rem, 3vw, 2.5rem); }
.creator-work ol { list-style: none; padding: 0; }
.creator-work li { display: grid; grid-template-columns: 1.65rem minmax(0, 1fr); gap: .75rem; padding-block: .65rem; }
.creator-work li + li { border-block-start: var(--creator-rule); }
.creator-work h4 { color: var(--deep-teal); font: 700 1.4rem/1.15 var(--display); }
.creator-work h4 span { color: var(--copper-dark); font: 800 .9rem var(--body); }
.creator-icon { position: relative; width: 1.4rem; height: 1rem; margin-block-start: .35rem; color: var(--copper); border: 2px solid; border-radius: .15rem; }
.creator-icon::after { content: ""; position: absolute; }
.creator-icon--chip { width: 1.15rem; height: 1.15rem; outline: 1px dashed; outline-offset: 3px; }
.creator-icon--factory { border-radius: 0; background: repeating-linear-gradient(90deg, transparent 0 3px, currentColor 3px 5px, transparent 5px 7px) center / 76% 30% no-repeat; }
.creator-icon--factory::after { width: .25rem; height: .35rem; right: .1rem; bottom: 100%; border: 1px solid; }
.creator-icon--screen::after { inset: auto 20% -.3rem; border-block-end: 2px solid; }
.creator-linkedin {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(.65rem, 2vw, 1.35rem);
    padding: .8rem clamp(.75rem, 2vw, 1.5rem);
    border-radius: .85rem;
    background: var(--deep-teal);
    color: var(--porcelain);
    text-decoration: none;
}
.creator-linkedin:hover strong { text-decoration: underline; }
.creator-linkedin-icon { padding: .1rem .28rem; border: 1px solid currentColor; border-radius: .25rem; font-size: 1.45rem; font-weight: 800; }
.creator-arrow { font-size: 1.5rem; }
.creator-profile .creator-signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-block: .65rem;
    text-align: center;
    color: var(--copper-dark);
    font: italic 600 clamp(1.1rem, 3vw, 1.65rem)/1.2 var(--display);
}
.creator-signature::before, .creator-signature::after { content: ""; flex: 1; border-block-start: var(--creator-rule); }
.creator-assets { padding-block-start: .65rem; border-block-start: var(--creator-rule); font-size: .85rem; }
.creator-assets a { display: inline-block; margin-inline-end: 1rem; }
@media (max-width: 700px) {
    .creator-columns { grid-template-columns: 1fr; }
    .creator-work { border-inline-start: 0; border-block-start: var(--creator-rule); padding: 1rem 0 0; }
}
.founder-credit {
    margin-block: 1.25rem;
    padding: .65rem 0 .65rem clamp(.7rem, 2.5vw, 1.1rem);
    border-inline-start: 2px solid var(--deep-teal);
}
.founder-credit .founder-name {
    margin: 0;
    color: var(--deep-teal);
    font: 600 clamp(1.6rem, 5vw, 2.35rem)/1.05 var(--display);
    letter-spacing: .025em;
    text-wrap: pretty;
}
@supports (background-clip: text) {
    .founder-credit .founder-name {
        background: linear-gradient(112deg, var(--deep-teal) 20%, var(--ocean-teal) 60%, var(--deep-teal) 93%);
        background-clip: text;
        color: transparent;
    }
}
.founder-credit .founder-role {
    margin: .45rem 0 0;
    color: var(--deep-teal);
    font: 500 .81rem/1.5 var(--label);
}
.founder-credit--footer .founder-name { font-size: clamp(1.3rem, 3vw, 1.75rem); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .founder-credit .founder-name { transition: filter var(--timing); }
    .founder-credit:hover .founder-name { filter: drop-shadow(0 0 5px #245f732e); }
}
@media (forced-colors: active) {
    .founder-credit .founder-name { background: none; color: CanvasText; }
}
.account-dialog { width: min(28rem, calc(100% - 2rem)); }
.account-brand { display: flex; align-items: center; gap: .65rem; padding-right: 2rem; }
.account-brand img, .footer-brand img { display: block; flex: none; width: 1.8rem; height: 1.8rem; object-fit: contain; }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; }
#account-form, #account-password-fields { display: grid; gap: .45rem; }
#account-form label { font-size: .9rem; font-weight: 650; }
#account-password-hint { margin: 0; color: var(--muted); font-size: .82rem; }
#account-form input:not([type="checkbox"]) {
    min-width: 0; min-height: 44px; padding: .6rem .7rem; font: inherit;
    background: var(--night); color: var(--paper); border: 1px solid var(--field-border); border-radius: var(--radius-button);
}
.account-remember { display: flex; align-items: center; min-height: 44px; gap: .55rem; }
.account-remember input { accent-color: var(--copper); }
#account-message:empty { display: none; }
#account-message[data-error] { color: var(--copper-dark); }
#account-identity { overflow-wrap: anywhere; }
#account-submit { margin-block-start: .45rem; }
.account-link { justify-self: start; min-height: 44px; padding: .25rem 0; border: 0; background: transparent; color: var(--aqua); text-decoration: underline; text-underline-offset: .22em; }
.dialog-close { position: absolute; inset: .5rem .5rem auto auto; min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.4rem; }
.raw-grid a { color: var(--aqua); }
.raw-visual :is(text, #raw-scan) { fill: var(--aqua); }
.raw-visual #raw-scan { stroke: var(--amber); }
.raw-visual use { stroke: var(--aqua); }
.raw-visual #raw-material stop:first-child { stop-color: #d2dedb; }
.raw-visual #raw-material stop:last-child { stop-color: #628284; }
.plan-layer path, .plan-layer path.walls, .plan-layer path.belt { stroke: var(--aqua); }
.plan-layer path.muted, .plan-layer path.dashed { stroke: #657d7d; }
.plan-layer path.equipment { fill: #e1e7e2; stroke: var(--aqua); }
.plan-layer text { fill: var(--aqua); }
.plan-preview { opacity: 0; transition: opacity var(--timing); }
.plan-frame[data-layer="0"] .plan-preview { opacity: 1; }
.plan-preview path { fill: none; stroke: #657d7d; stroke-width: 1.5; }
.plan-preview .plan-flow { stroke: var(--copper); stroke-width: 2; }
.plan-preview text { fill: var(--deep-teal); text-anchor: middle; font: 15px var(--label); }
.station { background: var(--night); }
.station:hover, .station[aria-pressed="true"] { color: var(--button-text); }
.local-file .local-file-help { color: var(--paper); background: var(--ivory); }
.local-file .local-file-help a { color: var(--aqua); }

:focus-visible { outline: 2px solid var(--copper-dark); outline-offset: 3px; }
.site-header :focus-visible { outline-offset: 1px; }
.skip:focus { z-index: 20; }
main :focus-visible { scroll-margin-top: calc(var(--header-height, 4rem) + .5rem); }
.scene:focus-visible { outline-offset: -4px; }
.factory:has(.scene:focus-visible)::after { content: ""; position: absolute; inset: 3px; border: 2px solid var(--copper-dark); pointer-events: none; z-index: 6; }
.orbit-buttons { display: flex; flex-wrap: wrap; gap: .3rem; flex-basis: 100%; }
.orbit-buttons button, .ticker-pause, .station-reveal {
    min-height: 32px;
    min-width: 32px;
    padding: .25rem .55rem;
    background: var(--night);
    border: 1px solid var(--field-border);
    border-radius: var(--radius-button);
}
.orbit-buttons button:hover, .ticker-pause:hover, .station-reveal:hover { background: var(--surface); }
.parts-strip { display: flex; align-items: center; }
.parts-window { flex: 1; min-width: 0; overflow: hidden; }
.ticker-pause { flex: none; margin-inline: .6rem; font-size: .78rem; }
.parts-strip:has(.ticker-pause[aria-pressed="true"]) .parts-track { animation-play-state: paused; }
.station-reveal { margin-bottom: .5rem; font: 500 .75rem var(--body); }
.station-reveal[aria-pressed="true"], .ticker-pause[aria-pressed="true"] { border-color: var(--copper); background: var(--surface); color: var(--copper-dark); }
.station { min-width: 32px; min-height: 32px; }
@media (prefers-reduced-motion: reduce) {
    .ticker-pause { display: none; }
}

.native-layout-frame { color-scheme: light; border-color: var(--field-border); }
.native-scroll { background: linear-gradient(115deg, var(--porcelain), var(--pearl-white)); font-family: Inter, var(--body); }
.native-content { padding-top: clamp(1rem, 2.1vw, 1.9rem); }
.native-content h2 { color: var(--deep-teal); font-weight: 600; }
.native-metrics div, .native-card, .native-upload-area { background: var(--night); border-color: var(--rule); }
.native-metrics dd { color: var(--aqua); }
.native-metrics div, .native-card { border-radius: var(--radius-card); box-shadow: var(--shadow-soft); }
.native-select :is(select, input), .native-button { background: var(--night); border-color: var(--field-border); }
.native-upload-area { border-color: var(--amber); }
.native-upload-area[data-dragging] { background: #efe0d4; }
.native-upload-label span { color: var(--button-text); }
.native-warning, #native-message[data-status="error"] { color: #883e23; }
.native-table :is(td, th), .sidebar-dataset { border-color: var(--rule); }
#native-sidebar-slot, .native-sidebar, #native-sidebar-drawer { background: var(--deep-teal); border-color: #245f73; }
.native-sidebar { --paper: #f5f0eb; --muted: #d1dfdf; --aqua: #e0b295; --amber: #e9c2a6; --rule: #ffffff3b; font-family: Inter, var(--body); }
#native-sidebar-drawer::backdrop { background: #222b2c75; }
.sidebar-brand img { background: #245360; border-radius: 3px; padding: .2rem; }
.sidebar-toggle:hover, .sidebar-rail-data:hover, .sidebar-nav .sidebar-link:hover { background: #245360; border-color: var(--rule); }
.sidebar-nav .sidebar-link[aria-current="page"] { background: var(--copper); border-color: #ffffff40; color: var(--button-text); }
.sidebar-link svg { color: #e0b295; }
.sidebar-data-actions button { border-color: #ffffff40; background: #245360; color: var(--paper); }

@media (min-width: 1024px) {
    .hero-copy { max-width: min(43vw, 47rem); width: min(43vw, 47rem); }
    .camera-options { inset: auto var(--gutter) 1.45rem auto; max-width: 34rem; }
}
@media (min-width: 1024px) and (max-width: 1340px) {
    .factory-footer { padding-right: min(36rem, 54vw); gap: .25rem 1.25rem; flex-wrap: wrap; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .factory .hero-body { padding-block: 8rem 6rem; }
    .factory .hero-copy { width: min(32vw, 19rem); max-width: none; }
    .hero-copy h1 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); }
}
@media (max-width: 1100px) {
    .site-header { flex-wrap: nowrap; }
    .site-header > .header-report { display: none; }
    .site-header .mobile-report { display: block; }
    .site-header .sections-toggle { display: block; padding: .5rem; min-height: 44px; border: 0; background: transparent; }
    .site-header > .sections-toggle + nav { display: none; }
    .site-header > .sections-toggle[aria-expanded="true"] + nav {
        position: absolute; inset: 100% var(--inset) auto auto; display: grid;
        width: max-content; max-width: calc(100% - 2 * var(--inset)); max-height: calc(100dvh - var(--header-height, 4rem));
        padding: .45rem .75rem; border: var(--line); background: var(--night); gap: 0; overflow: auto;
    }
    .site-header > nav :is(button, a) { display: flex; align-items: center; min-height: 44px; white-space: normal; text-align: left; }
    .site-header .feature-menu nav { position: fixed; inset: var(--header-height, 4rem) var(--inset) auto auto; }
}
@media (max-width: 900px) {
    .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.7rem; }
    .workflow li:nth-child(2)::after { content: none; }
}
@media (max-width: 820px) {
    .inside-header { grid-template-columns: minmax(0, 1fr); }
    .station { width: 2.75rem; height: 2.75rem; }
}
@media (max-width: 767px) {
    .factory { align-content: end; padding-block-start: max(53svh, calc(var(--header-height, 4rem) + 17rem)); }
    .hero-shade { background: linear-gradient(0deg, #f5f0eb 4%, #f5f0ebed 39%, #f5f0eb00 63%); }
    .camera-options { right: var(--gutter); }
    .factory .hero-body { position: relative; inset: auto; padding-inline: var(--inset); pointer-events: auto; }
    .factory .hero-copy { background: transparent; padding: 0; }
    .factory .hero-copy h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); }
    .factory-footer { position: relative; inset: auto; margin: 1.35rem var(--gutter) .65rem; flex-wrap: wrap; gap: .25rem 1rem; }
    .factory-footer p { max-width: none; }
    .hero-actions { column-gap: .65rem; row-gap: .4rem; }
    .hero-actions #explore { font-size: .81rem; }
    .raw-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .methodology dl { grid-template-columns: minmax(0, 1fr); }
    .methodology dd { border-top: 0; padding-top: 0; }
}
@media (max-width: 540px) {
    .site-header { gap: .3rem; }
    .site-header .brand-mark { width: 2.6rem; }
    .site-header :is(.sections-toggle, .feature-menu summary, .contact-trigger, .login-button) { min-height: 44px; padding: .55rem .3rem; font-size: .8rem; align-content: center; }
    .plan-frame figcaption { flex-wrap: wrap; }
}
@media (max-width: 380px) {
    .site-header { padding-inline: .5rem; gap: .2rem; }
    .site-header .brand-mark { width: 2.4rem; }
    .site-header :is(.sections-toggle, .feature-menu summary, .contact-trigger, .login-button) { padding-inline: .25rem; font-size: .75rem; }
}

#inside .process .case-label {
    margin: 0 0 .65rem;
    color: var(--aqua);
    font: 500 .75rem/1.4 var(--label);
    letter-spacing: .07em;
    text-transform: uppercase;
}
#inside .process .case-indicators,
#inside .process .case-bars { list-style: none; padding: 0; }
#inside .process .case-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin: 1rem 0 0;
    font: 500 .75rem/1.5 var(--label);
}
#inside .process .case-indicators li::before { content: "◆"; color: var(--copper); margin-inline-end: .45rem; }
#inside .process .case-ensemble { display: block; margin-block-start: 1rem; max-width: 100%; }
#inside .process .case-ensemble path { fill: none; stroke: var(--deep-teal); stroke-width: 1.25; }
#inside .process .case-ensemble circle { fill: var(--copper); }
#inside .process .case-comparison { margin: 1.15rem 0 0; }
#inside .process .case-comparison figcaption,
#inside .process .case-scenarios caption { color: var(--muted); font-size: .82rem; text-align: start; }
#inside .process .case-bars { display: grid; gap: .6rem; margin: .8rem 0; }
#inside .process .case-bars li {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: .5rem;
    color: var(--deep-teal);
    font: 500 .75rem/1.45 var(--label);
}
#inside .process .case-bars meter { grid-column: 1 / -1; width: 100%; height: .65rem; }
#inside .process .case-bars meter::-webkit-meter-bar { background: var(--silver); border: 0; border-radius: 0; }
#inside .process .case-bars meter::-webkit-meter-optimum-value { background: var(--deep-teal); }
#inside .process .case-bars .case-bottleneck { color: var(--copper); }
#inside .process .case-bars .case-bottleneck meter::-webkit-meter-optimum-value { background: var(--copper); }
#inside .process .case-bars meter::-moz-meter-bar { background: var(--deep-teal); }
#inside .process .case-bars .case-bottleneck meter::-moz-meter-bar { background: var(--copper); }
#inside .process .case-comparison p { margin-block: .35rem; font-size: .82rem; }
#inside .process .case-scenarios { width: 100%; border-collapse: collapse; margin-block-start: 1rem; font-size: .82rem; }
#inside .process .case-scenarios caption { padding-block-end: .55rem; }
#inside .process .case-scenarios :is(th, td) { border-top: var(--line); padding: .4rem .15rem; text-align: start; }
#inside .process .case-scenarios th { font-weight: 650; }
#inside .process .case-closing { border-top: var(--line); margin-block-start: 1.5rem; padding-block-start: 1.2rem; }
#inside .process .case-closing h4 { margin: 0 0 .65rem; font: 400 1.65rem/1.1 var(--display); }
#inside .process .case-statement { margin-block-start: .9rem; color: var(--copper); font: 600 1.4rem/1.2 var(--display); }
