:root {
    color-scheme: dark;
    --ink: #050607;
    --ink-2: #090a0d;
    --panel: rgba(10, 11, 14, .96);
    --panel-2: rgba(13, 15, 19, .96);
    --panel-3: rgba(12, 12, 14, .98);
    --line: rgba(197, 204, 214, .20);
    --line-soft: rgba(197, 204, 214, .12);
    --line-strong: rgba(197, 204, 214, .34);
    --text: #f1f4ee;
    --muted: #a2abb5;
    --amber: #d3b27b;
    --teal: #9fa6b2;
    --signal: #c56f5f;
    --cream: #f5f0e7;
    --steel: #9fa6b2;
    --steel-strong: #c5ccd6;
    --metal: linear-gradient(135deg, rgba(255, 255, 255, .06), transparent 34%),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .034) 0 1px, transparent 1px 9px),
        linear-gradient(180deg, rgba(18, 20, 25, .98), rgba(6, 7, 9, .98));
    --metal-soft: linear-gradient(135deg, rgba(255, 255, 255, .045), transparent 36%),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 8px),
        rgba(12, 13, 16, .95);
    --shadow: 0 22px 80px rgba(0, 0, 0, .46);
    --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
    overflow-x: clip;
}

body {
    position: relative;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .032) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(98deg, rgba(255, 255, 255, .026) 0 1px, transparent 1px 7px),
        linear-gradient(180deg, #050607 0%, #0b0d11 45%, #050607 100%);
    color: var(--text);
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    line-height: 1.55;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(197, 204, 214, .055) calc(100% - 1px)) 0 0 / clamp(110px, 12vw, 180px) 100%,
        linear-gradient(0deg, transparent 0 calc(100% - 1px), rgba(197, 204, 214, .035) calc(100% - 1px)) 0 0 / 100% 86px;
    opacity: .55;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.topbar {
    position: fixed;
    z-index: 20;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 56px);
    background:
        linear-gradient(180deg, rgba(17, 19, 24, .94), rgba(5, 6, 7, .88)),
        repeating-linear-gradient(100deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 8px);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: inset 0 -1px rgba(255, 255, 255, .04), 0 18px 40px rgba(0, 0, 0, .28);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .01em;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    padding: 4px;
    background: linear-gradient(135deg, rgba(159, 166, 178, .18), rgba(211, 178, 123, .11));
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 12px 30px rgba(0, 0, 0, .28);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

.nav a {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.nav-form { margin: 0; }

.nav-form button {
    padding: 6px 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.nav a:hover,
.nav a.is-active,
.nav-form button:hover {
    color: var(--text);
    border-color: var(--steel-strong);
}

.hero,
.page-hero,
.product-hero {
    display: grid;
    align-items: end;
    padding: 120px clamp(20px, 5vw, 72px) 72px;
}

.hero {
    min-height: 92vh;
    background:
        linear-gradient(90deg, rgba(5, 6, 7, .98) 0%, rgba(5, 6, 7, .80) 47%, rgba(5, 6, 7, .38) 100%),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 9px),
        var(--hero-image, url("/images/product-shots/dauntless-vm-topology.png")) center right / cover no-repeat;
}

.page-hero,
.product-hero {
    min-height: 58vh;
    background:
        linear-gradient(90deg, rgba(5, 6, 7, .98) 0%, rgba(5, 6, 7, .86) 50%, rgba(5, 6, 7, .44) 100%),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 9px),
        var(--hero-image, url("/images/product-shots/dauntless-vm-topology.png")) center right / cover no-repeat;
    border-bottom: 1px solid var(--line-strong);
    box-shadow: inset 0 -1px rgba(255, 255, 255, .04);
}

.hero-inner,
.page-hero-inner {
    width: min(980px, 100%);
}

.hero-copy-spacer {
    height: clamp(126px, 13vw, 174px);
    margin-top: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--steel-strong);
    font: 700 13px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 42px;
    height: 2px;
    background: linear-gradient(90deg, var(--steel), var(--amber));
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 980px;
    margin: 18px 0;
    font-size: clamp(48px, 8vw, 104px);
    line-height: .9;
    letter-spacing: 0;
    font-family: Rockwell, Georgia, "Times New Roman", serif;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .34), 0 0 28px rgba(197, 204, 214, .08);
}

.page-hero h1,
.product-hero h1 {
    font-size: clamp(42px, 7vw, 86px);
}

.hero p,
.page-hero p,
.product-hero p {
    max-width: 760px;
    margin: 0;
    color: #dce7e1;
    font-size: clamp(18px, 2vw, 23px);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    background: var(--metal-soft);
    color: var(--text);
    font-weight: 800;
    box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 12px 26px rgba(0, 0, 0, .24);
}

