@font-face {
  font-family: "Hotel Colline";
  src: url("assets/fonts/HotelColline.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #090e25;
  --blue-2: #263349;
  --orange: #be6628;
  --eggshell: #f1e9da;
  --paper: #fffdf9;
  --pearl: #dadbc4;
  --pearl-soft: #e8e6d8;
  --red: #660000;
  --muted: #667085;
  --line: rgba(9, 14, 37, 0.16);
  --shadow: 0 24px 70px rgba(38, 51, 73, 0.12);
  --radius: 14px;
  --font-head: "Hotel Colline", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--eggshell);
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(190, 102, 40, 0.45);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3rem, 6.2vw, 6.2rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.25rem, 4.2vw, 4.4rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button,
.text-button,
.actor-button,
.dialog-close {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:active,
.text-button:active,
.actor-button:active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.button-primary {
  background: var(--blue);
  color: #fffdf9;
}

.button-primary:hover {
  background: var(--blue-2);
}

.button-secondary {
  border: 1px solid rgba(9, 14, 37, 0.35);
  background: transparent;
  color: var(--blue);
}

.button-secondary:hover {
  border-color: var(--orange);
  background: rgba(255, 253, 249, 0.56);
}

.button-small {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.button-wide {
  width: 100%;
}

.text-button {
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
}

.text-button:hover {
  border-color: var(--orange);
}

.auth-screen {
  position: relative;
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.2fr);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(218, 219, 196, 0.5) 1px, transparent 1px) 0 0 / 12.5vw 100%,
    var(--eggshell);
}

.auth-brand {
  display: flex;
  align-items: flex-start;
  padding: 3rem 4vw;
}

.auth-brand img,
.header-logo,
.site-footer img {
  width: auto;
  object-fit: contain;
}

.auth-brand img {
  height: 44px;
}

.auth-panel {
  align-self: center;
  width: min(620px, calc(100% - 4rem));
  margin: 2rem;
  padding: clamp(2rem, 5vw, 4.75rem);
  border: 1px solid rgba(9, 14, 37, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  max-width: 9ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 5.4vw, 5.5rem);
}

.auth-intro {
  max-width: 46ch;
  margin-bottom: 2.2rem;
  color: var(--blue-2);
}

.login-form fieldset {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.4rem;
  padding: 0;
  border: 0;
}

.login-form legend {
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.role-choice {
  position: relative;
  display: block;
}

.role-choice input {
  position: absolute;
  opacity: 0;
}

.role-choice span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 249, 0.72);
  cursor: pointer;
}

.role-choice input:checked + span {
  border-color: var(--orange);
  box-shadow: inset 4px 0 0 var(--orange);
}

.role-choice input:focus-visible + span {
  outline: 3px solid rgba(190, 102, 40, 0.45);
  outline-offset: 3px;
}

.role-choice small {
  color: var(--muted);
  text-align: right;
}

.auth-symbol {
  position: absolute;
  right: 3vw;
  bottom: 2rem;
  width: 54px;
  height: auto;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field > span {
  font-size: 0.78rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(9, 14, 37, 0.26);
  border-radius: 9px;
  background: var(--paper);
  color: var(--blue);
}

.field input,
.field select {
  min-height: 43px;
  padding: 0.6rem 0.72rem;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
  padding: 0.72rem;
  line-height: 1.55;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(190, 102, 40, 0.72);
}

.field small {
  color: var(--muted);
  font-size: 0.7rem;
}

.login-form .field {
  margin-bottom: 1.25rem;
}

.form-error {
  min-height: 1.5em;
  margin: 0 0 0.85rem;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  min-height: 74px;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(9, 14, 37, 0.12);
  background: rgba(241, 233, 218, 0.94);
  backdrop-filter: blur(16px);
}

.header-title {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  color: var(--blue);
  text-decoration: none;
}

.header-title strong {
  font-family: var(--font-head);
  font-size: 1.26rem;
  font-weight: 400;
}

.header-kicker {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  white-space: nowrap;
}

.header-logo {
  height: 26px;
}

.sync-state {
  color: var(--muted);
  font-size: 0.7rem;
}

.sync-state[data-tone="ok"]::before,
.sync-state[data-tone="error"]::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.42rem;
  border-radius: 50%;
  background: var(--blue-2);
  content: "";
}

.sync-state[data-tone="error"] {
  color: var(--red);
}

