/* Inkstone Atelier
   Washi, carbon, one seal of vermilion. Nothing else.
   Broadsheet rules, generous air, and a pool of live ink at the top. */

:root {
  --washi: #f7f4ec;
  --carbon: #16130f;
  --verm: #c93a17;

  --carbon-70: rgba(22, 19, 15, 0.7);
  --carbon-55: rgba(22, 19, 15, 0.55);
  --carbon-40: rgba(22, 19, 15, 0.4);
  --carbon-25: rgba(22, 19, 15, 0.25);
  --carbon-14: rgba(22, 19, 15, 0.14);
  --carbon-07: rgba(22, 19, 15, 0.07);
  --carbon-04: rgba(22, 19, 15, 0.04);
  --washi-80: rgba(247, 244, 236, 0.8);
  --washi-45: rgba(247, 244, 236, 0.45);
  --washi-14: rgba(247, 244, 236, 0.14);

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Instrument Sans", "Helvetica Neue", sans-serif;

  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --e-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --e-settle: cubic-bezier(0.34, 1.4, 0.52, 1);
  --e-press: cubic-bezier(0.32, 0, 0.67, 0);

  --wrap: 1280px;
  --gut: clamp(20px, 4.2vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--washi);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-feature-settings: "ss01" on;
  overflow-x: hidden;
}

/* one film of paper fiber over everything, water included */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.086 0 0 0 0 0.075 0 0 0 0 0.059 0.22 0.22 0.22 0 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23g)'/%3E%3C/svg%3E");
}

::selection { background: var(--carbon); color: var(--washi); }

img, svg, canvas { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; }

.nb { white-space: nowrap; }

:focus-visible {
  outline: 2px solid var(--verm);
  outline-offset: 3px;
  border-radius: 1px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  background: var(--carbon);
  color: var(--washi);
  padding: 0.6em 1em;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-260%);
  transition: transform 0.4s var(--e-out);
}
.skip:focus-visible { transform: translateY(0); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gut);
  transition: background-color 0.5s var(--e-out), padding 0.5s var(--e-out);
}
.site-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--carbon-14);
  opacity: 0;
  transition: opacity 0.5s var(--e-out);
}
.site-head.is-scrolled {
  background: rgba(247, 244, 236, 0.94);
  padding-block: 12px;
}
.site-head.is-scrolled::after { opacity: 1; }

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.5625rem;
  letter-spacing: 0.3em;
  color: var(--carbon-55);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
}
.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 1px;
  background-image: linear-gradient(var(--carbon), var(--carbon));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: left calc(100% - 1px);
  transition: background-size 0.5s var(--e-out);
}
.site-nav a:hover { background-size: 100% 1px; }

.seal {
  width: 34px; height: 34px;
  border: 0;
  border-radius: 2px;
  background: var(--verm);
  color: var(--washi);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--e-settle);
}
.seal:hover { transform: rotate(-4deg); }
.seal:active { transform: scale(0.9) rotate(-4deg); transition-duration: 0.12s; }

@media (max-width: 720px) {
  .site-nav a:not(.nav-guide) { display: none; }
}

/* ---------- hero: the water ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--washi);
}

#water {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: crosshair;
}

.hero-fallback {
  position: absolute;
  inset: 0;
}
.hero-fallback svg { width: 100%; height: 100%; }

/* a breath of washi behind the header so the wordmark always reads */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 130px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--washi) 0%, rgba(247, 244, 236, 0) 100%);
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: var(--gut);
  top: 50%;
  transform: translateY(-52%);
  max-width: 640px;
  pointer-events: none;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -90px -120px -70px -80px;
  z-index: -1;
  background: radial-gradient(closest-side, var(--washi-80) 30%, rgba(247, 244, 236, 0) 100%);
}

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--carbon-70);
}
.kicker .tick {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--verm);
  border-radius: 1px;
  margin-right: 10px;
  vertical-align: 6%;
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 4.9vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-top: 26px;
}

.lede {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  color: var(--carbon-70);
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.hint {
  margin-top: 18px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--carbon-55);
}

