/* Diak Energy — bespoke renewable energy theme */
:root,
[data-theme="dark"] {
    --bg-deep: #070d14;
    --bg-raised: #0c1520;
    --bg-muted: #101c2a;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --text: #e8f1f7;
    --text-muted: rgba(232, 241, 247, 0.68);
    --accent: #3ee0c1;
    --accent-soft: rgba(62, 224, 193, 0.15);
    --sun: #f5c84c;
    --sun-soft: rgba(245, 200, 76, 0.12);
    --depth: #6b8cff;
    --danger: #f87171;
    --success: #4ade80;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-sans: "Outfit", system-ui, -apple-system, sans-serif;
    --space-xs: 0.35rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3.5rem;
    --space-2xl: 5.5rem;
    --max: 1120px;
    --link-hover: #6ef3d6;
    --body-grad-1: radial-gradient(1200px 800px at 10% -10%, rgba(62, 224, 193, 0.08), transparent 55%);
    --body-grad-2: radial-gradient(900px 600px at 90% 0%, rgba(107, 140, 255, 0.1), transparent 50%);
    --header-grad-1: rgba(7, 13, 20, 0.92);
    --header-grad-2: rgba(7, 13, 20, 0.75);
    --header-scrolled-bg: rgba(7, 13, 20, 0.88);
    --nav-drawer-bg: rgba(7, 13, 20, 0.97);
    --footer-bg: rgba(5, 9, 14, 0.9);
    --hero-eyebrow: rgba(232, 241, 247, 0.85);
    --hero-glow: radial-gradient(closest-side, rgba(62, 224, 193, 0.2), transparent 70%);
    --hero-chip-bg: rgba(7, 13, 20, 0.55);
    --hero-ring: rgba(255, 255, 255, 0.2);
    --hero-ring-inner: rgba(62, 224, 193, 0.25);
    --hero-panel-bg: linear-gradient(145deg, rgba(62, 224, 193, 0.12), rgba(107, 140, 255, 0.12));
    --section-muted-bg: linear-gradient(to bottom, rgba(16, 28, 42, 0.5), rgba(16, 28, 42, 0.9));
    --ghost-hover-border: rgba(255, 255, 255, 0.22);
    --focus-ring: rgba(62, 224, 193, 0.45);
    --focus-border: rgba(62, 224, 193, 0.5);
    --bento-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    --cta-bg: linear-gradient(120deg, #0f2a24, #122338 55%, #1a2040);
    --cta-border: rgba(255, 255, 255, 0.12);
    --cta-title: #f8fafc;
    --cta-lede: rgba(255, 255, 255, 0.75);
    --cta-eyebrow: rgba(255, 255, 255, 0.75);
    --brand-mark-shadow: 0 8px 30px rgba(62, 224, 193, 0.25);
    --theme-track: rgba(255, 255, 255, 0.14);
    --theme-thumb: rgba(255, 255, 255, 0.92);
    --theme-thumb-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    --theme-border: rgba(255, 255, 255, 0.18);
    --alert-success-text: #bbf7d0;
    --alert-error-text: #fecaca;
    --notice-border: rgba(62, 224, 193, 0.25);
    --accent-card-border: rgba(62, 224, 193, 0.25);
    --btn-primary-glow: 0 12px 40px rgba(62, 224, 193, 0.25);
    --btn-primary-glow-hover: 0 16px 50px rgba(62, 224, 193, 0.35);
    --alert-success-bg: rgba(74, 222, 128, 0.12);
    --alert-success-border: rgba(74, 222, 128, 0.35);
    --alert-error-bg: rgba(248, 113, 113, 0.1);
    --alert-error-border: rgba(248, 113, 113, 0.35);
}

[data-theme="light"] {
    color-scheme: light;
    --bg-deep: #f1f5f9;
    --bg-raised: #ffffff;
    --bg-muted: #e2e8f0;
    --surface: rgba(15, 23, 42, 0.04);
    --surface-strong: rgba(15, 23, 42, 0.07);
    --border: rgba(15, 23, 42, 0.11);
    --text: #0f172a;
    --text-muted: rgba(15, 23, 42, 0.62);
    --accent: #0d9488;
    --accent-soft: rgba(13, 148, 136, 0.12);
    --sun: #b45309;
    --sun-soft: rgba(180, 83, 9, 0.1);
    --depth: #4f46e5;
    --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.08);
    --link-hover: #0f766e;
    --body-grad-1: radial-gradient(900px 600px at 12% -8%, rgba(13, 148, 136, 0.14), transparent 55%);
    --body-grad-2: radial-gradient(720px 480px at 88% 0%, rgba(79, 70, 229, 0.09), transparent 50%);
    --header-grad-1: rgba(255, 255, 255, 0.9);
    --header-grad-2: rgba(248, 250, 252, 0.78);
    --header-scrolled-bg: rgba(255, 255, 255, 0.95);
    --nav-drawer-bg: rgba(255, 255, 255, 0.98);
    --footer-bg: #e2e8f0;
    --hero-eyebrow: rgba(15, 23, 42, 0.72);
    --hero-glow: radial-gradient(closest-side, rgba(13, 148, 136, 0.2), transparent 70%);
    --hero-chip-bg: rgba(255, 255, 255, 0.96);
    --hero-ring: rgba(15, 23, 42, 0.14);
    --hero-ring-inner: rgba(13, 148, 136, 0.28);
    --hero-panel-bg: linear-gradient(145deg, rgba(13, 148, 136, 0.1), rgba(79, 70, 229, 0.1));
    --section-muted-bg: linear-gradient(to bottom, rgba(241, 245, 249, 0.92), rgba(226, 232, 240, 0.98));
    --ghost-hover-border: rgba(15, 23, 42, 0.16);
    --focus-ring: rgba(13, 148, 136, 0.35);
    --focus-border: rgba(13, 148, 136, 0.45);
    --bento-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
    --cta-bg: linear-gradient(125deg, #ccfbf1, #e0f2fe 48%, #ede9fe);
    --cta-border: rgba(13, 148, 136, 0.22);
    --cta-title: #0f172a;
    --cta-lede: rgba(15, 23, 42, 0.68);
    --cta-eyebrow: rgba(15, 23, 42, 0.55);
    --brand-mark-shadow: 0 8px 26px rgba(13, 148, 136, 0.22);
    --theme-track: rgba(15, 23, 42, 0.08);
    --theme-thumb: #ffffff;
    --theme-thumb-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
    --theme-border: rgba(15, 23, 42, 0.14);
    --alert-success-text: #166534;
    --alert-error-text: #b91c1c;
    --notice-border: rgba(13, 148, 136, 0.22);
    --accent-card-border: rgba(13, 148, 136, 0.22);
    --btn-primary-glow: 0 12px 36px rgba(13, 148, 136, 0.22);
    --btn-primary-glow-hover: 0 16px 44px rgba(13, 148, 136, 0.28);
    --alert-success-bg: rgba(22, 163, 74, 0.1);
    --alert-success-border: rgba(22, 163, 74, 0.28);
    --alert-error-bg: rgba(220, 38, 38, 0.08);
    --alert-error-border: rgba(220, 38, 38, 0.22);
}

[data-theme="dark"] {
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Scales all rem-based type (headings, UI, body) — ~19px when browser default is 16px */
    font-size: 118.75%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--body-grad-1), var(--body-grad-2), var(--bg-deep);
    min-height: 100vh;
    transition: background-color 0.35s ease, color 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--link-hover);
}

