/* =========================================================
   MIISOFA — 3D scroll experience
   ========================================================= */

:root {
    --espresso: #3F2118;
    --espresso-2: #2A1610;
    --espresso-3: #55301F;
    --gold: #D0B98D;
    --gold-2: #B89A66;
    --cream: #F4EEE4;
    --cream-2: #EAE1D3;
    --ink: #2A1B15;
    --muted: #7A685C;
    --line: rgba(63, 33, 24, .14);
    --line-light: rgba(208, 185, 141, .22);

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Outfit", system-ui, sans-serif;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --gutter: clamp(16px, 4vw, 56px);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; color: var(--gold-2); }

.container {
    width: min(1320px, 100%);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

::selection { background: var(--gold); color: var(--espresso); }

/* ---------- shared ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold);
}
.eyebrow i { width: 32px; height: 1px; background: currentColor; display: inline-block; }
.eyebrow--dark { color: var(--gold-2); }

.section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 6vw, 88px);
    line-height: 1;
    letter-spacing: -.01em;
    color: var(--espresso);
    margin-top: 20px;
}
.section-title--light { color: var(--cream); }
.section-title--light em { color: var(--gold); }

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 30px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .04em;
    overflow: hidden;
    isolation: isolate;
    transition: color .5s var(--ease);
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--cream);
    transform: translateY(101%);
    border-radius: inherit;
    transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--gold { background: var(--gold); color: var(--espresso); }
.btn--full { width: 100%; }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--espresso);
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 28px;
}
.loader-logo { width: min(320px, 70vw); opacity: 0; transform: translateY(16px); animation: loaderIn 1.2s var(--ease) .1s forwards; }
.loader-bar { width: min(240px, 60vw); height: 1px; background: rgba(208, 185, 141, .2); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.loader-count { font-size: 12px; letter-spacing: .3em; color: var(--gold); font-variant-numeric: tabular-nums; }
@keyframes loaderIn { to { opacity: 1; transform: none; } }

/* =========================================================
   CURSOR
   ========================================================= */
.cursor-dot,
.cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999; border-radius: 50%; opacity: 0; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor-ring {
    width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border: 1px solid rgba(208, 185, 141, .7);
    display: grid; place-items: center;
    transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s var(--ease);
}
.cursor-ring span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--espresso); opacity: 0; transition: opacity .3s; }
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(208, 185, 141, .15); }
.cursor-ring.is-drag { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--gold); border-color: var(--gold); }
.cursor-ring.is-drag span { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
    .cursor-dot, .cursor-ring { opacity: 1; }
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 100;
    width: min(1320px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 10px 10px 18px;
    border-radius: 999px;
    background: rgba(63, 33, 24, .82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--line-light);
    transition: transform .6s var(--ease);
}
.header.is-hidden { transform: translate(-50%, calc(-100% - 24px)); }
.header-logo img { height: 36px; width: auto; }
.nav { display: flex; gap: 36px; }
.nav a {
    position: relative;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: .8;
    transition: opacity .3s;
}
.nav a::after {
    content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px; border-radius: 999px;
    background: var(--gold); color: var(--espresso);
    font-size: 13px; font-weight: 500; letter-spacing: .04em;
}
.header-cta i { transition: transform .4s var(--ease); }
.header-cta:hover i { transform: translateX(4px); }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); position: relative; }
.menu-toggle span { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--espresso); transition: transform .4s var(--ease); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 90;
    background: var(--espresso);
    display: flex; flex-direction: column; justify-content: center; gap: 8px;
    padding: 0 28px;
    clip-path: circle(0 at calc(100% - 46px) 42px);
    transition: clip-path .8s var(--ease);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 46px) 42px); }
.mobile-menu a { font-family: var(--serif); font-size: 52px; color: var(--cream); line-height: 1.2; }
.mobile-menu p { margin-top: 32px; color: var(--gold); font-size: 14px; }

/* =========================================================
   FILM 01 — light reveal
   Full-frame photographs only: nothing is cut out, so edges stay photographic.
   ========================================================= */