/* staged awakening */
.hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--e-out), transform 1s var(--e-out);
}
.is-awake .hero-copy > *:nth-child(1) { transition-delay: 0.15s; }
.is-awake .hero-copy > *:nth-child(2) { transition-delay: 0.3s; }
.is-awake .hero-copy > *:nth-child(3) { transition-delay: 0.45s; }
.is-awake .hero-copy > *:nth-child(4) { transition-delay: 0.62s; }
.is-awake .hero-copy > *:nth-child(5) { transition-delay: 0.78s; }
.is-awake .hero-copy > * { opacity: 1; transform: translateY(0); }

/* buttons: each interactive family has its own hand */

.btn {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05em 1.7em;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}

.btn-primary {
  background: var(--carbon);
  color: var(--washi);
  border: 1px solid var(--carbon);
  transition: transform 0.45s var(--e-out);
}
.btn-primary::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--verm);
  border-radius: 1px;
  transform: scale(0);
  transition: transform 0.45s var(--e-settle);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover::before { transform: scale(1); }
.btn-primary[aria-disabled="true"] { opacity: 0.55; cursor: wait; }

.btn-ghost {
  background: transparent;
  color: var(--carbon-70);
  border: 1px solid var(--carbon-25);
  transition: border-color 0.45s var(--e-out), color 0.45s var(--e-out), background-color 0.45s var(--e-out);
}
.btn-ghost:hover {
  border-color: var(--carbon);
  color: var(--carbon);
  background: var(--carbon-04);
}

/* pigment picker: two wells of ink */

.pick {
  position: absolute;
  z-index: 3;
  left: var(--gut);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--carbon-55);
  border: 0;
}
.pick legend {
  float: left;
  margin-right: 6px;
  padding: 0;
  color: var(--carbon-40);
}
.pick label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.pick input {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--carbon-40);
  cursor: pointer;
  transition: box-shadow 0.35s var(--e-out), transform 0.35s var(--e-settle);
}
.pick input[value="carbon"] { background: var(--carbon); }
.pick input[value="verm"] { background: var(--verm); }
.pick input:checked {
  box-shadow: 0 0 0 3px var(--washi), 0 0 0 4.5px var(--carbon);
  transform: scale(1.06);
}
.pick input:focus-visible { outline-offset: 4px; }

.proof-note {
  position: absolute;
  z-index: 3;
  right: var(--gut);
  bottom: 30px;
  text-align: right;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  line-height: 1.9;
  color: var(--carbon-55);
  border-top: 1px solid var(--carbon-25);
  padding-top: 12px;
  max-width: 300px;
}
.proof-note strong {
  color: var(--carbon);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--carbon-40);
}
.scroll-cue i {
  width: 1px;
  height: 44px;
  background: var(--carbon-40);
  transform-origin: top;
  animation: cue 2.6s var(--e-inout) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 640px) {
  .hero-copy {
    top: auto;
    bottom: 128px;
    transform: none;
    right: var(--gut);
  }
  .hero-copy::before { inset: -60px -40px -40px -40px; }
  .scroll-cue { display: none; }
  .proof-note { display: none; }
  .pick { bottom: 24px; }
  .hint { max-width: 34ch; }
}

/* ---------- the print sheet and its tray ---------- */

