/**
 * WoodSoul — Lovable design system + layout (standard CSS, no Tailwind).
 * Sections use IDs matching the React app (#hero, #works, …) for layout hooks.
 */

/* -------------------------------------------------------------------------- */
/* Design tokens (:root + color aliases)                                      */
/* -------------------------------------------------------------------------- */

:root {
    --radius: 0.25rem;
    --radius-sm: calc(var(--radius) - 2px);
    --radius-md: var(--radius);
    --radius-lg: calc(var(--radius) + 2px);
    --radius-xl: calc(var(--radius) + 6px);

    --background: oklch(0.945 0.012 80);
    --foreground: oklch(0.21 0.005 60);
    --surface: oklch(0.965 0.012 85);
    --surface-elevated: oklch(0.905 0.018 80);
    --card: oklch(0.965 0.012 85);
    --card-foreground: oklch(0.21 0.005 60);
    --popover: oklch(0.965 0.012 85);
    --popover-foreground: oklch(0.21 0.005 60);

    --gold: oklch(0.55 0.075 65);
    --gold-dark: oklch(0.46 0.07 65);

    --primary: oklch(0.55 0.075 65);
    --primary-foreground: oklch(0.985 0.005 85);
    --secondary: oklch(0.905 0.018 80);
    --secondary-foreground: oklch(0.21 0.005 60);

    --muted: oklch(0.905 0.018 80);
    --muted-foreground: oklch(0.5 0.012 70);
    --text-secondary: oklch(0.5 0.012 70);

    --accent: oklch(0.55 0.075 65);
    --accent-foreground: oklch(0.985 0.005 85);

    --destructive: oklch(0.55 0.2 25);
    --destructive-foreground: oklch(0.98 0 0);

    --border: oklch(0 0 0 / 8%);
    --hairline: oklch(0 0 0 / 8%);
    --input: oklch(0 0 0 / 12%);
    --ring: oklch(0.55 0.075 65);

    --font-serif: "Cormorant Garamond", "Canela", Georgia, serif;
    --font-sans: "Inter", -apple-system, system-ui, sans-serif;
    --font-heading: var(--font-serif);

    /* Aliases (Tailwind @theme parity) */
    --color-background: var(--background);
    --color-foreground: var(--foreground);
    --color-card: var(--card);
    --color-card-foreground: var(--card-foreground);
    --color-popover: var(--popover);
    --color-popover-foreground: var(--popover-foreground);
    --color-primary: var(--primary);
    --color-primary-foreground: var(--primary-foreground);
    --color-secondary: var(--secondary);
    --color-secondary-foreground: var(--secondary-foreground);
    --color-muted: var(--muted);
    --color-muted-foreground: var(--muted-foreground);
    --color-accent: var(--accent);
    --color-accent-foreground: var(--accent-foreground);
    --color-destructive: var(--destructive);
    --color-destructive-foreground: var(--destructive-foreground);
    --color-border: var(--border);
    --color-input: var(--input);
    --color-ring: var(--ring);
    --color-surface: var(--surface);
    --color-surface-elevated: var(--surface-elevated);
    --color-gold: var(--gold);
    --color-gold-dark: var(--gold-dark);
    --color-text-secondary: var(--text-secondary);
    --color-hairline: var(--hairline);
}

.dark {
    --background: oklch(0.945 0.012 80);
    --foreground: oklch(0.21 0.005 60);
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
    border-color: var(--color-border);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--color-background);
    color: var(--color-foreground);
    font-family: var(--font-sans);
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
}

a {
    color: inherit;
}

/* -------------------------------------------------------------------------- */
/* Global utilities (Lovable styles.css @layer base)                          */
/* -------------------------------------------------------------------------- */

.label {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-gold);
}

