/* ============================================================
   WineWell — deepseek build
   Decide/Learn: index, kaelder, rabl   ·   Explore: vine
   Configure: maal                      ·   Join: klub, kontakt
   The well is a circle. The interface is rectilinear.
   Palette sampled from the photographs: pale oak floors,
   white walls, brass, black metal, daylight.
   ============================================================ */

:root {
  --paper:      #f2efe9;
  --paper-2:    #e7e1d5;
  --paper-3:    #faf8f4;
  --ink:        #17140f;
  --ink-2:      #241f18;
  --ink-soft:   #4b453c;
  --muted:      #736b5f;
  --line:       rgba(23, 20, 15, 0.13);
  --line-2:     rgba(23, 20, 15, 0.26);

  --brass:      #96733a;
  --brass-2:    #b9975c;
  --brass-3:    #e6d3aa;

  --night:      #14120e;
  --night-soft: #cbc2b3;

  --danger:     #8c2f2a;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "Outfit", "Segoe UI", system-ui, sans-serif;

  --pad:     clamp(1.15rem, 3.8vw, 5rem);
  --chrome:  7rem;
  --measure: 60ch;
  --rule:    1px solid var(--line);
  --shadow:  0 40px 90px -30px rgba(20, 18, 14, 0.42);
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* paper tooth — under dialogs */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("../img/grain.jpg");
  background-size: 170px 170px;
  mix-blend-mode: multiply;
}

img { display: block; max-width: 100%; min-width: 0; background: #ded5c6; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
p { text-wrap: pretty; margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }

/* overflow guard: every cell/container that holds a photograph */
.hero-fig, .gal figure, .film figure, .essay fig, .plate, .stage,
.draw, .plan-wrap, .elev-wrap, .film-block, .film, .sheet { min-width: 0; max-width: 100%; }
.chrome, .top, .nav, .hero, .hero-copy, .page-head, .band, .band-head, .essay, .serve,
.visit, .contact, .studio, .studio-form, main, section, footer { min-width: 0; }
.actions { min-width: max-content; }
.actions .btn { white-space: nowrap; }
.lede, .page-head p, .meta-row, .v-note, .specs span { overflow-wrap: anywhere; max-width: 100%; }

::selection { background: var(--brass-3); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 80; background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; text-decoration: none; }
.skip:focus { top: 0.6rem; }

/* ---------------- chrome ---------------- */

.chrome { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: var(--rule); }

.devline {
  margin: 0; padding: 0.3rem var(--pad);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-bottom: var(--rule);
}
.devline b { font-weight: 450; color: var(--ink-soft); }

.top {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 0.75rem 2rem;
  min-height: 4.7rem; padding: 0.5rem var(--pad);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 1.7rem; width: auto; background: transparent; }
.brand-txt { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.2em; text-transform: uppercase; }

.nav { display: flex; flex-wrap: wrap; gap: 0.1rem 1.4rem; align-items: center; }
.nav a {
  position: relative; text-decoration: none; font-size: 0.94rem;
  min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-soft);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.55rem; height: 1px;
  background: var(--brass-2); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.actions { display: flex; align-items: center; gap: 0.6rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.55rem 1.15rem;
  text-decoration: none; cursor: pointer; border: 1px solid var(--ink); background: transparent;
  font-size: 0.94rem; letter-spacing: 0.015em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost:hover { background: rgba(23, 20, 15, 0.055); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn-lg { min-height: 52px; padding: 0.7rem 1.5rem; }

.inquiry-btn {
  min-height: 44px; border: 0; background: transparent; cursor: pointer;
  display: none; align-items: center; gap: 0.5rem; padding: 0 0.4rem;
  text-decoration: underline; text-underline-offset: 3px; font-size: 0.94rem;
}
.inquiry-btn.is-on { display: inline-flex; }
.inquiry-btn b { font-weight: 450; font-variant-numeric: tabular-nums; color: var(--brass); }

/* ---------------- type ---------------- */

.kicker {
  display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem;
  font-size: 0.7rem; font-weight: 450; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker::before { content: ""; width: 2.2rem; height: 1px; background: var(--brass-2); flex: none; }

h1, h2, .display {
  font-family: var(--serif); font-weight: 300;
  letter-spacing: -0.032em; line-height: 0.92;
}
h1 { font-size: clamp(2.9rem, 7.6vw, 7.2rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.9rem); }
h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.9vw, 1.8rem); letter-spacing: -0.022em; line-height: 1.14; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; }

.lede { max-width: var(--measure); margin: 1.3rem 0 0; font-size: 1.1rem; color: var(--ink-soft); }
.fine { color: var(--muted); font-size: 0.88rem; max-width: 46ch; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.band { padding: clamp(3.6rem, 8vw, 8rem) var(--pad); }
.band-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem); align-items: end;
  padding-bottom: clamp(2rem, 4vw, 3.6rem);
}
.band-head .lede { margin: 0; }
.band-index { font-family: var(--serif); font-size: 0.95rem; color: var(--brass); letter-spacing: 0.1em; display: block; margin-bottom: 0.9rem; }

/* a full-bleed photograph or film already carries the air above the next
   section, so the band does not add a second gap on top of it */
.film-open + .band, .plate + .band { padding-top: clamp(2.4rem, 4.5vw, 4.6rem); }
/* the linked measure band: a deliberate front edge instead of a bare colour shift */
a.band { border-top: 1px solid var(--line); }

/* ---------------- hero ---------------- */

.hero {
  display: grid; grid-template-columns: minmax(19rem, 0.86fr) minmax(0, 1.24fr);
  min-height: calc(100svh - var(--chrome));
}
.hero-copy {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.8rem, 4.5vw, 4.4rem) clamp(2rem, 5vw, 5.5rem) clamp(1.8rem, 4vw, 3.6rem) var(--pad);
  background: var(--paper);
}
.hero-copy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 0% -10%, rgba(185, 151, 92, 0.2), transparent 62%);
}
/* the paper panel bleeds over the photograph — depth, not a scrim */
.hero-copy::after {
  content: ""; position: absolute; right: -1px; top: 0; bottom: 0;
  width: clamp(2rem, 6vw, 5.5rem); pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 30%, rgba(242, 239, 233, 0));
}
.hero .lede { max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 2rem 0 0;
  padding-top: 1.1rem; border-top: var(--rule); list-style: none;
  font-size: 0.88rem; color: var(--muted);
}
.hero-meta li { display: flex; align-items: center; gap: 0.55rem; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass-2); flex: none; }

