:root {
  --ink: #263b35;
  --ink-2: #3f5a51;
  --forest: #35564b;
  --forest-deep: #203c34;
  --berry: #be5877;
  --berry-dark: #7c3f59;
  --raspberry: #e8869e;
  --label-light: #60776e;
  --body-muted: #536b62;
  --sage: #9fcab0;
  --mint: #dcefe1;
  --mint-strong: #b8dfc6;
  --lilac: #e9e0f5;
  --gold: #f0c766;
  --cream: #fff9e9;
  --paper: #f7f1df;
  --paper-2: #eee4cc;
  --white: #fffdf6;
  --glass: rgba(255, 253, 246, .82);
  --line: rgba(38, 59, 53, .19);
  --line-strong: rgba(38, 59, 53, .36);
  --shadow: 0 24px 70px rgba(60, 71, 48, .16);
  --shadow-small: 0 12px 32px rgba(60, 71, 48, .12);
  --display: "Trebuchet MS", ui-rounded, system-ui, sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --companion-preview-bg: #35564b;
  --companion-preview-border: rgba(240, 199, 102, .8);
  --companion-preview-color: #fffdf6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(240, 199, 102, .28), transparent 24rem),
    radial-gradient(circle at 92% 24%, rgba(190, 88, 119, .14), transparent 26rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 14px; color: var(--white); background: var(--forest-deep); border-radius: 99px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.skip-link--atlas { left: 12px; }

.hero { position: relative; min-height: 94vh; overflow: hidden; color: var(--ink); background: #dcedcc; }
.hero__art, .hero__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__art { object-fit: cover; object-position: center; filter: saturate(1.02) contrast(1.01); }
.hero__veil {
  background:
    linear-gradient(90deg, rgba(255,249,233,.98) 0%, rgba(255,249,233,.91) 32%, rgba(255,249,233,.28) 58%, transparent 78%),
    linear-gradient(0deg, rgba(38,59,53,.2), transparent 34%);
}
.topbar { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 20px 0; border-bottom: 1px solid rgba(38,59,53,.24); }
.wordmark { padding: 8px 12px; color: var(--ink); background: rgba(255,253,246,.68); border: 1px solid var(--line); border-radius: 99px; font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; backdrop-filter: blur(12px); }
.wordmark::before { content: "←"; margin-right: 9px; color: var(--berry); }
.preview-pill { padding: 8px 13px; color: var(--ink); background: rgba(255,253,246,.72); border: 1px solid var(--line); border-radius: 99px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(12px); }
.hero__content { position: relative; z-index: 2; display: flex; min-height: calc(94vh - 90px); width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 68px 0 98px; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero__content::before { content: ""; position: absolute; z-index: -1; inset: 42px auto 62px -34px; width: min(720px, 65vw); background: rgba(255,253,246,.61); border: 1px solid rgba(38,59,53,.22); border-radius: 30px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.eyebrow, .section-kicker { margin: 0 0 15px; color: var(--berry-dark); font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: var(--berry-dark); }
.hero h1 { max-width: 670px; margin: 0; font-family: var(--display); font-size: clamp(3.8rem, 7.2vw, 7.2rem); font-weight: 900; letter-spacing: -.065em; line-height: .86; text-wrap: balance; }
.hero h1 em { color: var(--berry); font-style: normal; font-weight: 900; text-shadow: 0 2px 0 rgba(255,255,255,.8); }
.hero__lede { max-width: 590px; margin: 30px 0 0; color: var(--ink-2); font-size: clamp(.98rem, 1.35vw, 1.14rem); line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; min-height: 48px; padding: 0 20px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 99px; font-size: .73rem; font-weight: 900; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-small); }
.button--primary { color: #3b2a0e; background: var(--gold); border-color: rgba(90,63,18,.26); }
.button--ghost { color: var(--ink); background: rgba(255,253,246,.76); border-color: var(--line-strong); }
.button--small { min-height: 40px; padding: 0 15px; color: var(--white); background: var(--forest); }
.hero__stats { display: flex; flex-wrap: wrap; margin: 40px 0 0; }
.hero__stats div { min-width: 125px; padding: 0 24px; border-left: 1px solid var(--line-strong); }
.hero__stats div:first-child { padding-left: 0; border-left: 0; }
.hero__stats dt { color: var(--ink); font-family: var(--display); font-size: 2rem; font-weight: 900; line-height: 1; }
.hero__stats dd { margin: 7px 0 0; color: var(--label-light); font-size: .65rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }

.jump-nav { position: relative; z-index: 5; display: flex; width: min(1160px, calc(100% - 48px)); margin: -25px auto 0; overflow-x: auto; color: var(--white); background: rgba(53,86,75,.96); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; box-shadow: var(--shadow); scrollbar-width: thin; }
.jump-nav a { min-width: max-content; padding: 14px 18px; border-right: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.9); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.jump-nav a:hover, .jump-nav a:focus-visible { color: var(--ink); background: var(--gold); }
.noscript-note { width: min(1160px, calc(100% - 48px)); margin: 20px auto 0; padding: 14px 18px; color: var(--body-muted); background: var(--glass); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 12px; font-size: .82rem; }

main { overflow: hidden; }
.section, .panel { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 104px 0; }
.panel { position: relative; z-index: 4; margin-top: -38px; padding: 48px 54px; background: var(--glass); border: 1px solid rgba(38,59,53,.18); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.intro { display: grid; grid-template-columns: .88fr 1.25fr; gap: 72px; }
h2 { margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 900; letter-spacing: -.055em; line-height: .98; }
.intro h2 { max-width: 500px; font-size: clamp(2.4rem, 4.3vw, 4.2rem); }
.intro__copy { columns: 2; column-gap: 36px; color: var(--body-muted); }
.intro__copy p { margin: 0 0 1em; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 72px; margin-bottom: 42px; }
.section-heading > p { max-width: 440px; margin: 0 0 7px; color: var(--body-muted); }
.section-heading--light h2 { color: var(--ink); }
.section-heading--light > p { color: var(--body-muted); }

.course-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.course-card { min-height: 420px; padding: 24px; background: rgba(255,253,246,.62); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-small); }
.course-card__number { color: var(--berry); font-family: var(--display); font-size: 3.4rem; font-weight: 900; line-height: 1; }
.course-card > p:nth-of-type(1) { margin: 18px 0 7px; color: var(--label-light); font-size: .62rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.course-card h3 { margin: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 900; line-height: 1.08; }
.course-card__cards { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0; }
.card-reference { display: inline-flex; min-height: 30px; padding: 5px 9px; align-items: center; color: var(--ink); background: rgba(255,255,255,.52); border: 1px solid var(--line); border-radius: 99px; font-size: .65rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.course-card__summary { color: var(--body-muted); font-size: .81rem; }

.telemetry { padding-top: 48px; }
.telemetry__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-card { min-height: 196px; padding: 25px; display: flex; flex-direction: column; background: rgba(255,253,246,.66); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-small); }
.metric-card--accent { color: var(--ink); background: var(--mint-strong); }
.metric-card span { color: var(--berry-dark); font-size: .7rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.metric-card strong { margin: auto 0 5px; font-family: var(--display); font-size: 4.1rem; font-weight: 900; line-height: .8; }
.metric-card small { color: var(--label-light); line-height: 1.4; }
.data-panels { display: grid; grid-template-columns: .95fr 1.05fr; gap: 12px; margin-top: 12px; }
.data-panel { padding: 29px; background: rgba(255,253,246,.78); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-small); }
.data-panel__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.data-panel h3 { margin: 0; font-family: var(--display); font-size: 1.6rem; font-weight: 900; }
.data-panel__head span { color: var(--label-light); font-size: .66rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.curve { display: flex; height: 240px; align-items: end; justify-content: space-between; gap: 9px; padding-top: 28px; }
.curve__bar { flex: 1; display: flex; height: 100%; flex-direction: column; justify-content: end; align-items: center; gap: 8px; }
.curve__bar i { width: 100%; max-width: 42px; min-height: 5px; background: linear-gradient(180deg, var(--gold), var(--raspberry)); border-radius: 10px 10px 3px 3px; }
.curve__bar b { font-family: var(--display); font-weight: 900; }
.curve__bar span { color: var(--label-light); font-size: .7rem; }
.role-chart { display: grid; gap: 12px; padding-top: 24px; }
.role-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 28px; align-items: center; gap: 14px; font-size: .75rem; }
.role-row__track { height: 9px; overflow: hidden; background: var(--paper-2); border-radius: 99px; }
.role-row__track i { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), var(--mint-strong)); border-radius: inherit; }
.role-row b { text-align: right; }

.engine-room { width: 100%; max-width: none; padding: 104px max(24px, calc((100% - 1160px)/2)); color: var(--ink); background: var(--lilac); }
.engine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.engine-card { padding: 32px; background: rgba(255,253,246,.72); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-small); }
.engine-card:last-child { grid-column: 1 / -1; }
.engine-card__top, .closing-card__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.engine-card__top span, .closing-card__top span { color: var(--berry); font-family: var(--display); font-size: 2.7rem; font-weight: 900; line-height: 1; }
.engine-card__top p, .closing-card__top p { margin: 0; color: var(--berry-dark); font-size: .64rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.engine-card h3, .closing-card h3 { margin: 26px 0 12px; font-family: var(--display); font-size: 2rem; font-weight: 900; }
.engine-card > p { color: var(--body-muted); }
.engine-card__cards, .closing-card__cards { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0; }
.engine-card dl, .closing-card dl { margin: 0; border-top: 1px solid var(--line); }
.engine-card dl div, .closing-card dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.engine-card dt, .closing-card dt { color: var(--berry-dark); font-size: .61rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.engine-card dd, .closing-card dd { margin: 5px 0 0; color: var(--body-muted); font-size: .78rem; }

.fort-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fort-grid article { min-height: 340px; padding: 29px; background: rgba(255,253,246,.62); border: 1px solid var(--line); border-radius: 18px; }
.fort-grid article > span { color: var(--berry-dark); font-size: .64rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.fort-grid h3 { margin: 30px 0 12px; font-family: var(--display); font-size: 2rem; font-weight: 900; }
.fort-grid p { color: var(--body-muted); }
.card-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }

.finishers { width: 100%; max-width: none; padding: 104px max(24px, calc((100% - 1160px)/2)); color: var(--ink); background: #f3d5dd; }
.closing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.closing-card { padding: 31px; background: rgba(255,253,246,.7); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-small); }
.closing-card:nth-child(1) { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(240,199,102,.42), rgba(255,253,246,.78)); }
.hospitality-lab { display: grid; grid-template-columns: .72fr 1.1fr .9fr; gap: 30px; margin-top: 12px; padding: 36px; color: var(--ink); background: var(--glass); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-small); }
.lab-copy h3, .growth-copy h3 { margin: 8px 0 12px; font-family: var(--display); font-size: 2.1rem; font-weight: 900; line-height: 1.05; }
.lab-copy > p:last-child, .growth-copy > p:last-child { color: var(--body-muted); }
.lab-controls, .growth-controls { display: grid; gap: 15px; }
.lab-controls label, .growth-controls label:not(.growth-check) { display: grid; grid-template-columns: 1fr 1.1fr 30px; gap: 11px; align-items: center; font-size: .71rem; font-weight: 800; }
input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--berry); }
.lab-results, .growth-results { display: grid; gap: 8px; }
.lab-results div, .growth-results div { padding: 16px; color: var(--white); background: var(--forest); border-radius: 14px; }
.lab-results span, .lab-results small, .growth-results span, .growth-results small { display: block; }
.lab-results span, .growth-results span { color: var(--gold); font-size: .59rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.lab-results strong, .growth-results strong { font-family: var(--display); font-size: 2.7rem; font-weight: 900; line-height: 1; }
.lab-results small, .growth-results small { color: rgba(255,255,255,.8); font-size: .65rem; }

.growth { width: 100%; max-width: none; padding: 108px max(24px, calc((100% - 1100px)/2)); background: #f6df91; }
.growth__heading { max-width: 800px; margin: 0 auto 44px; text-align: center; }
.growth__heading > p:last-child { color: var(--ink-2); }
.growth-lab { display: grid; grid-template-columns: .72fr 1fr 1fr; gap: 30px; padding: 36px; background: rgba(255,253,246,.68); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-small); }
.growth-check { background: rgba(255,253,246,.5); }
.growth-results { grid-template-columns: 1fr 1fr; }

.temptation { display: grid; grid-template-columns: .8fr 1.2fr; gap: 68px; width: 100%; max-width: none; padding: 104px max(24px, calc((100% - 1160px)/2)); color: var(--ink); background: var(--mint); }
.temptation__intro > p:not(.section-kicker) { color: var(--body-muted); }
.temptation__boundary { margin-top: 28px; padding: 18px; color: var(--ink); background: rgba(255,253,246,.72); border: 1px solid var(--line); border-radius: 14px; font-size: .76rem; font-weight: 750; }
.temptation__detail { align-self: center; }
.temptation__pieces { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.temptation__pieces > div { display: flex; gap: 8px; align-items: stretch; }
.temptation__pieces .card-reference { flex: 1; display: flex; min-height: 92px; padding: 14px; align-items: center; justify-content: center; color: var(--ink); background: rgba(255,253,246,.68); border: 1px solid var(--line); border-radius: 16px; font-family: var(--display); font-weight: 900; text-align: center; cursor: pointer; }
.temptation__pieces b, .temptation__pieces em, .temptation__pieces > span { align-self: center; color: var(--berry-dark); font-size: .67rem; font-style: normal; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.temptation__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: temptation; }
.temptation__steps li { min-height: 130px; padding: 21px; color: var(--body-muted); background: rgba(255,253,246,.66); border: 1px solid var(--line); border-radius: 16px; counter-increment: temptation; }
.temptation__steps li::before { content: "0" counter(temptation); display: block; margin-bottom: 14px; color: var(--berry); font-family: var(--display); font-size: 1.35rem; font-weight: 900; }

.response-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.response-card { min-height: 230px; padding: 22px; background: rgba(255,253,246,.5); border: 1px solid var(--line); border-radius: 16px; }
.response-card h3 { margin: 0 0 18px; font-family: var(--display); font-size: 1.3rem; font-weight: 900; }
.response-card .card-reference { display: block; width: 100%; margin: 4px 0; padding: 4px 0; color: var(--ink-2); background: transparent; border: 0; border-radius: 0; font-size: .74rem; text-align: left; text-decoration: underline; text-decoration-color: rgba(67,90,80,.35); text-underline-offset: 3px; cursor: pointer; }
.response-card .card-reference:hover { color: var(--berry); }

.mulligan { width: 100%; max-width: none; display: grid; grid-template-columns: .72fr 1.28fr; gap: 68px; padding: 104px max(24px, calc((100% - 1160px)/2)); background: #eee6d4; }
.mulligan__copy p, .mulligan__copy li { color: var(--body-muted); }
.mulligan__copy ul { padding-left: 18px; }
.hand-lab { min-width: 0; padding: 25px; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.hand-lab__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.hand-lab__head span { display: block; color: var(--berry-dark); font-size: .64rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hand-lab__head strong { font-family: var(--display); font-size: 1.3rem; font-weight: 900; }
.hand-cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; min-height: 180px; }
.hand-card { min-width: 0; padding: 0; overflow: hidden; color: var(--white); background: var(--forest); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.hand-card img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; }
.hand-card span { display: none; }
#hand-note { margin: 16px 0 0; color: var(--label-light); font-size: .75rem; }

.atlas { width: 100%; max-width: none; padding: 104px max(24px, calc((100% - 1160px)/2)); color: var(--white); background: var(--forest); }
.atlas .section-kicker { color: var(--gold); }
.atlas .section-heading--light h2 { color: var(--white); }
.atlas .section-heading--light > p { color: rgba(255,255,255,.76); }
.atlas__tools { display: grid; grid-template-columns: 1.5fr .8fr auto auto; gap: 10px; align-items: center; }
select, input[type="search"] { width: 100%; min-height: 46px; padding: 0 13px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.check { display: flex; min-height: 46px; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--berry); }
.check span { font-size: .73rem; font-weight: 850; }
.check--compact { color: var(--white); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.atlas__count { margin: 20px 0; color: rgba(255,255,255,.78); font-size: .74rem; }
.card-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.card-tile { position: relative; display: block; width: 100%; min-width: 0; padding: 0; overflow: hidden; color: var(--ink); background: var(--cream); border: 1px solid rgba(255,255,255,.34); border-radius: 15px; box-shadow: 0 10px 24px rgba(18,38,31,.2); cursor: pointer; text-align: left; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-tile:hover { transform: translateY(-5px) rotate(-.35deg); border-color: var(--gold); box-shadow: 0 18px 34px rgba(18,38,31,.28); }
.card-tile img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; object-position: center; background: var(--paper-2); }
.card-tile__body { display: block; padding: 13px; background: rgba(255,249,233,.96); border-top: 1px solid var(--line); }
.card-tile strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--display); font-size: .92rem; font-weight: 900; }
.card-tile small { display: block; margin-top: 5px; color: var(--label-light); font-size: .62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-dot { position: absolute; z-index: 2; top: 10px; right: 10px; width: 13px; height: 13px; background: var(--gold); border: 3px solid var(--forest-deep); border-radius: 50%; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 34px max(24px, calc((100% - 1160px)/2)); color: rgba(255,255,255,.65); background: var(--forest-deep); font-size: .72rem; }
footer strong, footer span { display: block; }
footer strong { color: var(--white); font-family: var(--display); font-size: 1rem; font-weight: 900; }
footer p { margin: 0; text-align: right; }
footer code { color: var(--gold); }

.card-dialog { width: min(920px, calc(100% - 30px)); padding: 0; color: var(--ink); background: var(--paper); border: 1px solid rgba(255,255,255,.5); border-radius: 22px; box-shadow: 0 35px 100px rgba(22,42,35,.42); overflow: hidden; }
.card-dialog::backdrop { background: rgba(32,60,52,.78); backdrop-filter: blur(7px); }
.card-dialog[open] { display: grid; grid-template-columns: .9fr 1.1fr; }
.card-dialog__image { min-height: 0; background: var(--forest-deep); }
.card-dialog__image img { display: block; width: 100%; height: 100%; aspect-ratio: 5 / 7; object-fit: contain; }
.card-dialog__copy { align-self: center; padding: 44px; }
.card-dialog__copy > p:first-child { color: var(--berry-dark); font-size: .64rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.card-dialog h2 { font-size: 2.55rem; }
#dialog-type { color: var(--label-light); font-size: .78rem; }
.dialog-art-note { margin: 8px 0 0; color: var(--berry-dark); font-size: .66rem; font-weight: 800; }
#dialog-oracle { margin-top: 22px; white-space: pre-line; font-family: var(--sans); font-size: 1rem; font-weight: 550; line-height: 1.55; }
#dialog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0; }
#dialog-tags span { padding: 4px 8px; color: var(--ink); border: 1px solid var(--line); border-radius: 99px; font-size: .61rem; font-weight: 800; }
#dialog-link { color: var(--berry-dark); font-size: .71rem; font-weight: 900; text-transform: uppercase; }
.dialog-close { position: absolute; z-index: 2; top: 11px; right: 12px; width: 44px; height: 44px; color: var(--white); background: var(--forest-deep); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.toast { position: fixed; z-index: 50; top: 18px; right: 18px; padding: 12px 16px; color: var(--white); background: var(--forest-deep); border-radius: 99px; box-shadow: var(--shadow); font-size: .76rem; transform: translateY(-160%); transition: transform .25s ease; }
.toast.is-visible { transform: none; }

@media (max-width: 1050px) {
  .course-grid { grid-template-columns: 1fr 1fr; }
  .telemetry__grid { grid-template-columns: 1fr 1fr; }
  .data-panels, .mulligan { grid-template-columns: 1fr; }
  .hospitality-lab { grid-template-columns: 1fr 1fr; }
  .lab-results { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .intro { grid-template-columns: 1fr; gap: 30px; }
  .growth-lab, .temptation { grid-template-columns: 1fr; }
  .growth-results { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero__art { object-position: 57% center; }
  .hero__veil { background: linear-gradient(0deg, rgba(255,249,233,.97) 0%, rgba(255,249,233,.86) 55%, rgba(255,249,233,.18) 100%); }
  .topbar, .hero__content, .section, .panel { width: min(100% - 28px, 1160px); }
  .jump-nav { width: calc(100% - 28px); }
  .preview-pill { display: none; }
  .hero__content { min-height: 0; padding: 170px 0 72px; justify-content: end; }
  .hero__content::before { inset: 138px -12px 26px -12px; width: auto; border-radius: 24px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.3rem); overflow-wrap: break-word; }
  .hero__lede { max-width: 100%; }
  .hero__stats div { min-width: 50%; margin-bottom: 20px; padding-left: 18px; }
  .hero__stats div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .panel { margin-top: -22px; padding: 34px 23px; }
  .intro__copy { columns: 1; }
  .section { padding-top: 76px; padding-bottom: 76px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading > p { margin-top: 18px; }
  .course-grid, .engine-grid, .closing-grid, .fort-grid { grid-template-columns: 1fr; }
  .engine-card:last-child, .closing-card:nth-child(1) { grid-column: auto; }
  .course-card { min-height: 0; }
  .telemetry__grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 158px; padding: 20px; }
  .metric-card strong { font-size: 3.2rem; }
  .data-panels { display: block; }
  .data-panel + .data-panel { margin-top: 12px; }
  .role-row { grid-template-columns: 1fr 1.3fr 24px; }
  .engine-room, .finishers, .growth, .temptation, .mulligan, .atlas { padding-left: 14px; padding-right: 14px; }
  .engine-card, .closing-card { padding: 24px; }
  .hospitality-lab, .growth-lab { grid-template-columns: 1fr; padding: 24px; }
  .lab-results { grid-column: auto; grid-template-columns: 1fr; }
  .lab-controls label, .growth-controls label:not(.growth-check) { grid-template-columns: 1fr; }
  .growth-results { grid-template-columns: 1fr 1fr; }
  .temptation { gap: 36px; }
  .temptation__pieces { grid-template-columns: 1fr; }
  .temptation__pieces > span { justify-self: center; }
  .temptation__steps { grid-template-columns: 1fr; }
  .response-grid { grid-template-columns: 1fr 1fr; }
  .hand-lab { padding: 18px; }
  .hand-cards { overflow-x: auto; grid-template-columns: repeat(7, 78px); }
  .hand-lab__head { align-items: start; }
  .atlas__tools { grid-template-columns: 1fr 1fr; }
  .search { grid-column: 1 / -1; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-dialog[open] { display: block; max-height: 90vh; overflow: auto; }
  .card-dialog__image { height: 430px; }
  .card-dialog__copy { padding: 28px; }
  footer { display: block; }
  footer p { margin-top: 14px; text-align: left; }
}

@media (pointer: coarse) {
  .card-reference { min-height: 44px; padding: 9px 12px; }
  .response-card .card-reference { min-height: 44px; padding: 10px 0; }
  input[type="range"] { min-height: 44px; }
  .button--small, .jump-nav a { min-height: 44px; }
}

@media (max-width: 430px) {
  .hero__actions .button { width: 100%; }
  .telemetry__grid, .response-grid { grid-template-columns: 1fr; }
  .atlas__tools { grid-template-columns: 1fr; }
  .search { grid-column: auto; }
  .card-grid { gap: 8px; }
  .card-tile__body { padding: 10px; }
  .card-tile strong { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