.shell {
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography */
.display {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 3.75rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-md);
}

.display--sm {
    font-size: clamp(2.1rem, 4vw, 2.85rem);
}

.display em {
    font-style: italic;
    color: var(--accent);
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.lede {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 38ch;
    margin: 0 0 var(--space-lg);
}

.lede--narrow {
    max-width: 52ch;
}

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 var(--space-sm);
}

.eyebrow--on-dark {
    color: var(--cta-eyebrow);
}

.muted {
    color: var(--text-muted);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, var(--header-grad-1), var(--header-grad-2));
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    border-color: var(--border);
    background: var(--header-scrolled-bg);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-md);
    padding-block: 1rem;
}

.site-header__trailing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    /* Pin trailing controls to the right edge on mobile, where the
       nav is taken out of flow. On desktop the nav has `flex: 1`
       which consumes all free space, so this auto-margin is a no-op. */
    margin-inline-start: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand:hover {
    color: inherit;
}

.brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: conic-gradient(from 210deg, var(--accent), var(--depth), var(--sun), var(--accent));
    box-shadow: var(--brand-mark-shadow);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__name {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand__tag {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.site-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-lg);
}

.site-nav__list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.03rem;
    position: relative;
}

.site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--sun));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.site-nav__link:hover {
    color: var(--text);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
    transform: scaleX(1);
}