#sheet {
  position: absolute;
  z-index: 8;
  inset: 6% 5%;
  pointer-events: none;
  background: var(--washi);
  box-shadow: 0 30px 80px rgba(22, 19, 15, 0.28);
  clip-path: polygon(0.4% 1.2%, 6% 0.3%, 14% 0.9%, 25% 0.2%, 38% 1%, 52% 0.4%, 66% 1.1%, 79% 0.3%, 91% 1%, 99.5% 0.6%, 99.8% 12%, 99.2% 26%, 99.9% 41%, 99.3% 57%, 99.8% 72%, 99.2% 86%, 99.7% 98.6%, 88% 99.4%, 74% 98.8%, 59% 99.6%, 43% 99%, 28% 99.7%, 14% 99.1%, 2% 99.6%, 0.2% 88%, 0.9% 73%, 0.3% 58%, 1% 42%, 0.2% 27%, 0.8% 12%);
  transform: translateY(-118%) rotate(-1.4deg);
  transition: transform 1.05s var(--e-out), opacity 0.7s var(--e-inout);
}
#sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.14 0.9' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.086 0 0 0 0 0.075 0 0 0 0 0.059 0.1 0.1 0.1 0 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23p)'/%3E%3C/svg%3E");
}
#sheet.sheet-laid { transform: translateY(0) rotate(0deg); }
#sheet.sheet-lift { transform: translateY(-3.5%) scale(0.985); }
#sheet.sheet-away {
  transform-origin: 88% 96%;
  transform: translate(30%, 16%) scale(0.2) rotate(2deg);
  opacity: 0;
}
#sheetPrint {
  position: absolute;
  inset: 4.5%;
  width: 91%;
  height: 91%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--e-out);
}
#sheet.sheet-lift #sheetPrint { opacity: 1; }

#tray {
  position: fixed;
  z-index: 140;
  right: 22px;
  bottom: 22px;
  width: min(330px, calc(100vw - 44px));
  background: var(--washi);
  border: 1px solid var(--carbon-25);
  border-radius: 3px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(22, 19, 15, 0.22);
  transform: translateY(26px);
  opacity: 0;
  transition: transform 0.55s var(--e-settle), opacity 0.4s var(--e-out);
}
#tray.is-open { transform: translateY(0); opacity: 1; }
#tray figure img {
  width: 100%;
  border: 1px solid var(--carbon-14);
}
#tray figcaption {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--carbon-55);
  margin-bottom: 10px;
}
.tray-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 12px;
}
.tray-save {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verm);
  text-decoration: none;
  background-image: linear-gradient(var(--verm), var(--verm));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: left calc(100% - 1px);
  transition: background-size 0.45s var(--e-out);
}
.tray-save:hover { background-size: 30% 1px; }
.tray-close {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 0;
  color: var(--carbon-55);
  cursor: pointer;
  padding: 6px 2px;
  transition: color 0.35s var(--e-out);
}
.tray-close:hover { color: var(--carbon); }

/* ---------- shared band anatomy ---------- */

.band {
  position: relative;
  padding-block: clamp(96px, 13vw, 168px) clamp(76px, 9vw, 120px);
}

.rule-double {
  border-top: 2px solid var(--carbon);
  position: relative;
}
.rule-double::after {
  content: "";
  position: absolute;
  top: 4px; left: 0; right: 0;
  height: 1px;
  background: var(--carbon-40);
}

.eyebrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--carbon-70);
}
.eyebrow .jp {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--carbon-40);
}

.band h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  margin-top: clamp(44px, 6vw, 84px);
  max-width: 18ch;
}

[data-rev] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.95s var(--e-out), transform 0.95s var(--e-out);
  transition-delay: var(--d, 0s);
}
[data-rev].is-in { opacity: 1; transform: translateY(0); }

/* ---------- craft: the broadsheet ---------- */

.craft-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(18px, 2.6vw, 40px);
  margin-top: clamp(52px, 7vw, 96px);
}

.craft-rail {
  grid-column: 1 / 4;
  align-self: start;
  position: sticky;
  top: 110px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--carbon-70);
  border-left: 1px solid var(--carbon-14);
  padding-left: 22px;
}
.craft-rail .jp-vert {
  font-family: var(--serif);
  writing-mode: vertical-rl;
  font-size: 1.25rem;
  letter-spacing: 0.5em;
  color: var(--carbon-25);
  height: 150px;
  margin-bottom: 26px;
}

