/* =========================================================
   Atelier Solenne — Interior Architecture
   Cream paper, espresso ink, antique gold. Photography after dark.
   ========================================================= */

:root {
  --paper: #f2eadd;
  --paper-2: #e8ddcb;
  --card: #f7f1e6;
  --ink: #231b15;
  --ink-2: #5d5044;
  --ink-3: #8e7f6f;
  --line: rgba(35, 27, 21, 0.14);
  --gold: #b48f4c;
  --gold-hi: #e2c47e;
  --gold-ink: #7a5b26;          /* gold dark enough for small text on paper */
  --line-gold: rgba(180, 143, 76, 0.45);
  --green: #1e3a2f;
  --clay: var(--gold-ink);
  --dark: #17120e;
  --dark-2: #211a14;
  --light: #f1e8d8;
  --light-2: #b7a892;
  --line-light: rgba(241, 232, 216, 0.14);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 64px);
  /* paper: fine grain plus a slow mottle, both very light */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .33 0 0 0 0 .25 0 0 0 0 .16 .13 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .25 .09 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background-color: var(--paper); background-image: var(--grain), var(--mottle); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: 100%; max-width: 1380px; margin-inline: auto; padding-inline: var(--gutter); }
.kicker { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-ink); }
.kicker::before { content: ""; flex: 0 0 34px; height: 1px; background: currentColor; opacity: 0.7; }
.kicker-light { color: var(--gold-hi); }
.display { font-variant-numeric: lining-nums; margin: 16px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 3.7vw, 62px); line-height: 1.04; letter-spacing: -0.01em; }
.display em, .hero-title em { font-style: italic; color: var(--gold-ink); }
.muted { color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 30px; border: 1px solid transparent; border-radius: 1px; background: none; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background 0.35s, color 0.35s, border-color 0.35s, filter 0.35s; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-gold { background: linear-gradient(135deg, #e3c77f, #b38c45 48%, #d6b469); color: #1b140e; border-color: rgba(255, 236, 190, 0.35); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-line { border-color: rgba(35, 27, 21, 0.32); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.4); }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn-text { display: inline-flex; gap: 10px; align-items: center; padding-bottom: 5px; border-bottom: 1px solid var(--gold); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; transition: gap 0.35s var(--ease); }
.btn-text:hover { gap: 16px; }

.sec { position: relative; padding-block: clamp(64px, 6vw, 104px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 56px; margin-bottom: clamp(30px, 3.2vw, 52px); }
.sec-head .muted { flex: 0 1 44ch; margin: 0; font-size: 15.5px; }
.sec-head-center { flex-direction: column; align-items: center; text-align: center; }
.sec-head-center .kicker::after { content: ""; flex: 0 0 34px; height: 1px; background: currentColor; opacity: 0.7; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* fine hand-drawn ornaments in the margins (wide screens only) */
.orn { position: absolute; display: none; color: var(--gold); opacity: 0.32; pointer-events: none; }
.orn-left, .orn-right { top: clamp(60px, 8vw, 120px); width: 110px; height: 440px; }
.orn-left { left: max(10px, calc((100vw - 1380px) / 2 - 130px)); }
.orn-right { right: max(10px, calc((100vw - 1380px) / 2 - 130px)); transform: scaleX(-1); }
.orn-sweep { display: block; top: 26px; right: -40px; width: min(620px, 60vw); height: 116px; opacity: 0.2; color: var(--gold-hi); }
@media (min-width: 1560px) { .orn { display: block; } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 16px var(--gutter); color: var(--light); transition: background 0.45s, color 0.45s, padding 0.45s, box-shadow 0.45s; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); opacity: 0; transition: opacity 0.45s; }
.nav.is-solid { padding-block: 10px; background: rgba(242, 234, 221, 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 10px 30px -18px rgba(35, 27, 21, 0.35); }
.nav.is-solid::after { opacity: 1; }
.nav:not(.is-solid) { background: linear-gradient(rgba(12, 9, 6, 0.55), rgba(12, 9, 6, 0)); }
.brand { justify-self: center; display: flex; align-items: center; gap: 12px; margin: 0; }
.brand-crest { width: 46px; height: 46px; flex: none; transition: width 0.45s, height 0.45s; }
.nav.is-solid .brand-crest { width: 40px; height: 40px; }
.brand-name { display: flex; flex-direction: column; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1; letter-spacing: 0.02em; }
.brand-name small { margin-top: 5px; font-family: var(--sans); font-size: 9.5px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.75; }
.nav-links { display: flex; gap: clamp(18px, 2vw, 34px); font-size: 11.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.nav-links a { position: relative; padding-block: 6px; opacity: 0.88; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 0.4s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }
.nav-cta { padding: 11px 20px; font-size: 11px; }
.nav-menu { display: none; padding: 9px 16px; font-size: 11px; border-color: currentColor; color: inherit; }
.menu-sheet { position: fixed; inset: 0 0 auto; z-index: 49; display: grid; padding: 78px var(--gutter) 16px; background-color: var(--paper); background-image: var(--grain); border-bottom: 1px solid var(--line-gold); box-shadow: 0 20px 40px rgba(35, 27, 21, 0.18); }
.menu-sheet a { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 25px; line-height: 1.2; }
.menu-sheet a:last-child { border-bottom: 0; }
.menu-sheet a[href="#contact"] { color: var(--gold-ink); font-style: italic; }
.menu-sheet .menu-wa { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--dark); color: var(--light); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; animation: heroIn 2.4s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.06); opacity: 0.6; } to { transform: none; opacity: 1; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 9, 6, 0.78) 0%, rgba(12, 9, 6, 0.45) 38%, rgba(12, 9, 6, 0.05) 70%), linear-gradient(0deg, rgba(12, 9, 6, 0.75) 0%, rgba(12, 9, 6, 0) 40%); }
.hero-inner { position: relative; padding-bottom: clamp(120px, 17vh, 190px); }
.hero-title { font-variant-numeric: lining-nums; margin: 22px 0 0; max-width: 13ch; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 5.6vw, 96px); line-height: 0.98; letter-spacing: -0.015em; color: #f6eddc; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3); }
.hero-title em { color: var(--gold-hi); }
.hero-lede { margin: 22px 0 0; max-width: 46ch; font-size: 16.5px; font-weight: 300; line-height: 1.7; color: rgba(241, 232, 216, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 32px; }
.hero .btn-text { color: var(--light); border-color: var(--gold-hi); }
.hero-facts { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; gap: clamp(28px, 4vw, 64px); margin: 0 auto; padding-top: 0; padding-bottom: 30px; list-style: none; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(241, 232, 216, 0.72); }
.hero-facts li { display: flex; flex-direction: column; align-items: flex-start; padding-left: 18px; border-left: 1px solid rgba(226, 196, 126, 0.45); }
.hero-facts b { font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: 0; text-transform: none; color: #f6eddc; }

/* ---------- Studio story ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(44px, 7vw, 120px); align-items: center; }
.story-photo { position: relative; margin: 0; padding: 14px; }
.story-photo::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-gold); border-radius: 999px 999px 0 0; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; max-height: min(66vh, 640px); object-fit: cover; object-position: 50% 25%; border-radius: 999px 999px 0 0; }
.story-copy .display { max-width: 18ch; }
.story-copy .muted { margin: 22px 0 0; max-width: 56ch; }
.story-quote { position: relative; margin: 28px 0 0; padding-left: 26px; max-width: 34ch; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 1.7vw, 27px); line-height: 1.3; color: var(--ink); border-left: 1px solid var(--gold); }
.story-sign { display: grid; gap: 2px; margin: 22px 0 0; font-size: 13px; color: var(--ink-3); }
.story-sign b { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); }

/* ---------- Services: image tiles ---------- */
.services { padding-top: clamp(40px, 4vw, 72px); }
.svc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.svc { position: relative; display: block; height: clamp(380px, 58vh, 600px); overflow: hidden; background: var(--dark); color: var(--light); isolation: isolate; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 0.8s; filter: brightness(0.88); }
.svc::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14, 10, 7, 0) 38%, rgba(14, 10, 7, 0.86)); transition: background 0.6s; }
.svc::before { content: ""; position: absolute; inset: 10px; z-index: 2; border: 1px solid rgba(226, 196, 126, 0); transition: border-color 0.6s; pointer-events: none; }
.svc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; padding: 26px 24px 26px; }
.svc-num { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold-hi); }
.svc b { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 1.9vw, 31px); line-height: 1.08; }
.svc-text { max-height: 0; overflow: hidden; opacity: 0; font-size: 14px; font-weight: 300; line-height: 1.55; color: rgba(241, 232, 216, 0.86); transition: max-height 0.7s var(--ease), opacity 0.6s, margin 0.7s var(--ease); }
.svc-more { justify-self: start; margin-top: 14px; padding-bottom: 3px; border-bottom: 1px solid var(--gold-hi); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-hi); }
.svc:hover img, .svc:focus-visible img { transform: scale(1.06); filter: brightness(0.7); }
.svc:hover::after, .svc:focus-visible::after { background: linear-gradient(180deg, rgba(14, 10, 7, 0.1) 20%, rgba(14, 10, 7, 0.9)); }
.svc:hover::before, .svc:focus-visible::before { border-color: rgba(226, 196, 126, 0.55); }
.svc:hover .svc-text, .svc:focus-visible .svc-text { max-height: 120px; opacity: 1; margin-top: 10px; }
@media (hover: none) { .svc-text { max-height: 120px; opacity: 1; margin-top: 10px; } }

