@font-face {
  font-family: Inter;
  src: url("assets/inter.woff") format("woff");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font: 16px/1.55 Inter, Arial, sans-serif;
  --base: #f5f1e9;
  --surface: #faf7f1;
  --nav: #f9f6f0ec;
  --ink: #191e1e;
  --muted: #555c54;
  --line: #d7d1c6;
  --accent: #8d4b31;
  --cta: #1e2825;
  --cta-ink: #fff8ef;
  --instrument: #111a19;
  --plot-paper: #111a19;
  --plot-grid: #263634;
  --plot-label: #a6b8ad;
  --price: #91afa2;
  --median: #eabd95;
  --quiet: #5b7367;
}

[data-concept="studio"] {
  color-scheme: dark;
  --base: #0c1313;
  --surface: #131e1e;
  --nav: #0d1615ee;
  --ink: #f6f3ea;
  --muted: #acbcb3;
  --line: #2d3c38;
  --accent: #efb992;
  --cta: #edbc96;
  --cta-ink: #241913;
  --instrument: #101b1d;
  --plot-paper: #101b1d;
  --plot-grid: #263a3c;
  --price: #7aa597;
  --quiet: #4e6b6a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--base); color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
.shell { width: min(1320px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; top: 4px; left: 10px; background: var(--surface); padding: 10px; z-index: 10; transform: translateY(-130%); }
.skip:focus { transform: none; }
.site-header { position: sticky; z-index: 4; top: 0; background: var(--nav); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav-row { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.wordmark { width: fit-content; display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 760; letter-spacing: -.066em; }
.mark { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--accent); font-family: Georgia, serif; font-size: 20px; font-weight: 700; letter-spacing: -.1em; padding-right: 2px; }
.nav-row nav { display: flex; align-items: center; gap: clamp(16px, 2.7vw, 41px); }
.nav-row nav a { color: var(--muted); font-size: 13px; font-weight: 610; }
.nav-row nav a:hover { color: var(--ink); }
.member-nav { justify-self: end; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 670; min-height: 39px; }
.member-nav:hover { border-color: var(--accent); }
.member-nav span, .underlink span { margin-left: 5px; color: var(--accent); }

.hero { overflow: clip; background: radial-gradient(ellipse at 76% 48%, #e8ded068 0%, transparent 65%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 85px); align-items: center; padding-block: clamp(72px, 9vw, 145px); }
.kicker { color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 15px 0 23px; font: 500 clamp(52px, 6vw, 96px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.074em; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.lede { max-width: 39ch; color: var(--muted); font-size: clamp(16px, 1.45vw, 20px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 19px; margin-top: 25px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; border: 1px solid transparent; border-radius: 9px; padding: 12px 17px; min-height: 48px; white-space: normal; font-size: 13px; line-height: 1.25; font-weight: 700; text-align: left; cursor: pointer; }
.button.primary { background: var(--cta); color: var(--cta-ink); }
.button.primary:hover { filter: brightness(.88); }
.underlink { width: fit-content; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 4px 0; text-align: left; cursor: pointer; font-size: 13px; font-weight: 700; }
.underlink:hover { border-color: var(--accent); }
.instrument { min-width: 0; border: 1px solid #354945; background: var(--instrument); color: #f4f3e9; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px #141e1b32, 0 5px 15px #15192318; }
.instrument-title, .instrument-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 17px; }
.instrument-title { min-height: 67px; border-bottom: 1px solid #2b3a37; }
.instrument-label { display: flex; align-items: center; gap: 10px; }
.instrument-label strong { display: block; font-weight: 700; font-size: 14px; line-height: 1.2; }
.instrument-label strong span { color: #a9b9b0; }
.instrument-label small { display: block; margin-top: 4px; color: #b4c3ba; font-size: 10px; font-weight: 540; }
.chart-mark { width: 34px; height: 34px; flex: 0 0 34px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 7px; background: #243531; }
.chart-mark i { width: 2px; background: #a8c7b7; height: 6px; }
.chart-mark i:nth-child(2n) { height: 11px; }
.chart-mark i:last-child { height: 16px; background: #edb990; }
.scale-control { display: flex; flex-shrink: 0; gap: 3px; border: 1px solid #435753; background: #182624; border-radius: 8px; padding: 3px; }
.scale-control button { color: #c4d1c7; background: transparent; border: 0; min-height: 34px; min-width: 56px; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 680; }
.scale-control button[aria-pressed="true"] { background: #e9b994; color: #221915; }
.scale-control button:hover:not([aria-pressed="true"]) { background: #314542; }
.instrument-main { min-width: 0; }
.chart-readout { padding: 17px 19px 0; }
.case-label { color: #dbc0a5; font-weight: 680; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.chart-readout strong { font-size: clamp(24px, 3vw, 38px); letter-spacing: -.055em; font-weight: 720; display: inline-block; line-height: 1.35; font-variant-numeric: tabular-nums; }
.chart-readout time { display: inline-block; margin-left: 10px; color: #b9c7be; font-size: 11px; }
#case-explainer { color: #b9c7be; font-size: 11px; }
.plot { height: clamp(190px, 20vw, 284px); }
.plot canvas { display: block; width: 100%; height: 100%; }
.instrument-foot { border-top: 1px solid #2b3a37; color: #c4d0c7; font-size: 10px; min-height: 44px; }
.instrument-foot p { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.instrument-foot p i { width: 12px; height: 2px; display: inline-block; background: #eabd95; }
.instrument-foot a { font-weight: 660; color: #efc7a8; flex-shrink: 0; }
.instrument-foot a:hover { text-decoration: underline; }

[data-concept="studio"] .hero { background: radial-gradient(ellipse at 53% 65%, #183431 0%, #0c1313 70%); }
[data-concept="studio"] .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 46px; padding-block: clamp(48px, 5.5vw, 91px) clamp(58px, 7vw, 108px); }
[data-concept="studio"] .hero-copy { text-align: center; }
[data-concept="studio"] .hero h1 { font: 710 clamp(50px, 7vw, 100px)/.96 Inter, sans-serif; letter-spacing: -.09em; margin-block: 17px; }
[data-concept="studio"] .hero h1 em { color: #d6c1a9; font-style: normal; font-weight: inherit; }
[data-concept="studio"] .lede { margin-inline: auto; max-width: 50ch; }
[data-concept="studio"] .actions { justify-content: center; }
[data-concept="studio"] .instrument { width: min(100%, 1120px); margin-inline: auto; box-shadow: 0 34px 105px #0008; }
[data-concept="studio"] .instrument-title, [data-concept="studio"] .instrument-foot { padding-inline: 23px; }
[data-concept="studio"] .instrument-main { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
[data-concept="studio"] .chart-readout { padding: 31px 17px 22px 23px; border-right: 1px solid #2b3a37; background: #151f21; }
[data-concept="studio"] .chart-readout time { display: block; margin: 2px 0 15px; }
[data-concept="studio"] .chart-readout strong { font-size: 31px; }
[data-concept="studio"] .plot { height: clamp(240px, 27vw, 400px); }

.library { padding-block: clamp(56px, 7.5vw, 112px); }
.library h2, .member-section h2, dialog h2 { font: 500 clamp(33px, 4.3vw, 63px)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.058em; }
[data-concept="studio"] .library h2, [data-concept="studio"] .member-section h2, [data-concept="studio"] dialog h2 { font-family: Inter, sans-serif; font-weight: 710; letter-spacing: -.067em; }
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 25px; }
.area { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3.25vw, 44px); min-height: 290px; }
.area h3 { font-size: clamp(23px, 3vw, 38px); line-height: 1.06; letter-spacing: -.06em; margin: 13px 0 10px; }
.area-lede { color: var(--muted); line-height: 1.55; max-width: 44ch; font-size: 14px; }
.brief-preview { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; padding: 13px 0 8px; margin-top: 16px; border-top: 1px solid var(--line); }
.brief-preview dt { font-size: 11px; color: var(--muted); }
.brief-preview dd { font-weight: 670; font-size: 13px; }
.lesson-list { padding: 0; margin: 15px 0 0; list-style: none; }
.lesson-list li { border-top: 1px solid var(--line); }
.lesson-list a { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 650; padding: 5px 0; }
.lesson-list a span { color: var(--accent); }
.lesson-list a:hover { color: var(--accent); }
.anchor-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 15px 0 6px; font-size: 11px; color: var(--muted); }
.anchor-list b { display: inline-grid; min-width: 23px; min-height: 23px; margin-right: 4px; place-items: center; color: var(--accent); border: 1px solid var(--line); border-radius: 50%; font-size: 11px; }
.area.collective { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .83fr); gap: 14px; align-items: center; }
.area.collective img { width: 100%; height: 100%; max-height: 187px; border-radius: 8px; object-fit: cover; object-position: 67% center; }
.collective .underlink { margin-top: 10px; }

.member-section { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(24px, 4.2vw, 54px); }
.member-section h2 { margin: 10px 0 12px; }
.member-copy > p:last-child { color: var(--muted); font-size: 14px; max-width: 54ch; }
.member-section .actions { margin: 0; flex-shrink: 0; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding-block: 28px; color: var(--muted); }
.footer p, .footer > a:last-child { font-size: 12px; }
.footer > a:last-child:hover { color: var(--accent); }
.footer .wordmark { color: var(--ink); font-size: 18px; }
.footer .mark { width: 25px; height: 25px; }
dialog { padding: clamp(20px, 4vw, 46px); color: var(--ink); background: var(--surface); width: min(580px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 22px 75px #0006; }
dialog::backdrop { background: #091814a8; }
dialog h2 { font-size: clamp(32px, 4.2vw, 49px); margin: 11px 35px 8px 0; }
.brief-source { color: var(--muted); font-size: 12px; }
.brief-full { margin-block: 20px; }
.brief-full div { border-top: 1px solid var(--line); padding-block: 10px; }
.brief-full dt { font-size: 13px; font-weight: 700; }
.brief-full dd { color: var(--muted); font-size: 13px; }
.close { position: absolute; top: 13px; right: 13px; border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; color: var(--ink); background: transparent; cursor: pointer; font-size: 24px; line-height: 1; }
.close:hover { border-color: var(--accent); }

@media (max-width: 1050px) {
  .shell { width: min(1320px, calc(100% - 64px)); }
  .hero h1 { font-size: clamp(47px, 6.3vw, 74px); }
  .hero-inner { gap: 29px; }
  .area.collective { grid-template-columns: minmax(0, 1fr); }
  .area.collective img { max-height: 143px; }
  .member-section { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 34px); }
  .nav-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 0; gap: 5px 10px; padding-block: 9px 5px; }
  .nav-row nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 7px; width: 100%; }
  .nav-row nav a { display: flex; align-items: center; font-size: 11.5px; min-height: 35px; }
  .wordmark { font-size: 21px; gap: 7px; }
  .mark { width: 27px; height: 27px; }
  .member-nav { grid-column: 2; grid-row: 1; min-height: 37px; padding: 7px 11px; font-size: 12px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 33px; padding-block: 50px; }
  .hero-break { display: none; }
  .hero h1 { font-size: clamp(46px, 10.75vw, 78px); max-width: 13ch; }
  .lede { font-size: 16px; }
  .chart-readout { padding: 13px 13px 0; }
  .instrument-title, .instrument-foot { padding-inline: 11px; }
  .instrument-foot { gap: 5px; font-size: 9px; }
  .instrument-foot p i { width: 8px; }
  .plot { height: clamp(177px, 46vw, 290px); }
  [data-concept="studio"] .hero-inner { gap: 32px; padding-block: 51px; }
  [data-concept="studio"] .hero h1 { font-size: clamp(43px, 10vw, 70px); margin-inline: auto; }
  [data-concept="studio"] .instrument-title, [data-concept="studio"] .instrument-foot { padding-inline: 11px; }
  [data-concept="studio"] .instrument-main { display: block; }
  [data-concept="studio"] .chart-readout { padding: 13px 13px 0; border-right: none; background: none; }
  [data-concept="studio"] .chart-readout time { display: inline-block; margin: 0 0 0 6px; }
  [data-concept="studio"] .chart-readout strong { font-size: 27px; }
  [data-concept="studio"] .plot { height: clamp(177px, 46vw, 290px); }
  .areas { grid-template-columns: 1fr; gap: 11px; margin-top: 19px; }
  .area { min-height: auto; }
  .library { padding-block: 46px; }
  .member-section .actions { width: 100%; }
}
@media (max-width: 370px) {
  .shell { width: calc(100% - 24px); }
  .instrument-foot p span { display: none; }
  .scale-control button { min-width: 47px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


.nav-row nav a, .member-nav { touch-action: manipulation; }
@media (max-width: 760px) {
  html { scroll-padding-top: 105px; }
  .nav-row nav a { min-height: 38px; }
}
