/* HAGANE — layout matched to reference */

:root {
    --red: #FF2D2D;
    --black: #000;
    --white: #fff;
    --gray-bg: #EBEBEB;
    --gray-light: #F2F2F2;
    --gray-mid: #D8D8D8;
    --gray-line: #D0D0D0;
    --gray-text: #888;
    --gray-fade: #BDBDBD;
    --dark-card: #1C1C1C;
    /* Onest: кириллица + латиница (Space Grotesk кириллицу не покрывает) */
    --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --pad: 48px;
}

/* Cross-browser baseline */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
button, input, select, textarea {
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}
button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
img, picture, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}
body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Display typography — Onest Bold */
h1, h2, h3, h4,
.hero-desc,
.hero-title,
.hero-title > span,
.hero-subtitle,
.contact-heading,
.contact-giant-text,
.prose-lead,
.section-heading,
.demo-heading,
.promise-heading,
.stat-value,
.ai-metric-value,
.ai-card h3,
.capability-card h3,
.eng-mini-stat strong,
.project-card-body h4,
.modal h2,
.modal h4 {
    font-family: var(--font-display);
    font-weight: 700;
}

.hero-title,
.contact-giant-text,
.promise-heading {
    font-weight: 800;
}

/* Body copy — Space Grotesk Regular */
.prose-wide,
.section-body,
.capability-card p,
.ai-card p,
.project-card-body p,
.contact-form label,
.stat-row span:first-child {
    font-weight: 400;
}

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

/* NAV */
.nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px var(--pad);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 32px; height: 32px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.logo-text {
    font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
    text-transform: uppercase; line-height: 1.25; color: var(--black);
}
.logo-text small { display: block; font-size: 8px; font-weight: 500; letter-spacing: 0.12em; color: var(--gray-text); }
.logo-text.light { color: var(--white); }
.logo-text.light small { color: rgba(255,255,255,0.55); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 13px; font-weight: 500; }
.nav-links a.active { color: var(--red); font-weight: 600; }
.nav-links a:not(.active) { color: var(--black); }

/* HERO */
.hero { position: relative; background: var(--white); }
.hero-stage {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--white);
}
.hero-stage::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 38%;
    background: var(--gray-light);
    z-index: 0;
}

/* 4-column grid + horizontal seam line */
.hero-grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background-image:
        linear-gradient(to right, transparent calc(25% - 0.5px), rgba(0,0,0,0.06) calc(25% - 0.5px), rgba(0,0,0,0.06) calc(25% + 0.5px), transparent calc(25% + 0.5px)),
        linear-gradient(to right, transparent calc(50% - 0.5px), rgba(0,0,0,0.06) calc(50% - 0.5px), rgba(0,0,0,0.06) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
        linear-gradient(to right, transparent calc(75% - 0.5px), rgba(0,0,0,0.06) calc(75% - 0.5px), rgba(0,0,0,0.06) calc(75% + 0.5px), transparent calc(75% + 0.5px)),
        linear-gradient(to bottom, transparent calc(38% - 0.5px), rgba(0,0,0,0.05) calc(38% - 0.5px), rgba(0,0,0,0.05) calc(38% + 0.5px), transparent calc(38% + 0.5px));
}

/* Red panel — bottom-right 2/3 */
.hero-red-panel {
    position: absolute;
    left: 33.33%;
    right: 0;
    top: 38%;
    bottom: 0;
    background: var(--red);
    z-index: 8;
    padding: clamp(48px, 7vh, 88px) var(--pad) 44px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Robot — transparent PNG, overlaps white + red */
.hero-robot-wrap {
    position: absolute;
    left: -19%;
    bottom: 2vh;
    top: auto;
    width: 62%;
    height: 90%;
    z-index: 20;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: visible;
    pointer-events: none;
}
.hero-branded-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 38%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.hero-branded-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0.15;
}

.hero-robot-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: left bottom;
    transform: scaleX(-1);
    transform-origin: center bottom;
}

.hero-desc {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: clamp(88px, 14vh, 128px);
    width: min(90%, 680px);
    max-width: 44ch;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.025em;
    color: var(--black);
    z-index: 15;
}

.hero-cta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(38% - 56px);
    bottom: auto;
    display: flex;
    gap: 0;
    z-index: 25;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 26px; font-size: 12px; font-weight: 600;
    font-family: var(--mono); border: none; cursor: pointer;
    transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-gray { background: var(--white); color: var(--black); }
.btn-black { background: var(--black); color: var(--white); }

.hero-factory {
    position: absolute;
    right: var(--pad);
    top: 88px;
    width: calc(25% - var(--pad) - 8px);
    max-width: 260px;
    height: clamp(210px, 30vh, 270px);
    z-index: 14;
}
.factory-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.factory-badge {
    position: absolute; bottom: 10px; left: 10px;
    display: flex; align-items: center;
    background: transparent;
    padding: 0;
    overflow: hidden;
    border-radius: 2px;
}
.factory-logo {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.06em;
    width: 100%;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.8vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 22;
    padding-left: clamp(8px, 1.5vw, 20px);
    padding-right: clamp(8px, 2vw, 32px);
}
.hero-title > span {
    font-family: inherit;
    font-weight: inherit;
}
.hero-title span:last-child {
    margin-left: 0;
    padding-right: 0;
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    padding-left: clamp(8px, 1.5vw, 20px);
    position: relative;
    z-index: 22;
}
.hero-tags span {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.hero-red-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 22;
    padding-left: clamp(8px, 1.5vw, 20px);
}

.hero-subtitle {
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.4;
    max-width: 28ch;
    color: var(--white);
}

.hero-stats {
    max-width: 400px;
    width: 42%;
    flex-shrink: 0;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: clamp(14px, 1.25vw, 17px);
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.28);
}
.stat-row:last-child { border-bottom: none; }
.stat-value {
    font-size: clamp(20px, 2.2vw, 28px);
    letter-spacing: -0.03em;
}

/* SECTION LABEL */
.section-label {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 11px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.section-label.light { color: var(--white); }
.section-label.dark { color: var(--black); }
.label-dot { width: 10px; height: 10px; background: var(--red); flex-shrink: 0; }
.label-dot.white { background: var(--white); }

/* ABOUT */
.about {
    --about-card-w: 360px;
    --about-card-offset: 88px;
    background: var(--gray-bg);
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--pad);
    position: relative;
    overflow: hidden;
}
.about .section-label { position: absolute; top: var(--pad); left: var(--pad); z-index: 3; }

.about-text {
    position: absolute;
    top: 9%;
    left: var(--pad);
    right: var(--pad);
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.028em;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    z-index: 3;
    background: linear-gradient(
        to bottom,
        var(--black) 0%,
        var(--black) 48%,
        #7a7a7a 68%,
        #b8b8b8 88%,
        #d0d0d0 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-dark { color: var(--black); }
.text-fade { color: var(--gray-fade); }

.about-robot-img {
    position: absolute;
    left: calc(var(--pad) + var(--about-card-offset) + var(--about-card-w));
    bottom: -5%;
    height: min(80vh, 860px);
    width: auto;
    max-width: calc(100% - var(--pad) - var(--about-card-offset) - var(--about-card-w) + 6%);
    object-fit: contain;
    object-position: left bottom;
    z-index: 5;
    filter: drop-shadow(0 28px 56px rgba(0,0,0,0.2));
}

.feature-card {
    position: absolute;
    background: rgba(205, 205, 205, 0.55);
    padding: 22px 26px;
    max-width: 270px;
    z-index: 6;
}
.card-01 {
    top: 50%;
    bottom: auto;
    left: calc(var(--pad) + var(--about-card-offset));
    width: var(--about-card-w);
    max-width: var(--about-card-w);
    padding: 32px 36px;
    transform: translateY(2%);
}
.card-01 .card-num {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    color: var(--black);
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}
.card-01 h3 {
    font-size: 21px;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 8px;
}
.card-01 p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    letter-spacing: -0.01em;
}
.card-num {
    font-family: var(--mono); font-size: 11px; color: var(--gray-text);
    display: block; margin-bottom: 10px;
}
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 12px; color: var(--gray-text); line-height: 1.5; }

