:root {
  --paper: #FCFCFA;
  --ink: #141414;
  --hair: #E3E1DC;
  --red: #D8262C;
  --serif: 'Shippori Mincho', 'Times New Roman', serif;
  --sans: 'Zen Kaku Gothic New', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --edge: clamp(20px, 5vw, 72px);
  --gap: clamp(56px, 9vw, 140px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--paper); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }

a:hover { color: var(--red); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.22; margin: 0; }

p { margin: 0 0 1.4em; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--edge); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--paper); padding: 10px 18px;
  font-size: 13px; letter-spacing: .08em; text-decoration: none;
}
.skip:focus { left: 0; }

.vlabel {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 11px;
  font-weight: 500;
  color: var(--red);
  margin: 0 0 22px;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 2;
  color: #3a3a38;
  max-width: 62ch;
}

.smallcaps {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 500;
}

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

.hd { border-bottom: 1px solid var(--hair); position: relative; }

.hd-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 84px;
}

.mark {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .06em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}
.mark::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--red);
  display: inline-block;
}
.mark:hover { color: var(--ink); }

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  justify-content: center;
}
.nav a {
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--red); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.hd-tel {
  justify-self: end;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}

.burger {
  display: none;
  justify-self: end;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  font: 500 11px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  padding: 12px 16px;
  cursor: pointer;
}
.burger:hover { border-color: var(--red); color: var(--red); }

@media (max-width: 860px) {
  .hd-in { grid-template-columns: 1fr auto; min-height: 68px; }
  .hd-tel { display: none; }
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    padding: 8px var(--edge) 20px;
    z-index: 40;
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--hair); font-size: 12px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom-color: var(--hair); color: var(--red); }
}

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

.hero { padding: var(--gap) 0 calc(var(--gap) * .8); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.hero-left {
  border-left: 2px solid var(--red);
  padding-left: clamp(20px, 3.4vw, 48px);
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 96px);
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 34px;
  max-width: 12ch;
}

.hero-side { padding-bottom: 8px; }

.hero-meta {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--hair);
  max-width: 460px;
}
.hero-meta li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.hero-meta li span:first-child { text-transform: uppercase; letter-spacing: .18em; font-size: 10px; color: #6b6b66; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-side { margin-top: 24px; }
}

/* ---------- museum plates ---------- */

.plate { margin: 0; }

.plate-frame {
  border: 1px solid var(--ink);
  background: #fff;
  padding: clamp(8px, 1vw, 14px);
}
.plate-frame img { width: 100%; height: auto; }

.plate figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b6b66;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.plate figcaption b { color: var(--red); font-weight: 400; }

/* ---------- sections ---------- */

.sec { padding: var(--gap) 0; border-top: 1px solid var(--hair); }

.sec-grid {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
}

.sec-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding-top: 6px;
}
.sec-no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: .1em;
}

.sec-body h2 {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  margin: 0 0 30px;
  max-width: 22ch;
}

@media (max-width: 860px) {
  .sec-grid { grid-template-columns: 1fr; }
  .sec-side { flex-direction: row; align-items: baseline; justify-content: space-between; padding-top: 0; margin-bottom: 30px; }
  .sec-side .vlabel { writing-mode: horizontal-tb; letter-spacing: .34em; }
}

/* ---------- service cells ---------- */

.cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  margin-top: 10px;
}

.cell {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: clamp(26px, 3.4vw, 52px);
  text-decoration: none;
  display: block;
  position: relative;
  background: var(--paper);
  transition: background-color .5s ease;
}
a.cell:hover { background: #fff; }
a.cell:hover h3 { color: var(--red); }

.cell-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: .14em;
  display: block;
  margin-bottom: 46px;
}

.cell h3 {
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 600;
  margin: 0 0 16px;
  transition: color .4s ease;
}

.cell p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: #3a3a38;
  max-width: 46ch;
}

.cell-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}
.cell-note .smallcaps { color: #6b6b66; }
.cell-note span.mark-red { color: var(--red); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; }

@media (max-width: 760px) {
  .cells { grid-template-columns: 1fr; }
}

/* ---------- exhibits row ---------- */

.exhibits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 72px);
  margin-top: 16px;
}
.exhibits .plate { align-self: start; }
.exhibits .plate:nth-child(2) { margin-top: clamp(20px, 4vw, 64px); }
.exhibits .plate:nth-child(3) { margin-top: clamp(40px, 8vw, 128px); }

@media (max-width: 760px) {
  .exhibits { grid-template-columns: 1fr; max-width: 420px; }
  .exhibits .plate:nth-child(2), .exhibits .plate:nth-child(3) { margin-top: 0; }
}

