/* ==========================================================================
   Ovvanti — furniture house
   Identity: Cormorant Garamond + Jost, night / ivory / brass, sharp corners.
   Store settings (price, colors, email…) live in config.js.
   ========================================================================== */

@property --fabric {
  syntax: '<color>';
  inherits: true;
  initial-value: #ECE5D8;
}

:root {
  --fabric: #ECE5D8;

  /* The whole page wears the hero's palette: near-black with warm light.
     The names date from the light theme: "bone / chalk / stone" are the page
     surfaces (dark), "ink" is the text and solid-button color (ivory). */
  color-scheme: dark;
  --bone: #141210;
  --chalk: #181512;
  --stone: #1F1B17;
  --ink: #F3EEE3;
  --soft: rgba(243, 238, 227, 0.64);
  --line: rgba(243, 238, 227, 0.15);
  --brass: #CBAE82;
  --glow: radial-gradient(ellipse 58% 62% at 50% 50%, rgba(128, 112, 93, 0.34) 0%, rgba(77, 66, 56, 0.18) 40%, rgba(39, 34, 29, 0) 76%);
  --brass-lt: #CBAE82;
  --night: #141210;
  --night-2: #1D1A17;
  --ivory: #F3EEE3;
  --ivory-soft: rgba(243, 238, 227, 0.66);
  --ivory-line: rgba(243, 238, 227, 0.16);

  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Avenir Next', 'Helvetica Neue', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(1.25rem, 4vw, 4rem);

  --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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  transition: --fabric 0.9s var(--ease-io);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading, body.is-locked { overflow: hidden; }

h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--bone); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

.skip {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.8rem 1.2rem;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: min(100% - var(--pad) * 2, 80rem); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Identity
   -------------------------------------------------------------------------- */
.wordmark {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  margin-right: -0.36em;         /* optical centering: drop the trailing tracking */
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
/* Logo: the artwork is used as a mask, so it takes the color of the text around it */
.logo {
  display: block;
  flex: none;
  width: 9.75rem;
  aspect-ratio: 739 / 105;
  background-color: currentColor;
  -webkit-mask: url('assets/brand/wordmark.png?v=2') center / contain no-repeat;
  mask: url('assets/brand/wordmark.png?v=2') center / contain no-repeat;
  transition: background-color 0.6s var(--ease);
}
.logo--full {                      /* wordmark with its tagline */
  width: 15rem;
  aspect-ratio: 639 / 129;
  color: #EFE8DB;
  -webkit-mask-image: url('assets/brand/logo.png');
  mask-image: url('assets/brand/logo.png');
}
.mono {
  display: inline-grid;
  place-items: center;
  width: 3.1rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1;
  padding-bottom: 0.1em;
}

.kicker,
.label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--soft);
}
.kicker { display: flex; align-items: center; gap: 1rem; }
.kicker::before { content: ''; width: 2.25rem; height: 1px; background: var(--brass); flex: none; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.7rem, 6.4vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display--sm { font-size: clamp(2.3rem, 4.6vw, 4rem); }
.display em { color: var(--brass); }

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.15rem 2.2rem;
  border: 1px solid var(--ink);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0;
  transition: background-size 0.6s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn--solid { background-color: var(--ink); background-image: linear-gradient(var(--brass), var(--brass)); color: var(--bone); }
.btn--solid:hover { background-size: 100% 100%; border-color: var(--brass); }
.btn--line { background-image: linear-gradient(var(--ink), var(--ink)); }
.btn--line:hover { background-size: 100% 100%; color: var(--bone); }
.btn--light { background-color: var(--ivory); background-image: linear-gradient(var(--brass-lt), var(--brass-lt)); border-color: var(--ivory); color: var(--night); }
.btn--light:hover { background-size: 100% 100%; border-color: var(--brass-lt); }
.btn--wide { width: 100%; justify-content: space-between; }
.btn--sm { padding: 0.85rem 1.5rem; font-size: 0.66rem; }
.btn:disabled { opacity: 0.6; cursor: progress; }

.link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.link::before, .link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
}
.link::before { opacity: 0.25; }
.link::after { transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease); }
.link:hover::after { transform: scaleX(1); transform-origin: left; }

.textlink {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 0.4s var(--ease), color 0.4s var(--ease);
}
.textlink:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Small dot separators */
.house__now i, .gallery__caption i, .dims-line i, .buybar__info i, .palette__foot p i, .card__dims i {
  display: inline-block;
  width: 3px; height: 3px;
  margin: 0 0.7em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Intro curtain
   -------------------------------------------------------------------------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--ivory);
  transition: transform 1.2s var(--ease-io) 0.45s, visibility 0s linear 1.7s;
}
.intro__inner { display: grid; justify-items: center; gap: 1.6rem; }
.intro .logo { width: clamp(13.5rem, 36vw, 23rem); opacity: 0; animation: introIn 1.2s var(--ease) 0.15s forwards; }
@keyframes introIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body:not(.is-loading) .intro { transform: translateY(-100%); visibility: hidden; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--ivory);
  transition: transform 0.7s var(--ease), background 0.6s var(--ease), color 0.6s var(--ease);
}
.announce {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-height: 2.6rem;
  padding: 0.6rem var(--pad);
  overflow: hidden;
  background: #0C0B09;
  color: var(--ivory-soft);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: max-height 0.6s var(--ease), padding 0.6s var(--ease), opacity 0.4s var(--ease);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem var(--pad);
  border-bottom: 1px solid var(--ivory-line);
  transition: padding 0.6s var(--ease), border-color 0.6s var(--ease);
}
.site.is-scrolled {
  color: var(--ink);
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}
.site.is-scrolled .announce { max-height: 0; padding-block: 0; opacity: 0; }
.site.is-scrolled .nav { padding-block: 1.05rem; border-color: var(--line); }
.site.is-hidden { transform: translateY(-100%); }