.film { position: relative; height: 420vh; background: #D6C5AF; }
.film-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* a 2400×1349 frame that covers the viewport; on tall screens the wall/floor
   colours continue past the photo so it never letterboxes */
.frame,
.fabric-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100vw, calc(100vh * 2400 / 1349));
    width: max(100vw, calc(100svh * 2400 / 1349));
    aspect-ratio: 2400 / 1349;
    transform: translate(-50%, -50%);
}
.frame-ext {
    position: absolute; inset: -120% -10%;
    background: linear-gradient(to bottom, #CDBBA4 0%, #D8C8B3 49%, #DCCCB8 53%, #E6DACB 56%, #E2D5C4 100%);
}
.shot,
.fabric-shot {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    -webkit-mask: linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent);
    mask: linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent);
}
.shot--room,
.film .frame-ext { filter: brightness(.8) sepia(.18) saturate(1.05); }
/* feathered reveal: --r is the position of the light's edge, sweeping right → left */
.shot--sofa {
    --r: 115%;
    -webkit-mask: linear-gradient(90deg, transparent calc(var(--r) - 9%), #000 calc(var(--r) + 9%));
    mask: linear-gradient(90deg, transparent calc(var(--r) - 9%), #000 calc(var(--r) + 9%));
}

/* the band of window light that "paints" the sofa into the room */
.light-bar {
    position: absolute; top: -10%; bottom: -10%;
    left: 100%;
    width: 22%;
    transform: translateX(-50%);
    background:
        linear-gradient(90deg, transparent, rgba(255, 228, 185, .35) 35%, rgba(255, 244, 222, .75) 50%, rgba(255, 228, 185, .35) 65%, transparent);
    mix-blend-mode: soft-light;
    filter: blur(10px);
    pointer-events: none;
    opacity: 0;
}

.grain {
    position: absolute; inset: -50%;
    pointer-events: none;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -3%); }
    60% { transform: translate(-2%, -1%); }
    80% { transform: translate(3%, 3%); }
}
.film-shade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(42, 22, 16, .38), rgba(42, 22, 16, .05) 55%, transparent),
        radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(42, 22, 16, .25) 100%);
}

.film-copy { position: absolute; z-index: 2; }
.film-copy--hero { left: var(--gutter); bottom: 12vh; max-width: 720px; }
.film-copy--hero .eyebrow { color: var(--gold); }
.hero-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(56px, 9.2vw, 148px);
    line-height: .92;
    letter-spacing: -.02em;
    color: #FBF6EE;
    margin: 22px 0 22px;
    text-shadow: 0 2px 40px rgba(42, 22, 16, .25);
}
.hero-title em { color: var(--gold); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); }
.hero-sub { font-size: 17px; max-width: 400px; color: #F4EEE4; opacity: .9; }

.scroll-cue { display: flex; align-items: center; gap: 14px; margin-top: 36px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #F4EEE4; opacity: .8; }
.scroll-cue-line { position: relative; width: 1px; height: 48px; background: rgba(244, 238, 228, .3); overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; inset: 0; background: #F4EEE4; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.film-copy--reveal {
    left: 50%; bottom: 7vh;
    transform: translateX(-50%);
    text-align: center;
    width: min(900px, calc(100% - 32px));
    opacity: 0; visibility: hidden;
}
.film-copy--reveal h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(36px, 4.4vw, 66px); line-height: 1.04;
    color: var(--espresso); margin-top: 12px;
}

.film-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 3.2vh; height: 1px; background: rgba(63, 33, 24, .14); }
.film-progress span { display: block; height: 100%; background: var(--espresso); transform: scaleX(0); transform-origin: left; }

/* =========================================================
   FILM 02 — details fan (3D deck that opens on scroll)
   ========================================================= */
.fan { position: relative; height: 300vh; background: var(--cream); }
.fan-sticky {
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
    display: grid; grid-template-rows: auto 1fr; align-content: center;
    padding: 110px var(--gutter) 40px;
}
.fan-head { text-align: center; }
.fan-head .section-title { font-size: clamp(40px, 5.4vw, 80px); }
.fan-deck {
    position: relative;
    perspective: 1600px;
    display: grid; place-items: center;
    min-height: 0;
}
.fan-card {
    position: absolute;
    width: min(26vw, 340px, 38vh);
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    background: var(--cream-2);
    box-shadow: 0 40px 80px -30px rgba(63, 33, 24, .45);
    transform-style: preserve-3d;
    will-change: transform;
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; }
.fan-card figcaption {
    position: absolute; left: 14px; right: 14px; bottom: 14px;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 999px;
    background: rgba(244, 238, 228, .86); backdrop-filter: blur(8px);
    font-size: 13px; color: var(--espresso);
}
.fan-card figcaption span { font-family: var(--serif); font-style: italic; color: var(--gold-2); font-size: 16px; }

