:root {
    --prism-bar-h: 72px;
}

html.prism-assistant-off {
    --prism-bar-h: 0px;
}

:root, [data-theme="dark"] {
    --bg-primary: #0c0a14;
    --bg-secondary: rgba(16, 12, 24, 0.3);
    --bg-card: rgba(16, 12, 24, 0.9);
    --bg-card-hover: rgba(28, 22, 44, 0.94);
    --text-primary: #eeeef4;
    --text-secondary: #c8c6dc;
    --text-muted: #b7b6cc;
    --accent: #c4b5fd;
    --accent-fill: #6d28d9;
    --accent-glow: rgba(139, 92, 246, 0.16);
    --accent-secondary: #e2c27a;
    --border: rgba(176, 166, 210, 0.34);
    --violet: #c4b5fd;
    --violet-deep: #6d28d9;
    --gold: #e2c27a;
    --gold-deep: #d4a853;
    --ink: #eeeef4;
    --parchment: #f6f1e8;
    --success: #2f9e68;
    --success-ink: #c9f5df;
    --warn: #e0a04a;
    --warn-ink: #f8e3a8;
    --danger: #e06a6a;
    --danger-ink: #ffc9c9;
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --shadow-ring: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --shadow-lift: 0 16px 36px rgba(6, 4, 14, 0.28);
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-md: 1rem;
    --text-lg: 1.15rem;
    --text-xl: 1.35rem;
    --text-2xl: 1.8rem;
    --text-3xl: 2.35rem;
    --text-display: clamp(2.15rem, 4.2vw, 3.25rem);
    --focus-ring: #e2c27a;
    --mark-violet: #c4b5fd;
    --mark-gold: #e2c27a;
    --field-bg: #14111c;
    --glass-fill: rgba(12, 10, 18, 0.94);
    --success-bg: rgba(47, 158, 104, 0.16);
    --success-border: rgba(110, 200, 150, 0.45);
    --danger-bg: rgba(176, 56, 56, 0.18);
    --danger-border: rgba(224, 120, 120, 0.48);
    --warn-bg: rgba(212, 168, 83, 0.16);
    --warn-border: rgba(212, 168, 83, 0.48);
    --card-shadow: var(--shadow-ring);
    --header-bg: rgba(12, 10, 20, 0.82);
    --toggle-bg: rgba(232, 232, 240, 0.15);
    --toggle-border: rgba(232, 232, 240, 0.4);
    --toggle-color: #eeeef4;
    --nav-btn-bg: rgba(255, 255, 255, 0.08);
    --nav-btn-border: rgba(255, 255, 255, 0.18);
    --nav-btn-hover: rgba(139, 92, 246, 0.15);
    --glass-blur: blur(16px);
    --desk-surface: rgba(14, 11, 22, 0.92);
    --desk-surface-raised: rgba(24, 19, 36, 0.96);
    --desk-sticky: #181324;
    /* Opaque desk paint swallows the translucent --border, so the edge is a step stronger. */
    --desk-border: rgba(176, 166, 210, 0.46);
}

[data-theme="light"] {
    --bg-primary: #f3f0ea;
    --bg-secondary: rgba(222, 216, 206, 0.4);
    --bg-card: rgba(255, 252, 248, 0.92);
    --bg-card-hover: rgba(255, 255, 255, 0.96);
    --text-primary: #0d0d1a;
    --text-secondary: #3a3a52;
    --text-muted: #4a4a5c;
    --accent: #6d28d9;
    --accent-fill: #5b21b6;
    --accent-glow: rgba(124, 58, 237, 0.10);
    --accent-secondary: #7a5c10;
    --border: rgba(110, 96, 72, 0.28);
    --violet: #5b21b6;
    --violet-deep: #4c1d95;
    --gold: #7a5c10;
    --gold-deep: #6b4e0a;
    --ink: #0d0d1a;
    --parchment: #f6f1e8;
    --success: #0f5c32;
    --success-ink: #0f5c32;
    --warn: #7a4e0a;
    --warn-ink: #6b4e0a;
    --danger: #9f1d1d;
    --danger-ink: #8f1d1d;
    --focus-ring: #7a5c10;
    --mark-violet: #5b21b6;
    --mark-gold: #7a5c10;
    --field-bg: #ffffff;
    --glass-fill: rgba(255, 252, 248, 0.92);
    --success-bg: rgba(22, 140, 70, 0.12);
    --success-border: rgba(22, 120, 64, 0.35);
    --danger-bg: rgba(180, 40, 40, 0.1);
    --danger-border: rgba(150, 30, 30, 0.32);
    --warn-bg: rgba(184, 146, 46, 0.16);
    --warn-border: rgba(138, 104, 24, 0.4);
    --header-bg: rgba(246, 241, 232, 0.88);
    --toggle-bg: rgba(13, 13, 26, 0.10);
    --toggle-border: rgba(13, 13, 26, 0.30);
    --toggle-color: #0d0d1a;
    --nav-btn-bg: rgba(0, 0, 0, 0.05);
    --nav-btn-border: rgba(0, 0, 0, 0.13);
    --nav-btn-hover: rgba(124, 58, 237, 0.12);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    --glass-blur: blur(12px);
    --desk-surface: rgba(248, 247, 252, 0.94);
    --desk-surface-raised: rgba(255, 255, 255, 0.97);
    --desk-sticky: #ffffff;
    --desk-border: rgba(72, 62, 102, 0.28);
}

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

html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.01em;
    scroll-behavior: smooth;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: inherit;
    background: transparent;
    color: inherit;
    line-height: inherit;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

p a,
li a,
dd a,
.section-subtitle a,
.hero-subtitle a,
.currency-note a,
.map-blurb a,
.faq-answer a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

a.btn-primary,
a.btn-secondary,
a.nav-cta,
a.social-link,
a.nav-terminal,
.main-nav a,
.footer-inline a,
.footer-legal a,
.desk-rail a,
.desk-list > a {
    text-decoration: none;
}

a:hover {
    color: var(--accent-secondary);
}

/* ============ GLASS PANEL ============ */

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 2.5rem;
    box-shadow: var(--card-shadow);
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

/* ============ CRYSTAL SHINE SWEEP ============ */

.glass-panel,
.feature-card,
.social-links-section {
    position: relative;
    overflow: hidden;
}

.contact-info,
.contact-form-card {
    position: relative;
    overflow: clip;
}

.glass-panel::after,
.feature-card::after,
.contact-info::after,
.contact-form-card::after,
.social-links-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(139, 92, 246, 0.03) 45%,
        rgba(212, 168, 83, 0.06) 50%,
        rgba(139, 92, 246, 0.03) 55%,
        transparent 60%
    );
    transform: skewX(-15deg);
    transition: none;
    pointer-events: none;
    z-index: 1;
}

.glass-panel:hover::after,
.feature-card:hover::after,
.contact-info:hover::after,
.contact-form-card:hover::after,
.social-links-section:hover::after {
    animation: crystalShineSweep 0.8s ease forwards;
}

[data-theme="light"] .glass-panel::after,
[data-theme="light"] .feature-card::after,
[data-theme="light"] .contact-info::after,
[data-theme="light"] .contact-form-card::after,
[data-theme="light"] .social-links-section::after {
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(124, 58, 237, 0.04) 45%,
        rgba(184, 146, 46, 0.08) 50%,
        rgba(124, 58, 237, 0.04) 55%,
        transparent 60%
    );
}

@keyframes crystalShineSweep {
    from { left: -75%; }
    to { left: 125%; }
}

.glass-panel p {
    line-height: 1.9;
    letter-spacing: 0.015em;
    font-weight: 400;
}

/* ============ HEADER ============ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}

.site-header .container,
.header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.55rem;
    min-width: 0;
}

.header-bar {
    width: 100%;
    padding: 0 1rem;
}

.site-header:not(.desk) .main-nav {
    margin-left: auto;
}

.header-spacer {
    flex: 1 1 0;
    min-width: 0;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: none;
}

.header-tools .theme-toggle,
.header-tools .site-controls {
    margin-left: 0;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 1 auto;
}

/* Public lockup has no sibling. A block box keeps a copied brand on one line. */
.site-header:not(.desk) .brand-lockup {
    display: block;
}

.desk-identity {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
}

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

.desk-shell { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.desk-shell .desk-frame { flex: 1; min-height: 0; overflow: hidden; }
.desk-shell .desk-rail { overflow: auto; }
.desk-shell .desk-main { overflow: auto; height: 100%; }

.brand {
    --brand-track: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: var(--brand-track);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

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

.brand-icon {
    color: var(--accent);
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

.brand-svg {
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.55));
}

[data-theme="light"] .brand-svg {
    filter: drop-shadow(0 0 3px rgba(124, 58, 237, 0.45));
}

/* Stacked wordmark. brand-copy is the accessible and copyable name (one string).
   The two visual lines are aria-hidden and not selectable, so they do not split
   the name or the clipboard text. */
.brand .brand-text {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    line-height: 1;
    gap: 0;
    font-weight: 800;
}

.brand .brand-copy {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    color: transparent;
    font-size: 1em;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    user-select: text;
    -webkit-user-select: text;
}

.brand .brand-name,
.brand .brand-tld {
    display: block;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
}

.brand .brand-name {
    letter-spacing: var(--brand-track);
}

.brand .brand-tld {
    font-size: 0.52em;
    font-weight: 800;
    letter-spacing: 0.14em;
}

/* ============ NAV GLASS BUTTONS ============ */

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: none;
}

