:root {
    /* Color Palette - Andes Magnetics, premium engineering */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f7fb;
    --bg-tertiary: #eef2f7;
    --bg-deep: #07111f;

    --text-primary: #0b1320;
    --text-secondary: #43526b;
    --text-muted: #6b7a91;

    --accent: #0b3d91;
    --accent-hover: #062461;
    --accent-bright: #1d8cf8;
    --accent-glow: rgba(11, 61, 145, 0.12);
    --accent-soft: rgba(29, 140, 248, 0.10);
    --accent-gradient: linear-gradient(135deg, #0b3d91 0%, #1d8cf8 100%);
    --accent-gradient-soft: linear-gradient(135deg, rgba(11, 61, 145, 0.08) 0%, rgba(29, 140, 248, 0.10) 100%);

    --border-color: #e3e8f0;
    --border-highlight: #c2ccdb;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(15, 23, 42, 0.08);

    --shadow-sm: 0 2px 8px rgba(11, 19, 32, 0.04);
    --shadow-md: 0 8px 24px rgba(11, 19, 32, 0.06);
    --shadow-lg: 0 22px 60px rgba(11, 19, 32, 0.12);
    --shadow-xl: 0 40px 100px rgba(11, 19, 32, 0.22);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --container-width: 1120px;
    --section-padding: 96px clamp(20px, 5vw, 52px);

    /* Transitions */
    --transition-fast: 0.18s ease;
    --transition-standard: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* Typography Utility */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { text-transform: none; }

.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    margin: 0.5rem 0 1.8rem;
    position: relative;
    display: block;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    max-width: 880px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 54px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Scroll-driven reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-bg-img { animation: none; }
    .hero-scroll span { animation: none; }
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 0;
    transition: padding var(--transition-standard), background var(--transition-standard), box-shadow var(--transition-standard);
}

.nav-bar.is-scrolled {
    padding: 0.6rem 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(20px, 4vw, 48px);
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-gradient-soft);
    box-shadow: 0 1px 2px rgba(11, 61, 145, 0.08), inset 0 0 0 1px rgba(11, 61, 145, 0.12);
    flex-shrink: 0;
}

.brand-mark svg { display: block; }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.brand-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 0.18rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.6rem;
    align-items: center;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
    transition: var(--transition-fast);
    padding: 0.35rem 0;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: var(--shadow-sm);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-bar.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-bar.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-bar.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links a:not(.cta-outline)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition-standard);
}

.nav-links a:not(.cta-outline):hover,
.nav-links a:not(.cta-outline).is-active {
    color: var(--accent);
}

.nav-links a:not(.cta-outline):hover::after,
.nav-links a:not(.cta-outline).is-active::after {
    transform: scaleX(1);
}

.cta-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    border: 1px solid var(--accent);
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    color: var(--accent) !important;
    background: transparent;
    font-weight: 700;
    transition: var(--transition-standard);
}

.cta-outline:hover {
    background: var(--accent-gradient);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(11, 61, 145, 0.25);
    transform: translateY(-1px);
}

/* Beat .nav-links a padding so the outline doesn’t hug/crop the label */
.nav-links a.cta-outline {
    padding: 0.5rem 1.28rem;
}

/* Hero Section - Cinematic */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 60px;
    overflow: hidden;
    color: #ffffff;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    filter: saturate(1.05) contrast(1.04);
    transform: scale(1.03);
    animation: heroPan 28s ease-in-out infinite alternate;
}

@keyframes heroPan {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.07) translate3d(-1.5%, -0.8%, 0); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(5, 12, 24, 0.85) 0%, rgba(5, 12, 24, 0.65) 32%, rgba(5, 12, 24, 0.36) 60%, rgba(5, 12, 24, 0.16) 100%),
        linear-gradient(180deg, rgba(5, 12, 24, 0.05) 0%, rgba(5, 12, 24, 0.22) 55%, rgba(5, 12, 24, 0.65) 100%);
    z-index: -1;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 30%, transparent 80%);
    z-index: -1;
    opacity: 0.65;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.4rem;
    max-width: 920px;
    color: #ffffff;
    font-weight: 800;
}

.hero-accent {
    background: linear-gradient(120deg, #1d8cf8 0%, #6dd5ed 50%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .sub-headline {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.2rem;
    max-width: 640px;
    border-left: 3px solid var(--accent-bright);
    padding-left: 1.2rem;
    line-height: 1.6;
}

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

.btn-lg {
    padding: 1.05rem 1.7rem;
    font-size: 0.92rem;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.hero-stats {
    list-style: none;
    margin: 0;
    padding: 1.2rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem 2rem;
    max-width: 920px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(14px);
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hero-stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 600;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    cursor: pointer;
}

.hero-scroll span {
    display: block;
    width: 3px;
    height: 8px;
    background: #ffffff;
    border-radius: 2px;
    margin: 5px auto 0;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(14px); opacity: 0.2; }
}

@media (max-width: 880px) {
    .hero { padding: 110px 0 60px; }
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-scroll { display: none; }
}

/* Brand strip below hero */
.brand-strip {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.brand-strip::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(29, 140, 248, 0.13) 0%, transparent 70%);
    pointer-events: none;
}

