:root {
  --black: #0a0c0b;
  --ink: #151817;
  --paper: #f2efe6;
  --white: #fffdf7;
  --red: #d92f2f;
  --green: #31623f;
  --sky: #9ed8e6;
  --yellow: #e7b94f;
  --line: rgba(21, 24, 23, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.35; }
button, input, summary { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; transform: translateY(-160%); padding: .7rem 1rem; background: var(--white); color: var(--ink); }
.skip-link:focus { transform: none; }

.topbar { position: fixed; z-index: 50; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 4rem; padding: 0 1.25rem; border-bottom: 1px solid var(--line); background: rgba(242, 239, 230, .9); color: var(--ink); backdrop-filter: blur(14px); }
.back-link, .wordmark { font-size: .72rem; font-weight: 700; letter-spacing: 0; text-decoration: none; }
.back-link { display: inline-flex; gap: .55rem; align-items: center; justify-self: start; }
.wordmark { justify-self: center; color: var(--ink); }
.motion-toggle { display: grid; place-items: center; justify-self: end; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 253, 247, .68); color: var(--ink); cursor: pointer; }
.motion-toggle:hover, .motion-toggle:focus-visible { border-color: var(--sky); color: var(--sky); }

.passage { position: relative; min-height: 300svh; background: var(--paper); color: var(--white); }
.passage-media { position: sticky; z-index: 0; top: 0; height: 100svh; overflow: hidden; }
.passage-image { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--passage-x, 39%) center; filter: saturate(var(--passage-saturation, .72)) contrast(1.03); transform: scale(var(--passage-scale, 1.03)); transition: filter .5s ease; }
.passage-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 11, .76) 0%, rgba(10, 12, 11, .24) 48%, rgba(10, 12, 11, .04) 72%), linear-gradient(0deg, rgba(10, 12, 11, .55), transparent 45%); }
.passage-track { position: relative; z-index: 1; margin-top: -100svh; }
.beat { min-height: 100svh; display: flex; align-items: flex-end; padding: 7rem max(1.25rem, calc((100% - 74rem) / 2)); }
.beat-copy { max-width: 43rem; padding-bottom: 2rem; text-shadow: 0 2px 20px rgba(0, 0, 0, .45); }
.beat-copy .eyebrow { margin: 0 0 1rem; color: var(--sky); font-size: .75rem; font-weight: 700; letter-spacing: 0; }
.beat-copy h1, .beat-copy h2 { margin: 0; font-weight: 700; letter-spacing: 0; line-height: .9; }
.beat-copy h1 { font-size: 7rem; }
.beat-copy h2 { max-width: 40rem; font-size: 5rem; }
.beat-copy > p:last-child { margin: 1.5rem 0 0; font-size: 1.5rem; line-height: 1.35; }
.passage-progress { position: absolute; right: 1.5rem; bottom: 1.5rem; display: flex; gap: .45rem; }
.passage-progress span { width: .55rem; height: .55rem; border: 1px solid var(--white); border-radius: 50%; opacity: .55; }
.passage-progress span.active { background: var(--white); opacity: 1; }