.label-muted {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.label--sm {
    font-size: 10px;
}

.h1 {
    font-size: clamp(44px, 7vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.h2 {
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.015em;
}

.h3 {
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.body-lg {
    font-size: 18px;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

.container-ws {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 24px;
}

@media (min-width: 768px) {
    .container-ws {
        padding-inline: 48px;
    }
}

@media (min-width: 1024px) {
    .container-ws {
        padding-inline: 80px;
    }
}

.section-pad {
    padding-block: 120px;
}

@media (min-width: 1024px) {
    .section-pad {
        padding-block: 200px;
    }
}

.section-pad-xl {
    padding-block: 140px;
}

@media (min-width: 1024px) {
    .section-pad-xl {
        padding-block: 260px;
    }
}

.theme-light {
    --background: oklch(0.945 0.012 80);
    --foreground: oklch(0.21 0.005 60);
    --surface: oklch(0.965 0.012 85);
    --surface-elevated: oklch(0.905 0.018 80);
    --text-secondary: oklch(0.5 0.012 70);
    --muted-foreground: oklch(0.5 0.012 70);
    --hairline: oklch(0 0 0 / 8%);
    --gold: oklch(0.55 0.075 65);
    --gold-dark: oklch(0.46 0.07 65);
    --color-background: var(--background);
    --color-foreground: var(--foreground);
    --color-text-secondary: var(--text-secondary);
    --color-hairline: var(--hairline);
    --color-gold: var(--gold);
    --color-gold-dark: var(--gold-dark);
    --color-surface: var(--surface);
    --color-primary-foreground: var(--primary-foreground);
    background-color: var(--background);
    color: var(--foreground);
}

.theme-light-warm {
    --background: oklch(0.905 0.018 80);
    --foreground: oklch(0.21 0.005 60);
    --surface: oklch(0.945 0.012 80);
    --text-secondary: oklch(0.46 0.012 70);
    --muted-foreground: oklch(0.46 0.012 70);
    --hairline: oklch(0 0 0 / 9%);
    --gold: oklch(0.5 0.08 65);
    --gold-dark: oklch(0.46 0.07 65);
    --color-background: var(--background);
    --color-foreground: var(--foreground);
    --color-text-secondary: var(--text-secondary);
    --color-hairline: var(--hairline);
    --color-gold: var(--gold);
    --color-gold-dark: var(--gold-dark);
    --color-surface: var(--surface);
    --color-primary-foreground: var(--primary-foreground);
    background-color: var(--background);
    color: var(--foreground);
}

.theme-dark {
    --background: oklch(0.16 0.003 60);
    --foreground: oklch(0.93 0.008 85);
    --surface: oklch(0.2 0.004 60);
    --surface-elevated: oklch(0.24 0.005 60);
    --text-secondary: oklch(0.7 0.012 75);
    --muted-foreground: oklch(0.7 0.012 75);
    --hairline: oklch(1 0 0 / 9%);
    --gold: oklch(0.74 0.08 75);
    --gold-dark: oklch(0.62 0.08 70);
    --color-background: var(--background);
    --color-foreground: var(--foreground);
    --color-text-secondary: var(--text-secondary);
    --color-hairline: var(--hairline);
    --color-gold: var(--gold);
    --color-gold-dark: var(--gold-dark);
    --color-surface: var(--surface);
    --color-primary-foreground: oklch(0.16 0.003 60);
    background-color: var(--background);
    color: var(--foreground);
}

.theme-transition {
    background: linear-gradient(
        to bottom,
        oklch(0.945 0.012 80) 0%,
        oklch(0.905 0.018 80) 35%,
        oklch(0.5 0.01 65) 75%,
        oklch(0.16 0.003 60) 100%
    );
    color: oklch(0.21 0.005 60);
}

.hairline {
    border-color: var(--color-hairline);
}

.border-t-hairline {
    border-top: 1px solid var(--color-hairline);
}

.gold-underline {
    position: relative;
    display: inline-block;
}

.gold-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 1px;
    width: 100%;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gold-underline:hover::after {
    transform: scaleX(1);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 1400ms cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 1400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.display {
    font-family: var(--font-serif);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(40px, 6.4vw, 92px);
    line-height: 1.02;
    letter-spacing: -0.022em;
}

.quiet-rule {
    display: block;
    height: 1px;
    width: 64px;
    background: var(--gold);
    opacity: 0.6;
}

.quiet-rule--spaced {
    margin-top: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/* CTA buttons (Lovable CtaButtons)                                           */
/* -------------------------------------------------------------------------- */

.ws-cta-primary,
.ws-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    font-family: var(--font-sans);
}

.ws-cta-primary {
    background-color: var(--gold);
    color: var(--primary-foreground);
    transition: background-color 150ms ease;
}

.ws-cta-primary:hover {
    background-color: var(--gold-dark);
}

.ws-cta-primary .ws-cta-primary__arrow,
.ws-cta-secondary .ws-cta-secondary__arrow {
    display: inline-block;
    transition: transform 700ms ease;
}

.ws-cta-primary:hover .ws-cta-primary__arrow,
.ws-cta-secondary:hover .ws-cta-secondary__arrow {
    transform: translateX(0.25rem);
}

.ws-cta-secondary {
    border: 1px solid color-mix(in oklch, var(--foreground) 20%, transparent);
    color: var(--foreground);
    transition:
        border-color 150ms ease,
        color 150ms ease;
}

.ws-cta-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* -------------------------------------------------------------------------- */
/* Site header                                                                */
/* -------------------------------------------------------------------------- */

.ws-site-header,
.ws-site-footer {
    font-family: var(--font-sans);
}

.ws-site-header {
    --background: oklch(0.945 0.012 80);
    --foreground: oklch(0.21 0.005 60);
    --text-secondary: oklch(0.5 0.012 70);
    --hairline: oklch(0 0 0 / 8%);
    --gold: oklch(0.55 0.075 65);
    --color-gold: var(--gold);
    --color-hairline: var(--hairline);
    --color-text-secondary: var(--text-secondary);
    --color-foreground: var(--foreground);
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 50;
    transition:
        background-color 700ms ease,
        border-color 700ms ease,
        backdrop-filter 700ms ease,
        color 700ms ease;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    color: #1a1a1a;
}

.ws-site-header--scrolled {
    background-color: rgba(244, 241, 234, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

body.admin-bar .ws-site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .ws-site-header {
        top: 46px;
    }
}

.ws-site-header__banner {
    display: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .ws-site-header__banner {
        display: block;
    }
}

.ws-site-header__banner-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 1.75rem;
}

.ws-site-header__collections-link {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 150ms ease;
}

.ws-site-header__collections-link:hover {
    color: var(--gold);
}

.ws-site-header__bar {
    display: flex;
    height: 5rem;
    align-items: center;
    justify-content: space-between;
}

.ws-site-header__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.ws-site-header__logo {
    height: 1.75rem;
    width: auto;
    user-select: none;
    display: block;
}

@media (min-width: 768px) {
    .ws-site-header__logo {
        height: 2rem;
    }
}

.ws-site-header__nav-desktop {
    display: none;
    align-items: center;
    gap: 2.25rem;
}

@media (min-width: 1024px) {
    .ws-site-header__nav-desktop {
        display: flex;
    }
}

.ws-site-header__nav-desktop a {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: color-mix(in oklch, var(--foreground) 80%, transparent);
    text-decoration: none;
    transition: color 150ms ease;
}

.ws-site-header__nav-desktop a:hover {
    color: var(--color-gold);
}

.ws-site-header__menu-toggle {
    display: flex;
    padding: 0.5rem;
    margin-right: -0.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1024px) {
    .ws-site-header__menu-toggle {
        display: none;
    }
}

.ws-site-header__burger {
    width: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ws-site-header__burger span {
    height: 1px;
    background-color: currentColor;
    transition:
        transform 150ms ease,
        opacity 150ms ease;
}

.ws-site-header--menu-open .ws-site-header__burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.ws-site-header--menu-open .ws-site-header__burger span:nth-child(2) {
    opacity: 0;
}

.ws-site-header--menu-open .ws-site-header__burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.ws-site-header__mobile-panel {
    display: block;
    overflow: hidden;
    background-color: color-mix(in oklch, var(--background) 95%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-hairline);
    max-height: 0;
    transition: max-height 500ms ease;
}

@media (min-width: 1024px) {
    .ws-site-header__mobile-panel {
        display: none;
    }
}

.ws-site-header--menu-open .ws-site-header__mobile-panel {
    max-height: 28rem;
}

.ws-site-header__mobile-nav {
    display: flex;
    flex-direction: column;
    padding-block: 1.5rem;
    gap: 1rem;
}

.ws-site-header__mobile-nav a {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: color-mix(in oklch, var(--foreground) 85%, transparent);
    text-decoration: none;
    padding-block: 0.25rem;
    transition: color 150ms ease;
}

.ws-site-header__mobile-nav a:hover {
    color: var(--color-gold);
}

.ws-site-header__mobile-nav .ws-site-header__collections-link--mobile {
    margin-top: 0.75rem;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding-block: 0;
}

/* -------------------------------------------------------------------------- */
/* Site footer                                                                */
/* -------------------------------------------------------------------------- */

.ws-site-footer__grid-main {
    display: grid;
    gap: 4rem;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

@media (min-width: 1024px) {
    .ws-site-footer__grid-main {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 5rem;
        padding-top: 8rem;
        padding-bottom: 5rem;
        align-items: center;
    }
}

.ws-site-footer__intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 24rem;
}

@media (min-width: 1024px) {
    .ws-site-footer__intro {
        grid-column: span 4 / span 4;
    }
}

.ws-site-footer__logo {
    width: 100%;
    opacity: 0.9;
    display: block;
    max-width: 70%;
}

.ws-site-footer__intro-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.ws-site-footer__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .ws-site-footer__columns {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ws-site-footer__columns {
        grid-column: span 8 / span 8;
    }
}

.ws-site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ws-site-footer__col a {
    font-size: 14px;
    color: var(--foreground);
    text-decoration: none;
    transition: color 150ms ease;
}

.ws-site-footer__col a:hover {
    color: var(--gold);
}

.ws-site-footer__col span.ws-site-footer__static {
    font-size: 14px;
    color: var(--text-secondary);
}

.ws-site-footer__bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    padding-block: 2rem;
    border-top: 1px solid var(--color-hairline);
}

@media (min-width: 640px) {
    .ws-site-footer__bottom {
        flex-direction: row;
        align-items: center;
    }
}

.ws-site-footer__copyright {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.ws-site-footer__back-top {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 150ms ease;
}

.ws-site-footer__back-top:hover {
    color: var(--gold);
}

/* Fixed header offset for main content */
#main.site-main,
main#site-main,
main.site-main {
    padding-top: 5rem;
}

@media (min-width: 1024px) {
    #main.site-main,
    main#site-main,
    main.site-main {
        padding-top: calc(5rem + 1.75rem);
    }
}

/* -------------------------------------------------------------------------- */
/* Section: Hero (#hero)                                                      */
/* -------------------------------------------------------------------------- */

#hero.theme-light {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 8rem;
}

@media (min-width: 1024px) {
    #hero.theme-light {
        padding-top: 13rem;
        padding-bottom: 12rem;
    }
}

#hero .container-ws {
    display: grid;
    gap: 4rem;
    align-items: end;
}

@media (min-width: 1024px) {
    #hero .container-ws {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 6rem;
    }

    #hero .container-ws > *:first-child {
        grid-column: span 5;
        padding-bottom: 3rem;
    }

    #hero .container-ws > *:last-child {
        grid-column: span 7;
    }
}

#hero .container-ws > *:first-child {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

#hero .display {
    color: var(--foreground);
}

