/* ==========================================================================
   Knotting Hill Interiors — Design System
   Editorial magazine aesthetic. Southern luxury. Intentional restraint.
   ========================================================================== */

:root {
    /* Color palette — warm, editorial, confident */
    --ink:      #14100E;    /* near-black, warm undertone */
    --ink-soft: #3A332E;    /* softer text */
    --mute:     #7A7066;    /* muted text, captions */
    --cream:    #F4EEE3;    /* page background */
    --paper:    #FAF6EC;    /* card / surface */
    --shell:    #E9DFCF;    /* subtle bg variant */
    --clay:     #A54A32;    /* primary accent — burnt sienna */
    --clay-dk:  #7C3322;    /* clay hover */
    --sage:     #7A8A6E;    /* secondary accent */
    --blush:    #E9D6C5;    /* soft highlight */
    --mist:     #D4CFC2;    /* borders, dividers */

    /* Typography scale */
    --f-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
    --f-body:    "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --f-mono:    "JetBrains Mono", "Courier New", monospace;

    /* Spacing rhythm — based on 8px with editorial generosity */
    --sp-1: 0.5rem;   /*  8px */
    --sp-2: 1rem;     /* 16px */
    --sp-3: 1.5rem;   /* 24px */
    --sp-4: 2rem;     /* 32px */
    --sp-5: 3rem;     /* 48px */
    --sp-6: 4.5rem;   /* 72px */
    --sp-7: 6rem;     /* 96px */
    --sp-8: 9rem;     /* 144px */

    /* Layout */
    --w-page: 1440px;
    --w-read: 680px;
    --w-wide: 1180px;

    /* Transitions */
    --ease: cubic-bezier(0.22, 0.8, 0.36, 1);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    font-feature-settings: "ss01", "ss03";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }

/* Typography -------------------------------------------------------------- */
.display-xl {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(3.5rem, 10vw, 9rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
    font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.display-l {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.028em;
    font-variation-settings: "opsz" 144, "SOFT" 30;
}
.display-m {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 48, "SOFT" 30;
}
.display-s {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1.15;
    letter-spacing: -0.015em;
}
.eyebrow {
    font-family: var(--f-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clay);
}
.eyebrow--ink { color: var(--ink); }
.lede {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.5;
    font-style: italic;
    color: var(--ink-soft);
    font-variation-settings: "opsz" 14;
}
.caption {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mute);
}

/* Links ------------------------------------------------------------------- */
a.link {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    color: var(--ink);
    transition: color 300ms var(--ease);
}
a.link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: currentColor;
    transform-origin: right;
    transform: scaleX(1);
    transition: transform 500ms var(--ease);
}
a.link:hover { color: var(--clay); }
a.link:hover::after { transform-origin: left; transform: scaleX(1); }

/* Layout ------------------------------------------------------------------ */
.page     { max-width: var(--w-page); margin: 0 auto; }
.wide     { max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--sp-4); }
.read     { max-width: var(--w-read); margin: 0 auto; padding: 0 var(--sp-3); }
.block    { padding: var(--sp-7) 0; }
.block-s  { padding: var(--sp-5) 0; }
.block-l  { padding: var(--sp-8) 0; }

/* Grid helpers */
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ========================================================================
   Site header
   ======================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--cream);
    padding: var(--sp-2) var(--sp-4);
    border-bottom: 1px solid transparent;
    transition: border-color 300ms var(--ease), background 300ms var(--ease);
}
.site-header.scrolled {
    border-color: var(--mist);
    background: rgba(244, 238, 227, 0.92);
    backdrop-filter: blur(8px);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}
.brand {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    line-height: 1;
    display: flex;
    flex-direction: column;
}
.brand-sub {
    font-family: var(--f-body);
    font-size: 0.64rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--mute);
    margin-top: 3px;
}
.nav { display: flex; align-items: center; gap: var(--sp-4); }
.nav a {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    position: relative;
    transition: color 300ms var(--ease);
}
.nav a::after {
    content: "";
    position: absolute;
    left: 50%; right: 50%;
    bottom: -6px;
    height: 1px;
    background: var(--clay);
    transition: all 300ms var(--ease);
}
.nav a:hover { color: var(--clay); }
.nav a:hover::after { left: 0; right: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    background: var(--ink);
    color: var(--cream);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 999px;
    transition: all 300ms var(--ease);
}
.btn:hover { background: var(--clay); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--clay { background: var(--clay); }
.btn--clay:hover { background: var(--clay-dk); }
.btn-arrow {
    display: inline-block;
    margin-left: 2px;
    transition: transform 300ms var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ========================================================================
   Hero (home)
   ======================================================================== */
.hero {
    position: relative;
    padding: var(--sp-7) var(--sp-4) var(--sp-6);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--sp-5);
    align-items: center;
    max-width: var(--w-page);
    margin: 0 auto;
}
.hero-copy > .eyebrow { margin-bottom: var(--sp-3); }
.hero-title {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(3.8rem, 9vw, 8.5rem);
    line-height: 0.88;
    letter-spacing: -0.045em;
    margin-bottom: var(--sp-4);
    font-variation-settings: "opsz" 144, "SOFT" 40;
}
.hero-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--clay);
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero-lede {
    max-width: 520px;
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    line-height: 1.55;
    color: var(--ink-soft);
    margin-bottom: var(--sp-4);
}
.hero-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }

.hero-art {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--shell);
    overflow: hidden;
}
.hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(20, 16, 14, 0.12));
    z-index: 2;
    pointer-events: none;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.03) saturate(1.05); }
.hero-art-caption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    color: var(--cream);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    z-index: 3;
}
.hero-mark {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    font-family: var(--f-display);
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--mute);
    transform: rotate(-5deg);
}
.hero-mark::before {
    content: "— est. ";
}

/* Scrolling marquee-like metric strip below hero */
.hero-strip {
    display: flex;
    gap: var(--sp-6);
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--sp-5) var(--sp-4) 0;
    border-top: 1px solid var(--mist);
    margin-top: var(--sp-6);
}
.metric { text-align: center; }
.metric-number {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 300;
    line-height: 1;
    color: var(--clay);
    letter-spacing: -0.02em;
}
.metric-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mute);
    margin-top: var(--sp-1);
}

/* ========================================================================
   Section headers
   ======================================================================== */
.section-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
    padding: 0 var(--sp-4);
}
.section-head-num {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: 1.8rem;
    color: var(--clay);
    font-style: italic;
    line-height: 1;
}
.section-head-title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.02em;
}
.section-head-link {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ========================================================================
   Feature grid — asymmetric editorial layout
   ======================================================================== */
.features {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--sp-3);
    padding: 0 var(--sp-4);
}
.feature {
    position: relative;
    overflow: hidden;
    background: var(--shell);
}
.feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms var(--ease);
}
.feature:hover img { transform: scale(1.04); }
.feature-body {
    position: absolute;
    left: var(--sp-3);
    bottom: var(--sp-3);
    right: var(--sp-3);
    z-index: 2;
    color: var(--cream);
    text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.55));
    z-index: 1;
    pointer-events: none;
}
.feature-title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.1;
    letter-spacing: -0.015em;
}
.feature-meta {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: var(--sp-1);
}

/* asymmetric placement */
.feature--hero  { grid-column: 1 / span 7; aspect-ratio: 3 / 2.2; }
.feature--tall  { grid-column: 8 / span 5; aspect-ratio: 3 / 4; }
.feature--wide  { grid-column: 1 / span 5; aspect-ratio: 4 / 3; }
.feature--mid   { grid-column: 6 / span 4; aspect-ratio: 4 / 3; }
.feature--edge  { grid-column: 10 / span 3; aspect-ratio: 3 / 4; }

@media (max-width: 900px) {
    .features { grid-template-columns: 1fr; }
    .feature--hero, .feature--tall, .feature--wide, .feature--mid, .feature--edge {
        grid-column: 1 / -1;
        aspect-ratio: 4 / 3;
    }
}

/* ========================================================================
   Journal / Blog cards
   ======================================================================== */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--sp-4) var(--sp-3);
    padding: 0 var(--sp-4);
}
.article-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    text-decoration: none;
    color: var(--ink);
}
.article-card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--shell);
}
.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease);
}
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-cat {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clay);
    margin-top: var(--sp-2);
}
.article-card-title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.15;
    letter-spacing: -0.015em;
    transition: color 300ms var(--ease);
}
.article-card:hover .article-card-title { color: var(--clay); }
.article-card-excerpt {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* magazine-style varied cards for home */
.journal-grid .article-card:nth-child(1) { grid-column: span 6; }
.journal-grid .article-card:nth-child(1) .article-card-img { aspect-ratio: 3 / 2; }
.journal-grid .article-card:nth-child(1) .article-card-title { font-size: 2rem; }
.journal-grid .article-card:nth-child(2),
.journal-grid .article-card:nth-child(3) { grid-column: span 3; }
.journal-grid .article-card:nth-child(n+4) { grid-column: span 4; }

@media (max-width: 900px) {
    .journal-grid .article-card,
    .journal-grid .article-card:nth-child(n) { grid-column: 1 / -1; }
}

/* Compact list variant (used on /journal) */
.journal-list { display: grid; gap: var(--sp-4); padding: 0 var(--sp-4); }
.journal-list .article-card { grid-column: 1 / -1 !important; }
.journal-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); padding: 0 var(--sp-4); }
.journal-cards-3 .article-card { grid-column: auto !important; }
@media (max-width: 900px) {
    .journal-cards-3 { grid-template-columns: 1fr; }
}

