:root {
    color-scheme: light;
    --teal: #405653;
    --deep: #16241f;
    --orange: #b96735;
    --rust: #a9562c;
    --sky: #9fb0b6;
    --sky-soft: #c9d1d2;
    --cream: #eee9df;
    --paper: #f9f5ee;
    --ink: #26322f;
    --muted: #68716d;
    --line: rgba(64, 86, 83, .16);
    --shadow: 0 24px 70px rgba(22, 36, 31, .13);
    --display: 'Playfair Display', Georgia, serif;
    --body: 'DM Sans', Inter, system-ui, sans-serif;
}

[data-theme="dark"] {
    color-scheme: dark;
    --cream: #13201e;
    --paper: #1c2a27;
    --ink: #f7efe6;
    --muted: #bdc8c4;
    --line: rgba(245, 237, 227, .16);
    --shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
    caret-color: transparent;
}
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
input,
textarea,
[contenteditable="true"],
[contenteditable=""],
[role="textbox"] {
    caret-color: auto;
}
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--orange);
    color: white;
    padding: .7rem 1rem;
    z-index: 20;
}
.skip-link:focus { top: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px clamp(18px, 4vw, 64px);
    background: color-mix(in srgb, var(--cream) 92%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
.brand, .admin-brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--orange);
}
.brand img { width: 58px; aspect-ratio: 1.65; object-fit: contain; }
.brand strong {
    color: var(--teal);
    font-size: .95em;
    font-weight: 800;
    letter-spacing: .24em;
    vertical-align: .04em;
}
.site-nav { display: flex; align-items: center; gap: .55rem; }
.site-nav a, .cart-link, .icon-button {
    min-height: 42px;
    border: 0;
    background: transparent;
    color: color-mix(in srgb, var(--ink) 92%, var(--teal));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem .7rem;
    cursor: pointer;
    font-weight: 650;
}
.site-nav a:hover, .cart-link:hover, .icon-button:hover { color: var(--orange); }
.icon-button { width: 42px; padding: 0; }
.cart-link b {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--orange);
    color: white;
    font-size: .75rem;
}
.nav-toggle { display: none; }

.hero {
    position: relative;
    min-height: calc(100svh - 84px);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px) clamp(120px, 18vw, 210px);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 18% 16% 21%;
    z-index: 1;
    background:
        radial-gradient(circle at 54% 25%, rgba(249,245,238,.96) 0 24%, rgba(249,245,238,.78) 42%, transparent 72%);
    filter: blur(2px);
    pointer-events: none;
}
.hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, #f4f0e8 0%, #eee9df 58%, #e7e0d5 100%);
    overflow: hidden;
    pointer-events: none;
    isolation: isolate;
}
.sun {
    position: absolute;
    width: clamp(150px, 18vmin, 250px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--orange);
    left: 57%;
    top: 28%;
    opacity: .9;
    box-shadow: inset 18px -12px 0 rgba(126, 70, 39, .12);
}
.ridge {
    position: absolute;
    inset-inline: -5%;
    bottom: 0;
    height: 48%;
    background: var(--sky);
    clip-path: polygon(0 77%, 10% 36%, 23% 68%, 39% 18%, 49% 70%, 64% 43%, 74% 77%, 101% 42%, 100% 100%, 0 100%);
}
.ridge-far {
    height: 42%;
    background: var(--sky-soft);
    opacity: .82;
    transform: translateY(-7%);
    clip-path: polygon(0 80%, 8% 48%, 20% 72%, 34% 34%, 45% 76%, 58% 45%, 70% 72%, 84% 43%, 101% 64%, 100% 100%, 0 100%);
}
.ridge-back {
    opacity: .78;
    transform: translateY(1%);
}
.ridge-front {
    background: #17241f;
    height: 28%;
    clip-path: polygon(0 66%, 15% 28%, 30% 72%, 43% 40%, 56% 70%, 79% 20%, 100% 66%, 100% 100%, 0 100%);
}
.river {
    position: absolute;
    left: 39%;
    bottom: -1%;
    width: 31%;
    height: 31%;
    background: #f5efe6;
    clip-path: polygon(42% 0, 58% 18%, 46% 34%, 62% 51%, 47% 68%, 66% 100%, 40% 100%, 28% 69%, 40% 51%, 27% 33%);
    filter: drop-shadow(0 -8px 0 rgba(238, 233, 223, .72));
}
.hero-content {
    position: relative;
    z-index: 2;
    width: min(1080px, 100%);
    text-align: center;
    padding-top: 2vh;
    text-wrap: balance;
}
.hero-logo {
    width: clamp(92px, 11vw, 150px);
    aspect-ratio: 1.65;
    object-fit: contain;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 20px 38px rgba(22, 36, 31, .18));
    animation: floatLogo 6s ease-in-out infinite;
}
.eyebrow {
    margin: 0 0 .85rem;
    color: var(--rust);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
    font-family: var(--display);
    line-height: 1.02;
    letter-spacing: 0;
    font-weight: 700;
}
h1 {
    font-size: clamp(3.4rem, 9.7vw, 9.8rem);
    margin-bottom: 1rem;
}
.brand-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: clamp(.22rem, .8vw, .75rem);
    margin-bottom: 1.25rem;
    color: var(--orange);
    text-shadow: 0 2px 0 rgba(255,255,255,.28), 0 18px 54px rgba(22, 36, 31, .12);
}
.brand-title .mad {
    color: var(--teal);
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: .075em;
}
.brand-title .ventures {
    color: var(--rust);
    font-family: var(--display);
    font-weight: 300;
}
.hero p:not(.eyebrow), .page-hero p:not(.eyebrow) {
    max-width: 720px;
    margin-inline: auto;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.hero-copy {
    color: #2d3835;
    font-size: clamp(1.15rem, 2.1vw, 1.55rem) !important;
    line-height: 1.55;
    max-width: 760px !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.button {
    border: 1px solid var(--line);
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .78rem 1.05rem;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    background: var(--paper);
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.button.primary { background: var(--rust); color: white; border-color: var(--rust); }
.button.ghost {
    background: rgba(249, 245, 238, .72);
    border-color: rgba(64,86,83,.24);
    backdrop-filter: blur(14px);
}
.button.slim { min-height: 38px; padding: .5rem .75rem; font-size: .9rem; }
.button.full { width: 100%; }

.section {
    width: min(1280px, calc(100% - 40px));
    margin-inline: auto;
    padding: clamp(56px, 8vw, 108px) 0;
    scroll-margin-top: 96px;
}
.section + .section {
    border-top: 1px solid rgba(64, 86, 83, .08);
}
.section-wave {
    display: block;
    width: 100%;
    height: 80px;
    margin-top: -80px;
    fill: var(--cream);
    position: relative;
}
.intro-grid, .card-grid, .product-grid, .social-grid, .values, .services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.studio-intro {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: clamp(24px, 6vw, 80px);
    align-items: end;
    padding-top: clamp(72px, 10vw, 140px);
}
.studio-intro h2 {
    font-size: clamp(3rem, 7vw, 7.4rem);
    max-width: 980px;
}
.intro-manifesto {
    border-left: 1px solid var(--line);
    padding-left: clamp(18px, 3vw, 34px);
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card, .project-card, .product-card, .social-card, .contact-side {
    background:
        linear-gradient(145deg, rgba(255,255,255,.48), rgba(255,255,255,0) 42%),
        var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 14px 40px rgba(22, 36, 31, .045);
}
.feature-card { padding: clamp(1.2rem, 2vw, 1.75rem); }
.feature-card svg { color: var(--orange); width: 30px; height: 30px; margin-bottom: 1rem; }
.feature-card h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); margin-bottom: .65rem; }
.split-band {
    display: grid;
    grid-template-columns: .8fr 1.4fr;
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}
.work-section {
    position: relative;
}
.work-section::before {
    content: "";
    position: absolute;
    inset: 8% auto auto -8%;
    width: 34vw;
    height: 34vw;
    max-width: 440px;
    max-height: 440px;
    background: radial-gradient(circle, rgba(185,103,53,.12), transparent 68%);
    pointer-events: none;
}
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}
.section-heading h2, .split-band h2 { font-size: clamp(2.6rem, 5vw, 5.2rem); }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--orange);
    font-weight: 800;
}
.project-card, .social-card {
    padding: .8rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover, .social-card:hover, .product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-card img, .social-card img, .product-card img, .feature-image, .article img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--cream);
    border-radius: 6px;
}
.project-card img {
    object-fit: cover;
    object-position: top center;
    background: #d9d7cf;
    border: 1px solid rgba(64, 86, 83, .12);
}
.project-card span, .product-card span, .social-card span {
    color: var(--orange);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.project-card h2, .project-card h3, .product-card h2, .product-card h3 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    margin: .45rem 0 .35rem;
}
.product-card { padding: .8rem; display: grid; gap: .85rem; align-content: start; transition: transform .2s ease, box-shadow .2s ease; }
.product-grid-single {
    grid-template-columns: minmax(0, min(520px, 100%));
    justify-content: center;
}
.product-gallery {
    display: grid;
    gap: 0.85rem;
}
.gallery-feature {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    cursor: zoom-in;
}
.gallery-feature:focus-visible,
.product-thumbs button:focus-visible,
.product-lightbox button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}
.product-gallery .feature-image {
    aspect-ratio: 1 / 1;
    display: block;
}
.product-detail {
    align-items: center;
}
.product-detail h1 {
    max-width: 720px;
    font-size: clamp(2.65rem, 5.2vw, 5.9rem);
    line-height: 0.98;
}
.product-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}
.product-thumbs a,
.product-thumbs button {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--paper);
    padding: 0;
    cursor: zoom-in;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.product-thumbs button:hover {
    border-color: color-mix(in srgb, var(--rust) 52%, var(--line));
    transform: translateY(-2px);
}
.product-thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(44px, 1fr) minmax(0, 1040px) minmax(44px, 1fr);
    grid-template-rows: minmax(52px, 1fr) auto auto minmax(32px, 1fr);
    gap: 1rem;
    padding: clamp(16px, 3vw, 36px);
    background:
        radial-gradient(ellipse at 50% 18%, rgba(249, 245, 238, 0.13), transparent 46%),
        rgba(12, 20, 18, 0.86);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}