.hero-fig { position: relative; overflow: hidden; background: #cbbda8; }
.hero-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-rail {
  position: absolute; z-index: 3; top: clamp(1.2rem, 5vh, 3rem); right: clamp(1rem, 2.4vw, 2.2rem);
  display: grid; background: rgba(242, 239, 233, 0.94); border: var(--rule);
}
.hero-rail a {
  display: flex; align-items: center; gap: 0.9rem; min-height: 44px; padding: 0.2rem 1.1rem;
  text-decoration: none; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: var(--rule);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.hero-rail a:last-child { border-bottom: 0; }
.hero-rail a:hover { color: var(--ink); background: rgba(23, 20, 15, 0.045); }
.hero-rail i { font-style: normal; font-family: var(--serif); color: var(--brass); font-size: 0.82rem; }

.hero-foot {
  position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 0.75rem;
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.32); padding-top: 0.5rem; pointer-events: none;
}

/* ---------------- two states ---------------- */

.reveal-state {
  position: relative; border-radius: 50%; overflow: hidden; aspect-ratio: 1;
  background: var(--night); box-shadow: var(--shadow);
}
.reveal-state img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s var(--ease), transform 1.4s var(--ease); }
.reveal-state img[data-state="closed"] { opacity: 1; }
.reveal-state img[data-state="open"] { opacity: 0; }
.reveal-state[data-show="open"] img[data-state="closed"] { opacity: 0; }
.reveal-state[data-show="open"] img[data-state="open"] { opacity: 1; transform: none; }
/* the slow push-in only where the circle is narrower than the viewport,
   so the scaled frame can never reach past the page edge */
@media (min-width: 1001px) {
  .reveal-state img[data-state="open"] { transform: scale(1.06); }
}

