:root {
  --ink: #191917;
  --muted-dark: #55504a;
  --paper: #f5f1e9;
  --light: #fffaf0;
  --accent: #ff783e;
  --accent-deep: #a83813;
  --line: #d8cfc3;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  color: var(--ink);
  background: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ul, fieldset { margin: 0; }
img { display: block; max-width: 100%; }
svg { display: block; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #a83813; outline-offset: 4px; }
.dark :focus-visible, .masthead :focus-visible { outline-color: #ffad89; }
section, article { scroll-margin-top: 2rem; }
.wrap { width: min(100% - 104px, 1280px); margin-inline: auto; }
.dark { background: var(--ink); color: var(--light); }
.paper { background: var(--paper); }
.skip { position: absolute; z-index: 5; left: 1rem; top: 1rem; transform: translateY(-150%); padding: .7rem 1rem; background: var(--light); }
.skip:focus { transform: none; }

.masthead { background: var(--ink); color: var(--light); border-bottom: 1px solid #38332f; }
.masthead-inner { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-weight: 720; font-size: .91rem; letter-spacing: .035em; }
.brand svg { width: 30px; height: 30px; color: var(--accent); }
.brand strong { color: var(--accent); }
nav { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); }
nav a { text-decoration: none; color: #e5ded4; font-size: .92rem; font-weight: 600; }
nav a:hover, .hero-link:hover { color: var(--accent); }
.button { min-height: 53px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; width: fit-content; padding: 12px 18px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-weight: 700; font-size: .92rem; line-height: 1.25; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.button svg, .hero-link svg, .text-button svg, .icon-button svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button-small { min-height: 42px; padding: 8px 13px; gap: 12px; font-size: .84rem; }
.button-small svg { width: 16px; height: 16px; }
.button-accent { background: var(--accent); color: var(--ink); }
.button-accent:hover { background: #ff9c71; }
.button-outline { color: inherit; background: transparent; border-color: currentColor; }
.button-outline:hover { color: var(--accent-deep); background: #f3e7d8; }
.masthead .button-outline { border-color: #6c6058; }
.masthead .button-outline:hover { border-color: var(--accent); background: #2e241e; color: var(--accent); }
.button-dark { background: var(--ink); color: var(--light); }
.button-dark:hover { background: #3d332d; }
.kicker { font: 650 .72rem/1.35 var(--mono); letter-spacing: .145em; }
.indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
.slash { height: 11px; width: 3px; display: inline-block; flex: none; background: currentColor; transform: skew(-23deg); }
.section-kicker { display: flex; align-items: center; gap: 10px; color: var(--accent-deep); }

.hero { background: radial-gradient(ellipse at 71% 48%, #271e19, transparent 64%), var(--ink); }
.hero-inner { display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; gap: clamp(26px, 4.25vw, 65px); padding-block: 67px 64px; }
.hero-kicker { display: flex; align-items: center; gap: 11px; color: #ffad89; margin-bottom: 28px; }
h1, h2, .path-card h3, #result-title { font-family: var(--serif); font-weight: 400; letter-spacing: -.062em; }
h1 { font-size: clamp(3.35rem, 6.45vw, 6.6rem); line-height: .99; white-space: nowrap; }
h1 em { color: var(--accent); font-weight: 400; }
.hero-intro { color: #dfd7cb; font-size: clamp(1.02rem, 1.5vw, 1.24rem); line-height: 1.55; margin-top: 27px; max-width: 28em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; margin-top: 30px; }
.hero-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #f4e9df; font-weight: 650; font-size: .9rem; text-underline-offset: 4px; text-decoration-color: #78675a; }
.hero-link svg { width: 15px; height: 15px; }
.hero-figure {
  padding: clamp(22px, 4vw, 58px);
  border: 1px solid #725045;
  border-top: 3px solid var(--accent);
  background: linear-gradient(150deg, #38261f, #211d1a 80%);
}
.hero-figure figcaption { color: #ffad89; }
.hero-situation { margin-top: 14px; color: #efdbcf; line-height: 1.5; }
.hero-figure blockquote {
  margin: 21px 0;
  color: var(--light);
  font: 400 clamp(1.65rem, 3.2vw, 3.25rem)/1.13 var(--serif);
  letter-spacing: -.035em;
}
.hero-reflection { padding-top: 16px; border-top: 1px solid #725045; color: #efdbcf; line-height: 1.5; }
.belief { background: #f0d9c9; }
.belief-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px clamp(28px, 6vw, 84px);
  align-items: center;
  padding-block: clamp(38px, 6vw, 80px);
}
.belief h2 { font-size: clamp(2.25rem, 4.1vw, 3.8rem); line-height: 1.04; }
.belief p { max-width: 35em; color: #45332c; font-size: 1.06rem; line-height: 1.65; }
.skills { display: flex; align-items: center; gap: 28px; min-height: 70px; border-top: 1px solid #4b4036; }
.skills > span { color: #ffad89; font: 650 .69rem/1.2 var(--mono); letter-spacing: .16em; white-space: nowrap; }
.skills ul { display: flex; align-items: center; gap: 24px 36px; padding: 0; list-style: none; }
.skills li { color: #e5dbd0; font-size: .86rem; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 12px; }
.skills li::before { content: ""; height: 5px; width: 5px; border: 1px solid var(--accent); transform: rotate(45deg); }

.offerings, .practice { padding-block: 77px 88px; }
h2 { font-size: clamp(2.8rem, 5.8vw, 5rem); line-height: .98; }
.section-lead { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: 17px; margin-bottom: 32px; }
.section-lead > p, .practice-intro { color: var(--muted-dark); line-height: 1.6; font-size: 1.05rem; max-width: 24em; }
.section-lead > p { margin: 0 4% 5px 0; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.path-card { border: 1px solid #d9cfc1; background: #fcf8f0; padding: clamp(24px, 3.2vw, 42px); display: flex; flex-direction: column; }
.training-card { background: #eee5d8; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tile-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 4px; border: 1px solid #dcb39f; background: #fae5d7; color: #a43815; flex: none; }
.tile-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.card-label { font: 650 .68rem/1.4 var(--mono); letter-spacing: .105em; color: var(--muted-dark); text-align: right; }
.path-card h3 { font-size: clamp(2.1rem, 3.65vw, 3.6rem); line-height: 1.06; margin: 25px 0 11px; }
.path-card > p { line-height: 1.57; color: var(--muted-dark); max-width: 30em; margin-bottom: 23px; }
.card-bottom { border-top: 1px solid #d8ccc0; margin-top: auto; padding-top: 19px; }
.card-note { font-size: .9rem; line-height: 1.4; margin-bottom: 15px; color: #473e36; }

.finder { padding-block: 83px; }
.finder-grid { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(30px, 7vw, 102px); align-items: start; }
.finder-intro { padding-top: 17px; }
.finder-intro .kicker { display: flex; align-items: center; gap: 10px; color: #ffad89; }
.finder h2 { margin-top: 18px; }
.finder-intro > p:last-child { color: #e1d8cb; line-height: 1.6; font-size: 1.06rem; max-width: 23em; margin-top: 18px; }
.finder-panel { background: #25221f; border: 1px solid #50443a; min-height: 395px; padding: clamp(21px, 3.05vw, 39px); display: flex; flex-direction: column; justify-content: center; }
.finder-top { display: flex; justify-content: space-between; align-items: center; color: #ffad89; margin-bottom: 16px; }
.progress { display: flex; gap: 4px; }
.progress span { height: 3px; width: 26px; background: var(--accent); }
.progress span:nth-child(2):not(.active) { background: #66574c; }
fieldset { min-inline-size: 0; padding: 0; border: 0; }
legend { font-size: clamp(1.23rem, 2.5vw, 1.64rem); font-weight: 650; padding: 0; margin-bottom: 15px; line-height: 1.22; }
.choice { display: flex; gap: 11px; align-items: center; padding: 10px 12px; min-height: 54px; border: 1px solid #66574c; margin-bottom: 7px; border-radius: 4px; cursor: pointer; }
.choice:hover, .choice:has(input:checked) { border-color: #ffad89; background: #3b2a21; }
.choice input { margin: 0; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.choice strong, .choice small { display: block; line-height: 1.32; }
.choice strong { font-size: .9rem; }
.choice small { font-size: .78rem; color: #ddcfc1; margin-top: 2px; }
.finder-actions, .result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 14px; }
.finder-actions { justify-content: space-between; }
.finder-actions .button { margin-left: auto; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; min-height: 40px; font-size: .91rem; font-weight: 700; color: inherit; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--accent-deep); }
.dark .text-button:hover { color: var(--accent); }
.result-kicker { display: flex; gap: 9px; align-items: center; color: #ffad89; margin-bottom: 15px; }
#result-title { font-size: clamp(2.45rem, 4.5vw, 4rem); line-height: 1.01; }
#result-copy { color: #e6d9cd; line-height: 1.6; margin: 14px 0 22px; }

.practice-grid { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(30px, 7vw, 102px); align-items: start; }
.practice h2 { margin-top: 16px; }
.practice-intro { margin-top: 18px; }
.examples { border-top: 1px solid #cfc3b5; }
details { border-bottom: 1px solid #cfc3b5; }
summary { list-style: none; display: grid; grid-template-columns: 27px 1fr 22px; align-items: center; gap: 12px; padding: 17px 2px; cursor: pointer; min-height: 62px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent-deep); }
summary svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; }
details[open] summary svg { transform: rotate(45deg); }
.example-number { font: 650 .72rem/1.3 var(--mono); color: var(--accent-deep); }
.example-body { margin: 0 24px 20px 39px; color: var(--muted-dark); font-size: .95rem; line-height: 1.56; }
.example-body blockquote { margin: 11px 0 0; padding: 11px 0 11px 14px; border-left: 2px solid #d06335; color: var(--ink); }
.practice-request { margin-top: 13px; color: var(--accent-deep); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 15px 28px; min-height: 108px; padding-block: 19px; }
.footer-inner p { color: #dbccbe; font: italic 1.05rem/1.3 var(--serif); }

dialog { width: min(calc(100% - 30px), 584px); max-height: calc(100% - 30px); overflow: auto; border: 1px solid #d1c4b7; border-radius: 6px; padding: 0; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #151210bd; }
.dialog-inner { padding: clamp(20px, 4vw, 36px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.icon-button { width: 39px; height: 39px; display: grid; place-items: center; background: transparent; border: 1px solid #c7bbaf; border-radius: 4px; color: var(--ink); }
.icon-button:hover { background: #eee0d1; }
dialog h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 11px; }
#draft-info { color: var(--muted-dark); line-height: 1.48; margin-bottom: 20px; }
#draft-form { display: flex; flex-direction: column; align-items: flex-start; }
#draft-form label, #draft-output label { display: block; width: 100%; font-size: .92rem; font-weight: 700; margin-bottom: 6px; }
#draft-form label span:not(#context-label) { font-weight: 400; color: var(--muted-dark); }
#draft-team-row input { margin-top: 6px; }
#draft-form :is(input, select, textarea), #draft-output textarea { display: block; width: 100%; max-width: 100%; min-height: 44px; padding: 9px 10px; margin-bottom: 13px; border: 1px solid #928578; border-radius: 4px; color: var(--ink); background: #fffaf3; font-weight: 400; }
textarea { resize: vertical; }
.draft-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; }
.draft-actions .button { min-height: 44px; }
#draft-status { min-height: 1.4em; margin-top: 9px; color: var(--muted-dark); font-size: .86rem; }

@media (max-width: 1050px) {
  .wrap { width: min(100% - 68px, 1280px); }
  .hero-inner { padding-block: 52px 49px; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 38px, 570px); }
  .masthead-inner { min-height: 66px; flex-wrap: wrap; gap: 0 10px; padding-top: 10px; }
  .masthead nav { width: 100%; order: 3; min-height: 39px; justify-content: start; gap: 24px; margin-top: 4px; }
  nav a { font-size: .83rem; }
  .brand { gap: 6px; font-size: .77rem; }
  .brand svg { width: 24px; height: 24px; }
  .masthead .button-small { min-height: 39px; padding-inline: 9px; gap: 5px; font-size: .77rem; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 45px 27px; gap: 30px; }
  h1 { font-size: clamp(2.65rem, 9.7vw, 4.95rem); }
  .hero-kicker { margin-bottom: 18px; }
  .hero-intro { margin-top: 16px; }
  .hero-actions { margin-top: 19px; gap: 7px 16px; }
  .belief-inner { grid-template-columns: 1fr; }
  .skills { align-items: start; gap: 11px 19px; min-height: 0; padding-block: 16px; }
  .skills > span { margin-top: 3px; }
  .skills ul { flex-wrap: wrap; gap: 6px 16px; }
  .skills li { gap: 7px; font-size: .79rem; }
  .offerings, .finder, .practice { padding-block: 57px; }
  .section-lead { display: block; margin-bottom: 25px; }
  .section-lead > p { margin: 12px 0 0; }
  .path-grid, .finder-grid, .practice-grid { grid-template-columns: 1fr; gap: 18px; }
  .finder-intro { padding-top: 0; }
  .finder-intro > p:last-child, .practice-intro { margin-top: 11px; }
  .finder-panel { min-height: 365px; margin-top: 6px; }
  .examples { margin-top: 10px; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .skills { flex-wrap: wrap; }
  .finder-panel { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.pillars { padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.pillar-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 18px 24px;
  list-style: none;
  counter-reset: pillar;
  padding: 0;
  margin: 0;
}
.pillar-list li { counter-increment: pillar; border-top: 2px solid var(--accent-deep); padding-top: 14px; }
.pillar-list li::before {
  content: "0" counter(pillar);
  display: block;
  font: 650 .72rem/1.3 var(--mono);
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.pillar-list h3, .product-card h4, .training-topics h4 { font-size: 1.15rem; line-height: 1.25; margin: 0 0 8px; }
.pillar-list p, .product-card p:not(.kicker), .training-topics p { color: var(--muted-dark); line-height: 1.55; }
.product-card { border: 1px solid var(--line); padding: clamp(16px, 2.5vw, 28px); display: flex; flex-direction: column; }
.product-card .kicker { margin-bottom: 12px; }
.product-card .text-button { align-self: flex-start; margin-top: auto; padding-top: 14px; text-align: left; color: var(--accent-deep); }
.training-card { margin-top: 19px; }
.training-topics { gap: 20px 30px; margin-bottom: 24px; }
.training-topics > div { border-top: 1px solid var(--line); padding-top: 13px; }
@media (max-width: 360px) {
  .masthead nav { flex-wrap: wrap; gap: 8px 14px; }
}