.main-nav a,
.main-nav button.nav-text {
    font-family: inherit;
    color: var(--text-secondary);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.03em;
    cursor: pointer;
    height: 36px;
    padding: 0 0.65rem;
    border-radius: 8px;
    background: var(--nav-btn-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--nav-btn-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.main-nav a::after,
.main-nav button.nav-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(255, 255, 255, 0.15) 45%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 55%,
        transparent 80%
    );
    background-size: 300% 100%;
    background-position: -150% 0;
    animation: glassShine 1.8s ease-out 0.5s forwards;
    pointer-events: none;
}

@keyframes glassShine {
    to { background-position: 250% 0; }
}

.main-nav a:hover,
.main-nav button.nav-text:hover {
    color: var(--accent);
    background: var(--nav-btn-hover);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px var(--accent-glow);
}

.main-nav a.nav-terminal {
    color: var(--text-primary);
    border-color: rgba(139, 92, 246, 0.72);
    background: rgba(139, 92, 246, 0.18);
    box-shadow: inset 0 -2px 0 #d4a853;
}

.main-nav a.nav-terminal:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.28);
}

[data-theme="light"] .main-nav a.nav-terminal {
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(124, 58, 237, 0.12);
    box-shadow: inset 0 -2px 0 #b8922e;
}

[data-theme="light"] .main-nav a.nav-terminal:hover {
    background: rgba(124, 58, 237, 0.18);
}

.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--nav-btn-bg);
    border: 1px solid var(--nav-btn-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

/* ============ HERO ============ */

.hero {
    padding: 8rem 0 6rem;
    background: radial-gradient(ellipse at 30% 50%, var(--accent-glow) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 50%);
}

.hero-content {
    max-width: 600px;
    flex: 1;
    position: relative;
    padding: 2rem 2.5rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.75;
    letter-spacing: 0.015em;
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

.page-hero {
    padding: 6rem 0 3rem;
}

.page-hero .container {
    position: relative;
    max-width: 700px;
    padding: 2rem 2.5rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.page-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.75;
    letter-spacing: 0.015em;
    font-weight: 400;
    margin-top: 0.5rem;
}

/* ============ BUTTONS ============ */

.btn-primary {
    display: inline-block;
    background: var(--accent-fill);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #7c3aed;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}

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

/* ============ FEATURES ============ */

.features {
    padding: 5rem 0;
}

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

.feature-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--card-shadow);
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease, transform 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

a.feature-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

a.feature-card:hover h3 {
    color: var(--accent);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    height: 48px;
    display: flex;
    align-items: center;
}

.feature-icon svg {
    display: block;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.9;
    letter-spacing: 0.015em;
    font-weight: 400;
}

/* ============ PROBLEM/WHY SECTION ============ */

.problem-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
    backdrop-filter: var(--glass-blur);
}

.split-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.problem-list {
    list-style: none;
    padding: 0;
}

.problem-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    line-height: 1.85;
    letter-spacing: 0.015em;
}

.problem-list li strong {
    color: var(--text-primary);
}