.product-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-open {
    overflow: hidden;
}
.product-lightbox__close {
    position: absolute;
    top: clamp(16px, 2vw, 28px);
    right: clamp(16px, 2vw, 28px);
    z-index: 2;
    color: #f7efe6;
    background: rgba(247, 239, 230, 0.1);
    border: 1px solid rgba(247, 239, 230, 0.18);
}
.product-lightbox__frame {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 0.85rem;
}
.product-lightbox__frame img {
    max-width: 100%;
    max-height: min(72vh, 780px);
    object-fit: contain;
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}
.product-lightbox__frame figcaption {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    color: rgba(247, 239, 230, 0.78);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-align: center;
}
.product-lightbox__nav {
    align-self: center;
    justify-self: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(247, 239, 230, 0.18);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f7efe6;
    background: rgba(247, 239, 230, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.product-lightbox__nav:hover,
.product-lightbox__close:hover {
    transform: translateY(-2px);
    background: rgba(247, 239, 230, 0.16);
}
.product-lightbox__prev {
    grid-column: 1;
    grid-row: 2;
}
.product-lightbox__next {
    grid-column: 3;
    grid-row: 2;
}
.product-lightbox__thumbs {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.product-lightbox__thumbs button {
    width: clamp(56px, 8vw, 82px);
    border: 2px solid transparent;
    border-radius: 9px;
    padding: 0;
    overflow: hidden;
    background: rgba(247, 239, 230, 0.12);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.product-lightbox__thumbs button.is-active {
    border-color: var(--orange);
    opacity: 1;
}
.product-lightbox__thumbs button:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.product-lightbox__thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
}
.social-card strong { display: block; margin-top: .4rem; }
.services-showcase {
    width: 100%;
    max-width: none;
    padding-inline: clamp(20px, 5vw, 72px);
    background: var(--deep);
    color: #f7efe6;
}
.services-showcase .eyebrow { color: #d88b58; }
.service-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(247, 239, 230, .16);
    border: 1px solid rgba(247, 239, 230, .16);
}
.service-panel {
    min-height: 360px;
    display: grid;
    align-content: end;
    gap: 1rem;
    padding: clamp(22px, 4vw, 44px);
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
        var(--deep);
}
.service-panel span {
    color: #d88b58;
    font-weight: 800;
    letter-spacing: .16em;
}
.service-panel h3 {
    font-size: clamp(2rem, 4vw, 4.7rem);
    color: white;
}
.service-panel p {
    color: rgba(247, 239, 230, .78);
    max-width: 420px;
}
.product-feature {
    position: relative;
}
.product-feature::after {
    content: "";
    position: absolute;
    right: -5%;
    top: 12%;
    width: 22vw;
    height: 22vw;
    border: 1px solid rgba(64,86,83,.12);
    border-radius: 999px;
    pointer-events: none;
}
.journal-strip {
    display: grid;
    gap: 1.2rem;
}
.journal-row {
    display: grid;
    grid-template-columns: 1.15fr .85fr .85fr;
    gap: 1rem;
}
.journal-card {
    min-height: 260px;
    display: grid;
    align-content: end;
    background:
        linear-gradient(145deg, rgba(185,103,53,.12), transparent 46%),
        var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(18px, 3vw, 32px);
    transition: transform .2s ease, box-shadow .2s ease;
}
.journal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.journal-card span {
    color: var(--rust);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.journal-card h3 {
    font-size: clamp(1.8rem, 3vw, 3.1rem);
    margin: .5rem 0;
}
.contact-band {
    width: min(1120px, calc(100% - 40px));
    text-align: center;
}
.contact-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(185,103,53,.22), transparent 28%),
        radial-gradient(circle at 10% 100%, rgba(159,176,182,.28), transparent 34%),
        var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(36px, 8vw, 92px);
    box-shadow: var(--shadow);
}
.contact-card h2 {
    max-width: 920px;
    margin-inline: auto;
    font-size: clamp(2.8rem, 6vw, 6.6rem);
}
.contact-card p:not(.eyebrow) {
    max-width: 720px;
    margin-inline: auto;
    color: var(--muted);
}
.trust-band {
    background: var(--teal);
    color: white;
    width: 100%;
    max-width: none;
    padding-inline: clamp(20px, 7vw, 92px);
}
.trust-band p { max-width: 880px; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.2; }
.stats { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.stats span { border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: .8rem 1rem; }
.stats strong { color: #ffd2b8; font-size: 1.7rem; }

.page-hero {
    padding: clamp(64px, 10vw, 132px) clamp(20px, 5vw, 72px);
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(201,209,210,.46), transparent 36%),
        var(--paper);
    border-bottom: 1px solid var(--line);
}
.page-hero.compact h1 { max-width: 930px; margin-inline: auto; font-size: clamp(2.5rem, 6vw, 5.8rem); }
.two-column, .contact-layout, .product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 6vw, 72px);
    align-items: center;
}
blockquote {
    border-left: 4px solid var(--orange);
    margin: 2rem 0 0;
    padding-left: 1rem;
    font-family: var(--display);
    font-weight: 300;
    font-size: 1.5rem;
}
.case-stack { display: grid; gap: .9rem; }
.tag-list { color: var(--orange); font-weight: 800; }
.filter-bar {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.filter-bar button {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    padding: .55rem .85rem;
    border-radius: 999px;
    cursor: pointer;
}
.filter-bar button.active { background: var(--teal); color: white; }
.price { display: block; color: var(--orange); font-size: 1.6rem; margin-bottom: 1rem; }
label { display: grid; gap: .35rem; font-weight: 800; margin-bottom: .9rem; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    padding: .8rem .9rem;
}
details {
    border-top: 1px solid var(--line);
    margin-top: 1.2rem;
    padding-top: 1rem;
}
summary { cursor: pointer; font-weight: 800; }
.article {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0;
}
.article h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
.article-body { font-size: 1.1rem; }
.contact-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(18px, 3vw, 32px);
}
.contact-side { padding: clamp(20px, 4vw, 40px); }
.notice {
    background: color-mix(in srgb, var(--teal) 12%, var(--paper));
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .8rem 1rem;
    margin-bottom: 1rem;
}
.success-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    background:
        linear-gradient(135deg, rgba(185, 103, 53, 0.10), rgba(64, 86, 83, 0.08)),
        var(--paper);
    border-color: color-mix(in srgb, var(--rust) 28%, var(--line));
    box-shadow: 0 12px 34px rgba(22, 36, 31, 0.08);
}
.success-notice i {
    width: 24px;
    height: 24px;
    color: var(--rust);
    margin-top: 0.08rem;
}
.success-notice strong {
    display: block;
    font-family: var(--display);
    font-size: 1.35rem;
    line-height: 1.05;
    color: var(--ink);
}
.success-notice p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}
.notice.error { background: #ffe2d4; color: #6b210b; }

.form-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    background: rgba(0,0,0,.22);
    opacity: 0;
    transition: opacity .2s ease;
}
.cart-drawer.open { opacity: 1; pointer-events: auto; }
.cart-panel {
    margin-left: auto;
    width: min(420px, 100%);
    min-height: 100%;
    background: var(--paper);
    padding: 1rem;
    transform: translateX(100%);
    transition: transform .24s ease;
}
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-panel header, .cart-item, .cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cart-items { display: grid; gap: .8rem; margin: 1rem 0; }
.cart-item { border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.fine-print { font-size: .82rem; color: var(--muted); margin-top: .8rem; }
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 40px clamp(20px, 5vw, 72px);
    background: var(--deep);
    color: white;
}
.site-footer img { width: 190px; background: #f5ede3; border-radius: 8px; padding: .35rem; margin-bottom: .8rem; }
.footer-links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes floatLogo { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed;
        inset: 84px 0 auto 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    .site-nav.open { display: flex; }
    .site-nav a, .cart-link { justify-content: flex-start; }
    .intro-grid, .card-grid, .product-grid, .social-grid, .values, .services, .split-band, .two-column, .contact-layout, .product-detail, .studio-intro, .service-rail, .journal-row {
        grid-template-columns: 1fr;
    }
    .service-panel { min-height: 260px; }
    .intro-manifesto { border-left: 0; padding-left: 0; }
    .section-heading { align-items: start; flex-direction: column; }
    .site-footer { flex-direction: column; }
    .brand-title {
        flex-wrap: wrap;
        row-gap: 0;
    }
}

@media (max-width: 560px) {
    .hero {
        min-height: 760px;
        padding-bottom: 180px;
    }
    .hero::before { inset: 15% 4% 28%; }
    .sun {
        width: 132px;
        left: 58%;
        top: 26%;
    }
    .brand-title {
        display: block;
        font-size: clamp(4rem, 20vw, 6rem);
    }
    .brand-title .mad, .brand-title .ventures { display: inline; }
    .hero-actions .button { width: 100%; }
    .brand span { display: none; }
    .stats { flex-direction: column; }
}

/* Refined MADventures design pass */
:root {
    --display: 'Playfair Display', Georgia, serif;
    --body: 'DM Sans', Inter, system-ui, sans-serif;
}

[data-theme="dark"] {
    --cream: #141f1c;
    --paper: #1c2b27;
    --ink: #f2ebe0;
    --muted: #9eb0ab;
    --line: rgba(242, 235, 224, 0.10);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

* {
    -webkit-overflow-scrolling: touch;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--body);
    font-weight: 400;
    line-height: 1.65;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--teal) 60%, transparent);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--teal);
}

h1, h2, h3 {
    font-family: var(--display);
    line-height: 1.0;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--rust);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-family: var(--body);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--rust);
    opacity: 0.7;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px clamp(20px, 4vw, 64px);
    background: color-mix(in srgb, var(--cream) 88%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 1px 28px rgba(22, 36, 31, 0.07);
}

[data-theme="dark"] .site-header {
    background: color-mix(in srgb, #141f1c 90%, transparent);
}

.site-nav a, .cart-link, .icon-button {
    min-height: 40px;
    border: 0;
    background: transparent;
    color: color-mix(in srgb, var(--ink) 85%, var(--teal));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.925rem;
    letter-spacing: 0.01em;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.site-nav a:hover, .cart-link:hover, .icon-button:hover {
    color: var(--rust);
    background: rgba(185, 103, 53, 0.07);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 12% 10% 18%;
    z-index: 1;
    background: radial-gradient(
      ellipse at 52% 30%,
      rgba(249, 245, 238, 0.97) 0%,
      rgba(249, 245, 238, 0.90) 28%,
      rgba(249, 245, 238, 0.65) 48%,
      transparent 72%
    );
    filter: blur(3px);
    pointer-events: none;
}

.hero-art {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      168deg,
      #f8f3eb 0%,
      #ede8de 40%,
      #e4ddd1 70%,
      #dcd4c6 100%
    );
    overflow: hidden;
}

[data-theme="dark"] .hero-art {
    background: linear-gradient(168deg, #182420 0%, #141f1c 60%, #0f1a18 100%);
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(
      ellipse at 52% 30%,
      rgba(28, 43, 39, 0.92) 0%,
      rgba(28, 43, 39, 0.75) 32%,
      rgba(28, 43, 39, 0.4) 52%,
      transparent 72%
    );
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0px) rotate(-0.3deg); }
    33% { transform: translateY(-8px) rotate(0.5deg); }
    66% { transform: translateY(-4px) rotate(-0.2deg); }
}

.hero-logo {
    width: clamp(88px, 10vw, 140px);
    aspect-ratio: 1.65 / 1;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0px 16px 32px rgba(22, 36, 31, 0.20));
    animation: floatLogo 7s ease-in-out infinite;
}

.brand-title .ventures, h1 .ventures {
    font-style: italic;
    font-weight: 700;
    color: var(--rust);
}

.hero-copy {
    color: rgb(50, 62, 58);
    line-height: 1.6;
    font-size: clamp(1.1rem, 1.9vw, 1.45rem) !important;
    max-width: 680px !important;
    font-weight: 400;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
}