#hero .container-ws p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    max-width: 28rem;
    color: var(--text-secondary);
}

#hero .ws-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
}

#hero figure {
    position: relative;
    margin: 0;
}

#hero figure img {
    width: 100%;
    height: 68vh;
    object-fit: cover;
}

@media (min-width: 1024px) {
    #hero figure img {
        height: 88vh;
    }
}

#hero figcaption {
    margin-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: var(--text-secondary);
}

#hero figcaption .label-muted--hide-sm {
    display: none;
}

@media (min-width: 768px) {
    #hero figcaption .label-muted--hide-sm {
        display: inline;
    }
}

/* -------------------------------------------------------------------------- */
/* Section: Why Woodsoul (no id in React) — use .ws-why                       */
/* -------------------------------------------------------------------------- */

.ws-why.theme-light-warm {
    padding-block: 7rem;
}

@media (min-width: 1024px) {
    .ws-why.theme-light-warm {
        padding-block: 9rem;
    }
}

.ws-why .ws-why__label-wrap {
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .ws-why .ws-why__label-wrap {
        margin-bottom: 5rem;
    }
}

.ws-why .ws-why__grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 2.5rem;
    row-gap: 4rem;
}

@media (min-width: 640px) {
    .ws-why .ws-why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ws-why .ws-why__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 3.5rem;
    }
}