/* =========================================================
   FILM 03 — fabric (iris reveal between real photographs)
   ========================================================= */
.fabric { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #D6C5AF; }
.fabric-shot {
    will-change: clip-path;
    -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-composite: source-in;
    mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent);
    mask-composite: intersect;
}
.fabric .frame-ext { inset: -120% -90%; }
@media (min-width: 861px) {
    /* sofa sits right of centre so the panel rests on open wall */
    .fabric-frame { width: 72vw; left: 62vw; }
}
.fabric-panel {
    position: absolute; z-index: 2;
    left: var(--gutter); bottom: 6vh;
    width: min(420px, calc(100% - 32px));
    padding: 30px 32px;
    border-radius: 26px;
    background: rgba(244, 238, 228, .78);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: 0 30px 80px -30px rgba(63, 33, 24, .35);
}
.fabric-panel h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; color: var(--espresso); margin: 12px 0 20px; }
.fabric-panel h2 em { display: block; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
    position: relative; width: 44px; height: 44px; border-radius: 50%;
    background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 14px -6px rgba(0, 0, 0, .35);
    transition: transform .4s var(--ease);
}
.swatch::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 1.5px solid var(--espresso); opacity: 0; transform: scale(.8);
    transition: opacity .4s, transform .4s var(--ease);
}
.swatch:hover { transform: translateY(-3px); }
.swatch.is-active::after { opacity: 1; transform: scale(1); }
.swatch:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 8px; }
.swatch-name { margin-top: 16px; font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--espresso); }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { background: var(--espresso); color: var(--gold); overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line-light); }
.marquee-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); font-style: italic; white-space: nowrap; }
.marquee-track i { font-style: normal; font-size: 18px; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   STATEMENT
   ========================================================= */
.statement { padding: clamp(100px, 16vw, 200px) 0; }
.statement-text {
    margin-top: 32px;
    font-family: var(--serif);
    font-size: clamp(34px, 5.2vw, 76px);
    line-height: 1.12;
    color: var(--espresso);
    max-width: 1100px;
}
.statement-text .w { opacity: .14; transition: none; }

/* =========================================================
   CRAFT
   ========================================================= */
.craft { padding-bottom: clamp(100px, 14vw, 180px); }
.craft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.craft-media { position: sticky; top: 110px; }
.reveal-img { overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 5; clip-path: inset(100% 0 0 0 round 24px); }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
/* blurred placeholder shown until the full image has loaded, then the image fades in sharp */
.craft .reveal-img { background: #b5a48c url("data:image/webp;base64,UklGRr4AAABXRUJQVlA4ILIAAAAwBQCdASogABEAPtFgqE+oJSOiKAgBABoJZwCo9AyPQZ/hkAvcVrqec8ohF/rBGXhWAAD+4kwCeCI0yHzAVs1ehiLHVf99PfVHJDlUHq6yKD34lHd/4c7+nWa/OSPR1V0LtQ37xYB2xyIbtR/NLoqZ/tToigXBT+JP7YB25uegctq8iPQNeRMkm/q+5FMnEZi7m7lklbQR19gwa9+bXoLzuoLwSbB1VtHWPLaeOB5yhGAA") center / cover; }
.reveal-img img { opacity: 0; filter: blur(14px); transition: opacity 1.6s var(--ease), filter 1.8s var(--ease); }
.reveal-img.is-loaded img { opacity: 1; filter: blur(0); }
.craft-badge {
    position: absolute; right: -24px; bottom: 40px;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 22px 12px 12px; border-radius: 999px;
    background: var(--espresso); color: var(--cream);
    font-size: 13px; line-height: 1.25; letter-spacing: .04em;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5);
    animation: float 6s ease-in-out infinite;
}
.craft-badge img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
@keyframes float { 50% { transform: translateY(-10px); } }

.craft-list { margin-top: 48px; border-top: 1px solid var(--line); }
.craft-item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.craft-item > span { font-family: var(--serif); font-size: 22px; color: var(--gold-2); font-style: italic; }
.craft-item h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--espresso); line-height: 1.1; margin-bottom: 8px; }
.craft-item p { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.stats strong { font-family: var(--serif); font-size: clamp(44px, 5vw, 72px); font-weight: 400; color: var(--espresso); line-height: 1; }
.stats sup { font-family: var(--serif); font-size: 26px; color: var(--gold-2); }
.stats span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   COLLECTION — horizontal scroll
   ========================================================= */
.collection { background: var(--espresso); color: var(--cream); padding-top: clamp(90px, 12vw, 150px); overflow: hidden; }
.collection-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 60px; }
.collection-head p { max-width: 360px; opacity: .7; }
.h-scroll { padding-bottom: clamp(90px, 12vw, 150px); }
.h-track { display: flex; gap: 28px; padding-inline: var(--gutter); width: max-content; will-change: transform; }