.site-nav__link.is-active {
    color: var(--text);
}

.site-nav__cta {
    white-space: nowrap;
}

.site-nav .btn {
    font-size: 1.02rem;
}

.theme-toggle {
    position: relative;
    width: 48px;
    height: 28px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--theme-border);
    background: var(--theme-track);
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle__thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--theme-thumb);
    box-shadow: var(--theme-thumb-shadow);
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}

[data-theme="light"] .theme-toggle__thumb {
    transform: translateX(20px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle__bars {
    width: 20px;
    height: 2px;
    background: var(--text);
    position: relative;
    border-radius: 2px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        /* Anchor the drawer to the (sticky) site-header so it always
           sits flush under it, regardless of the header's actual
           height across breakpoints/font-size changes. */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
        background: var(--nav-drawer-bg);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 1rem;
    }

    .site-nav__cta {
        text-align: center;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: linear-gradient(120deg, var(--accent), #2bc4a8);
    color: #041016;
    box-shadow: var(--btn-primary-glow);
}

.btn--primary:hover {
    color: #041016;
    box-shadow: var(--btn-primary-glow-hover);
}

.btn--ghost {
    border-color: var(--border);
    color: var(--text);
    background: var(--surface);
}

.btn--ghost:hover {
    border-color: var(--ghost-hover-border);
    color: var(--text);
}

.btn--light {
    background: #f4faf8;
    color: #062022;
    box-shadow: var(--shadow-lg);
}

.btn--light:hover {
    color: #062022;
}

/* Hero */
.hero {
    position: relative;
    padding: calc(var(--space-2xl) - var(--space-lg)) 0 var(--space-xl);
    overflow: clip;
}

.hero__glow {
    position: absolute;
    inset: -20% -10% auto;
    height: 70%;
    background: var(--hero-glow);
    filter: blur(40px);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-xl);
    align-items: start;
}

@media (max-width: 960px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }
}

.hero__eyebrow {
    color: var(--hero-eyebrow);
    margin-top: -0.75rem;
    margin-bottom: calc(var(--space-sm) - 0.1rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
    margin: 0;
    padding: 0;
}

.hero__stats > div {
    border-left: 1px solid var(--border);
    padding-left: var(--space-md);
}

.hero__stats > div:first-child {
    border-left: 0;
    padding-left: 0;
}

@media (max-width: 720px) {
    .hero__stats {
        grid-template-columns: 1fr;
    }

    .hero__stats > div {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--border);
        padding-top: var(--space-md);
    }

    .hero__stats > div:first-child {
        border-top: 0;
        padding-top: 0;
    }
}

.stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
}

.stat__label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.hero__panel {
    position: relative;
    min-height: 380px;
    border-radius: var(--radius-lg);
    background: var(--hero-panel-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    background: radial-gradient(circle at 30% 30%, #fff6d6, var(--sun) 35%, rgba(245, 200, 76, 0.2) 60%, transparent 70%);
    filter: blur(0.5px);
    animation: floaty 9s ease-in-out infinite;
}

.hero__rings {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px dashed var(--hero-ring);
    animation: spin 48s linear infinite;
}

.hero__rings::after {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    border: 1px solid var(--hero-ring-inner);
}

.hero__chips {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero__chips li {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--hero-chip-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

@keyframes floaty {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.03);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Sections */
.section {
    padding: var(--space-2xl) 0;
}

.section--muted {
    background: var(--section-muted-bg);
    border-block: 1px solid var(--border);
}

/* Home: pillars (“What we believe”) — tighter under hero */
.page-home .page-home-pillars {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-xl);
}

.page-home .page-home-work {
    padding-top: var(--space-lg);
}

.page-home .page-home-work .section__head {
    margin-bottom: var(--space-xl);
}

.section--tight {
    padding-top: 0;
}

.section__head {
    max-width: 720px;
    margin-bottom: var(--space-xl);
}

.section__head--split {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr 1fr;
    max-width: none;
    align-items: end;
}

@media (max-width: 800px) {
    .section__head--split {
        grid-template-columns: 1fr;
    }
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    margin: 0 0 var(--space-sm);
}

.section__intro {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Bento */
.bento {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .bento {
        grid-template-columns: 1fr;
    }
}

.bento__card {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--bento-shadow);
}

.bento__card--wide {
    grid-column: span 2;
}

.bento__card--accent {
    background: linear-gradient(135deg, var(--accent-soft), var(--sun-soft));
    border-color: var(--accent-card-border);
}

@media (max-width: 900px) {
    .bento__card--wide {
        grid-column: auto;
    }
}

.bento__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 var(--space-sm);
}

/* Cards row */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
}

@media (max-width: 960px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--bg-raised);
    border: 1px solid var(--border);
}