/* ---------- method steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: clamp(14px, 3vw, 48px);
  padding: 30px 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: .14em;
}
.steps h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.steps p { margin: 0; font-size: 14.5px; color: #3a3a38; max-width: 58ch; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- register list (recordTypes) ---------- */

.register {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.register li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}
.register li b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--red);
  letter-spacing: .14em;
}
.register li span { font-size: 15.5px; }

/* ---------- quote ---------- */

.pull { padding: var(--gap) 0; border-top: 1px solid var(--hair); }
.pull blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 400;
  line-height: 1.55;
  max-width: 30ch;
  border-left: 2px solid var(--red);
  padding-left: clamp(20px, 3vw, 44px);
}
.pull cite {
  display: block;
  margin-top: 28px;
  padding-left: clamp(20px, 3vw, 46px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-style: normal;
  color: #6b6b66;
}

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

.strip { border-top: 1px solid var(--hair); padding: var(--gap) 0; text-align: center; }
.strip h2 { font-size: clamp(26px, 3.4vw, 46px); font-weight: 600; margin: 0 auto 26px; max-width: 26ch; }
.strip p { color: #3a3a38; max-width: 52ch; margin: 0 auto 40px; }

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 500 11px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .26em;
  padding: 18px 34px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-red { border-color: var(--red); color: var(--red); }
.btn-red:hover { background: var(--red); color: var(--paper); }

/* ---------- page head (inner pages) ---------- */

.page-head { padding: var(--gap) 0 calc(var(--gap) * .6); border-bottom: 1px solid var(--hair); }
.page-head .ph-grid { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: clamp(20px,4vw,64px); }
.page-head h1 {
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 600;
  margin: 0 0 30px;
  max-width: 20ch;
  border-left: 2px solid var(--red);
  padding-left: clamp(18px, 2.6vw, 36px);
}
@media (max-width: 860px) {
  .page-head .ph-grid { grid-template-columns: 1fr; }
  .page-head .vlabel { writing-mode: horizontal-tb; letter-spacing: .34em; margin-bottom: 24px; display: block; }
}

/* ---------- services page blocks ---------- */

.svc {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 72px);
  padding: clamp(40px, 6vw, 84px) 0;
  border-bottom: 1px solid var(--hair);
}
.svc:first-of-type { border-top: 1px solid var(--ink); }
.svc-no { font-family: var(--mono); font-size: 13px; color: var(--red); letter-spacing: .14em; padding-top: 12px; }
.svc h2 { font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; margin: 0 0 20px; }
.svc p { max-width: 62ch; color: #3a3a38; }
.svc aside { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: #6b6b66; border-left: 1px solid var(--hair); padding-left: 18px; margin-top: 26px; max-width: 56ch; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } .svc-no { padding-top: 0; } }

/* ---------- about ---------- */

.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; margin: 0 0 22px; }
.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.principles li { padding: 20px 0 20px 26px; border-bottom: 1px solid var(--hair); position: relative; font-size: 15px; max-width: 62ch; }
.principles li::before { content: ""; position: absolute; left: 0; top: 32px; width: 10px; height: 1px; background: var(--red); }

/* ---------- faq ---------- */

.qa { border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--hair); }
.qa summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) 24px;
  gap: clamp(10px, 2vw, 30px);
  align-items: baseline;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 600;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .q-no { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--red); letter-spacing: .14em; }
.qa summary .q-sign { font-family: var(--mono); font-size: 15px; color: var(--ink); justify-self: end; transition: transform .3s ease; }
.qa details[open] .q-sign { transform: rotate(45deg); color: var(--red); }
.qa .q-body { padding: 0 0 34px; display: grid; grid-template-columns: 64px minmax(0,1fr); gap: clamp(10px, 2vw, 30px); }
.qa .q-body p { margin: 0 0 1em; color: #3a3a38; max-width: 66ch; font-size: 15px; }
@media (max-width: 640px) {
  .qa summary { grid-template-columns: 44px minmax(0,1fr) 20px; }
  .qa .q-body { grid-template-columns: 44px minmax(0,1fr); }
}

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

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.details { border-top: 1px solid var(--ink); }
.details .d-row { padding: 20px 0; border-bottom: 1px solid var(--hair); }
.details .d-row b {
  display: block;
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: 10px;
  font-weight: 500;
  color: #6b6b66;
  margin-bottom: 8px;
}
.details .d-row span, .details .d-row address { font-style: normal; font-size: 15.5px; }
.details .d-row a { font-family: var(--mono); font-size: 13.5px; text-decoration: none; border-bottom: 1px solid var(--hair); }
.details .d-row a:hover { border-bottom-color: var(--red); }

form .field { margin-bottom: 34px; }
form label.lab {
  display: block;
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: 10px;
  font-weight: 500;
  color: #6b6b66;
  margin-bottom: 10px;
}
form input[type="text"], form input[type="email"], form select, form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  border-radius: 0;
  font: 300 16px/1.7 var(--sans);
  color: var(--ink);
  padding: 8px 0;
  appearance: none;
}
form textarea { min-height: 150px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { border-bottom-color: var(--red); outline: none; }
form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }

.consent-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 38px; }
.consent-row input[type="checkbox"] { width: 17px; height: 17px; margin-top: 5px; accent-color: var(--red); flex: none; }
.consent-row label { font-size: 13.5px; color: #3a3a38; max-width: 52ch; }

.form-note { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; color: #6b6b66; }

.map-holder {
  border: 1px solid var(--ink);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  margin-top: 48px;
}
.map-holder iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-load {
  border: 1px solid var(--ink);
  background: transparent;
  font: 500 11px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .26em;
  padding: 16px 30px;
  cursor: pointer;
}
.map-load:hover { background: var(--ink); color: var(--paper); }
.map-note { font-family: var(--mono); font-size: 11px; color: #6b6b66; letter-spacing: .05em; }
.map-open { font-family: var(--mono); font-size: 12px; margin-top: 14px; display: inline-block; }

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

.ft { border-top: 1px solid var(--ink); margin-top: var(--gap); padding: calc(var(--gap) * .7) 0 40px; text-align: center; }
.ft-mark { font-family: var(--serif); font-size: 18px; letter-spacing: .08em; display: inline-block; margin-bottom: 26px; }
.ft address { font-style: normal; font-size: 13.5px; color: #3a3a38; line-height: 2.1; margin-bottom: 30px; }
.ft address a { text-decoration: none; border-bottom: 1px solid var(--hair); font-family: var(--mono); font-size: 12.5px; }
.ft address a:hover { border-bottom-color: var(--red); }

.ft-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-bottom: 14px; }
.ft-nav a {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 10.5px;
  font-weight: 500;
  text-decoration: none;
}
.ft-nav a:hover { color: var(--red); }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-bottom: 34px; }
.ft-legal a { font-size: 12px; color: #6b6b66; text-decoration: none; border-bottom: 1px solid var(--hair); }
.ft-legal a:hover { color: var(--red); border-bottom-color: var(--red); }

.ck-btn-footer {
  background: none; border: 0; color: var(--ink);
  font: 500 10.5px/1 var(--sans);
  text-transform: uppercase; letter-spacing: .22em;
  cursor: pointer; padding: 8px 2px;
  border-bottom: 1px solid var(--hair);
}
.ck-btn-footer:hover { color: var(--red); border-bottom-color: var(--red); }

.ft-bottom {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: #6b6b66;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* ---------- cookie banner ---------- */

.ck {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding: 22px var(--edge) 26px;
}
.ck-in { max-width: 1080px; margin: 0 auto; }
.ck p { font-size: 13px; line-height: 1.8; color: #3a3a38; max-width: 78ch; margin: 0 0 18px; }
.ck p a { color: var(--red); }
.ck-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ck-btns button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 500 10.5px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .2em;
  padding: 14px 22px;
  cursor: pointer;
}
.ck-btns button:hover { background: var(--ink); color: var(--paper); }
.ck-btns button.primary { border-color: var(--red); color: var(--red); }
.ck-btns button.primary:hover { background: var(--red); color: var(--paper); }

.ck-prefs { display: none; margin-top: 20px; border-top: 1px solid var(--hair); padding-top: 18px; }
.ck-prefs.open { display: block; }
.ck-prefs label {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 13px; color: #3a3a38; max-width: 78ch;
  padding: 9px 0;
}
.ck-prefs input[type="checkbox"] { width: 16px; height: 16px; margin-top: 4px; accent-color: var(--red); flex: none; }

/* ---------- legal / document pages ---------- */

.doc-head { padding: calc(var(--gap) * .8) 0 calc(var(--gap) * .5); }
.doc-head .dh-grid { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: clamp(20px,4vw,64px); }
.doc-head h1 {
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 600;
  margin: 0 0 26px;
  border-left: 2px solid var(--red);
  padding-left: clamp(18px, 2.6vw, 36px);
}
.doc-lede, .doc-lede .lede {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.9;
  color: #3a3a38;
  max-width: 62ch;
  margin: 0 0 22px;
}
.doc-updated { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6b6b66; }
@media (max-width: 860px) {
  .doc-head .dh-grid { grid-template-columns: 1fr; }
  .doc-head .vlabel { writing-mode: horizontal-tb; letter-spacing: .34em; margin-bottom: 22px; display: block; }
}

.doc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  padding-bottom: var(--gap);
  align-items: start;
}

.doc-toc { position: sticky; top: 34px; }
.doc-toc .vlabel { color: var(--red); margin-bottom: 22px; display: inline-block; }
.doc-toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0; padding: 0;
  border-top: 1px solid var(--hair);
}
.doc-toc li { counter-increment: toc; border-bottom: 1px solid var(--hair); }
.doc-toc a {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 8px;
  padding: 10px 0;
  font-size: 12.5px;
  line-height: 1.5;
  text-decoration: none;
  color: #3a3a38;
}
.doc-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 10px; color: var(--red); letter-spacing: .08em; padding-top: 3px; }
.doc-toc a:hover { color: var(--red); }

.doc-main { counter-reset: dsec; min-width: 0; }

.doc-section { border-top: 1px solid var(--ink); padding: 40px 0 46px; }
.doc-section:first-child { border-top: 1px solid var(--ink); }
.doc-section h2 {
  counter-increment: dsec;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 600;
  margin: 0 0 26px;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr);
  gap: 14px;
  align-items: baseline;
}
.doc-section h2::before {
  content: counter(dsec, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--red);
  letter-spacing: .14em;
}
.doc-section p { max-width: 72ch; color: #2c2c2a; font-size: 15.5px; }
.doc-section ul, .doc-section ol { max-width: 72ch; color: #2c2c2a; font-size: 15.5px; padding-left: 22px; }
.doc-section li { margin-bottom: 10px; }
.doc-section a { color: var(--red); text-underline-offset: 3px; }

.doc-note {
  border-left: 2px solid var(--red);
  background: #fff;
  padding: 20px 24px;
  margin: 26px 0;
  font-size: 14px;
  max-width: 72ch;
}

.doc-table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 13.5px; }
.doc-table caption {
  caption-side: top; text-align: left;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #6b6b66; padding-bottom: 12px;
}
.doc-table th, .doc-table td { border: 1px solid var(--hair); padding: 12px 14px; text-align: left; vertical-align: top; line-height: 1.65; }
.doc-table th {
  font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; font-size: 10px; color: #6b6b66;
  border-bottom: 1px solid var(--ink);
}
.doc-table td:first-child { font-family: var(--mono); font-size: 12px; }

.doc-address {
  font-style: normal;
  border-left: 2px solid var(--red);
  padding: 6px 0 6px 24px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 2;
  max-width: 60ch;
}
.doc-address a { color: var(--red); }

.doc-links { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.doc-links a { font-family: var(--mono); font-size: 12px; color: var(--red); }

.credits-wrap { margin: 30px 0 10px; overflow-x: auto; }
.credits-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.credits-table caption {
  caption-side: top; text-align: left;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #6b6b66; padding-bottom: 14px;
}
.credits-table th, .credits-table td { border: 1px solid var(--hair); padding: 14px; text-align: left; vertical-align: top; line-height: 1.7; }
.credits-table th { font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; color: #6b6b66; border-bottom: 1px solid var(--ink); }
.credits-table img { border: 1px solid var(--ink); padding: 4px; background: #fff; width: 160px; height: auto; }
.credits-table .muted { color: #6b6b66; font-size: 12px; }
.credits-table code { font-family: var(--mono); font-size: 12px; color: var(--red); }
.credits-table a { color: var(--red); }

.nf { padding: 30px 0 60px; max-width: 640px; }
.nf h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 600; margin: 0 0 24px; border-left: 2px solid var(--red); padding-left: 22px; }
.nf p { color: #3a3a38; }
.nf-links { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--hair); }
.nf-links li { border-bottom: 1px solid var(--hair); }
.nf-links a {
  display: block; padding: 16px 2px;
  text-transform: uppercase; letter-spacing: .22em; font-size: 11px; font-weight: 500; text-decoration: none;
}
.nf-links a:hover { color: var(--red); }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .doc-toc ol { columns: 2; column-gap: 34px; }
}
@media (max-width: 560px) {
  .doc-toc ol { columns: 1; }
  .doc-section h2 { grid-template-columns: 1fr; gap: 6px; }
  .doc-section h2::before { display: block; }
}

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

html.js .rv {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition: clip-path 1.1s cubic-bezier(.22, .61, .36, 1), opacity 1.1s ease;
}
html.js .rv.in { clip-path: inset(0 0 0 0); opacity: 1; }

html.js .fade { opacity: 0; transition: opacity 1.4s ease .15s; }
html.js .fade.in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv, html.js .fade, .rv, .fade { clip-path: none; opacity: 1; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