.sync-state[data-tone="error"]::before {
  background: var(--red);
}

.actor-button {
  min-height: 36px;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(9, 14, 37, 0.25);
  border-radius: 9px;
  background: rgba(255, 253, 249, 0.5);
  color: var(--blue);
  font-size: 0.77rem;
  font-weight: 700;
}

.hero {
  display: grid;
  min-height: calc(100dvh - 74px);
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) 4vw;
}

.hero-copy h1 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 5.4vw, 5.45rem);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 48ch;
  color: var(--blue-2);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.now-panel {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.4rem);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fffdf9;
  box-shadow: 0 32px 80px rgba(9, 14, 37, 0.22);
}

.now-panel::after {
  position: absolute;
  right: -80px;
  bottom: -105px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(190, 102, 40, 0.75);
  border-radius: 50%;
  content: "";
}

.now-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 253, 249, 0.7);
  font-size: 0.74rem;
  font-weight: 600;
}

.day-display {
  margin-top: 2.7rem;
  color: var(--paper);
  font-family: var(--font-head);
  font-size: clamp(6.5rem, 13vw, 10rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
}

.day-caption {
  margin: 1rem 0 2.5rem;
  color: rgba(255, 253, 249, 0.58);
  font-size: 0.78rem;
}

.now-panel h2 {
  margin-bottom: 0.9rem;
  color: var(--paper);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}

.now-panel > p:not(.day-caption) {
  max-width: 38ch;
  color: rgba(255, 253, 249, 0.76);
}

.next-gate {
  position: absolute;
  right: 2.2rem;
  bottom: 2.1rem;
  left: 2.2rem;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 253, 249, 0.19);
  font-size: 0.76rem;
}

.next-gate span {
  color: rgba(255, 253, 249, 0.55);
}

.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 4vw;
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading h2,
.compact-heading h2 {
  margin-bottom: 1rem;
}

.section-heading p,
.compact-heading p {
  max-width: 62ch;
  color: var(--blue-2);
}

.compact-heading {
  max-width: 760px;
  margin-bottom: 3rem;
}

.journey {
  max-width: none;
  padding-right: 0;
  padding-left: 0;
  background: var(--paper);
}

.journey > .section-heading,
.journey-map,
.phase-workspace {
  width: min(1320px, 92vw);
  margin-right: auto;
  margin-left: auto;
}

.journey-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 4rem;
  margin-bottom: 5rem;
}

.journey-map::before {
  position: absolute;
  top: 20px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: var(--line);
  content: "";
}

.phase-node {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0.28rem;
  padding: 0 0.8rem;
  border: 0;
  background: transparent;
  color: var(--blue);
  text-align: left;
  cursor: pointer;
}

.node-marker {
  z-index: 1;
  display: block;
  width: 41px;
  height: 41px;
  margin-bottom: 1.15rem;
  border: 10px solid var(--paper);
  border-radius: 50%;
  background: var(--pearl);
  box-shadow: 0 0 0 1px rgba(9, 14, 37, 0.22);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.phase-node:hover .node-marker,
.phase-node.selected .node-marker {
  transform: scale(1.1);
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--orange);
}

.phase-node.past .node-marker {
  background: var(--blue-2);
}

.phase-node.current .node-marker {
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--orange), 0 0 0 7px rgba(190, 102, 40, 0.12);
}

.node-range {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
}

.phase-node strong {
  max-width: 16ch;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1.9vw, 1.65rem);
  font-weight: 400;
  line-height: 1.15;
}

.phase-node small {
  color: var(--muted);
}

.phase-workspace {
  display: grid;
  grid-template-columns: minmax(290px, 0.7fr) minmax(480px, 1.3fr);
  gap: clamp(2rem, 5vw, 6rem);
  scroll-margin-top: 100px;
}

.phase-brief {
  align-self: start;
  padding: 2.4rem;
  border-left: 4px solid var(--orange);
  background: var(--eggshell);
}

.phase-range {
  margin-bottom: 0.75rem;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
}

.phase-brief h3 {
  margin-bottom: 1.5rem;
}

.phase-brief blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--font-head);
  font-size: 1.38rem;
  line-height: 1.35;
}

.phase-brief > p:not(.phase-range) {
  color: var(--blue-2);
}

.phase-facts {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(9, 14, 37, 0.15);
}

.phase-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.phase-facts dt {
  color: var(--muted);
  font-size: 0.74rem;
}