.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button {
  min-height: 44px; padding: 0.4rem 1.1rem; border: 0; background: transparent; cursor: pointer;
  font-size: 0.86rem; letter-spacing: 0.07em; text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.state-note { margin-top: 1.3rem; padding-top: 1rem; border-top: var(--rule); min-height: 6.5rem; }
.state-note b { display: block; margin-bottom: 0.35rem; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; letter-spacing: -0.02em; }

/* ---------------- specs ---------------- */

.specs { list-style: none; margin: 2rem 0 0; }
.specs li {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.4rem 1.4rem;
  padding: 0.9rem 0; border-top: 1px solid var(--line-2); font-size: 0.97rem;
}
.specs li:last-child { border-bottom: 1px solid var(--line-2); }
.specs b { font-weight: 450; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 0.22rem; }
.specs span { color: var(--ink-soft); }

/* ---------------- plate ---------------- */

.plate { position: relative; background: #b9a88d; }
.plate img { width: 100%; height: min(88svh, 940px); object-fit: cover; }
.plate figcaption {
  position: absolute; left: var(--pad); bottom: clamp(1rem, 3vw, 2.6rem);
  max-width: 26rem; background: var(--paper); padding: 1.2rem 1.35rem 1.4rem;
}
.plate figcaption p:last-child { color: var(--ink-soft); margin-top: 0.4rem; font-size: 0.97rem; }

/* ---------------- essay ---------------- */

.essay { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); align-items: center; gap: clamp(1.4rem, 5vw, 5rem); }
.essay.rev .essay-copy { order: 2; }
.essay-copy { padding: clamp(1rem, 2vw, 2rem) 0; }
.essay fig { overflow: hidden; }
.essay fig img { width: 100%; height: min(78svh, 820px); object-fit: cover; }

/* ---------------- gallery ---------------- */

.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.6rem, 1.4vw, 1.4rem); }
.gal figure { position: relative; overflow: hidden; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gal figure:hover img { transform: scale(1.03); }
.gal figcaption { margin-top: 0.6rem; font-size: 0.82rem; color: var(--muted); display: flex; justify-content: space-between; gap: 0.8rem; }
.g-a { grid-column: span 7; }  .g-a img { height: min(74svh, 700px); }
.g-b { grid-column: span 5; }  .g-b img { height: min(74svh, 700px); }
.g-c, .g-d, .g-e { grid-column: span 4; }
.g-c img, .g-d img, .g-e img { height: min(52svh, 480px); }

/* ---------------- strip ---------------- */

.film-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 0 var(--pad) 1.4rem; }
.film-nav { display: flex; gap: 0.4rem; }
.film-nav button {
  width: 46px; height: 46px; border: 1px solid var(--ink); background: transparent; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.film-nav button:hover { background: var(--ink); color: var(--paper); }
.film {
  display: flex; gap: clamp(0.6rem, 1.4vw, 1.2rem); overflow-x: auto;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--pad);
  padding: 0 var(--pad) 1.4rem; scrollbar-width: thin; scrollbar-color: var(--brass-2) transparent;
}
.film figure { flex: 0 0 min(70vw, 360px); scroll-snap-align: start; }
.film figure.wide { flex-basis: min(84vw, 620px); }
.film img { width: 100%; height: min(64svh, 600px); object-fit: cover; }
.film figcaption { margin-top: 0.6rem; font-size: 0.82rem; color: var(--muted); }

/* ---------------- houses ---------------- */

.house-list { margin-top: clamp(2rem, 4vw, 3.4rem); border-top: 1px solid var(--ink); }
a.house {
  display: grid; grid-template-columns: 7rem minmax(0, 1.35fr) minmax(0, 1fr) auto;
  gap: 0.4rem 1.4rem; align-items: baseline; padding: 1.25rem 0;
  border-bottom: var(--rule); text-decoration: none; min-height: 44px;
}
a.house:hover .house-name { transform: translateX(0.5rem); }
.house-place { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.house-name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -0.032em; line-height: 1; transition: transform 0.4s var(--ease); }
.house-meta { color: var(--muted); font-size: 0.94rem; }
.house-go { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------------- dark close ---------------- */

.visit {
  background: var(--night); color: var(--paper);
  padding: clamp(3.6rem, 9vw, 8rem) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem clamp(2rem, 6vw, 6rem); align-items: end;
}
.visit h2 { font-size: clamp(2.6rem, 8vw, 7rem); }
.visit a { color: var(--paper); }
.visit .kicker { color: var(--night-soft); }
.visit .kicker::before { background: var(--brass-2); }
.visit-side p { margin: 0.3rem 0; color: var(--night-soft); }
.visit-phone {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 4vw, 3.2rem);
  letter-spacing: -0.032em; text-decoration: none; display: inline-block; margin: 0.5rem 0 0.2rem; min-height: 44px;
}
.visit-phone:hover { color: var(--brass-3); }
.visit :focus-visible { outline-color: var(--paper); }
.visit .btn-ink { background: var(--paper); color: var(--night); border-color: var(--paper); }
.visit .btn-ink:hover { background: #fff; }
.visit .btn-ghost { border-color: rgba(203, 194, 179, 0.5); }
.visit .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------------- inner head ---------------- */

.page-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem); align-items: end;
  padding: clamp(2.4rem, 6vw, 5.5rem) var(--pad) clamp(1.6rem, 3.5vw, 3rem);
  border-bottom: var(--rule);
}
.page-head .lede { margin: 0; }

