/* Self-hosted fonts (Outfit + Inter) — no external Google Fonts request. */
@font-face{font-family:'Inter';font-style:normal;font-weight:300;font-display:swap;src:url("assets/fonts/inter-300.woff2") format("woff2");}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/inter-400.woff2") format("woff2");}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/inter-600.woff2") format("woff2");}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/inter-700.woff2") format("woff2");}
@font-face{font-family:'Outfit';font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/outfit-500.woff2") format("woff2");}
@font-face{font-family:'Outfit';font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/outfit-700.woff2") format("woff2");}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), #f08a4b);
    box-shadow: 0 0 10px var(--primary-glow);
    z-index: 9999;
    transition: width 0.1s ease-out;
    pointer-events: none;
}

/* CSS Variables & Reset */
:root {
    --bg-dark: #1c1814;
    --text-main: #e8e0d5;
    --text-muted: #9a8f84;
    /* Brand orange, nudged slightly darker so white button text clears WCAG AA
       (white on the old #c4622d was ~4.1:1; on #b85a28 it's ~4.6:1). Orange
       *text on dark* uses the lighter --warm instead. */
    --primary: #b85a28;
    --primary-glow: rgba(196, 98, 45, 0.22);
    --secondary: #c4622d;
    --accent: #c4622d;
    /* Lighter orange used for small text accents so they clear WCAG AA (#c4622d
       was ~4.3:1 on the dark bg, just under 4.5). Buttons/brand keep --primary. */
    --warm: #d8763f;
    --warm-muted: rgba(196, 98, 45, 0.12);
    --warm-border: rgba(196, 98, 45, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.09);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-bg-hover: rgba(255, 255, 255, 0.07);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Fraunces', serif;
}

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

html {
    scroll-behavior: smooth;
    /* Offset so fixed-header doesn't cover anchor targets */
    scroll-padding-top: 80px;
    /* Always reserve space for vertical scrollbar so layout doesn't shift
       when content height crosses the viewport threshold. */
    scrollbar-gutter: stable;
}

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

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

/* Subtle noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.highlight {
    color: var(--text-main);
    position: relative;
    display: inline;
    white-space: nowrap;
    -webkit-text-fill-color: var(--text-main);
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 100%;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg width='200' height='30' viewBox='0 0 200 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='r' x='-10%25' y='-20%25' width='120%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='5'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='5.5'/%3E%3C/filter%3E%3Cpath d='M2 15 C 28 5 58 25 92 15 C 126 5 162 25 198 15' stroke='%23c47a3c' stroke-width='8' stroke-linecap='round' fill='none' filter='url(%23r)' opacity='0.92'/%3E%3C/svg%3E") repeat-x;
    background-size: 200px 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(196, 98, 45, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #d4723d;
    box-shadow: 0 4px 12px rgba(196, 98, 45, 0.35);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-sm:hover {
    background: var(--glass-bg);
    border-color: var(--primary);
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
}

.rounded-glass {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--glass-border);
}

/* Header — scoped to #navbar (the marketing-site nav) so this fixed
   positioning does not leak onto other semantic <header> elements that share
   this stylesheet, e.g. the admin panel's conversation header. */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(28, 24, 20, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.brand-ftw {
    color: var(--text-main);
}

.brand-soft {
    color: var(--primary);
}

nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--text-main);
}

/* Scroll-spy active state — underlines the link for the section in view.
   Skips anchor buttons (`.btn-sm`) so the Contact CTA keeps its pill style. */
nav a.is-active:not(.btn-sm) {
    color: var(--text-main);
}

nav a.is-active:not(.btn-sm)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--warm);
    border-radius: 2px;
}

/* Background canvas animation */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Hero Section - Split Layout */
#hero {
    position: relative;
    /* 85vh (not 100vh) so the stats strip peeks above the fold as a "more below"
       cue and the hero doesn't feel sparse on tall screens. min-height keeps the
       content from cramping on short laptops. */
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* justify-content: center; removed to allow container to dictate alignment */
    text-align: left;
    overflow: hidden;
    padding-top: 80px;
    /* Clears the fixed header so the eyebrow isn't hidden behind it */
}