.ridge-far {
    height: 44%;
    background: linear-gradient(180deg, #ccd4d6 0%, #b8c4c8 100%);
    opacity: 0.75;
    transform: translateY(-6%);
    clip-path: polygon(0% 80%, 8% 48%, 20% 72%, 34% 34%, 45% 76%, 58% 45%, 70% 72%, 84% 43%, 101% 64%, 100% 100%, 0% 100%);
}

.ridge {
    position: absolute;
    inset-inline: -5%;
    bottom: 0;
    height: 50%;
    background: linear-gradient(180deg, #8fa4ab 0%, #7c9299 100%);
    clip-path: polygon(0% 77%, 10% 36%, 23% 68%, 39% 18%, 49% 70%, 64% 43%, 74% 77%, 101% 42%, 100% 100%, 0% 100%);
}

.ridge-front {
    background: linear-gradient(180deg, #1e3330 0%, #16241f 100%);
    height: 30%;
    clip-path: polygon(0% 66%, 15% 28%, 30% 72%, 43% 40%, 56% 70%, 79% 20%, 100% 66%, 100% 100%, 0% 100%);
}

.button {
    border: 1.5px solid var(--line);
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.925rem;
    letter-spacing: 0.015em;
    cursor: pointer;
    background: var(--paper);
    color: var(--ink);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.22s ease,
                background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(22, 36, 31, 0.14), 0 2px 8px rgba(22, 36, 31, 0.08);
}

.button:active {
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(145deg, #c47240 0%, var(--rust) 60%, #8e4523 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(169, 86, 44, 0.35), inset 0 1px 0 rgba(255,255,255,0.18);
}

.button.primary:hover {
    box-shadow: 0 12px 40px rgba(169, 86, 44, 0.40), inset 0 1px 0 rgba(255,255,255,0.18);
    background: linear-gradient(145deg, #ce7a46 0%, #b96735 60%, #9a4d28 100%);
}

.button.ghost {
    background: rgba(249, 245, 238, 0.65);
    border-color: rgba(64, 86, 83, 0.20);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

[data-theme="dark"] .button.ghost {
    background: rgba(28, 43, 39, 0.72);
    border-color: rgba(242, 235, 224, 0.14);
}

.feature-card, .project-card, .product-card, .social-card, .contact-side {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.6) inset,
      0 2px 4px rgba(22, 36, 31, 0.04),
      0 8px 28px rgba(22, 36, 31, 0.06);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.28s ease;
}

.feature-card, .project-card, .product-card, .social-card {
    overflow: hidden;
}

.project-card:hover, .social-card:hover, .product-card:hover {
    transform: translateY(-5px) scale(1.008);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.6) inset,
      0 16px 48px rgba(22, 36, 31, 0.13),
      0 4px 12px rgba(22, 36, 31, 0.07);
}

.feature-card {
    padding: clamp(1.4rem, 2.2vw, 2rem);
    border-left: 3px solid transparent;
    transition: border-color 0.3s, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s;
}

.feature-card:hover {
    border-left-color: var(--orange);
    transform: translateY(-3px);
}

.project-card img, .social-card img, .product-card img, .feature-image, .article img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--cream);
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.project-card:hover img, .product-card:hover img {
    transform: scale(1.03);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.section {
    width: min(1240px, 100% - 48px);
    margin-inline: auto;
    padding: clamp(64px, 9vw, 120px) 0;
    scroll-margin-top: 96px;
}

.section + .section {
    border-top: none;
}

.section + .section::before {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--rust);
    opacity: 0.35;
    margin-bottom: clamp(64px, 9vw, 120px);
    border-radius: 2px;
}

.section-heading h2, .split-band h2 {
    font-size: clamp(2.4rem, 4.5vw, 4.8rem);
    letter-spacing: -0.03em;
    line-height: 1.0;
}

.studio-intro h2 {
    font-size: clamp(2.8rem, 6.5vw, 7rem);
    letter-spacing: -0.03em;
    line-height: 0.97;
}

.studio-intro h2 em {
    color: var(--rust);
    font-style: italic;
}

.intro-manifesto {
    border-left: 2px solid var(--rust);
    padding-left: clamp(20px, 3vw, 36px);
    color: color-mix(in srgb, var(--ink) 72%, var(--teal));
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.72;
    font-weight: 400;
    margin-top: 0.5rem;
}

.services-showcase {
    width: 100%;
    max-width: none;
    padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 72px);
    background: linear-gradient(160deg, #1a2d28 0%, var(--deep) 50%, #0f1c19 100%);
    color: #f7efe6;
    position: relative;
    overflow: hidden;
}

.services-showcase::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 55%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(185, 103, 53, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.services-showcase > * {
    position: relative;
    z-index: 1;
}

.service-rail {
    display: block;
    background: transparent;
    border: 0;
}

.service-panel {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(60px, 0.16fr) minmax(260px, 0.8fr) minmax(260px, 1fr);
    align-items: center;
    gap: clamp(18px, 4vw, 56px);
    padding: clamp(28px, 4vw, 52px) 0;
    border-top: 1px solid rgba(247, 239, 230, 0.10);
    position: relative;
    background: transparent;
}

.service-panel:last-child {
    border-bottom: 1px solid rgba(247, 239, 230, 0.10);
}

.service-panel h3 {
    font-size: clamp(2rem, 4vw, 4.4rem);
    color: white;
    letter-spacing: -0.025em;
    line-height: 1.0;
    margin: 0;
}

.service-panel p {
    margin: 0;
}

.service-panel > span,
.service-panel h3,
.service-panel p {
    align-self: center;
}

.trust-band {
    background: linear-gradient(135deg, #3a5450 0%, var(--teal) 50%, #2e4440 100%);
    color: white;
    width: 100%;
    max-width: none;
    padding: clamp(56px, 9vw, 112px) clamp(20px, 7vw, 92px);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: end;
    gap: clamp(2.25rem, 7vw, 6rem);
}

.trust-band::before {
    content: '\201C';
    position: absolute;
    top: -0.1em;
    left: clamp(16px, 5vw, 72px);
    font-family: var(--display);
    font-size: clamp(8rem, 18vw, 18rem);
    line-height: 1;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    font-style: italic;
}

.trust-copy {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.trust-band .eyebrow {
    color: #dca06f;
    margin-bottom: 1.4rem;
}

.trust-band .trust-statement {
    max-width: 820px;
    font-size: clamp(1.7rem, 3.8vw, 3.2rem);
    line-height: 1.18;
    font-family: var(--display);
    font-style: italic;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
    margin: 0;
}

.trust-band .trust-note {
    max-width: 640px;
    margin: clamp(1.25rem, 3vw, 2rem) 0 0;
    padding-left: clamp(1rem, 2vw, 1.35rem);
    border-left: 1px solid rgba(220, 160, 111, 0.44);
    color: rgba(255, 255, 255, 0.74);
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.78;
    font-family: var(--body);
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.2rem, 3vw, 2.5rem);
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.trust-stat {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: none;
    padding-top: clamp(1rem, 2vw, 1.35rem);
}

.trust-stat strong {
    font-family: var(--display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    color: white;
    letter-spacing: -0.02em;
}

.trust-stat .stat-suffix {
    font-family: var(--body);
    font-size: 0.52em;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    margin-left: 0.03em;
}

.trust-stat span {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.trust-scripture {
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 4vw, 3rem);
    align-items: center;
    margin-top: clamp(0.5rem, 2vw, 1.5rem);
    padding-top: clamp(1.6rem, 3.5vw, 3rem);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-scripture span {
    color: #dca06f;
    font-size: clamp(0.92rem, 1.05vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.6;
    text-transform: uppercase;
}

.trust-scripture p {
    max-width: 880px;
    margin: 0;
    color: #fff8ee;
    font-family: var(--display);
    font-size: clamp(1.85rem, 4.2vw, 4.3rem);
    font-style: italic;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

@media (max-width: 920px) {
    .trust-band {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .trust-scripture {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .trust-stats {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 78% 15%, rgba(185, 103, 53, 0.18), transparent 38%),
      radial-gradient(ellipse at 8% 90%, rgba(159, 176, 182, 0.22), transparent 36%),
      var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: clamp(48px, 9vw, 108px) clamp(24px, 6vw, 80px);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.7) inset,
      0 28px 80px rgba(22, 36, 31, 0.10);
    text-align: center;
}

.contact-card h2 {
    max-width: 860px;
    margin-inline: auto;
    font-size: clamp(2.6rem, 5.5vw, 6rem);
    letter-spacing: -0.03em;
    line-height: 0.98;
    margin-bottom: 1.25rem;
}

.contact-card p:not(.eyebrow) {
    max-width: 640px;
    margin-inline: auto;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.journal-card {
    min-height: 280px;
    display: grid;
    align-content: end;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: clamp(20px, 3vw, 36px);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.28s ease;
    position: relative;
    overflow: hidden;
}

.journal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(185, 103, 53, 0.09) 0%, transparent 48%);
    opacity: 0;
    transition: opacity 0.3s;
}

.journal-card:hover::before {
    opacity: 1;
}

.journal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 56px rgba(22, 36, 31, 0.12);
}

.journal-card > * {
    position: relative;
    z-index: 1;
}

.journal-card h3 {
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    margin: 0.5rem 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 48px clamp(20px, 5vw, 72px);
    background: var(--deep);
    color: rgba(247, 239, 230, 0.65);
    font-size: 0.875rem;
    border-top: 1px solid rgba(247, 239, 230, 0.06);
    flex-wrap: wrap;
}

.site-footer img {
    width: 160px;
    background: rgba(245, 237, 227, 0.95);
    border-radius: 10px;
    padding: 0.4rem 0.5rem;
    margin-bottom: 0.6rem;
}

.site-footer nav {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.site-footer nav a {
    color: rgba(247, 239, 230, 0.55);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.site-footer nav a:hover {
    color: rgba(247, 239, 230, 0.9);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }

    .hero-build,
    .hero-layer,
    .hero-layer-final,
    .hero-layer-sky,
    .hero-content,
    .hero .brand-title .mad,
    .hero .brand-title .ventures,
    .hero .eyebrow,
    .hero .hero-copy,
    .hero .hero-actions {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (max-width: 920px) {
    .site-nav {
        inset: 76px 0 auto 0;
    }

    .service-panel {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .intro-manifesto {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 560px) {
    .brand-title {
        font-size: clamp(4rem, 20vw, 6rem);
    }

    .trust-stats {
        flex-direction: column;
    }
}

/* Logo-led refinement pass */
:root {
    --brand-font: Montserrat, "DM Sans", Inter, system-ui, sans-serif;
}

.brand,
.footer-logo,
.brand-title {
    font-family: var(--brand-font);
}

.brand {
    min-width: 250px;
    gap: 0.85rem;
    font-size: 1.28rem;
    line-height: 1;
}

.brand img {
    width: 58px;
    aspect-ratio: 1.65 / 1;
    object-fit: contain;
}

.brand span,
.footer-logo span {
    color: var(--rust);
    font-weight: 400;
    letter-spacing: 0;
}

.brand strong,
.footer-logo strong {
    color: var(--teal);
    font-family: var(--brand-font);
    font-weight: 800;
    letter-spacing: 0.24em;
    margin-right: 0.18em;
}

.nav-toggle {
    display: none !important;
}

.brand-title {
    gap: clamp(0.18rem, 0.55vw, 0.55rem);
    margin-bottom: 1.35rem;
    letter-spacing: 0;
}

.brand-title .mad {
    font-family: var(--brand-font);
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--teal);
}

.brand-title .ventures,
h1 .ventures {
    font-family: var(--brand-font);
    font-style: normal;
    font-weight: 300;
    letter-spacing: 0.015em;
    color: var(--rust);
}

.hero-logo {
    margin-bottom: 1.15rem;
}

.hero-copy {
    max-width: 720px !important;
}

.section {
    position: relative;
}

.section + .section::before {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    margin-bottom: 0;
}

.studio-intro {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: clamp(36px, 7vw, 92px);
    min-height: auto;
}

.studio-intro h2 {
    max-width: 820px;
    font-size: clamp(3.2rem, 5.6vw, 6rem);
    line-height: 0.96;
}

.intro-manifesto {
    max-width: 520px;
}

.intro-grid,
.card-grid,
.product-grid,
.social-grid,
.journal-row {
    align-items: stretch;
}

.intro-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.project-card,
.product-card,
.social-card,
.journal-card {
    height: 100%;
}

.section-heading {
    align-items: end;
}

.section-heading > div {
    max-width: 820px;
}

.journal-strip {
    padding-bottom: clamp(72px, 10vw, 128px);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: start;
    row-gap: 3rem;
    padding: clamp(56px, 7vw, 88px) clamp(24px, 6vw, 88px) 34px;
    background:
        radial-gradient(ellipse at 18% 12%, rgba(185, 103, 53, 0.12), transparent 34%),
        linear-gradient(180deg, #1b2b27 0%, var(--deep) 100%);
}

.footer-brand {
    max-width: 440px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--rust);
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    line-height: 1;
    margin-bottom: 1.1rem;
}

.footer-logo img {
    width: 84px;
    aspect-ratio: 1.65 / 1;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.footer-brand p {
    max-width: 360px;
    margin: 0;
    color: rgba(247, 239, 230, 0.62);
    font-size: 1rem;
}

.site-footer nav {
    align-self: center;
    justify-content: flex-end;
}

.site-footer > p {
    grid-column: 1 / -1;
}

.work-section::before {
    left: 0;
}

.product-feature::after {
    right: 0;
}

/* Brand-forward social hub */
.social-hub {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(28px, 6vw, 84px);
    align-items: center;
}

.social-editorial {
    max-width: 540px;
}

.social-editorial h2 {
    font-size: clamp(2.7rem, 5vw, 5.7rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin-bottom: 1.1rem;
}

.social-editorial p:not(.eyebrow) {
    color: color-mix(in srgb, var(--ink) 72%, var(--muted));
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.72;
    margin: 0;
}

.social-links {
    display: grid;
    gap: 1rem;
}

.social-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(1rem, 2.5vw, 1.65rem);
    align-items: center;
    min-height: 168px;
    padding: clamp(1rem, 2.4vw, 1.6rem);
    color: var(--ink);
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 42%),
        color-mix(in srgb, var(--paper) 92%, var(--cream));
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.65) inset,
        0 14px 42px rgba(22, 36, 31, 0.07);
    overflow: hidden;
    position: relative;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.28s ease,
                border-color 0.25s ease;
}

.social-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 88% 12%, rgba(185, 103, 53, 0.11), transparent 42%);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.social-link:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--rust) 36%, var(--line));
    box-shadow:
        0 1px 0 rgba(255,255,255,0.65) inset,
        0 20px 60px rgba(22, 36, 31, 0.13);
}

.social-link:hover::before {
    opacity: 1;
}

.social-logo {
    width: clamp(70px, 7vw, 96px);
    aspect-ratio: 1;
    border-radius: 18px;
    display: inline-grid;
    place-items: center;
    color: white;
    background: var(--deep);
    position: relative;
    z-index: 1;
    box-shadow: 0 12px 30px rgba(22, 36, 31, 0.16);
}

.social-logo svg {
    width: 52%;
    height: 52%;
    fill: currentColor;
}

.social-link--instagram .social-logo {
    background:
        radial-gradient(circle at 30% 105%, #feda75 0 18%, transparent 42%),
        radial-gradient(circle at 10% 92%, #fa7e1e 0 22%, transparent 46%),
        linear-gradient(135deg, #833ab4 0%, #c13584 45%, #fd1d1d 78%, #f56040 100%);
}

.social-link--etsy .social-logo {
    background: #f1641e;
}

.etsy-logo {
    color: white;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.social-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.45rem;
}

.social-copy > span {
    color: var(--rust);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.social-copy strong {
    max-width: 640px;
    font-family: var(--display);
    font-size: clamp(1.45rem, 2.5vw, 2.45rem);
    line-height: 1.03;
    letter-spacing: -0.02em;
}

.social-copy small {
    max-width: 560px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.social-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 118px;
    color: var(--rust);
    font-weight: 700;
    font-size: 0.92rem;
}

.social-action svg {
    width: 18px;
    height: 18px;
}

.social-directory {
    align-items: start;
}

[data-theme="dark"] .social-link {
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 42%),
        var(--paper);
}

@media (max-width: 860px) {
    .social-hub {
        grid-template-columns: 1fr;
    }

    .social-link {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .social-action {
        grid-column: 2;
        justify-content: flex-start;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .social-link {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .social-logo {
        width: 68px;
        border-radius: 16px;
    }

    .social-action {
        grid-column: auto;
    }
}

.hero,
.section,
.site-footer {
    max-width: 100%;
    overflow-x: clip;
}

.cart-drawer {
    overflow: hidden;
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
}

@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

@media (max-width: 1100px) {
    .brand {
        min-width: auto;
    }
}

@media (max-width: 920px) {
    .nav-toggle {
        display: inline-flex !important;
    }

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

    .studio-intro h2 {
        max-width: 720px;
        font-size: clamp(3rem, 12vw, 5.4rem);
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .brand-title {
        font-size: clamp(3.25rem, 17vw, 5.4rem);
    }

    .brand-title .mad {
        letter-spacing: 0.08em;
    }

    .footer-logo {
        font-size: 1.35rem;
    }
}

/* Return brand wordmark typography to the refined serif direction */
:root {
    --brand-font: var(--display);
}

.brand,
.footer-logo,
.brand-title {
    font-family: var(--display);
}

.brand span,
.footer-logo span {
    color: var(--rust);
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand strong,
.footer-logo strong {
    color: var(--teal);
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: 0.22em;
    margin-right: 0.12em;
}

.brand-title .mad {
    color: var(--teal);
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: 0.025em;
}

.brand-title .ventures,
h1 .ventures {
    color: var(--rust);
    font-family: var(--display);
    font-style: italic;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.brand-title {
    gap: clamp(0.35rem, 1vw, 1rem);
}

/* Brand lockup polish */
.brand {
    min-width: 300px;
    gap: 0.95rem;
    font-size: clamp(1.35rem, 1.65vw, 1.72rem);
    align-items: center;
}

.brand img {
    width: clamp(72px, 4.4vw, 90px);
    aspect-ratio: 1.65 / 1;
    object-fit: contain;
}

.brand strong {
    letter-spacing: 0.2em;
}

.hero-content {
    padding-top: 0;
}

.hero .eyebrow {
    margin-top: clamp(1rem, 4vh, 3.5rem);
}

.hero-logo {
    display: none;
}

@media (max-width: 1100px) {
    .brand {
        min-width: 250px;
        font-size: 1.35rem;
    }

    .brand img {
        width: 66px;
    }
}

@media (max-width: 560px) {
    .brand img {
        width: 58px;
    }
}

/* Generated homepage hero artwork */
.hero-art {
    background:
        linear-gradient(180deg, rgba(248, 243, 235, 0.58) 0%, rgba(248, 243, 235, 0.18) 46%, rgba(238, 233, 223, 0) 100%),
        url('../images/madventures-hero-landscape-generated.webp') center bottom / cover no-repeat;
}

.hero-art .sun,
.hero-art .ridge,
.hero-art .river {
    display: none;
}

.hero::before {
    inset: 8% 8% 20%;
    background: radial-gradient(
        ellipse at 50% 34%,
        rgba(249, 245, 238, 0.96) 0%,
        rgba(249, 245, 238, 0.84) 30%,
        rgba(249, 245, 238, 0.45) 54%,
        transparent 74%
    );
}

[data-theme="dark"] .hero-art {
    background:
        linear-gradient(180deg, rgba(20, 31, 28, 0.42) 0%, rgba(20, 31, 28, 0.15) 44%, rgba(15, 26, 24, 0.28) 100%),
        url('../images/madventures-hero-landscape-generated.webp') center bottom / cover no-repeat;
}

/* First-load hero build animation */
.hero-art {
    background:
        linear-gradient(168deg, #f8f3eb 0%, #ede8de 52%, #dcd4c6 100%);
}

.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 12;
    background: url('../images/madventures-hero-landscape-generated.webp') center bottom / cover no-repeat;
    opacity: 0;
    pointer-events: none;
    animation: heroArtworkSettle 620ms ease-out 1560ms both;
}

.hero-build {
    position: absolute;
    inset: 0;
    background-image: url('../images/madventures-hero-landscape-generated.webp');
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateY(62px) scale(1.012);
    filter: saturate(0.72) contrast(0.96);
    will-change: opacity, transform, filter;
    animation: heroLayerRise 1100ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.hero-build-sky {
    background:
        radial-gradient(ellipse at 58% 30%, rgba(201, 98, 47, 0.08), transparent 19%),
        linear-gradient(168deg, #f8f3eb 0%, #ede8de 56%, #dcd4c6 100%);
    clip-path: inset(0 0 40% 0);
    transform: none;
    filter: saturate(0.7);
    z-index: 0;
    animation: heroSkyFill 900ms ease-out both;
}

.hero-build-range-far {
    clip-path: polygon(0 54%, 5% 44%, 19% 64%, 28% 54%, 40% 44%, 50% 61%, 62% 58%, 70% 67%, 75% 64%, 83% 66%, 92% 60%, 100% 62%, 100% 74%, 0 74%);
    z-index: 2;
    animation-delay: 820ms;
}

.hero-build-range-back {
    clip-path: polygon(0 59%, 7% 48%, 20% 66%, 32% 54%, 41% 42%, 52% 70%, 64% 62%, 72% 68%, 79% 66%, 89% 60%, 100% 63%, 100% 84%, 0 84%);
    z-index: 3;
    animation-delay: 620ms;
}

.hero-build-range-mid {
    clip-path: polygon(0 68%, 6% 54%, 15% 59%, 26% 78%, 37% 70%, 48% 60%, 59% 75%, 69% 66%, 78% 67%, 88% 70%, 100% 65%, 100% 94%, 0 94%);
    z-index: 4;
    animation-delay: 420ms;
}

.hero-build-range-near {
    clip-path: polygon(0 79%, 12% 65%, 25% 77%, 34% 74%, 46% 68%, 57% 86%, 69% 78%, 82% 66%, 100% 75%, 100% 100%, 0 100%);
    z-index: 5;
    animation-delay: 230ms;
}

.hero-build-range-front {
    clip-path: polygon(0 86%, 12% 77%, 25% 88%, 36% 91%, 48% 87%, 58% 93%, 72% 84%, 84% 76%, 100% 86%, 100% 100%, 0 100%);
    z-index: 6;
    animation-delay: 90ms;
}

.hero-build-path {
    clip-path: polygon(45% 58%, 57% 58%, 62% 100%, 30% 100%, 38% 77%, 49% 69%);
    transform: translateY(42px) scale(1.01);
    filter: brightness(1.08) saturate(0.86);
    z-index: 7;
    animation-delay: 760ms;
}

.hero-build-sun {
    width: clamp(128px, 13vw, 188px);
    aspect-ratio: 1;
    inset: auto 14.4% 29.5% auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at 58% 38%, rgba(232, 146, 70, 0.88) 0 18%, rgba(197, 106, 48, 0.92) 44%, rgba(154, 82, 42, 0.96) 100%);
    clip-path: none;
    transform: translateY(42px) scale(0.96);
    filter: saturate(0.78) contrast(0.97);
    z-index: 1;
    animation: heroSunAppear 980ms cubic-bezier(0.19, 1, 0.22, 1) 1020ms both;
}

.hero-content,
.hero-content.reveal,
.hero-content.reveal.visible {
    opacity: 0;
    transform: translateY(22px);
    animation: heroContentEnter 1000ms cubic-bezier(0.18, 0.82, 0.18, 1) 360ms both;
}

.hero .brand-title .mad,
.hero .brand-title .ventures {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    animation: heroTextRise 920ms cubic-bezier(0.18, 0.82, 0.18, 1) both;
}

.hero .brand-title .mad {
    animation-delay: 520ms;
}

.hero .brand-title .ventures {
    animation-delay: 1040ms;
}

.hero .eyebrow,
.hero .hero-copy,
.hero .hero-actions {
    opacity: 0;
    transform: translateY(14px);
    animation: heroTextRise 900ms cubic-bezier(0.18, 0.82, 0.18, 1) both;
}

.hero .eyebrow {
    animation-delay: 420ms;
}

.hero .hero-copy {
    animation-delay: 1160ms;
}

.hero .hero-actions {
    animation-delay: 1320ms;
}

@keyframes heroSkyFill {
    from {
        opacity: 0;
        filter: saturate(0.35);
    }
    to {
        opacity: 1;
        filter: saturate(1);
    }
}

@keyframes heroLayerRise {
    from {
        opacity: 0;
        transform: translateY(62px) scale(1.012);
        filter: saturate(0.72) contrast(0.96);
    }
    62% {
        opacity: 1;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: saturate(1) contrast(1);
    }
}

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

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

@keyframes heroSunAppear {
    from {
        opacity: 0;
        transform: translateY(42px) scale(0.96);
        filter: saturate(0.78) contrast(0.97);
    }
    60% {
        opacity: 1;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: saturate(1) contrast(1);
    }
}

@keyframes heroArtworkSettle {
    from {
        opacity: 0;
        filter: saturate(0.96) contrast(0.99);
    }
    to {
        opacity: 1;
        filter: saturate(1) contrast(1);
    }
}

[data-theme="dark"] .hero-build {
    opacity: 0;
    mix-blend-mode: normal;
}

[data-theme="dark"] .hero-build-sky {
    background:
        radial-gradient(ellipse at 58% 30%, rgba(201, 98, 47, 0.08), transparent 18%),
        linear-gradient(168deg, #182420 0%, #141f1c 60%, #0f1a18 100%);
}

/* Hero paper-theater layers: actual transparent PNG sheets, not cropped slices */
.hero-art::after {
    display: none;
}

.hero-build {
    display: none;
}

.hero-layer-sky {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(248, 243, 235, 0.18), rgba(238, 229, 213, 0.08)),
        url('../images/hero-layers/hero-layer-sky-texture.webp') center bottom / cover no-repeat,
        #f4ecdc;
    opacity: 1;
    animation: none;
}

.hero-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0;
    transform: translate3d(0, 64px, 0);
    filter: saturate(0.92) contrast(0.985);
    pointer-events: none;
    user-select: none;
    will-change: opacity, transform, filter;
    backface-visibility: hidden;
    animation: heroSheetRise 1160ms cubic-bezier(0.2, 0.86, 0.18, 1) both;
}

.hero-layer-final {
    position: absolute;
    inset: 0;
    z-index: 8;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    transform: translateZ(0);
    will-change: opacity;
    backface-visibility: hidden;
    animation: heroFinalLock 520ms cubic-bezier(0.22, 1, 0.36, 1) 1980ms both;
}

.hero-layer-7 {
    z-index: 1;
    animation-name: heroSunLayerRise;
    animation-delay: 1060ms;
    animation-duration: 1240ms;
}

.hero-layer-6 {
    z-index: 2;
    animation-delay: 560ms;
    animation-name: heroFarSheetRise;
    animation-duration: 1240ms;
}

.hero-layer-5 {
    z-index: 3;
    animation-delay: 480ms;
    animation-name: heroFarSheetRise;
    animation-duration: 1180ms;
}

.hero-layer-4 {
    z-index: 4;
    animation-delay: 450ms;
}

.hero-layer-3 {
    z-index: 5;
    animation-delay: 340ms;
}

.hero-layer-2 {
    z-index: 6;
    animation-delay: 210ms;
}

.hero-layer-8 {
    z-index: 6;
    animation-name: heroRiverRise;
    animation-delay: 420ms;
    animation-duration: 1080ms;
}

.hero-layer-1 {
    z-index: 7;
    animation-delay: 80ms;
}

@keyframes heroSheetRise {
    from {
        opacity: 0;
        transform: translate3d(0, 64px, 0);
        filter: saturate(0.92) contrast(0.985);
    }
    38% {
        opacity: 1;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: saturate(1) contrast(1);
    }
}

@keyframes heroFarSheetRise {
    from {
        opacity: 0;
        transform: translate3d(0, 36px, 0);
        filter: saturate(0.96) contrast(0.995);
    }
    30% {
        opacity: 1;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: saturate(1) contrast(1);
    }
}

@keyframes heroRiverRise {
    from {
        opacity: 0;
        transform: translate3d(0, 26px, 0);
        filter: saturate(0.94) contrast(0.98);
    }
    42% {
        opacity: 1;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: saturate(1) contrast(1);
    }
}

@keyframes heroSunLayerRise {
    from {
        opacity: 0;
        transform: translate3d(0, 170px, 0);
        filter: saturate(0.96) contrast(0.99);
    }
    0.5% {
        opacity: 1;
        transform: translate3d(0, 170px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: saturate(1) contrast(1);
    }
}

@keyframes heroFinalLock {
    0% {
        opacity: 0;
    }
    35% {
        opacity: 0.18;
    }
    68% {
        opacity: 0.62;
    }
    100% {
        opacity: 1;
    }
}

/* Compact logo lockups for header and footer */
:root {
    --brand-font: Montserrat, "DM Sans", Inter, system-ui, sans-serif;
}

.brand,
.footer-logo {
    font-family: var(--brand-font);
    font-size: clamp(1.08rem, 1.25vw, 1.32rem);
    gap: 0.72rem;
    min-width: auto;
    letter-spacing: 0;
}

.brand img {
    width: clamp(58px, 3.5vw, 72px);
}

.footer-logo img {
    width: clamp(66px, 5vw, 86px);
}

.brand span,
.footer-logo span {
    font-family: var(--brand-font);
    font-weight: 300;
    letter-spacing: 0;
    color: var(--rust);
}

.brand strong,
.footer-logo strong {
    font-family: var(--brand-font);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--teal);
    margin-right: 0.16em;
}

.footer-logo {
    font-size: clamp(1.35rem, 1.85vw, 1.72rem);
    opacity: 1;
    margin-bottom: 1.35rem;
}

.footer-logo strong {
    color: rgba(247, 239, 230, 0.82);
}

.footer-logo span {
    color: #c77743;
}

.site-footer {
    background:
        radial-gradient(ellipse at 16% 16%, rgba(185, 103, 53, 0.13), transparent 30%),
        linear-gradient(180deg, #172622 0%, #111d1a 100%);
    padding-top: clamp(64px, 8vw, 96px);
}

.footer-brand {
    max-width: 520px;
}

.footer-brand p {
    max-width: 460px;
    color: rgba(247, 239, 230, 0.72);
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.site-footer nav a {
    color: rgba(247, 239, 230, 0.68);
}

.site-footer > p {
    color: rgba(247, 239, 230, 0.56);
}

/* Footer closing section */
.site-footer {
    display: block;
    padding: 0;
    background:
        radial-gradient(ellipse at 18% 14%, rgba(185, 103, 53, 0.16), transparent 32%),
        radial-gradient(ellipse at 86% 20%, rgba(110, 143, 154, 0.08), transparent 36%),
        linear-gradient(180deg, #1a2a26 0%, #101b18 100%);
}

.footer-cta,
.footer-bottom,
.site-footer > p {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

.footer-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(24px, 5vw, 72px);
    padding: clamp(64px, 9vw, 112px) 0 clamp(42px, 6vw, 72px);
    border-bottom: 1px solid rgba(247, 239, 230, 0.08);
}

.footer-cta .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -0.4rem;
    color: #d18a58;
}

.footer-cta .eyebrow::before {
    background: #d18a58;
}

.footer-cta h2 {
    max-width: 940px;
    margin: 0;
    color: #f7efe6;
    font-size: clamp(2.7rem, 5.6vw, 6.5rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.footer-cta .button {
    white-space: nowrap;
}

.footer-bottom {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(260px, 1fr);
    align-items: start;
    gap: clamp(32px, 7vw, 100px);
    padding: clamp(36px, 6vw, 70px) 0;
}

.footer-brand {
    max-width: 520px;
}

.footer-logo {
    margin-bottom: 1.1rem;
}

.footer-brand p {
    max-width: 460px;
    margin: 0;
    color: rgba(247, 239, 230, 0.66);
}

.site-footer nav {
    display: grid;
    grid-template-columns: repeat(5, auto);
    justify-content: end;
    gap: clamp(1rem, 2.4vw, 2rem);
    padding-top: 0.4rem;
}

.site-footer nav a {
    font-weight: 600;
}

.site-footer > p {
    padding: 1.35rem 0 2rem !important;
    border-top: 1px solid rgba(247, 239, 230, 0.08) !important;
    color: rgba(247, 239, 230, 0.48);
}

@media (max-width: 900px) {
    .footer-cta,
    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .footer-cta .button {
        width: fit-content;
    }

    .site-footer nav {
        justify-content: start;
        grid-template-columns: repeat(2, auto);
    }
}

/* Hero-style brand lockups for header and footer */
.brand,
.footer-logo {
    gap: clamp(0.85rem, 1.2vw, 1.15rem);
    min-width: auto;
    text-decoration: none;
}

.brand img,
.footer-logo img {
    aspect-ratio: auto;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 6px 12px rgba(16, 27, 24, 0.08));
}

.brand img {
    width: clamp(82px, 5.2vw, 112px);
    height: auto;
}

.footer-logo img {
    width: clamp(92px, 6.4vw, 132px);
    height: auto;
}

.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.22em;
    font-family: var(--display);
    line-height: 0.9;
    letter-spacing: 0;
    white-space: nowrap;
}

.brand .brand-wordmark {
    font-size: clamp(1.95rem, 2.6vw, 3rem);
}

.footer-logo .brand-wordmark {
    font-size: clamp(2.15rem, 3.1vw, 3.65rem);
}

.brand-mad,
.brand strong,
.footer-logo strong {
    color: var(--teal);
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: 0.025em;
    margin-right: 0;
}

.brand-ventures {
    color: var(--rust);
    font-family: var(--display);
    font-style: italic;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.footer-logo .brand-mad {
    color: rgba(247, 239, 230, 0.86);
}

.footer-logo .brand-ventures {
    color: #d0844e;
}

@media (max-width: 1100px) {
    .brand img {
        width: 78px;
    }

    .brand .brand-wordmark {
        font-size: 2rem;
    }
}

@media (max-width: 700px) {
    .brand {
        gap: 0.7rem;
    }

    .brand img {
        width: 66px;
    }

    .brand .brand-wordmark {
        font-size: 1.55rem;
    }

    .footer-logo img {
        width: 84px;
    }

    .footer-logo .brand-wordmark {
        font-size: 2rem;
    }
}

/* Responsive stability and product art layering */
.product-feature {
    isolation: isolate;
}

.product-feature::after {
    z-index: 0;
    opacity: 0.58;
}

.product-feature > .section-heading,
.product-feature > .product-grid {
    position: relative;
    z-index: 1;
}

.product-feature .product-card {
    position: relative;
    z-index: 2;
    background-color: var(--paper);
}

.project-card,
.product-card,
.journal-card,
.feature-card,
.social-link,
.button {
    min-width: 0;
}

.product-grid,
.card-grid,
.intro-grid,
.journal-row,
.service-rail,
.social-links {
    min-width: 0;
}

.product-card h2,
.product-card h3,
.project-card h2,
.project-card h3,
.journal-card h3,
.social-copy strong,
.footer-cta h2,
.page-hero h1,
.studio-intro h2 {
    overflow-wrap: anywhere;
    text-wrap: balance;
}

@media (max-width: 1180px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav {
        gap: 0.25rem;
    }

    .site-nav a,
    .cart-link,
    .icon-button {
        padding-inline: 0.55rem;
    }
}

@media (max-width: 920px) {
    .site-header {
        min-height: 72px;
        gap: 1rem;
    }

    .site-nav {
        inset: 72px 0 auto 0;
        max-height: calc(100svh - 72px);
        overflow-y: auto;
        box-shadow: 0 24px 60px rgba(22, 36, 31, 0.12);
    }

    .product-grid,
    .card-grid.three,
    .journal-row,
    .service-rail,
    .split-band,
    .two-column,
    .contact-layout,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
    }

    .product-feature::after {
        width: 46vw;
        height: 46vw;
        right: -18vw;
        top: 8%;
    }

    .product-lightbox {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(52px, 1fr) auto auto auto minmax(24px, 1fr);
    }

    .product-lightbox__frame {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .product-lightbox__frame img {
        max-height: 62vh;
    }

    .product-lightbox__prev,
    .product-lightbox__next {
        grid-row: 3;
    }

    .product-lightbox__prev {
        grid-column: 1;
        justify-self: end;
    }

    .product-lightbox__next {
        grid-column: 2;
        justify-self: start;
    }

    .product-lightbox__thumbs {
        grid-column: 1 / -1;
        grid-row: 4;
    }
}

@media (max-width: 700px) {
    html,
    body,
    main {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .site-header,
    .page-hero,
    .hero,
    .section {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .section,
    .footer-cta,
    .footer-bottom,
    .site-footer > p {
        width: min(100% - 32px, 1240px);
    }

    .page-hero {
        padding-inline: 16px;
    }

    .page-hero.compact h1 {
        width: min(100%, 340px);
        max-width: min(100%, calc(100vw - 32px));
        font-size: clamp(1.95rem, 8.2vw, 2.65rem);
        line-height: 1.03;
        margin-inline: auto;
    }

    .page-hero p:not(.eyebrow) {
        width: min(100%, 328px);
        max-width: min(100%, calc(100vw - 32px));
    }

    .hero {
        min-height: min(820px, calc(100svh - 72px));
        padding-inline: 16px;
    }

    .hero-content {
        width: min(100%, 358px);
        max-width: 100%;
        margin-inline: auto;
    }

    .hero-copy {
        max-width: 100% !important;
        font-size: clamp(1rem, 4.4vw, 1.2rem) !important;
        overflow-wrap: normal;
    }

    .hero-actions {
        width: min(100%, 300px);
        margin-inline: auto;
    }

    .hero-actions .button {
        width: 100%;
        max-width: 100%;
    }

    .brand .brand-wordmark {
        display: inline-flex;
        font-size: clamp(1.28rem, 6.8vw, 1.55rem);
    }

    .brand img {
        width: clamp(54px, 15vw, 66px);
    }

    .product-card,
    .project-card,
    .journal-card,
    .feature-card {
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }

    .product-grid,
    .card-grid,
    .journal-row,
    .filter-bar {
        width: 100%;
        max-width: calc(100vw - 32px);
        margin-inline: auto;
    }

    .product-grid {
        max-width: min(100%, 312px);
    }

    .product-card .button {
        width: 100%;
        max-width: 100%;
    }

    .product-feature::after {
        width: 68vw;
        height: 68vw;
        right: -32vw;
        top: 6%;
        opacity: 0.34;
    }

    .studio-intro {
        gap: 1.5rem;
    }

    .studio-intro h2 {
        font-size: clamp(2.25rem, 9.4vw, 3.1rem);
        line-height: 1.02;
        max-width: 100%;
    }
}

@media (min-width: 701px) and (max-width: 920px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .site-header {
        padding-inline: 14px;
    }

    .brand {
        gap: 0.55rem;
    }

    .brand .brand-wordmark {
        display: inline-flex;
        font-size: clamp(1.12rem, 6.4vw, 1.34rem);
    }

    .brand img {
        width: 52px;
    }

    .footer-logo {
        gap: 0.65rem;
    }

    .footer-logo .brand-wordmark {
        font-size: 1.65rem;
    }

    .footer-logo img {
        width: 70px;
    }

    .hero-content {
        width: min(100%, 332px);
    }

    .hero-actions {
        width: min(100%, 288px);
    }

    .page-hero.compact h1 {
        width: min(100%, 320px);
    }

    .page-hero p:not(.eyebrow) {
        width: min(100%, 300px);
    }

    .product-grid {
        max-width: min(100%, 300px);
    }

    .studio-intro h2 {
        font-size: clamp(2.15rem, 9vw, 2.75rem);
    }
}

/* Hero performance pass: keep the look, reduce scroll-time paint work */
.site-header {
    background: color-mix(in srgb, var(--cream) 96%, transparent);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.button.ghost {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(249, 245, 238, 0.82);
}

.hero {
    contain: paint;
}

.hero::before {
    filter: none;
    opacity: 0.78;
}

.hero-layer {
    filter: none;
    will-change: opacity, transform;
}

.hero-layer-final {
    will-change: opacity;
}

.hero.hero-settled .hero-layer,
.hero.hero-settled .hero-layer-sky {
    display: none;
}

.hero.hero-settled .hero-layer-final {
    opacity: 1;
    animation: none;
    will-change: auto;
}

.hero.hero-settled .hero-content,
.hero.hero-settled .brand-title .mad,
.hero.hero-settled .brand-title .ventures,
.hero.hero-settled .eyebrow,
.hero.hero-settled .hero-copy,
.hero.hero-settled .hero-actions {
    will-change: auto;
}

@keyframes heroSheetRise {
    from {
        opacity: 0;
        transform: translate3d(0, 64px, 0);
    }
    38% {
        opacity: 1;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heroFarSheetRise {
    from {
        opacity: 0;
        transform: translate3d(0, 36px, 0);
    }
    30% {
        opacity: 1;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heroRiverRise {
    from {
        opacity: 0;
        transform: translate3d(0, 26px, 0);
    }
    42% {
        opacity: 1;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heroSunLayerRise {
    from {
        opacity: 0;
        transform: translate3d(0, 170px, 0);
    }
    0.5% {
        opacity: 1;
        transform: translate3d(0, 170px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@supports (content-visibility: auto) {
    .intro-grid,
    .work-section,
    .services-showcase,
    .social-hub,
    .product-feature,
    .journal-strip,
    .contact-band,
    .trust-band,
    .site-footer {
        content-visibility: auto;
        contain-intrinsic-size: auto 760px;
    }

    .work-section,
    .product-feature {
        contain-intrinsic-size: auto 980px;
    }
}

/* Anchor targets land on the actual section content, not the padded wrapper. */
.section {
    scroll-margin-top: 24px;
}

@media (max-width: 920px) {
    .section {
        scroll-margin-top: 12px;
    }
}

/* Dark mode hero: preserve the warm brand artwork instead of washing it gray. */
[data-theme="dark"] .hero {
    background: #f4ecdc;
    color: #26322f;
}

[data-theme="dark"] .hero-art,
[data-theme="dark"] .hero-layer-sky {
    background:
        linear-gradient(180deg, rgba(248, 243, 235, 0.58) 0%, rgba(248, 243, 235, 0.18) 46%, rgba(238, 233, 223, 0) 100%),
        url('../images/madventures-hero-landscape-generated.webp') center bottom / cover no-repeat,
        #f4ecdc !important;
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(
        ellipse at 50% 34%,
        rgba(249, 245, 238, 0.90) 0%,
        rgba(249, 245, 238, 0.70) 30%,
        rgba(249, 245, 238, 0.30) 54%,
        transparent 74%
    ) !important;
    opacity: 0.72;
}

[data-theme="dark"] .hero .brand-title .mad {
    color: #405653;
}

[data-theme="dark"] .hero .brand-title .ventures {
    color: #a9562c;
}

[data-theme="dark"] .hero .eyebrow {
    color: #a9562c;
}

[data-theme="dark"] .hero .hero-copy {
    color: #26322f;
}

[data-theme="dark"] .hero .button.ghost {
    color: #26322f;
    background: rgba(249, 245, 238, 0.84);
    border-color: rgba(64, 86, 83, 0.22);
}

[data-theme="dark"] .brand strong {
    color: #f2ebe0;
}

/* Contact page: compact split layout with a subtle firefly atmosphere. */
.contact-page {
    position: relative;
    isolation: isolate;
    width: min(1320px, calc(100% - 48px));
    min-height: calc(100svh - 76px);
    margin-inline: auto;
    padding: clamp(42px, 6.5vw, 86px) 0 clamp(56px, 7vw, 96px);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.85fr);
    gap: clamp(28px, 6vw, 76px);
    align-items: start;
    overflow: visible;
}

.contact-page::before {
    content: '';
    position: absolute;
    inset: -5% -4% 0;
    z-index: -2;
    background: none;
    opacity: 0;
    pointer-events: none;
}

.contact-fireflies {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: none;
    pointer-events: none;
    overflow: visible;
}

.contact-fireflies span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(245, 201, 139, 0.82);
    box-shadow: 0 0 16px rgba(245, 201, 139, 0.58);
    opacity: 0;
    animation: fireflyDrift 7.5s ease-in-out infinite;
}

.contact-fireflies span:nth-child(1) { left: 8%; top: 14%; animation-delay: 0.1s; }
.contact-fireflies span:nth-child(2) { left: 18%; top: 56%; width: 4px; height: 4px; animation-delay: 1.4s; }
.contact-fireflies span:nth-child(3) { left: 32%; top: 30%; animation-delay: 2.1s; }
.contact-fireflies span:nth-child(4) { left: 47%; top: 66%; width: 3px; height: 3px; animation-delay: 0.8s; }
.contact-fireflies span:nth-child(5) { left: 68%; top: 18%; animation-delay: 2.8s; }
.contact-fireflies span:nth-child(6) { left: 84%; top: 44%; width: 4px; height: 4px; animation-delay: 1.1s; }
.contact-fireflies span:nth-child(7) { left: 11%; top: 78%; width: 3px; height: 3px; animation-delay: 3.3s; }
.contact-fireflies span:nth-child(8) { left: 38%; top: 10%; width: 4px; height: 4px; animation-delay: 4.2s; }
.contact-fireflies span:nth-child(9) { left: 58%; top: 48%; width: 3px; height: 3px; animation-delay: 2.5s; }
.contact-fireflies span:nth-child(10) { left: 76%; top: 72%; animation-delay: 3.7s; }
.contact-fireflies span:nth-child(11) { left: 91%; top: 26%; width: 3px; height: 3px; animation-delay: 5s; }
.contact-fireflies span:nth-child(12) { left: 4%; top: 43%; width: 4px; height: 4px; animation-delay: 4.8s; }

.contact-intro {
    padding-top: 0;
}

.contact-intro h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3.15rem, 7vw, 7.6rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.contact-intro > p:not(.eyebrow) {
    max-width: 620px;
    color: color-mix(in srgb, var(--ink) 76%, var(--teal));
    font-size: clamp(1.04rem, 1.45vw, 1.22rem);
    line-height: 1.72;
    margin: 1.25rem 0 0;
}

.contact-direct {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.75rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    box-shadow: 0 14px 36px rgba(22, 36, 31, 0.06);
}

.contact-direct span,
.contact-side-kicker {
    color: var(--rust);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-direct a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.contact-panel {
    display: grid;
    gap: 1rem;
}

.contact-page .contact-form {
    border-radius: 14px;
    padding: clamp(20px, 3vw, 34px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.68) inset,
        0 24px 72px rgba(22, 36, 31, 0.10);
}

.contact-page label {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.contact-page input,
.contact-page select,
.contact-page textarea {
    border-radius: 10px;
    background: color-mix(in srgb, var(--paper) 88%, var(--cream));
}

.contact-page textarea {
    resize: vertical;
}

.contact-page .button {
    width: 100%;
    margin-top: 0.2rem;
}

.contact-page .contact-side {
    border-radius: 14px;
    padding: clamp(20px, 3vw, 30px);
    background:
        radial-gradient(ellipse at 88% 18%, rgba(185, 103, 53, 0.14), transparent 42%),
        var(--paper);
}

.contact-page .contact-side h2 {
    margin: 0.45rem 0 0.65rem;
    font-size: clamp(1.7rem, 2.8vw, 2.55rem);
    line-height: 1.02;
}

.contact-page .contact-side p {
    color: var(--muted);
    margin: 0;
    line-height: 1.65;
}

.dream-mark {
    position: relative;
    width: clamp(112px, 12vw, 160px);
    height: clamp(112px, 12vw, 160px);
    display: grid;
    place-items: center;
    margin: 0 0 1.35rem clamp(8px, 1.2vw, 20px);
}

.dream-mark::before {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255, 235, 194, 0.52) 0%, rgba(185, 103, 53, 0.16) 42%, transparent 70%);
    filter: blur(16px);
    transform: scale(1.1);
    animation: dreamGlow 4.8s ease-in-out infinite;
}

.dream-halo {
    position: absolute;
    inset: 18%;
    border: 1px solid rgba(245, 201, 139, 0.34);
    border-top-color: rgba(185, 103, 53, 0.72);
    border-radius: 50%;
    transform: rotate(-16deg);
    animation: dreamOrbit 8s linear infinite;
}

.dream-bulb {
    position: relative;
    z-index: 1;
    width: clamp(68px, 6.7vw, 94px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: var(--rust);
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 239, 204, 0.92), rgba(249, 245, 238, 0.62) 38%, transparent 39%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(249, 245, 238, 0.66)),
        var(--paper);
    border: 1px solid color-mix(in srgb, var(--rust) 34%, var(--line));
    border-radius: 50%;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 12px 28px rgba(22, 36, 31, 0.10),
        0 0 34px rgba(245, 201, 139, 0.20);
}

.dream-bulb::before,
.dream-bulb::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.dream-bulb::before {
    width: 74%;
    aspect-ratio: 1;
    border: 1px solid rgba(245, 201, 139, 0.16);
}

.dream-bulb::after {
    width: 8px;
    height: 8px;
    background: rgba(245, 201, 139, 0.9);
    box-shadow: 0 0 18px rgba(245, 201, 139, 0.76);
    transform: translate(22px, -24px);
}

.dream-bulb svg {
    width: 46%;
    height: 46%;
    stroke-width: 1.8;
}

.dream-spark {
    position: absolute;
    z-index: 2;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f5c98b;
    box-shadow: 0 0 18px rgba(245, 201, 139, 0.85);
    animation: dreamSpark 3.8s ease-in-out infinite;
}

.dream-spark-one { top: 15%; left: 26%; animation-delay: 0.15s; }
.dream-spark-two { top: 26%; right: 18%; animation-delay: 0.8s; }
.dream-spark-three { right: 28%; bottom: 17%; animation-delay: 1.3s; }
.dream-spark-four { left: 18%; bottom: 28%; animation-delay: 2s; }

@keyframes dreamGlow {
    0%, 100% { opacity: 0.45; transform: scale(1.06); }
    50% { opacity: 0.72; transform: scale(1.16); }
}

@keyframes dreamSpark {
    0%, 100% { opacity: 0.2; transform: translate3d(0, 4px, 0) scale(0.78); }
    45% { opacity: 1; transform: translate3d(0, -5px, 0) scale(1); }
}

@keyframes dreamOrbit {
    to { transform: rotate(344deg); }
}

@keyframes fireflyDrift {
    0%, 100% {
        opacity: 0;
        transform: translate3d(0, 8px, 0) scale(0.78);
    }
    18%, 62% {
        opacity: 0.75;
    }
    42% {
        opacity: 1;
        transform: translate3d(18px, -18px, 0) scale(1);
    }
    72% {
        opacity: 0.28;
        transform: translate3d(-10px, -32px, 0) scale(0.82);
    }
}

[data-theme="dark"] .contact-page {
    color: #f7efe6;
}

[data-theme="dark"] .contact-fireflies {
    display: block;
}

[data-theme="dark"] .contact-page::before {
    background:
        radial-gradient(circle at 8% 16%, rgba(245, 201, 139, 0.32) 0 2px, transparent 3px),
        radial-gradient(circle at 24% 42%, rgba(159, 176, 182, 0.20) 0 1.5px, transparent 3px),
        radial-gradient(circle at 48% 18%, rgba(245, 201, 139, 0.22) 0 1.5px, transparent 3px),
        radial-gradient(circle at 72% 32%, rgba(159, 176, 182, 0.18) 0 1.5px, transparent 3px),
        radial-gradient(circle at 92% 12%, rgba(245, 201, 139, 0.18) 0 1.5px, transparent 3px);
    opacity: 0.7;
}

[data-theme="dark"] .contact-intro > p:not(.eyebrow) {
    color: rgba(247, 239, 230, 0.78);
}

[data-theme="dark"] .contact-direct {
    background: rgba(28, 43, 39, 0.72);
    border-color: rgba(242, 235, 224, 0.12);
}

[data-theme="dark"] .contact-direct a {
    color: #f7efe6;
}

[data-theme="dark"] .dream-mark::before {
    background:
        radial-gradient(circle, rgba(247, 239, 230, 0.18) 0%, rgba(185, 103, 53, 0.22) 42%, transparent 72%);
}

[data-theme="dark"] .dream-bulb {
    color: #f1bd82;
    background:
        linear-gradient(145deg, rgba(45, 69, 63, 0.96), rgba(28, 43, 39, 0.86)),
        var(--paper);
    border-color: rgba(247, 239, 230, 0.16);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 12px 34px rgba(0, 0, 0, 0.18),
        0 0 36px rgba(245, 201, 139, 0.18);
}

[data-theme="dark"] .contact-page .contact-form,
[data-theme="dark"] .contact-page .contact-side {
    background-color: rgba(28, 43, 39, 0.82);
}

@media (max-width: 920px) {
    .contact-page {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 32px;
    }

    .contact-intro {
        padding-top: 0;
    }

    .contact-intro h1 {
        max-width: 680px;
    }
}

@media (max-width: 700px) {
    .contact-page {
        width: min(100% - 32px, 1320px);
        padding-top: 28px;
        gap: 24px;
    }

    .contact-intro h1 {
        font-size: clamp(2.55rem, 13vw, 4.2rem);
        line-height: 0.98;
    }

    .contact-direct {
        display: grid;
        align-items: start;
    }

    .dream-mark {
        width: 86px;
        height: 86px;
        margin-bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dream-mark::before,
    .dream-halo,
    .contact-fireflies span,
    .dream-spark {
        animation: none !important;
    }
}

/* Portfolio live-preview cards */
.project-preview-card {
    display: grid;
    align-content: start;
    gap: 0;
    padding: 0;
    color: var(--ink);
}

.project-preview-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.85rem 0;
}

.project-preview-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--rust);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

.project-preview-label svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

.project-preview-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--cream) 74%, transparent);
}

.project-preview-toggle button {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    border: 0;
    border-radius: 999px;
    padding: 0.32rem 0.58rem;
    background: transparent;
    color: color-mix(in srgb, var(--ink) 72%, var(--teal));
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.project-preview-toggle button.is-active {
    background: var(--paper);
    color: var(--rust);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.64) inset, 0 8px 18px rgba(22, 36, 31, 0.08);
}

.project-preview-toggle svg {
    width: 14px;
    height: 14px;
}

.project-preview-stage {
    min-height: clamp(198px, 19vw, 252px);
    display: grid;
    place-items: center;
    margin: 0.78rem 0.85rem 0;
    padding: clamp(10px, 1.4vw, 16px);
    border: 1px solid color-mix(in srgb, var(--line) 82%, var(--teal));
    border-radius: 12px;
    background:
        radial-gradient(ellipse at 50% 8%, rgba(255, 255, 255, 0.72), transparent 44%),
        linear-gradient(145deg, rgba(159, 176, 182, 0.18), rgba(185, 103, 53, 0.07)),
        var(--cream);
    text-decoration: none;
    overflow: hidden;
}

.project-device {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    border-radius: 13px;
    background: #172622;
    box-shadow:
        0 16px 34px rgba(22, 36, 31, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.16) inset;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-radius 0.35s ease,
                transform 0.35s ease;
}

.project-browser-chrome {
    position: absolute;
    inset: 0 0 auto;
    height: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-inline: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.project-browser-chrome span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(247, 239, 230, 0.64);
}

.project-screen {
    position: absolute;
    inset: 25px 7px 7px;
    display: block;
    border-radius: 7px;
    background: #e8e4d9;
    overflow: hidden;
}

.project-preview-image,
.project-card .project-preview-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    background: var(--cream);
    object-fit: cover;
    object-position: top center;
    transform: scale(1.01) translate3d(0, 0, 0);
    transition: transform 5.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-preview-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.project-preview-card:hover .project-preview-image,
.project-preview-card:focus-within .project-preview-image {
    transform: scale(1.05) translate3d(0, -9%, 0);
}

.project-preview-card.preview-loaded:hover .project-preview-frame,
.project-preview-card.preview-loaded:focus-within .project-preview-frame {
    opacity: 1;
}

.project-preview-card[data-preview-mode="mobile"] .project-device {
    width: auto;
    height: calc(clamp(198px, 19vw, 252px) - 20px);
    aspect-ratio: 9 / 16;
    border-radius: 22px;
}

.project-preview-card[data-preview-mode="mobile"] .project-browser-chrome {
    height: 22px;
    justify-content: center;
}

.project-preview-card[data-preview-mode="mobile"] .project-browser-chrome span {
    display: none;
}

.project-preview-card[data-preview-mode="mobile"] .project-browser-chrome::before {
    content: '';
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(247, 239, 230, 0.42);
}

.project-preview-card[data-preview-mode="mobile"] .project-screen {
    inset: 22px 6px 6px;
    border-radius: 16px;
}

.project-preview-card[data-preview-mode="mobile"] .project-preview-image {
    transform: scale(1.24) translate3d(0, 0, 0);
}

.project-preview-card[data-preview-mode="mobile"]:hover .project-preview-image,
.project-preview-card[data-preview-mode="mobile"]:focus-within .project-preview-image {
    transform: scale(1.29) translate3d(0, -10%, 0);
}

.project-card-body {
    display: grid;
    align-content: start;
    padding: 1rem;
}

.project-card-body h2 a,
.project-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.project-card-body p {
    margin: 0;
}

.project-card-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-card-actions .text-link {
    font-size: 0.9rem;
}

.project-card-actions .text-link.muted {
    color: color-mix(in srgb, var(--ink) 68%, var(--teal));
}

[data-theme="dark"] .project-preview-toggle {
    background: rgba(20, 31, 28, 0.62);
}

[data-theme="dark"] .project-preview-toggle button.is-active {
    background: rgba(247, 239, 230, 0.08);
}

[data-theme="dark"] .project-preview-stage {
    background:
        radial-gradient(ellipse at 50% 8%, rgba(247, 239, 230, 0.08), transparent 48%),
        linear-gradient(145deg, rgba(159, 176, 182, 0.12), rgba(185, 103, 53, 0.09)),
        var(--deep);
}

@media (max-width: 700px) {
    .project-preview-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-preview-toggle {
        width: 100%;
    }

    .project-preview-toggle button {
        flex: 1;
    }

    .project-preview-stage {
        min-height: 220px;
    }

    .project-preview-card[data-preview-mode="mobile"] .project-device {
        height: 204px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-device,
    .project-preview-image,
    .project-preview-frame {
        transition: none !important;
    }
}

/* Real captured scroll previews replace cropped/iframe previews. */
.project-preview-card {
    min-width: 0;
}

.project-preview-topline {
    gap: 0.5rem;
}

.project-preview-label {
    min-width: 0;
    font-size: 0.62rem;
    letter-spacing: 0.11em;
    white-space: nowrap;
}

.project-preview-toggle {
    flex: 0 0 auto;
}

.project-preview-toggle button {
    width: 34px;
    min-height: 30px;
    padding: 0;
}

.project-preview-toggle button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.project-preview-stage {
    --preview-device-height: clamp(188px, 15vw, 232px);
    min-height: calc(var(--preview-device-height) + 28px);
}

.project-device {
    width: min(100%, 380px);
    height: var(--preview-device-height);
    aspect-ratio: auto;
}

.project-preview-card[data-preview-mode="mobile"] .project-device {
    width: auto;
    height: var(--preview-device-height);
}

.project-preview-scroll,
.project-card .project-preview-scroll {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: initial;
    object-position: top left;
    border: 0;
    border-radius: 0;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    animation-name: projectPreviewScroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-fill-mode: both;
    animation-play-state: paused;
    will-change: transform;
}

.project-preview-desktop {
    animation-duration: var(--preview-desktop-duration, 36s);
}

.project-preview-mobile {
    animation-duration: var(--preview-mobile-duration, 46s);
}

.project-preview-card[data-preview-mode="desktop"] .project-preview-desktop,
.project-preview-card[data-preview-mode="mobile"] .project-preview-mobile {
    opacity: 1;
}

.project-preview-card[data-preview-mode="desktop"]:hover .project-preview-desktop,
.project-preview-card[data-preview-mode="desktop"]:focus-within .project-preview-desktop,
.project-preview-card[data-preview-mode="mobile"]:hover .project-preview-mobile,
.project-preview-card[data-preview-mode="mobile"]:focus-within .project-preview-mobile {
    animation-play-state: running;
}

.project-preview-card:hover img.project-preview-scroll,
.project-preview-card:focus-within img.project-preview-scroll {
    transform: translate3d(0, 0, 0);
}

.project-card-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.project-card-actions {
    justify-content: space-between;
}

.project-card-actions .text-link {
    white-space: nowrap;
}

@keyframes projectPreviewScroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, var(--preview-scroll-distance, -55%), 0); }
}

@media (min-width: 1181px) {
    .work-section,
    .portfolio-grid-section {
        width: min(1440px, calc(100% - 56px));
    }

    .work-section {
        grid-template-columns: minmax(340px, 0.72fr) minmax(0, 2.1fr);
        gap: clamp(26px, 3vw, 48px);
    }

    .work-section .card-grid.three,
    .portfolio-grid-section .card-grid.three {
        gap: clamp(1rem, 1.45vw, 1.35rem);
    }

    .work-section .project-preview-stage,
    .portfolio-grid-section .project-preview-stage {
        --preview-device-height: clamp(190px, 14.7vw, 242px);
    }

    .work-section .project-device,
    .portfolio-grid-section .project-device {
        width: min(100%, 400px);
    }
}

@media (min-width: 1500px) {
    .work-section {
        grid-template-columns: minmax(360px, 0.72fr) minmax(0, 2.1fr);
    }
}

@media (min-width: 1181px) and (max-width: 1360px) {
    .project-preview-stage {
        --preview-device-height: clamp(180px, 14vw, 214px);
    }

    .project-card-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }
}

@media (max-width: 700px) {
    .project-preview-topline {
        align-items: center;
        flex-direction: row;
    }

    .project-preview-toggle {
        width: auto;
    }

    .project-preview-toggle button {
        flex: 0 0 34px;
    }

    .project-preview-stage {
        --preview-device-height: 210px;
        min-height: 238px;
    }

    .project-preview-card[data-preview-mode="mobile"] .project-device {
        height: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-preview-scroll {
        animation: none !important;
    }
}

/* Premium cursor micro-interactions */
@media (hover: hover) and (pointer: fine) {
    html.custom-cursor-enabled,
    html.custom-cursor-enabled body,
    html.custom-cursor-enabled body * {
        cursor: none !important;
    }

    html.custom-cursor-enabled input,
    html.custom-cursor-enabled textarea,
    html.custom-cursor-enabled [contenteditable="true"] {
        cursor: text !important;
    }

    html.custom-cursor-enabled select,
    html.custom-cursor-enabled label {
        cursor: auto !important;
    }

    .mad-cursor {
        --cursor-size: 18px;
        --cursor-bg: rgba(249, 245, 238, 0.12);
        --cursor-border: color-mix(in srgb, var(--teal) 42%, transparent);
        --cursor-ink: var(--teal);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
        width: var(--cursor-size);
        height: var(--cursor-size);
        border: 1px solid var(--cursor-border);
        border-radius: 999px;
        background: var(--cursor-bg);
        color: var(--cursor-ink);
        opacity: 0;
        pointer-events: none;
        transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
        transition:
            width 0.14s ease,
            height 0.14s ease,
            opacity 0.1s ease,
            background-color 0.14s ease,
            border-color 0.14s ease,
            box-shadow 0.14s ease,
            color 0.14s ease;
        contain: layout style paint;
        will-change: transform;
    }

    .mad-cursor::before,
    .mad-cursor::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        pointer-events: none;
        transition:
            width 0.14s ease,
            height 0.14s ease,
            opacity 0.14s ease,
            background-color 0.14s ease,
            border-color 0.14s ease,
            transform 0.14s ease;
    }

    .mad-cursor::before {
        width: 5px;
        height: 5px;
        border-radius: 999px;
        background: currentColor;
        transform: translate(-50%, -50%);
    }

    .mad-cursor::after {
        width: 10px;
        height: 10px;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        opacity: 0;
        transform: translate(-64%, -52%) rotate(45deg) scale(0.55);
    }

    .mad-cursor.is-visible {
        opacity: 1;
    }

    .mad-cursor.is-hidden {
        opacity: 0;
    }

    .mad-cursor.is-link {
        --cursor-size: 34px;
        --cursor-bg: rgba(249, 245, 238, 0.18);
        --cursor-border: color-mix(in srgb, var(--rust) 55%, transparent);
        --cursor-ink: var(--rust);
        box-shadow: 0 8px 30px rgba(22, 36, 31, 0.10);
    }

    .mad-cursor.is-cta,
    .mad-cursor.is-external {
        --cursor-size: 54px;
        --cursor-bg: rgba(185, 103, 53, 0.17);
        --cursor-border: rgba(185, 103, 53, 0.58);
        --cursor-ink: var(--rust);
        box-shadow: 0 14px 42px rgba(185, 103, 53, 0.20);
    }

    .mad-cursor.is-cta::before,
    .mad-cursor.is-external::before {
        width: 0;
        height: 0;
        opacity: 0;
    }

    .mad-cursor.is-cta::after,
    .mad-cursor.is-external::after {
        opacity: 1;
        transform: translate(-64%, -52%) rotate(45deg) scale(1);
    }

    .mad-cursor.is-media {
        --cursor-size: 58px;
        --cursor-bg: color-mix(in srgb, var(--paper) 76%, transparent);
        --cursor-border: color-mix(in srgb, var(--teal) 50%, var(--rust));
        --cursor-ink: var(--teal);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.62) inset,
            0 16px 44px rgba(22, 36, 31, 0.16);
    }

    .mad-cursor.is-media::before {
        width: 15px;
        height: 15px;
        border: 2px solid currentColor;
        border-radius: 999px;
        background: transparent;
        transform: translate(-55%, -55%);
    }

    .mad-cursor.is-media::after {
        width: 8px;
        height: 2px;
        border: 0;
        border-radius: 999px;
        background: currentColor;
        opacity: 1;
        transform: translate(3px, 5px) rotate(45deg);
    }

    .mad-cursor.is-pressed {
        --cursor-size: 28px;
        box-shadow: 0 6px 18px rgba(22, 36, 31, 0.12);
    }

    [data-theme="dark"] .mad-cursor {
        --cursor-bg: rgba(242, 235, 224, 0.10);
        --cursor-border: rgba(242, 235, 224, 0.28);
        --cursor-ink: #f2ebe0;
    }

    [data-theme="dark"] .mad-cursor.is-link,
    [data-theme="dark"] .mad-cursor.is-cta,
    [data-theme="dark"] .mad-cursor.is-external {
        --cursor-ink: #d9a36e;
    }

    [data-theme="dark"] .mad-cursor.is-media {
        --cursor-bg: rgba(28, 43, 39, 0.74);
        --cursor-border: rgba(217, 163, 110, 0.52);
    }
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
    .mad-cursor {
        display: none !important;
    }

    html.custom-cursor-enabled,
    html.custom-cursor-enabled body,
    html.custom-cursor-enabled body * {
        cursor: auto !important;
    }
}

/* Header brand hover: a quiet sun-glow and river-trail moment. */
@media (hover: hover) and (pointer: fine) {
    .site-header .brand {
        position: relative;
        isolation: isolate;
        padding-block: 0.32rem;
        transform: translateZ(0);
    }

    .site-header .brand::before {
        content: '';
        position: absolute;
        z-index: -1;
        left: clamp(-16px, -1vw, -8px);
        top: 50%;
        width: clamp(104px, 7.2vw, 148px);
        height: clamp(54px, 4vw, 78px);
        border-radius: 999px;
        background:
            radial-gradient(circle at 58% 42%, rgba(185, 103, 53, 0.32), transparent 34%),
            radial-gradient(ellipse at 36% 58%, rgba(159, 176, 182, 0.34), transparent 58%);
        filter: blur(10px);
        opacity: 0;
        transform: translate3d(-8px, -50%, 0) scale(0.82);
        transition: opacity 0.34s ease, transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
    }

    .site-header .brand img,
    .site-header .brand-wordmark,
    .site-header .brand-mad,
    .site-header .brand-ventures {
        position: relative;
        z-index: 1;
    }

    .site-header .brand img {
        transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), filter 0.42s ease;
    }

    .site-header .brand-wordmark {
        padding-bottom: 0.2rem;
    }

    .site-header .brand-wordmark::before {
        content: '';
        position: absolute;
        left: 0.08em;
        right: -0.02em;
        bottom: -0.18rem;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, var(--teal) 16%, var(--rust) 70%, transparent);
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left center;
        transition: opacity 0.18s ease, transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .site-header .brand-wordmark::after {
        content: '';
        position: absolute;
        left: 0.04em;
        bottom: -0.36rem;
        width: 0.38rem;
        height: 0.38rem;
        border-radius: 999px;
        background: var(--rust);
        box-shadow: 0 0 14px rgba(185, 103, 53, 0.35);
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.72);
        pointer-events: none;
    }

    .site-header .brand-ventures {
        overflow: clip;
    }

    .site-header .brand-ventures::after {
        content: '';
        position: absolute;
        inset: -18% -42%;
        background: linear-gradient(105deg, transparent 34%, rgba(255, 239, 203, 0.78) 48%, transparent 62%);
        opacity: 0;
        transform: translateX(-112%) skewX(-10deg);
        pointer-events: none;
    }

    .site-header .brand:hover::before,
    .site-header .brand:focus-visible::before {
        opacity: 1;
        transform: translate3d(0, -50%, 0) scale(1);
    }

    .site-header .brand:hover img,
    .site-header .brand:focus-visible img {
        transform: translate3d(0, -2px, 0) rotate(-0.6deg);
        filter:
            drop-shadow(0 9px 18px rgba(16, 27, 24, 0.14))
            drop-shadow(0 0 14px rgba(185, 103, 53, 0.16));
    }

    .site-header .brand:hover .brand-wordmark::before,
    .site-header .brand:focus-visible .brand-wordmark::before {
        opacity: 0.86;
        transform: scaleX(1);
    }

    .site-header .brand:hover .brand-wordmark::after,
    .site-header .brand:focus-visible .brand-wordmark::after {
        animation: brandTrailDot 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .site-header .brand:hover .brand-ventures::after,
    .site-header .brand:focus-visible .brand-ventures::after {
        animation: brandSunSheen 0.86s ease both;
    }

    [data-theme="dark"] .site-header .brand::before {
        background:
            radial-gradient(circle at 58% 42%, rgba(217, 132, 78, 0.30), transparent 34%),
            radial-gradient(ellipse at 36% 58%, rgba(247, 239, 230, 0.14), transparent 60%);
    }

    [data-theme="dark"] .site-header .brand-wordmark::before {
        background: linear-gradient(90deg, transparent, rgba(247, 239, 230, 0.62) 12%, #d0844e 72%, transparent);
    }
}

@keyframes brandTrailDot {
    0% {
        opacity: 0;
        left: 0.04em;
        transform: scale(0.72);
    }
    18% {
        opacity: 1;
    }
    78% {
        opacity: 1;
        left: calc(100% - 0.32rem);
        transform: scale(0.82);
    }
    100% {
        opacity: 0;
        left: calc(100% + 0.16rem);
        transform: scale(0.62);
    }
}

@keyframes brandSunSheen {
    0% {
        opacity: 0;
        transform: translateX(-112%) skewX(-10deg);
    }
    22% {
        opacity: 0.72;
    }
    100% {
        opacity: 0;
        transform: translateX(112%) skewX(-10deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header .brand,
    .site-header .brand img,
    .site-header .brand::before,
    .site-header .brand-wordmark::before,
    .site-header .brand-wordmark::after,
    .site-header .brand-ventures::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Homepage scripture band */
.scripture-band {
    position: relative;
    z-index: 1;
    width: min(1180px, 100% - 48px);
    margin: clamp(34px, 5vw, 72px) auto 0;
    padding: clamp(26px, 4.8vw, 54px);
    display: grid;
    grid-template-columns: minmax(170px, 0.38fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 4.25rem);
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--paper) 94%, white) 0%, color-mix(in srgb, var(--cream) 86%, var(--paper)) 100%);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.58) inset,
        0 24px 70px rgba(22, 36, 31, 0.08);
}

.scripture-band::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 42%;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(159, 176, 182, 0.06), rgba(64, 86, 83, 0.12));
    clip-path: polygon(0 78%, 12% 44%, 24% 72%, 42% 34%, 56% 76%, 72% 48%, 88% 70%, 100% 42%, 100% 100%, 0 100%);
    opacity: 0.7;
}

.scripture-band::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(185, 103, 53, 0.08);
    border-radius: 14px;
    pointer-events: none;
}

.scripture-kicker,
.scripture-copy {
    position: relative;
    z-index: 1;
}

.scripture-kicker {
    display: grid;
    gap: 0.65rem;
    padding-left: clamp(18px, 2.5vw, 30px);
    border-left: 2px solid var(--rust);
}

.scripture-kicker span {
    color: var(--rust);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.scripture-kicker strong {
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.3vw, 2.35rem);
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.scripture-copy {
    max-width: 790px;
}

.scripture-copy p {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(1.8rem, 3.8vw, 4.35rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.03em;
}

.scripture-copy span {
    display: block;
    margin-top: clamp(1rem, 2vw, 1.4rem);
    color: color-mix(in srgb, var(--ink) 70%, var(--teal));
    font-weight: 600;
    font-size: clamp(0.95rem, 1.25vw, 1.08rem);
    letter-spacing: 0.03em;
}

[data-theme="dark"] .scripture-band {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--paper) 90%, #263a35) 0%, color-mix(in srgb, var(--cream) 86%, #0f1a18) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 24px 70px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .scripture-band::before {
    background:
        linear-gradient(180deg, rgba(159, 176, 182, 0.05), rgba(9, 16, 14, 0.34));
}

[data-theme="dark"] .scripture-copy span {
    color: rgba(247, 239, 230, 0.72);
}

@media (max-width: 820px) {
    .scripture-band {
        grid-template-columns: 1fr;
        width: min(100% - 36px, 720px);
        margin-top: 34px;
    }

    .scripture-kicker {
        max-width: 360px;
    }
}

@media (max-width: 520px) {
    .scripture-band {
        width: min(100% - 28px, 420px);
        border-radius: 14px;
    }

    .scripture-copy p {
        font-size: clamp(1.8rem, 11vw, 3.1rem);
    }
}

/* Legal pages */
.legal-hero {
    padding-bottom: clamp(48px, 7vw, 86px);
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.legal-nav {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    background: color-mix(in srgb, var(--paper) 78%, transparent);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 34px rgba(22, 36, 31, 0.06);
}

.legal-nav a {
    color: color-mix(in srgb, var(--ink) 78%, var(--teal));
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.62rem 0.7rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
    color: var(--rust);
    background: rgba(185, 103, 53, 0.08);
}

.legal-content {
    display: grid;
    gap: clamp(1.6rem, 3vw, 2.4rem);
    max-width: 880px;
}

.legal-content section {
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: clamp(1.35rem, 3vw, 2.25rem);
    box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset, 0 12px 38px rgba(22, 36, 31, 0.06);
}

.legal-content h2 {
    margin: 0 0 0.9rem;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.legal-content h3 {
    margin: 1.35rem 0 0.4rem;
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rust);
}

.legal-content p,
.legal-content li {
    color: color-mix(in srgb, var(--ink) 78%, var(--teal));
}

.legal-content p {
    margin: 0 0 1rem;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.legal-content li + li {
    margin-top: 0.45rem;
}

.legal-content a {
    color: var(--rust);
    font-weight: 700;
}

@media (max-width: 820px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-nav {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .legal-nav {
        grid-template-columns: 1fr;
    }
}

/* Contact lightbulb theme easter egg and mobile menu theme alignment */
.dream-theme-toggle {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    appearance: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.dream-theme-toggle .dream-bulb,
.dream-theme-toggle .dream-halo,
.dream-theme-toggle .dream-spark {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
}

.dream-theme-toggle:hover .dream-bulb,
.dream-theme-toggle:focus-visible .dream-bulb {
    transform: translateY(-2px) scale(1.035);
    border-color: color-mix(in srgb, var(--rust) 58%, var(--line));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.78) inset,
        0 16px 34px rgba(22, 36, 31, 0.13),
        0 0 42px rgba(245, 201, 139, 0.32);
}

.dream-theme-toggle:focus-visible {
    outline: none;
}

.dream-theme-toggle:focus-visible .dream-bulb {
    outline: 2px solid color-mix(in srgb, var(--rust) 62%, transparent);
    outline-offset: 5px;
}

[data-theme="dark"] .dream-theme-toggle:hover .dream-bulb,
[data-theme="dark"] .dream-theme-toggle:focus-visible .dream-bulb {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.10) inset,
        0 18px 38px rgba(0, 0, 0, 0.24),
        0 0 48px rgba(245, 201, 139, 0.34);
}

@media (max-width: 920px) {
    .site-nav [data-theme-toggle] {
        width: 52px;
        min-height: 52px;
        padding: 0;
        margin: 0.45rem auto 0.15rem;
        align-self: center;
        border: 1px solid color-mix(in srgb, var(--rust) 20%, var(--line));
        border-radius: 999px;
        background: color-mix(in srgb, var(--paper) 86%, var(--cream));
        box-shadow: 0 8px 22px rgba(22, 36, 31, 0.06);
    }

    .site-nav [data-theme-toggle]:hover,
    .site-nav [data-theme-toggle]:focus-visible {
        color: var(--rust);
        background: color-mix(in srgb, var(--rust) 10%, var(--paper));
    }

    .site-nav [data-theme-toggle] svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 920px) {
    [data-theme="dark"] .site-nav [data-theme-toggle] {
        border-color: rgba(247, 239, 230, 0.12);
        background: rgba(28, 43, 39, 0.82);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
    }
}