/* FEATURES */
.features {
    --feat-red-left: 42%;
    --feat-red-top: 14%;
    --feat-card-w: clamp(340px, 28vw, 440px);
    --feat-card-pad: 40px;
    --feat-features-left: 56%;
    --feat-features-top: 42%;
    background: var(--black);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
}

.features-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.features-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, transparent calc(25% - 1px), rgba(255,255,255,0.1) calc(25% - 1px), rgba(255,255,255,0.1) calc(25% + 1px), transparent calc(25% + 1px)),
        linear-gradient(to right, transparent calc(50% - 1px), rgba(255,255,255,0.1) calc(50% - 1px), rgba(255,255,255,0.1) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(to right, transparent calc(75% - 1px), rgba(255,255,255,0.1) calc(75% - 1px), rgba(255,255,255,0.1) calc(75% + 1px), transparent calc(75% + 1px)),
        linear-gradient(to bottom, transparent calc(50% - 1px), rgba(255,255,255,0.1) calc(50% - 1px), rgba(255,255,255,0.1) calc(50% + 1px), transparent calc(50% + 1px));
}
.features-rings {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(80vw, 900px);
}
.features-rings svg { width: 100%; height: auto; }

.features-robot-img {
    position: absolute;
    left: -14%;
    bottom: -2%;
    height: min(78vh, 860px);
    width: auto;
    object-fit: contain;
    object-position: left bottom;
    z-index: 6;
}

.feat-card {
    position: absolute;
    padding: var(--feat-card-pad);
    width: var(--feat-card-w);
    max-width: var(--feat-card-w);
    z-index: 8;
}
.feat-card-red {
    background: var(--red);
    top: var(--feat-red-top);
    left: var(--feat-red-left);
    color: var(--white);
    min-height: clamp(200px, 22vh, 260px);
}
.feat-card .card-num {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.02em;
    margin-bottom: 18px;
    display: block;
}
.feat-card h3 {
    font-size: clamp(26px, 2.2vw, 32px);
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    line-height: 1.2;
}
.feat-card p {
    font-size: 15px;
    line-height: 1.55;
    opacity: 0.9;
}

.feat-header-block {
    position: absolute;
    left: var(--feat-features-left);
    right: auto;
    top: var(--feat-features-top);
    width: clamp(300px, 26vw, 400px);
    max-width: none;
    transform: translateY(-10%);
    z-index: 7;
}
.feat-header-block .section-label { margin-bottom: 18px; }
.feat-desc { font-size: 16px; font-weight: 500; color: var(--white); line-height: 1.6; }

.feat-card-gray {
    background: rgba(255, 255, 255, 0.06);
    bottom: 10%;
    right: clamp(24px, 4vw, 48px);
    color: var(--white);
}

.feat-cta {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 28px; align-items: center;
    z-index: 8;
}
.bracket-link {
    font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--white);
}
.bracket-link.dark { color: var(--black); }
.text-link-red { font-size: 13px; font-weight: 600; color: var(--red); }

/* MATERIAL */
.material {
    --material-col-left: 35%;
    background: var(--white);
    padding: var(--pad);
    min-height: 90vh;
}

.material-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
    padding-bottom: 28px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--gray-line);
}
.material-desc {
    font-size: clamp(16px, 1.3vw, 18px);
    font-weight: 500;
    line-height: 1.55;
    max-width: 560px;
    padding-top: 2px;
    padding-left: clamp(56px, 10vw, 140px);
}

.material-grid {
    display: grid;
    grid-template-columns: var(--material-col-left) 1fr;
    border: 1px solid var(--gray-line);
    border-top: none;
    min-height: clamp(500px, 58vh, 640px);
}
.material-card {
    padding: clamp(24px, 2.5vw, 36px);
    position: relative;
    border-right: 1px solid var(--gray-line);
}
.material-card:last-child { border-right: none; }

.material-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--gray-text);
    text-transform: uppercase;
}
.material-label.bottom {
    position: absolute;
    bottom: clamp(24px, 2.5vw, 36px);
    left: clamp(24px, 2.5vw, 36px);
}

.material-left {
    display: flex;
    flex-direction: column;
    background: var(--white);
}
.material-left .metal-swatch {
    flex: 0 0 auto;
    min-height: 280px;
}
.material-left .eng-list-below {
    flex: 1;
}
.metal-swatch {
    flex: 1;
    margin-top: clamp(36px, 5vh, 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
.metal-swatch-inner {
    position: relative;
    width: min(88%, 360px);
    aspect-ratio: 1;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
}
.metal-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bracket-link.overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.material-right {
    background: var(--gray-light);
    display: flex;
    flex-direction: column;
}
.material-title {
    font-size: clamp(16px, 1.35vw, 19px);
    font-weight: 700;
    text-align: right;
    margin-bottom: 0;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.wireframe-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(360px, 42vh, 460px);
    margin-top: 12px;
}
.wireframe-img {
    width: min(90%, 520px);
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
}

.hysys-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eng-list-below {
    margin-top: 16px;
    padding: 0;
    color: var(--gray-text);
    border-top: 1px solid var(--gray-line);
    padding-top: 16px;
}
.eng-list-below li::before { color: var(--red); }

.cfd-inset {
    position: absolute;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(16px, 3vw, 28px);
    width: 38%;
    max-width: 200px;
    border: 1px solid var(--gray-line);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    object-fit: cover;
    aspect-ratio: 3/4;
    z-index: 4;
}
.btn-red-3d {
    position: absolute;
    left: 46%;
    top: 56%;
    transform: translate(-50%, -50%);
    background: var(--red);
    color: var(--white);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    padding: 12px 22px;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
    z-index: 3;
}
.btn-red-3d:hover { transform: translate(-50%, -50%) scale(1.04); }

/* PROMISE */
.promise {
    position: relative;
    overflow: hidden;
}
.promise-editorial {
    background: var(--white);
    padding: var(--pad) 0;
    min-height: auto;
}
.promise-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 var(--pad);
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 32px);
}
.promise-editorial .section-label {
    position: static;
}
.promise-editorial .promise-heading {
    position: static;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    max-width: none;
    margin: 0;
}
.promise-lead {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 600;
    line-height: 1.5;
    max-width: none;
    margin: 0;
}
.promise-benefits {
    font-size: clamp(15px, 1.1vw, 17px);
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    padding-left: 14px;
    border-left: 3px solid var(--red);
    max-width: none;
    margin: 0;
}
.promise-timeline-band {
    width: 100%;
    margin: calc(clamp(8px, 1.5vw, 16px) - 20px) 0 0;
    padding: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px);
    background: var(--white);
}
.promise-axis-caption {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--gray-text);
    margin: 0 0 clamp(20px, 3vw, 28px);
}
.promise-axis {
    position: relative;
    padding-top: 4px;
    --promise-axis-y: 43px;
}
.promise-axis-line {
    position: absolute;
    top: var(--promise-axis-y);
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gray-line);
    z-index: 0;
}
.promise-axis-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--gray-line) 0%, var(--red) 100%);
}
.promise-milestones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 32px);
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}
.promise-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.promise-phase {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-text);
    margin-bottom: 14px;
}
.promise-milestone-node {
    position: relative;
    width: 100%;
    height: 22px;
    margin-bottom: 34px;
}
.promise-milestone-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 2;
}
.is-stage-01 .promise-milestone-node::before {
    width: 10px;
    height: 10px;
    border: 2px solid var(--gray-line);
    background: var(--white);
}
.is-stage-02 .promise-milestone-node::before {
    width: 14px;
    height: 14px;
    border: 2px solid var(--red);
    background: rgba(255, 45, 45, 0.22);
}
.is-stage-03 .promise-milestone-node::before {
    width: 18px;
    height: 18px;
    border: 2px solid var(--red);
    background: var(--red);
}
.promise-step-num {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--red);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin: 0;
    white-space: nowrap;
    z-index: 3;
}
.promise-milestone-card {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--gray-line);
    padding: 18px 20px;
    text-align: left;
}
.is-stage-01 .promise-milestone-card {
    border-top: 2px solid var(--gray-line);
    background: var(--gray-light);
}
.is-stage-02 .promise-milestone-card {
    border-top: 3px solid var(--red);
}
.is-stage-03 .promise-milestone-card {
    border-top: 4px solid var(--red);
    background: rgba(255, 45, 45, 0.04);
}
.promise-milestone-card h3 {
    font-size: clamp(14px, 1vw, 16px);
    margin-bottom: 6px;
    color: var(--black);
    letter-spacing: -0.02em;
}
.is-stage-03 .promise-milestone-card h3 {
    font-size: clamp(15px, 1.05vw, 17px);
}
.promise-milestone-card p {
    font-size: 13px;
    color: #444;
    line-height: 1.45;
    font-weight: 500;
    margin: 0;
}
.promise-timeline-footer {
    font-size: clamp(15px, 1.1vw, 17px);
    font-weight: 500;
    color: var(--black);
    line-height: 1.65;
    max-width: none;
    margin: 0;
}