/* O&G hero carries the inline well-lookup band: let it grow with the extra content
   (no fixed 85vh crop) and stop clipping so the autocomplete dropdown isn't cut off.
   Scoped to .hero-lookup so the shared hero on other pages is untouched. min-height
   (600px desktop / 100vh mobile) is inherited from the base + mobile #hero rules. */
#hero.hero-lookup { height: auto; overflow: visible; }

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.025) 1px, transparent 0) 0 0 / 32px 32px,
        radial-gradient(ellipse at 70% 50%, rgba(196, 98, 45, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 25% 75%, rgba(196, 98, 45, 0.04) 0%, transparent 50%);
}

/* Bottom fade to background */
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
}

.hero-content {
    animation: fadeIn 1s ease-out;
    max-width: 1040px;
    /* Wide enough for the H1 second line to stay on a single row */
    margin-right: auto;
    /* Pushes content to the left */
    width: 100%;
    position: relative;
    /* Ensure z-index works above bg */
    z-index: 1;
}

.eyebrow {
    color: var(--warm);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    display: inline-block;
    background: var(--warm-muted);
    padding: 0.4rem 0.9rem;
    border-radius: 3px;
    border: 1px solid var(--warm-border);
    transform: rotate(-0.5deg);
}

#hero h1 {
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-line-1 {
    display: block;
    font-size: 2.35rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: -0.5px;
    margin-bottom: 0.6rem;
}

.hero-line-2 {
    display: block;
    font-size: clamp(2.5rem, 5.2vw, 4.25rem);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -1.5px;
    /* no nowrap — long headlines overflowed the viewport at ~641-900px */
}

#hero h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 980px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-direction: row;
    /* Changed to row for typical SaaS layout */
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-phone,
.hero-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--warm);
    text-decoration: none;
    white-space: nowrap;
}

.hero-text {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.hero-phone:hover,
.hero-text:hover {
    color: var(--text-main);
}

.guarantee {
    display: block;
    margin-top: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    opacity: 0.85;
    line-height: 1.5;
    max-width: 640px;
}

/* Identity Section */
#identity {
    position: relative;
    padding: 6rem 0;
    background: #201d18;
    z-index: 1;
}

.identity-intro-wrapper {
    display: block;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.identity-intro-text h3 {
    font-size: 2.3rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.intro-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Feature Grid — four capability pillars, 2x2 desktop, 1 column mobile */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--warm);
    border-radius: 2px 12px 12px 2px;
    padding: 1.85rem 1.85rem 1.7rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    background: var(--card-bg-hover);
    border-left-color: var(--accent);
}

.feature-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

.feature-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.feature-card-header h4 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-main);
    line-height: 1.25;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.feature-list li {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.55;
    position: relative;
    padding-left: 1.25rem;
}

.feature-list li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.feature-list strong {
    color: var(--text-main);
}

/* Mobile: 1 column */
@media (max-width: 720px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.25rem;
    }
}

.identity-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.identity-footer p {
    font-size: 1.35rem;
    font-weight: 400;
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Technical signal pills — horizontal capability tags under the feature grid */
.tech-pills-row {
    list-style: none;
    padding: 0;
    margin: 3rem auto 3.5rem;
    max-width: 960px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 0.75rem;
}

.tech-pills-row li {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--warm);
    background: var(--warm-muted);
    border: 1px solid var(--warm-border);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* Build Protocol — condensed 3-step engagement model */
.build-protocol {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2.5rem 2rem 2.25rem;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: var(--card-bg);
}

.build-protocol-header {
    text-align: center;
    margin-bottom: 2rem;
}

.build-protocol-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.build-protocol-header p {
    color: var(--warm);
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
}

.build-protocol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.build-step {
    padding: 1.25rem 0.25rem 0;
    border-top: 1px solid var(--warm-border);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.build-step-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.build-step-num {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--warm);
    letter-spacing: 0.04em;
}

.build-step-duration {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm);
    background: var(--warm-muted);
    border: 1px solid var(--warm-border);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.build-step h4 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.25;
}