.product-card { width: clamp(280px, 30vw, 420px); flex-shrink: 0; }
.product-img { overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 5; background: var(--espresso-2); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.product-card:hover .product-img img { transform: scale(1.12); }
.product-meta { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; padding: 22px 4px 0; }
.product-meta span { grid-row: span 2; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 18px; }
.product-meta h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.product-meta p { font-size: 13px; letter-spacing: .08em; opacity: .6; }

.product-card--cta {
    display: grid; place-items: center; align-self: stretch;
    border: 1px solid var(--line-light); border-radius: 22px; padding: 40px; aspect-ratio: 4 / 5;
    background: radial-gradient(circle at 30% 20%, rgba(208, 185, 141, .16), transparent 60%);
}
.product-card--cta h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 3.6vw, 56px); line-height: 1; }
.product-card--cta h3 em { color: var(--gold); }
.product-card--cta p { margin: 18px 0 30px; opacity: .7; }

/* =========================================================
   THE MAKING — sticky image, steps scroll past
   ========================================================= */
.making { padding: clamp(100px, 12vw, 160px) 0; background: var(--cream-2); }
.making-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }

.making-visual { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; }
.making-frame {
    position: relative;
    width: min(100%, 78vh * .8);
    width: min(100%, 78svh * .8);
    aspect-ratio: 4 / 5;
    border-radius: 26px;
    overflow: hidden;
    background: var(--espresso);
    box-shadow: 0 50px 100px -40px rgba(63, 33, 24, .5);
}
.making-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    clip-path: inset(100% 0 0 0);
    transform: scale(1.12);
}
.making-img:first-child { clip-path: inset(0 0 0 0); transform: scale(1); }
.making-count {
    position: absolute; left: 22px; bottom: 20px;
    display: flex; align-items: baseline; gap: 8px;
    color: #FBF6EE;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.making-count b { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; }
.making-count span { font-size: 13px; letter-spacing: .2em; opacity: .8; }

.making-steps { position: relative; padding-left: 40px; }
.making-head { padding: 18vh 0 10vh; }
.making-head p { margin-top: 22px; max-width: 420px; color: var(--muted); font-size: 17px; }
.making-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.making-rail span { position: absolute; inset: 0; background: var(--gold-2); transform: scaleY(0); transform-origin: top; }

.making-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .6s var(--ease); }
.making-step.is-active { opacity: 1; }
.making-step:last-child { min-height: 90vh; }
.making-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-2); }
.making-step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: 1; color: var(--espresso); margin: 10px 0 18px; }
.making-step p { max-width: 440px; color: var(--muted); font-size: 17px; }
.making-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.making-tags li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--espresso); background: rgba(255, 255, 255, .35); }
.making-step .btn { align-self: flex-start; margin-top: 28px; }
.making-inline { display: none; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { padding: clamp(100px, 14vw, 180px) 0; }
.gallery-head { margin-bottom: 56px; }
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(120px, 14vw, 200px);
    gap: 16px;
}
.bento figure { position: relative; overflow: hidden; border-radius: 20px; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.bento figure:hover img { transform: scale(1.06); }
.bento figcaption {
    position: absolute; left: 20px; bottom: 20px;
    padding: 8px 16px; border-radius: 999px;
    background: rgba(244, 238, 228, .85); backdrop-filter: blur(8px);
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--espresso);
}
.bento-a { grid-column: 1 / 8; grid-row: span 3; }
.bento-b { grid-column: 8 / 13; grid-row: span 2; }
.bento-c { grid-column: 8 / 13; grid-row: span 1; }
.bento-d { grid-column: 1 / 5; grid-row: span 2; }
.bento-e { grid-column: 5 / 9; grid-row: span 2; }
.bento-f { grid-column: 9 / 13; grid-row: span 2; }

/* =========================================================
   VISIT
   ========================================================= */
