/* ==========================================================================
   AURASTU — design system
   Type: Bodoni Moda (display) + Jost (text/UI)
   Palette: bone / ink / stone / bronze. Restraint is the point.
   ========================================================================== */

:root {
  --bone: #f2eee7;
  --bone-2: #e9e3d9;
  --paper: #faf8f4;
  --ink: #1b1916;
  --ink-2: #3a3631;
  --stone: #8b8378;
  --stone-2: #b9b1a5;
  --rule: rgba(27, 25, 22, .14);
  --bronze: #8a6a45;
  --espresso: #191612;
  --espresso-2: #24201b;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-text: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1520px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-text);
  font-weight: 350;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bone); }

/* ---------- type ---------- */
.display, h1, h2, h3, .d-xxl, .d-xl, .d-l, .d-m, .d-s { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.04; margin: 0; }
/* italics: one step heavier, with sturdier hairlines than Bodoni Moda draws at display sizes (opsz would otherwise follow the font size) */
.display em, h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; font-variation-settings: "opsz" 24; }
.d-xxl { font-size: clamp(52px, 9vw, 152px); line-height: .94; letter-spacing: -.025em; }
.d-xl { font-size: clamp(42px, 6.4vw, 104px); line-height: .98; letter-spacing: -.02em; }
.d-l { font-size: clamp(34px, 4.4vw, 68px); }
.d-m { font-size: clamp(26px, 2.8vw, 42px); line-height: 1.12; }
.d-s { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.2; }

.eyebrow {
  font-family: var(--f-text);
  font-size: 11px;
  font-weight: 450;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.caption { font-size: 12px; letter-spacing: .04em; color: var(--stone); }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--stone); }
.num { font-family: var(--f-display); font-style: italic; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 180px) 0; }
.section-tight { padding: clamp(56px, 7vw, 110px) 0; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.dark { background: var(--espresso); color: var(--bone); }
.dark .muted, .dark .caption { color: var(--stone-2); }
.dark .rule { background: rgba(242, 238, 231, .14); }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }

/* ---------- links & buttons ---------- */
.link {
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 450;
  padding-bottom: 6px;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .6s var(--ease);
}
.link:hover::after { transform: scaleX(0); }
.link .arrow { transition: transform .5s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  height: 54px; padding: 0 30px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 450;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bone);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--bone); z-index: -1;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost::before { background: var(--ink); }
.btn.ghost:hover { color: var(--bone); }
.btn.block { width: 100%; }
.dark .btn { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.dark .btn::before { background: var(--espresso); }
.dark .btn:hover { color: var(--bone); }
.dark .btn.ghost { background: transparent; color: var(--bone); }
.dark .btn.ghost::before { background: var(--bone); }
.dark .btn.ghost:hover { color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--ink);
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-header nav { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.site-header nav a, .site-header .tools a, .site-header .tools button {
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 450; position: relative; padding: 6px 0;
}
.site-header nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.site-header nav a:hover::after, .site-header nav a[aria-current="page"]::after { transform: scaleX(1); }
.wordmark {
  font-family: var(--f-display); font-size: 25px; letter-spacing: .34em; font-weight: 400;
  padding-left: .34em; line-height: 1; white-space: nowrap;
}
.wordmark small { display: block; font-family: var(--f-text); font-size: 8.5px; letter-spacing: .5em; text-align: center; margin-top: 7px; opacity: .7; }
.site-header .tools { display: flex; justify-content: flex-end; gap: clamp(16px, 2vw, 32px); align-items: center; }
.site-header .tools .ext { opacity: .85; }
.bag-count { font-family: var(--f-display); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 13px; }

.site-header.on-hero { color: var(--bone); }
.site-header.solid { background: rgba(242, 238, 231, .94); color: var(--ink); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom-color: var(--rule); }
.site-header.hidden { transform: translateY(-100%); }

.menu-toggle { display: none; width: 28px; height: 14px; position: relative; }
.menu-toggle span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle span:first-child { top: 0; }
.menu-toggle span:last-child { top: 13px; }
body.menu-open .menu-toggle span:first-child { top: 7px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:last-child { top: 7px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--espresso); color: var(--bone);
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io);
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
body.menu-open .site-header { color: var(--bone); background: transparent; border-color: transparent; backdrop-filter: none; }
.mobile-menu a.big { display: block; font-family: var(--f-display); font-size: clamp(44px, 12vw, 80px); line-height: 1.1; }
.mobile-menu a.big em { font-size: .4em; font-style: normal; font-family: var(--f-text); letter-spacing: .2em; vertical-align: super; margin-left: .5em; opacity: .5; }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .menu-toggle { display: block; }
  .site-header .tools .hide-m { display: none; }
  .wordmark { font-size: 20px; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; color: var(--bone); overflow: hidden; background: var(--espresso); }
.hero .slides, .hero .slide { position: absolute; inset: 0; }
.hero .slide { opacity: 0; transition: opacity 1.8s var(--ease-io); }
.hero .slide.on { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero .slide.on img { animation: drift 9s linear forwards; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1.0); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,13,10,.42) 0%, rgba(15,13,10,0) 26%, rgba(15,13,10,0) 52%, rgba(15,13,10,.62) 100%); pointer-events: none; }
.hero .inner { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(32px, 5vw, 64px); }
.hero .inner .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.hero h1 { max-width: 11ch; }
.hero .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; text-align: right; }
.hero .counter { font-family: var(--f-display); font-style: italic; font-size: 15px; display: flex; gap: 14px; align-items: center; }
.hero .counter .bar { width: 80px; height: 1px; background: rgba(242,238,231,.3); position: relative; overflow: hidden; }
.hero .counter .bar i { position: absolute; inset: 0; background: var(--bone); transform-origin: left; transform: scaleX(0); }
.hero .counter .bar i.run { animation: fill 6s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
@media (max-width: 700px) { .hero .inner .wrap { grid-template-columns: 1fr; } .hero .meta { align-items: flex-start; text-align: left; } }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-img { clip-path: inset(12% 0 0 0); transition: clip-path 1.4s var(--ease); }
.rv-img img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
.rv-img.in { clip-path: inset(0 0 0 0); }
.rv-img.in img { transform: scale(1); }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.in .split-line > span, .split-line.in > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: .08s; }
.split-line:nth-child(3) > span { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-img, .rv-img img, .split-line > span { transition: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero .slide.on img { animation: none; }
}

/* ---------- image utilities ---------- */
.frame { position: relative; overflow: hidden; background: var(--bone-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.graded img { filter: saturate(.82) contrast(1.03) brightness(.99); }
.r-portrait { aspect-ratio: 4 / 5; }
.r-tall { aspect-ratio: 3 / 4.2; }
.r-land { aspect-ratio: 3 / 2; }
.r-wide { aspect-ratio: 16 / 9; }
.r-sq { aspect-ratio: 1; }
.fig { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; }

/* ---------- home: intro ---------- */
.intro .grid-12 > .k { grid-column: 1 / span 3; }
.intro .grid-12 > .v { grid-column: 4 / span 8; }
.intro .v .d-l { text-indent: 2.2em; }
@media (max-width: 900px) { .intro .grid-12 > .k, .intro .grid-12 > .v { grid-column: 1 / -1; } .intro .k { margin-bottom: 28px; } .intro .v .d-l { text-indent: 0; } }

/* ---------- home: three doors (expanding panels) ---------- */
.doors { display: flex; gap: 2px; height: clamp(520px, 78vh, 820px); background: var(--espresso); }
.door { position: relative; flex: 1; overflow: hidden; color: var(--bone); transition: flex 1.1s var(--ease); min-width: 0; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease), filter 1s; filter: brightness(.62) saturate(.8); }
.door:hover img { transform: scale(1); filter: brightness(.74) saturate(.88); }
.doors:hover .door { flex: .8; }
.doors .door:hover { flex: 1.6; }
.door .in { position: absolute; inset: 0; padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: space-between; }
.door .n { font-family: var(--f-display); font-style: italic; font-size: 18px; }
.door h3 { font-size: clamp(36px, 4vw, 64px); }
.door p { max-width: 28ch; opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); margin: 16px 0 24px; color: rgba(242,238,231,.82); }
.door:hover p { opacity: 1; transform: none; transition-delay: .25s; }
@media (hover: none), (max-width: 900px) {
  .doors { flex-direction: column; height: auto; }
  .door { height: 62vh; min-height: 420px; flex: none !important; }
  .door p { opacity: 1; transform: none; }
}

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.principle { border-top: 1px solid var(--rule); padding-top: 26px; }
.principle .num { font-size: 15px; color: var(--stone); }
.principle h3 { font-size: clamp(26px, 2.4vw, 36px); margin: 18px 0 14px; }
.principle p { margin: 0; color: var(--ink-2); max-width: 32ch; }
.dark .principle { border-color: rgba(242,238,231,.16); }
.dark .principle p { color: rgba(242,238,231,.72); }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- configurator teaser / studio ---------- */
.studio { display: grid; grid-template-columns: 1.5fr 1fr; min-height: 92vh; }
.studio .stage { position: relative; background: #e4ded4; min-height: 520px; overflow: hidden; }
.studio .stage canvas, .pdp .viewer canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.studio .panel { padding: clamp(32px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
@media (max-width: 1000px) { .studio { grid-template-columns: 1fr; } .studio .stage { min-height: 60vh; } }

/* ---------- swatches ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.sw {
  width: 40px; height: 40px; border-radius: 50%; position: relative; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  transition: transform .4s var(--ease);
}
.sw::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ink); opacity: 0; transform: scale(.85); transition: opacity .35s, transform .45s var(--ease); }
.dark .sw::after { border-color: var(--bone); }
.sw:hover { transform: scale(1.06); }
.sw[aria-pressed="true"]::after { opacity: 1; transform: scale(1); }
.sw.tex { background-image: var(--tex); background-size: cover; }
.sw-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.sw-label .v { font-family: var(--f-display); font-style: italic; font-size: 17px; }

.seg { display: inline-flex; border: 1px solid var(--rule); }
.seg button { padding: 11px 18px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; transition: background .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.dark .seg { border-color: rgba(242,238,231,.2); }
.dark .seg button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }

/* ---------- horizontal projects strip ---------- */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 34vw, 560px); gap: clamp(16px, 2vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 24px; scrollbar-width: none; cursor: grab; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.hscroll .wide { grid-column: span 1; }
.proj-card .frame { aspect-ratio: 4 / 5; }
.proj-card h3 { font-size: clamp(22px, 2vw, 30px); margin-top: 18px; }
.proj-card .frame img { transition: transform 1.4s var(--ease); }
.proj-card:hover .frame img { transform: scale(1.04); }
.strip-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 60px); }
.strip-nav { display: flex; gap: 8px; }
.strip-nav button { width: 52px; height: 52px; border: 1px solid var(--rule); border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s; }
.strip-nav button:hover { background: var(--ink); color: var(--bone); }

/* ---------- rooms mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.mosaic a { position: relative; display: block; }
.mosaic a .frame img { transition: transform 1.4s var(--ease); }
.mosaic a:hover .frame img { transform: scale(1.04); }
.mosaic .lbl { position: absolute; left: 20px; bottom: 18px; color: var(--bone); z-index: 2; display: flex; gap: 12px; align-items: baseline; }
.mosaic .lbl .d-s { font-size: clamp(22px, 2vw, 30px); }
.mosaic .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,13,10,.5)); }
.m1 { grid-column: 1 / span 7; } .m1 .frame { aspect-ratio: 7 / 5; }
.m2 { grid-column: 8 / span 5; } .m2 .frame { aspect-ratio: 5 / 5; height: 100%; }
.m3 { grid-column: 1 / span 4; } .m3 .frame { aspect-ratio: 4 / 5; }
.m4 { grid-column: 5 / span 4; margin-top: 12vh; } .m4 .frame { aspect-ratio: 4 / 5; }
.m5 { grid-column: 9 / span 4; } .m5 .frame { aspect-ratio: 4 / 5; }
@media (max-width: 800px) { .mosaic > a { grid-column: 1 / -1 !important; margin-top: 0 !important; } }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; }
.split .txt { padding: clamp(40px, 6vw, 110px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.split .frame { min-height: 60vh; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .frame { order: -1; } }

/* ---------- kubeplay band ---------- */
.kids-band { display: grid; grid-template-columns: auto 1fr auto; gap: var(--gutter); align-items: center; padding: 34px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.kids-band .d-m { font-size: clamp(22px, 2.2vw, 32px); }
.kids-band .tag { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
@media (max-width: 800px) { .kids-band { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--espresso); color: var(--bone); padding: clamp(70px, 9vw, 130px) 0 28px; overflow: hidden; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); }
.site-footer h4 { margin: 0 0 20px; font-weight: 450; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: rgba(242,238,231,.85); transition: color .3s; }
.site-footer ul a:hover { color: #fff; }
.news { display: flex; border-bottom: 1px solid rgba(242,238,231,.3); margin-top: 28px; max-width: 440px; }
.news input { flex: 1; background: transparent; border: 0; outline: 0; padding: 14px 0; color: var(--bone); }
.news input::placeholder { color: rgba(242,238,231,.45); }
.news button { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.giant { font-family: var(--f-display); font-size: clamp(64px, 17.6vw, 300px); letter-spacing: .1em; line-height: .8; margin: clamp(60px, 8vw, 120px) 0 26px; white-space: nowrap; text-align: center; color: rgba(242,238,231,.92); padding-left: .1em; }
.site-footer .base { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--stone-2); border-top: 1px solid rgba(242,238,231,.12); padding-top: 22px; flex-wrap: wrap; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- page heads ---------- */
.page-head { padding: calc(var(--header-h) + clamp(60px, 9vw, 140px)) 0 clamp(40px, 5vw, 80px); }
.page-head .row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; }
.page-head h1 { grid-column: 1 / span 8; }
.page-head .side { grid-column: 9 / span 4; }
.crumbs { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-bottom: 34px; display: flex; gap: 10px; }
@media (max-width: 900px) { .page-head h1, .page-head .side { grid-column: 1 / -1; } .page-head .side { margin-top: 28px; } }

/* ---------- shop ---------- */
.shop-bar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(242,238,231,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.shop-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 60px; }
.chips { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; padding: 20px 0; position: relative; color: var(--stone); transition: color .3s; }
.chips button sup { font-family: var(--f-display); font-style: italic; letter-spacing: 0; font-size: 11px; margin-left: 3px; }
.chips button[aria-pressed="true"] { color: var(--ink); }
.chips button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); white-space: nowrap; }
.sort select { border: 0; background: transparent; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); cursor: pointer; outline: 0; }

.products { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 64px) clamp(14px, 2vw, 28px); }
.products .feature { grid-column: span 2; }
.products .feature .frame { aspect-ratio: auto; height: calc(100% - 96px); min-height: 400px; }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(2, 1fr); } .products .feature { grid-column: 1 / -1; } .products .feature .frame { height: auto; aspect-ratio: 4 / 3; min-height: 0; } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }
.card { display: block; }
.card .frame { aspect-ratio: 3 / 2; background: #e6e0d6; } /* matches the 3:2 room-scene covers, so nothing is cropped */
.card .frame img { position: absolute; inset: 0; transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.card .frame img.alt { opacity: 0; object-fit: contain; } /* 4:5 studio shot: shown whole */
.card:hover .frame img.alt { opacity: 1; }
.card:hover .frame img { transform: scale(1.03); }
.card .badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; background: rgba(242,238,231,.92); padding: 7px 10px; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.card .name { font-family: var(--f-display); font-size: 22px; line-height: 1.15; }
.card .price { font-size: 14px; white-space: nowrap; }
.card .sub { font-size: 13px; color: var(--stone); margin-top: 4px; display: flex; justify-content: space-between; gap: 12px; }
.card .dots { display: flex; gap: 5px; }
.card .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.empty { padding: 80px 0; text-align: center; color: var(--stone); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); min-height: 100vh; padding-top: var(--header-h); }
.pdp .viewer { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); background: #e5dfd5; overflow: hidden; }
.pdp .viewer canvas { width: 100% !important; height: 100% !important; cursor: grab; }
.pdp .viewer canvas:active { cursor: grabbing; }
.viewer-ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px clamp(18px, 2.4vw, 32px); display: flex; justify-content: space-between; align-items: end; gap: 16px; pointer-events: none; }
.viewer-ui > * { pointer-events: auto; }
.viewer-ui .seg { background: rgba(242,238,231,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.viewer-hint { position: absolute; top: 22px; left: clamp(18px, 2.4vw, 32px); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 10px; align-items: center; pointer-events: none; }
.viewer-tone { display: flex; gap: 8px; }
.viewer-tone button { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); position: relative; }
.viewer-tone button[aria-pressed="true"]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ink); }
.loader { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-style: italic; color: var(--stone); transition: opacity .8s; }
.loader.done { opacity: 0; pointer-events: none; }

