/* ==========================================================================
   Tim Brown Creative
   Tokens follow a shadcn/v0-style system, tuned to the site's existing
   warm palette (sand / stone / clay) with a zinc neutral scale.
   ========================================================================== */

:root {
    --background: #ffffff;
    --foreground: #18181b;
    --muted: #f4f4f5;
    --muted-foreground: #52525b;
    --border: #e4e4e7;
    --border-warm: rgba(24, 24, 27, 0.1);
    --ring: #18181b;

    --sand: #f4f2ec;
    --stone: #eae7dc;
    --clay: #e0d8c8;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.05);
    --shadow: 0 1px 3px rgba(24, 24, 27, 0.06), 0 8px 24px -12px rgba(24, 24, 27, 0.18);

    --header-h: 64px;
    --gutter: clamp(16px, 4vw, 32px);
    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html.scroll-locked { overflow: hidden; }

html, body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

.site-main { flex: 1; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }

h1:focus, h1:focus-visible { outline: none; }

:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection { background: var(--clay); }

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container-narrow { max-width: 820px; }

.muted { color: var(--muted-foreground); }
.small { font-size: 0.875rem; }
.w-full { width: 100%; }

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

.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 2000;
    background: var(--foreground); color: #fff;
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 0.875rem; font-weight: 500;
    transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

/* MudIcon sizing helper */
.mud-icon-root { flex-shrink: 0; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font: inherit; font-size: 0.9375rem; font-weight: 500; line-height: 1;
    white-space: nowrap; cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-sm { height: 34px; padding: 0 14px; font-size: 0.875rem; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 1rem; }

.btn-dark { background: var(--foreground); color: #fafafa; box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: #3f3f46; }

.btn-outline { background: transparent; color: var(--foreground); border-color: rgba(24, 24, 27, 0.2); }
.btn-outline:hover { background: rgba(24, 24, 27, 0.05); border-color: rgba(24, 24, 27, 0.35); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-center { justify-content: center; }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; padding: 0;
    border-radius: var(--radius-sm);
    border: 1px solid transparent; background: transparent; color: var(--foreground);
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: rgba(24, 24, 27, 0.06); }
.icon-btn-sm { width: 34px; height: 34px; }
.icon-btn-sm .mud-icon-root { font-size: 18px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.wordmark { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; }
.header-cta { justify-self: end; }

.nav-desktop { display: flex; align-items: center; gap: 4px; }

.nav-link {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 14px;
    border-radius: 999px;
    font-size: 0.9375rem; font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.15s, background-color 0.15s;
}
.nav-link:hover { color: var(--foreground); background: var(--muted); }
.nav-link.is-active { color: var(--foreground); background: var(--muted); }
.nav-icon.mud-icon-root { font-size: 18px; }

.nav-toggle { display: none; justify-self: end; }

/* Mobile drawer */
.mobile-nav-backdrop {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(24, 24, 27, 0.4);
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
}
.mobile-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 201;
    width: min(320px, 86vw);
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px;
    background: var(--background);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.25s var(--ease), visibility 0.25s;
}
.mobile-nav.is-open { transform: none; visibility: visible; }

.mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 2px 4px 12px 12px; margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-link {
    display: flex; align-items: center; gap: 12px;
    height: 46px; padding: 0 12px;
    border-radius: var(--radius-sm);
    font-weight: 500; color: var(--muted-foreground);
}
.mobile-nav-link:hover { background: var(--muted); color: var(--foreground); }
.mobile-nav-link.is-active { background: var(--muted); color: var(--foreground); }

.mobile-nav-foot { margin-top: auto; padding: 12px; display: grid; gap: 12px; }
.mobile-nav-foot p { margin: 0; text-align: center; }

@media (max-width: 860px) {
    .header-inner { grid-template-columns: 1fr auto; }
    .nav-desktop, .header-cta { display: none; }
    .nav-toggle { display: inline-grid; }
}

/* ---------- Hero ---------- */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100svh - var(--header-h));
    border-bottom: 1px solid var(--border);
}

.hero-copy {
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(40px, 6vw, 96px) max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
}

.hero-title {
    /* Sized so "CREATIVE" (~4.4em wide) always fits its column. */
    font-size: min(calc(11.2vw - 16px), 7.75rem);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    margin: 0 0 clamp(24px, 3vw, 40px) -0.04em;
    animation: hero-in 0.9s var(--ease) both;
}

.hero-lede {
    max-width: 44ch;
    font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
    line-height: 1.55;
    color: var(--muted-foreground);
    margin-bottom: 32px;
}

/* Light-to-black sweep, matching the original gradient artwork. */
.hero-art {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg,
        #f2f2f2 0%,
        #c9c9c9 22%,
        #8f8f8f 48%,
        #4a4a4a 72%,
        #161616 90%,
        #000000 100%);
}

/* The seam: a hairline where the wordmark meets its reflection. */
.hero-art::before {
    content: "";
    position: absolute; inset: 0 auto 0 0; z-index: 1;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(24, 24, 27, 0.28) 20%, rgba(24, 24, 27, 0.28) 80%, transparent);
}