.highlight {
    background: var(--red); color: var(--white);
    padding: 2px 7px;
}
.prose-wide .highlight {
    font-weight: 600;
    line-height: 1.5;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.highlight-light {
    background: var(--white);
    color: var(--black);
    padding: 2px 7px;
    font-weight: 600;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.promise-line {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--red);
}

/* TEAM */
.team {
    background: var(--red);
    padding: var(--pad);
    min-height: 100vh;
    min-height: 100dvh;
}
.team .section-label { margin-bottom: 36px; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
}

.team-grid > .team-card:nth-child(1) { grid-area: 1 / 1; }
.team-grid > .team-card:nth-child(2) { grid-area: 1 / 2; }
.team-grid > .team-text-block:nth-child(3) { grid-area: 1 / 3; }
.team-grid > .team-card:nth-child(4) { grid-area: 1 / 4; }
.team-grid > .team-card:nth-child(5) { grid-area: 1 / 5; }
.team-grid > .team-text-block.block-minds { grid-area: 2 / 1; }
.team-grid > .team-card:nth-child(7) { grid-area: 2 / 2; }
.team-grid > .team-card:nth-child(8) { grid-area: 2 / 3; }
.team-grid > .team-card:nth-child(9) { grid-area: 2 / 4; }
.team-grid > .team-text-block.block-vision { grid-area: 2 / 5; }

.team-card { display: flex; flex-direction: column; }
.team-card-header {
    background: var(--white);
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 11px;
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
}
.team-card-header span:last-child {
    font-weight: 400; font-size: 8px; color: var(--gray-text);
}
.team-photo {
    width: 100%; flex: 1; object-fit: cover;
    aspect-ratio: 1; filter: grayscale(100%);
    min-height: 140px;
}

.team-text-block {
    display: flex; flex-direction: column;
    justify-content: space-between;
    color: var(--white); padding: 4px 0;
    min-height: 180px;
}
.team-big {
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    font-weight: 900; letter-spacing: -0.02em;
    line-height: 0.95; text-transform: uppercase;
}
.team-small-group { display: flex; flex-direction: column; gap: 2px; }
.team-small {
    font-size: clamp(0.9rem, 1.4vw, 1.25rem);
    font-weight: 800; letter-spacing: -0.01em;
    line-height: 1.05; text-transform: uppercase;
}

/* CONTACT HERO */
.contact-hero {
    background: var(--red);
    overflow: hidden;
}
.contact-hero-inner {
    position: relative;
    padding: 0;
    height: clamp(300px, 38vh, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.contact-marquee-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.contact-marquee {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}
.contact-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: contactMarquee 28s linear infinite;
}
.contact-marquee-set {
    display: flex;
    align-items: center;
    gap: clamp(48px, 10vw, 140px);
    padding-right: clamp(48px, 10vw, 140px);
    flex-shrink: 0;
}
@keyframes contactMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.bolt-img {
    position: absolute;
    left: clamp(-180px, -12vw, -100px);
    top: 68%;
    transform: translateY(-35%) rotate(-14deg);
    width: clamp(300px, 38vw, 520px);
    z-index: 6;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25));
}

.contact-giant-text {
    font-size: clamp(10rem, 26vw, 22rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.06em;
    line-height: 0.82;
    white-space: nowrap;
    flex-shrink: 0;
}
.contact-marquee .contact-giant-text {
    transform: translateY(12%);
}

.btn-touch {
    position: absolute;
    right: auto;
    left: clamp(52%, 58vw, 62%);
    top: 54%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex; align-items: center;
    background: var(--black); color: var(--white);
    font-family: var(--mono); font-size: 11px; font-weight: 500;
    padding: 10px 4px 10px 16px; gap: 0;
}
.btn-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; background: var(--red); margin-left: 10px;
}