.brand-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.brand-strip-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.8rem 1.6rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-standard), border-color var(--transition-standard), box-shadow var(--transition-standard);
}

.brand-strip-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-bright);
    box-shadow: var(--shadow-md);
}

.brand-strip-num {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--accent);
    padding: 0.3rem 0.6rem;
    background: var(--accent-soft);
    border-radius: 6px;
    margin-bottom: 0.9rem;
}

.brand-strip-item h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.brand-strip-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 880px) {
    .brand-strip-grid { grid-template-columns: 1fr; gap: 1rem; }
    .brand-strip { padding: 2.8rem 0; }
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-standard);
    font-size: 0.85rem;
    display: inline-block;
    cursor: pointer;
    border-radius: 4px;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-highlight);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Process — horizontal split panels (marketing site, not blog cards) */
.process-section {
    padding: 0;
    background: var(--bg-primary);
}

.process-intro {
    padding: var(--section-padding);
    padding-bottom: 2rem;
}

.process-intro .section-lede {
    margin-bottom: 1.75rem;
}

.process-rail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.75rem;
    padding: 1rem 0 0;
    border-top: 1px solid var(--border-color);
}

.process-rail-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: color var(--transition-fast);
}

.process-rail-link span {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.process-rail-link:hover {
    color: var(--accent);
}

.process-panel {
    scroll-margin-top: 96px;
    padding: clamp(2.75rem, 6vw, 4.75rem) 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.process-section > .process-panel:nth-child(even) {
    background: var(--bg-secondary);
}

.process-split {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: start;
}

.process-panel--flip .process-split__media {
    order: 2;
}

.process-panel--flip .process-split__content {
    order: 1;
}

.process-split__head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.process-split__head h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.025em;
}

.process-index {
    flex-shrink: 0;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--border-highlight);
    font-variant-numeric: tabular-nums;
}

.process-split__text {
    max-width: 40rem;
}

.process-split__text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.62;
    margin: 0 0 0.9rem;
}

.process-split__text p:last-child {
    margin-bottom: 0;
}

.process-shot {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-md);
}

.process-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 640px);
    object-fit: cover;
}

/* Shift crop up-left — wall signage in source frame sits bottom/right */
.process-shot--oven img {
    object-position: 24% 20%;
}

.process-split__head .process-tag {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.35rem 0 0;
}

.process-shot figcaption {
    padding: 0.85rem 1.1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--border-color);
}

.process-panel .process-spec-card {
    margin-top: 1.35rem;
}

@media (max-width: 960px) {
    .process-split {
        grid-template-columns: 1fr;
    }
    .process-panel--flip .process-split__media,
    .process-panel--flip .process-split__content {
        order: unset;
    }
}

@media (max-width: 880px) {
    .process-rail {
        gap: 0.75rem 1.25rem;
    }
}

/* Lists / spec cards (process + elsewhere) */
.process-list {
    padding: 0;
    margin: 0.4rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.process-list li {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

.process-list li strong {
    color: var(--accent);
}

.process-spec-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 1.2rem 1.3rem;
}

.process-spec-card h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin: 0 0 0.7rem;
}

.process-spec-card h4 + .spec-list {
    margin-bottom: 1.2rem;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.84rem;
}

.spec-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.4rem;
    color: var(--text-secondary);
}

.spec-list li span {
    color: var(--text-muted);
    font-weight: 600;
}

.spec-list li strong {
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.spec-list.muted li {
    border-bottom: none;
    padding: 0;
    display: list-item;
    list-style: '- ';
    margin-left: 0.6rem;
    color: var(--text-secondary);
}

.test-figure {
    margin: 0 0 1.8rem;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    position: relative;
    box-shadow: none;
}

.process-figure:hover,
.test-figure:hover {
    transform: none;
    box-shadow: none;
}

.process-figure img,
.test-figure img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.process-figure.large img,
.test-figure.large img {
    max-height: 620px;
}

.process-figure:hover img {
    transform: scale(1.02);
}

.test-figure:hover img {
    transform: scale(1.01);
}

.process-figure figcaption {
    padding: 0.9rem 1.3rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    line-height: 1.5;
}

.test-figure figcaption {
    padding: 0.55rem 0 0;
    font-size: 0.795rem;
    color: var(--text-muted);
    background: transparent;
    border-top: none;
    line-height: 1.5;
}

.process-figure figcaption span {
    color: var(--text-muted);
    font-style: italic;
}

@media (min-width: 1100px) {
    .process-figure.large img,
    .test-figure.large img {
        max-height: 720px;
    }
}

/* Testing Section */
.testing-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.testing-section .section-lede {
    margin-bottom: 1.2rem;
}

/* Post-process bands: tighter type, less “article blog” rhythm */
.anneal-section .section-title,
.material-section .section-title,
.testing-section .section-title {
    font-size: clamp(1.65rem, 3vw, 2.28rem);
    margin: 0.3rem 0 0.85rem;
    letter-spacing: -0.032em;
}

.anneal-section .section-title::after,
.material-section .section-title::after,
.testing-section .section-title::after {
    width: 38px;
    height: 2px;
    bottom: -10px;
    border-radius: 2px;
}

.anneal-section .section-lede,
.material-section .section-lede,
.testing-section .section-lede {
    font-size: 0.97rem;
    line-height: 1.52;
    margin-bottom: 1.25rem;
    max-width: 34rem;
}

.testing-services {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.15rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--border-color);
}