.gallery { display: grid; gap: 2px; }
.gallery .frame { aspect-ratio: 4 / 5; }
.pdp .info { padding: clamp(28px, 4vw, 64px) clamp(20px, 3.6vw, 64px) 80px; }
.pdp .info h1 { font-size: clamp(40px, 4vw, 64px); margin: 18px 0 10px; }
.pdp .price-line { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 26px; border-bottom: 1px solid var(--rule); }
.pdp .price-line .p { font-family: var(--f-display); font-size: 28px; transition: opacity .3s; }
.opt { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.opt .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; gap: 12px; }
.opt .head .v { font-family: var(--f-display); font-style: italic; font-size: 18px; text-align: right; }
.opt .tabs { display: flex; gap: 22px; margin-bottom: 20px; flex-wrap: wrap; }
.opt .tabs button { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); padding-bottom: 6px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.opt .tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.opt .note { font-size: 13px; color: var(--stone); margin-top: 14px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.sizes button { border: 1px solid var(--rule); padding: 14px 12px; text-align: left; transition: border-color .3s, background .3s; }
.sizes button b { display: block; font-weight: 450; font-size: 14px; }
.sizes button span { font-size: 12px; color: var(--stone); }
.sizes button[aria-pressed="true"] { border-color: var(--ink); background: rgba(27,25,22,.04); }
.actions { display: grid; gap: 10px; margin-top: 30px; }
.assure { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 34px; font-size: 13px; color: var(--ink-2); }
.assure b { display: block; font-weight: 450; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
details.acc { border-bottom: 1px solid var(--rule); }
details.acc summary { list-style: none; display: flex; justify-content: space-between; padding: 22px 0; cursor: pointer; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-family: var(--f-display); font-size: 20px; line-height: 1; transition: transform .4s var(--ease); }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .body { padding: 0 0 24px; color: var(--ink-2); font-size: 15px; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dims div { border-top: 1px solid var(--rule); padding-top: 10px; }
.dims b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
@media (max-width: 1000px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp .viewer { position: relative; top: 0; height: 66vh; min-height: 420px; }
}

/* ---------- interiors ---------- */
.manifesto { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 60px; }
.manifesto .q { grid-column: 2 / span 10; text-align: center; }
.process { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.process li { list-style: none; background: var(--espresso-2); padding: 34px 26px 40px; min-height: 300px; display: flex; flex-direction: column; gap: 56px; }
.process .num { font-size: 44px; color: var(--stone-2); }
.process h3 { font-size: 24px; margin-bottom: 12px; }
.process p { margin: 0; font-size: 14px; color: rgba(242,238,231,.7); }
@media (max-width: 1000px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .process { grid-template-columns: 1fr; } .process li { min-height: 0; gap: 28px; } }

.projects-list { display: grid; gap: clamp(80px, 10vw, 160px); }
.p-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; }
.p-row .frame { grid-column: 1 / span 8; aspect-ratio: 3 / 2; }
.p-row .meta { grid-column: 9 / span 4; padding-bottom: 8px; }
.p-row:nth-child(even) .frame { grid-column: 5 / span 8; order: 2; }
.p-row:nth-child(even) .meta { grid-column: 1 / span 4; order: 1; }
.p-row .frame img { transition: transform 1.6s var(--ease); }
.p-row:hover .frame img { transform: scale(1.03); }
.p-row dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; font-size: 14px; margin: 26px 0 30px; }
.p-row dt { color: var(--stone); }
.p-row dd { margin: 0; }
@media (max-width: 900px) { .p-row .frame, .p-row .meta, .p-row:nth-child(even) .frame, .p-row:nth-child(even) .meta { grid-column: 1 / -1; order: 0; } .p-row .meta { margin-top: 24px; } }

/* project detail gallery */
.pgal { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.pgal .frame:nth-child(5n+1) { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.pgal .frame:nth-child(5n+2) { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.pgal .frame:nth-child(5n+3) { grid-column: 6 / span 7; aspect-ratio: 7 / 5.6; align-self: end; }
.pgal .frame:nth-child(5n+4) { grid-column: 2 / span 6; aspect-ratio: 3 / 2; }
.pgal .frame:nth-child(5n+5) { grid-column: 8 / span 4; aspect-ratio: 3 / 4; }
@media (max-width: 800px) { .pgal .frame { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3 !important; } }

/* ---------- bespoke ---------- */
.makes { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.makes .frame { aspect-ratio: 3 / 4; }
.makes h3 { font-size: 24px; margin: 18px 0 6px; }
.makes p { margin: 0; font-size: 14px; color: var(--stone); }
@media (max-width: 900px) { .makes { grid-template-columns: 1fr 1fr; } }

.form-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 120px); }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.steps-ind { display: flex; gap: 8px; margin-bottom: 40px; }
.steps-ind i { flex: 1; height: 2px; background: var(--rule); position: relative; overflow: hidden; }
.steps-ind i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.steps-ind i.on::after { transform: scaleX(1); }
.fstep { display: none; }
.fstep.on { display: block; animation: fadeUp .8s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fstep h3 { font-size: clamp(28px, 2.6vw, 40px); margin-bottom: 28px; }
.choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choice label { border: 1px solid var(--rule); padding: 18px 16px; cursor: pointer; transition: border-color .3s, background .3s; display: block; }
.choice input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; } /* radios only: the "Which room" text box lives in .choice too */
.choice label:has(input:checked) { border-color: var(--ink); background: rgba(27,25,22,.045); }
.choice label b { display: block; font-weight: 450; }
.choice label span { font-size: 12.5px; color: var(--stone); }
.field { display: block; margin-bottom: 26px; }
.field > span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-bottom: 4px; }
.field input, .field textarea, .field select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--rule); padding: 12px 0; outline: 0; font-size: 17px; border-radius: 0; transition: border-color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; gap: 16px; }
.upload { border: 1px dashed var(--stone-2); padding: 28px; text-align: center; cursor: pointer; transition: border-color .3s, background .3s; display: block; }
.upload:hover { border-color: var(--ink); background: rgba(27,25,22,.03); }
.upload input { display: none; }
.thanks { display: none; padding: 40px 0; }
.thanks.on { display: block; animation: fadeUp .9s var(--ease); }

/* ---------- bag drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(15,13,10,.4); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(460px, 100vw); background: var(--paper); transform: translateX(100%); transition: transform .8s var(--ease); display: flex; flex-direction: column; }
body.bag-open .scrim { opacity: 1; pointer-events: auto; }
body.bag-open .drawer { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 26px 28px; border-bottom: 1px solid var(--rule); }
.drawer .items { flex: 1; overflow: auto; padding: 8px 28px; }
.drawer .item { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.drawer .item .frame { aspect-ratio: 4 / 5; }
.drawer .item .n { font-family: var(--f-display); font-size: 19px; line-height: 1.2; }
.drawer .item .o { font-size: 12.5px; color: var(--stone); margin-top: 4px; }
.drawer .qty { display: inline-flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 13px; }
.drawer .qty button { width: 24px; height: 24px; border: 1px solid var(--rule); border-radius: 50%; line-height: 1; }
.drawer footer { padding: 24px 28px 28px; border-top: 1px solid var(--rule); }
.drawer .tot { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.drawer .tot b { font-family: var(--f-display); font-weight: 400; font-size: 26px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 140%); background: var(--ink); color: var(--bone); padding: 16px 24px; font-size: 13px; letter-spacing: .04em; transition: transform .7s var(--ease); max-width: calc(100vw - 32px); }
.toast.on { transform: translate(-50%, 0); }

/* ---------- misc ---------- */
.spacer-head { height: var(--header-h); }
.center { text-align: center; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 36px; } .mt-l { margin-top: 64px; }
.flex-between { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--bronze); outline-offset: 3px; }

