/* Dresfase — site styles. Centered, symmetric, museum-like. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sage-light); color: var(--ink); }

:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 50%;
  top: 0.75rem;
  z-index: 100;
  transform: translate(-50%, -160%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(1440px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.62); }
.rule + .section { padding-top: calc(var(--section) * 0.72); }
.section--alt { background: var(--paper-2); }
.section--alt .muted, .section--alt .entry p, .section--alt .label, .section--alt .part__head p,
.section--alt .note, .section--alt .ledger__s, .section--alt .step p, .section--alt .checklist span,
.section--alt .field label, .section--alt .field legend, .section--alt .form__note, .section--alt .table caption { color: var(--muted-deep); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s-3); }

/* Centered hairline rule with a sage dot */
.rule {
  position: relative;
  width: min(220px, 40%);
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--sage-light);
  height: 0;
  overflow: visible;
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%; top: -3.5px;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 6px var(--paper);
}
.section--alt .rule::after { box-shadow: 0 0 0 6px var(--paper-2); }

/* ---------- Type ---------- */
.label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--muted);
}
.label--sage { color: var(--sage-deep); }
.sep { display: inline; margin: 0 0.45em; }
@media (max-width: 599px) {
  .sep { display: block; height: 0.3rem; margin: 0; overflow: hidden; color: transparent; }
}
.display-1, .display-2, .display-3, .display-4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display-1 { font-size: var(--fs-d1); line-height: 0.93; }
.display-2 { font-size: var(--fs-d2); line-height: 0.98; }
.display-3 { font-size: var(--fs-d3); line-height: 1.02; }
.display-4 { font-size: var(--fs-d4); line-height: 1.1; }
.display-1 em, .display-2 em, .display-3 em, .display-4 em, .statement em {
  font-style: italic;
  color: var(--sage-deep);
}
.lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.65;
  max-width: 38rem;
  margin-inline: auto;
  text-wrap: pretty;
}
.statement {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.9vw + 1.05rem, 2.75rem);
  line-height: 1.22;
  max-width: 54rem;
  margin-inline: auto;
  text-wrap: balance;
}
.muted { color: var(--muted); }
.head-block { text-align: center; }
.head-block .label { margin-bottom: var(--s-3); }
.head-block .lead { margin-top: var(--s-4); }

/* Inline links: faint rule at rest, a solid one drawn from the center on hover */
.prose a, .inline-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--sage-light);
  background: linear-gradient(currentColor, currentColor) 50% 100% / 0% 1px no-repeat;
  transition: background-size 0.5s var(--ease), text-decoration-color 0.3s;
}
.prose a:hover, .inline-link:hover { background-size: 100% 1px; text-decoration-color: transparent; }

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-5);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.25rem;
  padding: 0.95rem 2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.45s var(--ease-soft), color 0.45s var(--ease-soft), border-color 0.45s var(--ease-soft);
}
.btn:hover, .btn:focus-visible { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--mat); }

.quiet {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0 0.45rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.3;
}
.quiet::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sage);
  flex: none;
  transition: transform 0.4s var(--ease);
}
.quiet::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(var(--ink), var(--ink)) 50% 0 / 0% 100% no-repeat, var(--hair-strong);
  transition: background-size 0.55s var(--ease);
}
.quiet:hover::after, .quiet:focus-visible::after { background-size: 100% 100%, auto; }
.quiet:hover::before { transform: scale(1.5); }