.card__meta {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 var(--space-sm);
}

.card__title {
    font-family: var(--font-display);
    margin: 0 0 var(--space-sm);
}

/* CTA band */
.cta-band {
    padding: var(--space-2xl) 0;
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    background: var(--cta-bg);
    border: 1px solid var(--cta-border);
    box-shadow: var(--shadow-lg);
}

.cta-band__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 var(--space-sm);
    color: var(--cta-title);
}

.cta-band__lede {
    margin: 0;
    color: var(--cta-lede);
    max-width: 48ch;
}

/* Page hero inner pages */
.page-hero {
    padding: var(--space-xl) 0 var(--space-lg);
}

/* Prose / about */
.prose-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xl);
    align-items: start;
}

@media (max-width: 860px) {
    .prose-grid {
        grid-template-columns: 1fr;
    }
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-top: 0;
}

.pullquote {
    margin: 0;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    border: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.5;
}

.pullquote footer {
    margin-top: var(--space-md);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.team-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-lg);
    align-items: start;
}

.team-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    min-width: min(100%, 320px);
}

.team-list li span {
    display: block;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* Services */
.service-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--bg-raised);
    border: 1px solid var(--border);
}

.service-card--span {
    grid-column: span 2;
}

@media (max-width: 720px) {
    .service-card--span {
        grid-column: auto;
    }
}

.service-card__icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    opacity: 0.85;
}

.service-card h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 var(--space-sm);
}

/* Services: pull “Engagement models…” notice closer to the grid above */
.page-services .section--tight {
    padding-bottom: var(--space-md);
}

.page-services .section-services-notice {
    padding-top: var(--space-sm);
}

.notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--notice-border);
    background: linear-gradient(90deg, var(--accent-soft), transparent);
}

.notice p {
    margin: 0;
    max-width: 62ch;
    color: var(--text-muted);
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 1.08fr);
    gap: var(--space-xl);
    align-items: stretch;
}

@media (max-width: 860px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-sidebar > .eyebrow:first-child {
    margin-bottom: 0;
}

.contact-map-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
}

.contact-map {
    margin: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--bento-shadow);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: min(28vw, 180px);
    min-height: 132px;
    border: 0;
}

@media (min-width: 861px) {
    .contact-map iframe {
        height: 180px;
    }
}

.contact-map__caption {
    margin: 0;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.88rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    line-height: 1.45;
}

.contact-map__link-wrap {
    margin: 0;
}

.contact-map__link {
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-details {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
}

.contact-details__eyebrow {
    margin-bottom: var(--space-xs);
}

.contact-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-detail {
    display: grid;
    gap: 0.25rem;
}

.contact-detail__label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
}

.contact-detail__value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

a.contact-detail__value:hover {
    color: var(--link-hover);
}

.contact-detail__value--block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-weight: 500;
    font-size: 1rem;
}

.contact-detail__line {
    display: block;
}

.contact-aside__link {
    font-size: 1.15rem;
    font-weight: 600;
}

.contact-form {
    position: relative;
    display: grid;
    gap: var(--space-md);
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.optional {
    font-weight: 400;
    color: var(--text-muted);
}

.contact-form__hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.field--captcha {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
}

.field__hint {
    margin: 0 0 var(--space-sm);
    font-size: 0.95em;
    color: var(--text-muted);
    line-height: 1.45;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-muted);
    color: var(--text);
    font: inherit;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-color: var(--focus-border);
}

.alert {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.alert--success {
    background: var(--alert-success-bg);
    border: 1px solid var(--alert-success-border);
    color: var(--alert-success-text);
}

.alert--error {
    background: var(--alert-error-bg);
    border: 1px solid var(--alert-error-border);
    color: var(--alert-error-text);
}

/* Service page — Contact Us inquiry form */
.inquiry {
    padding-bottom: var(--space-2xl);
}

.inquiry--compact {
    padding-top: var(--space-md);
}

/* Start a project: space between hero and form */
.page-service-page .page-hero {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-md);
}

.page-service-page .page-hero .lede {
    margin-bottom: var(--space-md);
}

.page-service-page .section.inquiry.inquiry--compact {
    padding-top: var(--space-md);
    padding-bottom: var(--space-xl);
    margin-top: 0;
}

