@import url("./design-system.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 85% 6%, rgba(174, 134, 80, 0.08), transparent 26rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ol, ul, dl, dd { margin: 0; }
button { border: 0; color: inherit; }
svg { display: block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  transform: translateY(-180%);
  transition: transform var(--duration-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(243, 241, 237, 0.94), rgba(243, 241, 237, 0.76));
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  transition: border-color var(--duration-ui) ease, box-shadow var(--duration-ui) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px rgba(38, 27, 30, 0.05); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand-seal { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: #fff9f5; font-family: var(--display); font-size: 12px; letter-spacing: 0.04em; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: var(--display); font-size: 13px; letter-spacing: 0.08em; }
.brand-copy small { margin-top: 6px; color: var(--ink-faint); font-size: 10px; letter-spacing: 0.1em; }
.site-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: rgba(255, 253, 250, 0.7); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset; }
.site-nav a { padding: 7px 13px; border-radius: var(--radius-pill); color: var(--ink-soft); font-size: 13px; font-weight: 600; transition: color var(--duration-fast) ease, background-color var(--duration-fast) ease; }
.site-nav a[aria-current="true"] { background: var(--ink); color: #fff; }
.header-action { justify-self: end; display: inline-flex; align-items: center; gap: 7px; color: var(--wine); font-size: 13px; font-weight: 700; }
.header-action svg { width: 15px; height: 15px; transition: transform var(--duration-fast) var(--ease-out); }

main { width: var(--page); margin-inline: auto; }
.module { position: relative; border: 1px solid var(--line); background: rgba(255, 253, 250, 0.78); box-shadow: var(--shadow-sm); }
.module + .module { margin-top: 18px; }

.eyebrow { color: var(--wine); font-size: 11px; font-weight: 750; line-height: 1.2; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 22px; height: 1px; margin-right: 9px; vertical-align: middle; background: currentColor; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); align-items: end; gap: 48px; margin-bottom: 34px; }
.section-heading h2 { margin-top: 10px; font-size: clamp(27px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.045em; }
.section-heading > p { color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.module-integration { padding: 0; border: 0; background: transparent; box-shadow: none; }
.team.module-integration, .execution.module-integration { background: transparent; }
.module-frame-shell { position: relative; min-height: 360px; overflow: hidden; border: 0; background: transparent; isolation: isolate; }
.module-frame { position: relative; z-index: 1; display: block; width: 100%; height: 720px; border: 0; background: #f3f1ed; opacity: 0; transition: opacity var(--duration-ui) var(--ease-out); }
.module-frame-shell.is-ready .module-frame { opacity: 1; }
.subsection-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); align-items: end; gap: 40px; margin: 44px 0 22px; padding-top: 32px; border-top: 1px solid var(--line); }
.subsection-heading h3 { margin-top: 8px; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -0.04em; }
.subsection-heading > p { color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.compact-heading { margin-bottom: 26px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, .65fr);
  gap: 36px 60px;
  margin-top: 18px;
  padding: clamp(48px, 7vw, 96px) clamp(30px, 6vw, 88px) 0;
  overflow: hidden;
  border-color: rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 0%, rgba(211, 166, 105, 0.22), transparent 31rem),
    linear-gradient(135deg, var(--wine-deep), var(--wine) 72%, #852847);
  color: #fffaf7;
  box-shadow: 0 32px 90px rgba(78, 20, 40, .16);
}
.hero::after { content: ""; position: absolute; width: 480px; height: 480px; right: -180px; bottom: -280px; pointer-events: none; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 72px rgba(255,255,255,.018), 0 0 0 144px rgba(255,255,255,.014); }
.hero-primary, .hero-brief, .hero-metrics { position: relative; z-index: 1; }
.hero .eyebrow { color: #e2c6cc; }
.hero h1 { margin-top: 26px; font-family: var(--display); font-size: clamp(52px, 6vw, 84px); font-weight: 500; line-height: .96; letter-spacing: -0.05em; }
.hero h1 em { color: #f2d7bc; font-style: normal; }
.hero-lead { max-width: 680px; margin-top: 28px; color: rgba(255,250,247,.76); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-fast) ease, color var(--duration-fast) ease; }
.button:active, .person-card:active, .icon-button:active, .ai-role-tabs button:active, .validation-tabs button:active, .interaction-tabs button:active { transform: scale(.97); }
.button-primary { background: #fffaf7; color: var(--wine-deep); }
.button-quiet { border: 1px solid rgba(255,255,255,.23); background: rgba(255,255,255,.07); color: #fffaf7; }
.button svg { width: 15px; height: 15px; }
.hero-brief { align-self: end; margin-bottom: 20px; padding: 24px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-md); background: rgba(255,255,255,.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brief-head { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.brief-head span { color: rgba(255,255,255,.58); font-size: 11px; letter-spacing: .12em; }
.brief-head strong { grid-column: 1; font-size: 18px; }
.brief-head i { grid-column: 2; grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: #d9b67f; box-shadow: 0 0 0 6px rgba(217,182,127,.13); }
.hero-brief > p { margin-top: 18px; color: rgba(255,255,255,.72); font-size: 13px; }
.launch-window { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); }
.launch-window span { display: grid; gap: 4px; }
.launch-window small { color: rgba(255,255,255,.5); font-size: 9px; }
.launch-window b { white-space: nowrap; font-size: 13px; }
.launch-window i { width: 15px; height: 1px; background: rgba(255,255,255,.24); }
.hero-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin-inline: calc(clamp(30px, 6vw, 88px) * -1); background: rgba(24,9,14,.18); border-top: 1px solid rgba(255,255,255,.12); }
.hero-metrics article { min-height: 116px; padding: 24px clamp(20px, 3vw, 44px); border-right: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 12px; }
.hero-metrics article:last-child { border-right: 0; }
.hero-metrics strong { grid-row: 1 / 3; align-self: center; font-family: var(--display); font-size: clamp(34px, 3vw, 52px); font-weight: 500; line-height: 1; color: #f3d7bd; }
.hero-metrics span { align-self: end; font-size: 13px; font-weight: 700; }
.hero-metrics small { align-self: start; margin-top: 2px; color: rgba(255,255,255,.48); font-size: 10px; }

.stage-path { padding: 36px clamp(28px, 5vw, 64px); background: var(--surface); }
.stage-rail { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; list-style: none; }
.stage-rail li { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; min-height: 118px; padding: 22px 28px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.stage-rail li + li::before { content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.stage-rail li.is-current { border-top: 3px solid var(--wine); background: linear-gradient(to bottom, var(--wine-soft), transparent); }
.stage-number { color: var(--wine); font-family: var(--display); font-size: 19px; }
.stage-rail strong { font-size: 15px; }
.stage-rail p { margin-top: 7px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.stage-state { align-self: start; padding: 4px 8px; border-radius: var(--radius-pill); background: var(--wine); color: #fff; font-size: 9px; font-weight: 700; }

.definition, .team, .collaboration, .execution, .rhythm, .memo { padding: clamp(42px, 6vw, 80px) clamp(28px, 5vw, 72px); }
.outcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.outcome-grid article { min-height: 180px; padding: 24px; border-right: 1px solid var(--line); }
.outcome-grid article:last-child { border-right: 0; }
.outcome-grid span { color: var(--wine); font-family: var(--display); font-size: 20px; }
.outcome-grid h3 { margin-top: 34px; font-size: 17px; }
.outcome-grid p { margin-top: 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.validation-card { display: grid; grid-template-columns: .8fr 1.2fr 1.25fr; margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); overflow: hidden; }
.validation-intro, .validation-tabs, .validation-panels { padding: 26px; }
.validation-intro h3 { margin-top: 12px; font-size: 20px; }
.validation-tabs { display: grid; gap: 4px; border-inline: 1px solid var(--line); }
.validation-tabs button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: transparent; text-align: left; font-weight: 650; cursor: pointer; transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-fast) ease, color var(--duration-fast) ease; }
.validation-tabs button span { color: var(--ink-faint); font-family: var(--display); }
.validation-tabs button[aria-selected="true"] { background: var(--wine); color: #fff; }
.validation-tabs button[aria-selected="true"] span { color: #e8cad1; }
.validation-panels { display: grid; align-content: center; min-height: 172px; }
.tab-panel { transition: opacity var(--duration-ui) ease, transform var(--duration-ui) var(--ease-out), filter var(--duration-ui) ease; }
.tab-panel.is-changing { opacity: .35; transform: translateY(5px); filter: blur(1px); }
.validation-panels strong, .interaction-panels strong { font-size: 17px; }
.validation-panels p, .interaction-panels p { margin-top: 9px; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }

.team { background: #f8f5f0; }
.team-summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.55); }
.team-summary > p { color: var(--ink-faint); font-size: 11px; }
.team-counts { display: flex; align-items: center; gap: 14px; }
.team-counts span { display: flex; align-items: baseline; gap: 7px; }
.team-counts b { color: var(--wine); font-family: var(--display); font-size: 24px; font-weight: 500; }
.team-counts small { color: var(--ink-soft); font-size: 10px; }
.team-counts i { width: 1px; height: 22px; background: var(--line); }
.team-network { position: relative; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.network-layer { position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 26px; padding: 18px 24px; }
.network-layer + .network-layer { border-top: 1px solid var(--line); }
.layer-label { align-self: start; padding-top: 13px; color: var(--ink-faint); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.person-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 72px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; cursor: pointer; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; transition: transform var(--duration-fast) var(--ease-out), border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background-color var(--duration-fast) ease; }
.person-card.featured { width: min(420px, 100%); justify-self: center; }
.avatar, .dialog-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--wine); color: #fff; font-family: var(--display); font-size: 16px; }
.person-card strong { display: block; font-size: 15px; }
.person-card small { display: block; margin-top: 3px; color: var(--ink-faint); font-size: 10px; }
.role-status { padding: 5px 8px; border-radius: var(--radius-pill); background: var(--surface-deep); color: var(--ink-soft); font-size: 9px; font-style: normal; white-space: nowrap; }
.role-status.is-active { background: #e7eeeb; color: var(--green); }
.person-card.recruiting { border-style: dashed; background: #fbf8f4; }
.people-grid { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 10px; }
.network-connector { position: relative; height: 18px; }
.network-connector span { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--wine); opacity: .48; }
.network-connector.fan::after { content: ""; position: absolute; left: calc(86px + 11%); right: 3.5%; top: 9px; height: 1px; background: linear-gradient(to right, transparent, rgba(117,31,57,.36) 10%, rgba(117,31,57,.36) 90%, transparent); }
.hiring-note { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.hiring-note > div, .hiring-note details { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.54); }
.note-label { display: block; margin-bottom: 8px; color: var(--wine); font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.hiring-note strong { font-size: 14px; }
.hiring-note p { margin-top: 8px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.hiring-note summary { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.hiring-note summary svg, details summary > svg { width: 17px; height: 17px; transition: transform var(--duration-ui) var(--ease-out); }
details[open] summary > svg { transform: rotate(180deg); }

.collaboration { padding: clamp(34px, 5vw, 64px); border-radius: var(--radius-lg); background: #f8f6f2; }
.collaboration .section-heading { margin-bottom: 26px; }
.status-bar { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,254,250,.82); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; }
.status-bar > span { color: var(--ink); font-size: 11px; font-weight: 700; }
.status-bar > div { display: flex; flex-wrap: wrap; gap: 7px; }
.status-bar i { padding: 5px 9px; border-radius: var(--radius-pill); background: #ebe7e1; color: var(--ink-soft); font-size: 10px; font-style: normal; }
.status-bar i.done { background: #e5ece8; color: var(--green); }
.status-bar i.active { background: var(--wine-soft); color: var(--wine); }
.status-bar i.risk { background: #f3e5e3; color: var(--red); }
.cycle-table { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,250,.84); overflow: hidden; box-shadow: var(--shadow-sm); }
.cycle-row { display: grid; grid-template-columns: 1fr .85fr .9fr 1.35fr; min-height: 55px; align-items: center; border-top: 1px solid var(--line); transition: background-color var(--duration-fast) ease; }
.cycle-row:first-child { border-top: 0; }
.cycle-row > * { padding: 14px 18px; font-size: 12px; }
.cycle-row > * + * { border-left: 1px solid var(--line); }
.cycle-row strong { display: flex; align-items: center; gap: 13px; font-size: 13px; }
.cycle-row strong b { color: var(--wine); font-family: var(--display); font-size: 15px; font-weight: 500; }
.cycle-row span { color: var(--ink-soft); }
.cycle-row.table-head { min-height: 44px; background: #ece8e2; color: var(--ink); }
.cycle-row.table-head span { color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.known-state { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,254,250,.82); overflow: clip; box-shadow: var(--shadow-sm); }
.known-state summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; }
.known-state summary span { display: flex; align-items: baseline; gap: 12px; }
.known-state summary b { font-size: 13px; }
.known-state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; padding: 0 18px 18px; }
.known-state-grid p { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 11px; background: var(--surface); color: var(--ink-soft); font-size: 11px; }
.known-state-grid strong { color: var(--ink); }
.known-state-grid .state-caution { grid-column: 1 / -1; color: var(--wine); }
.state-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.state-dot.active { background: var(--green); }
.state-dot.risk { background: var(--red); }
.ai-workbench { margin-top: 20px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,254,250,.92); color: var(--ink); overflow: hidden; box-shadow: 0 18px 50px rgba(42,29,33,.07); }
.workbench-head { display: flex; justify-content: space-between; gap: 30px; align-items: baseline; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.workbench-head h3 { font-size: 24px; line-height: 1.1; letter-spacing: -.025em; }
.workbench-head strong { color: var(--ink-soft); font-size: 12px; font-weight: 500; }
.ai-role-layout { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); min-height: 274px; }
.ai-role-tabs { display: grid; align-content: center; gap: 4px; padding: 20px; border-right: 1px solid var(--line); background: #f5f2ed; }
.ai-role-tabs button { min-height: 38px; padding: 0 13px; border-radius: 10px; background: transparent; color: var(--ink-soft); text-align: left; font-size: 11px; cursor: pointer; transition: transform var(--duration-fast) var(--ease-out), color var(--duration-fast) ease, background-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease; }
.ai-role-tabs button[aria-selected="true"] { background: var(--surface); color: var(--wine); box-shadow: 0 1px 2px rgba(42,29,33,.06), 0 5px 16px rgba(42,29,33,.05); }
.ai-role-panel { display: flex; align-items: center; gap: 26px; padding: clamp(30px, 4vw, 54px); transition: opacity var(--duration-ui) ease, transform var(--duration-ui) var(--ease-out), filter var(--duration-ui) ease; }
.ai-role-panel.is-changing { opacity: .35; transform: translateY(5px); filter: blur(1px); }
.ai-glyph { display: grid; place-items: center; flex: 0 0 auto; width: 86px; height: 86px; border: 1px solid rgba(174,134,80,.28); border-radius: 24px; background: linear-gradient(145deg, #f5e8ce, #dfc69d); color: var(--wine-deep); font-family: var(--display); font-size: 30px; box-shadow: 0 16px 34px rgba(97,65,43,.12); }
.ai-role-panel small { color: var(--wine); font-size: 10px; font-weight: 700; }
.ai-role-panel h4 { margin-top: 7px; font-size: 24px; }
.ai-role-panel p { max-width: 580px; margin-top: 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.interaction-zone { display: grid; grid-template-columns: 1fr 1.35fr; border-top: 1px solid var(--line); }
.interaction-tabs { display: flex; flex-wrap: wrap; align-content: center; gap: 6px; padding: 20px 24px; border-right: 1px solid var(--line); background: #faf8f4; }
.interaction-tabs button { padding: 7px 11px; border-radius: var(--radius-pill); background: #ebe7e1; color: var(--ink-soft); font-size: 10px; cursor: pointer; transition: transform var(--duration-fast) var(--ease-out), color var(--duration-fast) ease, background-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease; }
.interaction-tabs button[aria-selected="true"] { background: var(--wine); color: #fff; box-shadow: 0 6px 16px rgba(117,31,57,.18); }
.interaction-panels { min-height: 108px; padding: 22px 26px; }
.interaction-panels strong { color: var(--ink); font-size: 14px; }
.interaction-panels p { margin-top: 5px; color: var(--ink-soft); font-size: 11px; }
.system-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: #f5f2ed; font-size: 10px; }
.system-chain span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-soft); }
.system-chain i { color: var(--gold); font-style: normal; }
.system-chain strong { margin-left: auto; color: var(--wine); }
.workbench-rule { padding: 14px 24px 17px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; line-height: 1.65; }

.execution { background: #f8f5f0; }
.text-link { display: inline-flex; align-items: center; gap: 7px; align-self: end; color: var(--wine); font-size: 12px; font-weight: 700; }
.text-link svg { width: 15px; height: 15px; }
.window-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.window-strip div { position: relative; display: flex; align-items: baseline; gap: 16px; padding: 18px 22px; border-left: 1px solid var(--line); }
.window-strip div:first-child { border-left: 0; }
.window-strip div.is-primary { background: var(--wine); color: #fff; }
.window-strip time { font-family: var(--display); font-size: 26px; line-height: 1; }
.window-strip span { color: var(--ink-soft); font-size: 11px; }
.window-strip .is-primary span { color: rgba(255,255,255,.68); }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.task-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: clip; transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background-color var(--duration-fast) ease; }
.task-card[data-state="risk"] { border-top-color: var(--red); }
.task-card[data-state="active"] { border-top-color: var(--wine); }
.task-card summary { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: start; min-height: 142px; padding: 20px; }
.task-index { color: var(--wine); font-family: var(--display); font-size: 21px; }
.task-card summary div { display: grid; }
.task-card summary small { color: var(--wine); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.task-card summary strong { margin-top: 17px; font-size: 15px; line-height: 1.4; }
.task-card summary div > span { margin-top: 8px; color: var(--ink-faint); font-size: 10px; }
.task-card summary > svg { margin-top: 2px; }
.task-detail { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.task-detail > p { padding-top: 16px; color: var(--ink-soft); font-size: 11px; line-height: 1.75; }
.task-detail dl { display: grid; gap: 8px; margin-top: 14px; }
.task-detail dl div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.task-detail dt { color: var(--ink-faint); font-size: 9px; }
.task-detail dd { color: var(--ink); font-size: 10px; }
.fulfilment-line { display: grid; grid-template-columns: minmax(260px,.65fr) minmax(0,1.35fr); gap: 34px; margin-top: 18px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--ink); color: #fff; }
.fulfilment-line h3 { margin-top: 7px; font-family: var(--display); font-size: 27px; font-weight: 500; }
.fulfilment-line > div > span { display: block; margin-top: 7px; color: rgba(255,255,255,.51); font-size: 10px; }
.fulfilment-line .eyebrow { color: #d6afb8; }
.fulfilment-line ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; list-style: none; counter-reset: handoff; }
.fulfilment-line li { position: relative; display: flex; align-items: center; min-height: 42px; padding: 8px 10px 8px 30px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: rgba(255,255,255,.68); font-size: 9px; counter-increment: handoff; }
.fulfilment-line li::before { content: counter(handoff); position: absolute; left: 10px; color: #d9b478; font-family: var(--display); }

.rhythm { padding: clamp(34px, 5vw, 64px); border-radius: var(--radius-lg); background: #f8f6f2; }
.rhythm .section-heading, .memo .section-heading { margin-bottom: 26px; }
.rhythm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rhythm-grid details { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,250,.88); overflow: clip; box-shadow: var(--shadow-sm); transition: border-color var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) ease; }
.rhythm-grid details.urgent { border-color: rgba(166,73,78,.28); background: #fff9f7; }
.rhythm-grid summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 106px; padding: 20px; }
.rhythm-grid summary > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(117,31,57,.12); border-radius: 13px; background: var(--wine-soft); color: var(--wine); font-family: var(--display); font-size: 16px; }
.rhythm-grid small { display: block; color: var(--wine); font-size: 11px; font-weight: 700; }
.rhythm-grid strong { display: block; margin-top: 5px; font-size: 15px; }
.rhythm-grid details > p { padding: 0 20px 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
.rhythm-grid details[open] > p { padding-top: 18px; }

.memo { margin-bottom: 18px; padding: clamp(34px, 5vw, 64px); border-radius: var(--radius-lg); background: #f8f6f2; }
.memo-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.memo-list details { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,250,.88); overflow: clip; box-shadow: var(--shadow-sm); transition: border-color var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) ease; }
.memo-list summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 88px; padding: 18px 20px; }
.memo-list summary > span { color: var(--wine); font-family: var(--display); font-size: 20px; }
.memo-list summary strong { display: block; font-size: 14px; }
.memo-content { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.memo-content ul { display: grid; gap: 10px; padding: 18px 0 0 16px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.memo-content li::marker { color: var(--wine); }
.system-memo dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 16px; }
.system-memo dl div { padding: 11px; border-radius: 9px; background: var(--surface-soft); }
.system-memo dt { color: var(--wine); font-size: 11px; font-weight: 700; }
.system-memo dd { margin-top: 4px; color: var(--ink-soft); font-size: 11px; }

.site-footer { width: var(--page); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; margin: 0 auto 24px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,253,250,.58); color: var(--ink-soft); }
.site-footer > div { display: flex; align-items: center; gap: 12px; }
.site-footer p { display: grid; }
.site-footer p strong { color: var(--ink); font-size: 12px; }
.site-footer p small { margin-top: 3px; font-size: 9px; }
.site-footer nav { display: flex; gap: 16px; font-size: 10px; }
.site-footer > a { color: var(--wine); font-size: 10px; font-weight: 700; }

.role-dialog { inset: 0 0 0 auto; width: min(480px, calc(100vw - 18px)); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
.role-dialog::backdrop { background: rgba(30,20,23,.32); opacity: 0; backdrop-filter: blur(0); transition: opacity var(--duration-ui) var(--ease-out), backdrop-filter var(--duration-ui) var(--ease-out); }
.role-dialog[open]:not(.is-ready)::backdrop { opacity: 0; backdrop-filter: blur(0); }
.role-dialog[open].is-ready::backdrop { opacity: 1; backdrop-filter: blur(4px); }
.dialog-shell { height: 100%; padding: 30px; background: rgba(255,253,250,.96); box-shadow: -24px 0 80px rgba(32,18,22,.18); transform: translateX(100%); transition: transform var(--duration-drawer) var(--ease-drawer); }
.role-dialog[open]:not(.is-ready) .dialog-shell { transform: translateX(100%); }
.role-dialog[open].is-ready .dialog-shell { transform: translateX(0); }
.role-dialog.is-closing .dialog-shell { transform: translateX(100%); }
.role-dialog.is-closing::backdrop { opacity: 0; backdrop-filter: blur(0); }
.dialog-shell header { display: flex; align-items: center; justify-content: space-between; }
.dialog-avatar { width: 54px; height: 54px; font-size: 19px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-deep); cursor: pointer; transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-fast) ease; }
.icon-button svg { width: 17px; height: 17px; }
.dialog-identity { margin-top: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.dialog-identity small { color: var(--wine); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.dialog-identity h2 { margin-top: 9px; font-family: var(--display); font-size: 42px; font-weight: 500; line-height: 1; }
.dialog-identity p { margin-top: 9px; color: var(--ink-soft); font-size: 13px; }
.dialog-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.dialog-section > span { color: var(--ink-faint); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.dialog-section > p { margin-top: 10px; font-size: 14px; line-height: 1.75; }
.dialog-relations { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.dialog-relations span { padding: 6px 9px; border-radius: var(--radius-pill); background: var(--wine-soft); color: var(--wine); font-size: 10px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (hover: hover) and (pointer: fine) {
  .header-action:hover svg, .text-link:hover svg { transform: translate(2px, -2px); }
  .button-primary:hover { background: #f6dfcb; }
  .button-quiet:hover { background: rgba(255,255,255,.13); }
  .person-card:hover { border-color: rgba(117,31,57,.32); background: #fff; box-shadow: 0 12px 30px rgba(58,35,41,.08); transform: translateY(-2px); }
  .cycle-row:not(.table-head):hover { background: var(--surface-soft); }
  .task-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
  .rhythm-grid details:hover, .memo-list details:hover { border-color: rgba(117,31,57,.22); box-shadow: 0 12px 30px rgba(58,35,41,.07); transform: translateY(-1px); }
  .site-nav a:hover { color: var(--ink); }
}

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-nav { justify-self: center; overflow-x: auto; max-width: 58vw; scrollbar-width: none; }
  .people-grid { grid-template-columns: repeat(3, 1fr); }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .rhythm-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --page: min(100% - 28px, 760px); }
  .site-header { min-height: 62px; padding: 8px 14px; }
  .brand-copy, .header-action { display: none; }
  .site-nav { justify-self: end; max-width: calc(100vw - 76px); }
  .site-nav a { padding-inline: 11px; }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .hero h1 { font-size: clamp(52px, 12vw, 86px); }
  .hero-brief { margin-bottom: 0; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .hero-metrics article:nth-child(2) { border-right: 0; }
  .hero-metrics article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .section-heading > p { max-width: 620px; }
  .subsection-heading { grid-template-columns: 1fr; gap: 9px; }
  .stage-rail { grid-template-columns: 1fr; }
  .stage-rail li + li::before { left: 22px; right: 22px; top: -1px; bottom: auto; width: auto; height: 1px; }
  .outcome-grid { grid-template-columns: 1fr 1fr; }
  .outcome-grid article:nth-child(2) { border-right: 0; }
  .outcome-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .validation-card { grid-template-columns: 1fr; }
  .validation-tabs { border: 0; border-block: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
  .validation-tabs button { justify-content: center; }
  .network-layer { grid-template-columns: 1fr; gap: 10px; }
  .layer-label { padding-top: 0; }
  .network-connector.fan::after { display: none; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .hiring-note { grid-template-columns: 1fr; }
  .cycle-table { overflow-x: auto; }
  .cycle-row { min-width: 820px; }
  .ai-role-layout { grid-template-columns: 1fr; }
  .ai-role-tabs { grid-template-columns: repeat(4, 1fr); border-right: 0; border-bottom: 1px solid var(--line); }
  .interaction-zone { grid-template-columns: 1fr; }
  .interaction-tabs { border-right: 0; border-bottom: 1px solid var(--line); }
  .fulfilment-line { grid-template-columns: 1fr; }
  .memo-list { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; }
}

@media (max-width: 620px) {
  :root { --page: calc(100% - 18px); }
  html { scroll-padding-top: 70px; }
  body { font-size: 15px; }
  .module + .module { margin-top: 9px; }
  .site-nav { gap: 0; padding: 3px; }
  .site-nav a { padding: 6px 9px; font-size: 11px; }
  .site-nav a:nth-child(3), .site-nav a:nth-child(5) { display: none; }
  .hero { margin-top: 9px; padding: 44px 20px 0; border-radius: 20px; }
  .hero h1 { margin-top: 18px; font-size: clamp(42px, 12vw, 52px); }
  .hero-lead { font-size: 16px; }
  .launch-window { gap: 7px; }
  .launch-window i { width: 8px; }
  .hero-metrics { margin-inline: -20px; }
  .hero-metrics article { display: grid; grid-template-columns: 1fr; min-height: 108px; padding: 18px; }
  .hero-metrics strong { grid-row: auto; align-self: end; font-size: 32px; }
  .hero-metrics span { margin-top: 6px; }
  .stage-path, .definition, .collaboration, .rhythm, .memo { padding: 34px 18px; }
  .team.module-integration, .execution.module-integration, .module-integration { padding: 0; }
  .module-frame-shell { min-height: 300px; border-radius: 0; }
  .subsection-heading { margin: 34px 9px 20px; padding-top: 26px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 29px; }
  .stage-rail li { padding: 18px 10px; }
  .outcome-grid { grid-template-columns: 1fr; }
  .outcome-grid article { min-height: auto; padding: 18px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .outcome-grid article:last-child { border-bottom: 0; }
  .outcome-grid h3 { margin-top: 20px; }
  .validation-intro, .validation-tabs, .validation-panels { padding: 18px; }
  .validation-tabs { grid-template-columns: 1fr; }
  .validation-tabs button { justify-content: flex-start; }
  .team-summary { align-items: flex-start; }
  .team-summary > p { display: none; }
  .team-counts { width: 100%; justify-content: space-between; }
  .network-layer { padding: 14px; }
  .people-grid { grid-template-columns: 1fr; }
  .person-card.featured { width: 100%; }
  .known-state summary span { display: grid; }
  .known-state-grid { grid-template-columns: 1fr; }
  .known-state-grid .state-caution { grid-column: auto; }
  .workbench-head { display: grid; padding: 22px 20px; }
  .ai-role-tabs { display: flex; overflow-x: auto; padding: 14px; scrollbar-width: none; }
  .ai-role-tabs button { flex: 0 0 auto; }
  .ai-role-panel { padding: 28px 20px; }
  .ai-glyph { width: 64px; height: 64px; border-radius: 18px; }
  .interaction-tabs { padding: 16px; }
  .system-chain { gap: 6px; }
  .system-chain strong { width: 100%; margin-top: 4px; }
  .window-strip { grid-template-columns: 1fr; }
  .window-strip div { border-left: 0; border-top: 1px solid var(--line); }
  .window-strip div:first-child { border-top: 0; }
  .task-grid { grid-template-columns: 1fr; }
  .task-card summary { min-height: 124px; }
  .fulfilment-line ol { grid-template-columns: 1fr 1fr; }
  .rhythm-grid { grid-template-columns: 1fr; }
  .memo-list { grid-template-columns: 1fr; }
  .memo-content { padding-left: 18px; }
  .system-memo dl { grid-template-columns: 1fr; }
  .site-footer { width: calc(100% - 18px); gap: 18px; padding: 20px; }
  .site-footer > a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dialog-shell, .role-dialog::backdrop, .tab-panel, .ai-role-panel { transition: opacity var(--duration-ui) ease; transform: none !important; filter: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .hero-brief { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header { background: var(--bg); }
  .hero-brief { background: rgba(78,20,40,.96); }
  .dialog-shell { background: var(--surface); }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(32,26,28,.3); --line-strong: rgba(32,26,28,.55); }
  .module, .task-card, .memo-list details { background: var(--surface); }
}

/* App shell: one content screen and one bottom tab bar. */
body {
  display: grid;
  min-height: 100svh;
  height: 100svh;
  place-items: start center;
  padding: 18px 24px calc(104px + env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(circle at 18% -10%, rgba(117, 31, 57, .08), transparent 30rem),
    radial-gradient(circle at 92% 110%, rgba(174, 134, 80, .08), transparent 28rem),
    var(--bg);
}

.app-viewport {
  position: relative;
  width: min(1480px, 100%);
  height: calc(100svh - 122px - env(safe-area-inset-bottom));
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(62, 44, 49, .12);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(42, 29, 33, .12), 0 2px 10px rgba(42, 29, 33, .05), inset 0 1px 0 rgba(255, 255, 255, .82);
  isolation: isolate;
}

.app-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(69, 48, 55, .24) transparent;
  scrollbar-width: thin;
  transform-origin: 50% 16%;
}

.app-view::-webkit-scrollbar { width: 8px; }
.app-view::-webkit-scrollbar-track { background: transparent; }
.app-view::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(69, 48, 55, .22); background-clip: padding-box; }

.app-view.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero.app-view {
  min-height: 100%;
  padding-top: clamp(52px, 7vh, 88px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.module-integration.app-view {
  padding: 0;
  background: var(--surface);
}

.module-frame-shell {
  min-height: 100%;
  overflow: visible;
  background: var(--surface);
}

.module-frame { background: var(--surface); }

.team.app-view .hiring-note {
  margin: 0;
  padding: 0 24px 24px;
  background: var(--surface);
}

.app-tabbar {
  --tab-index: 0;
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  width: min(430px, calc(100vw - 24px));
  min-height: 68px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(81, 60, 66, .14);
  border-radius: 23px;
  background: rgba(255, 253, 250, .82);
  box-shadow: 0 18px 48px rgba(48, 31, 36, .14), 0 2px 8px rgba(48, 31, 36, .07), inset 0 1px 0 rgba(255, 255, 255, .82);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  transform: translateX(-50%);
  isolation: isolate;
}

.tab-indicator {
  position: absolute;
  z-index: 0;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / 4);
  border-radius: 17px;
  background: var(--ink);
  box-shadow: 0 4px 14px rgba(32, 26, 28, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: translateX(calc(var(--tab-index) * 100%));
  transition: transform 220ms var(--ease-in-out);
  will-change: transform;
}

.app-tabbar button {
  position: relative;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 7px 6px 6px;
  border-radius: 17px;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 140ms ease, transform 120ms var(--ease-out);
}

.app-tabbar button svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.65;
}

.app-tabbar button span {
  font-size: 10px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: .02em;
}

.app-tabbar button[aria-selected="true"] { color: #fffaf7; }
.app-tabbar button:active { transform: scale(.96); }
.app-tabbar button:focus-visible { outline-color: var(--wine); outline-offset: -2px; }

@media (hover: hover) and (pointer: fine) {
  .app-tabbar button:not([aria-selected="true"]):hover { color: var(--ink); }
}

@media (max-width: 620px) {
  body { padding: 8px 8px calc(86px + env(safe-area-inset-bottom)); }
  .app-viewport {
    width: 100%;
    height: calc(100svh - 94px - env(safe-area-inset-bottom));
    border-radius: 22px;
  }
  .hero.app-view { padding-top: 44px; }
  .team.app-view .hiring-note { padding: 0 12px 14px; }
  .app-tabbar {
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    min-height: 64px;
    border-radius: 21px;
  }
  .tab-indicator, .app-tabbar button { border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .tab-indicator { transition-duration: 1ms; }
}

@media (prefers-reduced-transparency: reduce) {
  .app-tabbar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .app-viewport { border-color: var(--line-strong); box-shadow: none; }
}

/* Unified application shell */
html {
  min-width: 320px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

button,
a,
[role="button"],
[role="tab"] {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body {
  height: 100dvh;
  padding: 16px 20px calc(92px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 12% -12%, rgba(107, 33, 57, 0.065), transparent 30rem),
    var(--canvas);
}

.app-viewport {
  width: min(1480px, 100%);
  height: calc(100dvh - 124px - env(safe-area-inset-bottom, 0px));
  border-color: var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.app-view {
  background: var(--surface);
  scrollbar-width: thin;
  transform-origin: center;
}

.home-view {
  display: grid;
  min-height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.home-header {
  display: grid;
  min-height: 82px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
}

.home-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.title-mark {
  width: 5px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

.home-title h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.home-header > p {
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 560;
}

.home-phase {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 680;
}

.home-dashboard {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.home-focus {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(42px, 6vw, 80px);
  background:
    radial-gradient(circle at 100% 0%, rgba(225, 187, 135, 0.20), transparent 27rem),
    linear-gradient(140deg, var(--accent-deep), var(--accent) 76%, #7c2944);
  color: #fffaf7;
}

.home-focus::after {
  position: absolute;
  right: -150px;
  bottom: -250px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 66px rgba(255, 255, 255, 0.016), 0 0 0 132px rgba(255, 255, 255, 0.012);
  content: "";
  pointer-events: none;
}

.home-focus > * { position: relative; z-index: 1; }
.home-focus > p { color: rgba(255, 250, 247, 0.67); font-size: 0.875rem; font-weight: 630; }
.home-focus h2 { max-width: 780px; margin: 18px 0 0; font-size: clamp(2.3rem, 5vw, 4.8rem); font-weight: 650; line-height: 1.02; letter-spacing: -0.055em; }
.home-focus > strong { margin-top: 22px; color: #eed7bf; font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 500; }

.home-focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 38px;
  margin-top: clamp(34px, 7vh, 66px);
}

.home-focus-meta span {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: rgba(255, 250, 247, 0.65);
  font-size: 0.8125rem;
}

.home-focus-meta b { color: #fffaf7; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.home-window {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4.5vw, 64px);
  background: var(--surface-soft);
}

.home-window h2 { margin: 0; font-size: 1rem; font-weight: 680; }
.home-window ol { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; }
.home-window li { position: relative; display: grid; min-height: 68px; grid-template-columns: 112px 1fr; align-items: center; gap: 22px; border-top: 1px solid var(--line); color: var(--secondary); }
.home-window li:last-child { border-bottom: 1px solid var(--line); }
.home-window li::before { position: absolute; left: -18px; width: 5px; height: 5px; border-radius: 50%; background: var(--tertiary); content: ""; }
.home-window li.is-current { color: var(--ink); }
.home-window li.is-current::before { width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.home-window time { font-family: var(--display); font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.home-window span { font-size: 0.875rem; font-weight: 620; }

.home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
}

.home-metrics article {
  display: flex;
  min-height: 102px;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(18px, 3vw, 36px);
  border-right: 1px solid var(--line-soft);
}

.home-metrics article:last-child { border-right: 0; }
.home-metrics strong { color: var(--accent); font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 500; line-height: 1; }
.home-metrics span { font-size: 0.8125rem; font-weight: 650; }

.module-frame-shell { background: var(--surface); }
.team.app-view .hiring-note { display: none; }

.app-tabbar {
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(520px, calc(100vw - 24px));
  min-height: 64px;
  padding: 5px;
  border-color: rgba(45, 36, 40, 0.12);
  border-radius: 22px;
  background: rgba(255, 254, 250, 0.88);
  box-shadow: 0 16px 44px rgba(35, 25, 29, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.tab-indicator {
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 4);
  border-radius: 17px;
  background: var(--accent-deep);
  transform: translateX(0);
  transition: transform var(--duration-ui) var(--ease-in-out);
}

.app-tabbar button { gap: 4px; min-height: 54px; padding: 6px; border-radius: 17px; transition: color var(--duration-fast) ease, transform var(--duration-press) var(--ease-out); }
.app-tabbar button svg { width: 19px; height: 19px; }
.app-tabbar button span { font-size: 0.75rem; font-weight: 650; letter-spacing: 0; }

@media (max-width: 820px) {
  body { padding: 8px 8px calc(82px + env(safe-area-inset-bottom, 0px)); }
  .app-viewport { height: calc(100dvh - 98px - env(safe-area-inset-bottom, 0px)); border-radius: 20px; box-shadow: 0 12px 36px rgba(35, 25, 29, 0.08); }
  .home-view { overflow: hidden; }
  .home-header { min-height: 72px; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 16px; }
  .home-header > p { display: none; }
  .home-dashboard { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.2fr) minmax(0, .8fr); overflow: hidden; }
  .home-focus { min-height: 0; padding: 24px; }
  .home-focus h2 { font-size: clamp(2.15rem, 11vw, 3.5rem); }
  .home-focus-meta { margin-top: 22px; }
  .home-window { min-height: 0; padding: 18px 24px; }
  .home-window ol { margin-top: 12px; }
  .home-window li { min-height: 44px; grid-template-columns: 98px 1fr; }
  .home-window li::before { left: -13px; }
  .home-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-metrics article { min-height: 82px; border-bottom: 1px solid var(--line-soft); }
  .home-metrics article:nth-child(2) { border-right: 0; }
  .home-metrics article:nth-child(n + 3) { border-bottom: 0; }
  .app-tabbar { bottom: calc(7px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 16px); min-height: 62px; }
  .app-tabbar button { min-height: 52px; }
}

@media (max-width: 420px) {
  .home-phase { padding: 6px 9px; font-size: 0.75rem; }
  .home-focus-meta { gap: 10px 22px; }
  .home-metrics article { gap: 10px; padding: 16px; }
  .home-metrics strong { font-size: 1.75rem; }
  .home-metrics span { font-size: 0.75rem; }
}