/* CONTACT FOOTER */
.contact-footer {
    position: relative;
    z-index: 8;
    background: var(--black);
    color: var(--white);
    margin-top: clamp(-80px, -8vh, -48px);
    padding: clamp(48px, 6vh, 72px) var(--pad) 0;
}
.contact-footer-inner {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
    gap: clamp(32px, 5vw, 64px);
    position: relative;
    padding-bottom: clamp(80px, 10vh, 120px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-left { grid-column: 1; }
.contact-cols { grid-column: 2; }
.footer-logo { margin-bottom: 28px; }
.contact-heading {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 700;
    margin-bottom: clamp(28px, 4vh, 40px);
    line-height: 1.2;
}

.contact-form {
    display: flex; flex-direction: column; gap: 26px;
    max-width: clamp(300px, 28vw, 380px);
}
.contact-form label {
    font-size: 12px; font-weight: 500;
    color: rgba(255,255,255,0.75);
    display: flex; flex-direction: column; gap: 8px;
}
.contact-form input {
    background: transparent; border: none;
    border-bottom: 1px solid rgba(255,255,255,0.28);
    padding: 8px 0; color: var(--white);
    font-family: var(--font);
    font-weight: 400;
    font-size: 14px; outline: none;
}
.contact-form input:focus { border-bottom-color: var(--red); }

.btn-init {
    display: inline-flex; align-items: center; align-self: flex-start;
    background: var(--white); color: var(--black);
    font-family: var(--mono); font-size: 11px; font-weight: 600;
    padding: 12px 4px 12px 16px; border: none; cursor: pointer;
    margin-top: 4px;
}
.btn-init .btn-arrow { margin-left: 10px; }

.contact-illustration {
    position: absolute;
    right: clamp(18%, 24vw, 32%);
    bottom: clamp(48px, 6vh, 72px);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
}
.runner-img {
    width: clamp(120px, 14vw, 200px);
    opacity: 0.85;
}

.contact-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-content: start;
    justify-self: end;
    width: 100%;
    max-width: 520px;
}
.contact-col {
    display: flex; flex-direction: column; gap: 9px;
    font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.5;
}
.contact-col a:hover { color: var(--white); }

.contact-bar {
    display: flex; justify-content: space-between;
    padding: 18px 0;
    font-size: 11px; color: rgba(255,255,255,0.3);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .hero-red-panel { left: 28%; }
    .hero-robot-wrap { width: 56%; left: -15%; bottom: 26vh; top: auto; height: 88%; }
    .hero-desc { width: min(85%, 560px); }
    .hero-factory { width: 22%; }
    .hero-title { font-size: clamp(1.9rem, 3.6vw, 3rem); }
    .hero-tags { flex-wrap: wrap; }
    .about { --about-card-w: 320px; --about-card-offset: 64px; }
    .about-text { left: var(--pad); right: var(--pad); font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
    .card-01 { top: 52%; transform: translateY(0); }
    .about-robot-img { height: min(74vh, 760px); }
    .card-01 { padding: 28px 30px; }
    .card-01 h3 { font-size: 19px; }
    .card-01 p { font-size: 14px; }
    .features {
        --feat-red-left: 36%;
        --feat-card-w: 320px;
        --feat-card-pad: 30px;
        --feat-features-left: 50%;
        --feat-features-top: 44%;
    }
    .feat-card h3 { font-size: 22px; }
    .features-robot-img { height: 62vh; left: -10%; }
}

@media (max-width: 900px) {
    :root { --pad: 24px; }

    .hero-stage { min-height: auto; padding-bottom: 0; }
    .hero-grid-lines { display: none; }
    .hero-red-panel {
        position: relative;
        left: 0; top: auto; bottom: auto;
        padding: 32px 20px;
    }
    .hero-title { flex-direction: column; gap: 4px; }
    .hero-red-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
    .hero-stats { width: 100%; }
    .hero-robot-wrap {
        position: relative;
        left: 0;
        width: 100%;
        height: 300px;
        margin-top: 80px;
    }
    .hero-robot-img {
        width: 100%;
        height: 100%;
        transform: scaleX(-1);
    }
    .hero-desc {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: auto;
        max-width: none;
        text-align: center;
        font-family: var(--font-display);
        font-size: clamp(17px, 4.5vw, 22px);
        font-weight: 700;
        padding: 24px 20px 0;
    }
    .hero-cta {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        transform: none;
        justify-content: center;
        margin: 16px auto;
        width: fit-content;
    }
    .hero-factory { display: none; }
    .hero-branded-bg { opacity: 0.5; }
    .hero-branded-bg img { opacity: 0.08; }
    .hero-tags { flex-wrap: wrap; }

    .about { min-height: auto; padding-top: 80px; padding-bottom: 480px; }
    .about .section-label { position: static; margin-bottom: 32px; }
    .about-text { position: static; margin-bottom: 32px; }
    .about-robot-img,
    .about-placeholder { width: 90%; right: 0; bottom: 0; left: auto; height: 300px; }
    .card-01 { position: static; margin-top: 24px; }

    .features { min-height: auto; padding: 80px var(--pad) 60px; }
    .features-robot-img,
    .feat-card, .feat-header-block, .feat-cta {
        position: static; margin-bottom: 24px; max-width: 100%; width: 100%; transform: none;
    }
    .features-robot-img { width: 100%; height: auto; }
    .features-grid-lines { display: none; }
    .features-rings { opacity: 0.35; }
    .ai-section .ai-bg-photo {
        right: clamp(88px, 24vw, 160px);
        left: auto;
        top: clamp(-64px, -10vw, -36px);
        transform: scaleX(-1);
        transform-origin: right top;
        width: min(85vw, 520px);
        max-width: 100%;
        max-height: 55%;
        object-position: right top;
        opacity: 0.85;
        filter: brightness(0.75) contrast(1.05);
    }
    .ai-section .ai-bg-overlay {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.75) 100%);
    }

    .material-header { grid-template-columns: 1fr; gap: 16px; }
    .material-desc { padding-left: 0; font-size: 15px; }
    .material-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .metal-swatch-inner { width: min(100%, 300px); }
    .wireframe-img { width: 100%; max-width: 100%; }
    .wireframe-wrap { min-height: 280px; }
    .cfd-inset {
        position: static; 
        width: 60%;
        max-width: none;
        margin: 16px auto 0;
        display: block;
    }

    .promise-editorial .promise-heading {
        max-width: none;
    }
    .promise-timeline-band {
        padding: clamp(32px, 5vw, 48px) var(--pad);
    }
    .promise-axis {
        padding-left: 36px;
    }
    .promise-axis-line {
        top: 0;
        bottom: 0;
        left: 17px;
        right: auto;
        width: 2px;
        height: auto;
    }
    .promise-axis-fill {
        background: linear-gradient(180deg, var(--gray-line) 0%, var(--red) 100%);
    }
    .promise-milestones {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .promise-milestone {
        align-items: flex-start;
        text-align: left;
        padding-left: 8px;
    }
    .promise-axis {
        --promise-axis-y: 0;
    }
    .promise-milestone-node {
        height: auto;
        min-height: 22px;
        margin-bottom: 8px;
    }
    .promise-milestone-node::before {
        left: -27px;
        top: 11px;
        transform: translate(-50%, -50%);
    }
    .promise-step-num {
        position: static;
        transform: none;
        display: block;
        margin: 0 0 12px;
    }
    .promise-milestone-card {
        text-align: left;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .team-grid > * { grid-area: auto !important; }
    .team-text-block { min-height: 120px; padding: 20px 0; }

    .contact-hero-inner {
        height: auto;
        min-height: 200px;
        flex-direction: column;
        padding: 32px var(--pad) 40px;
        gap: 16px;
    }
    .bolt-img {
        position: relative;
        left: auto;
        top: auto;
        transform: rotate(-14deg);
        width: clamp(80px, 22vw, 120px);
        align-self: flex-start;
    }
    .contact-giant-text {
        font-size: clamp(4rem, 18vw, 5rem);
    }
    .contact-marquee .contact-giant-text {
        transform: none;
    }
    .contact-marquee-set {
        gap: clamp(32px, 12vw, 64px);
        padding-right: clamp(32px, 12vw, 64px);
    }
    .btn-touch {
        position: static;
        left: auto;
        transform: none;
        align-self: center;
    }
    .contact-footer {
        margin-top: 0;
        padding-top: var(--pad);
    }
    .contact-footer-inner {
        grid-template-columns: 1fr;
        padding-bottom: 40px;
    }
    .contact-left,
    .contact-cols { grid-column: auto; }
    .contact-cols {
        grid-template-columns: 1fr 1fr;
        justify-self: stretch;
        max-width: none;
    }
    .contact-illustration {
        position: static;
        right: auto;
        bottom: auto;
        margin-top: 24px;
        align-self: center;
    }
    .runner-img { width: 120px; }

    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: min(300px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 28px 28px;
        gap: 20px;
        box-shadow: -4px 0 24px rgba(0,0,0,0.1);
        transition: right 0.25s;
        z-index: 105;
    }
    .nav-links.open { right: 0; }
    .ai-grid { grid-template-columns: 1fr !important; }
    .demo-header { grid-template-columns: 1fr; gap: 20px; }
    .demo-layout { grid-template-columns: 1fr !important; }
    .demo-canvas-wrap { min-height: 280px; }
    .demo-panel { border-left: none; border-top: 1px solid var(--gray-line); }
    .project-tabs { flex-wrap: wrap; }
    .projects-grid { grid-template-columns: 1fr !important; }
}

/* PLACEHOLDERS */
.img-fallback, .img-placeholder {
    background:
        linear-gradient(135deg, var(--gray-mid) 0%, var(--gray-light) 50%, var(--gray-bg) 100%);
}
.factory-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(160deg, #c8c8c8 0%, #e8e8e8 40%, #b0b0b0 100%);
    filter: grayscale(100%) contrast(1.08);
}
.about-placeholder {
    position: absolute;
    right: var(--pad);
    bottom: 0;
    width: min(45%, 520px);
    height: min(70vh, 700px);
    z-index: 4;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.06) 100%),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(0,0,0,0.03) 40px, rgba(0,0,0,0.03) 41px);
    mask-image: linear-gradient(to top, black 60%, transparent 100%);
}
.about-placeholder::after {
    content: '';
    position: absolute;
    inset: 20%;
    border: 2px dashed rgba(255,45,45,0.35);
}
.hysys-placeholder {
    background: linear-gradient(145deg, #1a1a2e 0%, #2d2d44 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}
.wireframe-placeholder {
    width: min(90%, 520px);
    height: 280px;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(0,0,0,0.06) 19px, rgba(0,0,0,0.06) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(0,0,0,0.06) 19px, rgba(0,0,0,0.06) 20px),
        linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border: 1px solid var(--gray-line);
}
.bolt-placeholder {
    position: absolute;
    left: clamp(-180px, -12vw, -100px);
    top: 68%;
    transform: translateY(-35%) rotate(-14deg);
    width: clamp(200px, 30vw, 400px);
    height: 120px;
    background: linear-gradient(135deg, #888 0%, #ccc 50%, #666 100%);
    border-radius: 4px;
    z-index: 6;
    opacity: 0.7;
}

/* AI SECTION */
.ai-section { min-height: auto; padding: var(--pad) var(--pad) 100px; }
.ai-section .ai-bg-photo {
    position: absolute;
    right: clamp(290px, 38vw, 660px);
    left: auto;
    top: clamp(-180px, -14vw, -80px);
    transform: scaleX(-1);
    transform-origin: right top;
    width: min(52vw, 680px);
    max-width: none;
    height: auto;
    max-height: 75%;
    object-fit: contain;
    object-position: right top;
    opacity: 1;
    filter: brightness(0.8) contrast(1.08);
}
.ai-section .ai-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 42%, rgba(0, 0, 0, 0.2) 72%, rgba(0, 0, 0, 0.35) 100%);
}
.ai-section .feat-cta { position: relative; bottom: auto; left: auto; transform: none; margin-top: 48px; justify-content: center; }
.ai-header { position: relative; z-index: 8; max-width: 560px; margin-bottom: 40px; }
.ai-header .section-label { margin-bottom: 18px; }

