/* Atlas by Omnia — its own world, on purpose. Pure black and off-white, a
   tall high-contrast serif next to a clean grotesque, hairline rules, big
   index rows with arrows, dotted halftone imagery. Nothing here is shared
   with the main Omnia site. */
:root {
  --black: #070707;
  --white: #f2f1ee;
  --mute: rgba(242, 241, 238, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --curtain: cubic-bezier(0.76, 0, 0.24, 1);
  --pad: 28px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

::selection { background: var(--white); color: var(--black); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }
sup { font-size: 0.5em; line-height: 0; vertical-align: super; }

/* Atlas's own mark, in the spot a trademark symbol would sit: a small
   four-point compass star that turns very slowly. */
sup.mk {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  margin-left: 0.08em;
  font-size: 1em;
  vertical-align: 0.62em;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: mk-turn 16s linear infinite;
}
@keyframes mk-turn { to { transform: rotate(360deg); } }

.serif {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
}

.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 7px;
  border: 1px solid currentColor;
}

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

/* scroll reveals */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.rv.is-in { opacity: 1; transform: none; }

/* ---------- opening wordmark ---------- */
.pre {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
}

.pre.is-done {
  transform: translateY(-100%);
  transition: transform 1s var(--curtain);
  pointer-events: none;
}

.no-pre .pre { display: none; }

.pre-word {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 7.4vw, 112px);
  line-height: 1;
  letter-spacing: -0.02em;
  animation: pre-in 1s var(--ease) both;
}
.pre-word i { opacity: 0.6; }

.pre-count {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  font-size: 13px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}

@keyframes pre-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- header ---------- */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--pad);
  color: #fff;
  mix-blend-mode: difference;
  font-size: 15px;
  font-weight: 500;
}

.hdr-brand { justify-self: start; letter-spacing: -0.01em; }
.hdr-brand span { opacity: 0.6; font-weight: 400; }
.hdr-glyph { display: flex; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hdr-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 26px;
}

.hdr-return,
.hdr-menu {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  position: relative;
}

.hdr-return::after,
.hdr-menu::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.hdr-return:hover::after,
.hdr-menu:hover::after { transform: scaleX(1); }

.arrow-l { display: inline-block; transition: transform 0.4s var(--ease); }
a:hover > .arrow-l { transform: translateX(-4px); }

/* ---------- menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px var(--pad) var(--pad);
  overflow-y: auto;            /* short windows: the list scrolls inside the menu */
  overscroll-behavior: contain;
  background: var(--black);
  color: var(--white);
  transform: translateY(-100%);
  transition: transform 0.9s var(--curtain);
  visibility: hidden;
}

.menu.is-open { transform: none; visibility: visible; }

.menu-links { display: flex; flex-direction: column; flex-shrink: 0; margin-bottom: 36px; }

.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, min(9.5vw, 7.4vh), 128px); /* eight rows fit most screens */
  line-height: 1;
  letter-spacing: -0.02em;
  padding: 6px 0;
  border-bottom: 1px solid rgba(242, 241, 238, 0.18);
  transition: padding-left 0.5s var(--ease), color 0.3s;
}

.menu-links a span {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mute);
  min-width: 2.2em;
}

.menu-links a:hover { padding-left: 18px; }

.menu-foot { flex-shrink: 0; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad) var(--pad);
  overflow: hidden;
  background: var(--black);
}

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

.hero-copy { position: relative; z-index: 2; width: 100%; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.hero-word {
  position: relative;
  display: block;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(120px, 40vw, 560px);
  line-height: 0.78;
  letter-spacing: -0.035em;
  margin-left: -0.04em;
  white-space: nowrap;
}

.hero-word .base { visibility: hidden; }

/* The word is stacked copies, each showing one horizontal band; on load each
   band slides in from alternating sides and snaps into place. */
.hero-word .slice {
  position: absolute;
  inset: 0;
  clip-path: inset(calc(var(--i) * 100% / var(--n)) 0 calc(100% - (var(--i) + 1) * 100% / var(--n)) 0);
  transform: translateX(var(--from));
  opacity: 0;
}

.is-ready .hero-word .slice {
  animation: slice-in 1.25s var(--ease) both;
  animation-delay: calc(0.15s + var(--i) * 70ms);
}

@keyframes slice-in {
  0% { opacity: 0; transform: translateX(var(--from)); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 241, 238, 0.45);
}

.hero-by {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(34px, 5.2vw, 78px);
  line-height: 0.95;
}

.hero-lede { max-width: 36ch; font-size: 17px; color: rgba(242, 241, 238, 0.85); }

.hero-cue {
  position: absolute;
  z-index: 2;
  top: 96px;
  right: var(--pad);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .tags,
.hero .hero-row,
.hero .hero-cue { opacity: 0; transform: translateY(14px); }

.is-ready .hero .tags,
.is-ready .hero .hero-row,
.is-ready .hero .hero-cue {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease) 0.9s, transform 1s var(--ease) 0.9s;
}

/* ---------- section heads ---------- */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 6px 0 2px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.sec-head h2 {
  font-size: clamp(56px, 12vw, 190px);
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.sec-count {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4.4vw, 64px);
}

/* ---------- fields (white) ---------- */
.fields {
  background: var(--white);
  color: var(--black);
  padding: 110px var(--pad) 90px;
}

.fields-note {
  max-width: 44ch;
  margin: 28px 0 56px auto;
  font-size: 17px;
}

.f-row { border-bottom: 1px solid var(--black); }
.f-row:first-child { border-top: 1px solid var(--black); }

.f-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr auto 44px;
  align-items: baseline;
  gap: 12px;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), padding 0.5s var(--ease);
}