.craft-item {
  position: relative;
  padding-top: 8px;
}
.craft-item .ghost-num {
  position: absolute;
  z-index: -1;
  top: -0.42em;
  left: -0.06em;
  font-family: var(--serif);
  font-size: clamp(96px, 12vw, 176px);
  font-weight: 500;
  line-height: 1;
  color: var(--carbon-07);
  user-select: none;
}
.craft-item h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 60px;
}
.craft-item h3 .jp {
  font-size: 0.72em;
  color: var(--carbon-40);
  font-weight: 500;
}
.craft-item p {
  margin-top: 18px;
  max-width: 56ch;
  color: var(--carbon-70);
}
.craft-item .spec {
  margin-top: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--carbon-55);
  border-top: 1px solid var(--carbon-14);
  padding-top: 12px;
  max-width: 560px;
}

.craft-stone { grid-column: 4 / 11; }
.craft-soot { grid-column: 6 / 13; margin-top: clamp(60px, 8vw, 120px); }
.craft-bind {
  grid-column: 4 / 13;
  margin-top: clamp(60px, 8vw, 120px);
  border-top: 1px solid var(--carbon-25);
}
.craft-bind .bind-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 40px);
  margin-top: 22px;
}
.craft-bind .bind-cols p { font-size: 0.9375rem; margin-top: 8px; }
.craft-bind .bind-cols strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  display: block;
}

/* a soot swatch: matte pigment, powdery at the rim, no gloss */
.soot-disc {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin-top: 26px;
  background:
    radial-gradient(circle at 44% 40%, rgba(247, 244, 236, 0.05), rgba(247, 244, 236, 0) 55%),
    radial-gradient(circle at 50% 50%, #16130f 52%, rgba(22, 19, 15, 0.94) 66%, rgba(22, 19, 15, 0.55) 80%, rgba(22, 19, 15, 0.16) 91%, rgba(22, 19, 15, 0) 98%);
}

@media (max-width: 900px) {
  .craft-rail {
    grid-column: 1 / 13;
    position: static;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--carbon-14);
    padding-top: 18px;
  }
  .craft-rail .jp-vert { display: none; }
  .craft-stone, .craft-soot, .craft-bind { grid-column: 1 / 13; }
  .craft-soot, .craft-bind { margin-top: 72px; }
  .craft-bind .bind-cols { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- the sticks: still life + ledger ---------- */

.sticks-band { border-top: 1px solid var(--carbon-25); }

.still-life {
  position: relative;
  margin-top: clamp(52px, 7vw, 92px);
  height: clamp(300px, 36vw, 430px);
  border-bottom: 1px solid var(--carbon-40);
  background: linear-gradient(to bottom, rgba(22, 19, 15, 0) 82%, var(--carbon-04) 100%);
}

.stick {
  position: absolute;
  bottom: 0;
}
.stick .bar {
  position: relative;
  background:
    linear-gradient(105deg,
      color-mix(in srgb, var(--carbon), var(--washi) 10%) 0%,
      var(--carbon) 34%,
      color-mix(in srgb, var(--carbon), #000 40%) 58%,
      color-mix(in srgb, var(--carbon), var(--washi) 6%) 100%);
  border-radius: 3px 3px 2px 2px;
}
.stick .bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 12%;
  width: 6%;
  background: linear-gradient(to bottom, var(--washi-14), rgba(247, 244, 236, 0.02));
}
.stick .glyph {
  position: absolute;
  left: 50%;
  top: 14%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--washi-45);
  font-size: clamp(0.9rem, 1.6vw, 1.35rem);
}
.stick .shadow {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 190%;
  height: 30px;
  background: radial-gradient(ellipse closest-side, var(--carbon-25), rgba(22, 19, 15, 0) 72%);
}

.stick-1 { left: 12%; width: clamp(52px, 6vw, 76px); }
.stick-1 .bar { height: clamp(230px, 28vw, 340px); }

.stick-1 { z-index: 2; }
.stick-2 { left: 19%; width: clamp(48px, 5.6vw, 70px); z-index: 1; }
.stick-2 .bar {
  height: clamp(200px, 24vw, 296px);
  transform: rotate(-5deg);
  transform-origin: bottom left;
}
.stick-2 .glyph { top: 10%; }

.stick-3 { right: 24%; width: clamp(170px, 17vw, 216px); }
.stick-3 .bar {
  height: clamp(46px, 5.2vw, 60px);
  border-radius: 2px;
  background:
    linear-gradient(to right,
      color-mix(in srgb, var(--carbon), var(--washi) 9%) 0%,
      var(--carbon) 18%,
      color-mix(in srgb, var(--carbon), #000 38%) 52%,
      var(--carbon) 86%,
      color-mix(in srgb, var(--carbon), var(--washi) 7%) 100%);
}
.stick-3 .bar::before {
  inset: 14% auto 62% 3%;
  width: 94%;
  background: linear-gradient(to right, var(--washi-14), rgba(247, 244, 236, 0.02));
}
.stick-3 .glyph {
  writing-mode: horizontal-tb;
  top: 50%;
  left: auto;
  right: 8%;
  transform: translateY(-50%);
  letter-spacing: 0.24em;
}
.stick-3 .bar::after {
  content: "";
  position: absolute;
  left: 7%;
  top: 50%;
  transform: translateY(-50%) rotate(-3deg);
  width: 13px;
  height: 13px;
  background: var(--verm);
  border-radius: 1px;
}
.stick-3 .shadow { width: 108%; bottom: -12px; }

.still-caption {
  margin-top: 30px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--carbon-40);
}

/* ledger rows */

.stick-rows { margin-top: clamp(40px, 5vw, 64px); }

.stick-row {
  border-top: 1px solid var(--carbon-25);
}
.stick-row:last-child { border-bottom: 1px solid var(--carbon-25); }

.stick-row summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) 1fr auto auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  padding: 26px 6px;
  transition: background-color 0.45s var(--e-out);
}
.stick-row summary::-webkit-details-marker { display: none; }
.stick-row summary:hover { background: var(--carbon-04); }