/* sticky bar follows the header as it hides/shows */
.shop-bar { transition: top .6s var(--ease); }
body:has(.site-header.hidden) .shop-bar { top: 0; }

/* segmented controls never overflow narrow screens */
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 520px) { .seg button { padding: 10px 12px; letter-spacing: .14em; } }
@media (max-width: 900px) {
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .site-header .tools { gap: 22px; }
}

/* Shop 2: unedited photos, shown whole (no crop) on white */
.frame.raw { background: #fff; }
.frame.raw img { object-fit: contain; }
.card:hover .frame.raw img { transform: none; }

/* ==========================================================================
   Legibility pass (2026-10-23): heavier body text, larger small labels,
   darker secondary text for contrast.
   ========================================================================== */
:root { --stone: #6c655b; }
body { font-weight: 400; font-size: 17px; }
.eyebrow { font-size: 12.5px; font-weight: 500; letter-spacing: .16em; }
.caption { font-size: 13.5px; }
.lede { color: var(--ink); }
.site-header nav a, .site-header .tools a, .site-header .tools button { font-size: 13px !important; font-weight: 500; letter-spacing: .14em !important; }
.chips button, .sort, .sort select, .crumbs, details.acc summary, .opt .tabs button, .seg button, .field > span, .viewer-hint, .kids-band .tag, .site-footer h4, .news button, .assure b, .card .badge { font-size: 12.5px !important; font-weight: 500; letter-spacing: .14em !important; }
.card .sub, .opt .note, .assure, .drawer .qty, .toast { font-size: 14.5px; }
.card .price { font-size: 15.5px; font-weight: 500; }
.card .name span { font-size: 15px !important; }
.site-footer .base { font-size: 13.5px; }
.site-footer ul a, .site-footer li { font-size: 15.5px; }

/* ---------- homes (customer photos) ---------- */
.homes-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(26px, 3vw, 44px); }
.homes-head .facts { display: flex; gap: 10px 28px; flex-wrap: wrap; font-size: 14px; color: var(--stone); }
.homes-head .facts b { color: var(--ink); font-weight: 500; }
.hfilter { display: flex; gap: 8px; flex-wrap: wrap; }
.hfilter button { border: 1px solid var(--rule); padding: 10px 16px; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; transition: background .25s, color .25s, border-color .25s; }
.hfilter button[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.hfilter button sup { font-family: var(--f-display); font-style: italic; letter-spacing: 0; margin-left: 3px; text-transform: none; }
.hstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 22vw); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 10px; scrollbar-width: thin; }
.hcard { position: relative; scroll-snap-align: start; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bone-2); cursor: zoom-in; }
.hcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hcard:hover img { transform: scale(1.04); }
.htag { position: absolute; left: 12px; top: 12px; display: inline-flex; gap: 6px; align-items: center; background: rgba(250,248,244,.94); color: var(--ink); padding: 6px 10px; font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.htag i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.hcard .hl { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; color: #fff; font-size: 14.5px; background: linear-gradient(180deg, transparent, rgba(15,13,10,.55)); }
.k-interiors { --c: #8a6a45; } .k-bespoke { --c: #3d5170; } .k-shop { --c: #3f6b4e; }
.hgrid { columns: 4 260px; column-gap: 14px; }
.hgrid .hcard { aspect-ratio: auto; break-inside: avoid; margin-bottom: 14px; display: block; }
.hgrid .hcard img { height: auto; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(15,13,10,.97); display: grid; grid-template-rows: 1fr auto; padding: 18px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; place-items: center; min-height: 0; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--bone); padding: 14px 6px 4px; font-size: 15px; flex-wrap: wrap; }
.lightbox .bar button { color: var(--bone); border: 1px solid rgba(242,238,231,.35); padding: 10px 16px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.lightbox .bar .htag { position: static; }
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.promise div { background: var(--bone); padding: 26px 20px; text-align: center; }
.promise b { display: block; font-family: var(--f-display); font-size: 24px; font-weight: 400; margin-bottom: 4px; }
.promise span { font-size: 14px; color: var(--stone); }

/* ---------- prose pages (about, legal) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 52px 0 14px; }
.prose h3 { font-family: var(--f-text); font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin: 30px 0 8px; }
.prose p, .prose li { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose ul { padding-left: 1.1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.contact-list { display: grid; gap: 6px; font-size: 17px; }

/* phones: give the category chips room (drop the "Sort" word, keep the dropdown) and fade their edge so they read as swipeable */
@media (max-width: 700px) {
  .shop-bar .wrap { gap: 12px; }
  .chips { flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 24px; }
  .shop-bar .sort { font-size: 0 !important; gap: 0; }
  .shop-bar .sort select { font-size: 12px !important; }
}