.ws-why .ws-why__card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 260px;
}

.ws-why .ws-why__icon {
    color: var(--gold);
}

.ws-why .ws-why__icon svg {
    width: 1.75rem;
    height: 1.75rem;
    display: block;
}

.ws-why .ws-why__card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    color: var(--foreground);
}

.ws-why .ws-why__card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.ws-why .ws-why__divider {
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-hairline);
    width: 100%;
}

.ws-why .ws-why__arrow-link {
    display: inline-block;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--gold);
    text-decoration: none;
    transition: transform 150ms ease;
}

.ws-why .ws-why__arrow-link:hover {
    transform: translateX(0.25rem);
}

/* -------------------------------------------------------------------------- */
/* Section: Statement — .ws-statement or #statement                           */
/* -------------------------------------------------------------------------- */

.ws-statement.theme-light.section-pad-xl .container-ws > .reveal,
#statement.theme-light.section-pad-xl .container-ws > .reveal {
    max-width: 56rem;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.ws-statement .display,
#statement .display {
    color: var(--foreground);
}

/* -------------------------------------------------------------------------- */
/* Section: Selected Works (#works)                                           */
/* -------------------------------------------------------------------------- */

#works.theme-light-warm .container-ws > *:first-child {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 6rem;
}

@media (min-width: 1024px) {
    #works.theme-light-warm .container-ws > *:first-child {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        margin-bottom: 8rem;
    }
}