.ai-grid {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 1200px;
}
.ai-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s, transform 0.2s;
}
.ai-card:hover { border-color: rgba(255,45,45,0.5); transform: translateY(-2px); }
.ai-card-accent { background: var(--red); border-color: var(--red); }
.ai-card-num { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.7); }
.ai-card h3 { font-size: 18px; color: var(--white); line-height: 1.25; }
.ai-card p { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.55; flex: 1; }
.ai-tag {
    font-family: var(--mono);
    font-size: 9px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ai-expand {
    align-self: flex-start;
    margin-top: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: var(--white);
    font-family: var(--mono);
    font-size: 11px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.ai-expand:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.ai-card-accent .ai-expand { border-color: rgba(0,0,0,0.3); }
.ai-card-accent .ai-expand:hover { background: rgba(0,0,0,0.15); }
.ai-grid .ai-card:nth-child(4),
.ai-grid .ai-card:nth-child(5) { grid-column: span 1; }
@media (min-width: 901px) {
    .ai-grid .ai-card:nth-child(4) { grid-column: 1 / 2; }
    .ai-grid .ai-card:nth-child(5) { grid-column: 2 / 4; }
}

.eng-list {
    list-style: none;
    padding: 20px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    line-height: 1.7;
}
.eng-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
}
.eng-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--red);
}
.eng-list-right {
    color: var(--gray-text);
    padding: 16px 0 0;
    margin-top: 12px;
    border-top: 1px solid var(--gray-line);
}

/* DEMO */
.demo-section {
    background: var(--gray-bg);
    padding: var(--pad);
    min-height: auto;
    position: relative;
}
.demo-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
    width: 100%;
    padding-bottom: clamp(24px, 3vw, 36px);
    margin-bottom: 0;
}
.demo-header .section-label {
    margin-bottom: 0;
}
.demo-header-copy {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.5vw, 16px);
}
.demo-heading {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
    margin: 0;
}
.demo-subtitle {
    font-size: clamp(15px, 1.05vw, 16px);
    color: #555;
    max-width: none;
    line-height: 1.6;
    margin: 0;
}
.demo-prose {
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.65;
    color: var(--black);
    max-width: none;
    margin: 0;
}
.demo-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    border: 1px solid var(--gray-line);
    background: var(--white);
}
.demo-canvas-wrap {
    position: relative;
    min-height: 420px;
    background: #0d0d0d;
    overflow: hidden;
}
#pipelineCanvas {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    cursor: grab;
}
#pipelineCanvas:active { cursor: grabbing; }
.demo-canvas-label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--mono);
    font-size: 9px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.1em;
}
.pipeline-svg-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.pipeline-svg-fallback svg { width: 100%; max-height: 280px; }

.demo-panel {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-left: 1px solid var(--gray-line);
}
.demo-control-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.demo-control > label:not(.toggle-label) {
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}
.demo-control-head label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 0;
}
.demo-control input[type="range"] {
    width: 100%;
    height: 24px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.demo-control input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: var(--gray-mid);
    border-radius: 2px;
}
.demo-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -7px;
    background: var(--red);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--gray-line);
    cursor: pointer;
}
.demo-control input[type="range"]::-moz-range-track {
    height: 4px;
    background: var(--gray-mid);
    border-radius: 2px;
    border: none;
}
.demo-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--red);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--gray-line);
    cursor: pointer;
}
.demo-control input[type="range"]:focus-visible::-webkit-slider-thumb {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}
.demo-control input[type="range"]:focus-visible::-moz-range-thumb {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}
.demo-value {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
}
.demo-toggle-row { display: flex; align-items: center; }
.demo-control .toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}
.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}
.toggle-label input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-label input:focus-visible + .toggle-ui {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}
.toggle-ui {
    display: inline-block;
    width: 36px;
    height: 20px;
    background: var(--gray-mid);
    border-radius: 10px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.toggle-ui::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-label input:checked + .toggle-ui { background: var(--red); }
.toggle-label input:checked + .toggle-ui::after { transform: translateX(16px); }

.btn-scan {
    background: var(--red);
    color: var(--white);
    border: none;
    font-family: var(--mono);
    font-size: 11px;
    padding: 12px 18px;
    cursor: pointer;
    transition: opacity 0.2s;
    align-self: flex-start;
}
.btn-scan:hover { opacity: 0.88; }
.btn-scan:disabled { opacity: 0.5; cursor: not-allowed; }

.demo-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.metric-card {
    background: var(--gray-light);
    padding: 12px;
    text-align: center;
}
.metric-label {
    display: block;
    font-size: 9px;
    font-family: var(--mono);
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.metric-value {
    font-size: 22px;
    font-weight: 800;
    font-family: var(--mono);
    color: var(--black);
}
.metric-unit { font-size: 10px; color: var(--gray-text); }

.demo-table-caption {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-text);
    margin: 0 0 8px;
    padding: 0 2px;
}
.demo-table-wrap {
    overflow-x: auto;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--gray-line);
    padding: 10px 10px 0;
}
.demo-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 12px;
}
.demo-table th,
.demo-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--gray-line);
}
.demo-table th { color: var(--gray-text); font-weight: 500; }
.demo-table th:nth-child(n+2),
.demo-table td:nth-child(n+2) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.demo-table tr.critical td { color: var(--red); font-weight: 600; }
.demo-table tr.scanning td { background: rgba(255,45,45,0.08); }