.stick-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.stick-name .jp { font-size: 0.78em; font-weight: 500; color: var(--carbon-40); }

.stick-meta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--carbon-55);
}

.stick-ramp {
  width: 64px;
  height: 12px;
  border-radius: 1px;
  transform-origin: left center;
  transition: transform 0.55s var(--e-out);
}
.stick-row summary:hover .stick-ramp { transform: scaleX(1.55); }
.ramp-rain { background: linear-gradient(to right, var(--carbon) 0%, rgba(22, 19, 15, 0.62) 42%, rgba(22, 19, 15, 0.16) 82%, rgba(22, 19, 15, 0.04) 100%); }
.ramp-frost { background: linear-gradient(to right, var(--carbon) 0%, rgba(22, 19, 15, 0.86) 55%, rgba(22, 19, 15, 0.34) 88%, rgba(22, 19, 15, 0.08) 100%); }
.ramp-gate { background: linear-gradient(to right, var(--verm) 0%, rgba(201, 58, 23, 0.55) 55%, rgba(201, 58, 23, 0.12) 100%); }

.stick-price {
  font-family: var(--serif);
  font-size: 1.0625rem;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
}
.stick-price .plus {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--carbon-40);
  transition: transform 0.5s var(--e-out), color 0.5s var(--e-out);
}
.stick-row[open] .plus { transform: rotate(45deg); color: var(--verm); }

.stick-body {
  display: grid;
  grid-template-columns: minmax(0, 58ch) 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: 6px 6px 34px;
  color: var(--carbon-70);
}
.stick-body dl {
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  align-self: start;
  border-left: 1px solid var(--carbon-14);
  padding-left: 20px;
}
.stick-body dt {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  color: var(--carbon-55);
  padding-top: 3px;
}
.stick-body dd { color: var(--carbon-70); }

@media (max-width: 900px) {
  .stick-row summary { grid-template-columns: 1fr auto; row-gap: 8px; }
  .stick-meta { grid-column: 1 / 3; order: 3; }
  .stick-ramp { display: none; }
  .stick-body { grid-template-columns: 1fr; }
  .stick-1 { left: 6%; }
  .stick-2 { left: 24%; }
  .stick-3 { right: 2%; width: 168px; }
  .stick-3 .glyph { font-size: 0.85rem; }
}