/* ---------- Full-bleed band ---------- */
.band { position: relative; margin: 0; height: clamp(420px, 80vh, 820px); overflow: hidden; background: var(--dark); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 9, 6, 0.7), rgba(12, 9, 6, 0) 50%); }
.band figcaption { position: absolute; left: 0; right: 0; bottom: clamp(36px, 7vh, 80px); z-index: 1; display: grid; justify-items: center; gap: 12px; padding-inline: var(--gutter); text-align: center; color: #f6eddc; }
.band-line { max-width: 30ch; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 50px); line-height: 1.12; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4); }
.band-cap { font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-hi); }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: repeat(2, clamp(220px, 30vh, 330px)); gap: 12px; }
.project { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); }
.project-lg { grid-row: span 2; }
.project-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.project figcaption { pointer-events: none; position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 3px; padding: 70px 20px 18px; background: linear-gradient(rgba(14, 10, 7, 0), rgba(14, 10, 7, 0.45) 40%, rgba(14, 10, 7, 0.86)); color: #f6eddc; }
.project:hover img { transform: scale(1.04); }
.project-count { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; background: rgba(14, 10, 7, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #f6eddc; font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; transition: background 0.3s, transform 0.3s var(--ease); }
.project-count::before { content: ""; width: 12px; height: 9px; border: 1px solid var(--gold-hi); }
.project:hover .project-count, .project-open:focus-visible .project-count { background: rgba(14, 10, 7, 0.85); transform: translateY(-1px); }
.project figcaption b { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.15; }
.project figcaption span { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }

/* ---------- Walkthroughs ---------- */
.walks { overflow: hidden; background: radial-gradient(120% 90% at 85% 0%, #2a2018 0%, var(--dark) 60%); color: var(--light); }
.walks .muted { color: var(--light-2); }
.walk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); }
.walk { display: grid; align-content: start; }
.walk-cover { overflow: hidden; aspect-ratio: 16 / 11; max-height: 40vh; }
.walk-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.walk:hover .walk-cover img { transform: scale(1.05); }
.walk-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.walk-thumbs img { width: 100%; height: clamp(46px, 6.5vh, 70px); object-fit: cover; opacity: 0.75; transition: opacity 0.4s; }
.walk:hover .walk-thumbs img { opacity: 1; }
.walk-meta { margin: 18px 0 0; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-hi); }
.walk h3 { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.1; }
.walk-open { justify-self: start; display: inline-flex; gap: 10px; margin-top: 14px; padding: 0 0 5px; border: 0; border-bottom: 1px solid var(--gold); background: none; color: var(--light); font-size: 11.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; transition: gap 0.35s var(--ease); }
.walk-open:hover { gap: 16px; }

/* ---------- Sun study ---------- */
.sun-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-areas: "intro room" "controls room" ". spec"; column-gap: clamp(32px, 5vw, 72px); align-items: center; }
.spec-wrap { grid-area: spec; padding: 0 4px; }
.spec-more { display: none; margin-top: 8px; padding: 6px 0; border: 0; background: none; font-size: 13px; font-weight: 500; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sun-copy { grid-area: intro; align-self: end; }
.sun-controls { grid-area: controls; align-self: start; }
.room-card { grid-area: room; }
.sun-copy .muted { margin: 20px 0 0; max-width: 44ch; }
.heliodon { display: flex; align-items: center; gap: 18px; margin-top: 26px; padding: 14px 18px; border: 1px solid var(--line-gold); background: var(--card); }
.sun-arc { flex: 0 1 260px; width: 260px; height: auto; cursor: pointer; touch-action: none; outline: none; overflow: visible; }
.sun-arc:focus-visible .sun-handle { stroke: var(--ink); stroke-width: 3; }
.sun-read { display: grid; gap: 4px; justify-items: start; }
.sun-time { margin: 0; font-family: var(--serif); font-size: 40px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.sun-meta { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
.picker { margin-top: 18px; }
.surface-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.surface-tabs button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 1px; background: none; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.surface-tabs button:hover { border-color: var(--ink); }
.surface-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 14px; }
.swatch { display: grid; gap: 6px; justify-items: center; padding: 0; border: 0; background: none; cursor: pointer; font-size: 12px; line-height: 1.25; text-align: center; color: var(--ink-2); }
.swatch i { width: 100%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.swatch:hover i { transform: translateY(-2px); }
.swatch[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold); }
.swatch[aria-pressed="true"] { color: var(--ink); }

.room-card { position: relative; margin: 0; padding: 14px 20px; border: 1px solid var(--line-gold); background: var(--card); overflow: hidden; }
.room { display: block; width: 100%; height: auto; max-height: min(54vh, 520px); overflow: visible; }
.room #beams, .room #flare, .room #patches, .room #shadows, .room #ambient { pointer-events: none; }
.tint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: 0.45; transition: background 0.4s; }
.spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 16px; margin: 14px 0 0; }
.spec div { min-width: 0; }
.spec dt { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 2px 0 0; font-family: var(--serif); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Soft light: the linen curtain ---------- */
.soft { border-top: 1px solid var(--line); }
.soft-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); column-gap: clamp(32px, 5vw, 72px); align-items: center; }
.soft-card { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); box-shadow: 0 30px 60px -36px rgba(35, 27, 21, 0.55); }
.soft-card::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(226, 196, 126, 0.35); pointer-events: none; }
/* the room photograph is regraded warm, toward late-afternoon light */
.curtain { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: min(72vh, 640px); object-fit: cover; touch-action: pan-y; outline: none; -webkit-tap-highlight-color: transparent; filter: saturate(1.04) contrast(1.03); }
.curtain.is-held { cursor: grabbing !important; }
.curtain:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.soft-hint { position: absolute; left: 22px; bottom: 22px; z-index: 1; display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 15px 8px 12px; background: rgba(247, 241, 230, 0.94); box-shadow: 0 6px 18px -6px rgba(35, 27, 21, 0.35); color: var(--ink); font-size: 13px; pointer-events: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.soft-hint-arrows { display: inline-block; font-size: 13px; letter-spacing: -0.05em; color: var(--gold-ink); }
.soft-hint:not(.is-gone) .soft-hint-arrows { animation: softNudge 1.6s var(--ease) 0.3s 3; }
@keyframes softNudge { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(-4px); } 70% { transform: translateX(3px); } }
.soft-hint.is-gone { opacity: 0; transform: translateY(6px); }
.soft-read { position: absolute; top: 20px; right: 20px; z-index: 1; display: grid; gap: 3px; padding: 10px 14px 9px; background: rgba(247, 241, 230, 0.92); box-shadow: 0 6px 18px -8px rgba(35, 27, 21, 0.35); pointer-events: none; }
.soft-level { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.soft-meta { margin: 0; font-size: 12px; color: var(--ink-2); }
.soft-copy .muted { margin: 20px 0 0; max-width: 40ch; }
.soft-spec { display: grid; gap: 12px; margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line-gold); }
.soft-spec div { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.soft-spec dt { color: var(--ink-3); }
.soft-spec dd { margin: 0; text-align: right; font-family: var(--serif); font-size: 18px; }

/* ---------- Material library: raking light over real samples ---------- */
.materials { border-top: 1px solid var(--line); }
.mat-stage { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); padding: clamp(58px, 5vw, 72px) clamp(18px, 2.4vw, 34px) clamp(18px, 2.4vw, 34px); background: radial-gradient(90% 120% at 50% 0%, #241a12, #120d09 70%); border: 1px solid rgba(180, 143, 76, 0.35); box-shadow: inset 0 0 0 8px #120d09, inset 0 0 0 9px rgba(180, 143, 76, 0.22); cursor: none; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.mat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mat { position: relative; margin: 0; aspect-ratio: 3 / 4; max-height: 52vh; background: var(--fallback) center / cover; }
.mat-stage.has-gl .mat { background: none; }
.mat figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 26px 12px 10px; background: linear-gradient(180deg, transparent, rgba(14, 10, 7, 0.66)); color: #f6efe4; pointer-events: none; }
.mat figcaption b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.1; }
.mat figcaption span { font-size: 11.5px; color: rgba(246, 239, 228, 0.75); }
.mat-read { position: absolute; top: -1px; right: clamp(18px, 2.4vw, 34px); display: grid; gap: 2px; padding: 9px 14px 8px; background: linear-gradient(135deg, #ead08f, #c39d55); pointer-events: none; transform: translateY(-1px); }
.mat-level { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1; color: #1b140e; }
.mat-meta { margin: 0; font-size: 12px; color: rgba(27, 20, 14, 0.75); font-variant-numeric: tabular-nums; }
.mat-hint, .fab-hint { position: absolute; left: 50%; bottom: clamp(26px, 3vw, 44px); display: flex; align-items: center; gap: 9px; margin: 0; padding: 8px 15px; background: rgba(247, 241, 230, 0.95); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.45); color: var(--ink); font-size: 13px; white-space: nowrap; pointer-events: none; transform: translateX(-50%); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); z-index: 2; }
.mat-hint.is-gone, .fab-hint.is-gone { opacity: 0; transform: translate(-50%, 6px); }
.mat-dot { width: 9px; height: 9px; border-radius: 50%; background: #f2c98a; box-shadow: 0 0 0 4px rgba(242, 201, 138, 0.3); }
.hint-touch { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-touch { display: inline; } .mat-stage { cursor: auto; } }

/* ---------- Process ---------- */
.process { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-gold); }
.steps li { display: flex; flex-direction: column; padding: 24px 28px 4px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--gold-ink); }
.steps h3 { margin: 14px 0 0; font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.15; }
.steps p { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
.step-time { margin-top: auto; padding-top: 16px; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }

/* ---------- The fabric bar ---------- */
.fab-wrap { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(44px, 5vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.fab-title { margin: 10px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.1; }
.fab-copy .muted { margin: 12px 0 0; max-width: 40ch; }
.fab-stage { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); padding: 34px clamp(18px, 3vw, 40px) 58px; background: linear-gradient(180deg, #ece1cf, #ddcfb8); border: 1px solid var(--line-gold); touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.fab-stage.is-held { cursor: grabbing; }
.fab-rod { position: absolute; left: 10px; right: 10px; top: 26px; height: 9px; border-radius: 5px; background: linear-gradient(180deg, #f1d9a4, #b8914f 55%, #7f6131); box-shadow: 0 3px 6px rgba(60, 45, 20, 0.3); z-index: 1; pointer-events: none; }
.fab-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.fab { position: relative; height: clamp(220px, 24vw, 300px); background: var(--fallback) center / 160px; }
.fab-stage.has-gl .fab { background: none; }
.fab-tag i { font-style: normal; }
.fab-tag { position: absolute; left: 50%; top: -12px; padding: 3px 8px; background: #f7f1e6; box-shadow: 0 1px 3px rgba(35, 27, 21, 0.25); color: var(--ink-2); font-size: 10.5px; letter-spacing: 0.06em; white-space: nowrap; transform: translateX(-50%); pointer-events: none; z-index: 3; }
.fab-hint { bottom: 14px; }

/* ---------- Bespoke furniture ---------- */
.piece-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.piece { margin: 0; }
.piece-img { overflow: hidden; aspect-ratio: 4 / 5; max-height: 54vh; background: var(--paper-2); }
.piece-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.piece:hover .piece-img img { transform: scale(1.05); }
.piece figcaption { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding-top: 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.piece b { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.15; }
.piece figcaption span { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.piece figcaption a { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding-bottom: 3px; border-bottom: 1px solid var(--gold); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }

/* ---------- Press & testimonials ---------- */
.clients { border-top: 1px solid var(--line); }
.press { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 clamp(36px, 4vw, 60px); padding: 22px 0; list-style: none; border-block: 1px solid var(--line-gold); text-align: center; }
.press li { display: grid; gap: 4px; padding-inline: 12px; }
.press li + li { border-left: 1px solid var(--line); }
.press b { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.15; letter-spacing: 0.02em; }
.press span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.quotes figure { margin: 0; text-align: center; }
.quotes figure::before { content: ""; display: block; width: 7px; height: 7px; margin: 0 auto 18px; background: var(--gold); transform: rotate(45deg); }
.quotes blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(21px, 1.6vw, 25px); line-height: 1.35; font-variant-numeric: lining-nums; }
.quotes figcaption { margin-top: 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Instagram ---------- */
.insta { padding-top: clamp(24px, 3vw, 48px); }
.insta-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.insta-grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--dark); }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.5s; }
.insta-grid a::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 1.5px solid #f6eddc; border-radius: 9px; box-shadow: inset 0 0 0 7px transparent, inset 0 0 0 8.5px #f6eddc; opacity: 0; transition: opacity 0.4s; }
.insta-grid a:hover img { transform: scale(1.06); opacity: 0.6; }
.insta-grid a:hover::after { opacity: 1; }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(110% 90% at 10% 0%, #2a2018, var(--dark) 60%); color: var(--light); }
.contact .display em { color: var(--gold-hi); }
.contact .muted { color: var(--light-2); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-copy .muted { margin: 20px 0 0; max-width: 40ch; }
.contact-info { display: grid; gap: 18px; margin: 36px 0 0; }
.contact-info dt { font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-hi); }
.contact-info dd { margin: 4px 0 0; font-size: 15.5px; line-height: 1.6; }
.contact-info a:hover { color: #fff; }
.contact-info .wa-link { color: var(--gold-hi); }
.enquiry { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(180, 143, 76, 0.35); background: rgba(255, 255, 255, 0.025); }
.enquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.field { display: grid; gap: 6px; align-content: start; }
.field span { font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--light-2); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 2px; border: 0; border-bottom: 1px solid rgba(241, 232, 216, 0.25); border-radius: 0; background: transparent; color: var(--light); outline: none; transition: border-color 0.25s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-hi) 50%), linear-gradient(135deg, var(--gold-hi) 50%, transparent 50%); background-position: calc(100% - 12px) 52%, calc(100% - 7px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(241, 232, 216, 0.35); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-hi); }
.field.is-invalid input { border-color: #e07a6a; }
/* every error sits directly under its own field; the slot is reserved so paired fields keep the same height */
.field-err { display: block; min-height: 18px; margin-top: -2px; font-size: 12.5px; line-height: 1.4; color: #f0a090; }
.enquiry.is-sent { display: grid; place-items: center; text-align: center; }
.sent { max-width: 42ch; }
.sent-h { margin: 0; font-family: var(--serif); font-size: clamp(32px, 3vw, 44px); line-height: 1.1; }
.sent .muted { margin: 14px 0 0; }
.enquiry .btn-gold { justify-self: start; }
.form-note { margin: -4px 0 0; font-size: 12.5px; color: var(--light-2); }

/* ---------- Footer ---------- */
.footer { padding-block: 64px 36px; background: #110d0a; color: var(--light); border-top: 1px solid rgba(180, 143, 76, 0.3); }
.footer-top { display: grid; justify-items: center; gap: 16px; margin-bottom: 48px; text-align: center; }
.footer-crest { width: 150px; height: 150px; }
.footer-line { margin: 0; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--light-2); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 36px; border-top: 1px solid var(--line-light); text-align: center; }
.footer p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--light-2); }
.footer a:hover { color: #fff; }
.f-h { margin-bottom: 8px !important; font-size: 10.5px !important; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-hi) !important; }
.footer-legal { margin-top: 44px !important; font-size: 12px !important; opacity: 0.7; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 10, 7, 0.96); color: var(--light); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(14, 10, 7, 0.6); }
.lb-fig { margin: 0; display: grid; gap: 14px; justify-items: center; padding: 64px 72px 28px; }
.lb-fig img { max-width: min(1300px, calc(100vw - 144px)); max-height: calc(100vh - 170px); width: auto; height: auto; }
.lb-fig figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px; font-size: 14px; color: var(--light-2); text-align: center; }
.lb-fig figcaption b { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--light); }
.lb-count { font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.lb-btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(180, 143, 76, 0.45); border-radius: 50%; background: rgba(255, 255, 255, 0.04); color: var(--light); font-size: 28px; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.12); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }

.display, .hero-title, .sent-h, .steps h3, .band-line { text-wrap: balance; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav-links { gap: 16px; letter-spacing: 0.14em; }
  .nav-right .nav-links { display: none; }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .svc-body { padding: 20px 16px; }
}
@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; padding-block: 12px; }
  .nav-left, .nav-right .nav-links { display: none; }
  .brand { justify-self: start; }
  .brand-crest { width: 40px; height: 40px; }
  .nav-menu { display: inline-flex; }
  .sec-head { flex-wrap: wrap; }
  .hero-inner { padding-bottom: 150px; }
  .hero-facts { justify-content: flex-start; }
  .story-grid { grid-template-columns: 1fr; }
  .story-photo { max-width: 420px; }
  .svc-grid { display: flex; gap: 10px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .svc-grid::-webkit-scrollbar { display: none; }
  .svc { flex: 0 0 min(72vw, 340px); height: 460px; scroll-snap-align: start; }
  .svc-text { max-height: 120px; opacity: 1; margin-top: 10px; }
  .project-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 240px; }
  .project-lg { grid-column: 1 / -1; grid-row: auto; }
  .walk-grid { grid-template-columns: 1fr; gap: 44px; }
  .walk-cover { max-height: none; }
  .sun-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "room" "controls" "spec"; row-gap: 18px; }
  .soft-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .soft-copy { order: -1; }
  .fab-wrap { grid-template-columns: 1fr; }
  .sun-controls .picker { margin-top: 14px; }
  .spec { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line); }
  .spec:not(.is-open) > div:nth-child(n + 5) { display: none; }
  .spec-more { display: inline-block; }
  .sun-controls .heliodon { margin-top: 0; }
  .piece-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .piece-img { max-height: none; }
  .press { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .press li:nth-child(3) { border-left: 0; }
  .quotes { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .brand-name { font-size: 20px; }
  .brand-name small { font-size: 8.5px; letter-spacing: 0.22em; }
  .nav-cta { display: none; }
  .hero { min-height: 560px; height: 92svh; }
  .hero-img { object-position: 70% 60%; }
  .hero-shade { background: linear-gradient(0deg, rgba(12, 9, 6, 0.92) 0%, rgba(12, 9, 6, 0.6) 45%, rgba(12, 9, 6, 0.1) 75%); }
  .hero-inner { padding-bottom: 118px; }
  .hero-title { font-size: 44px; }
  .hero-lede { font-size: 15px; margin-top: 16px; }
  .hero-actions { margin-top: 24px; }
  .hero-facts { gap: 0; padding-bottom: 22px; font-size: 9.5px; letter-spacing: 0.12em; }
  .hero-facts li { flex: 1; padding-left: 12px; }
  .hero-facts b { font-size: 26px; }
  .kicker { font-size: 10.5px; letter-spacing: 0.2em; gap: 10px; }
  .kicker::before { flex-basis: 22px; }
  .display { font-size: 36px; }
  .band { height: 62vh; }
  .room-card { padding: 10px 10px 12px; }
  .soft-hint { left: 14px; bottom: 14px; gap: 7px; padding: 6px 11px 6px 9px; font-size: 12px; }
  .mat-stage { grid-template-columns: 1fr 1fr; padding: 14px; padding-top: 52px; gap: 10px; }
  .mat { max-height: none; }
  .mat-read { right: 14px; }
  .mat figcaption b { font-size: 17px; }
  .mat figcaption span { font-size: 10.5px; }
  .mat-hint { bottom: auto; top: 50%; }
  .mat-hint.is-gone { transform: translate(-50%, 6px); }
  .fab-stage { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 30px 12px 54px; }
  .fab { height: 210px; }
  .fab-tag { font-size: 10px; padding: 2px 6px; top: -10px; }
  .fab-tag i { display: none; }
  .soft-read { top: 14px; right: 14px; padding: 7px 10px 6px; }
  .soft-level { font-size: 19px; }
  .soft-meta { font-size: 10.5px; }
  .heliodon { gap: 12px; padding: 12px 14px; flex-wrap: nowrap; }
  .sun-arc { flex-basis: 190px; width: 190px; }
  .sun-time { font-size: 30px; }
  .picker { margin-top: 12px; }
  .swatches { grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
  .swatch { font-size: 11px; }
  .sun-read .btn { padding: 7px 10px; font-size: 10px; }
  .lb-fig { padding: 70px 12px 80px; }
  .lb-fig img { max-width: calc(100vw - 24px); max-height: calc(100vh - 220px); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .piece-grid { gap: 28px 12px; }
  .piece b { font-size: 19px; }
  .piece figcaption { grid-template-columns: 1fr; }
  .piece figcaption a { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .press b { font-size: 18px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .enquiry .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; text-align: left; }
  .footer-crest { width: 120px; height: 120px; }
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(242, 234, 221, 0.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line-gold); transition: transform 0.35s var(--ease); }
  .action-bar .btn-dark { flex: 1; }
  .action-bar .btn { padding: 13px 18px; }
  .action-bar.is-hidden { transform: translateY(110%); }
  .footer { padding-bottom: 84px; }
  .project-count { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { animation: none; }
  .soft-hint:not(.is-gone) .soft-hint-arrows { animation: none; }
}

/* =========================================================
   MOBILE POLISH
   Touch, small-screen and landscape-phone refinements. Desktop is untouched.
   ========================================================= */

/* touch screens: no sticky hover states (zooms, dimming, widening underlines) */
@media (hover: none) {
  .svc:hover img { transform: none; filter: brightness(0.88); }
  .svc:hover::before { border-color: rgba(226, 196, 126, 0); }
  .project:hover img, .walk:hover .walk-cover img, .piece:hover .piece-img img, .insta-grid a:hover img { transform: none; }
  .insta-grid a:hover img { opacity: 1; }
  .insta-grid a:hover::after { opacity: 0; }
  .walk:hover .walk-thumbs img { opacity: 0.75; }
  .btn-text:hover, .walk-open:hover { gap: 10px; }
  .swatch:hover i { transform: none; }
  .btn-line:hover { background: none; }
  .nav-menu:hover { border-color: currentColor; }
}

/* the menu sheet scrolls on short screens, and the page behind it stays put */
html.menu-open, html.menu-open body { overflow: hidden; }
.menu-sheet { max-height: 100vh; max-height: 100svh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

@media (max-width: 960px) {
  .nav-menu { min-height: 44px; min-width: 76px; padding: 9px 16px; }
  .menu-sheet a { display: flex; align-items: center; min-height: 52px; }
  /* text links get a 44px tap area; the gold underline stays tight under the words */
  .btn-text, .walk-open { min-height: 44px; align-items: flex-end; }
  .piece figcaption a { display: inline-flex; align-items: flex-end; min-height: 44px; }
  .contact-info dd a, .footer p a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-info dd { line-height: 1.5; }
  .footer p { line-height: 1.6; }
  .project-count { font-size: 11px; }
  .mat figcaption span, .soft-meta, .spec dt, .field span, .contact-info dt, .sun-read .btn { font-size: 11px; }
  .f-h { font-size: 11px !important; }
  /* single-column grids: let tracks shrink below their content's min-width (no sideways scroll at 320px) */
  .story-grid, .sun-grid, .soft-grid, .fab-wrap, .contact-grid, .walk-grid { grid-template-columns: minmax(0, 1fr); }
  .enquiry { grid-template-columns: minmax(0, 1fr); }
  .enquiry .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field { min-width: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer p a, .contact-info a { overflow-wrap: anywhere; }
  /* furniture cards: the Enquire links and rules line up across a row even when names wrap */
  .piece { display: flex; flex-direction: column; }
  .piece figcaption { flex: 1; grid-template-rows: auto 1fr; }
  /* the curtain keeps its 4:3 photo un-cropped, so dragging lands where the finger is */
  .soft-card { width: 100%; max-width: calc(min(72vh, 640px) * 4 / 3); justify-self: center; }
  .story-photo { margin-inline: auto; }
  /* material library: the hint sits in its own strip under the samples instead of over the captions */
  .mat-stage { padding-bottom: 60px; }
  .mat-hint { top: auto; bottom: 13px; }
  .mat-hint.is-gone { transform: translate(-50%, 6px); }
}

/* tablets / large phones held sideways: three walkthroughs in a row instead of one huge card each */
@media (min-width: 700px) and (max-width: 960px) {
  .walk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .walk h3 { font-size: 24px; }
  .walk-meta { font-size: 11px; letter-spacing: 0.16em; }
  .walk-open { letter-spacing: 0.12em; }
  .story-grid { gap: 36px; }
}

@media (max-width: 600px) {
  /* the hero grows with its content on short phones instead of sliding the kicker under the nav */
  .hero { height: auto; min-height: 560px; min-height: max(560px, 92vh); min-height: max(560px, 92svh); }
  .hero-inner { padding-top: 104px; }
  .enquiry .row { grid-template-columns: minmax(0, 1fr); }
  .piece figcaption { grid-template-rows: auto auto 1fr; }
  .piece figcaption a { align-self: end; }
  .enquiry .btn-gold { justify-self: stretch; padding-inline: 16px; letter-spacing: 0.14em; }
  .hero-title { font-size: clamp(36px, 11.5vw, 46px); }
  .hero-facts { font-size: 11px; letter-spacing: 0.08em; }
  .hero-facts li { padding-left: 10px; }
  .hero-facts b { font-size: clamp(22px, 7vw, 26px); }
  .display { font-size: clamp(30px, 9.4vw, 36px); }
  .kicker { font-size: 11px; letter-spacing: 0.18em; }
  .brand-name small { font-size: 11px; letter-spacing: 0.1em; }
  .band-line { font-size: clamp(24px, 7.4vw, 28px); }
  .band-cap { letter-spacing: 0.16em; }
  .fab-tag { font-size: 11px; }
  .sun-read .btn { min-height: 40px; padding: 8px 12px; font-size: 11px; }
  .surface-tabs button { min-height: 40px; }
  .lb-fig img { max-height: calc(100vh - 220px); max-height: calc(100svh - 220px); }
}

/* very narrow phones (320–374px): tighter type and spacing so nothing crowds */
@media (max-width: 374px) {
  .brand-name { font-size: 18px; }
  .brand-name small { display: none; }
  .brand { gap: 10px; }
  .hero-actions { gap: 14px 22px; }
  .hero-actions .btn { padding-inline: 22px; }
  .hero-lede { font-size: 14.5px; }
  .heliodon { gap: 10px; padding: 10px; }
  .sun-arc { flex-basis: 148px; width: 148px; }
  .sun-read .btn { padding: 8px 9px; letter-spacing: 0.06em; }
  .sun-time { font-size: 26px; }
  .swatches { gap: 6px; }
  .fab-stage { gap: 6px; padding-inline: 8px; }
  .fab-tag { padding: 2px 4px; letter-spacing: 0; }
  .soft-read { top: 10px; right: 10px; }
  .soft-level { font-size: 17px; }
  .soft-hint { left: 10px; bottom: 10px; }
  .piece-grid { gap: 24px 10px; }
  .piece b { font-size: 18px; }
  .press b { font-size: 17px; }
  .press li { padding-inline: 6px; }
  .action-bar .btn { padding: 13px 12px; letter-spacing: 0.12em; }
  .footer-grid { gap: 24px 16px; }
}

/* phones held sideways (short viewports): the hero, tiles and menu fit the screen */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { height: auto; min-height: 100vh; min-height: 100svh; }
  .hero-inner { padding-top: 96px; padding-bottom: 104px; }
  .hero-title { font-size: clamp(34px, 5vw, 48px); max-width: 20ch; }
  .hero-lede { max-width: 60ch; margin-top: 14px; }
  .hero-actions { margin-top: 20px; }
  .hero-facts { padding-bottom: 18px; }
  .hero-facts b { font-size: 26px; }
  .svc { height: 340px; }
  .band { height: 100vh; height: 100svh; }
  .project-grid { grid-auto-rows: 220px; }
  .menu-sheet { padding-top: 70px; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .menu-sheet a { min-height: 46px; padding: 6px 0; font-size: 21px; }
  .menu-sheet a:nth-last-child(2) { border-bottom: 0; }
  .lightbox .lb-fig { padding: 16px 72px 12px; }
  .lightbox .lb-fig img { max-width: calc(100vw - 150px); max-height: calc(100vh - 80px); max-height: calc(100svh - 80px); }
  .lightbox .lb-prev, .lightbox .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox .lb-prev { left: 12px; }
  .lightbox .lb-next { right: 12px; left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .svc img, .project img, .walk-cover img, .piece-img img, .insta-grid img, .action-bar, .mat-hint, .fab-hint, .soft-hint { transition: none; }
}

/* =========================================================
   DESIGN POLISH (pass 2)
   Typography, rhythm and alignment refinements at every width.
   ========================================================= */

/* ---- typography: no orphans, lining figures in the serif ---- */
p, dd, li, figcaption, blockquote, .svc-text { text-wrap: pretty; }
.quotes blockquote, .story-quote, .press b, .press span, .band-cap, .footer-line,
.mat figcaption span, .piece figcaption span, .sent .muted, .walk h3, .fab-title { text-wrap: balance; }
.spec dd, .soft-spec dd, .story-quote, .quotes blockquote, .press b, .soft-level, .mat-level { font-variant-numeric: lining-nums; }
.spec dd { font-variant-numeric: lining-nums tabular-nums; }
.nw, :is(.mat, .piece) figcaption span.nw { white-space: nowrap; }
/* square metres keep their lower-case unit inside the upper-case caption */
.project figcaption .unit { font-size: inherit; letter-spacing: 0.04em; text-transform: none; opacity: 1; }

/* hero kicker: three parts so the place names can take their own line on phones */
.hero-kicker .kicker-sep { margin-inline: -5px; }

/* sun study: the spec list shares the room card's left edge */
.spec-wrap { padding: 0; }

/* material library (wide screens): the hint sits in the top strip, not over the captions */
@media (min-width: 961px) {
  .mat-hint { top: clamp(12px, 1.1vw, 18px); bottom: auto; }
}

/* testimonial credits: name, then project, never a separator dangling at a line end */
.quotes figcaption .cap-sep { display: none; }
.quotes figcaption .q-who { display: block; color: var(--ink-2); }
.quotes figcaption { line-height: 1.7; }

/* the thank-you note gets the same gold lozenge as the testimonials */
.sent::before { content: ""; display: block; width: 7px; height: 7px; margin: 0 auto 18px; background: var(--gold-hi); transform: rotate(45deg); }

/* ---------- tablets and small laptops ---------- */
@media (max-width: 960px) {
  /* services carousel: the first card snaps to the text gutter, not the screen edge */
  .svc-grid { scroll-padding-inline: var(--gutter); }
  /* material captions: titles line up across a row even when one description wraps */
  .mat figcaption span { min-height: calc(2em * 1.35); line-height: 1.35; }
  .piece figcaption span { line-height: 1.45; }
  /* contact details read as a list with hairlines instead of loose blocks */
  .contact-info { gap: 0; }
  .contact-info > div { padding-block: 14px; border-top: 1px solid var(--line-light); }
  .contact-info > div:last-child { padding-bottom: 0; }
  .contact-info dd { margin-top: 6px; }
  .footer-grid > div:first-child p:not(.f-h) { padding-top: 11px; }
  .footer-legal { padding-top: 28px; border-top: 1px solid var(--line-light); margin-top: 40px !important; }
}

/* ---------- tablets (portrait) ---------- */
@media (min-width: 700px) and (max-width: 960px) {
  /* studio: portrait beside the story, as on desktop */
  .story-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
  .story-photo { max-width: none; margin: 0; }
  .story-photo img { max-height: none; }
  .story-copy .display { font-size: 36px; }
  /* sun study: dial and material picker side by side under the room; four spec columns */
  .sun-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .sun-controls .picker { margin-top: 0; }
  .heliodon { gap: 14px; padding: 12px 14px; }
  .sun-arc { flex-basis: 180px; width: 180px; }
  .sun-time { font-size: 32px; }
  .sun-read .btn { min-height: 40px; padding: 8px 12px; }
  .surface-tabs { flex-wrap: nowrap; gap: 4px; }
  .surface-tabs button { flex: 1 1 auto; min-height: 40px; padding: 7px 6px; letter-spacing: 0.08em; }
  .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .swatch { font-size: 11px; }
  .spec { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* soft light + fabric bar: copy in two columns instead of a narrow block beside empty space */
  .soft-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: end; }
  .soft-copy > :not(.soft-spec) { grid-column: 1; }
  .soft-spec { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0; }
  .soft-spec div { flex-direction: column; gap: 2px; }
  .soft-spec dd { text-align: left; }
  .fab-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: end; }
  .fab-copy .kicker, .fab-copy .fab-title { grid-column: 1; }
  .fab-copy .muted { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
  /* furniture: square photos keep the 2 × 2 grid from towering */
  .piece-img { aspect-ratio: 1; }
  /* testimonials: three columns of comfortable line length */
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .quotes blockquote { font-size: 20px; }
  /* contact: the three detail blocks share one row */
  .contact-info { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
  .contact-info > div:last-child { padding-bottom: 14px; }
  .contact-copy .muted { max-width: 52ch; }
  /* footer: four columns, as on desktop */
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- phones ---------- */
@media (max-width: 600px) {
  /* hero kicker: "Interior architecture" / "Mumbai, Alibaug & Goa" on two aligned lines */
  .hero-kicker { display: grid; grid-template-columns: 22px auto; justify-content: start; column-gap: 10px; row-gap: 3px; line-height: 1.5; }
  .hero-kicker::before { grid-row: 1; align-self: center; width: 22px; }
  .hero-kicker .kicker-sep { display: none; }
  .hero-kicker span { grid-column: 2; }
  /* studio: credentials on their own line */
  .story-sign .sign-sep { display: none; }
  .story-sign .sign-cred { display: block; }
  .story-photo { max-width: 340px; }
  /* band caption: place and moment on separate lines, no dangling separator */
  .band-cap .cap-sep { display: none; }
  .band-cap > span { display: block; }
  .band-cap { line-height: 1.7; }
  /* sun study: the four surface tabs on one even row */
  .surface-tabs { flex-wrap: nowrap; gap: 4px; }
  .surface-tabs button { flex: 1 1 auto; padding: 7px 4px; letter-spacing: 0.04em; font-size: 11px; }
  /* process: numeral in a margin column, so each stage reads as one compact row */
  .steps li, .steps li + li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; padding: 22px 0; }
  .steps li > * { grid-column: 2; }
  .steps .step-num { grid-column: 1; grid-row: 1; font-size: 30px; }
  .steps h3 { grid-row: 1; margin-top: 0; font-size: 25px; }
  .step-time { padding-top: 12px; }
  .fab-wrap { margin-top: 12px; }
  .fab-stage { padding-bottom: 48px; }
  .fab-hint { bottom: 8px; }
  /* soft light spec: label above value, so neither wraps awkwardly */
  .soft-spec div { flex-direction: column; gap: 0; }
  .soft-spec dd { text-align: left; }
  /* press: a little more air between the two rows */
  .press { row-gap: 22px; padding-block: 24px; }
  /* enquiry sent: the card hugs its message */
  .enquiry.is-sent { padding-block: 56px; }
  .footer-legal { text-align: left; }
}

/* very narrow phones */
@media (max-width: 374px) {
  .surface-tabs button { letter-spacing: 0; padding-inline: 2px; }
  .steps li, .steps li + li { grid-template-columns: 38px minmax(0, 1fr); }
  .steps h3 { font-size: 23px; }
}

/* small laptops / tablets held sideways: the sun dial and surface tabs fit the narrower left column */
@media (min-width: 961px) and (max-width: 1200px) {
  .heliodon { gap: 14px; padding: 12px 14px; }
  .sun-arc { flex: 0 1 180px; width: 180px; min-width: 0; }
  .sun-read { flex: none; }
  .sun-time { font-size: 34px; }
  .surface-tabs { flex-wrap: nowrap; gap: 4px; }
  .surface-tabs button { flex: 1 1 auto; padding: 7px 6px; letter-spacing: 0.08em; }
}