.phase-facts dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.deliverables {
  display: grid;
  gap: 1rem;
}

.deliverable-card {
  padding: 1.4rem;
  border: 1px solid rgba(9, 14, 37, 0.14);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.deliverable-card:focus-within {
  border-color: rgba(190, 102, 40, 0.65);
  box-shadow: 0 14px 40px rgba(38, 51, 73, 0.09);
}

.deliverable-heading {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.status-mark {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-top: 0.42rem;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.status-in_progress .status-mark {
  border-color: var(--orange);
  background: var(--orange);
}

.status-needs_help .status-mark {
  border-color: var(--red);
  background: var(--red);
}

.status-completed .status-mark {
  border-color: var(--blue-2);
  background: var(--blue-2);
  box-shadow: inset 0 0 0 2px var(--paper);
}

.deliverable-heading h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.deliverable-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.deliverable-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.evidence-field {
  grid-column: 1 / -1;
}

.deliverable-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.deliverable-footer > small {
  color: var(--muted);
  font-size: 0.68rem;
}

.start-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(480px, 1.25fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}

.start-panel h2 {
  margin-bottom: 0.9rem;
}

.start-panel > div:first-child > p:last-child {
  max-width: 44ch;
  color: var(--blue-2);
}

.start-list {
  display: grid;
  border-top: 1px solid var(--blue);
}

.start-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--blue);
  text-align: left;
  cursor: pointer;
}

.start-item > span {
  color: var(--orange);
  font-family: var(--font-head);
  font-size: 1.35rem;
}

.start-item small {
  color: var(--muted);
}

.mandate {
  max-width: none;
  background: rgba(218, 219, 196, 0.36);
}

.mandate > .section-heading,
.mandate-grid {
  width: min(1320px, 92vw);
  margin-right: auto;
  margin-left: auto;
}

.mandate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mandate-item {
  border: 1px solid rgba(9, 14, 37, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.72);
}

.mandate-item summary {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 0.8rem;
  padding: 1.25rem;
  list-style: none;
  cursor: pointer;
}

.mandate-item summary::-webkit-details-marker {
  display: none;
}

.mandate-item summary p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.mandate-item summary small {
  color: var(--muted);
  white-space: nowrap;
}

.mandate-item .compact-card {
  margin: 0 1rem 1rem;
  border-color: rgba(9, 14, 37, 0.1);
}

.mandate-item .compact-card > .deliverable-heading {
  display: none;
}

.weekly {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(520px, 1.25fr);
  gap: clamp(3rem, 8vw, 9rem);
}

.weekly-intro {
  align-self: start;
}

.weekly-intro h2 {
  margin-bottom: 1rem;
}

.weekly-intro p {
  max-width: 48ch;
  margin-bottom: 1.8rem;
  color: var(--blue-2);
}

.weekly-rhythm {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weekly-rhythm::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 7px;
  width: 1px;
  background: var(--line);
  content: "";
}

.weekly-rhythm li {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(180px, 0.65fr) 1fr;
  gap: 1.25rem;
  padding: 0 0 2.2rem 2.1rem;
}

.weekly-rhythm li::before {
  position: absolute;
  top: 0.36rem;
  left: 0;
  width: 15px;
  height: 15px;
  border: 4px solid var(--eggshell);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
  content: "";
}

.weekly-rhythm time {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
}

.weekly-rhythm strong {
  font-size: 0.9rem;
}

.weekly-rhythm span {
  color: var(--muted);
  font-size: 0.82rem;
}

.people {
  max-width: none;
  background: var(--paper);
}

.people > .section-heading,
.commitment-cycle,
.assignment-example,
.blocker-grid {
  width: min(1320px, 92vw);
  margin-right: auto;
  margin-left: auto;
}

.commitment-cycle {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 3rem;
  padding: 0;
  list-style: none;
}

.commitment-cycle li {
  min-height: 215px;
  padding: 1.5rem;
  border-left: 1px solid var(--line);
}

.commitment-cycle li:last-child {
  border-right: 1px solid var(--line);
}

.commitment-cycle span {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--orange);
  font-family: var(--font-head);
  font-size: 1.4rem;
}

.commitment-cycle strong {
  display: block;
  margin-bottom: 0.45rem;
}

.commitment-cycle p {
  color: var(--muted);
  font-size: 0.8rem;
}

.assignment-example {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--paper);
}