/* ---------- atelier ---------- */

.atelier-band { border-top: 1px solid var(--carbon-25); }
.atelier-band .eyebrow { border-top: 0; }

.atelier-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(18px, 2.6vw, 40px);
  margin-top: clamp(48px, 6vw, 84px);
}

.atelier-story { grid-column: 1 / 8; max-width: 60ch; }
.atelier-story p { margin-top: 20px; color: var(--carbon-70); }
.atelier-story p:first-of-type { margin-top: 0; }
.atelier-story p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3.4em;
  float: left;
  line-height: 0.82;
  padding: 6px 14px 0 0;
  color: var(--carbon);
}

.specimen {
  grid-column: 9 / 13;
  align-self: start;
}
.specimen .frame {
  border: 1px solid var(--carbon-25);
  padding: 10px;
  position: relative;
}
.specimen .frame::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 10px;
  height: 10px;
  background: var(--verm);
}
.specimen svg { width: 100%; height: auto; background: var(--washi); }
.specimen figcaption {
  margin-top: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--carbon-55);
}

.ledger {
  grid-column: 1 / 13;
  margin-top: clamp(64px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.ledger li {
  list-style: none;
  border-left: 1px solid var(--carbon-14);
  padding: 4px 18px 8px;
}
.ledger .year {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  display: block;
}
.ledger .what {
  display: block;
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--carbon-70);
  max-width: 22ch;
}

@media (max-width: 900px) {
  .atelier-story { grid-column: 1 / 13; }
  .specimen { grid-column: 1 / 13; margin-top: 56px; max-width: 420px; }
  .ledger { grid-template-columns: 1fr; gap: 0; }
  .ledger li {
    border-left: 0;
    border-top: 1px solid var(--carbon-14);
    padding: 14px 2px;
    display: flex;
    align-items: baseline;
    gap: 22px;
  }
  .ledger .what { margin-top: 0; max-width: none; }
}

/* ---------- footer: the carbon flip ---------- */

.site-foot {
  background: var(--carbon);
  color: var(--washi);
  margin-top: clamp(56px, 7vw, 96px);
}
.site-foot .wrap {
  padding-block: clamp(72px, 9vw, 120px) 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(18px, 2.6vw, 40px);
  row-gap: 44px;
}

.foot-lockup { grid-column: 1 / 6; }
.foot-lockup .mark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 1.0625rem;
}
.foot-lockup .mark i {
  width: 26px; height: 26px;
  background: var(--verm);
  border-radius: 1px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 15px;
  color: var(--washi);
}
.foot-lockup p {
  margin-top: 22px;
  font-size: 0.9375rem;
  color: var(--washi-45);
  max-width: 40ch;
}

.foot-visit { grid-column: 7 / 10; }
.foot-make { grid-column: 10 / 13; }
.foot-visit h3, .foot-make h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--washi-45);
}
.foot-visit p, .foot-make p {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--washi);
  line-height: 1.9;
}
.foot-make a {
  color: var(--washi);
  text-decoration: none;
  border-bottom: 1px solid var(--washi-45);
  padding-bottom: 2px;
  transition: border-color 0.4s var(--e-out), color 0.4s var(--e-out);
}
.foot-make a:hover { color: var(--verm); border-color: var(--verm); }
.foot-make a:focus-visible { outline-color: var(--verm); }

.foot-line {
  grid-column: 1 / 13;
  border-top: 1px solid var(--washi-14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--washi-45);
}

@media (max-width: 900px) {
  .foot-lockup { grid-column: 1 / 13; }
  .foot-visit { grid-column: 1 / 7; }
  .foot-make { grid-column: 7 / 13; }
}
@media (max-width: 640px) {
  .foot-visit { grid-column: 1 / 13; }
  .foot-make { grid-column: 1 / 13; }
  .site-foot .wrap { row-gap: 36px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .scroll-cue i { animation: none; transform: scaleY(1); }
  [data-rev],
  .hero-copy > *,
  #sheet, #tray,
  .btn-primary, .seal, .stick-ramp {
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
}