.inquiry__inner {
    max-width: 980px;
    margin-inline: auto;
}

.inquiry__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.inquiry__title {
    font-family: var(--font-sans);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-sm);
    color: var(--text);
}

.inquiry__subtitle {
    margin: 0 auto;
    max-width: 36ch;
    font-size: 1.08rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.inquiry__alert {
    margin-bottom: var(--space-lg);
}

.inquiry-form {
    position: relative;
    padding: calc(var(--space-lg) + var(--space-sm));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-raised);
    box-shadow: var(--bento-shadow);
    display: grid;
    gap: var(--space-lg);
}

.inquiry-form__hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.inquiry-form__fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    display: grid;
    gap: var(--space-md);
}

.inquiry-form__legend {
    padding: 0;
    margin: 0 0 var(--space-md);
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.inquiry-form__grid {
    display: grid;
    gap: var(--space-md);
}

.inquiry-form__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
    .inquiry-form__grid--2 {
        grid-template-columns: 1fr;
    }
}

.inquiry-form__field--full {
    grid-column: 1 / -1;
}

.inquiry-form__field--captcha {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
}

.inquiry-form__hint {
    margin: 0 0 var(--space-sm);
    font-size: 0.95em;
    color: var(--text-muted);
    line-height: 1.45;
}

.inquiry-form__field label {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.inquiry-form__req {
    color: var(--danger);
    text-decoration: none;
    font-weight: 700;
}

.inquiry-form__optional {
    font-weight: 500;
    color: var(--text-muted);
}

.inquiry-form__field input,
.inquiry-form__field textarea,
.inquiry-form__field select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-muted);
    color: var(--text);
    font: inherit;
    box-sizing: border-box;
}

.inquiry-form__field input::placeholder,
.inquiry-form__field textarea::placeholder {
    color: var(--text-muted);
}

.inquiry-form__field textarea {
    resize: vertical;
    min-height: 8rem;
    line-height: 1.5;
}

.inquiry-form__field select {
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.inquiry-form__select-wrap {
    position: relative;
}

.inquiry-form__select-wrap::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: -0.2rem;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    pointer-events: none;
}

.inquiry-form__field input:focus,
.inquiry-form__field textarea:focus,
.inquiry-form__field select:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-color: var(--focus-border);
}

.inquiry-form__actions {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding-top: var(--space-xs);
}

@media (max-width: 560px) {
    .inquiry-form {
        padding: var(--space-md);
    }
}

/* Footer */
.site-footer {
    padding: calc(var(--space-2xl) + var(--space-md)) 0 calc(var(--space-xl) + var(--space-sm));
    border-top: 1px solid var(--border);
    background: var(--footer-bg);
    font-size: 1.14rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: calc(var(--space-xl) + var(--space-md));
}