/* Mirror: the hero-copy box rebuilt with the padding swapped onto the seam side,
   then flipped so the reflection is geometrically exact. */
.hero-mirror {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(40px, 6vw, 96px) max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
    transform: scaleX(-1);
    pointer-events: none;
    user-select: none;
    /* Two-tone fill clipped to the letters: ink over the light half of the sweep,
       white over the dark half. Coordinates are pre-flip, so the seam is on the
       local right; the switch sits where the gradient crosses mid-grey (~48%). */
    background: linear-gradient(90deg, #ffffff 0 52%, #18181b 52% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    animation: mirror-in 1.1s var(--ease) 0.55s both;
}

.hero-title-mirror {
    color: transparent;
    animation: none;
}

.mirror-spacer { visibility: hidden; }

@keyframes hero-in {
    from { opacity: 0; transform: translateY(0.12em); clip-path: inset(0 0 100% 0); }
    to { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); }
}

/* Reveals outward from the seam (local right edge of the flipped box). */
@keyframes mirror-in {
    from { opacity: 0; clip-path: inset(0 0 0 100%); }
    to { opacity: 1; clip-path: inset(0 -10% 0 -10%); }
}

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .hero-art { display: none; }
    .hero-copy { padding: 40px var(--gutter) 48px; }
    .hero-title { font-size: min(calc(22vw - 8px), 9rem); }
    .hero .btn-row .btn { flex: 1; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 128px); }
.section-sand { background: var(--sand); }
.section-stone { background: var(--stone); }

.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-align: center;
}

.section-sub {
    margin: 14px auto 0;
    max-width: 52ch;
    color: var(--muted-foreground);
    font-size: 1.0625rem;
}

.section-foot { display: flex; justify-content: center; margin-top: clamp(32px, 5vw, 56px); }

@media (max-width: 600px) {
    .section-foot .btn { width: 100%; }
}

/* ---------- Page header ---------- */

.page-head {
    text-align: center;
    padding-top: clamp(48px, 8vw, 104px);
    padding-bottom: clamp(32px, 5vw, 56px);
}

.page-title {
    font-size: clamp(2.5rem, 7vw, 4.75rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    line-height: 0.95;
}

.page-sub {
    margin: 16px auto 0;
    max-width: 56ch;
    color: var(--muted-foreground);
    font-size: 1.0625rem;
}

/* ---------- Work cards ---------- */

.work-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.work-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: clamp(64px, 8vw, 112px); }

@media (max-width: 1100px) { .work-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
    .work-grid-3, .work-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .work-grid-3, .work-grid-4 { grid-template-columns: 1fr; }
}

.work-card {
    display: flex; flex-direction: column;
    background: var(--background);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s var(--ease), border-color 0.25s;
}
.work-card:hover { box-shadow: var(--shadow); border-color: rgba(24, 24, 27, 0.16); }

.work-card-media { position: relative; overflow: hidden; background: var(--muted); }
.ratio-video { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }

.work-card-media img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 30%;
    transition: transform 0.6s var(--ease);
}
.work-card:hover .work-card-media img { transform: scale(1.04); }

.play-badge {
    position: absolute; left: 12px; bottom: 12px;
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.92); color: var(--foreground);
    box-shadow: var(--shadow-sm);
}
.play-badge .mud-icon-root { font-size: 20px; }

.work-card-body {
    flex: 1;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    padding: 16px 18px 18px;
}

.work-card-title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.work-card-meta { margin: 4px 0 0; font-size: 0.875rem; color: var(--muted-foreground); }

.work-card-action {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
    white-space: nowrap;
    transition: color 0.15s;
}
.work-card:hover .work-card-action { color: var(--foreground); }
.work-card-arrow.mud-icon-root { font-size: 16px; transition: transform 0.2s var(--ease); }
.work-card:hover .work-card-arrow { transform: translate(2px, -2px); }

/* ---------- Filter chips ---------- */