#works.theme-light-warm .container-ws > *:first-child > *:first-child {
    max-width: 36rem;
}

#works.theme-light-warm .container-ws > *:first-child > *:first-child .display {
    margin-top: 2rem;
    color: var(--foreground);
}

#works.theme-light-warm .container-ws > *:first-child > *:nth-child(2) {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    max-width: 24rem;
    color: var(--text-secondary);
}

#works .container-ws > *:last-child {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 2.5rem;
    row-gap: 6rem;
}

@media (min-width: 640px) {
    #works .container-ws > *:last-child {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #works .container-ws > *:last-child {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 4rem;
        row-gap: 8rem;
    }
}

#works .container-ws > *:last-child > * {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#works .container-ws > *:last-child > * > div:first-child {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background-color: var(--surface);
}

#works .container-ws > *:last-child > * > div:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1800ms ease-out;
}

#works .container-ws > *:last-child > *:hover > div:first-child img {
    transform: scale(1.025);
}

#works .container-ws > *:last-child > * > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#works .container-ws > *:last-child > * > div:nth-child(2) h3 {
    margin: 0;
    font-size: 20px;
    color: var(--foreground);
}

#works .container-ws > *:last-child > * > div:nth-child(2) p {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

#works .container-ws > *:last-child > * > div:nth-child(2) > a.label {
    margin-top: 0.5rem;
    align-self: flex-start;
    font-size: 10px;
}

/* -------------------------------------------------------------------------- */
/* Section: In Context (#projects)                                            */
/* -------------------------------------------------------------------------- */

#projects.theme-light .container-ws > *:first-child {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 5rem;
}

@media (min-width: 1024px) {
    #projects.theme-light .container-ws > *:first-child {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        margin-bottom: 7rem;
    }
}

#projects.theme-light .container-ws > *:first-child > *:first-child {
    max-width: 42rem;
}

#projects.theme-light .container-ws > *:first-child > *:first-child .display {
    margin-top: 2rem;
    color: var(--foreground);
}

#projects.theme-light .container-ws > *:first-child > *:nth-child(2) {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    max-width: 24rem;
    color: var(--text-secondary);
}

#projects .container-ws > *:nth-child(2) {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    #projects .container-ws > *:nth-child(2) {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 3rem;
    }

    #projects .container-ws > *:nth-child(2) > *:first-child {
        grid-column: span 7;
    }

    #projects .container-ws > *:nth-child(2) > *:last-child {
        grid-column: span 5;
        display: flex;
        flex-direction: column;
        gap: 4rem;
        padding-top: 3rem;
    }
}

#projects .container-ws > *:nth-child(2) > *:first-child figure {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
}

#projects .container-ws > *:nth-child(2) > *:last-child figure {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0;
}

#projects .container-ws > *:nth-child(2) img {
    width: 100%;
    object-fit: cover;
}

#projects .container-ws > *:nth-child(2) > *:first-child img {
    height: 70vh;
}

@media (min-width: 1024px) {
    #projects .container-ws > *:nth-child(2) > *:first-child img {
        height: 88vh;
    }
}

#projects .container-ws > *:nth-child(2) > *:last-child img {
    height: 42vh;
}

/* -------------------------------------------------------------------------- */
/* Section: Featured (#featured)                                              */
/* -------------------------------------------------------------------------- */

#featured.theme-light-warm .container-ws > *:first-child {
    max-width: 36rem;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    #featured.theme-light-warm .container-ws > *:first-child {
        margin-bottom: 6rem;
    }
}