.nav__left { display: flex; align-items: center; }
.nav__links { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav__links a, .nav__link, .nav__bag, .nav__menu {
  position: relative;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__links a::after, .nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0.24em; bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.nav__links a:hover::after, .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__menu { display: none; align-items: center; gap: 0.8rem; }
.nav__menu i { width: 1.5rem; height: 7px; border-block: 1px solid currentColor; }
.nav__brand { justify-self: center; }
.nav__tools { justify-self: end; display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav__bag { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding-inline: 0.3rem;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav__count.has-items { background: var(--brass); color: var(--chalk); border-color: var(--brass); }
.nav__count.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Full-screen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 1.5rem var(--pad) 2rem;
  background: var(--night);
  color: var(--ivory);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease-io), visibility 0s linear 0.9s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.9s var(--ease-io), visibility 0s; }
.menu__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ivory-line); }
.menu__close { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; }
.menu__links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.5rem 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 11vw, 4.25rem);
  line-height: 1.05;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}
.menu__links small { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.24em; color: var(--brass-lt); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.35s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.42s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.49s; }
.menu__foot { display: grid; justify-items: start; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--ivory-line); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-soft); }
.menu__foot a { text-transform: none; letter-spacing: 0.04em; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Sofa rendering
   -------------------------------------------------------------------------- */
.sofa { display: block; width: 100%; height: auto; overflow: visible; }
.sofa .hi  { stop-color: color-mix(in oklab, var(--fabric), #fff 42%); }
.sofa .mid { stop-color: var(--fabric); }
.sofa .lo  { stop-color: color-mix(in oklab, var(--fabric), #1a1208 24%); }
.sofa .hi-b  { stop-color: color-mix(in oklab, var(--fabric), #fff 22%); }
.sofa .mid-b { stop-color: color-mix(in oklab, var(--fabric), #1a1208 12%); }
.sofa .lo-b  { stop-color: color-mix(in oklab, var(--fabric), #1a1208 46%); }
.sofa .hi-s  { stop-color: color-mix(in oklab, var(--fabric), #fff 40%); }
.sofa .mid-s { stop-color: color-mix(in oklab, var(--fabric), #1a1208 3%); }
.sofa .lo-s  { stop-color: color-mix(in oklab, var(--fabric), #1a1208 30%); }
.sofa ellipse.b { stroke: rgba(20, 14, 6, 0.07); stroke-width: 1; }
.sofa.is-swapped { animation: swap 0.9s var(--ease); }
@keyframes swap { from { opacity: 0; } }

/* Line-drawing variant, used for the dimensions plate */
.sofa--line .sofa__shadow, .sofa--line .sofa__body { display: none; }
.sofa--line .sofa__form { filter: none; }
.sofa--line ellipse.b { fill: var(--chalk); stroke: var(--ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; }

/* --------------------------------------------------------------------------
   Sets: the rooms the sofa is shown in
   -------------------------------------------------------------------------- */
.set {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --horizon: 64%;       /* where the wall meets the floor */
  --piece-w: 80%;
  --lift: -70%;         /* how far the piece rises above the horizon */
}
.set > * { position: absolute; }
.set__wall { inset: 0 0 calc(100% - var(--horizon)) 0; }
.set__floor { inset: var(--horizon) 0 0 0; }
.set__piece { left: 50%; top: var(--horizon); z-index: 2; width: var(--piece-w); transform: translate(-50%, var(--lift)); }
.set::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: var(--grain);
  mix-blend-mode: overlay;
  opacity: 0.24;
  pointer-events: none;
}

/* Day: plaster wall, arched niche, window light */
.set--day { background: #CFC6B7; }
.set--day .set__wall { background: linear-gradient(180deg, #DDD5C8 0%, #CEC5B6 100%); }
.set--day .set__floor {
  background:
    linear-gradient(180deg, rgba(58, 42, 22, 0.26), transparent 16%),
    linear-gradient(180deg, #A79882 0%, #8B7C67 100%);
}
.set--day .set__arch {
  left: 8%;
  width: 21%;
  top: calc(var(--horizon) - 47%);
  bottom: calc(100% - var(--horizon));
  border-radius: 999px 999px 0 0;
  background: linear-gradient(100deg, #A69B89 0%, #BEB4A3 70%, #C6BCAC 100%);
  box-shadow: inset 20px 0 44px -20px rgba(45, 32, 14, 0.5), inset 0 26px 44px -26px rgba(45, 32, 14, 0.4);
}
.set--day .set__light {
  top: -6%;
  left: 46%;
  width: 46%;
  height: calc(var(--horizon) + 6%);
  background: linear-gradient(90deg,
    rgba(255, 247, 230, 0.8) 0 30%, transparent 30% 35%,
    rgba(255, 247, 230, 0.8) 35% 65%, transparent 65% 70%,
    rgba(255, 247, 230, 0.8) 70% 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 43%, transparent 43% 47.5%, #000 47.5% 100%);
  mask-image: linear-gradient(180deg, #000 0 43%, transparent 43% 47.5%, #000 47.5% 100%);
  transform: skewX(-20deg);
  transform-origin: bottom;
  filter: blur(12px);
  opacity: 0.5;
}

/* Night: dark gallery wall, one pool of warm light */
.set--night { background: var(--night); }
.set--night .set__wall {
  background:
    radial-gradient(ellipse 34% 90% at 50% 0%, rgba(255, 224, 178, 0.10), transparent 72%),
    radial-gradient(ellipse 58% 78% at 50% 100%, #80705D 0%, #4D4238 36%, #27221D 70%, #181512 100%);
}
.set--night .set__floor {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 22%),
    radial-gradient(ellipse 62% 130% at 50% 0%, #40352B 0%, #1A1612 68%, #0F0D0B 100%);
}

/* Dusk: warm plaster, low sun */
.set--dusk { background: #C4AD98; }
.set--dusk .set__wall { background: linear-gradient(180deg, #DCCAB8 0%, #C9B29D 100%); }
.set--dusk .set__floor {
  background:
    linear-gradient(180deg, rgba(60, 34, 16, 0.3), transparent 16%),
    linear-gradient(180deg, #927A65 0%, #6E5947 100%);
}
.set--dusk .set__light {
  top: 8%;
  left: 54%;
  width: 34%;
  height: calc(var(--horizon) - 8%);
  background: linear-gradient(90deg, rgba(255, 236, 205, 0.85) 0 47%, transparent 47% 53%, rgba(255, 236, 205, 0.85) 53% 100%);
  transform: skewX(-34deg);
  transform-origin: bottom;
  filter: blur(16px);
  opacity: 0.55;
}

/* Detail: a close crop on one end of the sofa */
.set--detail { --horizon: 74%; --piece-w: 240%; --lift: -62%; }
.set--detail .set__piece { left: 6%; }
.set--detail.set--night .set__wall {
  background: radial-gradient(ellipse 80% 80% at 30% 100%, #80705D 0%, #4D4238 36%, #27221D 70%, #181512 100%);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(9rem, 20vh, 12.5rem) var(--pad) clamp(1.75rem, 4.5vh, 3.25rem);
  background: var(--night);
  color: var(--ivory);
  overflow: hidden;
}
.hero__set {
  position: absolute;
  inset: 0;
  --horizon: 68%;
  --piece-w: min(66vw, 60rem, 98vh);
  opacity: 0;
  transition: opacity 2.2s var(--ease) 1s;
}
.hero__set .set__piece { scale: 1.05; transition: scale 3.2s var(--ease) 1s; }
body:not(.is-loading) .hero__set { opacity: 1; }
body:not(.is-loading) .hero__set .set__piece { scale: 1; }

.hero__head { position: relative; z-index: 4; text-align: center; will-change: transform; }
.eyebrow {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  opacity: 0;
  transition: opacity 1.4s var(--ease) 1.5s;
}
.eyebrow span + span::before {
  content: '';
  display: inline-block;
  width: 1.6rem; height: 1px;
  margin-right: 1.6rem;
  background: var(--brass-lt);
  vertical-align: middle;
}
body:not(.is-loading) .eyebrow { opacity: 1; }
.hero__title {
  margin-top: clamp(0.75rem, 2vh, 1.5rem);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, min(9vw, 15vh), 8.75rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero__title .line { display: inline-block; overflow: hidden; padding: 0.06em 0.08em 0.14em; vertical-align: top; }
.hero__title .line > span { display: inline-block; transform: translateY(115%); transition: transform 1.6s var(--ease) 1.55s; }
.hero__title .line + .line > span { transition-delay: 1.68s; }
.hero__title em { color: var(--brass-lt); }
body:not(.is-loading) .hero__title .line > span { transform: none; }

.hero__foot {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.4s var(--ease) 2.1s, transform 1.4s var(--ease) 2.1s;
}
body:not(.is-loading) .hero__foot { opacity: 1; transform: none; }
.hero__lede { max-width: 23rem; font-size: 0.98rem; color: var(--ivory-soft); }
.hero__cta { display: flex; align-items: center; gap: 2.25rem; }
.hero__price { display: grid; gap: 0.3rem; text-align: right; }
.hero__price .label { color: var(--ivory-soft); }
.hero__price > :last-child { font-family: var(--serif); font-size: 1.85rem; line-height: 1; font-variant-numeric: lining-nums; }

/* Optional cut-out photograph (assets/photos/hero.* with a transparent background):
   it stands on the showroom floor where the illustration was */
.set__photo { display: block; width: 100%; height: auto; filter: brightness(0.97) sepia(0.1) drop-shadow(0 1.6vw 2.2vw rgba(0, 0, 0, 0.5)); animation: fadeIn 1.6s var(--ease); }
.set__piece--photo > .sofa { display: none; }
.set__piece--photo::before {       /* contact shadow on the floor */
  content: '';
  position: absolute;
  left: 5%; right: 3%; bottom: -5%;
  height: 20%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 0, 0, 0.72), transparent 100%);
  filter: blur(14px);
}
.hero__set .set__piece--photo { --lift: -78%; }
/* The stage is the free space between headline and bottom text; main.js sizes the cut-out to it */
.hero__stage { flex: 1 1 auto; min-height: 0; pointer-events: none; }
.hero--cutout .hero__stage { min-height: min(42vw, 20rem, 28svh); }
@keyframes fadeIn { from { opacity: 0; } }

/* Optional photograph (assets/photos/hero.*) in place of the illustrated set */
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2.2s var(--ease) 1s; }
body:not(.is-loading) .hero__photo { opacity: 1; }
.hero--photo .hero__set { display: none; }
.hero--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14, 12, 10, 0.66) 0%, rgba(14, 12, 10, 0.2) 46%, rgba(14, 12, 10, 0.76) 100%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.3s var(--ease), transform 1.5s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
/* Image wipe: the clip sits on the child so the observed box keeps its size */
[data-reveal='image'] { opacity: 1; transform: none; }
[data-reveal='image'] > * { clip-path: inset(0 0 100% 0); scale: 1.14; transition: clip-path 1.7s var(--ease-io), scale 2.6s var(--ease); }
[data-reveal='image'].is-in > * { clip-path: inset(0); scale: 1; }

/* --------------------------------------------------------------------------
   The house
   -------------------------------------------------------------------------- */
.house { padding: clamp(6rem, 13vw, 11rem) 0; text-align: center; background: var(--glow); }
.house__inner { display: grid; justify-items: center; gap: clamp(2rem, 4vw, 3rem); }
.house .mono { color: var(--brass); }
.house__text {
  max-width: 27ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.2vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.house__text em { color: var(--brass); }
.house__now { font-size: 0.68rem; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; color: var(--soft); }

/* --------------------------------------------------------------------------
   The collection: one card per piece
   -------------------------------------------------------------------------- */
.collection { padding: 0 0 clamp(5rem, 11vw, 9rem); }
.collection__head { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: clamp(2rem, 6vw, 6rem); padding-top: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.collection__head .display { margin-top: 1.5rem; }
.collection__lede { max-width: 28rem; color: var(--soft); justify-self: end; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2.25rem); margin-top: clamp(2.5rem, 6vw, 5rem); }
.card { display: grid; align-content: start; gap: 1.4rem; }
.card__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.card__media .set { display: block; position: absolute; inset: 0; --horizon: 70%; --piece-w: calc(93% * var(--zoom, 1)); transition: scale 1.8s var(--ease); }
.card__photo { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; object-fit: cover; transition: scale 1.8s var(--ease); }
.card__media:hover .set, .card__media:hover .card__photo { scale: 1.045; }
.card__media::after {
  content: '';
  position: absolute;
  inset: 0.7rem;
  z-index: 5;
  border: 1px solid var(--chalk);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.card.is-selected .card__media::after { opacity: 0.85; }
.card__body { display: grid; gap: 0.5rem; }
.card__no { font-size: 0.66rem; font-weight: 400; letter-spacing: 0.24em; color: var(--brass); }
.card__name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.05; }
.card__name em { color: var(--brass); }
.card__dims { font-size: 0.86rem; color: var(--soft); font-variant-numeric: lining-nums; }
.card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.7rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.card__price { font-family: var(--serif); font-size: 1.55rem; line-height: 1; font-variant-numeric: lining-nums; }

/* --------------------------------------------------------------------------
   The piece: gallery + buying panel
   -------------------------------------------------------------------------- */
.piece { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: var(--chalk); border-block: 1px solid var(--line); }
.gallery { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.gallery__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--stone); }
.gallery__view {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 0s linear 1s;
}
.gallery__view.is-active { opacity: 1; visibility: visible; transition: opacity 1s var(--ease), visibility 0s; }
.gallery__view > .set { position: absolute; inset: 0; --horizon: 69%; --piece-w: calc(86% * var(--zoom, 1)); scale: 1.05; transition: scale 2.4s var(--ease); }
.gallery__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.05; transition: scale 2.4s var(--ease); }
.gallery__view.is-active > .gallery__photo { scale: 1; }
.gallery__photo.is-studio, .card__photo.is-studio { object-fit: contain; background: radial-gradient(ellipse 66% 58% at 50% 66%, #80705D 0%, #4D4238 36%, #27221D 70%, #1B1815 100%); }
.gallery__photo.is-studio { padding: clamp(0.5rem, 2%, 2rem); }
.gallery__view > .set--detail { --horizon: 76%; --piece-w: 205%; }
.gallery__view.is-active > .set { scale: 1; }
.gallery__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem clamp(1.25rem, 2.5vw, 2.25rem);
  background: var(--chalk);
  border-top: 1px solid var(--line);
}
.gallery__tabs { display: flex; gap: clamp(1rem, 2vw, 2rem); min-width: 0; padding-bottom: 3px; overflow-x: auto; scrollbar-width: none; }
.gallery__tabs::-webkit-scrollbar { display: none; }
.gallery__tabs button {
  position: relative;
  padding: 0.3rem 0;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}
.gallery__tabs button::after {
  content: '';
  position: absolute;
  left: 0; right: 0.22em; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.gallery__tabs button:hover, .gallery__tabs button[aria-selected='true'] { color: var(--ink); }
.gallery__tabs button[aria-selected='true']::after { transform: scaleX(1); }
.gallery__caption { flex: 0 100 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }

/* Dimensions plate */
.drawing {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(2rem, 5vh, 3.5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background:
    linear-gradient(rgba(243, 238, 227, 0.06) 1px, transparent 1px) 0 0 / 100% 3rem,
    linear-gradient(90deg, rgba(243, 238, 227, 0.06) 1px, transparent 1px) 0 0 / 3rem 100%,
    var(--chalk);
}
.drawing__title { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--soft); background: var(--chalk); padding: 0.2rem 0.9rem; }
.drawing__plate { position: relative; width: min(100% - 4.5rem, calc(40rem * var(--fit, 1))); margin: 0 4rem 2.75rem 0.5rem; }
.drawing__w, .drawing__h { position: absolute; display: flex; align-items: center; gap: 0.75rem; }
.drawing__w { left: 1.6%; right: 1.6%; top: calc(100% + 0.5rem); }
.drawing__h { top: 13%; bottom: 8%; left: calc(100% + 0.9rem); flex-direction: column; }
.drawing__w i { flex: 1; height: 1px; background: var(--ink); position: relative; }
.drawing__h i { flex: 1; width: 1px; background: var(--ink); position: relative; }
.drawing__w i:first-child::before, .drawing__w i:last-child::before { content: ''; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--ink); }
.drawing__w i:first-child::before { left: 0; }
.drawing__w i:last-child::before { right: 0; }
.drawing__h i:first-child::before, .drawing__h i:last-child::before { content: ''; position: absolute; left: -5px; width: 11px; height: 1px; background: var(--ink); }
.drawing__h i:first-child::before { top: 0; }
.drawing__h i:last-child::before { bottom: 0; }
.drawing b { font-weight: 400; font-size: 0.78rem; letter-spacing: 0.08em; background: var(--chalk); padding: 0.1rem 0.3rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.drawing__specs { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); background: var(--chalk); padding: 0.75rem 1.5rem; border: 1px solid var(--line); }
.drawing__specs div { display: grid; gap: 0.2rem; text-align: center; }
.drawing__specs dt { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--soft); }
.drawing__specs dd { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }

/* Buying panel */
.panel { padding: clamp(6rem, 15vh, 9.5rem) clamp(1.5rem, 4vw, 4.5rem) clamp(4rem, 10vh, 7rem); }
.panel__title {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 5vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
}
.panel__title em { display: block; margin-top: 0.5rem; font-size: 0.42em; letter-spacing: 0; color: var(--brass); }
.panel__price { margin-top: 2rem; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.panel__price [data-price] { font-family: var(--serif); font-size: 2.2rem; line-height: 1; font-variant-numeric: lining-nums; }
.panel__price small { font-size: 0.8rem; color: var(--soft); }
.panel__lede { margin-top: 1.5rem; max-width: 30rem; color: var(--soft); }

.field { padding: 1.5rem 0; border-top: 1px solid var(--line); margin-top: 2rem; }
.field + .field { margin-top: 0; }
.field__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.field__head > span:last-child:not(.unit) { color: var(--soft); }
.field__note { margin-top: 0.85rem; font-size: 0.86rem; color: var(--soft); }
.field--row { display: flex; gap: 0.75rem; align-items: stretch; }

.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: 1.15rem; }
.size {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 0.2rem;
  padding: 0.95rem 0.9rem 0.9rem;
  border: 1px solid var(--line);
  text-align: left;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.size__name { margin-bottom: 0.25rem; font-family: var(--serif); font-size: 1.28rem; line-height: 1.1; }
.size__meta { font-size: 0.78rem; color: var(--soft); font-variant-numeric: lining-nums; transition: color 0.5s var(--ease); }
.size:hover { border-color: var(--soft); }
.size[aria-checked='true'] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.size[aria-checked='true'] .size__meta { color: rgba(20, 18, 16, 0.66); }

.swatches { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.15rem; }
.swatch {
  position: relative;
  width: 2.7rem;
  height: 2.7rem;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.38), transparent 55%),
    var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s var(--ease);
}
.swatch::before { content: ''; position: absolute; inset: 0; background-image: var(--grain); mix-blend-mode: overlay; opacity: 0.5; }
.swatch::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid var(--ink);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-checked='true']::after { opacity: 1; transform: none; }

.unit { display: inline-flex; border: 1px solid var(--line); }
.unit button {
  padding: 0.25rem 0.75rem;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.unit button.is-active { background: var(--ink); color: var(--bone); }
.dims-line { margin-top: 0.9rem; font-family: var(--serif); font-size: 1.5rem; font-variant-numeric: lining-nums; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); flex: none; }
.qty button { width: 2.9rem; height: 100%; min-height: 3.3rem; font-size: 1.05rem; transition: color 0.3s; }
.qty button:hover { color: var(--brass); }
.qty output { min-width: 1.5rem; text-align: center; font-size: 0.95rem; font-weight: 400; font-variant-numeric: tabular-nums; }

.panel__links { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin-top: 0.25rem; font-size: 0.88rem; color: var(--soft); }
.assure { margin-top: 2rem; padding: 1.5rem 0; border-block: 1px solid var(--line); display: grid; gap: 0.65rem; font-size: 0.9rem; color: var(--soft); }
.assure li { position: relative; padding-left: 2rem; }
.assure li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 1.1rem; height: 1px; background: var(--brass); }

.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 0;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '';
  width: 0.7rem; height: 0.7rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: transform 0.6s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(135deg); }
.accordion__body { padding: 0 2rem 1.6rem 0; color: var(--soft); font-size: 0.94rem; }
.accordion details[open] .accordion__body { animation: fadeUp 0.7s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* --------------------------------------------------------------------------
   Colorways
   -------------------------------------------------------------------------- */
.palette { padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 10vw, 8rem); background: var(--stone); }
.palette__head { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: clamp(2rem, 6vw, 6rem); }
.palette__head .display { margin-top: 1.5rem; }
.palette__lede { max-width: 28rem; color: var(--soft); justify-self: end; }
.palette__stage {
  width: min(100% - var(--pad) * 2, 60rem);
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
  background: radial-gradient(56% 52% at 50% 60%, rgba(128, 112, 93, 0.5) 0%, rgba(77, 66, 56, 0.24) 42%, transparent 76%);
}
.tones { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.5rem); margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.tone { display: grid; gap: 0.95rem; text-align: left; }
.tone__chip {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.34) 0%, transparent 42%, rgba(26, 18, 8, 0.2) 100%),
    var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.8s var(--ease);
}
.tone__chip::before { content: ''; position: absolute; inset: 0; background-image: var(--grain); mix-blend-mode: overlay; opacity: 0.6; }
.tone__chip::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px solid var(--ink);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.tone:hover .tone__chip { transform: translateY(-6px); }
.tone[aria-checked='true'] .tone__chip::after { opacity: 1; transform: none; }
.tone__meta { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.66rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; }
.tone__meta span:first-child { color: var(--brass); }
.palette__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.palette__foot p { font-size: 0.68rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--soft); }
.palette__foot p span { color: var(--ink); }
.palette__actions { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }

/* --------------------------------------------------------------------------
   Craftsmanship
   -------------------------------------------------------------------------- */
.craft { padding: clamp(6rem, 13vw, 11rem) 0 clamp(5rem, 10vw, 8rem); }
.craft__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.craft__figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.craft__figure .set { position: absolute; inset: 0; }
.craft__figure .set__piece { left: 100%; }
.craft__figure .set--night .set__wall { background: radial-gradient(ellipse 80% 80% at 70% 100%, #80705D 0%, #4D4238 36%, #27221D 70%, #181512 100%); }
.craft__text .display { margin-top: 1.5rem; }
.craft__lede { margin-top: 1.75rem; max-width: 32rem; color: var(--soft); font-size: 1.04rem; }
.steps { margin-top: clamp(2rem, 4vw, 3.25rem); border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.steps span { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--brass); line-height: 1.5; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.15; }
.steps p { margin-top: 0.35rem; color: var(--soft); font-size: 0.95rem; max-width: 30rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.stats li { padding: 2rem 1.5rem 0 0; display: grid; gap: 0.5rem; }
.stats li + li { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.stats strong { font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 5vw, 4.1rem); line-height: 1; font-variant-numeric: lining-nums; }
.stats span { font-size: 0.66rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft); }

/* --------------------------------------------------------------------------
   Closing
   -------------------------------------------------------------------------- */
.closing { position: relative; min-height: min(100svh, 60rem); display: flex; justify-content: center; padding: clamp(5rem, 12vh, 8rem) var(--pad) 0; overflow: hidden; }
.closing__set { position: absolute; inset: 0; --horizon: 70%; --piece-w: min(64vw, 56rem, 92vh); }
.closing__text { position: relative; z-index: 4; text-align: center; }
.closing__actions { margin-top: clamp(1.75rem, 4vh, 2.75rem); display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */
.news { padding: clamp(5.5rem, 11vw, 9.5rem) 0 clamp(4.5rem, 9vw, 8rem); background: var(--chalk); }
.news__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  max-width: 60rem;
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 4.75rem);
  border: 1px solid var(--line);
  background: radial-gradient(ellipse 62% 78% at 50% 100%, rgba(128, 112, 93, 0.24) 0%, rgba(77, 66, 56, 0.12) 44%, transparent 76%);
  text-align: center;
}
.news__card::before {              /* second, inner rule: an invitation card */
  content: '';
  position: absolute;
  inset: 0.6rem;
  border: 1px solid color-mix(in srgb, var(--brass-lt) 70%, transparent);
  pointer-events: none;
}
.news__seal {
  position: absolute;
  top: 0; left: 50%;
  translate: -50% -50%;
  background: var(--chalk);
  box-shadow: 0 0 0 1rem var(--chalk);
  color: var(--brass);
  font-style: normal;
  padding-bottom: 0;
}
.news__kicker { margin-bottom: 1.4rem; font-size: 0.68rem; font-weight: 400; letter-spacing: 0.3em; margin-right: -0.3em; text-transform: uppercase; color: var(--soft); }
.news__lede { max-width: 31rem; margin-top: 1.5rem; color: var(--soft); text-wrap: balance; }
.news__form { width: min(100%, 35rem); margin-top: clamp(2.25rem, 5vw, 3.5rem); }
.news__field { position: relative; display: flex; align-items: center; gap: 1.25rem; border-bottom: 1px solid var(--ink); }
.news__field::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.news__field:focus-within::after { transform: scaleX(1); }
.news__label, .news__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.news__trap { left: -200vw; opacity: 0; pointer-events: none; }
.news__field input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
}
.news__field input::placeholder { color: var(--soft); font-style: italic; opacity: 0.85; }
.news__field input:focus { outline: none; }
.news__field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--chalk) inset; -webkit-text-fill-color: var(--ink); }
.news__send {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0 1rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.4s var(--ease), opacity 0.4s var(--ease);
}
.news__send i { font-style: normal; font-size: 1rem; letter-spacing: 0; transition: transform 0.6s var(--ease); }
.news__send:hover { color: var(--brass); }
.news__send:hover i { transform: translateX(6px); }
.news__send:focus-visible { outline-offset: 2px; }
.news__send:disabled { opacity: 0.45; cursor: progress; }
.news__status { margin-top: 0.85rem; min-height: 1.5rem; font-size: 0.88rem; color: #E7A08C; text-align: left; }
.news__fine { font-size: 0.78rem; color: var(--soft); }
.news__fine strong { font-weight: 400; color: var(--ink); }
.news__thanks { display: grid; gap: 0.9rem; margin-top: clamp(2.25rem, 5vw, 3.5rem); animation: fadeUp 0.9s var(--ease); }
.news__thanks-title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; }
.news__thanks-title:focus { outline: none; }
.news__thanks-title em { color: var(--brass); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--night); color: var(--ivory-soft); padding: clamp(4rem, 8vw, 6.5rem) 0 7rem; border-top: 1px solid var(--ivory-line); font-size: 0.9rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.footer__brand { display: grid; justify-items: start; gap: 1.5rem; color: var(--ivory); }
.footer__brand .logo { width: min(15rem, 72vw); }
.footer__small { max-width: 19rem; color: var(--ivory-soft); }
.footer nav, .footer__col { display: grid; align-content: start; justify-items: start; gap: 0.7rem; }
.footer h3 { margin-bottom: 0.75rem; font-size: 0.66rem; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ivory); }
.footer nav a, .footer__col button, .footer__col a { transition: color 0.4s var(--ease); text-align: left; }
.footer nav a:hover, .footer__col button:hover, .footer__col a:hover { color: var(--ivory); }
.footer__legal { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--ivory-line); display: grid; gap: 0.5rem; font-size: 0.76rem; color: rgba(243, 238, 227, 0.46); }
.footer__legal p { max-width: 62rem; }

/* --------------------------------------------------------------------------
   Sticky buy bar
   -------------------------------------------------------------------------- */
.buybar {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 40;
  width: min(100% - 2rem, 46rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.55rem 0.55rem 1.4rem;
  background: color-mix(in srgb, var(--chalk) 90%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 0 0 1px var(--line), 0 22px 50px -22px rgba(26, 24, 21, 0.45);
  font-size: 0.88rem;
  transform: translate(-50%, 170%);
  transition: transform 0.9s var(--ease);
}
.buybar.is-visible { transform: translate(-50%, 0); }
.buybar__info { display: flex; align-items: center; gap: 0.9rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--soft); }
.buybar__info strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-right: 0.3rem; color: var(--ink); }
.buybar__dot { width: 1.15rem; height: 1.15rem; background: var(--fabric); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); flex: none; }
.buybar__right { display: flex; align-items: center; gap: 1.25rem; flex: none; font-family: var(--serif); font-size: 1.3rem; font-variant-numeric: lining-nums; }
.buybar__right .btn { font-family: var(--sans); }

/* --------------------------------------------------------------------------
   Drawer: bag, checkout, questions
   -------------------------------------------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(14, 12, 10, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.scrim.is-open { opacity: 1; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 70;
  width: min(100%, 31rem);
  display: flex;
  flex-direction: column;
  background: var(--chalk);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.9s var(--ease), visibility 0s linear 0.9s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.9s var(--ease), visibility 0s; }
.drawer__head { display: flex; justify-content: space-between; align-items: baseline; padding: 2rem 2.25rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--serif); font-weight: 300; font-size: 2.1rem; line-height: 1; }
.drawer__close, .drawer__back { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--soft); transition: color 0.4s var(--ease); }
.drawer__close:hover, .drawer__back:hover { color: var(--ink); }
.drawer__back { align-self: flex-start; }
.drawer__step { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.drawer__lines { padding: 0 2.25rem; }
.drawer__empty { display: grid; justify-items: start; gap: 1.5rem; padding: 3rem 2.25rem; }
.drawer__empty p { font-family: var(--serif); font-weight: 300; font-size: 1.6rem; color: var(--soft); }

.drawer__lines .line { display: grid; grid-template-columns: 6.25rem 1fr; gap: 1.25rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); animation: fadeUp 0.7s var(--ease); }
.line__thumb { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(150deg, rgba(255, 255, 255, 0.34), transparent 45%, rgba(26, 18, 8, 0.2)), var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.line__thumb::before { content: ''; position: absolute; inset: 0; background-image: var(--grain); mix-blend-mode: overlay; opacity: 0.6; }
.line__name { font-family: var(--serif); font-size: 1.4rem; line-height: 1.1; }
.line__meta { font-size: 0.84rem; color: var(--soft); margin-top: 0.3rem; }
.line__row { display: flex; justify-content: space-between; align-items: center; margin-top: 0.95rem; font-size: 0.95rem; font-weight: 400; }
.line__qty { display: inline-flex; align-items: center; gap: 0.25rem; border: 1px solid var(--line); }
.line__qty button { width: 2rem; height: 2rem; }
.line__qty span { min-width: 1.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.line__remove { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); margin-top: 0.8rem; transition: color 0.4s var(--ease); }
.line__remove:hover { color: var(--ink); }

.drawer__foot { margin-top: auto; padding: 1.6rem 2.25rem 2rem; border-top: 1px solid var(--line); display: grid; gap: 1.1rem; }
.drawer__sums { display: grid; gap: 0.55rem; }
.drawer__sums div { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.92rem; color: var(--soft); }
.drawer__sums .drawer__total { margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; }
.drawer__total small { font-size: 0.74rem; letter-spacing: 0.04em; text-transform: none; color: var(--soft); margin-left: 0.4rem; }
.drawer__total dd { font-family: var(--serif); font-size: 1.9rem; letter-spacing: 0; line-height: 1; font-variant-numeric: lining-nums; }
.drawer__alt { font-size: 0.84rem; color: var(--soft); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); justify-self: center; transition: color 0.4s var(--ease); }
.drawer__alt:hover { color: var(--ink); }
.drawer__notice { margin: 1.25rem 2.25rem 0; padding: 0.95rem 1.15rem; border-left: 1px solid var(--brass); background: var(--stone); font-size: 0.88rem; color: var(--ink); }
form.drawer__step .drawer__notice { margin: 0; }
.drawer__note { font-size: 0.82rem; color: var(--soft); }
.drawer__note a { text-decoration: underline; text-underline-offset: 3px; }

form.drawer__step, .drawer__done { padding: 1.6rem 2.25rem 2rem; gap: 1.2rem; }
.drawer__intro { color: var(--soft); font-size: 0.95rem; }
.drawer label { display: grid; gap: 0.45rem; font-size: 0.64rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; }
.drawer label small { font-size: inherit; color: var(--soft); text-transform: none; letter-spacing: 0.04em; }
.drawer input, .drawer textarea, .drawer select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.6rem 0;
  resize: vertical;
  transition: border-color 0.4s var(--ease);
}
.drawer select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 1.75rem;
  cursor: pointer;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 0.45rem center / 0.35rem 0.35rem no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 0.1rem center / 0.35rem 0.35rem no-repeat;
}
.drawer input:focus, .drawer textarea:focus, .drawer select:focus { outline: none; border-color: var(--ink); }
.drawer__error { color: #E7A08C; font-size: 0.88rem; }
form.drawer__step .btn { margin-top: auto; flex: none; }
.drawer__done { align-items: flex-start; }
.drawer__done .mono { margin-top: 1.5rem; color: var(--brass); }
.drawer__done strong { font-weight: 400; }
.drawer__done h3 { font-family: var(--serif); font-weight: 300; font-size: 2.6rem; line-height: 1; }
.drawer__done .btn { margin-top: auto; justify-content: center; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .nav { padding-block: 1.15rem; }
  .nav__links, .nav__link { display: none; }
  .nav__menu { display: inline-flex; }

  .hero { padding-top: clamp(7.5rem, 15vh, 9rem); }
  .hero__set { --horizon: 62%; --piece-w: min(106vw, 46rem); }
  .hero__title { font-size: clamp(3.4rem, min(15vw, 11vh), 6.5rem); }
  .hero__price .label { white-space: nowrap; }

  /* Finger-sized hit areas for the small text controls; the look stays the same */
  .nav__menu { padding: 1.1rem 0.75rem; margin: -1.1rem -0.75rem; }
  .nav__bag { padding-block: 0.65rem; margin-block: -0.65rem; }
  .menu__close, .drawer__close, .drawer__back { padding: 0.9rem 0.75rem; margin: -0.9rem -0.75rem; }
  .drawer__back { margin-bottom: -0.4rem; }
  .line__qty button { width: 2.5rem; height: 2.5rem; }
  .line__remove { margin-top: 0.3rem; padding-block: 0.65rem; }
  .unit button { min-height: 2.15rem; padding-inline: 0.95rem; }
  .footer nav a, .footer__col a { padding-block: 0.3rem; }

  .collection__head { grid-template-columns: 1fr; }
  .collection__lede { justify-self: start; }

  .piece { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: relative; height: auto; border-right: 0; }
  .gallery__stage { flex: none; aspect-ratio: 1 / 1; max-height: 78svh; }
  .gallery__bar { overflow-x: auto; scrollbar-width: none; }
  .gallery__bar::-webkit-scrollbar { display: none; }
  .gallery__caption { display: none; }
  .panel { padding-top: 3rem; }

  .palette__head { grid-template-columns: 1fr; }
  .palette__lede { justify-self: start; }
  .tones {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(38vw, 11rem);
    width: 100vw;
    margin-left: calc(var(--pad) * -1);
    padding: 10px var(--pad) 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .tones::-webkit-scrollbar { display: none; }
  .tone { scroll-snap-align: start; }

  .craft__grid { grid-template-columns: 1fr; }
  .craft__figure { aspect-ratio: 1 / 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li { padding: 1.5rem 1rem 1.5rem 0; }
  .stats li + li { padding-left: 0; border-left: 0; }
  .stats li:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }


  .closing__set { --horizon: 72%; --piece-w: min(104vw, 44rem); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Short, wide screens (phones and small tablets on their side): give the piece more of the height */
@media (orientation: landscape) and (max-height: 640px) {
  .hero--cutout .hero__stage { min-height: 36svh; }
}

@media (max-width: 760px) {
  .hero__foot { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .hero__lede { max-width: 30rem; }
  .hero__cta { justify-content: space-between; }
  .hero__price { text-align: left; }

  .cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(76vw, 21rem);
    width: 100vw;
    margin-left: calc(var(--pad) * -1);
    padding: 0 var(--pad) 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
}

@media (max-width: 600px) {
  .size { padding: 0.8rem 0.65rem; }
  .size__name { font-size: 1.12rem; }
  .size__meta { font-size: 0.72rem; }
  .wordmark { font-size: 0.95rem; letter-spacing: 0.3em; margin-right: -0.3em; }
  .logo:not(.logo--full) { width: 8rem; }
  .news__card { padding-inline: 2rem; }
  .news__fine { text-wrap: balance; }
  .news__field { gap: 0.75rem; }
  .news__send { gap: 0.6rem; letter-spacing: 0.2em; }
  .announce { font-size: 0.56rem; letter-spacing: 0.16em; }
  .hero__foot { gap: 1.1rem; }
  .hero__cta { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
  .hero__price { display: flex; justify-content: space-between; align-items: baseline; }
  .hero__price > :last-child { font-size: 1.5rem; }
  .hero__cta .btn { width: 100%; }
  .nav__menu { font-size: 0; gap: 0; }             /* icon only */
  .nav__bag { letter-spacing: 0.18em; }
  .field--row { flex-direction: column; }
  .qty { justify-content: space-between; }
  .drawing__plate { margin-right: 3.5rem; }
  .drawing__specs { gap: 1.25rem; padding-inline: 1rem; }
  .palette__foot { flex-direction: column; align-items: flex-start; }
  .buybar { padding-left: 1rem; }
  .buybar__size + i, .buybar__size + i + span { display: none; }   /* keep the piece, drop the color */
  .buybar__info strong { margin-right: 0.6rem; }
  .gallery__bar { padding-inline: 1.25rem; }
  .gallery__tabs { gap: 0.95rem; }
  .gallery__tabs button { font-size: 0.6rem; letter-spacing: 0.15em; }
  .buybar__right > [data-price] { display: none; }
  .drawer__head, .drawer__foot, form.drawer__step, .drawer__done, .drawer__empty { padding-inline: 1.5rem; }
  .drawer__lines { padding-inline: 1.5rem; }
  .drawer__notice { margin-inline: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  [data-reveal], [data-reveal] > * { opacity: 1; transform: none; clip-path: none; scale: 1; }
}