.demo-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(255,45,45,0.08);
    border-left: 3px solid var(--red);
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #333;
}
.demo-alert svg { flex-shrink: 0; stroke: var(--red); margin-top: 1px; }

/* PROJECTS */
.projects-section { min-height: auto; padding-bottom: 80px; }
.project-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.project-tab {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    font-family: var(--mono);
    font-size: 11px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.project-tab:hover { border-color: var(--white); }
.project-tab.active {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.project-card {
    background: var(--white);
    display: flex;
    flex-direction: column;
}
.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.95);
    color: var(--black);
}
.project-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 140px;
}
.project-card-body h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}
.project-card-body p {
    font-size: 12px;
    color: var(--gray-text);
    line-height: 1.5;
    flex: 1;
}
.project-tag {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--red);
    letter-spacing: 0.04em;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--white);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--gray-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.modal-close:hover { background: var(--gray-mid); }
.modal-close svg { width: 18px; height: 18px; }
.modal-header { margin-bottom: 8px; padding-right: 40px; }
.modal-badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-family: var(--mono);
    font-size: 10px;
    padding: 4px 8px;
    margin-bottom: 8px;
}
.modal h2 { font-size: 1.4rem; line-height: 1.25; }
.modal-tagline {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-line);
}
.modal-section { margin-bottom: 18px; }
.modal-section h4 {
    font-size: 12px;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
    margin-bottom: 8px;
}
.modal-section p { font-size: 14px; line-height: 1.6; color: #333; }
.modal-section ul { list-style: none; }
.modal-section li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 6px;
    color: #333;
}
.modal-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--red);
}
.modal-case {
    background: var(--gray-light);
    padding: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
    border-left: 3px solid var(--red);
}
.modal-cta { text-align: center; }
.btn-modal-cta {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-family: var(--mono);
    font-size: 12px;
    padding: 12px 24px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-modal-cta:hover { opacity: 0.88; }

/* TELEGRAM CTA */
.telegram-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #229ED9;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    margin-bottom: 28px;
    transition: opacity 0.2s;
    cursor: pointer;
}
.telegram-cta:hover { opacity: 0.9; }

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-robot-img {
        animation: none !important;
    }
    .contact-marquee-track {
        animation: none;
        transform: translateX(-12%);
    }
}

a, button, .ai-expand, .project-tab, .btn-scan, .toggle-label, input[type="range"] { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .ai-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-grid .ai-card:nth-child(5) { grid-column: 1 / -1; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CONTENT-FIRST: editorial layouts ===== */

.prose-wide {
    max-width: 68ch;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.7;
    color: var(--gray-text);
}
.prose-wide.light { color: rgba(255,255,255,0.82); }
.prose-lead {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 20px;
}
.prose-lead.light { color: var(--white); }

.content-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(240px, 1fr);
    gap: clamp(40px, 6vw, 72px);
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}
.content-editorial-reverse .content-editorial-accent { order: -1; }

.img-accent {
    max-width: 320px;
    max-height: 280px;
    width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.img-accent-decor {
    max-height: 200px;
    opacity: 0.9;
    margin: 32px auto 0;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 28px;
}
.capability-card {
    background: rgba(205, 205, 205, 0.45);
    padding: 22px 24px;
    border: 1px solid var(--gray-line);
}
.capability-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.capability-card p {
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.5;
}
.capability-card .card-num {
    font-family: var(--mono);
    font-size: 11px;
    display: block;
    margin-bottom: 10px;
}

.ai-manifesto {
    position: relative;
    z-index: 8;
    max-width: 900px;
    margin-bottom: 32px;
}
.ai-manifesto .prose-wide { margin-bottom: 16px; }
.ai-metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 40px);
    margin: 28px 0 36px;
    position: relative;
    z-index: 8;
}
.ai-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ai-metric-value {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--red);
    letter-spacing: -0.03em;
}
.ai-metric-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    max-width: 180px;
    line-height: 1.4;
}

.material-header-editorial {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
    padding-bottom: 28px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--gray-line);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.material-header-editorial.dark-border { border-bottom-color: rgba(255,255,255,0.12); }

.eng-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-line);
}
.eng-mini-stat strong {
    display: block;
    font-size: 1.25rem;
    color: var(--red);
    margin-bottom: 4px;
}
.eng-mini-stat span {
    font-size: 12px;
    color: var(--gray-text);
}

.contact-accent-sm {
    max-width: 140px !important;
    max-height: 140px !important;
    width: 140px !important;
}
.contact-hero .bolt-img.contact-accent-sm {
    width: 140px !important;
    left: clamp(8px, 4vw, 48px);
}
.contact-footer .runner-img.contact-accent-sm {
    width: 140px !important;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--pad);
}
.eng-material-section .material-right:not(.material-card) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 3vw, 40px);
    border-left: 1px solid var(--gray-line);
}
.eng-material-section.pipeline-dark .material-right:not(.material-card) {
    border-left-color: rgba(255,255,255,0.12);
}

.metal-swatch-inner .img-accent,
.metal-swatch-inner .hysys-img {
    width: 100%;
    height: auto;
    max-width: 320px;
    max-height: 280px;
    object-fit: contain;
    box-shadow: none;
}
.eng-material-section .metal-swatch-inner {
    width: auto;
    aspect-ratio: auto;
    max-width: 320px;
    box-shadow: none;
    background: transparent;
}

/* ===== RESTRUCTURE: no_background + split sections ===== */

/* About — full-width editorial layout */
.about.about-editorial {
    min-height: auto;
    overflow: visible;
    padding: clamp(48px, 6vh, 64px) 0 clamp(48px, 5vh, 56px) var(--pad);
}
.about-editorial .section-inner {
    max-width: none;
    padding: 0;
}
.about-editorial .section-label { position: static; margin-bottom: 16px; }
.about-editorial .about-text { display: none; }
.about-editorial .card-01 { display: none; }