/* ---------- Masthead (split nav) ---------- */
.mast {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}
.mast__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-3);
  padding: 1.7rem var(--gutter);
  transition: padding 0.5s var(--ease);
}
.mast.is-condensed {
  background: var(--paper);
  box-shadow: 0 1px 0 var(--hair);
}
.mast.is-condensed .mast__inner { padding-block: 0.9rem; }
.mast__list { display: flex; gap: clamp(1.4rem, 2.6vw, 3rem); list-style: none; }
.mast__list--l { justify-self: start; }
.mast__list--r { justify-self: end; }
.mast__link {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
.mast__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.5s var(--ease);
}
.mast__link:hover::after, .mast__link:focus-visible::after { transform: scaleX(1); }
.mast__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -0.55rem;
  width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%;
  background: var(--sage);
}
.mast__mark {
  justify-self: center;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 0.7vw + 1rem, 1.65rem);
  line-height: 1;
  letter-spacing: var(--track-mark);
  padding-left: var(--track-mark); /* optical centering of tracked caps */
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: font-size 0.5s var(--ease), letter-spacing 0.5s var(--ease);
}
.mast.is-condensed .mast__mark { font-size: clamp(1.1rem, 0.5vw + 0.95rem, 1.35rem); }
.mast__menu {
  display: none;
  justify-self: end;
  background: none;
  border: 0;
  padding: 0.6rem 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  align-items: center;
  gap: 0.6rem;
}
.mast__menu::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sage);
}
@media (max-width: 899px) {
  .mast__list { display: none; }
  .mast__mark { grid-column: 2; }
  .mast__menu { display: inline-flex; grid-column: 3; }
  .mast__inner { padding-block: 1.1rem; }
  .mast.is-condensed .mast__inner { padding-block: 0.75rem; }
}

/* ---------- Mobile sheet ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  padding: 1.1rem var(--gutter) 2rem;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
  overflow-y: auto;
}
.sheet.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease), visibility 0s;
}
.sheet__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.sheet__top .mast__mark { grid-column: 2; }
.sheet__close {
  grid-column: 3;
  justify-self: end;
  background: none; border: 0; cursor: pointer;
  padding: 0.6rem 0;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
}
.sheet__nav { align-self: center; text-align: center; padding-block: 2.5rem; }
.sheet__nav ol { list-style: none; display: grid; gap: 0.4rem; }
.sheet__nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 1.12;
  text-decoration: none;
}
.sheet__nav a small {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.sheet__nav a[aria-current="page"] { font-style: italic; color: var(--sage-deep); }
.sheet__foot { text-align: center; font-size: var(--fs-small); color: var(--muted); }
.sheet__foot a { color: var(--ink); }
.sheet .rule { margin-bottom: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .sheet__nav li { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .sheet.is-open .sheet__nav li { opacity: 1; transform: none; }
  .sheet.is-open .sheet__nav li:nth-child(2) { transition-delay: 0.05s; }
  .sheet.is-open .sheet__nav li:nth-child(3) { transition-delay: 0.1s; }
  .sheet.is-open .sheet__nav li:nth-child(4) { transition-delay: 0.15s; }
  .sheet.is-open .sheet__nav li:nth-child(5) { transition-delay: 0.2s; }
  .sheet.is-open .sheet__nav li:nth-child(6) { transition-delay: 0.25s; }
  .sheet.is-open .sheet__nav li:nth-child(7) { transition-delay: 0.3s; }
}

/* ---------- Plates (matted, framed images) ---------- */
.plate { margin: 0 auto; }
.plate__mat {
  position: relative;
  background: var(--mat);
  padding: var(--mat-pad);
  box-shadow:
    0 0 0 1px rgba(38, 35, 31, 0.07),
    0 1px 2px rgba(38, 35, 31, 0.05),
    0 28px 60px -38px rgba(38, 35, 31, 0.45);
}
.plate__window {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  outline: 1px solid rgba(38, 35, 31, 0.26);
  outline-offset: var(--keyline-gap);
}
.plate__window::after {
  /* thin bevel against the image edge */
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(38, 35, 31, 0.18);
  pointer-events: none;
}
.plate__window img { width: 100%; height: 100%; object-fit: cover; }
.plate--land .plate__window { aspect-ratio: 3 / 2; }
.plate--port .plate__window { aspect-ratio: 4 / 5; }
.plate--tall .plate__window { aspect-ratio: 2 / 3; }
.plate__cap {
  margin-top: 1.4rem;
  text-align: center;
  line-height: 1.5;
}
.plate__no {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
}
.plate__title {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.2;
}
.plate__note {
  display: block;
  margin: 0.35rem auto 0;
  max-width: 34rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--muted);
}
.section--alt .plate__no, .section--alt .plate__note { color: var(--muted-deep); }
.plate--w-xl { max-width: 1180px; }
.plate--w-l { max-width: 980px; }
.plate--w-m { max-width: 560px; }
.plate--w-s { max-width: 460px; }