.test-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin: 0.05rem 0 1rem;
    padding: 0 0 0.2rem;
    border-bottom: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.test-nav::-webkit-scrollbar {
    height: 5px;
}

.test-nav::-webkit-scrollbar-thumb {
    background: rgba(107, 122, 145, 0.35);
    border-radius: 99px;
}

.test-nav-item {
    flex: 0 0 auto;
    margin-right: 1.55rem;
    text-decoration: none;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 0;
    padding: 0.45rem 0;
    font-size: 0.8325rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.test-nav-item:last-of-type {
    margin-right: 0;
}

.test-nav-item:hover {
    color: var(--accent);
    border-bottom-color: rgba(11, 61, 145, 0.45);
}

.test-panel {
    display: grid;
    grid-template-columns: minmax(0, min(38%, 290px)) minmax(0, 1fr);
    gap: clamp(1.35rem, 3.8vw, 2.85rem);
    align-items: start;
}

.test-figure--panel {
    margin-bottom: 0;
    align-self: start;
}

.test-figure--panel img {
    max-height: min(296px, 36vw);
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.05),
        0 26px 55px -35px rgba(15, 23, 42, 0.45);
}

.test-figure--panel figcaption {
    padding: 0.55rem 0.2rem 0;
    font-size: 0.765rem;
    line-height: 1.45;
}

.test-figure figcaption span.test-figure__summary {
    display: block;
    line-height: 1.45;
    font-style: normal;
    color: var(--text-secondary);
}

.test-figure figcaption span.test-figure__credit {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
}

.test-figure figcaption span.test-figure__credit a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.test-figure figcaption span.test-figure__credit a:hover {
    color: var(--accent);
}

.test-panel__main {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    min-width: 0;
}

.test-panel--text-only {
    grid-template-columns: 1fr;
}

.testing-section .test-block-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.65rem 1.35rem;
    margin-bottom: 0.12rem;
    padding-bottom: 0;
    border-bottom: none;
}

.test-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.82rem;
}

.test-highlights li {
    margin: 0;
    padding: 0;
    padding-left: 1.05rem;
    border-left: 2px solid rgba(11, 61, 145, 0.28);
    background: transparent;
    border-radius: 0;
    font-size: 0.875rem;
    line-height: 1.53;
    color: var(--text-secondary);
}

.test-highlights strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 900px) {
    .test-panel {
        grid-template-columns: 1fr;
    }

    .test-figure--panel img {
        max-height: min(236px, 52vw);
    }
}

.testing-section article.test-block,
.testing-section .test-block {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: clamp(2.1rem, 4vw, 2.75rem) 0;
    margin-bottom: 0;
    box-shadow: none;
    scroll-margin-top: 100px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.075);
}

.testing-section .test-block.test-block--panel {
    padding-bottom: clamp(2rem, 4vw, 2.6rem);
    box-shadow: none;
}

.testing-services .test-block:last-child {
    border-bottom: none;
}

.test-block-header h3 {
    font-size: clamp(1.06rem, 2.15vw, 1.37rem);
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.028em;
    font-weight: 800;
}

.standard-tag {
    display: inline-block;
    padding: 0.18rem 0.58rem;
    margin: 0;
    border: 1px solid rgba(11, 61, 145, 0.2);
    background: transparent;
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.695rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.test-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(1.5rem, 3.5vw, 2.5rem);
    align-items: flex-start;
}

.test-prose {
    max-width: 48ch;
}

.test-prose p {
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
    line-height: 1.65;
    font-size: 0.93rem;
}

.test-prose strong {
    color: var(--text-primary);
}