.pull {
  margin: 0; padding: clamp(2.4rem, 6vw, 5.5rem) var(--pad);
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.22; letter-spacing: -0.024em; max-width: 24em;
}
.pull cite { display: block; margin-top: 1.3rem; font-family: var(--sans); font-style: normal; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------------- film / video ---------------- */

.film-open {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--night); cursor: pointer; color: var(--paper); text-align: left; overflow: hidden;
}
.film-open img { width: 100%; height: min(74svh, 800px); object-fit: cover; opacity: 0.9; transition: transform 1s var(--ease); }
.film-open:hover img { transform: scale(1.02); }
.film-open .play { position: absolute; left: var(--pad); bottom: 1.4rem; background: var(--paper); color: var(--ink); padding: 0.9rem 1.1rem; display: grid; gap: 0.15rem; }
.film-open .play strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.film-open .play small { color: var(--muted); font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; }
.film-open .vig { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 150px 44px rgba(20, 18, 14, 0.55); }
.film-video { width: 100%; aspect-ratio: 16/9; border: 0; display: block; background: #0d0c0a; }

/* ---------------- wine catalogue ---------------- */

.wine-tools { padding: 0 var(--pad) 1.3rem; display: grid; gap: 1rem; border-bottom: var(--rule); }
.wine-tools label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.45rem; }
.search {
  width: min(34rem, 100%); min-height: 48px; border: 0; border-bottom: 1px solid var(--ink);
  background: transparent; padding: 0.4rem 0; border-radius: 0;
  font-family: var(--serif); font-size: 1.2rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  min-height: 40px; padding: 0.35rem 0.9rem; border: 1px solid var(--line-2);
  background: transparent; cursor: pointer; font-size: 0.86rem; border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.wine-count { margin: 0; padding: 0.9rem var(--pad) 0; color: var(--muted); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.wine-root { padding: 0.6rem var(--pad) clamp(3rem, 6vw, 5rem); }
.house-break { margin: 3rem 0 0.3rem; padding-top: 1.6rem; border-top: 1px solid var(--ink); }
.house-break h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.house-break p { margin: 0.45rem 0 0; color: var(--brass); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; }

.v-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 2rem; padding: 1.25rem 0; border-bottom: var(--rule); scroll-margin-top: 9rem; }
.v-name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -0.02em; }
.v-sub { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.84rem; }
.v-note { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 62ch; }
.v-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; min-width: 9.5rem; }
.price { font-family: var(--serif); font-size: 1.6rem; font-variant-numeric: tabular-nums; letter-spacing: -0.032em; }
.price small { font-family: var(--sans); font-size: 0.7rem; color: var(--muted); margin-left: 0.25rem; }
.format-flag { display: inline-block; margin-left: 0.5rem; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); border: 1px solid var(--brass-2); padding: 0.05rem 0.4rem; }
.empty { padding: 2.5rem 0; color: var(--ink-soft); display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }

/* ---------------- club + award ---------------- */

.club-row {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1.3fr) minmax(12rem, 0.7fr);
  gap: 1rem clamp(1.2rem, 3vw, 2.4rem); align-items: center;
  padding: clamp(1.6rem, 3vw, 2.6rem) var(--pad); border-top: var(--rule);
}
.club-row > span { font-family: var(--serif); font-size: 1.4rem; color: var(--brass); font-style: italic; }
.club-row p { margin: 0.5rem 0 0; color: var(--ink-soft); }
.club-row img { width: 100%; height: 230px; object-fit: cover; }