/* Hero plate: image settles from 1.06 to 1 */
.hero { padding-top: clamp(7rem, 4vw + 4.5rem, 9rem); padding-bottom: var(--section); text-align: center; }
.hero .label { margin-bottom: var(--s-4); }
.hero__title { max-width: 11em; margin-inline: auto; font-size: clamp(3rem, 6.2vw + 0.6rem, 7.25rem); }
.hero .lead { margin-top: var(--s-4); }
.hero .actions { margin-top: var(--s-4); }
.hero__plate { margin-top: clamp(2.75rem, 4vw, 4.5rem); }
@media (min-width: 900px) { .hero__plate .plate__window { aspect-ratio: 16 / 9; } .hero__plate .plate__window img { object-position: 50% 72%; } }
.hero__plate .plate__title { font-size: clamp(1.35rem, 0.6vw + 1.1rem, 1.6rem); }
html.js .plate--settle .plate__window img {
  transform: scale(1.06);
  transition: transform 2.8s var(--ease);
}
html.js .plate--settle.is-loaded .plate__window img { transform: scale(1); }

/* Diptych */
.diptych {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4.5rem);
  max-width: 1080px;
  margin-inline: auto;
  align-items: start;
}
.diptych .plate:nth-child(2) { margin-top: clamp(2rem, 8vw, 7rem); }
@media (max-width: 699px) {
  .diptych { grid-template-columns: 1fr; gap: var(--s-6); }
  .diptych .plate:nth-child(2) { margin-top: 0; }
  .diptych .plate { max-width: 420px; }
}

/* ---------- Facts row (index) ---------- */
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin: var(--s-6) auto 0;
  text-align: center;
}
.facts li {
  padding: 0.4rem 1.5rem;
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.55;
}
.facts li + li { border-left: 1px solid var(--hair); }
.facts strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; color: var(--ink); margin-bottom: 0.2rem; }
@media (max-width: 699px) {
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 1.1rem 0; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--hair); }
}

/* ---------- The Suite: pinned horizontal gallery ---------- */
.suite { position: relative; background: var(--paper-2); }
.suite__pin { padding-block: var(--section); }
.suite__head { text-align: center; padding-inline: var(--gutter); }
.suite__head .label { margin-bottom: var(--s-2); }
.suite__hint { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--muted-deep); }
.suite__viewport { position: relative; margin-top: var(--s-5); }
.suite__track {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: clamp(2.5rem, 6vw, 7rem);
  padding: 0.5rem var(--gutter) 2rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--sage-light) transparent;
}
.suite__panel { flex: 0 0 auto; width: min(78vw, 520px); scroll-snap-align: center; }
.suite__panel .plate { width: 100%; }
.suite__panel .plate__no, .suite__panel .plate__note { color: var(--muted-deep); }
.suite__panel .plate__title { font-size: clamp(1.9rem, 1.6vw + 1.3rem, 2.6rem); margin-top: 0.4rem; }
.suite__desc { margin: 0.7rem auto 0; max-width: 26rem; font-size: 0.95rem; line-height: 1.6; color: var(--muted-deep); }
.suite__panel { text-align: center; }
.suite__panel .quiet { margin-top: 1.1rem; }
.suite__end {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  min-height: 100%;
  padding: 2rem 0;
}
.suite__end .display-3 { max-width: 12ch; }
.suite__end p { max-width: 22rem; margin: var(--s-3) auto 0; color: var(--muted-deep); font-size: 0.95rem; }
.suite__end .btn { margin-top: var(--s-4); }
.suite__progress {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
  margin-top: var(--s-3);
  padding-inline: var(--gutter);
}
.suite__bar { position: relative; width: min(280px, 50vw); height: 1px; background: rgba(38, 35, 31, 0.18); }
.suite__bar i {
  position: absolute; inset: 0;
  background: var(--sage-deep);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.suite__count {
  min-width: 9rem;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted-deep);
  text-align: left;
}