/* ========================================================================
   Pull quote
   ======================================================================== */
.quote {
    max-width: 900px;
    margin: var(--sp-7) auto;
    padding: 0 var(--sp-4);
    text-align: center;
}
.quote-body {
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
    position: relative;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
.quote-body::before {
    content: "\201C";
    position: absolute;
    left: -0.5em;
    top: -0.3em;
    font-size: 3em;
    color: var(--clay);
    opacity: 0.25;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
}
.quote-cite {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mute);
    margin-top: var(--sp-4);
}

/* ========================================================================
   Split panel (about/services)
   ======================================================================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--sp-6);
    padding: var(--sp-6) var(--sp-4);
    max-width: var(--w-wide);
    margin: 0 auto;
}
.split--reverse .split-img { order: 2; }
.split-img {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--shell);
    position: relative;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-copy > .eyebrow { margin-bottom: var(--sp-3); }
.split-copy > h2 { margin-bottom: var(--sp-4); }
.split-copy p {
    font-size: 1.02rem;
    color: var(--ink-soft);
    margin-bottom: var(--sp-3);
    max-width: 520px;
}

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: var(--sp-4); }
    .split--reverse .split-img { order: 0; }
}

/* ========================================================================
   Post (single blog) layout
   ======================================================================== */
.post-hero {
    padding: var(--sp-7) var(--sp-4) var(--sp-5);
    max-width: var(--w-read);
    margin: 0 auto;
    text-align: center;
}
.post-hero-cat {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: var(--sp-3);
}
.post-hero-title {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.028em;
    margin-bottom: var(--sp-3);
    font-variation-settings: "opsz" 144, "SOFT" 40;
}
.post-hero-meta {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mute);
}
.post-body {
    max-width: var(--w-read);
    margin: 0 auto;
    padding: var(--sp-4) var(--sp-3) var(--sp-7);
    font-size: 1.05rem;
    line-height: 1.72;
    color: var(--ink);
}
.post-body > * { margin-bottom: 1.3em; }
.post-body h1, .post-body h2, .post-body h3 {
    font-family: var(--f-display);
    font-weight: 400;
    letter-spacing: -0.015em;
    margin-top: 2em;
    margin-bottom: 0.6em;
    line-height: 1.2;
}
.post-body h1 { font-size: 2.2rem; }
.post-body h2 { font-size: 1.8rem; }
.post-body h3 { font-size: 1.4rem; }
.post-body p { margin-bottom: 1.3em; }
.post-body img {
    margin: var(--sp-4) auto;
    max-width: 100%;
    height: auto;
}
.post-body a {
    color: var(--clay);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color 300ms var(--ease);
}
.post-body a:hover { color: var(--clay-dk); }
.post-body blockquote {
    margin: var(--sp-4) 0;
    padding: var(--sp-3) var(--sp-4);
    border-left: 2px solid var(--clay);
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.4;
    color: var(--ink-soft);
}
.post-body ul, .post-body ol {
    padding-left: 1.4em;
    margin-bottom: 1.3em;
}
.post-body li {
    list-style: disc;
    margin-bottom: 0.5em;
}
.post-body hr {
    border: 0;
    height: 1px;
    background: var(--mist);
    margin: var(--sp-5) auto;
    max-width: 200px;
}

/* Post tags */
.post-tags {
    max-width: var(--w-read);
    margin: 0 auto;
    padding: var(--sp-4) var(--sp-3);
    border-top: 1px solid var(--mist);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1);
    align-items: center;
}
.post-tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--mist);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mute);
    transition: all 200ms var(--ease);
}
.post-tag:hover {
    border-color: var(--clay);
    color: var(--clay);
}