.assignment-example span {
  color: #e3a174;
  font-size: 0.75rem;
  font-weight: 700;
}

.assignment-example p {
  max-width: 74ch;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.4;
}

.blocker-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
  margin-top: 1rem;
}

.blocker-grid article {
  min-height: 150px;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--eggshell);
}

.blocker-grid article:nth-child(2),
.blocker-grid article:nth-child(3) {
  background: rgba(218, 219, 196, 0.64);
}

.blocker-grid article:nth-child(3) {
  grid-column: 1;
}

.blocker-grid article:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.blocker-grid h3 {
  margin-bottom: 0.55rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.blocker-grid p {
  margin: 0;
  color: var(--blue-2);
  font-size: 0.84rem;
}

.metrics-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.metrics-heading h2 {
  max-width: 14ch;
  margin-bottom: 1rem;
}

.metrics-heading p {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--blue-2);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
}

.metric-card {
  min-height: 150px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.56);
}

.metric-card:first-child {
  grid-row: span 2;
  min-height: 316px;
  background: var(--blue);
  color: var(--paper);
}

.metric-card span {
  display: block;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.metric-card:first-child span {
  color: rgba(255, 253, 249, 0.64);
}

.metric-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.18;
}

.metric-card:first-child strong {
  margin-top: 5rem;
  font-size: clamp(1.7rem, 3vw, 3.2rem);
}

.metric-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.reviews {
  max-width: none;
  background: rgba(218, 219, 196, 0.36);
}

.reviews > .section-heading,
.review-ladder {
  width: min(1120px, 92vw);
  margin-right: auto;
  margin-left: auto;
}

.review-ladder {
  display: grid;
  gap: 1.2rem;
}

.review-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.review-day-60 {
  margin-left: 6vw;
}

.review-day-90 {
  margin-left: 12vw;
}

.review-number {
  display: grid;
  align-content: start;
  padding-right: 1.4rem;
  border-right: 1px solid var(--line);
}

.review-number span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
}

.review-number strong {
  font-family: var(--font-head);
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1;
}