.about-editorial .prose-lead {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.3;
    margin-bottom: clamp(16px, 2.5vh, 24px);
    padding-right: clamp(24px, 3vw, 40px);
}
.about-editorial .content-editorial {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 30vw);
    gap: clamp(8px, 1vw, 16px);
}
.about-editorial .content-editorial-main {
    width: 100%;
    min-width: 0;
    padding-right: clamp(8px, 1.5vw, 20px);
}
.about-editorial .prose-wide {
    max-width: none;
    width: 100%;
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.6;
}
.about-editorial .prose-wide + .prose-wide {
    margin-top: 10px;
}
.about-editorial .capability-grid {
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}
.about-editorial .capability-card {
    padding: 18px 22px;
}
.about-editorial .capability-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
}
.about-editorial .capability-card p {
    font-size: 13px;
    line-height: 1.45;
}
.about-editorial .capability-card .card-num {
    font-size: 12px;
}

.about-editorial .content-editorial-accent {
    align-self: start;
    display: flex;
    justify-content: flex-end;
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
}
.about-editorial .img-accent-about {
    width: 118%;
    max-width: none;
    max-height: min(58vh, 600px);
    height: auto;
    object-fit: contain;
    object-position: right center;
    margin: 0;
    margin-right: -10%;
    display: block;
}

@media (min-width: 1400px) {
    .about-editorial .capability-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.eng-material-section {
    padding: var(--pad);
}
.eng-material-section .material-grid {
    max-width: 1200px;
    margin: 0 auto;
    min-height: auto;
}
.eng-material-section .material-left .metal-swatch {
    min-height: auto;
    margin-top: 24px;
}
.eng-material-section .material-right,
.eng-material-section .material-card-text {
    padding: clamp(28px, 3vw, 40px);
}
.eng-material-section.pipeline-dark {
    background: var(--dark-card);
    color: var(--white);
}
.eng-material-section.pipeline-dark .prose-wide,
.eng-material-section.pipeline-dark .eng-list-below { color: rgba(255,255,255,0.85); }
.eng-material-section.pipeline-dark .material-grid { border-color: rgba(255,255,255,0.12); }
.eng-material-section.pipeline-dark .material-card { border-color: rgba(255,255,255,0.12); }

/* Eng sections — readable content panels */
.eng-material-section .material-header-editorial .prose-lead {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 700;
    max-width: 52ch;
    margin-bottom: 0;
}
.eng-material-section.pipeline-dark .material-header-editorial .prose-lead.light {
    color: var(--white);
}

.eng-content-panel {
    background: var(--white);
    border-left: 3px solid var(--red);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.eng-material-section .material-right.eng-content-panel,
.eng-material-section .material-left.eng-content-panel {
    background: var(--white);
}

.eng-content-panel .eng-prose {
    color: var(--black);
    font-size: clamp(16px, 1.15vw, 18px);
    font-weight: 500;
    line-height: 1.65;
    max-width: 62ch;
    margin: 0;
}
.eng-content-panel .eng-prose .highlight {
    font-weight: 600;
}

.eng-services {
    list-style: none;
    padding: 20px 0 0;
    margin: 0;
    border-top: 1px solid var(--gray-line);
    display: grid;
    gap: 10px;
}
.eng-services li {
    color: var(--black);
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 500;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
    margin-bottom: 0;
}
.eng-services li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--red);
    font-family: var(--mono);
}

.eng-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 40px);
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-line);
}
.eng-metric strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    margin-bottom: 6px;
}
.eng-metric span {
    display: block;
    font-size: clamp(12px, 0.9vw, 14px);
    color: #444;
    font-weight: 500;
    line-height: 1.4;
    max-width: 16ch;
}

.eng-visual-panel {
    background: var(--gray-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 3vw, 40px);
}
.eng-material-section .eng-visual-panel.material-left,
.eng-material-section .eng-visual-panel.material-right {
    background: var(--gray-light);
}
.eng-visual-panel .metal-swatch {
    margin-top: 0;
}
.eng-visual-caption {
    margin-top: 16px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #555;
    text-align: center;
}
.eng-visual-panel--dark {
    background: rgba(255, 255, 255, 0.04);
}
.eng-visual-caption--light {
    color: rgba(255, 255, 255, 0.55);
}

.eng-content-panel--dark {
    background: var(--dark-card);
    border-left-color: var(--red);
}
.eng-material-section.pipeline-dark .material-right.eng-content-panel--dark {
    background: var(--dark-card);
}
.eng-content-panel--dark .eng-prose {
    color: var(--white);
}
.eng-content-panel--dark .eng-services {
    border-top-color: rgba(255, 255, 255, 0.12);
}
.eng-content-panel--dark .eng-services li {
    color: rgba(255, 255, 255, 0.92);
}
.eng-content-panel--dark .eng-metrics {
    border-top-color: rgba(255, 255, 255, 0.12);
}
.eng-content-panel--dark .eng-metric span {
    color: rgba(255, 255, 255, 0.72);
}
.eng-content-panel--dark .btn-red-3d-static {
    align-self: flex-start;
    margin-top: 4px;
}

/* Universal split sections */
.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.section-split-reverse .section-visual { order: -1; }

.section-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
.section-visual img:not(.img-accent):not(.img-accent-decor) {
    width: 100%;
    max-width: 320px;
    max-height: 280px;
    object-fit: contain;
}
.section-visual-dark { min-height: auto; }

.section-heading {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-heading.light { color: var(--white); }
.section-body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--gray-text);
    margin-bottom: 20px;
}
.section-body.light { color: rgba(255,255,255,0.8); }
.section-list {
    list-style: none;
    margin-bottom: 24px;
}
.section-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.55;
}
.section-list.light li { color: rgba(255,255,255,0.85); }
.section-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--red);
}

/* Digital twin — static editorial split */
.digital-section {
    position: relative;
    background: var(--black);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 0 clamp(28px, 4vh, 44px);
    overflow: hidden;
}
.digital-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
}
.digital-divider::before {
    content: '';
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    bottom: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.digital-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 40vw);
    grid-template-rows: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: stretch;
    width: 100%;
}
.digital-visual,
.digital-content {
    min-width: 0;
}
.digital-visual {
    position: relative;
    align-self: stretch;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}
.digital-plant-img {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pad);
    display: block;
    width: auto;
    max-width: none;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    pointer-events: none;
}
.digital-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 5vh, 64px) var(--pad) clamp(40px, 5vh, 64px) clamp(20px, 2.5vw, 36px);
}
.digital-content .section-label {
    margin-bottom: 14px;
}
.digital-content .prose-lead {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    margin-bottom: 16px;
}
.digital-content .prose-wide {
    max-width: none;
    font-size: clamp(14px, 1.1vw, 17px);
    margin-bottom: 10px;
}
.digital-chips {
    list-style: none;
    margin: 22px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.digital-chip {
    display: block;
    width: 100%;
    text-align: left;
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 2px solid transparent;
    padding: 11px 14px;
    cursor: pointer;
}
.digital-chip:hover {
    border-color: rgba(255, 45, 45, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.9);
}
.digital-chip.is-active {
    border-color: rgba(255, 45, 45, 0.45);
    border-left-color: var(--red);
    background: rgba(255, 45, 45, 0.1);
    color: var(--white);
}
.digital-chip-tag {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}
.digital-chip.is-active .digital-chip-tag {
    color: var(--red);
}
.digital-content .bracket-link {
    margin-top: 4px;
}

.section-split-dark .section-content { color: var(--white); }

/* AI layout — manifesto + full-width cards */
.ai-layout {
    position: relative;
    z-index: 8;
    max-width: 1200px;
}
.ai-cards-col .ai-grid {
    max-width: none;
}
.ai-card p {
    font-size: 13px;
    line-height: 1.6;
    min-height: 4.8em;
}

/* Engineering nav */
.eng-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px var(--pad);
    background: var(--white);
    border-top: 1px solid var(--gray-line);
    border-bottom: 1px solid var(--gray-line);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 50;
}
.eng-nav-link {
    font-family: var(--mono);
    font-size: 11px;
    padding: 10px 20px;
    border: 1px solid var(--gray-line);
    color: var(--black);
    transition: background 0.2s, border-color 0.2s;
}
.eng-nav-link:hover,
.eng-nav-link.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* HYSYS */
.hysys-section {
    padding: var(--pad);
    background: var(--white);
}
.hysys-img {
    width: 100%;
    max-width: 320px;
    max-height: 280px;
    object-fit: contain;
    display: block;
    border: 1px solid var(--gray-line);
}