.button.primary {
    background: linear-gradient(180deg, #d6bf90, #a88349);
    color: #090806;
    border-color: rgba(246, 225, 179, .72);
}

.button.signal {
    background: var(--signal);
    color: #fff8f3;
    border-color: var(--signal);
}

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

main section,
.band {
    padding: 76px clamp(20px, 5vw, 72px);
}

.band-dark {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .025), transparent),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 9px),
        var(--ink-2);
    border-block: 1px solid var(--line-strong);
}

.container {
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    max-width: var(--max);
    margin: 0 auto 28px;
}

h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1;
    letter-spacing: 0;
    font-family: Rockwell, Georgia, "Times New Roman", serif;
}

.section-head p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
}

.grid-3,
.grid-4,
.grid-2 {
    display: grid;
    gap: 18px;
    max-width: var(--max);
    margin: 0 auto;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    overflow: hidden;
    background: var(--metal);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .07);
}

.card figure {
    height: 220px;
    margin: 0;
    background: #050607;
    border-bottom: 1px solid var(--line);
}

.card figure.tall { height: 340px; }

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body { padding: 22px; }

.card h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0;
}

.label {
    margin: 4px 0 14px;
    color: var(--steel-strong);
    font-weight: 800;
}

.card p,
.muted {
    color: var(--muted);
}

.chips,
.check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.chips li,
.check-list li {
    padding: 6px 9px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
    color: #c9d0d9;
    border-radius: 4px;
    font-size: 13px;
}

.split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    max-width: var(--max);
    margin: 0 auto;
}

.split img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .06);
}

.stack {
    display: grid;
    gap: 12px;
}

.callout {
    padding: 18px;
    background: var(--metal-soft);
    border: 1px solid var(--line);
    border-left: 4px solid var(--steel-strong);
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.callout strong {
    display: block;
    margin-bottom: 6px;
}

.callout span,
.callout p {
    color: var(--muted);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
    max-width: 760px;
}

.stat {
    padding: 14px;
    background: var(--metal-soft);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.stat strong {
    display: block;
    color: var(--cream);
    font-size: 28px;
    line-height: 1;
}

.stat span {
    color: var(--muted);
    font-size: 13px;
}

.detail-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 24px;
    max-width: var(--max);
    margin: 0 auto;
}

.brief-panel {
    padding: 24px;
    background: var(--metal);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .07);
}

.brief-panel h2,
.brief-panel h3 {
    margin-top: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .30);
}

.team-card {
    min-height: 250px;
    padding: 20px;
    background: var(--metal);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.team-card h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.team-card .title {
    margin: 0 0 14px;
    color: var(--steel-strong);
    font-weight: 800;
}

.team-card p {
    margin: 0;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field.full { grid-column: 1 / -1; }

.field label {
    color: var(--cream);
    font-weight: 800;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(0, 0, 0, .04)),
        #06070a;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.field textarea {
    min-height: 160px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 2px solid rgba(197, 204, 214, .28);
    border-color: var(--steel-strong);
}

.error {
    color: #ffb2aa;
    font-size: 14px;
}

.status {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: rgba(197, 204, 214, .10);
    border: 1px solid rgba(197, 204, 214, .35);
    color: #eef3f7;
    border-radius: 6px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .06);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
}

.data-table th,
.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--cream);
    background: #08090c;
}

.data-table td {
    color: #cad8d1;
}

.inline-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.inline-controls select,
.inline-controls input[type="checkbox"] {
    width: auto;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--cream);
    background: rgba(255, 255, 255, .045);
    font-size: 13px;
    font-weight: 800;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.footer {
    padding: 34px clamp(20px, 5vw, 72px);
    border-top: 1px solid var(--line-strong);
    color: var(--muted);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .024), transparent),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 9px),
        #050607;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.footer a {
    color: var(--amber);
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.side-project-hero {
    min-height: 50vh;
}

.side-project-grid {
    align-items: start;
}

.side-project-card .label {
    color: var(--amber);
}

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

@media (max-width: 980px) {
    .topbar {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .page-hero,
    .product-hero {
        min-height: 76vh;
        padding-top: 72px;
    }

    .grid-3,
    .grid-4,
    .grid-2,
    .split,
    .detail-grid,
    .gallery,
    .stat-row,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .card figure.tall {
        height: 240px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .hero,
    .page-hero,
    .product-hero {
        min-height: auto;
        padding: 74px 20px 50px;
        background-position: 58% center;
    }

    .hero-inner,
    .page-hero-inner {
        width: min(100%, 350px);
    }

    .hero-copy-spacer {
        height: 92px;
    }

    h1,
    .page-hero h1,
    .product-hero h1 {
        max-width: 100%;
        font-size: 38px;
        line-height: 1;
        text-wrap: balance;
    }

    .hero p,
    .page-hero p,
    .product-hero p {
        max-width: 100%;
        font-size: 17px;
        line-height: 1.45;
    }

    main section,
    .band {
        padding-block: 52px;
    }

    .button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    h1,
    .page-hero h1,
    .product-hero h1 {
        font-size: 34px;
    }
}