.f-btn:hover,
.f-row.is-open .f-btn {
  background: var(--black);
  color: var(--white);
  padding-left: 20px;
  padding-right: 20px;
}

.f-num { font-size: 12px; letter-spacing: 0.06em; }

.f-name {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 9.5vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.f-meta { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

.f-icon { position: relative; justify-self: end; width: 22px; height: 22px; align-self: center; }
.f-icon::before,
.f-icon::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.f-icon::after { transform: rotate(90deg); }
.f-row.is-open .f-icon::after { transform: rotate(0deg); }

.f-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--ease);
}
.f-row.is-open .f-panel { grid-template-rows: 1fr; }

.f-inner { min-height: 0; overflow: hidden; }

.f-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 44px 40px;
  padding: 28px 0 56px 56px;
}

.b-head {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.b-head span { font-weight: 400; opacity: 0.55; }

.b-items li {
  border-top: 1px solid rgba(7, 7, 7, 0.28);
  font-size: 19px;
  letter-spacing: -0.01em;
}
.b-items li:last-child { border-bottom: 1px solid rgba(7, 7, 7, 0.28); }
.b-items li > * {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
}
.b-items a:hover { padding-left: 10px; }
.b-items a { transition: padding-left 0.4s var(--ease); }

.fields-foot { margin-top: 36px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }

/* ---------- holy grail ---------- */
.grail { padding: 120px var(--pad) 120px; }

.grail-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin: 28px 0 56px;
}

.grail-note { max-width: 44ch; font-size: 17px; }

.g-list { border-top: 1px solid rgba(242, 241, 238, 0.45); }

.g-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.5fr) 170px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(242, 241, 238, 0.45);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), padding 0.5s var(--ease);
}

.g-row:hover {
  background: var(--white);
  color: var(--black);
  padding-left: 20px;
  padding-right: 20px;
}

.g-num { font-size: 12px; letter-spacing: 0.06em; }