.filter-bar {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.chip {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 8px 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--background); color: var(--muted-foreground);
    font: inherit; font-size: 0.9375rem; font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--foreground); border-color: #d4d4d8; }
.chip.is-active { background: var(--foreground); border-color: var(--foreground); color: #fafafa; }

.chip-count {
    min-width: 24px; height: 24px; padding: 0 7px;
    display: inline-grid; place-items: center;
    border-radius: 999px;
    background: var(--muted); color: var(--muted-foreground);
    font-size: 0.75rem; font-variant-numeric: tabular-nums;
}
.chip.is-active .chip-count { background: rgba(255, 255, 255, 0.16); color: #fafafa; }

/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center;
    padding: clamp(12px, 4vw, 48px);
    outline: none;
}

.lightbox-backdrop {
    position: absolute; inset: 0;
    background: rgba(9, 9, 11, 0.82);
    backdrop-filter: blur(6px);
    animation: fade-in 0.2s ease both;
}

.lightbox-panel {
    position: relative;
    width: min(1100px, 100%);
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.5);
    animation: pop-in 0.25s var(--ease) both;
}

.lightbox-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 14px 14px 20px;
    border-bottom: 1px solid var(--border);
}
.lightbox-title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.lightbox-meta { margin: 2px 0 0; font-size: 0.875rem; color: var(--muted-foreground); }
.lightbox-actions { display: flex; gap: 4px; }

.lightbox-stage {
    display: grid; place-items: center;
    background: #09090b;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}
.lightbox-stage.is-video { aspect-ratio: 16 / 9; }
.lightbox-stage iframe { width: 100%; height: 100%; border: 0; }
.lightbox-stage img { max-height: calc(100svh - 200px); width: auto; object-fit: contain; }

.lightbox-nav {
    position: absolute; top: 50%;
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--background); color: var(--foreground);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.15s;
}
.lightbox-nav:hover { transform: scale(1.06); }
.lightbox-prev { left: -22px; }
.lightbox-next { right: -22px; }

@media (max-width: 1180px) {
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}
@media (max-width: 600px) {
    .lightbox-nav { top: auto; bottom: -56px; }
    .lightbox-prev { left: calc(50% - 52px); }
    .lightbox-next { right: calc(50% - 52px); }
}

@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* ---------- Contact ---------- */

.contact-list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 12px; max-width: 460px; }

.contact-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 12px 12px 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius);
}

.contact-icon {
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: var(--background); border: 1px solid var(--border-warm);
}
.contact-icon .mud-icon-root { font-size: 20px; }

.contact-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.contact-label { font-size: 0.8125rem; color: var(--muted-foreground); }
.contact-value { flex: 1; font-weight: 500; overflow-wrap: anywhere; }
a.contact-value:hover { text-decoration: underline; text-underline-offset: 3px; }
.copy-btn { margin-left: auto; color: var(--muted-foreground); }