.build-step p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 860px) {
    .build-protocol-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .build-protocol {
        padding: 2rem 1.5rem 1.75rem;
    }
}

/* Build Protocol promises — standalone row, directly under the protocol card */
.build-promises {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1040px;
    margin: 1.75rem auto 0;
    padding: 0 2rem;
}

.build-promise h5 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.build-promise p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .build-promises {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* AI Feasibility Audit — fixed-fee entry offer */
#audit {
    padding: 5rem 0;
}

.audit-offer {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2.75rem 2rem 2.5rem;
    border: 1px solid var(--warm-border);
    border-radius: 14px;
    background: var(--card-bg);
    text-align: center;
}

.audit-kicker {
    color: var(--warm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.audit-offer h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.audit-price {
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.audit-price strong {
    color: var(--warm);
    font-size: 1.35rem;
    font-weight: 700;
}

.audit-lead {
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 1.9rem;
    line-height: 1.65;
    font-size: 1.05rem;
}

.audit-fit {
    color: var(--text-muted);
    max-width: 760px;
    margin: -0.9rem auto 1.9rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.audit-fit strong {
    color: var(--warm);
}

.audit-deliverables {
    color: var(--text-muted);
    max-width: 820px;
    margin: 0 auto 1.9rem;
    line-height: 1.65;
    font-size: 0.95rem;
}

.audit-deliverables strong {
    color: var(--text-main);
}

.audit-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
    margin-bottom: 2.25rem;
}

.audit-guarantee {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
}

.audit-guarantee strong {
    color: var(--text-main);
}

@media (max-width: 860px) {
    .audit-points {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .audit-offer {
        padding: 2.25rem 1.5rem 2rem;
    }
}

/* Pull Quote Strip */
.pull-quote-strip {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.pull-quote-strip blockquote {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 700px;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--warm);
}

/* Contact / Footer */
#contact {
    padding: 4rem 0;
    text-align: left;
    /* Changed from center to left for the grid */
}

.contact-wrapper {
    padding: 2.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-subtext {
    font-size: 0.95rem !important;
    opacity: 0.8;
}

.contact-address {
    font-style: normal;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}



.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.contact-chat-note {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.js-open-chat {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.js-open-chat:hover {
    text-decoration: underline;
}

footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--text-main);
    border-bottom-color: var(--warm-border);
}

.form-privacy-note {
    margin-top: 0.85rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-privacy-note a {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: var(--warm-border);
}

.form-privacy-note a:hover {
    color: var(--text-main);
}

/* Legal pages (privacy, terms) */
.legal-page {
    padding: 8rem 0 5rem;
    min-height: 70vh;
}

.legal-container {
    max-width: 760px;
}

.legal-page h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.legal-page h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.legal-page p,
.legal-page ul {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.legal-page ul {
    padding-left: 1.25rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

.legal-page a {
    color: var(--warm);
    text-decoration: none;
    border-bottom: 1px solid var(--warm-border);
    transition: border-color 0.2s ease;
}

.legal-page a:hover {
    border-bottom-color: var(--primary);
}

.legal-page code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
    background: var(--warm-muted);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered card entrances */
.feature-card:nth-child(1) { transition-delay: 0ms; }
.feature-card:nth-child(2) { transition-delay: 100ms; }
.feature-card:nth-child(3) { transition-delay: 200ms; }
.feature-card:nth-child(4) { transition-delay: 300ms; }

.build-step:nth-child(1) { transition-delay: 0ms; }
.build-step:nth-child(2) { transition-delay: 120ms; }
.build-step:nth-child(3) { transition-delay: 240ms; }

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Select: force visible text + dark native dropdown.
   Without color-scheme:dark the browser renders the closed value and
   option list in OS default (light) which looks washed out on our dark UI. */
.form-group select {
    color-scheme: dark;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.6rem;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23e8e0d5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

/* Keep the placeholder option at full brightness — browsers dim :disabled
   options by default even when they're the currently displayed value. */
.form-group select:required:invalid {
    color: var(--text-main);
    opacity: 1;
}

.form-group select option {
    background: #2a241f;
    color: var(--text-main);
}

.form-group select option[disabled] {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.form-group textarea {
    resize: vertical;
}

/* Invisible Turnstile container — collapses to zero height unless CF
   renders a challenge overlay (iframe brings its own chrome when it does). */
.fit-call-turnstile {
    min-height: 0;
}

.fit-call-turnstile:empty {
    display: none;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Modal */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #1c1814;
    /* Fallback for glass */
    background: rgba(28, 24, 20, 0.97);
    border: 1px solid var(--glass-border);
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s ease-out;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--text-main);
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 900px) {

    /* Changed breakpoint for contact grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    #contact {
        text-align: center;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .identity-grid,
    .identity-intro-wrapper {
        grid-template-columns: 1fr;
    }

    nav ul {
        gap: 1.25rem;
        font-size: 0.9rem;
    }
}

/* Mobile Optimizations (Small Phones & Large Phones) */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    /* Header */
    #navbar {
        /* Ensure text is readable on scroll */
        background: rgba(28, 24, 20, 0.97);
        padding: 0.5rem 0;
    }

    .nav-container {
        align-items: center;
        padding: 0.5rem 0;
    }

    /* Compact mobile header: brand left, Contact button right. Secondary text
       links are dropped on phones (single-scroll page; sections are reachable by
       scrolling), keeping the fixed header a slim single row, not a tall stack. */
    nav ul {
        flex-direction: row;
        gap: 0;
        width: auto;
        padding: 0;
    }

    nav ul li:not(:last-child) {
        display: none;
    }

    /* Hero */
    #hero {
        text-align: center;
        padding-top: 60px;
        /* Space for header */
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-content {
        margin-right: 0;
    }

    .hero-line-1 {
        font-size: 1.65rem;
    }

    .hero-line-2 {
        font-size: 2.3rem;
        line-height: 1.15;
        white-space: normal;
    }

    #hero h2 {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-primary {
        width: 100%;
        display: block;
    }

    .guarantee {
        display: block;
        text-align: center;
        margin-top: 0.5rem;
    }

    /* Sections */
    section {
        padding: 3rem 0 !important;
    }

    .identity-intro-text h3,
    .contact-info h3,
    .build-protocol-header h3 {
        font-size: 2rem !important;
    }


    /* Pull Quote */
    .pull-quote-strip blockquote {
        font-size: 1.3rem;
    }

    /* Contact */
    .contact-wrapper {
        padding: 2rem 1rem;
    }

    .contact-info h3 {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Stats Strip — track record at a glance, sits between hero and identity
   ========================================================================== */
#stats {
    padding: 2.5rem 0 1.5rem;
    position: relative;
    z-index: 2;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stats-strip li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 0 0.5rem;
    border-right: 1px solid var(--glass-border);
}

.stats-strip li:last-child {
    border-right: none;
}

.stat-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.stat-num sup {
    font-size: 0.55em;
    top: -0.6em;
    margin-left: 0.05em;
}

.stat-num-text {
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.35;
    max-width: 18ch;
}

@media (max-width: 860px) {
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 0.75rem;
        padding: 1.5rem 1rem;
    }
    .stats-strip li {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 1.25rem;
    }
    .stats-strip li:nth-child(2n) {
        border-right: none;
    }
    .stats-strip li:nth-last-child(-n+2) {
        border-bottom: none;
        padding-bottom: 0;
    }
    .stat-num {
        font-size: 2rem;
    }
    .stat-num-text {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   Proof Section — three industry tiles + technique marquee
   ========================================================================== */
#proof {
    padding: 4rem 0 3.5rem;
    position: relative;
}

.proof-header {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.proof-header h3 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

/* Proof card — single cohesive container holding tabs + active panel */
.proof-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 3rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Tab strip — sits at top of card, separated by bottom border */
.proof-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid var(--glass-border);
}

.proof-tab {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    padding: 1rem 1.4rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.proof-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.proof-tab.is-active {
    color: var(--text-main);
    background: var(--warm-muted);
    border-bottom-color: var(--primary);
}

.proof-tab:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.proof-tile {
    padding: 2.25rem 2.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 2.25rem;
    background: transparent;
    border: none;
    border-radius: 0;
}

.proof-tile[hidden] {
    display: none;
}

.proof-tile-text {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.proof-tile-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding-left: 2.25rem;
    border-left: 1px solid var(--glass-border);
}

@media (max-width: 860px) {
    .proof-tile {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.75rem 1.5rem;
    }
    .proof-tile-aside {
        padding-left: 0;
        border-left: none;
        padding-top: 1.5rem;
        border-top: 1px solid var(--glass-border);
    }
}

.proof-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm);
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--warm-border);
    background: var(--warm-muted);
    border-radius: 999px;
    align-self: flex-start;
}

.proof-tile h4 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0;
}

.proof-tile p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-main);
    margin: 0;
}

.proof-tile p strong {
    color: var(--text-main);
    font-weight: 700;
}

/* Mini workflow diagram inside each tile — non-interactive flow indicator */
.workflow-diagram {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 0.85rem;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    margin-top: 0.25rem;
}

.wf-node {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0.45rem 0.6rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    line-height: 1.25;
}

.wf-arrow {
    color: var(--text-muted);
    opacity: 0.55;
    font-weight: 400;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1;
    transform: rotate(90deg);
    align-self: center;
}

.proof-bullets {
    margin: 0.25rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.proof-bullets li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.proof-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

@media (max-width: 720px) {
    .proof-tabs {
        gap: 0.4rem;
    }
    .proof-tab {
        font-size: 0.78rem;
        padding: 0.5rem 0.9rem;
    }
    .proof-tile {
        padding: 1.5rem 1.4rem;
    }
}

/* Stack caption + row — "we work in your stack" (cloud / models) */
.stack-caption {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 620px;
    margin: 0.5rem auto 1.5rem;
    text-align: center;
}

.stack-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.5rem;
    padding: 0.5rem 0 0.5rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.stack-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.stack-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--warm);
}

.stack-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.stack-pills li {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    padding: 0.3rem 0.65rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.stack-pills li:hover {
    color: var(--text-main);
    border-color: var(--warm-border);
}

@media (max-width: 900px) {
    .stack-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .stack-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .proof-header h3 {
        font-size: 1.65rem;
    }
    .proof-tile {
        padding: 1.25rem;
    }
    .proof-tile h4 {
        font-size: 1.1rem;
    }
}

/* ─── Team / "Who's Behind the Lab" ──────────────────────────── */
#team {
    padding: 6rem 0;
    background: #201d18;
    position: relative;
    z-index: 1;
}

.team-header {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.team-header h3 {
    font-size: 2.25rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.team-header .intro-lead {
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 880px;
    margin: 0 auto;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.75rem 2rem;
    border-radius: 14px;
}

/* Works as a styled initials placeholder (div) or a real photo (img). */
.team-photo {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 2px solid var(--warm-border);
    background: linear-gradient(145deg, #2a2620, #1c1814);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-initials {
    font-family: var(--font-accent);
    font-size: 3rem;
    color: var(--primary);
    letter-spacing: 0.04em;
}

.team-name {
    font-size: 1.4rem;
    color: var(--text-main);
    margin: 0 0 0.3rem;
}

.team-role {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin: 0 0 1.1rem;
}

.team-bio {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 1.4rem;
    max-width: 34ch;
}

.team-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    padding: 0.45rem 0.95rem;
    border-radius: 6px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.team-linkedin svg {
    width: 16px;
    height: 16px;
}

.team-linkedin:hover {
    color: var(--primary);
    border-color: var(--primary);
}

@media (max-width: 720px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 420px;
    }
}

/* ─── Contact — click-to-call ────────────────────────────────── */
.contact-phone {
    margin: 1.75rem 0 0;
}

.contact-phone-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.45rem;
}

.contact-phone-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.6rem;
}

.contact-phone-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-phone-link:hover {
    text-decoration: underline;
}

.footer-tel {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.footer-tel:hover {
    color: var(--primary);
}

/* ── Well-lookup tool (.whc- classes, #well-tool) — shared by well-health-check and the
   ai-oil-and-gas hero band. Scoped to those selectors so it has no effect on pages without
   the tool markup. This is the single source of truth for the tool's styles.
   NOTE: keep "* /" apart in any comment here — a literal star-slash closes the comment early
   and silently drops the next rule (this exact bug killed #well-tool's z-index once). ── */
#well-tool { position: relative; z-index: 10; }
#well-tool .whc-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
#well-tool .whc-search { position: relative; flex: 1; min-width: 240px; }
/* The lead-form name/email (#whc-lead) share the lookup input's style for consistency,
   even though that form sits outside #well-tool on the /ai-oil-and-gas hero band. */
#well-tool select, #well-tool input, #whc-lead .whc-row input, #whc-watch-form .whc-row input {
    width: 100%; box-sizing: border-box; padding: 0.8rem 0.9rem; font: inherit;
    color: var(--text-main); background: var(--card-bg); border: 1px solid var(--glass-border);
    border-radius: 10px;
}
#well-tool select { flex: 0 0 150px; }
#well-tool select option { background: #241d17; color: var(--text-main); }
#well-tool input::placeholder, #whc-lead .whc-row input::placeholder, #whc-watch-form .whc-row input::placeholder { color: var(--text-muted); }
#well-tool input:focus, #well-tool select:focus, #whc-lead .whc-row input:focus, #whc-watch-form .whc-row input:focus { outline: none; border-color: var(--primary); }
.whc-suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
    background: #241d17; border: 1px solid var(--glass-border); border-radius: 10px;
    max-height: 320px; overflow: auto; display: none;
}
.whc-suggest-item {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    min-height: 44px; padding: 0.7rem 0.9rem; cursor: pointer;
    border-bottom: 1px solid var(--glass-border); font-size: 0.95rem;
    -webkit-tap-highlight-color: transparent; transition: background 0.08s ease;
}
.whc-suggest-item > span { flex: 1; min-width: 0; }
.whc-suggest-item::after { content: '\203A'; flex: 0 0 auto; color: var(--text-muted); font-size: 1.3rem; line-height: 1; }
.whc-suggest-item:last-child { border-bottom: 0; }
.whc-suggest-item:hover { background: var(--card-bg-hover); }
.whc-suggest-item:active { background: var(--primary); color: #fff; }
.whc-suggest-item:active::after { color: #fff; }
.whc-suggest-hint { padding: 0.6rem 0.9rem; font-size: 0.85rem; color: var(--text-muted); background: var(--card-bg); border-bottom: 1px solid var(--glass-border); }
.whc-hint { color: var(--text-muted); font-size: 0.9rem; margin: 0.55rem 0 0; }
.whc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.5rem 0; }
.whc-card { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem; text-align: center; }
.whc-card .whc-val { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--warm); }
.whc-card .whc-lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-top: 0.25rem; }
#whc-chart { color: var(--warm); display: block; margin-top: 0.4rem; }
.whc-note { background: var(--warm-muted); border-left: 3px solid var(--warm); border-radius: 6px; padding: 0.6rem 0.9rem; font-size: 0.9rem; margin: 1rem 0; }
.whc-explain dt { font-family: var(--font-heading); font-weight: 600; margin-top: 0.7rem; color: var(--text-main); }
.whc-explain dd { margin: 0.15rem 0 0; color: var(--text-muted); }
.whc-cta { border: 1px solid var(--warm-border); background: var(--card-bg); border-radius: 12px; padding: 1.25rem; margin-top: 1.5rem; }
.whc-muted { color: var(--text-muted); font-size: 0.9rem; }
/* Lead-form layout only — inputs stack full-width (vs cramped side-by-side); their
   visual style comes from the shared lookup-input rule above, for consistency. */