.g-name {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(38px, 6.6vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.g-why { font-size: 15px; max-width: 36ch; opacity: 0.85; }

.g-arrow {
  justify-self: end;
  font-size: 26px;
  line-height: 1;
  transition: transform 0.5s var(--ease);
}
.g-row:hover .g-arrow { transform: translate(4px, -4px); }

/* ---------- manifesto ---------- */
.manifesto { padding: 150px var(--pad) 150px; }

.manifesto .label { margin-bottom: 36px; }

.manifesto-text {
  max-width: 21em;
  font-size: clamp(36px, 5.6vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.manifesto-text .w {
  opacity: 0.16;
  transition: opacity 0.7s var(--ease);
  transition-delay: calc(var(--k) * 28ms);
}
.manifesto-text.is-in .w { opacity: 1; }

/* ---------- how it works (white) ---------- */
.how {
  background: var(--white);
  color: var(--black);
  padding: 100px var(--pad) 110px;
}

.how-list { margin-top: 0; }

.how-list li {
  display: grid;
  grid-template-columns: 56px 1.3fr 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 30px 0;
  border-bottom: 1px solid var(--black);
}

.how-list .n { font-size: 12px; letter-spacing: 0.06em; }
.how-list .t { font-family: 'Instrument Serif', serif; font-size: clamp(36px, 6vw, 96px); line-height: 0.95; letter-spacing: -0.02em; }
.how-list .d { font-size: 17px; max-width: 30ch; }

/* ---------- shop + coffee (white) ---------- */
.shop {
  background: var(--white);
  color: var(--black);
  padding: 70px var(--pad) 100px;
}

/* the shop runs smaller than the other sections on purpose */
.shop .sec-head h2 { font-size: clamp(36px, 5vw, 72px); line-height: 0.95; }
.shop .sec-count { font-size: clamp(20px, 2.4vw, 32px); }

.shop-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin: 22px 0 36px;
}
.shop-note { max-width: 44ch; font-size: 14px; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.p { display: flex; flex-direction: column; color: inherit; }

.p-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e1e0dc;
}

/* placeholder art: a fading halftone, echoing the hero */
.p-img::before {
  content: '';
  position: absolute;
  inset: -4%;
  background-image: radial-gradient(circle at center, var(--black) 0 24%, transparent 26%);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0, transparent 68%);
  mask-image: radial-gradient(circle at 50% 46%, #000 0, transparent 68%);
  transition: transform 0.9s var(--ease);
}
.p.is-live:hover .p-img::before { transform: scale(1.08); }

.p-img .tag { position: absolute; top: 14px; left: 14px; background: #e1e0dc; }

.p-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
  border-bottom: 1px solid var(--black);
  padding-bottom: 12px;
}
.p-name { font-family: 'Instrument Serif', serif; font-size: clamp(22px, 2.2vw, 30px); line-height: 1; letter-spacing: -0.02em; }
.p-price { font-size: 13px; font-variant-numeric: tabular-nums; }
.p-status { padding-top: 10px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }
.p.is-live .p-status { opacity: 1; }

/* the coffee tile is the inverse: a black block among the white */
.p--coffee {
  align-items: flex-start;
  gap: 18px;
  padding: 26px;
  background: var(--black);
  color: var(--white);
}
.p--coffee .cup { margin: auto 0 0; }
.p--coffee h3 { font-size: clamp(28px, 2.8vw, 42px); line-height: 0.95; letter-spacing: -0.02em; }
.coffee-text { max-width: 30ch; font-size: 13px; opacity: 0.8; }
.p--coffee .btn { margin-top: 4px; }

/* ---------- suggest a resource ---------- */
.suggest {
  padding: 130px var(--pad) 130px;
  border-top: 1px solid rgba(242, 241, 238, 0.45);
}

.suggest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.suggest .label { margin-bottom: 30px; }
.suggest .label .tag { color: var(--white); }

.suggest-head {
  font-size: clamp(54px, 9.4vw, 150px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 30px;
}

.suggest-text { max-width: 40ch; font-size: 18px; margin-bottom: 34px; }

.suggest-mail {
  display: inline-flex;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}

.suggest-form { display: flex; flex-direction: column; gap: 22px; }

.fld { display: flex; flex-direction: column; gap: 6px; }

.fld > span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.fld > span i { font-style: normal; opacity: 0.7; }

.fld input,
.fld select,
.fld textarea {
  width: 100%;
  background: transparent;
  color: var(--white);
  border: none;
  border-bottom: 1px solid rgba(242, 241, 238, 0.5);
  border-radius: 0;
  padding: 10px 0 12px;
  font: inherit;
  font-size: 19px;
  letter-spacing: -0.01em;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s var(--ease);
}

.fld select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f2f1ee' stroke-width='1.4'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.fld select option { color: #000; background: #fff; }

.fld input::placeholder,
.fld textarea::placeholder { color: rgba(242, 241, 238, 0.3); }

.fld input:focus,
.fld select:focus,
.fld textarea:focus { border-bottom-color: var(--white); }

.suggest-form .btn { align-self: flex-start; cursor: pointer; margin-top: 6px; }

.suggest-status { min-height: 1.4em; font-size: 14px; color: var(--mute); }
.suggest-status a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.suggest-status.is-bad { color: #ffb3a8; }

/* ---------- studio CTA ---------- */
.cta { padding: 150px var(--pad) 120px; }

.cta-head {
  font-size: clamp(60px, 13vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin-bottom: 56px;
}

.cta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 241, 238, 0.45);
}

.cta-text { max-width: 40ch; font-size: 19px; }

.cta-links { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 28px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover { background: transparent; color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }

/* ---------- footer ---------- */
.ftr { padding: 0 var(--pad) var(--pad); overflow: hidden; }

.ftr-word {
  font-size: clamp(160px, 44vw, 760px);
  line-height: 0.74;
  letter-spacing: -0.04em;
  margin-left: -0.03em;
  margin-bottom: 20px;
  white-space: nowrap;
}

.ftr-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 241, 238, 0.45);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ftr-links { display: flex; gap: 22px; }
.ftr a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  :root { --pad: 18px; }
  .hdr { padding: 16px var(--pad); font-size: 14px; grid-template-columns: 1fr auto; }
  .hdr-glyph { display: none; }
  .hdr-right { gap: 18px; }
  .hero-cue { top: 70px; font-size: 11px; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .suggest-grid { grid-template-columns: 1fr; gap: 44px; }
  .shop-top { flex-direction: column; gap: 18px; }
  .shop-grid { grid-template-columns: 1fr; gap: 36px; }
  .p--coffee { min-height: 380px; }
  .grail-intro { flex-direction: column; gap: 18px; }
  .g-row { grid-template-columns: 34px minmax(0, 1fr) 28px; row-gap: 10px; }
  .g-field { grid-column: 2; grid-row: 2; }
  .g-why { grid-column: 2 / 4; grid-row: 3; }
  .f-btn { grid-template-columns: 34px 1fr 28px; }
  .f-meta { display: none; }
  .f-branches { padding-left: 0; }
  .fields-note { margin-left: 0; }
  .how-list li { grid-template-columns: 34px 1fr; }
  .how-list .d { grid-column: 2; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .ftr-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  sup.mk { animation: none; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hdr-glyph { animation: none; }
  .hero-word .slice { opacity: 1; transform: none; animation: none !important; }
  .hero .tags, .hero .hero-row, .hero .hero-cue { opacity: 1; transform: none; transition: none; }
  .manifesto-text .w { opacity: 1; transition: none; }
  .pre { display: none; }
}

/* ---------- page transition ---------- */
/* Opts in to cross-document view transitions only so the browser doesn't
   cancel Omnia's own one (which logs an error). The visible hand-off between
   the two sites is the halftone-dot wipe in world-transition.js, so the
   browser's own animation is switched off. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) { display: none; }

/* ---------- field guide link on the home page ---------- */
.f-guide {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 28px 0 0 56px;
  padding: 16px 20px;
  border: 1px solid var(--black);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.f-guide span:first-child { font-family: 'Instrument Serif', serif; font-size: clamp(26px, 3vw, 40px); line-height: 1; letter-spacing: -0.02em; }
.f-guide span:last-child { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
a.f-guide:hover { background: var(--black); color: var(--white); }
.f-guide--soon { border-style: dashed; opacity: 0.55; }

/* ---------- Atlas 101 reader (field.html) ---------- */
/* A black cover, then one chapter at a time on paper: calm, single column,
   a slim progress bar, a notes drawer. Everything below is the reader. */

.f-guide + .f-branches { margin-top: 0; }

/* cover */
.cv {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 26px;
  padding: 140px var(--pad) 36px;
}
.cv .label .tag { color: var(--white); }
.cv-title {
  /* long names ("Business 101") shrink so they always fit one line */
  font-size: clamp(64px, min(26vw, calc(210vw / var(--len, 8))), 460px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  margin-left: -0.03em;
  padding-bottom: 0.2em;
  white-space: nowrap;
}
.cv-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 241, 238, 0.45);
}
.cv-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cv-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.cv-lede { max-width: 46ch; font-size: 19px; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-actions .btn { cursor: pointer; }
.cv-back { align-self: flex-start; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.cv-back:hover { text-decoration: underline; text-underline-offset: 3px; }

/* table of contents on the cover */
.toc-wrap { padding: 20px var(--pad) 120px; }
.toc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 26px; }
.toc-head .label { margin: 0; }
.toc-prog { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.toc { list-style: none; border-top: 1px solid rgba(242, 241, 238, 0.4); }
.toc a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.1fr) 96px;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid rgba(242, 241, 238, 0.4);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), padding 0.45s var(--ease);
}
.toc a:hover { background: var(--white); color: var(--black); padding-left: 18px; padding-right: 18px; }
.toc .n { font-size: 12px; letter-spacing: 0.06em; color: var(--mute); }
.toc a:hover .n { color: inherit; }
.toc .t { font-family: 'Instrument Serif', serif; font-size: clamp(30px, 3.8vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.toc .d { font-size: 14px; max-width: 46ch; color: var(--mute); }
.toc a:hover .d { color: inherit; }
.toc .m { justify-self: end; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.toc .tick { width: 14px; height: 14px; border: 1px solid currentColor; display: inline-block; position: relative; }
.toc .is-done .tick { background: currentColor; }

/* a chapter, on paper */
.rd {
  background: var(--white);
  color: var(--black);
  min-height: 100svh;
  padding: 118px var(--pad) 170px;
}
.rd ::selection { background: var(--black); color: var(--white); }
.rd-in { max-width: 920px; margin: 0 auto; animation: rd-in 0.6s var(--ease) both; }
@keyframes rd-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.rd-top { display: flex; align-items: center; gap: 18px; margin-bottom: 64px; }
.rd-cover-link { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.rd-cover-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.rd-segs { flex: 1; display: flex; gap: 5px; }
.rd-segs a { flex: 1; height: 22px; display: flex; align-items: center; }
.rd-segs a::before { content: ''; width: 100%; height: 3px; background: rgba(7, 7, 7, 0.16); transition: background 0.3s; }
.rd-segs a.is-done::before { background: var(--black); }
.rd-segs a.is-here::before { background: rgba(7, 7, 7, 0.55); height: 5px; }
.rd-segs a:hover::before { background: var(--black); }
.rd-count { font-size: 12px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; white-space: nowrap; }

.rd-kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(7, 7, 7, 0.55); margin-bottom: 18px; }
.rd-title { font-size: clamp(56px, 9vw, 124px); line-height: 0.9; letter-spacing: -0.03em; }
.rd-lead { max-width: 50ch; margin-top: 26px; font-size: 21px; line-height: 1.45; }
.rd-body { margin-top: 72px; display: flex; flex-direction: column; gap: 44px; }

.rd-foot {
  margin-top: 96px;
  padding-top: 26px;
  border-top: 1px solid var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.rd-foot .prev { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.rd-foot .prev:hover { text-decoration: underline; text-underline-offset: 3px; }
.rd-foot .next {
  display: inline-flex;
  gap: 12px;
  align-items: baseline;
  padding: 18px 26px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.rd-foot .next:hover { background: transparent; color: var(--black); }
.rd-foot .next small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; }
.rd-foot .next strong { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: -0.01em; }

/* text blocks */
.bk-p { max-width: 60ch; font-size: 19px; line-height: 1.64; }
.bk-p + .bk-p { margin-top: -18px; }
.bk-h { margin-top: 24px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1; letter-spacing: -0.02em; }
.bk-pull { max-width: 22ch; font-size: clamp(36px, 5vw, 70px); line-height: 1; letter-spacing: -0.025em; }
.bk-list { max-width: 58ch; }
.bk-list li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid rgba(7, 7, 7, 0.16); font-size: 18px; line-height: 1.5; }
.bk-list li:last-child { border-bottom: 1px solid rgba(7, 7, 7, 0.16); }
.bk-list li::before { content: ''; position: absolute; left: 4px; top: 22px; width: 10px; height: 1px; background: var(--black); }
.bk-list b { font-weight: 600; }

.callout { background: var(--black); color: var(--white); padding: 26px 28px 28px; max-width: 700px; }
.callout .tag { margin-bottom: 14px; }
.callout p { font-size: 18px; line-height: 1.55; }
.callout p + p { margin-top: 12px; }
.callout--soft { background: transparent; color: var(--black); border: 1px solid var(--black); }

/* a numbered lesson */
.ls { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding-top: 44px; border-top: 1px solid rgba(7, 7, 7, 0.22); }
.ls-n { font-family: 'Instrument Serif', serif; font-size: 60px; line-height: 0.85; letter-spacing: -0.03em; }
.ls h3 { font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; font-weight: 400; margin-bottom: 18px; }
.ls-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ls-body p { max-width: 58ch; font-size: 18px; line-height: 1.62; }
.ls-body .callout, .ls-body .fig, .ls-body .wd { max-width: 100%; }
.ls-foot { display: flex; gap: 10px; align-items: center; }

/* "add to notes" */
.clip {
  background: none;
  border: 1px solid currentColor;
  padding: 7px 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.7;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s;
  white-space: nowrap;
}
.clip:hover { background: var(--black); color: var(--white); opacity: 1; }
.clip.is-added { background: var(--black); color: var(--white); opacity: 1; }

/* figures */
.fig { margin: 4px 0; border: 1px solid var(--black); background: var(--white); color: var(--black); }
.fig-art { padding: 22px 22px 14px; }
.fig-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.fig figcaption { padding: 12px 18px 14px; border-top: 1px solid var(--black); font-size: 13px; line-height: 1.5; }
.fig--dark { background: var(--black); color: var(--white); }
.fig--dark figcaption { border-top-color: rgba(242, 241, 238, 0.4); }

.g-line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g-thin { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.g-dash { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 5 5; stroke-linecap: round; }
.g-fill { fill: currentColor; stroke: none; }
.g-soft { fill: currentColor; opacity: 0.12; stroke: none; }
.g-mid { fill: currentColor; opacity: 0.35; stroke: none; }
.g-paper { fill: var(--white); }
.fig--dark .g-paper { fill: var(--black); }
.g-lab { font: 500 11px 'Inter Tight', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; fill: currentColor; }
.g-note { font: 400 12px 'Inter Tight', sans-serif; fill: currentColor; }
.g-big { font-family: 'Instrument Serif', serif; fill: currentColor; }
.g-halo { paint-order: stroke; stroke: var(--white); stroke-width: 6px; stroke-linejoin: round; }
.fig--dark .g-halo { stroke: var(--black); }

/* interactive tools */
.wd { border: 1px solid var(--black); background: var(--white); }
.wd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 18px; background: var(--black); color: var(--white); }
.wd-head strong { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.wd-head span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }
.wd-body { padding: 22px 18px 24px; display: flex; flex-direction: column; gap: 18px; }
.wd-intro { font-size: 15px; max-width: 56ch; }
.wd-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 26px; }
.wd-f { display: flex; flex-direction: column; gap: 6px; }
.wd-f > span, .wd-lab { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(7, 7, 7, 0.6); display: flex; justify-content: space-between; gap: 10px; }
.wd-f > span b { color: var(--black); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 13px; }
.wd input[type='text'], .wd input[type='number'], .wd input[type='search'], .wd select {
  width: 100%;
  background: transparent;
  color: var(--black);
  border: none;
  border-bottom: 1px solid var(--black);
  border-radius: 0;
  padding: 8px 0;
  font: inherit;
  font-size: 18px;
  outline: none;
}
.wd input[type='color'] { width: 100%; height: 40px; border: 1px solid var(--black); padding: 0; background: none; cursor: pointer; }
.wd input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--black); outline: none; margin: 14px 0; }
.wd input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; background: var(--black); border: 0; border-radius: 0; cursor: pointer; }
.wd input[type='range']::-moz-range-thumb { width: 16px; height: 16px; background: var(--black); border: 0; border-radius: 0; cursor: pointer; }
.wd select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23070707' stroke-width='1.4'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; }
.wd-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-seg button { padding: 8px 12px; background: none; border: 1px solid var(--black); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.wd-seg button:hover, .wd-seg button.is-on { background: var(--black); color: var(--white); }
.wd-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--black); }
.wd-out > div { padding: 14px 16px; border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); margin: 0 -1px -1px 0; }
.wd-out small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(7, 7, 7, 0.6); margin-bottom: 4px; }
.wd-out strong { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -0.02em; }
.wd-out .ok { background: var(--black); color: var(--white); }
.wd-out .ok small { color: rgba(242, 241, 238, 0.65); }
.wd-note { font-size: 13px; color: rgba(7, 7, 7, 0.6); max-width: 60ch; }

/* rules: an accordion, one open at a time */
.rl-list { border-top: 1px solid var(--black); }
.rl { border-bottom: 1px solid var(--black); }
.rl-btn { display: grid; grid-template-columns: 56px minmax(0, 1fr) 24px; gap: 18px; align-items: baseline; width: 100%; padding: 20px 0; text-align: left; background: none; border: 0; cursor: pointer; transition: padding 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease); }
.rl-btn:hover, .rl.is-open .rl-btn { background: var(--black); color: var(--white); padding-left: 16px; padding-right: 16px; }
.rl-n { font-size: 12px; letter-spacing: 0.06em; }
.rl-btn h3 { font-size: clamp(26px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.02em; font-weight: 400; }
.rl-ico { position: relative; width: 18px; height: 18px; align-self: center; justify-self: end; }
.rl-ico::before, .rl-ico::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform 0.45s var(--ease); }
.rl-ico::after { transform: rotate(90deg); }
.rl.is-open .rl-ico::after { transform: rotate(0); }
.rl-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.rl.is-open .rl-panel { grid-template-rows: 1fr; }
.rl-in { min-height: 0; overflow: hidden; }
.rl-in > div { padding: 22px 0 26px 74px; max-width: 700px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.rl-in p { font-size: 18px; line-height: 1.6; }

/* the first month */
.pt { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 34px 0 40px; border-top: 1px solid var(--black); }
.pt:last-child { border-bottom: 1px solid var(--black); }
.pt-n { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 10px; }
.pt h3 { font-size: clamp(32px, 4.2vw, 56px); line-height: 0.98; letter-spacing: -0.02em; font-weight: 400; margin-bottom: 16px; }
.pt p { max-width: 54ch; font-size: 18px; line-height: 1.6; }
.pt-tasks { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; max-width: 58ch; }
.ck { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; cursor: pointer; font-size: 16px; line-height: 1.45; }
.ck input { position: absolute; opacity: 0; width: 0; height: 0; }
.ck i { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--black); margin-top: 1px; position: relative; transition: background 0.2s; }
.ck input:checked + i { background: var(--black); }
.ck input:checked + i::after { content: ''; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ck input:focus-visible + i { outline: 2px solid var(--black); outline-offset: 2px; }
.ck input:checked ~ span { opacity: 0.5; text-decoration: line-through; text-decoration-thickness: 1px; }
.pt-meter { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.pt-meter div { flex: 1; max-width: 280px; height: 3px; background: rgba(7, 7, 7, 0.16); }
.pt-meter div i { display: block; height: 100%; background: var(--black); width: 0; transition: width 0.4s var(--ease); }
.fg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.fg-chip { display: inline-flex; gap: 8px; padding: 9px 12px; border: 1px solid currentColor; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.fg-chip:hover { background: var(--black); color: var(--white); }

/* the toolkit: search, then one item at a time */
.tk-search { display: flex; flex-direction: column; gap: 6px; margin-bottom: 30px; max-width: 520px; }
.tk-search span { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(7, 7, 7, 0.6); }
.tk-search input { background: transparent; border: none; border-bottom: 1px solid var(--black); border-radius: 0; padding: 10px 0; font: inherit; font-size: 22px; letter-spacing: -0.01em; outline: none; color: var(--black); }
.tk-branch { margin-bottom: 20px; }
.tk-bh { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(7, 7, 7, 0.6); margin-bottom: 8px; }
.tk-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-pill { display: inline-flex; gap: 8px; align-items: baseline; padding: 9px 13px; background: none; border: 1px solid var(--black); font-size: 15px; cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.tk-pill i { font-style: normal; font-size: 11px; opacity: 0.55; }
.tk-pill:hover, .tk-pill.is-on { background: var(--black); color: var(--white); }
.tk-out { margin-top: 34px; }
.tk-out-head { display: flex; align-items: baseline; gap: 18px; padding: 14px 20px; background: var(--black); color: var(--white); }
.tk-out-head .p { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.tk-out-head h3 { flex: 1; font-size: clamp(32px, 4.4vw, 58px); line-height: 0.95; letter-spacing: -0.02em; font-weight: 400; }
.tk-out-head .c { font-family: 'Instrument Serif', serif; font-size: 28px; }
.tk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border-bottom: 1px solid rgba(7, 7, 7, 0.28); }
.tk-row > a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 28px; gap: 22px; align-items: baseline; padding: 16px 0; transition: background 0.3s var(--ease), color 0.3s var(--ease), padding 0.4s var(--ease); }
.tk-row > a:hover { background: var(--black); color: var(--white); padding-left: 16px; padding-right: 16px; }
.tk-name { font-family: 'Instrument Serif', serif; font-size: clamp(24px, 2.8vw, 36px); line-height: 1; letter-spacing: -0.02em; }
.tk-note { font-size: 15px; max-width: 52ch; }
.tk-arrow { justify-self: end; transition: transform 0.4s var(--ease); }
.tk-row > a:hover .tk-arrow { transform: translate(3px, -3px); }
.tk-tag { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; margin-left: 8px; }
.tk-empty { padding: 24px 0; font-size: 16px; color: rgba(7, 7, 7, 0.6); }

/* the words */
.gl-search { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; max-width: 520px; }
.gl-search span { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(7, 7, 7, 0.6); }
.gl-search input { background: transparent; border: none; border-bottom: 1px solid var(--black); border-radius: 0; padding: 10px 0; font: inherit; font-size: 22px; outline: none; color: var(--black); }
.gl { border-top: 1px solid var(--black); }
.gl-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) auto; gap: 22px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(7, 7, 7, 0.28); }
.gl-row dt { font-size: clamp(26px, 3vw, 40px); line-height: 1; letter-spacing: -0.02em; }
.gl-row dd { font-size: 16px; line-height: 1.55; max-width: 56ch; }


/* inline links, code, tables */
.rd code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.88em; background: rgba(7, 7, 7, 0.08); padding: 1px 6px; }
.bk-a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bk-a:hover { background: var(--black); color: var(--white); text-decoration: none; }
.tb { overflow-x: auto; border: 1px solid var(--black); }
.tb table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; line-height: 1.5; }
.tb th, .tb td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid rgba(7, 7, 7, 0.28); }
.tb thead th { background: var(--black); color: var(--white); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 0; }
.tb tbody th { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 24px; line-height: 1.05; white-space: nowrap; }
.tb tr:last-child th, .tb tr:last-child td { border-bottom: 0; }
.tb .wd-note { padding: 12px 16px 14px; border-top: 1px solid var(--black); }