.award { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.4rem); align-items: center; padding: clamp(1.8rem, 4vw, 3.2rem) var(--pad); max-width: 64rem; }
.award img { width: 8rem; height: auto; background: transparent; }
.award p { margin: 0.5rem 0 0; color: var(--ink-soft); }

/* ---------------- contact ---------------- */

.contact {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.6rem, 5vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem) var(--pad) clamp(3rem, 6vw, 5rem);
}
.who { margin: 1.6rem 0 0; list-style: none; }
.who li { padding: 0.9rem 0; border-top: var(--rule); }
.who b { display: block; font-weight: 450; }
.who a { text-underline-offset: 4px; }
.who small { display: block; color: var(--muted); margin-top: 0.2rem; font-size: 0.85rem; }

form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field > span, .field > label > span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 50px; border: 1px solid var(--line-2); background: var(--paper-3);
  padding: 0.7rem 0.85rem; border-radius: 0;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); background: #fff; outline: none; }
textarea { min-height: 8.5rem; resize: vertical; }
select {
  appearance: none; padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.4rem, calc(100% - 0.85rem) 1.4rem;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field .err { color: var(--danger); font-size: 0.82rem; min-height: 1.05em; }
[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.94rem; color: var(--ink-soft); }
.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.22rem; flex: none; }
.form-status { border: 1px solid var(--line-2); background: var(--paper-3); padding: 1.2rem 1.3rem; display: grid; gap: 0.6rem; }
.form-status[hidden] { display: none; }
.form-status pre { white-space: pre-wrap; font-family: var(--sans); font-size: 0.9rem; margin: 0; max-height: 18rem; overflow: auto; }
.inquiry-preview { list-style: none; margin: 0.4rem 0 0; border-top: var(--rule); }
.inquiry-preview li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: var(--rule); font-variant-numeric: tabular-nums; font-size: 0.94rem; }

/* ---------------- dialog ---------------- */

dialog { border: 0; padding: 0; max-width: 34rem; width: calc(100% - 1.6rem); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(20, 18, 14, 0.5); }
.dialog-inner { padding: 1.4rem 1.4rem 1.5rem; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--ink); padding-bottom: 0.7rem; }
.dialog-head h2 { font-size: 1.5rem; }
.dialog-lines { list-style: none; margin: 1rem 0; }
.dialog-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.7rem; align-items: center; padding: 0.75rem 0; border-bottom: var(--rule); }
.qty { width: 4.2rem; min-height: 44px; border: 1px solid var(--line-2); background: var(--paper-3); padding: 0 0.4rem; border-radius: 0; }
.icon-x { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 1.25rem; }

/* ---------------- footer ---------------- */

footer {
  border-top: 1px solid var(--line-2);
  padding: clamp(1.8rem, 4vw, 3rem) var(--pad) calc(2rem + env(safe-area-inset-bottom));
  display: grid; gap: 0.8rem; color: var(--muted); font-size: 0.88rem;
}
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1rem; }
.foot-mark { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: 0.06em; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.3rem; }
.foot-links a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }

/* ============================================================
   THE MEASURE STUDIO
   ============================================================ */

.studio { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(20rem, 0.72fr); align-items: start; }

.stage {
  position: sticky; top: var(--chrome);
  background: var(--paper-2); border-right: var(--rule);
  padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.6rem) clamp(1.4rem, 3vw, 2.2rem);
}
.stage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; }
.stage-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.readout { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 5.4vw, 4.4rem); letter-spacing: -0.04em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.readout small { display: block; margin-top: 0.35rem; font-family: var(--sans); font-size: 0.66rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.draw { display: grid; gap: clamp(0.6rem, 1.6vw, 1.2rem); }
.draw svg { width: 100%; height: auto; display: block; }
.draw .plan-wrap {
  position: relative;
  background:
    repeating-linear-gradient(90deg, rgba(90, 62, 28, 0.055) 0 1px, transparent 1px 4.2%),
    linear-gradient(168deg, #ece1cd 0%, #dccbb1 62%, #cfbb9d 100%);
  border: 1px solid var(--line-2);
}
.draw .elev-wrap { position: relative; background: var(--paper-3); border: 1px solid var(--line-2); }
.stage-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 0.9rem; border-top: var(--rule); font-size: 0.8rem; color: var(--muted); }

.plan-caption { position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.85rem; font-size: 0.8rem; color: var(--ink-soft); background: rgba(242, 239, 233, 0.94); padding: 0.5rem 0.7rem; }
.el-note { position: absolute; left: 0.9rem; top: 0.7rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--danger); }