/* Pinned mode (desktop, motion allowed) — driven by main.js */
.suite.is-pinned .suite__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-block: 0;
  padding-top: 5.6rem;
  padding-bottom: clamp(1rem, 2.6vh, 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.suite.is-pinned .suite__head h2 { font-size: clamp(2.2rem, 2.6vw + 0.8rem, 3.9rem); }
.suite.is-pinned .suite__head .label { margin-bottom: 0.5rem; }
.suite.is-pinned .suite__viewport { flex: 1 1 auto; min-height: 0; margin-top: clamp(0.75rem, 2.2vh, 2rem); overflow: hidden; display: flex; align-items: center; }
.suite.is-pinned .suite__track {
  overflow: visible;
  scroll-snap-type: none;
  padding: 0;
  will-change: transform;
  align-items: flex-start;
}
.suite.is-pinned .suite__panel { width: auto; text-align: center; }
.suite.is-pinned .suite__panel .plate { width: min-content; }
.suite.is-pinned .suite__panel .plate__mat { padding: clamp(12px, 1.7vw, 28px); }
.suite.is-pinned .suite__panel .plate__window {
  height: clamp(190px, calc(100svh - 30.5rem), 620px);
  width: auto;
}
.suite.is-pinned .suite__panel .plate--land .plate__window { aspect-ratio: 3 / 2; }
.suite.is-pinned .suite__panel .plate--port .plate__window { aspect-ratio: 4 / 5; }
.suite.is-pinned .suite__panel .plate__cap { margin-top: 1rem; }
.suite.is-pinned .suite__panel .plate__title { font-size: clamp(1.6rem, 1vw + 1.15rem, 2.2rem); margin-top: 0.25rem; }
.suite.is-pinned .suite__panel .plate__note { font-size: 1rem; }
.suite.is-pinned .suite__panel .quiet { margin-top: 0.7rem; }
.suite.is-pinned .suite__end {
  width: min(32vw, 460px);
  min-height: 0;
  padding: 0;
  height: calc(clamp(190px, calc(100svh - 30.5rem), 620px) + 2 * clamp(12px, 1.7vw, 28px));
}
.suite.is-pinned .suite__end .display-3 { max-width: 10em; }
.suite.is-pinned .suite__hint { display: none; }
.suite.is-pinned .suite__progress { margin-top: clamp(0.75rem, 2vh, 1.5rem); }
@media (max-height: 700px) {
  .suite.is-pinned .suite__panel .plate__note { display: none; }
}

/* ---------- Entries (catalog lists) ---------- */
.entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1080px;
  margin: var(--s-6) auto 0;
  border-top: 1px solid var(--hair);
}
.entries--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1200px; }
.entry {
  padding: clamp(2rem, 3.4vw, 3.25rem) clamp(1.25rem, 3vw, 3rem);
  text-align: center;
  border-bottom: 1px solid var(--hair);
}
.entries > .entry:nth-child(2n) { border-left: 1px solid var(--hair); }
.entries--3 > .entry:nth-child(2n) { border-left: 0; }
.entries--3 > .entry:not(:nth-child(3n + 1)) { border-left: 1px solid var(--hair); }
.entry__no {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--sage);
  margin-bottom: 0.9rem;
}
.entry__icon { display: inline-flex; width: 30px; height: 30px; color: var(--sage-deep); margin-bottom: 1rem; }
.entry__icon svg { width: 100%; height: 100%; }
.entry h3 { font-family: var(--font-serif); font-size: clamp(1.55rem, 0.9vw + 1.2rem, 2.05rem); line-height: 1.12; }
.entry p { margin: 0.8rem auto 0; max-width: 28rem; color: var(--muted); font-size: 0.98rem; line-height: 1.65; }
.entry ul { list-style: none; margin: 1.2rem auto 0; max-width: 24rem; font-size: 0.9rem; color: var(--ink); }
.entry li { padding: 0.45rem 0; border-top: 1px solid var(--hair); }
.entry li:last-child { border-bottom: 1px solid var(--hair); }
@media (max-width: 899px) {
  .entries--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entries--3 > .entry:not(:nth-child(3n + 1)) { border-left: 0; }
  .entries--3 > .entry:nth-child(2n) { border-left: 1px solid var(--hair); }
}
@media (max-width: 699px) {
  .entries, .entries--3 { grid-template-columns: 1fr; }
  .entries > .entry:nth-child(2n), .entries--3 > .entry:nth-child(2n) { border-left: 0; }
}