/* keep going */
.kg-list { border-top: 1px solid var(--black); max-width: 700px; }
.kg-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--black); transition: background 0.3s var(--ease), color 0.3s var(--ease), padding 0.4s var(--ease); }
.kg-list a:hover { background: var(--black); color: var(--white); padding-left: 16px; padding-right: 16px; }
.kg-list .serif { font-size: clamp(32px, 4vw, 54px); line-height: 1; letter-spacing: -0.02em; }
.kg-list .st { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }

/* reader bar + notes drawer */
.rb { position: fixed; left: 50%; bottom: 18px; z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 5px; background: var(--black); color: var(--white); border: 1px solid rgba(242, 241, 238, 0.28); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); }
.rb button, .rb a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; background: none; border: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, color 0.2s; }
.rb button:hover, .rb a:hover { background: var(--white); color: var(--black); }
.rb .cnt { padding: 0 8px; font-size: 11px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; opacity: 0.75; }
.rb .bd { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--white); color: var(--black); font-size: 10px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0; }
.rb button:hover .bd { background: var(--black); color: var(--white); }
.rb[hidden], .rb [hidden] { display: none; }

.nt { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(450px, 100vw); display: flex; flex-direction: column; gap: 14px; padding: 84px 22px 22px; background: var(--black); color: var(--white); border-left: 1px solid rgba(242, 241, 238, 0.28); transform: translateX(100%); visibility: hidden; transition: transform 0.6s var(--curtain), visibility 0s 0.6s; }
.nt.is-open { transform: none; visibility: visible; transition: transform 0.6s var(--curtain); }
.nt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.nt-head h2 { font-size: 40px; line-height: 0.95; letter-spacing: -0.02em; }
.nt-x { background: none; border: 1px solid rgba(242, 241, 238, 0.4); padding: 8px 11px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.nt-x:hover { background: var(--white); color: var(--black); }
.nt-sub { font-size: 12px; letter-spacing: 0.04em; color: var(--mute); margin-top: -6px; }
.nt textarea { flex: 1; min-height: 160px; resize: none; background: transparent; color: var(--white); border: 1px solid rgba(242, 241, 238, 0.3); padding: 14px; font: 400 15px/1.6 'Inter Tight', sans-serif; outline: none; }
.nt textarea:focus { border-color: var(--white); }
.nt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-actions button { padding: 11px 14px; background: none; border: 1px solid rgba(242, 241, 238, 0.5); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, color 0.2s; }
.nt-actions button:hover { background: var(--white); color: var(--black); }
.nt-actions .push { margin-left: auto; border-color: transparent; opacity: 0.7; }
.nt-toast { position: fixed; left: 50%; bottom: 76px; z-index: 65; transform: translate(-50%, 12px); background: var(--white); color: var(--black); border: 1px solid var(--black); padding: 10px 14px; font-size: 12px; letter-spacing: 0.04em; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
.nt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.f-guide + .f-branches { margin-top: 0; }

@media (max-width: 760px) {
  .f-guide { margin-left: 0; }
  .cv { padding-top: 110px; }
  .cv-row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .toc a { grid-template-columns: 34px minmax(0, 1fr) auto; row-gap: 6px; }
  .toc .d { grid-column: 2 / 4; grid-row: 2; }
  .rd { padding: 100px var(--pad) 150px; }
  .rd-top { margin-bottom: 40px; }
  .rd-body { margin-top: 48px; gap: 36px; }
  .rd-foot { flex-direction: column-reverse; align-items: stretch; gap: 22px; }
  .rd-foot .next { justify-content: space-between; }
  .ls { grid-template-columns: 1fr; gap: 12px; }
  .ls-n { font-size: 44px; }
  .rl-btn { grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 12px; }
  .rl-in > div { padding-left: 46px; }
  .pt { grid-template-columns: 1fr; gap: 8px; }
  .tk-row { grid-template-columns: minmax(0, 1fr); }
  .tk-row > a { grid-template-columns: minmax(0, 1fr) 24px; row-gap: 6px; }
  .tk-row .tk-note { grid-column: 1; grid-row: 2; }
  .tk-row .clip { justify-self: start; margin-bottom: 14px; }
  .gl-row { grid-template-columns: 1fr; gap: 6px; }
  .gl-row .clip { justify-self: start; }
  .rb { left: 10px; right: 10px; transform: none; justify-content: space-between; bottom: 10px; }
  .rb button, .rb a { padding: 11px 10px; }
  .nt { padding-top: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-in { animation: none; }
  .nt, .nt.is-open { transition: none; }
}

/* ---------- clickable assets + the shared links area ---------- */
.b-item {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  align-items: baseline;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), padding 0.45s var(--ease);
}
.b-item:hover { padding-left: 10px; }
.b-item .b-more { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.55; }
/* lit up black, like the field bar itself */
.b-item.is-on,
.b-item.is-on:hover {
  background: var(--black);
  color: var(--white);
  padding-left: 14px;
  padding-right: 14px;
}
.b-item.is-on .b-more { opacity: 0.8; }

.f-links {
  display: grid;
  grid-template-rows: 0fr;
  margin-left: 56px;
  transition: grid-template-rows 0.6s var(--ease);
}
.f-links.is-open { grid-template-rows: 1fr; }
.f-links-in { min-height: 0; overflow: hidden; }
.fl-wrap { padding-bottom: 56px; }

.fl-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 20px;
  background: var(--black);
  color: var(--white);
}
.fl-path { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.fl-title { flex: 1; font-family: 'Instrument Serif', serif; font-size: clamp(34px, 4.6vw, 64px); line-height: 0.95; letter-spacing: -0.02em; }
.fl-count { font-family: 'Instrument Serif', serif; font-size: clamp(20px, 2.4vw, 32px); }

.fl-rows { animation: fl-in 0.5s var(--ease) both; }
@keyframes fl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.fl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 36px;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(7, 7, 7, 0.28);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), padding 0.4s var(--ease);
}
.fl-row:hover { background: var(--black); color: var(--white); padding-left: 20px; padding-right: 20px; }
.fl-name { font-family: 'Instrument Serif', serif; font-size: clamp(24px, 2.8vw, 40px); line-height: 1; letter-spacing: -0.02em; }
.fl-note { max-width: 56ch; font-size: 15px; }
.fl-arrow { justify-self: end; transition: transform 0.4s var(--ease); }
.fl-row:hover .fl-arrow { transform: translate(3px, -3px); }