.review-content h3 {
  margin-bottom: 1.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.review-fields {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 3rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4rem 4vw;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer img {
  height: 54px;
}

.footer-actions {
  display: flex;
  gap: 1.5rem;
}

.dialog {
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(9, 14, 37, 0.2);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--blue);
  box-shadow: 0 32px 90px rgba(9, 14, 37, 0.28);
}

.dialog::backdrop {
  background: rgba(9, 14, 37, 0.56);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  padding: 1.5rem;
}

.dialog-wide {
  width: 100%;
}

.dialog-small {
  width: min(420px, 100%);
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dialog-heading span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
}

.dialog-heading h2 {
  margin: 0.3rem 0 0;
  font-size: 2.2rem;
}

.dialog-close {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--eggshell);
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.metric-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.history-list {
  display: grid;
  max-height: 60vh;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.history-list article {
  display: grid;
  grid-template-columns: 155px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.history-list time,
.history-list small {
  color: var(--muted);
  font-size: 0.7rem;
}

.history-list strong {
  font-size: 0.82rem;
}

.empty-state {
  padding: 2.5rem 0;
  text-align: center;
}

.empty-state p,
.actor-warning {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  max-width: min(420px, calc(100vw - 3rem));
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--orange);
  border-radius: 9px;
  background: var(--blue);
  color: var(--paper);
  box-shadow: 0 18px 50px rgba(9, 14, 37, 0.24);
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast[data-tone="error"] {
  border-left-color: #d7a0a0;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-logo {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
  }

  .phase-workspace,
  .weekly {
    grid-template-columns: 0.78fr 1.22fr;
    gap: 2.5rem;
  }

  .deliverable-fields,
  .review-fields {
    grid-template-columns: 1fr 1fr;
  }

  .deliverable-fields .field-small:last-of-type,
  .review-fields .field:last-child {
    grid-column: 1 / -1;
  }

  .commitment-cycle {
    grid-template-columns: repeat(3, 1fr);
  }

  .commitment-cycle li:nth-child(4),
  .commitment-cycle li:nth-child(5) {
    border-top: 1px solid var(--line);
  }

  .commitment-cycle li:last-child {
    border-right: 0;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 72px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.1rem, 11vw, 3.3rem);
  }

  .auth-screen {
    display: block;
    padding: 1.2rem;
    background: var(--eggshell);
  }

  .auth-brand {
    padding: 0.5rem 0 2rem;
  }

  .auth-panel {
    width: 100%;
    margin: 0;
    padding: 1.4rem;
  }

  .auth-panel h1 {
    max-width: 10ch;
  }

  .auth-symbol {
    display: none;
  }

  .site-header {
    min-height: 66px;
    gap: 0.8rem;
    padding: 0 1rem;
  }

  .header-title {
    display: grid;
    gap: 0;
  }

  .header-title strong {
    font-size: 1rem;
  }

  .header-actions {
    gap: 0.65rem;
  }

  .sync-state,
  #history-button {
    display: none;
  }

  .actor-button {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 3.5rem 1rem;
  }

  .hero-copy {
    margin-bottom: 2.5rem;
  }

  .hero-copy h1 {
    max-width: 10ch;
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .now-panel {
    min-height: 440px;
  }

  .section {
    width: 100%;
    padding: 4.5rem 1rem;
  }

  .journey > .section-heading,
  .journey-map,
  .phase-workspace,
  .mandate > .section-heading,
  .mandate-grid,
  .people > .section-heading,
  .commitment-cycle,
  .assignment-example,
  .blocker-grid,
  .reviews > .section-heading,
  .review-ladder {
    width: 100%;
  }

  .journey-map {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
  }

  .journey-map::before {
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: 1px;
    height: auto;
  }

  .phase-node {
    grid-template-columns: 42px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.15rem 0.8rem;
    padding: 0 0 1.7rem;
  }

  .node-marker {
    grid-row: 1 / 3;
    width: 41px;
    height: 41px;
    margin: 0;
  }

  .node-range {
    align-self: end;
  }

  .phase-node strong {
    grid-column: 2;
    align-self: start;
    max-width: none;
  }

  .phase-node small {
    grid-column: 3;
    grid-row: 1 / 3;
    text-align: right;
  }

  .phase-workspace,
  .start-panel,
  .weekly {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .phase-brief {
    padding: 1.5rem;
  }

  .deliverable-fields,
  .metric-form-grid,
  .review-fields {
    grid-template-columns: 1fr;
  }

  .deliverable-fields .field-small:last-of-type,
  .review-fields .field:last-child {
    grid-column: auto;
  }

  .deliverable-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .mandate-grid {
    grid-template-columns: 1fr;
  }

  .mandate-item summary {
    grid-template-columns: 14px 1fr;
  }

  .mandate-item summary small {
    grid-column: 2;
  }

  .weekly-rhythm li {
    grid-template-columns: 92px 1fr;
  }

  .weekly-rhythm span {
    grid-column: 2;
  }

  .commitment-cycle {
    grid-template-columns: 1fr;
  }

  .commitment-cycle li,
  .commitment-cycle li:nth-child(4),
  .commitment-cycle li:nth-child(5) {
    min-height: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .commitment-cycle span {
    margin-bottom: 1rem;
  }

  .assignment-example {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .blocker-grid {
    grid-template-columns: 1fr;
  }

  .blocker-grid article:nth-child(3),
  .blocker-grid article:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .metrics-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-card:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 230px;
  }

  .metric-card:first-child strong {
    margin-top: 2rem;
  }

  .review-card {
    grid-template-columns: 78px 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .review-day-60,
  .review-day-90 {
    margin-left: 0;
  }

  .review-number {
    padding-right: 0.75rem;
  }

  .review-number strong {
    font-size: 3rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 2rem;
    padding: 3rem 1rem;
  }

  .footer-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
  }

  .history-list article {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 420px) {
  .role-choice span {
    align-items: flex-start;
    flex-direction: column;
  }

  .role-choice small {
    text-align: left;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card:first-child {
    grid-column: auto;
  }

  .review-card {
    grid-template-columns: 1fr;
  }

  .review-number {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0 0 0.7rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .review-number strong {
    font-size: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fffdf9;
    font-size: 11px;
  }

  .site-header,
  .hero-actions,
  .button,
  .text-button,
  .actor-button,
  .deliverable-fields,
  .deliverable-footer,
  .footer-actions,
  dialog,
  .toast {
    display: none !important;
  }

  .hero {
    min-height: 0;
    padding-top: 2rem;
  }

  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    break-inside: avoid;
  }

  .now-panel {
    min-height: 330px;
    box-shadow: none;
  }

  .deliverable-card {
    break-inside: avoid;
  }
}