/* Planning note */
.note {
  max-width: 40rem;
  margin: var(--s-5) auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
}
.note .label { font-style: normal; margin-bottom: 0.6rem; }
.note a { color: var(--ink); }

/* Anchor index (kitchen, guides) */
.index-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0;
  margin-top: var(--s-5);
}
.index-row li { display: flex; align-items: center; }
.index-row li + li::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--sage);
  margin-inline: clamp(0.9rem, 1.6vw, 1.6rem);
}
.index-row a {
  position: relative;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
  padding: 0.35rem 0;
}
.index-row a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform 0.5s var(--ease);
}
.index-row a:hover::after, .index-row a:focus-visible::after, .index-row a.is-active::after { transform: scaleX(1); }

/* Page head (inner pages) */
.page-head { padding-top: clamp(9rem, 12vw + 4.5rem, 14rem); padding-bottom: calc(var(--section) * 0.7); text-align: center; }
.page-head .label { margin-bottom: var(--s-4); }
.page-head h1 { max-width: 16ch; margin-inline: auto; }
.page-head .lead { margin-top: var(--s-4); }

/* Part heads (kitchen sections) */
.part { scroll-margin-top: 5rem; }
.part__head { text-align: center; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.part__head .label { margin-bottom: var(--s-2); }
.part__head p { margin: var(--s-3) auto 0; max-width: 34rem; color: var(--muted); }

/* ---------- Guides list (index) ---------- */
.ledger { list-style: none; max-width: 1040px; margin: var(--s-6) auto 0; border-top: 1px solid var(--hair); }
.ledger a {
  display: grid;
  grid-template-columns: 4rem 1fr 4rem;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.4rem, 2.4vw, 2.2rem) 0;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  text-align: center;
}
.ledger__no { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--sage); text-align: left; }
.ledger__t { display: block; font-family: var(--font-serif); font-size: clamp(1.6rem, 2vw + 1rem, 2.9rem); line-height: 1.08; }
.ledger__t span {
  background: linear-gradient(var(--ink), var(--ink)) 50% 100% / 0% 1px no-repeat;
  transition: background-size 0.6s var(--ease);
  padding-bottom: 0.06em;
}
.ledger__s { display: block; margin-top: 0.45rem; font-size: 0.92rem; color: var(--muted); }
.ledger__go { font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); text-align: right; }
.ledger a:hover .ledger__t span, .ledger a:focus-visible .ledger__t span { background-size: 100% 1px; }
@media (max-width: 699px) {
  .ledger a { grid-template-columns: 1fr; gap: 0.3rem; }
  .ledger__no, .ledger__go { text-align: center; }
}

/* ---------- Process (services) ---------- */
.steps { position: relative; list-style: none; max-width: 1000px; margin: var(--s-6) auto 0; }
.steps::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  border-left: 1px solid var(--sage-light);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 6rem 1fr;
  align-items: start;
  padding-block: clamp(1.4rem, 2.6vw, 2.4rem);
}
.step__no {
  grid-column: 2;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 3.6rem; height: 3.6rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--sage-light);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--sage-deep);
  position: relative;
  z-index: 1;
}
.step__body { grid-row: 1; padding-top: 0.55rem; }
.step:nth-child(odd) .step__body { grid-column: 1; text-align: right; }
.step:nth-child(even) .step__body { grid-column: 3; text-align: left; }
.step h3 { font-family: var(--font-serif); font-size: clamp(1.5rem, 0.8vw + 1.2rem, 1.95rem); line-height: 1.1; }
.step p { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.98rem; }
.step:nth-child(odd) p { margin-left: auto; max-width: 25rem; }
@media (min-width: 700px) { .step + .step { margin-top: -3rem; } }
.step:nth-child(even) p { max-width: 25rem; }
@media (max-width: 699px) {
  .steps::before { left: 1.8rem; }
  .step { grid-template-columns: 3.6rem 1fr; gap: 1.2rem; }
  .step__no { grid-column: 1; }
  .step:nth-child(odd) .step__body, .step:nth-child(even) .step__body { grid-column: 2; text-align: left; }
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 5rem);
  max-width: 980px;
  margin: var(--s-5) auto 0;
}
.checklist li { padding: 1.3rem 0; border-top: 1px solid var(--hair); text-align: center; }
.checklist strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.45rem; margin-bottom: 0.25rem; }
.checklist span { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 699px) { .checklist { grid-template-columns: 1fr; } }