@media (max-width: 760px) {
  .f-links { margin-left: 0; }
  .fl-head { flex-wrap: wrap; row-gap: 4px; padding: 12px 14px; }
  .fl-path { flex-basis: 100%; }
  .fl-row { grid-template-columns: minmax(0, 1fr) 28px; row-gap: 6px; }
  .fl-note { grid-column: 1; grid-row: 2; }
  .fl-arrow { grid-column: 2; grid-row: 1; }
}

/* ---------- interactive tools: per-tool styling ---------- */
.sq-stage { display: flex; justify-content: center; align-items: center; min-height: 470px; background: rgba(7, 7, 7, 0.05); border: 1px solid var(--black); overflow: hidden; }
.sq-poster { width: min(330px, 86%); aspect-ratio: 3 / 4; background: var(--white); border: 1px solid var(--black); padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; color: var(--black); transition: filter 0.5s var(--ease), transform 0.6s var(--ease); }
.sq-poster[data-view='squint'] { filter: blur(5px); }
.sq-poster[data-view='thumb'] { filter: grayscale(1) blur(2px); transform: scale(0.42); }
.sq-kick { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.sq-head { font-family: 'Instrument Serif', serif; font-size: 64px; line-height: 0.88; letter-spacing: -0.03em; font-weight: 400; }
.sq-sub { font-size: 16px; font-weight: 600; }
.sq-body { font-size: 12px; line-height: 1.45; max-width: 30ch; }
.sq-btn { align-self: flex-start; margin-top: auto; background: var(--black); color: var(--white); padding: 10px 16px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.sq-poster[data-hier='flat'] .sq-kick, .sq-poster[data-hier='flat'] .sq-head, .sq-poster[data-hier='flat'] .sq-sub, .sq-poster[data-hier='flat'] .sq-body, .sq-poster[data-hier='flat'] .sq-btn {
  font: 400 14px/1.4 'Inter Tight', sans-serif; letter-spacing: 0; text-transform: none; background: none; color: var(--black); padding: 0; margin: 0; max-width: none;
}

.sc-list { border-top: 1px solid var(--black); }
.sc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 10px 0; border-bottom: 1px solid rgba(7, 7, 7, 0.2); overflow: hidden; }
.sc-meta { min-width: 120px; display: flex; flex-direction: column; gap: 2px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.sc-meta i { font-style: normal; opacity: 0.55; }
.sc-sample { flex: 1; text-align: right; white-space: nowrap; overflow: hidden; }

.hm-row { display: flex; flex-wrap: wrap; border: 1px solid var(--black); }
.hm-sw { flex: 1 1 90px; min-height: 120px; border: 0; padding: 12px; text-align: left; display: flex; align-items: flex-end; font: 500 11px 'Inter Tight', sans-serif; letter-spacing: 0.08em; cursor: pointer; transition: flex-grow 0.3s var(--ease); }
.hm-sw:hover { flex-grow: 1.6; }

.ct-prev { padding: 22px; border: 1px solid var(--black); display: flex; flex-direction: column; gap: 8px; }
.ct-prev strong { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 38px; line-height: 1; letter-spacing: -0.02em; }
.ct-prev span { font-size: 15px; line-height: 1.5; max-width: 52ch; }
.wd .wd-f input[type='text'][data-t] { margin-top: 2px; font-size: 16px; font-variant-numeric: tabular-nums; }

.ex-scene { border: 1px solid var(--black); overflow: hidden; aspect-ratio: 20 / 11; background: #111; }
.ex-scene svg { width: 100%; height: 100%; display: block; }

.ar-stage { height: 240px; display: flex; align-items: center; justify-content: center; background: rgba(7, 7, 7, 0.05); border: 1px solid var(--black); }
.ar-frame { background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; font-size: 34px; transition: width 0.45s var(--ease), height 0.45s var(--ease); }

.tp-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border: 1px solid var(--black); }
.tp-table > div { padding: 12px 14px; border-right: 1px solid var(--black); border-bottom: 1px solid var(--black); margin: 0 -1px -1px 0; }
.tp-table small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(7, 7, 7, 0.6); margin-bottom: 4px; }
.tp-table strong { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }

.sp-bar { display: flex; border: 1px solid var(--black); height: 110px; }
.sp-band { flex: 1 1 0; min-width: 0; border: 0; border-right: 1px solid var(--black); background: none; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding: 8px 2px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.25s, color 0.25s; }
.sp-band:last-child { border-right: 0; }
.sp-band span { writing-mode: vertical-rl; transform: rotate(180deg); }
.sp-band:hover, .sp-band.is-on { background: var(--black); color: var(--white); }
.sp-scale { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.06em; opacity: 0.55; margin-top: -8px; }
.sp-read h4 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -0.02em; margin-bottom: 10px; }
.sp-read h4 i { font-style: normal; font-family: 'Inter Tight', sans-serif; font-size: 13px; letter-spacing: 0.04em; margin-left: 14px; opacity: 0.6; }
.sp-read p { font-size: 16px; line-height: 1.55; max-width: 56ch; }

.mg-bar { display: flex; border: 1px solid var(--black); min-height: 70px; }
.mg-bar > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 8px 10px; min-width: 0; border-right: 1px solid var(--black); overflow: hidden; }
.mg-bar > div:last-child { border-right: 0; }
.mg-bar span { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.mg-bar b { font-weight: 500; font-size: 13px; white-space: nowrap; }
.mg-a { background: rgba(7, 7, 7, 0.1); }
.mg-b { background: rgba(7, 7, 7, 0.22); }
.mg-c { background: rgba(7, 7, 7, 0.4); color: var(--white); }
.mg-d { background: var(--black); color: var(--white); }

.pl-stage { display: flex; justify-content: center; background: rgba(7, 7, 7, 0.05); border: 1px solid var(--black); padding: 16px; }
.pl-stage svg { width: min(300px, 100%); height: auto; overflow: visible; }
.pl-tee { fill: var(--white); stroke: var(--black); stroke-width: 1.5; stroke-linejoin: round; }
.pl-art { fill: var(--black); opacity: 0.85; }