@media (max-width: 800px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

.site-footer .eyebrow {
    font-size: 0.93rem;
    letter-spacing: 0.2em;
}

.site-footer__tagline {
    font-family: var(--font-display);
    font-size: 1.62rem;
    line-height: 1.2;
    margin: 0 0 var(--space-md);
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.site-footer__links a {
    font-size: 1.1em;
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer__links a:hover {
    color: var(--text);
}

.site-footer__bottom {
    margin-top: calc(var(--space-xl) + var(--space-sm));
    padding-top: calc(var(--space-md) + var(--space-xs));
    border-top: 1px solid var(--border);
    font-size: 1.04rem;
    color: var(--text-muted);
}

.site-footer__bottom p {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   Mobile refinements
   Keep the desktop design intact; tighten spacing, wrap long
   content, and scale type down so everything fits on phones.
   ============================================================ */

/* Belt-and-braces: prevent any stray element from forcing a
   horizontal scrollbar on small screens. `clip` is preferred
   because it doesn't create a containing block for sticky. */
html,
body {
    overflow-x: clip;
}

/* Make long links, emails, and address lines wrap instead of
   breaking the layout. */
body {
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.display,
.section__title,
.bento__title,
.card__title,
.cta-band__title,
.site-footer__tagline {
    overflow-wrap: break-word;
    hyphens: auto;
}

.contact-detail__value,
.contact-detail__line,
.site-footer__links a {
    overflow-wrap: anywhere;
}

/* Tablet / small laptop: scale type back toward the browser
   default so UI chrome doesn't dominate the viewport. */
@media (max-width: 900px) {
    html {
        font-size: 112.5%; /* ~18px */
    }
    .shell {
        width: min(100% - 2rem, var(--max));
    }
    .section {
        padding: var(--space-xl) 0;
    }
    .cta-band {
        padding: var(--space-xl) 0;
    }
    .cta-band__inner {
        padding: var(--space-lg);
    }
    .site-footer {
        padding: var(--space-xl) 0 var(--space-lg);
    }
    .site-footer__grid {
        gap: var(--space-lg);
    }
    .site-footer__bottom {
        margin-top: var(--space-lg);
    }
}

/* Phones: bring root font size back to the browser default,
   shrink page gutter, and reduce the largest vertical rhythm. */
@media (max-width: 640px) {
    html {
        font-size: 100%; /* respect user/browser default */
    }
    .shell {
        width: min(100% - 1.5rem, var(--max));
    }
    body {
        font-size: 1rem;
    }
    .section,
    .cta-band {
        padding: 2.5rem 0;
    }
    .page-hero {
        padding: 2rem 0 1rem;
    }
    .hero {
        padding: 1.75rem 0 2rem;
    }
    .hero__grid {
        gap: var(--space-lg);
    }
    .hero__panel {
        min-height: 260px;
    }
    .hero__orb {
        width: 160px;
        height: 160px;
    }
    .hero__actions {
        margin-bottom: var(--space-lg);
    }
    .hero__chips {
        left: 0.9rem;
        right: 0.9rem;
        bottom: 0.9rem;
    }
    .lede {
        font-size: 1.05rem;
    }
    .section__head {
        margin-bottom: var(--space-lg);
    }
    .cta-band__inner {
        padding: var(--space-md);
        gap: var(--space-md);
    }
    .cta-band__inner > div {
        flex: 1 1 100%;
    }
    .cta-band__inner .btn {
        width: 100%;
    }
    .bento__card,
    .card,
    .service-card {
        padding: var(--space-md);
    }
    .notice {
        padding: var(--space-md);
    }
    .notice .btn {
        width: 100%;
    }
    .inquiry-form {
        padding: var(--space-md);
        gap: var(--space-md);
    }
    .inquiry-form__legend {
        font-size: 1.15rem;
    }
    .contact-layout {
        gap: var(--space-lg);
    }
    .contact-details {
        padding: var(--space-md);
    }
    .site-footer {
        padding: var(--space-lg) 0 var(--space-md);
    }
    .site-footer__grid {
        gap: var(--space-md);
    }
    .site-footer__tagline {
        font-size: 1.35rem;
    }
    .site-footer__bottom {
        margin-top: var(--space-md);
        padding-top: var(--space-sm);
        font-size: 0.95rem;
    }
    /* Drawer anchors via `top: 100%` (set in the base mobile rule),
       so we only need to tighten its inner padding here. */
    .site-nav {
        padding: 1.25rem;
    }
    .site-header__inner {
        padding-block: 0.75rem;
        gap: var(--space-sm);
    }
    .brand__mark {
        width: 36px;
        height: 36px;
    }
    .brand__name {
        font-size: 1.02rem;
    }
    .brand__tag {
        font-size: 0.7rem;
    }
    /* Keep CTAs comfortable to tap, but don't let them overflow. */
    .btn {
        padding: 0.75rem 1.1rem;
    }
    .hero__actions .btn,
    .site-nav__cta {
        flex: 1 1 auto;
        min-width: 0;
    }
    /* Form inputs stay inside the viewport. */
    .field input,
    .field textarea,
    .inquiry-form__field input,
    .inquiry-form__field textarea,
    .inquiry-form__field select {
        font-size: 1rem;
        padding: 0.75rem 0.9rem;
    }
    .field--captcha,
    .inquiry-form__field--captcha {
        padding: var(--space-sm) var(--space-md);
    }
    /* Tables of pages like service cards: ensure wide cards behave. */
    .bento__card--wide,
    .service-card--span {
        grid-column: auto;
    }
}

/* Extra small handsets (≤ ~380px): squeeze one more round of
   padding out so nothing clips. */
@media (max-width: 380px) {
    .shell {
        width: min(100% - 1rem, var(--max));
    }
    .display {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }
    .hero__panel {
        min-height: 220px;
    }
    .hero__orb {
        width: 130px;
        height: 130px;
    }
    .hero__stats .stat__value {
        font-size: 1.45rem;
    }
    .brand__tag {
        display: none; /* keep the header compact on tiny screens */
    }
}