/* ---------- Guides (articles) ---------- */
.toc {
  list-style: none;
  max-width: 760px;
  margin: var(--s-5) auto 0;
  border-top: 1px solid var(--hair);
  counter-reset: toc;
}
.toc a {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 0.8vw + 1.1rem, 1.75rem);
  line-height: 1.2;
}
.toc a span { font-style: italic; color: var(--sage); font-size: 0.85em; }
.toc a:hover, .toc a.is-active { color: var(--sage-deep); }
.article { scroll-margin-top: 5.5rem; }
.article__head { text-align: center; margin-bottom: var(--s-6); }
.article__head .label { margin-bottom: var(--s-3); }
.article__head .display-2 { max-width: 15ch; margin-inline: auto; }
.article__head .lead { margin-top: var(--s-3); }
.prose { max-width: var(--measure); margin-inline: auto; }
.prose h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 0.8vw + 1.3rem, 2.1rem);
  line-height: 1.12;
  text-align: center;
  margin: 3.2rem 0 1.1rem;
}
.prose h3::before {
  content: "";
  display: block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sage);
  margin: 0 auto 1.1rem;
}
.prose p, .prose li { color: #3a3631; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.1rem; }
.prose li { margin: 0.4rem 0; padding-left: 0.3rem; }
.prose li::marker { color: var(--sage); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose .plate { margin-block: var(--s-6); }
.prose-wide { max-width: 980px; margin: var(--s-5) auto; }
.aside-note {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-top: 1px solid var(--sage-light);
  border-bottom: 1px solid var(--sage-light);
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}
.table caption {
  caption-side: top;
  padding-bottom: 1rem;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--muted);
}
.table th, .table td { padding: 0.95rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.table thead th {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.3rem;
  border-bottom: 1px solid var(--hair-strong);
}
.table tbody th { font-weight: 500; width: 26%; color: var(--ink); }
.table td { color: #3a3631; }

/* ---------- Studio label card ---------- */
.label-card {
  max-width: 520px;
  margin: var(--s-6) auto 0;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: var(--mat);
  box-shadow: 0 0 0 1px rgba(38, 35, 31, 0.08), 0 24px 50px -36px rgba(38, 35, 31, 0.4);
  text-align: center;
}
.label-card .label { margin-bottom: 1rem; }
.label-card__name { font-family: var(--font-serif); font-size: 1.9rem; line-height: 1.1; letter-spacing: 0.04em; }
.label-card p { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.95rem; }
.label-card a { color: var(--ink); }

/* ---------- Contact form ---------- */
.form { max-width: 820px; margin: 0 auto; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem clamp(1.5rem, 4vw, 3rem); }
.field { display: flex; flex-direction: column; text-align: left; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
  padding: 0;
}
.field .req { color: var(--sage-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--hair-strong);
  border-radius: 0;
  background: transparent;
  padding: 0.65rem 0;
  font-size: 1.05rem;
  line-height: 1.5;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.6rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-bottom-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field.is-valid input, .field.is-valid textarea { border-bottom-color: var(--sage-deep); }
.field__msg { min-height: 1.3rem; margin-top: 0.4rem; font-size: 0.82rem; color: var(--error); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.field .chip { position: relative; margin: 0; padding: 0; font-size: 0.9rem; font-weight: 400; letter-spacing: 0.01em; text-transform: none; color: var(--ink); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
  user-select: none;
}
.chip span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sage-light); transition: background-color 0.3s; }
.chip input:checked + span { border-color: var(--sage-deep); background: var(--mat); }
.chip input:checked + span::before { background: var(--sage-deep); }
.chip input:focus-visible + span { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.form__foot { margin-top: var(--s-5); text-align: center; }
.form__note { margin: 1.1rem auto 0; max-width: 30rem; font-size: 0.88rem; color: var(--muted); }
.form__status { margin: 1rem auto 0; max-width: 32rem; min-height: 1.5rem; font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--sage-deep); }
.form__status.is-error { color: var(--error); }
@media (max-width: 699px) { .form__grid { grid-template-columns: 1fr; row-gap: 0.9rem; } }

.details {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.details li { padding: 0.5rem 1.6rem; }
.details li + li { border-left: 1px solid var(--hair); }
.details .label { margin-bottom: 0.7rem; }
.details p { margin: 0; font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.35; }
.details a { text-decoration: none; }
@media (max-width: 799px) {
  .details { grid-template-columns: 1fr; }
  .details li { padding: 1.4rem 0; }
  .details li + li { border-left: 0; border-top: 1px solid var(--hair); }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 40rem; margin-inline: auto; }
.legal h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 0.6vw + 1.3rem, 1.9rem);
  line-height: 1.15;
  margin: 2.8rem 0 0.9rem;
  text-align: center;
}
.legal h2::before {
  content: ""; display: block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sage); margin: 0 auto 1rem;
}
.legal p, .legal li { color: #3a3631; }
.legal ul { padding-left: 1.1rem; margin: 0 0 1em; }
.legal li { margin: 0.35rem 0; }
.legal li::marker { color: var(--sage); }
.legal .effective { text-align: center; color: var(--muted); font-size: var(--fs-small); }

/* ---------- Footer ---------- */
.foot { background: var(--paper-2); padding: clamp(5rem, 9vw, 9rem) 0 2.5rem; text-align: center; }
.foot__mark {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(4.4rem, 17vw, 15.5rem);
  line-height: 0.82;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.foot__tag { margin: 1.6rem auto 0; max-width: 30rem; color: var(--muted-deep); font-size: 0.95rem; }
.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
  margin: clamp(3.5rem, 6vw, 5.5rem) auto 0;
  padding-top: 2.6rem;
  border-top: 1px solid var(--hair);
}
.foot__cols > div + div { border-left: 1px solid var(--hair); }
.foot__cols h2 { margin-bottom: 1.1rem; color: var(--muted-deep); }
.foot__cols ul { list-style: none; display: grid; gap: 0.5rem; }
.foot__cols a {
  text-decoration: none;
  font-size: 0.98rem;
  background: linear-gradient(currentColor, currentColor) 50% 100% / 0% 1px no-repeat;
  transition: background-size 0.5s var(--ease);
  padding-bottom: 2px;
}
.foot__cols a:hover, .foot__cols a:focus-visible { background-size: 100% 1px; }
.foot__addr {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  font-style: normal;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 0.6vw + 1rem, 1.5rem);
  line-height: 1.5;
}
.foot__addr a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 50% 100% / 0% 1px no-repeat; transition: background-size 0.5s var(--ease); }
.foot__addr a:hover, .foot__addr a:focus-visible { background-size: 100% 1px; }
.foot__dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); margin: 0 0.9rem; vertical-align: middle; }
.foot__legal {
  margin: 2.6rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hair);
  font-size: 0.8rem;
  color: var(--muted-deep);
  line-height: 1.7;
}
.foot__legal a { color: var(--muted-deep); margin-inline: 0.5rem; }
@media (max-width: 699px) {
  .foot__cols { grid-template-columns: 1fr; gap: 2.2rem; }
  .foot__cols > div + div { border-left: 0; border-top: 1px solid var(--hair); padding-top: 2.2rem; }
  .foot__dot { display: block; margin: 0.6rem auto; }
}

/* ---------- 404 ---------- */
.void { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 9rem var(--gutter) 5rem; }
.void__frame {
  display: grid; place-items: center;
  width: min(250px, 56vw);
  aspect-ratio: 4 / 5;
  margin: 3rem auto 0;
  background: var(--mat);
  padding: var(--mat-pad);
  box-shadow: 0 0 0 1px rgba(38, 35, 31, 0.07), 0 28px 60px -38px rgba(38, 35, 31, 0.45);
}
.void__window {
  width: 100%; height: 100%;
  outline: 1px solid rgba(38, 35, 31, 0.26);
  outline-offset: var(--keyline-gap);
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
  display: grid; place-items: center;
  font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--muted);
}

/* ---------- Reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js [data-reveal="fade"] { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js .plate--settle .plate__window img { transform: none; }
  .sheet { clip-path: none; }
}