.split-visual {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem 2rem;
    text-align: center;
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============ CTA ============ */

@keyframes subtleGradientDrift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-section {
    padding: 5rem 0;
    text-align: center;
}

.cta-section .container {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
    background-image: linear-gradient(135deg, transparent 0%, var(--accent-glow) 50%, transparent 100%);
    background-size: 300% 300%;
    animation: subtleGradientDrift 20s ease infinite;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ============ CONTENT SECTIONS ============ */

.content-section {
    padding: 4rem 0;
}

.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.content-narrow h2, .content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.content-narrow h2:first-child {
    margin-top: 0;
}

.content-narrow p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.content-narrow .market-list {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.market-list {
    list-style: none;
    padding: 0;
}

.market-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.market-list li:last-child {
    border-bottom: none;
}

.market-list li strong {
    color: var(--text-primary);
}

.content-narrow .market-list {
    padding: 1rem 1.5rem;
}

/* ============ PRODUCTS/SERVICES GRID ============ */

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

/* An odd last tile spans the row so a 2-column grid does not end on a single half-width card. */
.products-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.products-grid > [id] {
    scroll-margin-top: 5.5rem;
}

/* ============ SKILL TAGS ============ */

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.team-skills span {
    background: var(--accent-glow);
    color: var(--accent);
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============ CONTACT ============ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 100%;
}

.contact-info {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    box-shadow: var(--card-shadow);
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

.contact-info h2 {
    margin-top: 0;
}

.contact-info p {
    line-height: 1.9;
    letter-spacing: 0.015em;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.contact-item a, .contact-item span {
    font-size: 1.05rem;
}

.contact-interests {
    margin-top: 2.5rem;
}

.contact-interests h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-interests ul {
    list-style: none;
    padding: 0;
}

.contact-interests li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
}

.contact-interests li::before {
    content: "\25C6";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 0.6rem;
    top: 0.7rem;
}

/* ============ CONTACT FORM ============ */

.contact-form-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    box-shadow: var(--card-shadow);
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
    display: flex;
    flex-direction: column;
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-form-card .form-group:has(textarea) {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form-card .form-group textarea {
    flex: 1;
}

.contact-form-card h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-group .field-hint {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.form-group input, .form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    outline: none;
}

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

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

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

.form-group .validation-message {
    color: #e05555;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.form-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-status {
    font-size: 0.9rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1.5rem;
    scroll-margin: 4.5rem;
}

.form-status.near-actions {
    margin: 1rem 0 0.75rem;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    outline: 2px solid #e05555;
    outline-offset: 1px;
}

.form-status.success {
    background: rgba(212, 168, 83, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(212, 168, 83, 0.3);
}

.form-status.error {
    background: rgba(224, 85, 85, 0.1);
    color: #e05555;
    border: 1px solid rgba(224, 85, 85, 0.3);
}

.sending-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(139, 92, 246, 0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spinnerRotate 0.7s linear infinite;
}

@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

.map-section {
    margin-top: 3rem;
    text-align: center;
}

.map-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.map-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.map-blurb {
    color: var(--text-secondary);
    max-width: 62ch;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.map-container {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-container iframe {
    display: block;
    width: 100%;
    min-height: 400px;
}

[data-theme="dark"] .map-container {
    filter: invert(0.9) hue-rotate(180deg) saturate(0.3) brightness(0.7);
}

.social-links-section {
    margin-top: 3rem;
    padding: 2rem 2.5rem;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

.social-links-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px var(--accent-glow);
}

.social-link .social-icon {
    font-size: 1.1rem;
}

/* ============ FOOTER ============ */

.site-footer {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 1.5rem;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-brand .brand-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .brand-icon, .footer-brand .brand-text {
    font-size: 1rem;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    line-height: 1.6;
}

.footer-brand .footer-tagline {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.8rem;
    font-style: italic;
}

.footer-links .footer-heading, .footer-contact .footer-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 0.35rem 0;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 0.3rem;
}

.footer-contact p:not(.footer-heading) {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.footer-contact .footer-email { margin-top: 0.8rem; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.5;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 860px) {
    .hero h1 { font-size: 2.2rem; }
    .page-hero h1 { font-size: 2rem; }
    .hero { padding: 5rem 0 3rem; }
    .features-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .split-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-actions { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }

    .brand {
        font-size: 1.2rem;
        gap: 0.4rem;
        --brand-track: 0.04em;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .page-hero .container {
        max-width: 100%;
        padding: 1.5rem;
    }

    .form-row { grid-template-columns: 1fr; }
    .form-submit-row { flex-direction: column; align-items: stretch; }
}

@media (max-width: 1180px) {
    .site-header:not(.desk) .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-header:not(.desk) .main-nav { gap: 0.35rem; }

    .site-header:not(.desk) .main-nav a,
    .site-header:not(.desk) .main-nav button.nav-text {
        padding: 0 0.65rem;
        font-size: 0.84rem;
    }
}

@media (max-width: 1040px) {
    .site-header:not(.desk) .header-tools { margin-left: auto; }
    .site-header:not(.desk) .main-nav { margin-left: 0; }

    .site-header:not(.desk) .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem 1rem 1rem;
        gap: 0.45rem;
    }

    .site-header:not(.desk) .main-nav.open { display: flex; }

    .site-header:not(.desk) .main-nav a,
    .site-header:not(.desk) .main-nav button.nav-text {
        width: 100%;
        height: 40px;
        justify-content: flex-start;
        padding: 0 0.9rem;
        font-size: 0.95rem;
    }

    .site-header:not(.desk) .mobile-toggle { display: inline-flex; }
}

/* ============ CONSTELLATION CANVAS ============ */

#constellation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

html[data-theme="dark"][data-realm="runeforge"] { background-color: #14110e; }
html[data-theme="light"][data-realm="runeforge"] { background-color: #f3eee4; }
html[data-theme="dark"][data-realm="starwell"] { background-color: #080712; }
html[data-theme="light"][data-realm="starwell"] { background-color: #e7e5f2; }

#ctrl-realm {
    min-width: 9.25rem;
    max-width: 12rem;
}

.site-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: clip;
}

.site-wrapper > main {
    flex: 1 0 auto;
}

/* ============ THEME TOGGLE ============ */

.theme-toggle {
    background: var(--toggle-bg);
    border: 1.5px solid var(--toggle-border);
    color: var(--toggle-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
    backdrop-filter: blur(8px);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
    transform: scale(1.1);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }

[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }

/* ============ SECTION COLOR TINTS ============ */

:root { --section-accent: 139, 92, 246; }
[data-section="home"]     { --section-accent: 139, 92, 246; }
[data-section="services"] { --section-accent: 212, 168, 83; }
[data-section="contact"]  { --section-accent: 176, 148, 230; }

.page-hero .container {
    border-color: rgba(var(--section-accent), 0.35);
    background: linear-gradient(
        135deg,
        rgba(var(--section-accent), 0.16) 0%,
        rgba(42, 36, 62, 0.85) 40%,
        rgba(var(--section-accent), 0.12) 100%
    );
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

[data-theme="light"] .page-hero .container {
    background: linear-gradient(
        135deg,
        rgba(var(--section-accent), 0.06) 0%,
        rgba(255, 255, 255, 0.70) 40%,
        rgba(var(--section-accent), 0.04) 100%
    );
    border-color: rgba(var(--section-accent), 0.18);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.05);
}

.main-nav a.active,
.main-nav a[aria-current="page"] {
    color: rgb(var(--section-accent));
    background: rgba(var(--section-accent), 0.12);
    border-color: rgba(var(--section-accent), 0.4);
    box-shadow: 0 2px 8px rgba(var(--section-accent), 0.15);
}

.glass-panel,
.feature-card,
.stat-card,
.cta-section .container,
.content-section .glass-panel,
.split-content .glass-panel,
.contact-info,
.contact-form-card,
.social-links-section,
.social-link {
    border-color: rgba(var(--section-accent), 0.25);
    background: linear-gradient(
        135deg,
        rgba(var(--section-accent), 0.08) 0%,
        var(--bg-card) 50%,
        rgba(var(--section-accent), 0.04) 100%
    );
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

[data-theme="light"] .glass-panel,
[data-theme="light"] .feature-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .cta-section .container,
[data-theme="light"] .content-section .glass-panel,
[data-theme="light"] .split-content .glass-panel,
[data-theme="light"] .contact-info,
[data-theme="light"] .contact-form-card,
[data-theme="light"] .social-links-section,
[data-theme="light"] .social-link {
    background: linear-gradient(
        135deg,
        rgba(var(--section-accent), 0.03) 0%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(var(--section-accent), 0.02) 100%
    );
    border-color: rgba(var(--section-accent), 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hero-content {
    background: linear-gradient(
        135deg,
        rgba(var(--section-accent), 0.10) 0%,
        var(--bg-card) 50%,
        rgba(var(--section-accent), 0.06) 100%
    );
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(var(--section-accent), 0.25);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

[data-theme="light"] .hero-content {
    background: linear-gradient(
        135deg,
        rgba(var(--section-accent), 0.04) 0%,
        rgba(255, 255, 255, 0.70) 50%,
        rgba(var(--section-accent), 0.03) 100%
    );
    border-color: rgba(var(--section-accent), 0.15);
}

/* ============ PAGE TRANSITIONS ============ */

@keyframes neoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes neoSlideIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

main.neo-fade-in { animation: neoFadeIn 500ms ease both; }
main.neo-slide-in { animation: neoSlideIn 550ms ease both; overflow-x: hidden; }

@keyframes tileGlowIn {
    0% {
        box-shadow: var(--card-shadow),
                    0 0 24px rgba(var(--section-accent), 0.30),
                    0 0 2px rgba(var(--section-accent), 0.40);
        border-color: rgba(var(--section-accent), 0.45);
    }
    100% {
        box-shadow: var(--card-shadow),
                    0 0 0px rgba(var(--section-accent), 0),
                    0 0 0px rgba(var(--section-accent), 0);
    }
}

.tile-glow-in .glass-panel,
.tile-glow-in .feature-card,
.tile-glow-in .stat-card,
.tile-glow-in .contact-info,
.tile-glow-in .contact-form-card,
.tile-glow-in .social-links-section,
.tile-glow-in .hero-content,
.tile-glow-in .cta-section .container,
.tile-glow-in .page-hero .container {
    animation: tileGlowIn 800ms ease both;
}

.tile-glow-in .glass-panel:nth-child(1),
.tile-glow-in .feature-card:nth-child(1) { animation-delay: 0ms; }
.tile-glow-in .glass-panel:nth-child(2),
.tile-glow-in .feature-card:nth-child(2) { animation-delay: 80ms; }
.tile-glow-in .glass-panel:nth-child(3),
.tile-glow-in .feature-card:nth-child(3) { animation-delay: 160ms; }
.tile-glow-in .glass-panel:nth-child(4),
.tile-glow-in .feature-card:nth-child(4) { animation-delay: 240ms; }
.tile-glow-in .glass-panel:nth-child(5),
.tile-glow-in .feature-card:nth-child(5) { animation-delay: 320ms; }
.tile-glow-in .glass-panel:nth-child(6),
.tile-glow-in .feature-card:nth-child(6) { animation-delay: 400ms; }
.tile-glow-in .glass-panel:nth-child(7),
.tile-glow-in .feature-card:nth-child(7) { animation-delay: 480ms; }

/* ============ SITE CONTROLS WIDGET ============ */

.site-controls {
    position: relative;
    margin-left: 0.5rem;
}

.controls-btn {
    background: var(--toggle-bg);
    border: 1.5px solid var(--toggle-border);
    color: var(--toggle-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.controls-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
    transform: scale(1.1);
}

.controls-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    min-width: min(280px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    /* --controls-top is the menu's measured viewport top, set by sorcFitControls. */
    max-height: calc(100vh - var(--controls-top, 4rem) - 0.75rem);
    max-height: calc(100dvh - var(--controls-top, 4rem) - 0.75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: rgba(16, 12, 24, 0.94);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1rem;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .controls-dropdown {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.controls-dropdown.open {
    display: block;
}

/* .site-wrapper (z-index 1) caps the menu's stacking; lift it over .prism-agent-host (400) while open. */
.site-wrapper:has(.controls-dropdown.open) {
    z-index: 410;
}

.controls-dropdown .currency-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0 0 0.85rem;
}

.controls-dropdown .currency-select {
    width: 100%;
    min-height: 40px;
}

.controls-dropdown .currency-bar + .controls-heading {
    margin-top: 0.15rem;
}

.controls-dropdown .controls-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 0.6rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.control-row label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.control-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    flex-shrink: 0;
}

.control-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.2s;
}

.control-toggle:checked {
    background: rgba(var(--section-accent), 0.3);
    border-color: rgba(var(--section-accent), 0.5);
}

.control-toggle:checked::after {
    left: 22px;
    background: rgb(var(--section-accent));
}

.control-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    outline: none;
    cursor: pointer;
}

.control-select:focus {
    border-color: var(--accent);
}

.perf-indicator {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

/* ============ FOCUS MANAGEMENT ============ */

h1:focus-visible, h2:focus-visible, h3:focus-visible,
[tabindex="-1"]:focus-visible,
main:focus-visible, .page-hero:focus-visible, .hero:focus-visible,
#main-content:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}

h1:focus:not(:focus-visible), h2:focus:not(:focus-visible), h3:focus:not(:focus-visible),
[tabindex="-1"]:focus:not(:focus-visible),
main:focus:not(:focus-visible), .page-hero:focus:not(:focus-visible), .hero:focus:not(:focus-visible),
#main-content:focus:not(:focus-visible) {
    outline: none;
}

/* ============ BLAZOR OVERRIDES ============ */

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

#blazor-error-ui {
    background: rgba(20, 16, 30, 0.95);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    display: none;
    font-size: 0.8rem;
    text-align: center;
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.05);
}

#blazor-error-ui .reload {
    color: var(--accent);
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 1rem;
    font-size: 1rem;
}

/* ============ COOKIE CONSENT ============ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    padding: 1rem 2rem;
    background: rgba(16, 12, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(80, 70, 120, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html.cookie-show .cookie-consent {
    transform: translateY(0);
}

html.cookie-dismissed .cookie-consent {
    display: none !important;
}

.desk-shell .cookie-consent {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 4;
    flex-shrink: 0;
    transform: none;
    display: none;
}

html.cookie-show .desk-shell .cookie-consent {
    display: flex;
}

[data-theme="light"] .cookie-consent {
    background: rgba(255, 255, 255, 0.95);
    border-top-color: rgba(110, 100, 140, 0.25);
}

.cookie-consent p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
}

.cookie-consent a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-consent-btn {
    background: #5b21b6;
    color: #fff;
    border: none;
    min-height: 24px;
    min-width: 24px;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.cookie-consent-btn:hover {
    background: #6d28d9;
}

/* ============ SCROLL TO TOP ============ */

.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent-fill);
    color: #fff;
    border-color: var(--accent-fill);
}

[data-theme="light"] .scroll-top-btn {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.scroll-top-btn.desk-scroll-off,
.desk-shell ~ .scroll-top-btn {
    display: none !important;
}

html.cookie-show .scroll-top-btn.visible {
    bottom: 8.5rem;
}

.sorc-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(8, 6, 16, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.sorc-modal {
    width: min(720px, 100%);
    max-height: min(85vh, 900px);
    overflow: auto;
    padding: 1.5rem;
}

.sorc-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sorc-modal-head h2 { margin: 0; }

@media (max-width: 720px) {
    .sorc-modal-backdrop { padding: 0; align-items: stretch; }
    .sorc-modal { width: 100%; max-height: 100%; border-radius: 0; }
}

@media (max-width: 640px) {
    .cookie-consent {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .cookie-consent p { max-width: none; }

    html.cookie-show .scroll-top-btn.visible { bottom: 11rem; }
}

.skip-link {
    position: fixed;
    left: 0.75rem;
    top: 0;
    z-index: 10000;
    padding: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    background: #4c1d95;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    width: auto;
    height: auto;
    padding: 0.65rem 1rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    color: #fff;
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}


.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.25rem;
}

.error-request {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    word-break: break-word;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible,
.control-select:focus-visible,
.control-toggle:focus-visible,
.main-nav a:focus-visible,
.main-nav button:focus-visible,
.tree-search:focus-visible,
.composer textarea:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}

.main-nav a:focus-visible,
.main-nav button:focus-visible {
    outline-offset: -3px;
}

/* ===== public: round5 ===== */

.site-header:not(.desk) .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 1rem;
    border-radius: 999px;
    background: var(--accent-fill);
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    flex: none;
    box-shadow: 0 0 0 1px rgba(212, 168, 83, 0.7);
}

.site-header:not(.desk) .nav-cta:hover {
    color: #fff;
    background: #7c3aed;
}

[data-theme="light"] .site-header:not(.desk) .nav-cta:hover {
    background: #6d28d9;
    color: #fff;
}

.nav-cta-short { display: none; }

.site-header:not(.desk) .header-signin {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 0.85rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--nav-btn-border);
    background: var(--nav-btn-bg);
}

.site-header:not(.desk) .header-signin:hover,
.site-header:not(.desk) .header-signin.active {
    color: var(--accent);
    border-color: var(--accent);
}

.site-header:not(.desk) .main-nav .nav-signin-menu { display: none; }

.site-footer {
    padding: 1.15rem 0 0.95rem;
}

html.prism-has-bar .site-footer {
    padding-bottom: calc(0.95rem + var(--prism-page-clearance, 4.5rem));
}

html.prism-boot-cover {
    background: #0c0a14;
}

html[data-theme="light"].prism-boot-cover {
    background: #f2f1f5;
}

html.prism-boot-cover .site-wrapper,
html.prism-boot-cover #constellation-canvas,
html.prism-boot-cover .skip-link {
    visibility: hidden;
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1.5rem;
}

.footer-bar .footer-brand {
    flex: 1 1 16rem;
    gap: 0.15rem;
    min-width: 0;
}

.footer-bar .footer-brand .brand-text {
    font-size: 0.92rem;
    letter-spacing: 0.12em;
}

.footer-bar .footer-brand p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

.footer-inline,
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.85rem;
}

.footer-inline a,
.footer-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.1rem 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
}

.footer-inline a:hover,
.footer-legal a:hover {
    color: var(--accent);
    padding-left: 0;
}

.footer-pay {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 0.85rem;
    color: var(--text-muted);
}

.pay-marks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pay-marks li {
    display: flex;
    align-items: center;
    min-height: 24px;
}

.pay-mark {
    display: block;
    height: 22px;
    width: auto;
}

.pay-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.pay-processor {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-pay-note {
    margin: 0;
    max-width: 42rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

.footer-copy {
    margin: 0.7rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

.currency-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin: 0 0 1.25rem;
}

.currency-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.currency-select {
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.3;
    min-height: 44px;
    width: min(100%, 22rem);
    max-width: 100%;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.currency-select:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

[data-theme="dark"] .currency-select { color-scheme: dark; }
[data-theme="light"] .currency-select { color-scheme: light; }

.currency-note {
    flex: 1 1 16rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.currency-fx-note {
    flex: none;
    display: block;
    width: 100%;
    max-width: 46rem;
    margin: 1rem 0 0;
}

.stat-money {
    font-size: clamp(1.2rem, 3.4vw, 1.7rem);
}

.form-group select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group select:focus {
    border-color: var(--accent);
    outline: none;
}

[data-theme="dark"] .form-group select { color-scheme: dark; }
[data-theme="light"] .form-group select { color-scheme: light; }

.more-signin {
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
}

.more-signin summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.92rem;
}

.more-signin-note {
    margin: 0.75rem 0 0.55rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.more-signin-google {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.more-signin-google:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.wizard-google {
    margin: 0.25rem 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.wizard-google .more-signin-note { margin-bottom: 0; }

@media (max-width: 1040px) {
    .site-header:not(.desk) .header-signin { display: none; }
    .site-header:not(.desk) .main-nav .nav-signin-menu { display: inline-flex; }
}

@media (max-width: 720px) {
    .site-header:not(.desk) .nav-cta-full { display: none; }
    .site-header:not(.desk) .nav-cta-short { display: inline; }
    .site-header:not(.desk) .nav-cta {
        height: 32px;
        padding: 0 0.7rem;
        font-size: 0.8rem;
    }
    .site-header:not(.desk) .brand {
        font-size: 0.95rem;
        --brand-track: 0.05em;
        letter-spacing: var(--brand-track);
        gap: 0.35rem;
    }
    .site-header:not(.desk) .brand-svg {
        width: 28px;
        height: 28px;
    }
    .site-header:not(.desk) .container {
        gap: 0.35rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 400px) {
    .site-header:not(.desk) .container {
        gap: 0.2rem;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
    .site-header:not(.desk) .brand {
        font-size: 0.72rem;
        --brand-track: 0.02em;
        letter-spacing: var(--brand-track);
        gap: 0.22rem;
    }
    .site-header:not(.desk) .brand-svg {
        width: 22px;
        height: 22px;
    }
    .site-header:not(.desk) .header-tools { gap: 0.15rem; }
    .site-header:not(.desk) .nav-cta {
        height: 30px;
        padding: 0 0.4rem;
        font-size: 0.72rem;
    }
    .site-header:not(.desk) .theme-toggle,
    .site-header:not(.desk) .controls-btn,
    .site-header:not(.desk) .mobile-toggle {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }
}

@media (max-width: 720px) {
    .footer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }
    .footer-bar .footer-brand { flex-basis: auto; }
}

@media (max-width: 420px) {
    .site-footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.estimate-wizard .form-group > button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
}

.estimate-wizard .estimate-alert {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.estimate-wizard .estimate-check {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
}

.estimate-wizard .estimate-check input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    flex: 0 0 auto;
    padding: 0;
}

.estimate-wizard .estimate-check label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.estimate-wizard .wizard-progress {
    margin: 0 0 1.15rem;
}

.estimate-wizard .wizard-progress-count {
    margin: 0 0 0.45rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.estimate-wizard .wizard-steps {
    display: flex;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.estimate-wizard .wizard-steps li {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.32rem;
}

.estimate-wizard .wizard-steps li::before {
    content: "";
    display: block;
    height: 4px;
    border-radius: 999px;
    background: var(--border);
}

.estimate-wizard .wizard-steps li.is-done::before {
    background: var(--accent);
    opacity: 0.45;
}

.estimate-wizard .wizard-steps li.is-current::before {
    background: var(--accent);
    opacity: 1;
}

.estimate-wizard .wizard-step-name {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.estimate-wizard .wizard-steps li.is-current .wizard-step-name {
    color: var(--text-primary);
}

.estimate-wizard .wizard-account-note {
    margin: 0 0 0.85rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.estimate-wizard .wizard-wait {
    margin: 0;
    color: var(--text-muted);
}

.estimate-wizard .form-group select:disabled,
.estimate-wizard .form-group input:disabled {
    opacity: 1;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
    background: var(--bg-secondary);
    border-color: var(--border);
}

.sorc-modal .estimate-wizard .wizard-progress {
    margin-bottom: 0.75rem;
}

.estimate-wizard .wizard-stack {
    display: grid;
    align-items: start;
    width: 100%;
}

.estimate-wizard .wizard-stack > .wizard-pane {
    grid-area: 1 / 1;
    min-width: 0;
}

.estimate-wizard .wizard-pane:not(.is-active) {
    visibility: hidden;
    pointer-events: none;
}

/* The after-submit panes are taller than any question, so they do not size the stack;
   the active one fills the questions' height and scrolls. */
.estimate-wizard .wizard-pane.wizard-after:not(.is-active) {
    display: none;
}

.sorc-modal .estimate-wizard .wizard-stack {
    position: relative;
}

.sorc-modal .estimate-wizard .wizard-pane.wizard-after.is-active {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* The question row keeps one height. The footer is pinned under it, and only that
   row scrolls when the viewport is shorter than the row. */
.sorc-modal.sorc-modal-wide.glass-panel:has(.estimate-wizard) {
    display: flex;
    flex-direction: column;
}

.sorc-modal.sorc-modal-wide .sorc-modal-body:has(.estimate-wizard) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.sorc-modal .estimate-wizard {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
}

.sorc-modal.sorc-modal-wide .estimate-wizard .form-group {
    margin-bottom: 0.45rem;
}

.sorc-modal.sorc-modal-wide .estimate-wizard .form-group input,
.sorc-modal.sorc-modal-wide .estimate-wizard .form-group select {
    padding: 0.55rem 0.8rem;
}

.sorc-modal .estimate-wizard > .wizard-stack {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-top: 0.35rem;
    scroll-padding-bottom: 0.85rem;
}

.estimate-wizard input,
.estimate-wizard select,
.estimate-wizard textarea,
.estimate-wizard .validation-message {
    scroll-margin-top: 0.4rem;
    scroll-margin-bottom: 0.85rem;
}

.estimate-wizard > .wizard-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    flex: none;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
}

.estimate-wizard > .wizard-footer > .wizard-footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.estimate-wizard > .wizard-footer > .estimate-alert {
    margin: 0;
    padding: 0.55rem 0.75rem;
    scroll-margin: 0;
}

.sorc-modal .estimate-wizard > .wizard-footer {
    margin-top: 0;
    padding: 0.7rem 0.15rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    background: var(--desk-surface, var(--bg-card));
    border-top: 1px solid var(--desk-border, var(--border));
}

@media (max-width: 720px) {
    .sorc-modal .estimate-wizard > .wizard-footer {
        padding-bottom: calc(0.45rem + var(--prism-bar-h, 72px) + env(safe-area-inset-bottom, 0px));
    }

    .sorc-modal.site-search-dialog,
    .sorc-modal:not(.sorc-modal-wide) {
        padding-bottom: calc(1.1rem + var(--prism-bar-h, 72px) + env(safe-area-inset-bottom, 0px));
    }

    .contact-grid .contact-form-card {
        scroll-margin-bottom: calc(var(--prism-bar-h, 72px) + env(safe-area-inset-bottom, 0px));
    }
}

[data-theme="light"] .sorc-modal .estimate-wizard > .wizard-footer {
    background: var(--desk-surface-raised, var(--bg-card));
}

.estimate-wizard > .wizard-footer.is-idle {
    display: none;
}

.sorc-modal .estimate-wizard.is-ready > .wizard-footer.is-idle {
    display: flex;
    visibility: hidden;
    pointer-events: none;
}

.estimate-wizard > .wizard-footer > .wizard-footer-bar > .btn-primary {
    margin-left: auto;
}

.estimate-wizard .wizard-footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-left: auto;
}

.estimate-wizard > .wizard-footer .btn-primary,
.estimate-wizard > .wizard-footer .btn-secondary {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.6rem 1.1rem;
    line-height: 1.2;
}

.sorc-modal .estimate-wizard > .wizard-pane.wizard-after.is-active {
    z-index: 3;
    padding: 0.15rem 0.1rem 0.35rem;
    background: var(--desk-surface, var(--bg-card));
}

[data-theme="light"] .sorc-modal .estimate-wizard > .wizard-pane.wizard-after.is-active {
    background: var(--desk-surface-raised, var(--bg-card));
}

.estimate-wizard .stack-field {
    position: relative;
}

.estimate-wizard .stack-menu {
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    max-height: 12rem;
    overflow: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.estimate-wizard .stack-menu button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.4rem 0.75rem;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.estimate-wizard .stack-menu button[aria-selected="true"],
.estimate-wizard .stack-menu button:hover {
    background: color-mix(in srgb, var(--accent, #c4a15a) 22%, transparent);
}

[data-theme="light"] .estimate-wizard .stack-menu {
    background: var(--bg-card, #fff);
    box-shadow: 0 10px 24px rgba(40, 32, 16, 0.12);
}

.estimate-wizard .country-field {
    position: relative;
}

.estimate-wizard .country-field input {
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
}

.estimate-wizard .country-menu {
    position: absolute;
    z-index: 8;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    max-height: min(16rem, 42vh);
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.estimate-wizard .country-menu button {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.65rem 0.85rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.estimate-wizard .country-menu button[aria-selected="true"],
.estimate-wizard .country-menu button:hover {
    background: color-mix(in srgb, var(--accent, #c4a15a) 22%, transparent);
}

.estimate-wizard .country-empty {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

[data-theme="light"] .estimate-wizard .country-menu {
    background: var(--bg-card, #fff);
    box-shadow: 0 10px 24px rgba(40, 32, 16, 0.12);
}

.estimate-wizard .wizard-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin: 0.1rem 0 0;
}

.estimate-wizard .wizard-choice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.22rem;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0.5rem 0.7rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.35;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

.estimate-wizard .wizard-choice svg {
    width: 28px;
    height: 28px;
    display: block;
    flex: none;
}

.estimate-wizard .wizard-choice-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.estimate-wizard .wizard-choice-detail {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
}

.estimate-wizard .wizard-choice:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.estimate-wizard .wizard-choice[aria-checked="true"] {
    border-color: var(--accent);
    background: var(--accent-glow);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.estimate-wizard .wizard-choice:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}

@property --zorion-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.estimate-wizard {
    --zorion-teal: #5eead4;
}

[data-theme="light"] .estimate-wizard {
    --zorion-teal: #0f766e;
}

.estimate-wizard .wizard-choice[data-zorion-speaking] {
    z-index: 1;
    overflow: hidden;
}

.estimate-wizard .wizard-choice[data-zorion-speaking="true"] {
    transform: translateY(-2px);
    box-shadow:
        0 10px 24px rgba(76, 40, 140, 0.28),
        0 0 18px color-mix(in srgb, var(--gold) 55%, transparent);
    transition: transform 180ms ease, box-shadow 300ms ease;
}

.estimate-wizard .wizard-choice[aria-checked="true"][data-zorion-speaking="true"] {
    box-shadow:
        inset 0 0 0 1px var(--accent),
        0 10px 24px rgba(76, 40, 140, 0.28),
        0 0 18px color-mix(in srgb, var(--gold) 55%, transparent);
}

[data-theme="light"] .estimate-wizard .wizard-choice[data-zorion-speaking="true"] {
    box-shadow:
        0 8px 20px rgba(109, 40, 217, 0.16),
        0 0 16px color-mix(in srgb, var(--gold) 45%, transparent);
}

[data-theme="light"] .estimate-wizard .wizard-choice[aria-checked="true"][data-zorion-speaking="true"] {
    box-shadow:
        inset 0 0 0 1px var(--accent),
        0 8px 20px rgba(109, 40, 217, 0.16),
        0 0 16px color-mix(in srgb, var(--gold) 45%, transparent);
}

.estimate-wizard .wizard-choice[data-zorion-speaking="end"] {
    transform: none;
    box-shadow: none;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.estimate-wizard .wizard-choice[data-zorion-speaking="true"]::before,
.estimate-wizard .wizard-choice[data-zorion-speaking="end"]::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    pointer-events: none;
    background: linear-gradient(
        100deg,
        transparent,
        color-mix(in srgb, var(--gold) 50%, transparent),
        color-mix(in srgb, var(--zorion-teal) 42%, transparent),
        transparent
    );
    transform: translateX(-140%);
    opacity: 0;
}

.estimate-wizard .wizard-choice[data-zorion-speaking="true"]::before {
    opacity: 0.7;
    animation: zorion-aura 2.4s ease-in-out infinite;
    will-change: transform, opacity;
}

.estimate-wizard .wizard-choice[data-zorion-speaking="end"]::before {
    opacity: 0;
    animation: none;
    transition: opacity 300ms linear;
}

.estimate-wizard .wizard-choice[data-zorion-speaking="true"]::after,
.estimate-wizard .wizard-choice[data-zorion-speaking="end"]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    pointer-events: none;
    background: conic-gradient(
        from var(--zorion-angle, 0deg),
        var(--violet),
        var(--gold),
        var(--zorion-teal),
        var(--violet)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.estimate-wizard .wizard-choice[data-zorion-speaking="true"]::after {
    --zorion-angle: 0deg;
    animation: zorion-ring 2.8s linear infinite;
}

.estimate-wizard .wizard-choice[data-zorion-speaking="end"]::after {
    opacity: 0;
    animation: none;
    transition: opacity 300ms linear;
}

@keyframes zorion-ring {
    to {
        --zorion-angle: 360deg;
    }
}

@keyframes zorion-aura {
    0% {
        transform: translateX(-140%);
        opacity: 0;
    }

    18% {
        opacity: 0.75;
    }

    100% {
        transform: translateX(280%);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .estimate-wizard .wizard-choice[data-zorion-speaking="true"] {
        transform: none;
        transition: none;
    }

    .estimate-wizard .wizard-choice[data-zorion-speaking="true"]::before {
        animation: none;
        opacity: 0;
        transform: none;
    }

    .estimate-wizard .wizard-choice[data-zorion-speaking="true"]::after {
        animation: none;
    }

    .estimate-wizard .wizard-choice[data-zorion-speaking="end"],
    .estimate-wizard .wizard-choice[data-zorion-speaking="end"]::before,
    .estimate-wizard .wizard-choice[data-zorion-speaking="end"]::after {
        transition: none;
    }
}

@media (forced-colors: active) {
    .estimate-wizard .wizard-choice[data-zorion-speaking="true"],
    .estimate-wizard .wizard-choice[data-zorion-speaking="end"] {
        outline: 2px solid Highlight;
        outline-offset: 2px;
        box-shadow: none;
        transform: none;
        background: ButtonFace;
        forced-color-adjust: auto;
    }

    .estimate-wizard .wizard-choice[data-zorion-speaking]::before,
    .estimate-wizard .wizard-choice[data-zorion-speaking]::after {
        display: none;
        content: none;
        animation: none;
    }
}

@media (max-width: 640px) {
    .sorc-modal.sorc-modal-wide.glass-panel:has(.estimate-wizard) {
        height: 100%;
        max-height: 100%;
        max-height: 100dvh;
    }

    .estimate-wizard .wizard-choices {
        grid-template-columns: 1fr;
    }

    .estimate-wizard > .wizard-footer > .wizard-footer-bar,
    .estimate-wizard .wizard-footer-actions {
        flex-wrap: nowrap;
    }

    .estimate-wizard > .wizard-footer .btn-primary,
    .estimate-wizard > .wizard-footer .btn-secondary {
        padding: 0.55rem 0.45rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .estimate-wizard .wizard-footer-actions {
        flex: 1 1 auto;
        min-width: 0;
        margin-left: auto;
    }

    .estimate-wizard .wizard-footer-actions .btn-primary,
    .estimate-wizard .wizard-footer-actions .btn-secondary {
        flex: 1 1 auto;
        text-align: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }
}

.estimate-wizard .wizard-step-name {
    height: 1.2em;
}

@media (max-width: 720px) {
    .estimate-wizard .wizard-step-name {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .estimate-wizard .wizard-steps li {
        gap: 0;
    }
}

/* ===== end public: round5 ===== */

/* ===== scenarios and technologies ===== */

.scenario-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
}

.scenario-filters button {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    min-height: 24px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
}

.scenario-filters button:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.scenario-filters button.is-on,
.scenario-filters button.is-on:hover {
    background: var(--accent-fill);
    border-color: var(--accent-fill);
    color: #fff;
}

.scenario-filters button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.scenario-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.scenario-card h3 {
    margin-top: 0;
    font-size: 1.15rem;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.scenario-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.tech-catalog .tech-group {
    margin: 0 0 1.75rem;
}

.tech-catalog .tech-group h2 {
    margin-top: 0;
    margin-bottom: 0.65rem;
    font-size: 1.35rem;
}

.tech-names {
    margin: 0;
    padding-left: 1.2rem;
    columns: 2;
    column-gap: 2rem;
}

.tech-names li {
    break-inside: avoid;
    margin: 0.2rem 0;
    color: var(--text-secondary);
    overflow-wrap: break-word;
}

.sorc-modal .tech-catalog > p {
    margin-top: 0;
}

.sorc-modal .tech-catalog h2,
.sorc-modal .tech-catalog p,
.sorc-modal .tech-catalog li {
    color: var(--text-primary);
}

@media (max-width: 720px) {
    .tech-names { columns: 1; }
    .scenario-filters button { font-size: 0.8rem; }
}

/* ===== site search ===== */

.nav-search {
    gap: 0.35rem;
    flex: none;
}

.nav-search-icon {
    display: block;
    flex: none;
}

.nav-search-label {
    line-height: 1;
}

@media (max-width: 1200px) {
    .site-header:not(.desk) .main-nav:not(.open) .nav-search-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .site-header:not(.desk) .main-nav:not(.open) .nav-search {
        width: 36px;
        min-width: 36px;
        padding: 0;
    }
}

.site-search-backdrop {
    z-index: 240;
}

body:has(.site-search-backdrop) {
    overflow: hidden;
}

.sorc-modal.site-search-dialog {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(720px, 100%);
    height: min(85vh, 820px);
    max-height: min(85vh, 820px);
    overflow: hidden;
    padding: 1.25rem 1.35rem 1.1rem;
}

.site-search-dialog.glass-panel::after {
    content: none;
}

.site-search-dialog p {
    margin: 0;
    line-height: 1.45;
    letter-spacing: 0;
    font-weight: 400;
}

.site-search-close {
    padding: 0.4rem 0.85rem;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.2;
}

.site-search-field {
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
}

.site-search-field::placeholder {
    color: var(--text-muted);
}

.site-search-field:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
    border-color: var(--accent);
}

.site-search-hint,
.site-search-status {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.site-search-status {
    min-height: 1.45em;
}

.site-search-short {
    margin: 0.85rem 0.7rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.45;
}

.site-search-dialog > :not(.site-search-results) {
    flex: none;
}

.site-search-results {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.site-search-list {
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overscroll-behavior: contain;
}

.site-search-pending {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--bg-primary) 62%, transparent);
}

.site-search-spinner {
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid rgba(139, 92, 246, 0.28);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spinnerRotate 0.7s linear infinite;
}

.site-search-group {
    margin: 0.85rem 0 0.25rem;
    padding: 0 0.7rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.site-search-hit {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    margin: 0.12rem 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
}

.site-search-hit:hover,
.site-search-hit[aria-selected="true"] {
    background: var(--nav-btn-hover);
    color: var(--text-primary);
}

.site-search-hit-title {
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.site-search-hit-snippet {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.site-search-mark {
    background: rgba(212, 168, 83, 0.42);
    color: inherit;
    font-weight: 700;
    border-radius: 0.15em;
    padding: 0 0.08em;
}

[data-theme="light"] .site-search-mark {
    background: rgba(184, 146, 46, 0.38);
    color: #1a1408;
}

[data-theme="light"] .site-search-hit[aria-selected="true"],
[data-theme="light"] .site-search-hit:hover {
    background: rgba(124, 58, 237, 0.1);
}

.site-search-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 720px) {
    .sorc-modal.site-search-dialog {
        width: 100%;
        height: 100%;
        max-height: 100dvh;
        border-radius: 0;
    }

    .site-search-list {
        flex: 1 1 auto;
        max-height: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .nav-search,
    .nav-search:hover,
    .site-search-backdrop,
    .site-search-dialog,
    .site-search-hit,
    .site-search-field,
    .site-search-close {
        transition: none;
        animation: none;
        transform: none;
    }

    .site-search-spinner {
        animation: none !important;
    }

    mark.sorc-search-hit {
        animation: none;
        background-color: var(--sorc-hit-settle-bg);
        color: var(--sorc-hit-settle-fg);
    }
}

[data-theme="dark"] .sorc-modal.site-search-dialog {
    background: rgba(22, 18, 34, 0.97);
}

[data-theme="light"] .sorc-modal.site-search-dialog {
    background: rgba(255, 255, 255, 0.97);
}

/* Page hits. ::highlight does not accept transitions, so the gold/violet shift is two named highlights. */
:root {
    --sorc-hit-gold-bg: #e2c27a;
    --sorc-hit-gold-fg: #1a1408;
    --sorc-hit-violet-bg: #d4c4ff;
    --sorc-hit-violet-fg: #1b1030;
    --sorc-hit-settle-bg: #4a3814;
    --sorc-hit-settle-fg: #fff6df;
}

[data-theme="light"] {
    --sorc-hit-gold-bg: #e2c27a;
    --sorc-hit-gold-fg: #1a1408;
    --sorc-hit-violet-bg: #5b21b6;
    --sorc-hit-violet-fg: #f7f2ff;
    --sorc-hit-settle-bg: #f6e7c1;
    --sorc-hit-settle-fg: #1a1408;
}

::highlight(sorc-search-pulse-a) {
    background-color: var(--sorc-hit-gold-bg);
    color: var(--sorc-hit-gold-fg);
}

::highlight(sorc-search-pulse-b) {
    background-color: var(--sorc-hit-violet-bg);
    color: var(--sorc-hit-violet-fg);
}

::highlight(sorc-search-hit) {
    background-color: var(--sorc-hit-settle-bg);
    color: var(--sorc-hit-settle-fg);
}

mark.sorc-search-hit {
    background-color: var(--sorc-hit-settle-bg);
    color: var(--sorc-hit-settle-fg);
    border-radius: 0.16em;
    padding: 0 0.08em;
    box-decoration-break: clone;
    animation: sorc-hit-shift 2.5s ease-in-out 1;
}

@keyframes sorc-hit-shift {
    0%, 18% {
        background-color: var(--sorc-hit-gold-bg);
        color: var(--sorc-hit-gold-fg);
    }
    42%, 58% {
        background-color: var(--sorc-hit-violet-bg);
        color: var(--sorc-hit-violet-fg);
    }
    78% {
        background-color: var(--sorc-hit-gold-bg);
        color: var(--sorc-hit-gold-fg);
    }
    100% {
        background-color: var(--sorc-hit-settle-bg);
        color: var(--sorc-hit-settle-fg);
    }
}

@media (forced-colors: active) {
    ::highlight(sorc-search-hit),
    ::highlight(sorc-search-pulse-a),
    ::highlight(sorc-search-pulse-b),
    mark.sorc-search-hit {
        background-color: Highlight;
        color: HighlightText;
    }
}

/* ===== end site search ===== */

/* ===== design pass: one violet and gold system ===== */

.hero h1,
.page-hero h1 {
    font-size: var(--text-display);
    letter-spacing: -0.03em;
    padding-bottom: 0.7rem;
    background-image: linear-gradient(90deg, transparent, var(--mark-gold) 16%, var(--mark-violet) 50%, var(--mark-gold) 84%, transparent);
    background-repeat: no-repeat;
    background-size: 70% 2px;
    background-position: center bottom;
}

.hero h1:focus-visible,
.page-hero h1:focus-visible {
    outline: none;
    background-size: 92% 3px;
    filter: drop-shadow(0 10px 12px rgba(212, 168, 83, 0.28));
}

h2:focus-visible,
h3:focus-visible {
    outline: none;
    box-shadow: inset 0 -2px 0 var(--focus-ring);
}

.features::before,
.problem-section::before,
.content-section + .content-section::before,
.problem-section + .content-section::before,
.content-section + .cta-section::before,
.features + .content-section::before {
    content: "";
    display: block;
    width: min(220px, 52%);
    height: 18px;
    margin: 0 auto 0.35rem;
    background: url("/img/filigree.svg") center / contain no-repeat;
    pointer-events: none;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius-sm);
    line-height: 1.2;
    font-family: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(180deg, #7c3aed 0%, var(--accent-fill) 100%);
    color: #fff;
    border: 1px solid rgba(226, 194, 122, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
    background: #5b21b6;
    color: #fff;
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.32);
}

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

.btn-secondary:hover {
    background: var(--accent-glow);
    border-color: var(--mark-gold);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-ghost {
    min-height: 2.25rem;
    padding: 0.35rem 0.7rem;
    background: transparent;
    border: 0;
    color: var(--accent);
}

.btn-ghost:hover {
    color: var(--accent-secondary);
    background: transparent;
}

.site-header:not(.desk) .nav-cta {
    box-shadow: inset 0 -2px 0 var(--gold-deep);
}

.glass-panel,
.feature-card,
.stat-card,
.hero-content,
.page-hero .container,
.contact-info,
.contact-form-card,
.social-links-section,
.cta-section .container {
    border: 1px solid transparent;
    background:
        linear-gradient(165deg, rgba(var(--section-accent), 0.1), var(--glass-fill) 34%, rgba(8, 6, 14, 0.97)) padding-box,
        linear-gradient(135deg, rgba(226, 194, 122, 0.82), rgba(var(--section-accent), 0.55) 48%, rgba(255, 255, 255, 0.18)) border-box;
    box-shadow: var(--shadow-ring), var(--shadow-lift);
}

[data-theme="light"] .glass-panel,
[data-theme="light"] .feature-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .hero-content,
[data-theme="light"] .page-hero .container,
[data-theme="light"] .contact-info,
[data-theme="light"] .contact-form-card,
[data-theme="light"] .social-links-section,
[data-theme="light"] .cta-section .container {
    background:
        linear-gradient(165deg, rgba(var(--section-accent), 0.1), var(--glass-fill) 48%, rgba(255, 252, 248, 0.96)) padding-box,
        linear-gradient(135deg, rgba(122, 92, 16, 0.55), rgba(var(--section-accent), 0.4) 50%, rgba(255, 255, 255, 0.9)) border-box;
    box-shadow: 0 10px 28px rgba(48, 36, 16, 0.08), var(--card-shadow);
}

.feature-card:hover,
a.feature-card:hover {
    border-color: transparent;
    transform: translateY(-2px);
    background:
        linear-gradient(165deg, rgba(var(--section-accent), 0.28), var(--bg-card-hover) 46%) padding-box,
        linear-gradient(135deg, var(--mark-gold), rgba(var(--section-accent), 0.8)) border-box;
}

[data-theme="light"] .feature-card:hover,
[data-theme="light"] a.feature-card:hover {
    background:
        linear-gradient(165deg, rgba(var(--section-accent), 0.12), #fff 50%) padding-box,
        linear-gradient(135deg, var(--mark-gold), rgba(var(--section-accent), 0.65)) border-box;
}

.service-mark,
.feature-icon {
    width: 42px;
    height: 42px;
    margin: 0 0 0.85rem;
    display: grid;
    place-items: center;
    color: var(--mark-gold);
    background: rgba(212, 168, 83, 0.12);
    border: 1px solid rgba(212, 168, 83, 0.42);
    border-radius: 12px;
}

.feature-icon svg,
.service-mark svg {
    display: block;
}

[data-theme="light"] .service-mark,
[data-theme="light"] .feature-icon {
    background: rgba(122, 92, 16, 0.08);
    border-color: rgba(122, 92, 16, 0.34);
}

.products-grid > .glass-panel:has(> .service-mark),
.feature-card:has(> .feature-icon) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.8rem;
    row-gap: 0.7rem;
    align-items: start;
    container-type: inline-size;
}

.products-grid > .glass-panel:has(> .service-mark) > .service-mark,
.feature-card:has(> .feature-icon) > .feature-icon {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    align-self: center;
}

.products-grid > .glass-panel:has(> .service-mark) > h2,
.products-grid > .glass-panel:has(> .service-mark) > h3,
.feature-card:has(> .feature-icon) > h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin-top: 0;
    margin-bottom: 0;
}

.products-grid > .glass-panel:has(> .service-mark) > p,
.feature-card:has(> .feature-icon) > p {
    grid-column: 1 / -1;
    min-width: 0;
}

@container (max-width: 11rem) {
    .products-grid > .glass-panel:has(> .service-mark) > h2,
    .products-grid > .glass-panel:has(> .service-mark) > h3,
    .feature-card:has(> .feature-icon) > h3 {
        grid-column: 1;
        grid-row: 2;
    }
}

.stat-value {
    color: var(--mark-violet);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .stat-value {
        background-image: linear-gradient(100deg, var(--mark-violet), var(--mark-gold));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.money {
    color: var(--mark-gold);
    font-weight: 700;
}

.content-section > .container > h2,
.content-narrow > h2,
#scenario-results > h2 {
    padding-bottom: 0.35rem;
    background-image: linear-gradient(90deg, var(--mark-gold), transparent 46%);
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: left bottom;
}

.tech-group h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tech-group h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--mark-gold), transparent);
}

.scenario-card h3::before {
    content: "";
    display: inline-block;
    width: 0.95rem;
    height: 0.95rem;
    margin-right: 0.45rem;
    vertical-align: -0.12em;
    background-color: var(--mark-gold);
    -webkit-mask: url("/img/glyph-spark.svg") center / contain no-repeat;
    mask: url("/img/glyph-spark.svg") center / contain no-repeat;
}

.faq-list .glass-panel {
    padding-right: 4.2rem;
}

.faq-list .faq-mark {
    position: absolute;
    z-index: 2;
    top: 1.15rem;
    right: 1.15rem;
    width: 28px;
    height: 28px;
    background-color: var(--mark-gold);
    -webkit-mask: var(--faq-glyph) center / contain no-repeat;
    mask: var(--faq-glyph) center / contain no-repeat;
    pointer-events: none;
}

.mark-seal { --faq-glyph: url("/img/glyph-seal.svg"); }
.mark-ledger { --faq-glyph: url("/img/glyph-ledger.svg"); }
.mark-compass { --faq-glyph: url("/img/glyph-compass.svg"); }
.mark-lock { --faq-glyph: url("/img/glyph-lock.svg"); }
.mark-spark { --faq-glyph: url("/img/glyph-spark.svg"); }

.prose-stack .glass-panel h2,
.faq-list .glass-panel h2 {
    padding-bottom: 0.45rem;
    background-image: linear-gradient(90deg, var(--mark-gold), transparent 62%);
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: left bottom;
}

.content-narrow .market-list li {
    position: relative;
    padding-left: 1.35rem;
}

.content-narrow .market-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 0.42rem;
    height: 0.42rem;
    border: 1.5px solid var(--mark-gold);
    transform: rotate(45deg);
}

.form-group label {
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--field-bg);
    border-radius: var(--radius-sm);
    min-height: 2.75rem;
}

.form-group textarea {
    min-height: 8.5rem;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-color: var(--mark-gold);
}

.form-status.success {
    color: var(--success-ink);
    background: var(--success-bg);
    border: 1px solid var(--success-border);
}

.form-status.error,
.form-group .validation-message {
    color: var(--danger-ink);
}

.form-status.error {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
}

.form-status.sending {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(139, 92, 246, 0.32);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    outline-color: var(--danger-ink);
}

.team-skills span {
    border-radius: var(--radius-xs);
}

.scenario-filters button,
.status-pill {
    border-radius: var(--radius-pill);
}

@media (max-width: 1040px) {
    .site-header:not(.desk) .main-nav {
        background: color-mix(in srgb, var(--glass-fill) 94%, transparent);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .feature-card:hover,
    a.feature-card:hover,
    .main-nav a:hover,
    .main-nav button.nav-text:hover,
    .scenario-card:hover,
    a.desk-card:hover,
    .theme-toggle:hover {
        transform: none;
    }

    .hero h1:focus-visible,
    .page-hero h1:focus-visible {
        filter: none;
    }
}

select,
input[type="checkbox"],
input[type="radio"],
input[type="range"],
input[type="color"],
input[type="file"],
label:has(select, input[type="checkbox"], input[type="radio"], input[type="range"], input[type="color"], input[type="file"]),
summary,
button,
[role="button"] {
    cursor: pointer;
}

button:disabled,
select:disabled,
textarea:disabled,
input:disabled,
summary[aria-disabled="true"],
[role="button"][aria-disabled="true"],
label:has(:is(button, select, textarea, input):disabled) {
    cursor: not-allowed;
}

.control-row-stack {
    flex-wrap: wrap;
    align-items: center;
}

.control-note {
    flex: 1 0 100%;
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--text-muted);
}

/* Incoming tiles. The class is on before the first paint of a new page.
   Opacity only — transforms are applied per tile for the run itself. */
html.pt-arm #main-content :is(
    [data-tile],
    .glass-panel,
    .feature-card,
    .stat-card,
    .contact-info,
    .contact-form-card,
    .tech-group,
    .desk-card,
    .page-hero,
    .hero-content,
    .cta-section,
    .market-list,
    .split-text
) {
    opacity: 0;
}

html.pt-arm #main-content :is([role="dialog"], [aria-modal="true"]) :is(
    [data-tile],
    .glass-panel,
    .feature-card,
    .stat-card,
    .contact-info,
    .contact-form-card,
    .tech-group,
    .desk-card,
    .page-hero,
    .hero-content,
    .cta-section,
    .market-list,
    .split-text
) {
    opacity: 1;
}

html[data-pt="slide"] #main-content {
    overflow-x: clip;
}

html.pt-vt::view-transition-group(*),
html.pt-vt::view-transition-image-pair(*),
html.pt-vt::view-transition-old(*),
html.pt-vt::view-transition-new(*) {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
}

html.pt-vt::view-transition-old(root) {
    opacity: 0;
}

html.pt-vt::view-transition-new(root) {
    opacity: 1;
}

.auth-panel h2 {
    margin-top: 0;
}

.auth-note {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
}

.auth-steps {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.auth-steps li + li {
    margin-top: 0.35rem;
}

.auth-qr {
    display: flex;
    justify-content: center;
    margin: 0 0 1rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 12px;
    max-width: 100%;
}

.auth-qr svg {
    width: min(220px, 100%);
    height: auto;
    display: block;
}

.auth-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
    word-break: break-word;
    margin: 0 0 0.5rem;
}

.auth-codes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.4rem 0.75rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.auth-codes code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.auth-reset {
    margin-top: 0.75rem;
}

@media (max-width: 420px) {
    .auth-codes {
        grid-template-columns: 1fr 1fr;
    }
}

/* === wizard project step (G2) === */
.estimate-wizard .wizard-group-label {
    margin: 1.25rem 0 0.35rem;
    font-weight: 650;
}

.estimate-wizard [data-prism-pane="project"] .wizard-choices {
    margin-bottom: 0.25rem;
}

.estimate-wizard [data-prism-pane="project"] .estimate-check {
    margin-top: 0.35rem;
}
/* === end G2 === */

/* === home specials (G3) === */
.home-specials {
    padding-top: 0;
    padding-bottom: 2.5rem;
}

.home-specials h2 {
    margin-top: 0;
}

.home-specials .section-subtitle {
    margin-bottom: 1.25rem;
}

.home-specials .products-grid {
    gap: 1.25rem;
}

.home-specials .glass-panel {
    padding: 1.25rem 1.35rem;
    border-color: color-mix(in srgb, var(--accent-secondary) 55%, var(--border));
    animation: home-specials-in 0.55s ease both;
}

.home-specials .products-grid > .glass-panel:nth-child(2) {
    animation-delay: 0.08s;
}

.home-specials h3 {
    line-height: 1.3;
    overflow-wrap: break-word;
}

.home-specials-action {
    margin-bottom: 0;
}

.home-specials .btn-primary {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    overflow-wrap: break-word;
}

@keyframes home-specials-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 400px) {
    .home-specials .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-specials .glass-panel {
        padding: 1.1rem 1rem;
    }

    .home-specials .btn-primary {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-specials .glass-panel {
        animation: none;
    }
}
/* === end G3 === */

/* === wizard tile entrance (G1) === */
@keyframes sorc-wizard-tile-in {
    from {
        opacity: 0;
        translate: 0 12px;
        scale: 0.96;
        rotate: x 7deg;
    }

    to {
        opacity: 1;
        translate: 0 0;
        scale: 1;
        rotate: none;
    }
}

.estimate-wizard [data-prism-pane].is-active .wizard-choices,
.estimate-wizard .wizard-footer-actions:has([data-prism-choice]) {
    perspective: 900px;
}

.estimate-wizard [data-prism-pane].is-active [data-prism-choice],
.estimate-wizard .wizard-footer [data-prism-choice] {
    transform-origin: 50% 100%;
    animation-name: sorc-wizard-tile-in;
    animation-duration: 260ms;
    animation-timing-function: cubic-bezier(0.16, 0.84, 0.24, 1);
    animation-fill-mode: both;
    animation-delay: 0ms;
}

.estimate-wizard [data-prism-pane].is-active [data-prism-choice]:nth-child(2),
.estimate-wizard .wizard-footer [data-prism-choice]:nth-child(2) {
    animation-delay: 70ms;
}

.estimate-wizard [data-prism-pane].is-active [data-prism-choice]:nth-child(3),
.estimate-wizard .wizard-footer [data-prism-choice]:nth-child(3) {
    animation-delay: 140ms;
}

.estimate-wizard [data-prism-pane].is-active [data-prism-choice]:nth-child(4),
.estimate-wizard .wizard-footer [data-prism-choice]:nth-child(4) {
    animation-delay: 210ms;
}

.estimate-wizard [data-prism-pane].is-active [data-prism-choice]:nth-child(5),
.estimate-wizard .wizard-footer [data-prism-choice]:nth-child(5) {
    animation-delay: 280ms;
}

.estimate-wizard [data-prism-pane].is-active [data-prism-choice]:nth-child(6),
.estimate-wizard .wizard-footer [data-prism-choice]:nth-child(6) {
    animation-delay: 350ms;
}

.estimate-wizard [data-prism-pane].is-active [data-prism-choice]:nth-child(n + 7),
.estimate-wizard .wizard-footer [data-prism-choice]:nth-child(n + 7) {
    animation-delay: 420ms;
}

html[data-transition="none"] .estimate-wizard [data-prism-pane].is-active [data-prism-choice],
html[data-transition="none"] .estimate-wizard .wizard-footer [data-prism-choice] {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .estimate-wizard [data-prism-pane].is-active [data-prism-choice],
    .estimate-wizard .wizard-footer [data-prism-choice] {
        animation: none;
        opacity: 1;
        translate: none;
        scale: none;
        rotate: none;
    }
}
/* === end G1 === */

/* === contact challenge (G4) === */
.contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.contact-check-slot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    flex: 1 1 12rem;
    min-height: 2.8em;
}

.contact-check {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.contact-check-retry {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: var(--accent);
    font: inherit;
    font-size: 0.85rem;
    line-height: 1.45;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.contact-check-retry:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 860px) {
    .contact-check-slot {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-form-card .sending-spinner {
        animation: none;
    }
}
/* === end G4 === */