.eq-list {
    list-style: none;
    padding: 0.8rem 1rem;
    margin: 0.4rem 0 1rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-family: 'Cambria Math', 'Georgia', serif;
    font-size: 0.92rem;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.testing-section .test-spec-card {
    margin-top: 0.05rem;
    padding: 1.05rem 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
    border-top: 1px solid var(--border-color);
}

.testing-section .test-spec-card h4 {
    font-size: 0.695rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    margin: 0 0 0.55rem;
}

.testing-section .kv-list {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(8.75rem, 0.92fr) minmax(0, 1fr);
    gap: 0.45rem 1.2rem;
    font-size: 0.7975rem;
    line-height: 1.4;
}

.testing-section .kv-list dt {
    color: var(--text-muted);
    font-weight: 600;
}

.testing-section .kv-list dd {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.testing-foot {
    margin-top: 1.85rem;
    padding: 1.35rem 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--text-secondary);
    font-size: 0.885rem;
    line-height: 1.53;
}

.testing-foot p {
    margin: 0;
    max-width: 44rem;
}

.testing-foot strong {
    color: var(--text-primary);
    font-weight: 700;
}

.testing-foot a {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 880px) {
    .test-grid { grid-template-columns: 1fr; }
    .testing-section .kv-list {
        grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
    }

    .testing-section .kv-list dd {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .testing-section .kv-list {
        grid-template-columns: 1fr;
    }

    .testing-section .kv-list dt {
        margin-top: 0.55rem;
    }

    .testing-section .kv-list dt:first-of-type {
        margin-top: 0;
    }
}

/* Material Database */
.material-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unit-toggle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.material-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
}

.material-controls {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #ffffff;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.material-controls .control-group {
    position: relative;
    z-index: 0;
}

.material-controls .control-group:focus-within {
    z-index: 12;
}

.control-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

select, input[type="number"] {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.7rem;
    font-family: inherit;
    outline: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

select:focus, input:focus {
    border-color: var(--accent);
}

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

.chip {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 4px;
}

.chip.active {
    background: var(--accent);
    color: #ffffff;
}

.chart-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 11px;
    position: relative;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 22px 50px -32px rgba(15, 23, 42, 0.35);
}

.material-section .chart-container {
    border-radius: 14px;
    padding: 1.75rem 2rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    font-family: var(--font-family);
}

.material-section .material-controls {
    font-family: var(--font-family);
}

.material-lab {
    max-width: 1640px;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-lede {
    max-width: min(40rem, 100%);
    font-size: 1.02rem;
    line-height: 1.58;
    color: var(--text-secondary);
    margin: 0 0 2.25rem;
}

.material-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.material-hero-text {
    min-width: 0;
}

.material-hero-figure {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}

.material-hero-figure:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.material-hero-figure img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
}

.material-hero-figure figcaption {
    padding: 0.7rem 1.1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.material-hero--text-only {
    margin-bottom: 2rem;
}

.material-hero--text-only .section-title {
    margin-bottom: 0.35rem;
}

.material-hero--text-only .eyebrow {
    margin-bottom: 0.55rem;
}

.material-hero-lede {
    margin-bottom: 0;
    margin-top: 0.35rem;
}

.preview-meta-note {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

#test-toroid .test-figure--panel img {
    object-fit: cover;
    object-position: center 40%;
    filter: contrast(1.05) saturate(1.06);
}

.field-hint {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.form-row--tight {
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .material-hero { grid-template-columns: 1fr; gap: 1.6rem; }
    .material-hero-figure img { max-height: 280px; }
}

.material-workbench {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.75rem;
    margin-top: 2rem;
    align-items: stretch;
}

.material-chart-shell {
    padding: 1.5rem;
    min-width: 0;
}

.chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.chart-toolbar .chart-tabs {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.chart-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.scale-toggle {
    display: inline-flex;
    background: var(--bg-tertiary);
    border-radius: 999px;
    padding: 3px;
    border: 1px solid var(--border-color);
}

.scale-toggle[hidden] {
    display: none;
}

.scale-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scale-btn.active {
    background: var(--accent);
    color: #ffffff;
}

.chart-badge {
    background: #eef6ff;
    border: 1px solid #cfe4ff;
    color: var(--accent);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.chart-readout {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.chart-readout span {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-weight: 700;
    color: var(--text-secondary);
}

.material-card {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.1rem;
}

.material-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0.2rem 0 0.85rem;
}

.material-family {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.material-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.material-facts div {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.55rem 0.65rem;
}

.material-facts dt {
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.material-facts dd {
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 700;
    margin-top: 0.1rem;
}

.compare-note {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.85rem;
}

.material-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.legend-item {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.5rem;
    align-items: center;
    text-align: left;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text-primary);
    padding: 0.45rem 0.6rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.78rem;
}

.legend-item:hover,
.legend-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.material-chart-shell {
    position: relative;
    z-index: 1;
}

.legend-swatch {
    width: 20px;
    height: 4px;
    border-radius: 999px;
    flex-shrink: 0;
}

.legend-swatch--dashed {
    height: 0;
    border-radius: 0;
    background: transparent !important;
    border-top: 3px dashed;
}

.legend-label {
    color: var(--text-secondary);
}

.legend-label strong {
    color: var(--text-primary);
}

.legend-compare {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.72em;
    text-transform: lowercase;
}

.source-panel {
    margin-top: 1rem;
    padding: 0.75rem 0.9rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.source-panel strong {
    color: var(--accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.data-table-wrap {
    margin-top: 1rem;
    max-height: 280px;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.compact-table th,
.compact-table td {
    padding: 0.75rem 0.9rem;
    font-size: 0.78rem;
}

.chart-tooltip {
    display: none;
    position: absolute;
    z-index: 4;
    min-width: 168px;
    max-width: 220px;
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font-size: 0.76rem;
    line-height: 1.3;
    pointer-events: none;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-variant-numeric: tabular-nums;
}

.chart-tooltip header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.chart-tooltip header strong {
    font-size: 0.82rem;
    flex: 1;
}

.chart-tooltip header .tt-meta {
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 700;
}

.chart-tooltip .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.chart-tooltip .tt-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    margin: 0.08rem 0;
}

.chart-tooltip .tt-k {
    color: #94a3b8;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.64rem;
    flex: 0 0 auto;
    min-width: 1.1rem;
}

.chart-tooltip .tt-v {
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.76rem;
}

.chart-tooltip .tt-sep {
    color: #64748b;
    font-weight: 500;
    padding: 0 0.12rem;
}

.chart-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    text-transform: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn.active {
    color: var(--accent);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.canvas-wrapper {
    height: 640px;
    width: 100%;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    image-rendering: -webkit-optimize-contrast;
}

#material-chart {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
    image-rendering: -webkit-optimize-contrast;
}

/* Specs Table */
.specs-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.table-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Capabilities table only — do not target .compact-table inside material explorer */
.specs-section .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.specs-section .specs-table {
    width: 100%;
}

.specs-table {
    border-collapse: collapse;
}

.specs-table th, .specs-table td {
    padding: 1.2rem 2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background: var(--bg-secondary);
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}

.specs-table td {
    font-size: 0.95rem;
}

/* Floor limits — card grid (reads like a spec sheet, not a blog table) */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 0.85rem;
}

.capability-cell {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 10px;
    padding: 1.05rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 14px 36px -26px rgba(15, 23, 42, 0.28);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.capability-cell:hover {
    border-color: rgba(11, 61, 145, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 20px 40px -28px rgba(15, 23, 42, 0.32);
}

.capability-k {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
}

.capability-v {
    font-size: 0.96rem;
    font-weight: 650;
    color: var(--text-primary);
    line-height: 1.42;
}

/* Quote Engine v2 */
.quote-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.quote-section .section-lede {
    margin-bottom: 1.6rem;
}

.quote-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.6rem;
}

.quote-step {
    flex: 1 1 130px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: var(--transition-fast);
}

.quote-step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.quote-step:hover {
    color: var(--accent);
}

.quote-step.active {
    background: #ffffff;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.quote-step.active span {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.quote-step.completed span {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: var(--accent);
}

.quote-grid.v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 2rem;
    align-items: flex-start;
}

.input-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
    border: 1px solid rgba(15, 23, 42, 0.07);
    padding: 1.8rem 2rem;
    margin-bottom: 1.2rem;
    border-radius: 11px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.82) inset,
        0 20px 44px -30px rgba(15, 23, 42, 0.33);
}

.quote-pane {
    display: none;
}

.quote-pane.active {
    display: block;
    animation: fadePane 0.25s ease;
}

@keyframes fadePane {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border-color);
}

.pane-header h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0;
}

.pane-subtitle {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.form-group.span-2 {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group .unit {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.72rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.7rem 0.85rem;
    font-family: inherit;
    border-radius: 6px;
    font-size: 0.92rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

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

.radio-group.inline {
    display: inline-flex;
    gap: 0.7rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.25rem 0.4rem;
    width: fit-content;
}

.radio-group.inline label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.radio-group.inline input[type="radio"] {
    accent-color: var(--accent);
    margin: 0;
}

.dxf-upload-zone {
    border: 2px dashed var(--border-highlight);
    padding: 1.6rem 1.4rem;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    background: var(--bg-secondary);
    margin-top: 1rem;
    transition: var(--transition-fast);
}

.dxf-upload-zone:hover {
    border-color: var(--accent);
    background: #ffffff;
}

.dxf-upload-zone p {
    margin: 0.3rem 0 0.2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.dxf-upload-zone .dxf-upload-hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
}

.upload-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.material-snapshot {
    margin-top: 1.4rem;
    padding: 1rem 1.2rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.4rem 1rem;
}

.material-snapshot strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 0.15rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem;
}

.checkbox-grid.compact .check-card {
    padding: 0.7rem 0.85rem;
}

.check-card {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.check-card:hover {
    border-color: var(--accent);
}

.check-card input[type="checkbox"] {
    accent-color: var(--accent);
    margin-top: 0.18rem;
    flex-shrink: 0;
}

.check-card div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.check-card strong {
    font-size: 0.86rem;
    color: var(--text-primary);
    font-weight: 700;
}

.check-card span {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.check-card:has(input:checked) {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.sub-heading {
    margin: 1.4rem 0 0.6rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    font-weight: 800;
}

.quote-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: 0.6rem;
}

.quote-nav .btn {
    padding: 0.7rem 1.4rem;
}

.quote-help--minimal {
    padding: 0.55rem 1rem;
    min-height: 2rem;
    background: rgba(15, 23, 42, 0.92);
}

.quote-help-hint:empty {
    display: block;
    min-height: 1.25em;
}

.recipe-list--compact li {
    padding-bottom: 0.28rem;
    font-size: 0.8rem;
}

.anneal-critical-list--compact {
    margin-top: 0.75rem;
    gap: 0.5rem;
}

.anneal-critical-list--compact li {
    padding: 0.5rem 0.6rem;
}

.anneal-critical-list--compact .critical-temp {
    font-size: 0.78rem;
}

.dxf-upload-zone.is-dragover {
    border-color: var(--accent);
    background: rgba(11, 61, 145, 0.06);
    outline: 2px dashed rgba(11, 61, 145, 0.35);
    outline-offset: 2px;
}

.quote-help {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.88rem;
    line-height: 1.55;
}

.quote-help strong {
    color: #38bdf8;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-line.subtle {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.summary-line.subtle span:last-child {
    color: var(--text-secondary);
    font-weight: 600;
}

.preview-canvas-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.preview-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.65rem 1rem;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-indicator {
    color: #0f766e;
}

.status-indicator.warn { color: #b45309; }
.status-indicator.err { color: #b91c1c; }

.preview-viewport {
    height: 240px;
    background: #fdfdfd;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px), linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dfm-svg {
    width: min(90%, 216px);
    height: auto;
    max-height: 90%;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.preview-meta {
    list-style: none;
    margin: 0;
    padding: 0.7rem 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.4rem 0.8rem;
    font-size: 0.78rem;
}

.preview-meta li {
    display: flex;
    flex-direction: column;
    color: var(--text-secondary);
}

.preview-meta li strong {
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    font-size: 0.88rem;
}

.pricing-summary {
    background: #ffffff;
    border: 1.5px solid var(--accent);
    padding: 1.4rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 0.25rem 0;
}

.summary-line span:last-child {
    color: var(--text-primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pricing-summary hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.7rem 0;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.price-item span:last-child {
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.price-item.discount span:last-child {
    color: #047857;
}

.price-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: var(--text-primary);
    border-top: 2px solid var(--bg-tertiary);
    padding-top: 0.7rem;
    margin-top: 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.price-total span:last-child {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.lead-time {
    margin-top: 0.7rem;
    padding: 0.6rem 0.9rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

.lead-time strong {
    color: var(--accent);
}

.quote-warnings {
    margin-top: 0.9rem;
    padding: 0.8rem 1rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    font-size: 0.83rem;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.quote-warnings.ok {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.quote-warnings strong {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

.quote-actions {
    margin-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.quote-receipt {
    margin-top: 0.7rem;
    padding: 0.7rem 0.9rem;
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
}

.hold-note {
    margin-top: 0.7rem;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.45;
}

.quote-submit-dialog {
    padding: 0;
    border: none;
    border-radius: 16px;
    max-width: min(32rem, calc(100vw - 2rem));
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    background: #ffffff;
}

.quote-submit-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.quote-submit-dialog form {
    padding: 1.5rem 1.6rem 1.35rem;
}

.quote-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.quote-dialog-head h3 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.quote-dialog-close {
    border: none;
    background: var(--bg-tertiary);
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
}

.quote-dialog-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.quote-dialog-lede {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 1.1rem;
}

.quote-submit-dialog .form-group {
    margin-bottom: 0.9rem;
}

.quote-submit-dialog textarea {
    min-height: 7.5rem;
    resize: vertical;
    font-family: var(--font-family);
    font-size: 0.84rem;
    line-height: 1.45;
}

.quote-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.quote-submit-meta-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.quote-send-spec-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.55rem;
}

.quote-send-spec-group {
    padding: 0.75rem 0.95rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.quote-send-spec {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) minmax(0, 1.4fr);
    column-gap: 0.85rem;
    row-gap: 0.45rem;
    align-items: baseline;
}

.quote-send-spec dt {
    margin: 0;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.815rem;
    line-height: 1.38;
}

.quote-send-spec dd {
    margin: 0;
    text-align: right;
    color: var(--text-primary);
    font-size: 0.815rem;
    line-height: 1.38;
}

.quote-attachment-group {
    padding: 0.75rem 0.95rem;
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    background: #fafbff;
}

.quote-attach-note {
    margin: 0.4rem 0 0;
    font-size: 0.805rem;
    line-height: 1.42;
    color: var(--text-secondary);
}

.quote-attach-fallback .quote-submit-dxf-input.quote-submit-dxf-input--visible {
    position: static;
    width: 100%;
    max-width: 100%;
    opacity: 1;
    height: auto;
    margin-top: 0.5rem;
    padding: 0.45rem 0;
    clip: unset;
    clip-path: unset;
}

.quote-submit-dxf-input:not(.quote-submit-dxf-input--visible) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.quote-submit-dialog .field-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.765rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 480px) {
    .quote-send-spec {
        grid-template-columns: 1fr;
    }

    .quote-send-spec dd {
        text-align: left;
        padding-bottom: 0.55rem;
    }
}

@media (max-width: 1024px) {
    .quote-grid.v2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .form-group.span-2 { grid-column: span 1; }
}

/* Contact */
.contact-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 2.5rem;
    margin-top: 1.5rem;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-block {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem 1.3rem;
}

.info-block.accent {
    border-left: 3px solid var(--accent);
    background: #ffffff;
}

.info-block h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin: 0 0 0.7rem;
}

.info-block p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 0.65rem;
}

.info-block p:last-child { margin-bottom: 0; }

.info-block a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--border-highlight);
}

.info-block a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.info-list {
    list-style: '— ';
    padding-left: 1.1rem;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

.muted-line {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.hours {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.contact-form {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.8rem 2rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.contact-form .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.req {
    color: #b91c1c;
    font-weight: 700;
}

.inline-check {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}

.inline-check label {
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    line-height: 1.45;
}

.inline-check input[type="checkbox"] {
    accent-color: var(--accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.form-feedback {
    margin-top: 0.9rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-height: 1.2rem;
}

.form-feedback.ok { color: #065f46; }
.form-feedback.err { color: #b91c1c; }

@media (max-width: 880px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 1.4rem 1.2rem; }
}

/* Footer */
.footer-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
}

.footer {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Switch UI */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px; width: 14px;
    left: 3px; bottom: 3px;
    background-color: #ffffff;
    transition: .4s;
}

input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* ===========================================================
 *  Bonding cycle section
 *  =========================================================== */
.anneal-section {
    padding: var(--section-padding);
    background:
        radial-gradient(80% 55% at 12% 0%, rgba(11, 61, 145, 0.05) 0%, transparent 58%),
        radial-gradient(70% 50% at 100% 100%, rgba(100, 116, 139, 0.06) 0%, transparent 55%),
        var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.anneal-workbench {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 1.8rem;
    margin-top: 1.4rem;
    align-items: stretch;
}

.anneal-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.anneal-controls .control-group {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.anneal-mass-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.7rem;
}

.anneal-mass-head label {
    margin-bottom: 0;
}

.anneal-mass-head output {
    font-weight: 800;
    color: var(--accent);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.anneal-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 35%, var(--accent) 70%, #0b3d91 100%);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

.anneal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid var(--accent);
    box-shadow: 0 3px 10px rgba(11, 61, 145, 0.25);
    transition: transform var(--transition-fast);
}

.anneal-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.anneal-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid var(--accent);
    box-shadow: 0 3px 10px rgba(11, 61, 145, 0.25);
}

.anneal-scale-row {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.anneal-mass-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.anneal-mass-chips button {
    flex: 1;
    min-width: 60px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
}

.anneal-mass-chips button:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #ffffff;
}

.anneal-recipe-card {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-sm);
}

.anneal-recipe-card header {
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border-color);
}

.recipe-eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.anneal-recipe-card h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.recipe-family {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.recipe-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 0.8rem;
}

.recipe-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.83rem;
}

.recipe-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-secondary);
}

.recipe-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recipe-list li span {
    color: var(--text-muted);
    font-weight: 600;
}

.recipe-list li strong {
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.anneal-effect {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-sm);
}

.anneal-effect > h4 {
    font-size: 0.84rem;
    margin: 0 0 0.6rem;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.anneal-effect > h4 > span {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.anneal-effect-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.anneal-effect-grid > div {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    text-align: center;
}

.effect-label {
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.effect-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.effect-value.up { color: #047857; }
.effect-value.down { color: #047857; }

.anneal-effect-note {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    padding: 0.6rem 0.7rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.anneal-critical-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.anneal-critical-list li {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 0.7rem;
    align-items: start;
}

.critical-temp {
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    text-align: center;
    font-weight: 800;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anneal-critical-list li strong {
    display: block;
    font-size: 0.82rem;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

.anneal-critical-list li span {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.45;
}

.anneal-charts {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-width: 0;
}

.anneal-chart-shell {
    padding: 1.2rem 1.4rem;
}

.anneal-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
}

.anneal-chart-head h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 0.2rem;
}

.anneal-chart-head p {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.4;
    max-width: 540px;
}

.anneal-canvas-wrapper {
    height: 460px;
    width: 100%;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

#anneal-chart {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

.anneal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 0.8rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.anneal-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.anneal-legend-dot {
    width: 14px;
    height: 4px;
    border-radius: 999px;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .anneal-workbench { grid-template-columns: 1fr; }
    .anneal-canvas-wrapper { height: 380px; }
}

@media (max-width: 720px) {
    .anneal-effect-grid { grid-template-columns: 1fr; }
    .anneal-canvas-wrapper { height: 320px; }
}

/* Responsive */
@media (max-width: 1180px) {
    .material-workbench { grid-template-columns: 1fr; }
    .canvas-wrapper { height: 600px; }
}

@media (max-width: 1024px) {
    .quote-grid { grid-template-columns: 1fr; }
    .material-grid { grid-template-columns: 1fr; }
    .chart-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.65rem 0.75rem;
    }
    .canvas-wrapper { height: 540px; }
}

@media (max-width: 880px) {
    body.nav-lock { overflow: hidden; }
    .nav-bar { padding: 0.65rem 0; }
    .nav-container { padding: 0 16px; gap: 1rem; }
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: fixed;
        top: 69px;
        left: 12px;
        right: 12px;
        max-height: calc(100dvh - 88px);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.97);
        border: 1px solid var(--border-color);
        border-radius: 18px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    }
    .nav-bar.nav-open .nav-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.9rem 1rem;
        border-radius: 12px;
        background: var(--bg-secondary);
        color: var(--text-primary);
        font-size: 0.95rem;
    }
    .nav-links a:not(.cta-outline)::after { display: none; }
    .nav-links a.is-active { background: var(--accent-soft); color: var(--accent); }
    .nav-links .cta-outline {
        text-align: center;
        padding: 0.9rem 1rem;
        background: var(--accent);
        color: #ffffff !important;
        border-color: var(--accent);
    }
    .brand-tag { display: none; }
}

@media (max-width: 720px) {
    .canvas-wrapper { height: 460px; }
    .material-lab { padding: 0 12px; }
    :root { --section-padding: 80px 16px; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .section-title { font-size: clamp(1.55rem, 8vw, 2.05rem); }
    .section-lede { font-size: 0.94rem; }
    .hero {
        min-height: auto;
        padding: 110px 0 42px;
    }
    .hero h1 { font-size: clamp(2.15rem, 12vw, 3rem); }
    .hero .sub-headline {
        font-size: 1rem;
        padding-left: 0.9rem;
        margin-bottom: 1.5rem;
    }
    .hero-actions { margin-bottom: 1.8rem; }
    .hero-actions .btn,
    .btn-lg {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1rem;
    }
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 0.9rem;
    }
    .hero-stats li {
        display: grid;
        grid-template-columns: minmax(88px, auto) 1fr;
        align-items: center;
        gap: 0.75rem;
    }
    .hero-stat-value { font-size: 1.45rem; }
    .brand-strip-item,
    .input-card,
    .contact-form,
    .pricing-summary {
        border-radius: 12px;
        padding: 1rem;
    }
    .process-panel {
        padding: 2.25rem 1rem;
    }
    .process-split__head {
        align-items: flex-start;
        gap: 0.8rem;
    }
    .process-index {
        font-size: 1.65rem;
    }
    .process-split__head h3,
    .test-block-header h3 {
        font-size: 1.08rem;
    }
    .process-rail,
    .quote-stepper,
    .anneal-mass-chips,
    .form-actions,
    .quote-nav {
        flex-direction: column;
        align-items: stretch;
    }
    .process-rail-link,
    .quote-step,
    .anneal-mass-chips button,
    .form-actions .btn,
    .quote-nav .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .material-controls,
    .material-chart-shell,
    .anneal-chart-shell,
    .anneal-controls .control-group,
    .anneal-recipe-card,
    .anneal-effect {
        padding: 1rem;
    }
    .material-facts,
    .preview-meta,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    .chart-toolbar { gap: 0.75rem; }
    .canvas-wrapper,
    .anneal-canvas-wrapper {
        height: 340px;
    }
    .table-wrapper,
    .data-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .capability-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .capability-cell {
        padding: 0.95rem 1rem;
    }
    .quote-output {
        position: static;
    }
    .preview-viewport { height: 190px; }
    .summary-line,
    .price-item,
    .price-total {
        gap: 1rem;
    }
    .summary-line span:last-child,
    .price-item span:last-child,
    .price-total span:last-child {
        text-align: right;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    .footer { padding: 2.2rem 0; }
}

@media (max-width: 420px) {
    .nav-container { padding: 0 12px; }
    .brand-mark {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }
    .logo { font-size: 0.98rem; }
    .hero-eyebrow {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.35;
    }
    .hero h1 br { display: none; }
    .hero-stats li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .canvas-wrapper,
    .anneal-canvas-wrapper {
        height: 300px;
    }
    .radio-group.inline {
        width: 100%;
        flex-direction: column;
        border-radius: 12px;
    }
    .radio-group.inline label {
        justify-content: center;
    }
}

/* Mobile layout: static grade/bond lists, no charts or instant quote */
.mobile-only,
.mobile-only-lede {
    display: none;
}

@media (max-width: 880px) {
    .hide-on-mobile,
    .desktop-only-lede,
    .desktop-only-figure,
    #quote,
    #quote-submit-dialog,
    .anneal-workbench,
    .material-workbench {
        display: none !important;
    }

    .mobile-only {
        display: inline-flex;
    }

    .hero-actions .mobile-only {
        width: 100%;
        justify-content: center;
    }

    .mobile-only-lede {
        display: block;
    }

    .material-mobile-list,
    .anneal-mobile-list {
        display: block;
        margin-top: 1.5rem;
    }

    .grade-cards,
    .bond-cards {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .grade-card,
    .bond-card {
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 1rem 1.1rem;
        box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
    }

    .grade-card h3,
    .bond-card h3 {
        margin: 0 0 0.25rem;
        font-size: 1.05rem;
    }

    .grade-family,
    .bond-family {
        margin: 0 0 0.75rem;
        font-size: 0.82rem;
        color: var(--text-muted);
        line-height: 1.4;
    }

    .grade-facts {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 0.75rem;
        margin: 0 0 0.75rem;
    }

    .grade-facts div {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .grade-facts dt {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        font-weight: 700;
    }

    .grade-facts dd {
        margin: 0;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .grade-facts div:last-child {
        grid-column: 1 / -1;
    }

    .grade-use {
        margin: 0;
        font-size: 0.86rem;
        line-height: 1.45;
        color: var(--text-secondary);
    }

    .bond-facts {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .bond-facts li {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .bond-facts span {
        color: var(--text-muted);
        flex-shrink: 0;
    }

    .bond-facts strong {
        text-align: right;
        font-weight: 600;
        color: var(--text-primary);
    }

    .mobile-section-note {
        margin: 1rem 0 0;
        font-size: 0.8rem;
        color: var(--text-muted);
        text-align: center;
    }

    .anneal-section .section-lede {
        max-width: 100%;
    }
}

@media (min-width: 881px) {
    .material-mobile-list,
    .anneal-mobile-list {
        display: none;
    }
}