.field { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(22rem, .75fr); min-height: 100svh; background: var(--paper); color: var(--ink); }
.field-media { min-width: 0; min-height: 44rem; overflow: hidden; }
.field-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; transition: transform .6s ease, object-position .6s ease; }
.field-interface { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 5rem 3rem; border-left: 1px solid rgba(21, 24, 23, .2); }
.section-number { margin: 0 0 2rem; color: var(--red); font-size: .72rem; font-weight: 700; }
.field h2, .life h2, .closing h2 { margin: 0; font-size: 4rem; line-height: .95; letter-spacing: 0; }
.field-intro { margin: 1.5rem 0 2.5rem; color: #505450; font-size: 1.05rem; }
.object-picker { display: flex; gap: .75rem; }
.object-picker button { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; flex: 0 0 3.25rem; border: 1px solid #9e9b92; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.35rem; }
.object-picker button:hover, .object-picker button:focus-visible, .object-picker button.active { border-color: var(--red); background: var(--red); color: var(--white); }
.object-answer { min-height: 7.5rem; margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(21, 24, 23, .28); }
.object-answer span, .object-answer strong { display: block; }
.object-answer span { color: var(--red); font-size: .72rem; font-weight: 700; }
.object-answer strong { max-width: 24rem; margin-top: .6rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 400; line-height: 1.25; }

.life { padding: 7rem max(1.25rem, calc((100% - 74rem) / 2)); background: var(--sky); color: var(--ink); }
.life-heading { display: grid; grid-template-columns: 5rem 1fr; align-items: end; border-bottom: 1px solid rgba(21, 24, 23, .4); padding-bottom: 3rem; }
.life-heading .section-number { grid-row: 1 / 3; margin: 0; align-self: start; color: var(--red); }
.life-heading > p:last-child { margin: 1rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; }
.life-workbench { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5rem; align-items: center; padding: 5rem 0; }
.life-controls { min-width: 0; }
.life-controls label { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0 .6rem; font-size: .85rem; font-weight: 700; }
.life-controls output { color: #4f3b14; text-align: right; }
.life-controls input { width: 100%; height: 1.5rem; accent-color: var(--red); cursor: ew-resize; }
.life-controls details { margin-top: 2rem; border-top: 1px solid rgba(21, 24, 23, .35); }
.life-controls summary { padding: 1rem 0; cursor: pointer; font-size: .78rem; font-weight: 700; }
.life-controls details p { max-width: 36rem; margin: 0 0 1.5rem; color: #304b48; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.55; }
.life-balance { margin: 0; min-width: 0; }
.balance-stage { position: relative; height: 18rem; }
.balance-beam { position: absolute; left: 5%; right: 5%; top: 8.5rem; height: .65rem; border-radius: .35rem; background: var(--ink); transform: rotate(var(--balance-tilt, 0deg)); transform-origin: center; transition: transform .45s ease; }
.balance-beam::before, .balance-beam::after { content: ""; position: absolute; bottom: 0; width: 1px; height: 6rem; background: var(--ink); }
.balance-beam::before { left: 12%; }
.balance-beam::after { right: 12%; }
.weight { position: absolute; bottom: -5.7rem; display: grid; place-items: center; width: 8.5rem; min-height: 5.2rem; padding: .7rem; border: 2px solid var(--ink); background: var(--paper); text-align: center; }
.time-weight { left: 0; }
.money-weight { right: 0; background: var(--red); color: var(--white); }
.weight b, .weight small { display: block; }
.weight b { font-size: 1.35rem; }
.weight small { margin-top: .2rem; font-size: .68rem; }
.balance-fulcrum { position: absolute; left: 50%; bottom: 2.2rem; width: 0; height: 0; border-left: 3.6rem solid transparent; border-right: 3.6rem solid transparent; border-bottom: 7rem solid var(--green); transform: translateX(-50%); }
.life-balance figcaption { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: baseline; margin-top: 1rem; border-top: 1px solid rgba(21, 24, 23, .4); padding-top: 2rem; }
.life-balance figcaption strong { color: var(--red); font-size: 4.2rem; line-height: 1; }
.life-balance figcaption span { max-width: 18rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.neutral-line { margin: 0; border-top: 1px solid rgba(21, 24, 23, .4); padding-top: 1.25rem; font-size: .75rem; font-weight: 700; }

.closing { position: relative; min-height: 92svh; display: grid; place-items: center; overflow: hidden; color: var(--white); }
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 38% center; transform: scale(1.04); }
.closing-shade { position: absolute; inset: 0; background: rgba(10, 12, 11, .52); }
.closing-copy { position: relative; z-index: 1; width: min(74rem, calc(100% - 2.5rem)); text-align: center; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.closing-copy > p { margin: 0 0 1.5rem; color: var(--sky); font-size: .75rem; font-weight: 700; }
.closing h2 { font-size: 5.5rem; }
.closing a { display: inline-flex; gap: .7rem; align-items: center; margin-top: 3rem; border-bottom: 1px solid currentColor; padding: .4rem 0; font-size: .8rem; font-weight: 700; text-decoration: none; }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem max(1.25rem, calc((100% - 74rem) / 2)); border-top: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: .68rem; font-weight: 700; }

@media (max-width: 900px) {
  .beat-copy h1 { font-size: 5.5rem; }
  .beat-copy h2 { font-size: 4rem; }
  .field { grid-template-columns: 1fr; }
  .field-media { min-height: 62svh; }
  .field-interface { padding: 4rem 1.5rem; border-left: 0; border-top: 1px solid rgba(21, 24, 23, .2); }
  .life-workbench { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 620px) {
  .topbar { grid-template-columns: 1fr auto 1fr; height: 3.6rem; padding: 0 .9rem; }
  .back-link span:last-child { display: none; }
  .beat { padding: 5.5rem 1rem 4rem; }
  .beat-copy { padding-bottom: 1rem; }
  .beat-copy h1 { font-size: 4.5rem; }
  .beat-copy h2 { font-size: 3.35rem; }
  .beat-copy > p:last-child { font-size: 1.18rem; }
  .passage-shade { background: linear-gradient(0deg, rgba(10, 12, 11, .82), rgba(10, 12, 11, .06) 76%); }
  .passage-progress { right: 1rem; bottom: 1rem; }
  .field-media { min-height: 52svh; }
  .field-media img { object-position: 58% center; }
  .field h2, .life h2 { font-size: 3rem; }
  .field-interface { padding: 3.5rem 1rem; }
  .object-answer strong { font-size: 1.4rem; }
  .life { padding: 5rem 1rem; }
  .life-heading { grid-template-columns: 2.5rem 1fr; padding-bottom: 2rem; }
  .life-heading > p:last-child { font-size: 1.25rem; }
  .life-workbench { padding: 2rem 0 3rem; }
  .life-controls label { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .life-controls output { text-align: left; }
  .balance-stage { height: 15rem; }
  .weight { width: 7.2rem; }
  .life-balance figcaption { grid-template-columns: 1fr; }
  .life-balance figcaption strong { font-size: 3.2rem; }
  .closing { min-height: 78svh; }
  .closing h2 { font-size: 3.25rem; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body.motion-paused *, body.motion-paused *::before, body.motion-paused *::after { transition-duration: .001ms !important; }