#featured .container-ws > *:first-child .display {
    color: var(--foreground);
}

#featured .container-ws > *:last-child {
    max-width: 56rem;
    margin-inline: auto;
}

#featured .container-ws > *:last-child figure {
    margin: 0;
}

#featured .container-ws > *:last-child img {
    width: 100%;
    height: 70vh;
    object-fit: contain;
}

@media (min-width: 1024px) {
    #featured .container-ws > *:last-child img {
        height: 90vh;
    }
}

#featured .container-ws > *:last-child figcaption {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

#featured .container-ws > *:last-child figcaption > span:nth-child(2) {
    display: none;
}

@media (min-width: 768px) {
    #featured .container-ws > *:last-child figcaption > span:nth-child(2) {
        display: inline;
    }
}

/* -------------------------------------------------------------------------- */
/* Section: Process (#process)                                                */
/* -------------------------------------------------------------------------- */

#process.theme-light .container-ws > *:first-child {
    max-width: 42rem;
    margin-bottom: 6rem;
}

@media (min-width: 1024px) {
    #process.theme-light .container-ws > *:first-child {
        margin-bottom: 8rem;
    }
}

#process .container-ws > *:first-child .display {
    margin-top: 2rem;
    color: var(--foreground);
}

#process .container-ws > *:last-child {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 2.5rem;
    row-gap: 5rem;
}

@media (min-width: 768px) {
    #process .container-ws > *:last-child {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#process .container-ws > *:last-child > * {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#process .container-ws > *:last-child > * > div:first-child {
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

#process .container-ws > *:last-child > * > div:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#process .container-ws > *:last-child > * > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#process .container-ws > *:last-child > * > div:nth-child(2) > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

#process .container-ws > *:last-child > * > div:nth-child(2) > div:first-child > span:first-child {
    font-size: 1.5rem;
    color: var(--gold);
}

#process .container-ws > *:last-child > * > div:nth-child(2) > div:first-child > span:nth-child(2) {
    height: 1px;
    flex: 1 1 auto;
    background-color: color-mix(in oklch, var(--foreground) 15%, transparent);
}

#process .container-ws > *:last-child > * > div:nth-child(2) h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    color: var(--foreground);
}

#process .container-ws > *:last-child > * > div:nth-child(2) p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 20rem;
}

/* -------------------------------------------------------------------------- */
/* Section: For Architects (#architects)                                      */
/* -------------------------------------------------------------------------- */

#architects.theme-light-warm .container-ws > div:first-child {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    #architects.theme-light-warm .container-ws > div:first-child {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 5rem;
    }

    #architects .container-ws > div:first-child > *:first-child {
        grid-column: span 5;
    }

    #architects .container-ws > div:first-child > *:last-child {
        grid-column: span 7;
    }
}

#architects .container-ws > div:first-child > *:first-child {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#architects .container-ws > div:first-child > *:first-child .display {
    color: var(--foreground);
}

#architects .container-ws > div:first-child > *:first-child p {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 28rem;
}

#architects .container-ws > div:first-child > *:first-child ul {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#architects .container-ws > div:first-child > *:first-child ul li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: 15px;
    color: color-mix(in oklch, var(--foreground) 85%, transparent);
    border-top: 1px solid var(--color-hairline);
    padding-top: 1rem;
}

#architects .container-ws > div:first-child > *:first-child ul li > span:first-child {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
    margin-top: 0.125rem;
}

#architects .container-ws > div:first-child > *:first-child a.label {
    margin-top: 1.5rem;
    align-self: flex-start;
}

#architects .container-ws > div:first-child > *:last-child figure {
    margin: 0;
}

#architects .container-ws > div:first-child > *:last-child figure img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
}

@media (min-width: 1024px) {
    #architects .container-ws > div:first-child > *:last-child figure img {
        height: 88vh;
    }
}

/* -------------------------------------------------------------------------- */
/* Section: Final CTA (#collaborate)                                          */
/* -------------------------------------------------------------------------- */

#collaborate.theme-dark {
    position: relative;
    overflow: hidden;
}

#collaborate.theme-dark > div:first-child {
    position: absolute;
    inset: 0;
}

#collaborate.theme-dark > div:first-child > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

#collaborate.theme-dark > div:first-child::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0e0e0e, rgba(14, 14, 14, 0.7), rgba(14, 14, 14, 0.3));
    pointer-events: none;
}