.studio-form { padding: clamp(1.4rem, 3vw, 2.4rem) var(--pad) clamp(3rem, 6vw, 4.5rem); display: grid; gap: 1.05rem; align-content: start; background: var(--paper); }
.studio-form h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.form-block { display: grid; gap: 1rem; padding: 1.3rem 0 0; border-top: 1px solid var(--line-2); }
.form-block:first-of-type { border-top: 0; padding-top: 0; }
.block-label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); display: flex; align-items: center; gap: 0.7rem; }
.block-label::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }

.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.pick {
  border: 1px solid var(--line-2); background: var(--paper-3); cursor: pointer;
  padding: 0.75rem 0.4rem 0.6rem; display: grid; gap: 0.5rem; justify-items: center;
  font-size: 0.78rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.pick:hover { border-color: var(--ink); }
.pick[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pick .swatch { width: 1.9rem; height: 1.9rem; border-radius: 50%; box-shadow: inset 0 -5px 8px rgba(0,0,0,0.35), inset 0 4px 7px rgba(255,255,255,0.4); }
.sw-messing { background: radial-gradient(circle at 34% 30%, #f6e8c4, #b9975c 58%, #6d5225); }
.sw-sort    { background: radial-gradient(circle at 34% 30%, #6b6b6b, #232323 60%, #0b0b0b); }
.sw-staal   { background: radial-gradient(circle at 34% 30%, #ffffff, #b9b9b6 58%, #5b5b58); }
.sw-andet   { background: conic-gradient(from 40deg, #b9975c, #232323, #b9b9b6, #6d5a3c, #b9975c); }

/* live workshop sheet */
.sheet { border: 1px solid var(--line-2); background: var(--paper-3); padding: 1.3rem 1.4rem 1.5rem; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--ink); padding-bottom: 0.7rem; }
.sheet-head strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.sheet-head small { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sheet-rows { list-style: none; margin: 0.9rem 0 0; }
.sheet-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 0.45rem 0; border-bottom: var(--rule); font-size: 0.92rem; }
.sheet-rows li span:first-child { color: var(--muted); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.sheet-rows li span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.sheet-rows li.is-set span:last-child { color: var(--ink); font-weight: 450; }

/* SVG drawing primitives */
.dwg-floor { fill: #e2d6c0; }
.dwg-well { fill: #2a251d; }
.dwg-shelf { fill: none; stroke: #8f7340; stroke-width: 5; }
.dwg-glass { fill: none; stroke: rgba(255, 255, 255, 0.95); stroke-width: 6; }
.dwg-hub   { fill: #b9975c; stroke: #6d5225; stroke-width: 4; }
.dwg-hub-t { fill: #3a2c12; font-family: var(--serif); font-size: 34px; text-anchor: middle; }
.dwg-dim line, .dwg-dim path { stroke: #17140f; stroke-width: 2.5; fill: none; }
.dwg-dim text { fill: #17140f; font-family: var(--sans); font-size: 26px; letter-spacing: 0.05em; }
.dwg-bottle { fill: #17140f; }
.dwg-bottle-t { fill: #4b453c; font-family: var(--sans); font-size: 22px; text-anchor: middle; }
.dwg-cap { fill: #8c2f2a; font-family: var(--sans); font-size: 23px; letter-spacing: 0.06em; }
.dwg-cut { fill: rgba(23, 20, 15, 0.07); stroke: rgba(23, 20, 15, 0.45); stroke-width: 2; }
.dwg-floorline { stroke: #17140f; stroke-width: 3; }
.dwg-ram { stroke: #8f7340; stroke-width: 6; }
.dwg-lid { fill: #cfd8dc; stroke: #7d8c93; stroke-width: 3; }
.dwg-lid-up { fill: rgba(185, 151, 92, 0.18); stroke: #8f7340; stroke-width: 3; stroke-dasharray: 10 8; }
.dwg-note { fill: #4b453c; font-family: var(--sans); font-size: 21px; }
.dwg-bottle-e { fill: #17140f; }

/* the drawing follows the chosen metal */
svg[data-finish="sort"]  .dwg-shelf { stroke: #6f6a63; }
svg[data-finish="sort"]  .dwg-hub   { fill: #2b2b2b; stroke: #0d0d0d; }
svg[data-finish="sort"]  .dwg-hub-t { fill: #d8d3ca; }
svg[data-finish="sort"]  .dwg-ram   { stroke: #6f6a63; }
svg[data-finish="staal"] .dwg-shelf { stroke: #8d8d89; }
svg[data-finish="staal"] .dwg-hub   { fill: #c9c9c6; stroke: #6f6f6b; }
svg[data-finish="staal"] .dwg-hub-t { fill: #2b2b2b; }
svg[data-finish="staal"] .dwg-ram   { stroke: #8d8d89; }
svg[data-finish="andet"] .dwg-shelf { stroke: #6d5a3c; }
svg[data-finish="andet"] .dwg-hub   { fill: #6d5a3c; stroke: #3a2c12; }
svg[data-finish="andet"] .dwg-hub-t { fill: #f0e6d2; }

/* ============================================================
   motion
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(30px); }
  .rise.in {
    opacity: 1; transform: none;
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .hero-fig img { animation: drift 26s var(--ease) both; }
  .hero-copy > * { animation: fadeUp 1.1s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
}
@keyframes drift { from { transform: scale(1.05) translateY(-1.2%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   breakpoints
   ============================================================ */

@media (max-width: 1180px) {
  .studio { grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.8fr); }
}

@media (max-width: 1000px) {
  :root { --chrome: 7.6rem; }
  .hero, .band-head, .essay, .essay.rev, .visit, .page-head, .contact, .studio { grid-template-columns: minmax(0, 1fr); }
  .essay.rev .essay-copy { order: 0; }
  .hero-copy::after { display: none; }
  .hero-fig img { position: relative; height: min(72svh, 560px); }
  .hero-rail { position: static; margin: 0 var(--pad); border-left: 0; border-right: 0; }
  .hero-foot { position: static; color: var(--muted); text-shadow: none; border-top: var(--rule); padding: 0.5rem var(--pad); }
  .stage { position: static; border-right: 0; border-bottom: var(--rule); }
  .gal { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .g-a, .g-b { grid-column: span 6; }
  .g-c, .g-d, .g-e { grid-column: span 3; }
  .g-c img, .g-d img, .g-e img { height: min(38svh, 340px); }
  .g-a img, .g-b img { height: min(58svh, 520px); }
  a.house { grid-template-columns: 6rem 1fr; grid-template-areas: "place go" "name name" "meta meta"; }
  .house-place { grid-area: place; } .house-name { grid-area: name; }
  .house-meta { grid-area: meta; } .house-go { grid-area: go; }
  .club-row { grid-template-columns: 3rem minmax(0, 1fr); }
  .club-row img { grid-column: 1 / -1; height: 210px; }
  .top { grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "nav nav"; }
  .brand { grid-area: brand; } .actions { grid-area: actions; } .nav { grid-area: nav; }
  .plate figcaption { position: static; max-width: none; }
  .plate img { height: min(64svh, 560px); }
}

@media (max-width: 680px) {
  .two, .three { grid-template-columns: minmax(0, 1fr); }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .v-row { grid-template-columns: minmax(0, 1fr); }
  .v-buy { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .award { grid-template-columns: minmax(0, 1fr); }
  .devline b { display: none; }
  h1 { font-size: clamp(2.6rem, 13vw, 3.5rem); }
  .pull { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .stage-foot { flex-direction: column; gap: 0.4rem; }
}

/* ============================================================
   print — the workshop sheet
   ============================================================ */

@media print {
  .chrome, .actions, .film-nav, .inquiry-btn, .btn, body::after, .devline,
  .hero-rail, .no-print, nav, .foot-links, .film-open { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .stage { position: static; border: 0; background: #fff; padding: 0; }
  .studio { grid-template-columns: 1fr; }
  .draw .plan-wrap { background: #fff; }
  .sheet { border-color: #000; break-inside: avoid; }
  .v-row { break-inside: avoid; }
}