/* ========================================================================
   Portfolio
   ======================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5) var(--sp-3);
    padding: 0 var(--sp-4);
}
.portfolio-item {
    display: block;
    text-decoration: none;
    color: var(--ink);
}
.portfolio-item-img {
    aspect-ratio: 4 / 5;
    background: var(--shell);
    overflow: hidden;
    margin-bottom: var(--sp-2);
}
.portfolio-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms var(--ease);
}
.portfolio-item:hover .portfolio-item-img img { transform: scale(1.04); }
.portfolio-item-name {
    font-family: var(--f-display);
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: 400;
    margin-top: var(--sp-2);
}
.portfolio-item-loc {
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mute);
    margin-top: 4px;
}
@media (max-width: 900px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   Contact
   ======================================================================== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    padding: var(--sp-6) var(--sp-4);
    max-width: var(--w-wide);
    margin: 0 auto;
}
.contact-card {
    padding: var(--sp-4);
    background: var(--paper);
    border: 1px solid var(--mist);
}
.contact-card h3 {
    font-family: var(--f-display);
    font-size: 1.2rem;
    margin-bottom: var(--sp-2);
}
.contact-card p, .contact-card a {
    font-size: 0.96rem;
    color: var(--ink-soft);
    line-height: 1.55;
}
.contact-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.contact-form label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 0.4em;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-family: var(--f-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--mist);
    border-radius: 0;
    transition: border-color 200ms var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--clay);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

@media (max-width: 900px) {
    .contact-wrap { grid-template-columns: 1fr; }
}

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding: var(--sp-6) var(--sp-4) var(--sp-4);
    margin-top: var(--sp-7);
}
.footer-inner {
    max-width: var(--w-page);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-5);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid rgba(244, 238, 227, 0.15);
}
.footer-brand .brand { color: var(--cream); }
.footer-brand .brand-sub { color: rgba(244, 238, 227, 0.5); }
.footer-brand p {
    color: rgba(244, 238, 227, 0.65);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-top: var(--sp-3);
    max-width: 380px;
}
.footer-col h4 {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(244, 238, 227, 0.5);
    margin-bottom: var(--sp-3);
    font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6em; }
.footer-col a {
    color: rgba(244, 238, 227, 0.8);
    font-size: 0.92rem;
    transition: color 200ms var(--ease);
}
.footer-col a:hover { color: var(--blush); }
.footer-bottom {
    max-width: var(--w-page);
    margin: 0 auto;
    padding-top: var(--sp-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    color: rgba(244, 238, 227, 0.45);
    flex-wrap: wrap;
    gap: var(--sp-2);
}
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* ========================================================================
   Animations
   ======================================================================== */
@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.rise {
    animation: rise 900ms var(--ease) both;
}
.rise-delay-1 { animation-delay: 150ms; }
.rise-delay-2 { animation-delay: 300ms; }
.rise-delay-3 { animation-delay: 450ms; }
.rise-delay-4 { animation-delay: 600ms; }
.rise-delay-5 { animation-delay: 800ms; }

/* Reveal on scroll (using IntersectionObserver) — only hides when JS is active */
.js-ready .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.js-ready .reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
    .section-head { grid-template-columns: 1fr; align-items: start; gap: var(--sp-1); }
    .section-head-link { justify-self: start; }
    .nav { display: none; }
    .nav-mobile-toggle { display: flex; }
}
.nav-mobile-toggle { display: none; background: none; font-size: 1.3rem; }

/* Decorative flourish SVG helpers */
.flourish {
    display: block;
    width: 80px;
    height: auto;
    color: var(--clay);
    opacity: 0.8;
}
.flourish--center { margin: 0 auto; }

/* ========================================================================
   Gallery grid + lightbox (project pages)
   ======================================================================== */
.gallery-grid {
    columns: 3 280px;
    column-gap: var(--sp-2);
    padding: 0 var(--sp-4);
}
.gallery-item {
    display: block;
    break-inside: avoid;
    margin-bottom: var(--sp-2);
    overflow: hidden;
    background: var(--shell);
    position: relative;
    cursor: zoom-in;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 700ms var(--ease), filter 300ms var(--ease);
}
.gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(0.95);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(20, 16, 14, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms var(--ease);
    backdrop-filter: blur(4px);
}
.lightbox[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: var(--cream);
    font-size: 2rem;
    line-height: 1;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(244, 238, 227, 0.08);
    transition: background 200ms var(--ease);
    z-index: 10;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(244, 238, 227, 0.18); }
.lightbox-close { top: var(--sp-3); right: var(--sp-3); }
.lightbox-prev { left: var(--sp-3); top: 50%; transform: translateY(-50%); font-size: 2.8rem; }
.lightbox-next { right: var(--sp-3); top: 50%; transform: translateY(-50%); font-size: 2.8rem; }

@media (max-width: 560px) {
    .gallery-grid { columns: 1; }
}