#collaborate.theme-dark > div:nth-child(2) {
    position: relative;
    padding-block: 140px;
}

@media (min-width: 1024px) {
    #collaborate.theme-dark > div:nth-child(2) {
        padding-block: 260px;
    }
}

#collaborate.theme-dark > div:nth-child(2) .container-ws > .reveal {
    max-width: 48rem;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

#collaborate .display {
    color: var(--foreground);
}

#collaborate.theme-dark > div:nth-child(2) .container-ws .reveal > p {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    max-width: 36rem;
    color: var(--text-secondary);
}

#collaborate.theme-dark > div:nth-child(2) .container-ws .reveal > div:last-of-type {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding-top: 1.5rem;
}

/* -------------------------------------------------------------------------- */
/* Legacy section classes (existing PHP templates)                            */
/* -------------------------------------------------------------------------- */

.hero-section,
.about-section,
.featured-projects-section,
.contact-cta-section {
    padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 72px);
}

.hero-section h1,
.section-inner h2 {
    max-width: 820px;
    margin: 0 0 24px;
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.05;
}

.hero-section h1 {
    font-size: clamp(56px, 9vw, 120px);
}

.section-inner h2 {
    font-size: clamp(36px, 6vw, 72px);
}

.hero-section p,
.section-inner p {
    max-width: 620px;
    font-size: clamp(16px, 1.6vw, 20px);
}

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--color-gold);
    font-size: 13px !important;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    margin-top: 24px;
    padding: 14px 22px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--background);
    background: var(--gold);
    font-family: var(--font-sans);
    transition:
        background-color 150ms ease,
        color 150ms ease;
}

.button:hover {
    background: transparent;
    color: var(--gold);
}

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

    #works .container-ws > *:last-child > * > div:first-child img {
        transition: none;
    }

    #works .container-ws > *:last-child > *:hover > div:first-child img {
        transform: none;
    }

    .ws-site-header {
        transition: none;
    }

    .ws-site-header__mobile-panel {
        transition: none;
    }

    .gold-underline::after {
        transition: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Modal + Form (Request Collaboration)                                       */
/* -------------------------------------------------------------------------- */

.ws-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ws-modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.ws-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 14, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.ws-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background-color: var(--surface);
    color: var(--foreground);
    padding: 48px clamp(28px, 5vw, 56px);
    box-shadow: 0 30px 80px -20px rgba(14, 14, 14, 0.45);
    transform: translateY(16px);
    transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ws-modal[aria-hidden="false"] .ws-modal__dialog {
    transform: translateY(0);
}

.ws-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: color 150ms ease;
}

.ws-modal__close:hover,
.ws-modal__close:focus-visible {
    color: var(--gold);
    outline: none;
}

.ws-modal__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ws-modal__title {
    margin: 0.25rem 0 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
    color: var(--foreground);
}

.ws-modal__intro {
    margin: 0 0 0.5rem;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 32rem;
}

/* Form */
.ws-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.ws-form__row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ws-form__label {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.ws-form__optional {
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    font-style: italic;
    font-family: var(--font-serif);
    color: color-mix(in oklch, var(--text-secondary) 70%, transparent);
}

.ws-form__input {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--foreground);
    background: transparent;
    border: 0;
    border-bottom: 1px solid color-mix(in oklch, var(--foreground) 18%, transparent);
    padding: 10px 0 12px;
    transition:
        border-color 200ms ease,
        color 200ms ease;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.ws-form__input:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

.ws-form__input::placeholder {
    color: color-mix(in oklch, var(--text-secondary) 70%, transparent);
}

.ws-form__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.ws-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ws-form__status {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    min-height: 1.2em;
}

.ws-form__status--error {
    color: oklch(0.5 0.18 25);
}

.ws-form__status--success {
    color: var(--gold-dark);
}

.ws-form__actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 0.5rem;
}

.ws-form__actions .ws-cta-primary {
    cursor: pointer;
    border: 0;
}

.ws-form__actions .ws-cta-primary[disabled] {
    opacity: 0.6;
    cursor: progress;
}

/* Lock background scroll while open */
html.ws-modal-open,
body.ws-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .ws-modal {
        padding: 0;
        align-items: stretch;
    }

    .ws-modal__dialog {
        max-width: none;
        max-height: 100vh;
        padding: 56px 24px 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-modal,
    .ws-modal__dialog {
        transition: none;
    }
}