#whc-lead { max-width: 460px; }
#whc-lead .whc-row { flex-direction: column; gap: 0.6rem; }
#whc-lead .btn-primary { width: 100%; margin-top: 0.2rem; }
#whc-turnstile { margin: 0.6rem 0; }
/* Watch form — one email field + button on a line; both blocks sit outside #well-tool
   on /ai-oil-and-gas, so these rules can't rely on that ancestor (same as #whc-lead). */
#whc-watch-form { max-width: 460px; }
#whc-watch-form .whc-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
#whc-watch-form .whc-row input[type="email"] { flex: 1; min-width: 200px; width: auto; }
#whc-watch-form .btn-primary { flex: 0 0 auto; }
.whc-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
/* hero band wrapper — the lookup spans the full hero-content width (matches the headline) */
.hero-well-tool { margin: 1.5rem 0 0.5rem; }
@media (max-width: 560px) { .whc-cards { grid-template-columns: repeat(2, 1fr); } #well-tool select { flex-basis: 100%; } }

/* ─── Programmatic operator pages (/operators/*) — generated by gen-operator-pages.mjs ─── */
.op-page { max-width: 900px; padding-top: 6.5rem; padding-bottom: 4rem; }
.op-crumbs { font-size: 0.85rem; color: var(--warm); margin-bottom: 1.25rem; opacity: 0.9; }
.op-crumbs a { color: var(--warm); }
.op-crumbs span { opacity: 0.7; }
.op-hero { margin-bottom: 1.75rem; }
.op-hero h1 { margin: 0.3rem 0 0.75rem; line-height: 1.15; }
.op-sub { color: #d9cfc6; max-width: 70ch; line-height: 1.6; }
.op-muted { color: #b7aaa0; font-size: 0.9rem; }
.op-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.75rem 0; }
.op-stat { background: var(--warm-muted); border: 1px solid var(--warm-border); border-radius: 12px; padding: 1rem; text-align: center; }
.op-stat-v { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.1; }
.op-stat-l { font-size: 0.78rem; color: var(--warm); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.03em; }
.op-chart-wrap { margin: 1.5rem 0; }
.op-chart-label { font-size: 0.85rem; color: var(--warm); margin-bottom: 0.4rem; }
.op-chart { display: block; background: rgba(255,255,255,0.02); border: 1px solid var(--warm-border); border-radius: 10px; }
.op-wells, .op-siblings, .op-method, .op-directory { margin: 2rem 0; }
.op-wells h2, .op-siblings h2, .op-cta h2 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.op-table-wrap { overflow-x: auto; }
.op-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.op-table th, .op-table td { padding: 0.55rem 0.7rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08); }
.op-table th { color: var(--warm); font-weight: 600; white-space: nowrap; }
.op-table td.num, .op-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.op-cta { padding: 1.5rem; margin: 2rem 0; }
.op-cta p { color: #d9cfc6; line-height: 1.6; margin-bottom: 1rem; }
.op-sib-list { list-style: none; padding: 0; margin: 0; }
.op-sib-list li { padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.op-sib-n { color: #b7aaa0; font-size: 0.82rem; margin-left: 0.4rem; }
.op-cols { columns: 2; column-gap: 2.5rem; }
.op-cols li { break-inside: avoid; }
.op-state-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.op-state-cards a { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.25rem; background: var(--warm-muted); border: 1px solid var(--warm-border); border-radius: 12px; color: #fff; }
.op-method details { color: #b7aaa0; font-size: 0.88rem; }
.op-method summary { cursor: pointer; color: var(--warm); }
.op-method p { margin-top: 0.6rem; line-height: 1.6; max-width: 75ch; }
/* operator-directory teaser block reused on the well tool page */
.op-state-links { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.op-state-links a { display: block; padding: 0.7rem 1rem; background: var(--warm-muted); border: 1px solid var(--warm-border); border-radius: 10px; color: #fff; text-align: center; }
@media (max-width: 640px) {
  .op-stats { grid-template-columns: repeat(2, 1fr); }
  .op-cols { columns: 1; }
  .op-state-cards, .op-state-links { grid-template-columns: 1fr 1fr; }
}