/* CFD */
.cfd-section {
    padding: var(--pad);
    background: var(--white);
}

/* CFD — Simulation Workflow layout */
.cfd-stage {
    max-width: 1200px;
    margin: 0 auto;
}
.cfd-stage .cfd-header.material-header-editorial {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
.cfd-stage .material-header-editorial .prose-lead {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 700;
    max-width: 52ch;
    margin-bottom: 0;
}

.cfd-workflow-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    padding: 20px 0 24px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--gray-line);
}
.cfd-step {
    font-family: var(--mono);
    font-size: clamp(11px, 0.95vw, 13px);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--gray-text);
    white-space: nowrap;
}
.cfd-step.is-active {
    color: var(--red);
    font-weight: 600;
}
.cfd-step-arrow {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--gray-line);
    line-height: 1;
}

.cfd-main {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 4vw, 48px);
    padding: clamp(28px, 3vw, 40px) 0 8px;
    border-bottom: 1px solid var(--gray-line);
}
.cfd-content {
    border-left: 3px solid var(--red);
    padding-left: clamp(20px, 2.5vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cfd-content .eng-prose {
    color: var(--black);
    font-size: clamp(16px, 1.15vw, 18px);
    font-weight: 500;
    line-height: 1.65;
    max-width: none;
    margin: 0;
}
.cfd-content .eng-prose .highlight {
    font-weight: 600;
}
.cfd-capability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.cfd-capability-card {
    background: var(--gray-light);
    border: 1px solid var(--gray-line);
    padding: 14px 16px;
}
.cfd-capability-card h3 {
    font-size: clamp(13px, 0.95vw, 15px);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    color: var(--black);
}
.cfd-capability-card p {
    font-size: clamp(12px, 0.85vw, 14px);
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}
.cfd-capability-card .card-num {
    font-family: var(--mono);
    font-size: 11px;
    display: block;
    margin-bottom: 6px;
    color: var(--black);
}

.cfd-visual-aside {
    align-self: start;
    background: var(--gray-light);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    border: 1px solid var(--gray-line);
}
.cfd-aside-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cfd-aside-img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-line);
}
.cfd-visual-caption {
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #555;
    text-align: center;
}

/* Pipeline */
.pipeline-section {
    background: var(--dark-card);
    padding: var(--pad);
    color: var(--white);
}
.pipeline-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.section-visual-pipeline {
    position: relative;
    margin-top: 0;
    min-height: auto;
}
.pipeline-img { /* use .img-accent */ }
.btn-red-3d-static {
    position: static;
    transform: none;
    display: inline-block;
    margin-top: 24px;
}

/* Contact footer — 3-column grid */
.contact-footer-inner.contact-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}
.contact-footer-inner.contact-footer-grid .contact-left { grid-column: 1; }
.contact-footer-inner.contact-footer-grid .contact-cols {
    grid-column: 2;
    justify-self: end;
}
.contact-email-text {
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 20px;
    max-width: 36ch;
}
.contact-email-text a {
    display: block;
    margin-top: 8px;
    font-family: var(--mono);
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
}
.contact-email-text a:hover {
    color: var(--red);
}

.eng-list-below {
    color: var(--gray-text);
    padding: 0;
    margin-top: 0;
    border-top: none;
}

/* Responsive content-first */
@media (max-width: 1100px) {
    .about.about-editorial {
        padding-right: var(--pad);
    }
    .about-editorial .content-editorial {
        grid-template-columns: 1fr;
    }
    .about-editorial .content-editorial-accent {
        order: -1;
        justify-content: center;
    }
    .about-editorial .img-accent-about {
        width: 100%;
        max-height: 420px;
        margin-right: 0;
        object-position: center;
    }
    .about-editorial .prose-lead {
        padding-right: 0;
    }

    .digital-section {
        min-height: auto;
    }
    .digital-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .digital-visual {
        order: -1;
        min-height: 50dvh;
    }
    .digital-plant-img {
        left: var(--pad);
        right: var(--pad);
        width: 100%;
        object-position: center center;
    }
    .digital-content {
        padding: clamp(32px, 4vh, 48px) var(--pad);
    }
}

@media (max-width: 900px) {
    .content-editorial,
    .content-editorial-reverse { grid-template-columns: 1fr; }
    .content-editorial-accent { order: -1; }
    .img-accent { max-width: 240px; max-height: 220px; }
    .about.about-editorial {
        padding: 60px var(--pad);
    }
    .about-editorial .prose-lead {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
        padding-right: 0;
    }
    .about-editorial .img-accent-about {
        width: 100%;
        max-height: 360px;
        margin: 0 auto;
        object-position: center;
    }
    .capability-grid { grid-template-columns: 1fr; }
    .material-header-editorial { grid-template-columns: 1fr; }
    .about-grid {
        grid-template-columns: 1fr;
        padding-top: 80px;
        padding-bottom: 60px;
    }
    .about-col-visual { order: -1; }
    .section-split,
    .section-split-reverse { grid-template-columns: 1fr; }
    .section-split-reverse .section-visual { order: -1; }
    .ai-metrics-row { flex-direction: column; gap: 16px; }
    .contact-footer-inner.contact-footer-grid {
        grid-template-columns: 1fr;
    }
    .contact-footer-inner.contact-footer-grid .contact-cols {
        grid-column: 1;
        justify-self: stretch;
    }
    .eng-nav { flex-wrap: wrap; }
    .eng-material-section .material-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .eng-material-section .material-left,
    .eng-material-section .material-right,
    .eng-material-section .material-card {
        border-right: none;
        border-left: none;
    }
    .eng-material-section .material-right:not(.material-card):not(.eng-content-panel) {
        border-left: none;
        border-top: 1px solid var(--gray-line);
    }
    .eng-material-section.pipeline-dark .material-right:not(.material-card):not(.eng-content-panel) {
        border-top-color: rgba(255,255,255,0.12);
    }
    .eng-material-section .eng-content-panel {
        border-left: none;
        border-top: 3px solid var(--red);
    }
    .eng-material-section .metal-swatch {
        margin-top: 16px;
    }
    .eng-visual-panel .metal-swatch {
        margin-top: 0;
    }

    .cfd-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cfd-content {
        border-left: none;
        border-top: 3px solid var(--red);
        padding-left: 0;
        padding-top: 24px;
    }
    .cfd-capability-grid {
        grid-template-columns: 1fr;
    }
    .cfd-visual-aside {
        padding: 20px;
    }
    .cfd-aside-img {
        max-height: 180px;
    }
    .cfd-workflow-strip {
        gap: 10px 16px;
    }

    .digital-visual {
        min-height: 40dvh;
    }
    .digital-chip {
        font-size: 12px;
        padding: 10px 12px;
    }
}