.visit { background: var(--espresso); color: var(--cream); padding: clamp(100px, 14vw, 170px) 0; }
.visit-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.visit-info > p { margin: 24px 0 40px; opacity: .72; max-width: 460px; }
.visit-list { list-style: none; display: grid; gap: 26px; }
.visit-list li { display: flex; gap: 18px; align-items: flex-start; }
.visit-list i { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-light); color: var(--gold); }
.visit-list strong { display: block; font-weight: 500; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.visit-list a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.visit-list a:hover { border-color: var(--gold); }

.visit-form {
    padding: clamp(28px, 4vw, 48px);
    border-radius: 28px;
    background: rgba(244, 238, 228, .05);
    border: 1px solid var(--line-light);
    display: grid; gap: 14px;
}
.visit-form h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin-bottom: 8px; }
.field { position: relative; display: block; }
.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 26px 0 10px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-light);
    color: var(--cream);
    font: inherit;
    font-size: 16px;
    outline: none;
    resize: vertical;
    transition: border-color .3s;
}
.field select { appearance: none; cursor: pointer; }
.field select option { color: var(--ink); }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--gold); }
.field span {
    position: absolute; left: 0; top: 24px;
    font-size: 15px; opacity: .55; pointer-events: none;
    transform-origin: left; transition: transform .4s var(--ease), opacity .4s, color .4s;
}
.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:focus + span,
.field textarea:not(:placeholder-shown) + span,
.field span.is-static { transform: translateY(-20px) scale(.78); opacity: .9; color: var(--gold); }
.field.is-invalid input { border-color: #E08A6E; }
.form-note { font-size: 12px; opacity: .5; text-align: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--espresso-2); color: var(--cream); padding: 80px 0 32px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-logo { height: 48px; width: auto; }
.footer-top nav { display: flex; gap: 32px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.footer-top nav a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-light); color: var(--gold); transition: background .4s, color .4s; }
.footer-social a:hover { background: var(--gold); color: var(--espresso); }
.footer-word {
    font-family: var(--serif);
    font-size: clamp(56px, 16vw, 280px);
    white-space: nowrap;
    line-height: .85;
    letter-spacing: -.02em;
    text-align: center;
    margin: 60px 0 30px;
    background: linear-gradient(to bottom, var(--gold), rgba(208, 185, 141, .08));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 13px; opacity: .55; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .nav { display: none; }
    .craft-badge { right: 16px; }
}

@media (max-width: 860px) {
    .header { padding: 8px 8px 8px 14px; }
    .header-logo img { height: 30px; }
    .header-cta { display: none; }
    .menu-toggle { display: block; }

    /* portrait: keep the whole sofa in view, the room colours fill above and below */
    .frame, .fabric-frame { width: 118vw; top: 40%; }
    .film-shade { background: linear-gradient(to top, rgba(42, 22, 16, .45), transparent 55%); }
    .film-copy--hero { bottom: 8vh; right: var(--gutter); }
    .film-copy--reveal { bottom: 12vh; }
    .fan-card { width: 40vw; border-radius: 14px; }
    .fan-card figcaption { left: 8px; right: 8px; bottom: 8px; padding: 7px 10px; font-size: 11px; line-height: 1.25; gap: 6px; }
    .fan-card figcaption span { font-size: 13px; }
    .fabric-panel { left: 16px; right: 16px; width: auto; bottom: 4vh; padding: 22px; }
    .fabric-panel h2 { font-size: 28px; margin: 8px 0 14px; }
    .swatch { width: 38px; height: 38px; }
    .swatch-name { margin-top: 12px; font-size: 18px; }

    .craft-grid,
    .visit-grid,
    .making-grid { grid-template-columns: 1fr; }
    /* phones: no sticky frame, each step carries its own photo */
    .making-visual { display: none; }
    .making-steps { padding-left: 22px; }
    .making-head { padding: 0 0 40px; }
    .making-step { min-height: 0; padding: 36px 0; opacity: 1; }
    .making-step:last-child { min-height: 0; }
    .making-inline { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; margin-bottom: 22px; }
    .craft-media { position: relative; top: 0; }
    .reveal-img { aspect-ratio: 4 / 3; }

    .collection-head { flex-direction: column; align-items: flex-start; }
    .h-scroll { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .h-scroll::-webkit-scrollbar { display: none; }
    .product-card { width: 78vw; scroll-snap-align: center; }

    .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 10px; }
    .bento figure { grid-column: auto !important; grid-row: span 1 !important; }
    .bento-a { grid-column: 1 / -1 !important; grid-row: span 2 !important; }

    .stats { gap: 12px; }
    .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track, .craft-badge, .scroll-cue-line::after { animation: none; }
}