.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 28px);
    align-items: start;
    padding-bottom: clamp(64px, 8vw, 112px);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-warm);
    padding: clamp(24px, 3.5vw, 40px);
}
.panel-clay { background: var(--clay); }
.panel-sand { background: var(--sand); }
.panel-title { font-size: 1.5rem; letter-spacing: -0.03em; margin-bottom: 6px; }
.panel .contact-list { margin: 24px 0 0; max-width: none; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 18px; margin-top: 24px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.field label { font-size: 0.875rem; font-weight: 500; }

.input {
    width: 100%;
    height: 42px; padding: 0 12px;
    border: 1px solid rgba(24, 24, 27, 0.16);
    border-radius: var(--radius-sm);
    background: var(--background); color: var(--foreground);
    font: inherit; font-size: 0.9375rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: #a1a1aa; }
.input:focus { outline: none; border-color: var(--foreground); box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.12); }
.textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 140px; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2352525b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.input.invalid { border-color: #b91c1c; }
.input.invalid:focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15); }
.field-error, .validation-message { color: #b91c1c; font-size: 0.8125rem; }
.form .btn { justify-self: start; }
@media (max-width: 520px) { .form .btn { justify-self: stretch; } }

/* ---------- Biography ---------- */

.bio-grid {
    display: grid; grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    padding-bottom: clamp(64px, 8vw, 112px);
}

.bio-photo {
    margin: 0;
    position: sticky; top: calc(var(--header-h) + 24px);
    background: var(--sand);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.bio-photo img { width: 100%; height: auto; mix-blend-mode: multiply; }

.bio-body { max-width: 66ch; font-size: 1.0625rem; line-height: 1.75; color: #27272a; }
.bio-body p { margin-bottom: 1.25em; }
.bio-lede { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--foreground); font-weight: 450; letter-spacing: -0.01em; }

.bio-facts {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 36px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.bio-facts > div { padding: 16px 18px; border-left: 1px solid var(--border); }
.bio-facts > div:first-child { border-left: 0; }
.bio-facts dt { font-size: 0.8125rem; color: var(--muted-foreground); }
.bio-facts dd { margin: 4px 0 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: var(--foreground); }

@media (max-width: 860px) {
    .bio-grid { grid-template-columns: 1fr; }
    .bio-photo { position: static; max-width: 420px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
    .bio-facts { grid-template-columns: 1fr; }
    .bio-facts > div { border-left: 0; border-top: 1px solid var(--border); }
    .bio-facts > div:first-child { border-top: 0; }
}

/* ---------- Testimonials ---------- */

.testimonials .section-title { margin-bottom: clamp(32px, 5vw, 48px); }

.quote-carousel { display: grid; }

.quote {
    grid-area: 1 / 1;
    margin: 0;
    text-align: center;
    opacity: 0; visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}
.quote.is-active { opacity: 1; visibility: visible; transform: none; }

.quote-mark.mud-icon-root { font-size: 44px; color: #a8a29e; margin: 0 auto 12px; display: block; }

.quote blockquote {
    margin: 0 auto;
    max-width: 62ch;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    letter-spacing: -0.01em;
    text-wrap: pretty;
}

.quote figcaption { margin-top: 28px; display: flex; flex-direction: column; gap: 2px; }
.quote-author { font-weight: 600; }
.quote-company { color: var(--muted-foreground); font-size: 0.9375rem; }

.quote-controls { grid-area: 2 / 1; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; }
.quote-dots { display: flex; gap: 4px; }
.quote-dot {
    width: 24px; height: 24px; padding: 0;
    border: 0; background: transparent; cursor: pointer;
    display: grid; place-items: center;
}
.quote-dot::before {
    content: ""; width: 8px; height: 8px; border-radius: 999px;
    background: rgba(24, 24, 27, 0.22);
    transition: width 0.25s var(--ease), background-color 0.25s;
}
.quote-dot.is-active::before { width: 22px; background: var(--foreground); }

/* ---------- Prose (privacy) ---------- */

.prose { max-width: 720px; padding-bottom: clamp(64px, 8vw, 112px); line-height: 1.75; color: #27272a; }
.prose h2 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 2.2em 0 0.6em; color: var(--foreground); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Status pages ---------- */

.status-page { text-align: center; padding-block: clamp(80px, 14vw, 160px); }
.status-code { font-size: 0.9375rem; font-weight: 600; color: var(--muted-foreground); margin-bottom: 12px; }
.status-page .btn-row { margin-top: 32px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--clay); color: var(--foreground); }

.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding-block: clamp(40px, 6vw, 64px) 32px;
}
.footer-brand p { max-width: 38ch; margin-top: 10px; font-size: 0.9375rem; }

.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; }
.footer-col a { width: fit-content; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-heading { font-size: 0.875rem; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }

.footer-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding-block: 20px;
    border-top: 1px solid rgba(24, 24, 27, 0.12);
    font-size: 0.875rem; color: var(--muted-foreground);
}
.footer-bottom p { margin: 0; }
.footer-credit { display: inline-flex; align-items: center; gap: 6px; }
.footer-credit a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-sm); }
.footer-credit a:hover { background: rgba(24, 24, 27, 0.08); color: var(--foreground); }
.footer-credit a.footer-credit-link { display: inline; width: auto; height: auto; color: var(--foreground); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a.footer-credit-link:hover { background: none; }

@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Blazor framework UI ---------- */

.blazor-error-boundary {
    background: #fef2f2; color: #991b1b;
    border: 1px solid #fecaca; border-radius: var(--radius);
    padding: 1rem 1.25rem; margin: 1rem;
}
.blazor-error-boundary::after { content: "Something went wrong loading this section. Reload the page to try again."; }

/* ---------- Motion preferences ---------- */

@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;
    }
}

/* ---------- Small-screen tightening ---------- */

@media (max-width: 480px) {
    .panel { padding: 20px; }
    .contact-row { gap: 10px; padding: 10px; }
    .contact-icon { width: 34px; height: 34px; }
    .contact-value { font-size: 0.9375rem; overflow-wrap: normal; }
}
