:root {
  --bg: #f8fbfa;
  --paper: #ffffff;
  --ink: #081a2b;
  --muted: #506171;
  --soft: #e4ebe9;
  --soft-2: #edf4f1;
  --teal: #008f86;
  --teal-dark: #006a65;
  --blue: #2f66d8;
  --navy: #071827;
  --gold: #c99731;
  --shadow: 0 22px 60px rgba(7, 24, 39, 0.11);
  --shadow-soft: 0 14px 36px rgba(7, 24, 39, 0.08);
  --radius: 8px;
  --max: 1160px;
  --header-height: 76px;
  --anchor-gap: 12px;
  --section-top-padding: 76px;
  --work-top-padding: 52px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 143, 134, 0.06), transparent 26rem),
    linear-gradient(180deg, #fbfdfc 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

.top-anchor {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(8, 26, 43, 0.09);
  background: rgba(251, 253, 252, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 143, 134, 0.25);
  border-radius: 50%;
  background: #fff;
  color: var(--teal-dark);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--teal);
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.is-active {
  color: var(--teal-dark);
}

.nav-links a:focus-visible {
  outline: 2px solid rgba(0, 143, 134, 0.34);
  outline-offset: 5px;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--soft);
  border-radius: 50%;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.section-band {
  border-bottom: 1px solid rgba(8, 26, 43, 0.08);
  scroll-margin-top: calc(var(--header-height) + var(--anchor-gap) - var(--section-top-padding));
}

.alt-band {
  background: rgba(237, 244, 241, 0.58);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px;
}

.hero .section-inner {
  padding-top: 48px;
  padding-bottom: 40px;
}

#work .section-inner {
  padding-top: 52px;
}

#work {
  scroll-margin-top: calc(var(--header-height) + var(--anchor-gap) - var(--work-top-padding));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: clamp(44px, 5.4vw, 84px);
  align-items: start;
}

.hero-copy {
  padding-top: clamp(32px, 4.8vw, 62px);
}

.eyebrow,
.kicker,
.panel-label {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-eyebrow {
  display: grid;
  gap: 3px;
}

h1,
h2,
h3,
p,
strong,
code,
.eyebrow,
.kicker,
.panel-label {
  overflow-wrap: anywhere;
}

.hero-copy,
.hero-workbench,
.panel,
.project-card,
.tool-card,
.video-card,
.quest-list article,
.writing-list article,
.writing-card,
.help-card,
.form-shell {
  min-width: 0;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(2.55rem, 3.05vw, 3.45rem);
  line-height: 1.02;
}

h1 span {
  display: block;
}

@media (min-width: 561px) {
  h1 span {
    white-space: nowrap;
  }
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.25rem);
}

h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.hero-lede,
.section-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-status {
  max-width: 650px;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-status strong {
  border: 1px solid rgba(0, 143, 134, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  padding: 0.34rem 0.58rem;
  font-size: 0.78rem;
  line-height: 1;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(0, 143, 134, 0.1);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.82rem 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.button-secondary {
  border: 1px solid var(--soft);
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(0, 143, 134, 0.36);
  box-shadow: var(--shadow-soft);
}

.hero-workbench {
  position: relative;
  height: 660px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.hero-workbench > .panel {
  min-height: 0;
  overflow: hidden;
}

.hero-workbench::before {
  content: "";
  position: absolute;
  inset: -26px;
  z-index: -1;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(0, 143, 134, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 143, 134, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 50%, #000 45%, transparent 78%);
}

.hero-workbench::after {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: -2;
  background: radial-gradient(circle, rgba(0, 143, 134, 0.12), transparent 64%);
  filter: blur(20px);
}

.panel {
  border: 1px solid rgba(8, 26, 43, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-workbench .panel:hover {
  border-color: rgba(0, 143, 134, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-5px) rotate(0.5deg);
}

.metric-panel {
  grid-column: 1 / span 3;
  grid-row: 1 / span 3;
  padding: 18px;
}

.metric-panel strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.line-chart {
  height: 62px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
  border-bottom: 1px solid var(--soft);
}

.line-chart span {
  display: block;
  height: 44%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(0, 143, 134, 0.85), rgba(0, 143, 134, 0.14));
  transform-origin: bottom;
}

.line-chart span:nth-child(2) {
  height: 58%;
}

.line-chart span:nth-child(3) {
  height: 50%;
}

.line-chart span:nth-child(4) {
  height: 72%;
}

.line-chart span:nth-child(5) {
  height: 86%;
}

.dark-panel {
  grid-column: 4 / span 3;
  grid-row: 1 / span 3;
  padding: 18px;
  background: linear-gradient(135deg, #071827, #073145);
  color: #fff;
}

.dark-panel .panel-label,
.dark-panel strong {
  color: #fff;
}

.dark-panel strong,
.small-panel strong {
  font-size: 0.95rem;
  line-height: 1.45;
}

.bar-chart {
  height: 62px;
  margin-top: 10px;
  display: flex;
  align-items: end;
  gap: 12px;
}

.bar-chart span {
  flex: 1;
  min-width: 12px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #21b7ad, #0b5261);
  transform-origin: bottom;
}

.video-panel {
  grid-column: 1 / span 3;
  grid-row: 4 / span 5;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  overflow: hidden;
}

.hero-video-link {
  color: inherit;
  cursor: pointer;
}

.hero-video-link:focus-visible {
  outline: 3px solid rgba(0, 143, 134, 0.34);
  outline-offset: 4px;
}

.video-panel > div:last-child {
  padding: 18px;
  align-self: end;
}

.video-art {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 24, 39, 0.74), rgba(7, 24, 39, 0.16)),
    linear-gradient(135deg, #d4ddd8, #435461);
}

.hero-headshot {
  position: absolute;
  left: 22px;
  bottom: 34px;
  width: 132px;
  height: 132px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(7, 24, 39, 0.32);
}

.play-button {
  position: absolute;
  right: 22px;
  bottom: 38px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 180ms ease, background 180ms ease;
}

.hero-video-link:hover .play-button,
.hero-video-link:focus-visible .play-button {
  background: #fff;
  transform: translateX(2px);
}

.play-button::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 13px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid var(--navy);
}

.code-panel {
  grid-column: 4 / span 3;
  grid-row: 7 / span 2;
  padding: 16px;
  background: #061523;
  color: #bde9e4;
  overflow: hidden;
}

.window-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6b5e;
}

.window-dots span:nth-child(2) {
  background: #ffca57;
}

.window-dots span:nth-child(3) {
  background: #30d17a;
}

.code-panel code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
}

.code-panel code::after {
  content: "";
  width: 0.58em;
  height: 1em;
  display: inline-block;
  margin-left: 4px;
  transform: translateY(2px);
  background: #bde9e4;
  animation: cursor-blink 1.1s steps(2, start) infinite;
}

.small-panel {
  grid-column: 4 / span 3;
  grid-row: 4 / span 3;
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-intro {
  max-width: 610px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.text-link {
  color: var(--navy);
  font-weight: 850;
  white-space: nowrap;
}

.text-link::after {
  content: " ->";
  color: var(--teal);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card,
.tool-card,
.video-card,
.quest-list article,
.writing-list article,
.writing-card,
.help-card {
  border: 1px solid rgba(8, 26, 43, 0.1);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover,
.tool-card:hover,
.video-card:hover,
.quest-list article:hover,
.writing-list article:hover,
.writing-card:hover,
.writing-card:focus-visible,
.help-card:hover {
  border-color: rgba(0, 143, 134, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.feature-card {
  min-height: 278px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature-card > div:last-child {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.project-card p,
.tool-card p,
.video-card p,
.quest-list p,
.writing-list p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.project-icon {
  width: 58px;
  height: 58px;
  position: relative;
  border-radius: var(--radius);
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  box-shadow: 0 10px 22px rgba(7, 24, 39, 0.16);
}

.project-icon span {
  width: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.project-icon span:nth-child(1) {
  height: 16px;
}

.project-icon span:nth-child(2) {
  height: 25px;
}

.project-icon span:nth-child(3) {
  height: 36px;
}

.project-icon.teal {
  background: linear-gradient(135deg, #008f86, #053540);
}

.project-icon.navy {
  background: linear-gradient(135deg, #071827, #255b73);
}

.project-icon.blue {
  background: linear-gradient(135deg, #2f66d8, #073145);
}

.planning-icon {
  background: linear-gradient(135deg, #008f86, #053540);
}

.planning-icon span,
.report-icon span,
.exchange-icon span {
  display: none;
}

.report-icon {
  background: linear-gradient(135deg, #071827, #255b73);
}

.exchange-icon {
  background: linear-gradient(135deg, #2f66d8, #073145);
}

.planning-icon::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 11px 0 #fff, 0 22px 0 #fff;
}

.report-icon::before {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 15px;
  width: 7px;
  height: 17px;
  border-radius: 2px 2px 0 0;
  background: #fff;
  box-shadow: 11px -8px 0 #fff, 22px -15px 0 #fff;
}

.report-icon::after {
  content: "";
  position: absolute;
  left: 13px;
  bottom: 12px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.exchange-icon::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 22px 14px 0 #fff;
}

.exchange-icon::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 30px;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  transform: rotate(32deg);
}

.project-logo-tile {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(8, 26, 43, 0.08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 22px rgba(7, 24, 39, 0.12);
}

.project-logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-logo-tile.is-rewealth {
  background: #3d93ba;
}

.project-logo-tile.is-plannerxchange {
  padding: 9px;
  background:
    linear-gradient(135deg, rgba(232, 97, 60, 0.08), transparent 46%),
    linear-gradient(315deg, rgba(108, 92, 231, 0.08), transparent 42%),
    #fff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 143, 134, 0.18);
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--teal-dark);
  padding: 0.28rem 0.52rem;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill.compact {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-row span {
  border-radius: 999px;
  background: var(--soft-2);
  color: #36515a;
  padding: 0.35rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 850;
  transition: color 180ms ease, transform 180ms ease;
}

.feature-card .card-link,
.tool-card .card-link,
.video-card .card-link,
.writing-list article .card-link,
.writing-card .card-link {
  margin-top: auto;
}

.card-link::after {
  content: "->";
  color: var(--teal);
  transition: transform 180ms ease;
}

.project-card:hover .card-link,
.tool-card:hover .card-link,
.video-card:hover .card-link,
.writing-list article:hover .card-link,
.writing-card:hover .card-link,
.writing-card:focus-visible .card-link {
  color: var(--teal-dark);
  transform: translateX(2px);
}

.project-card:hover .card-link::after,
.tool-card:hover .card-link::after,
.video-card:hover .card-link::after,
.writing-list article:hover .card-link::after,
.writing-card:hover .card-link::after,
.writing-card:focus-visible .card-link::after {
  transform: translateX(4px);
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  align-items: start;
}

.quest-list {
  display: grid;
  gap: 14px;
}

.quest-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  padding: 20px;
}

.quest-number {
  grid-row: span 2;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.help-card {
  min-height: 230px;
  padding: 22px;
}

.help-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 143, 134, 0.2);
  border-radius: 50%;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.help-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tool-card {
  position: relative;
  min-height: 224px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.tool-mark {
  width: 46px;
  height: 46px;
  display: block;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #008f86, #0a3f4a);
  box-shadow: 0 10px 22px rgba(7, 24, 39, 0.14);
}

.clock-mark {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 37%, #fff 39% 42%, transparent 44%),
    conic-gradient(from -90deg, #fff 0 28%, transparent 0),
    linear-gradient(135deg, #0aa79c, #0b5360);
}

.document-mark {
  background:
    linear-gradient(#fff, #fff) 14px 12px / 18px 3px no-repeat,
    linear-gradient(#fff, #fff) 14px 21px / 18px 3px no-repeat,
    linear-gradient(#fff, #fff) 14px 30px / 13px 3px no-repeat,
    linear-gradient(135deg, #071827, #2f5668);
}

.list-mark {
  background:
    linear-gradient(#fff, #fff) 13px 13px / 20px 4px no-repeat,
    linear-gradient(#fff, #fff) 13px 23px / 20px 4px no-repeat,
    linear-gradient(#fff, #fff) 13px 33px / 20px 4px no-repeat,
    linear-gradient(135deg, #009d92, #0d4b5d);
}

.bank-mark {
  background:
    linear-gradient(#fff, #fff) 10px 34px / 26px 4px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 7px, #fff 8px 11px, transparent 12px 18px) 11px 18px / 24px 14px no-repeat,
    linear-gradient(135deg, #2f66d8, #123663);
}

.trend-mark {
  background:
    linear-gradient(135deg, transparent 42%, #fff 43% 48%, transparent 49%),
    linear-gradient(45deg, transparent 50%, #fff 51% 56%, transparent 57%),
    linear-gradient(135deg, #071827, #0d314a);
}

.plus-mark {
  border: 1px solid rgba(0, 143, 134, 0.5);
  background:
    linear-gradient(var(--teal), var(--teal)) center / 20px 3px no-repeat,
    linear-gradient(var(--teal), var(--teal)) center / 3px 20px no-repeat,
    #f7fbfa;
}

.tool-card.is-muted {
  box-shadow: none;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.video-card h3,
.video-card p,
.video-card .card-link {
  padding-inline: 16px;
}

.video-card h3 {
  padding-top: 16px;
}

.video-card p {
  padding-bottom: 0;
}

.video-card .card-link {
  margin-bottom: 18px;
}

.thumbnail {
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  padding: 20px;
  color: #fff;
  font-weight: 850;
  line-height: 1.1;
  overflow: hidden;
}

.thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(7, 24, 39, 0.14);
  opacity: 0;
  transition: opacity 180ms ease;
}

.thumbnail > * {
  position: relative;
  z-index: 1;
}

.video-card:hover .thumbnail::before {
  opacity: 1;
}

.photo-style {
  background:
    radial-gradient(circle at 65% 30%, #d2ad91 0 11%, transparent 12%),
    linear-gradient(135deg, rgba(7, 24, 39, 0.66), rgba(7, 24, 39, 0.05)),
    linear-gradient(135deg, #9aa79e, #263c4b);
}

.photo-style.two {
  background:
    radial-gradient(circle at 38% 32%, #d2ad91 0 11%, transparent 12%),
    linear-gradient(135deg, rgba(7, 24, 39, 0.6), rgba(7, 24, 39, 0.05)),
    linear-gradient(135deg, #bec6bf, #2d4758);
}

.graphic-style {
  background:
    linear-gradient(90deg, rgba(33, 183, 173, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(33, 183, 173, 0.16) 1px, transparent 1px),
    linear-gradient(135deg, #071827, #0b5360);
  background-size: 28px 28px, 28px 28px, auto;
}

.chart-style {
  background:
    linear-gradient(135deg, transparent 51%, rgba(33, 183, 173, 0.75) 52% 54%, transparent 55%),
    linear-gradient(135deg, #073145, #006a65);
}

.duration {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  background: rgba(7, 24, 39, 0.82);
  padding: 0.2rem 0.48rem;
  font-size: 0.78rem;
}

.category-label {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  padding: 0.22rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 850;
}

.play-overlay {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.play-overlay::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid var(--navy);
}

.video-card:hover .play-overlay,
.video-card:focus-within .play-overlay {
  opacity: 1;
  transform: translateY(0);
}

.writing-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
}

.writing-list {
  display: grid;
  gap: 14px;
}

.writing-list article,
.writing-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.writing-list .kicker {
  margin-bottom: 8px;
}

.note-library-link {
  display: inline-flex;
  margin-top: 22px;
}

.note-hero .section-inner {
  padding-top: 64px;
  padding-bottom: 54px;
}

.breadcrumb-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb::before {
  content: "<-";
  color: var(--teal);
}

.note-title {
  max-width: 880px;
}

.note-lede {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.75;
}

.note-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.note-meta-row span,
.note-type {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 143, 134, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--teal-dark);
  padding: 0.38rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note-type {
  align-self: flex-start;
}

.note-shell {
  display: grid;
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 0.68fr);
  gap: 44px;
  align-items: start;
}

.note-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 14px;
}

.note-sidebar-card,
.note-body,
.note-index-card {
  border: 1px solid rgba(8, 26, 43, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.note-sidebar-card {
  padding: 22px;
}

.note-sidebar-card h2,
.note-sidebar-card h3 {
  margin: 0 0 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.note-sidebar-card a {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.note-sidebar-card a:hover,
.note-sidebar-card a:focus-visible {
  color: var(--teal-dark);
}

.note-sidebar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.note-body {
  padding: clamp(26px, 4vw, 46px);
}

.note-body h2 {
  margin: 34px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.2vw, 2.15rem);
  line-height: 1.15;
}

.note-body h2:first-child {
  margin-top: 0;
}

.note-body h3 {
  margin-top: 24px;
  font-size: 1.05rem;
}

.note-body p,
.note-body li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.note-body p {
  margin: 0 0 16px;
}

.note-body ul,
.note-body ol {
  margin: 0 0 20px;
  padding-left: 1.2rem;
}

.note-body li + li {
  margin-top: 8px;
}

.note-body strong {
  color: var(--ink);
}

.note-callout {
  margin: 28px 0;
  border-left: 4px solid var(--teal);
  background: var(--soft-2);
  padding: 18px 20px;
}

.note-callout p:last-child {
  margin-bottom: 0;
}

.note-related {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.note-related a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(8, 26, 43, 0.1);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 800;
}

.note-related a::after {
  content: "->";
  color: var(--teal);
}

.note-related a:hover,
.note-related a:focus-visible {
  border-color: rgba(0, 143, 134, 0.3);
  color: var(--teal-dark);
}

.note-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.note-index-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.note-index-card:hover,
.note-index-card:focus-within {
  border-color: rgba(0, 143, 134, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.note-index-card h2 {
  margin-top: 18px;
  font-size: 1.35rem;
}

.note-index-card p {
  margin: 0;
  color: var(--muted);
}

.note-index-card .card-link {
  margin-top: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 36px;
  align-items: center;
}

.portrait-card {
  width: 156px;
  height: 156px;
  border-radius: 50%;
}

.portrait-image {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.proof-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(8, 26, 43, 0.1);
  border-radius: var(--radius);
  background: rgba(8, 26, 43, 0.1);
}

.proof-strip div {
  min-height: 118px;
  padding: 22px;
  background: #fff;
}

.proof-strip span {
  display: block;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-strip strong {
  display: block;
  line-height: 1.35;
}

.contact-band .section-inner {
  padding-bottom: 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 38px;
  align-items: start;
}

.contact-grid .button {
  margin-top: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.copy-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-shell {
  min-height: 420px;
  border: 1px solid rgba(8, 26, 43, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-shell iframe {
  width: 100%;
  min-height: 620px;
  border: 0;
}

.form-placeholder {
  min-height: 420px;
  display: grid;
  align-content: center;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(0, 143, 134, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 143, 134, 0.08) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
}

.form-placeholder p {
  margin: 0;
  color: var(--muted);
}

.form-placeholder h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

code {
  border-radius: 5px;
  background: rgba(7, 24, 39, 0.07);
  padding: 0.08rem 0.28rem;
  font-size: 0.92em;
}

.site-footer {
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.55fr);
  gap: 34px;
  padding-top: 52px;
  padding-bottom: 44px;
}

.footer-brand {
  margin-bottom: 18px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer a:not(.brand) {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.footer-bottom {
  padding-top: 16px;
  padding-bottom: 18px;
  border-top: 1px solid rgba(8, 26, 43, 0.08);
  color: var(--muted);
  font-size: 0.86rem;
}

body.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

body.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.has-reveal [data-reveal].is-visible .line-chart span,
body.has-reveal [data-reveal].is-visible .bar-chart span {
  animation: chart-rise 720ms ease both;
}

body.has-reveal [data-reveal].is-visible .line-chart span:nth-child(2),
body.has-reveal [data-reveal].is-visible .bar-chart span:nth-child(2) {
  animation-delay: 90ms;
}

body.has-reveal [data-reveal].is-visible .line-chart span:nth-child(3),
body.has-reveal [data-reveal].is-visible .bar-chart span:nth-child(3) {
  animation-delay: 140ms;
}

body.has-reveal [data-reveal].is-visible .line-chart span:nth-child(4),
body.has-reveal [data-reveal].is-visible .bar-chart span:nth-child(4) {
  animation-delay: 190ms;
}

body.has-reveal [data-reveal].is-visible .line-chart span:nth-child(5),
body.has-reveal [data-reveal].is-visible .bar-chart span:nth-child(5) {
  animation-delay: 240ms;
}

@keyframes chart-rise {
  from {
    transform: scaleY(0.12);
    opacity: 0.38;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes cursor-blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

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

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

  body.has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-workbench {
    max-width: 700px;
    width: 100%;
    justify-self: center;
  }

  .project-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .tool-grid,
  .help-grid,
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
    --section-top-padding: 58px;
    --work-top-padding: 34px;
  }

  .nav-shell {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(8, 26, 43, 0.1);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 13px 8px;
  }

  .section-inner {
    padding: 58px 18px;
  }

  h1 {
    font-size: clamp(2.1rem, 7vw, 3rem);
  }

  .hero .section-inner {
    padding-top: 36px;
    padding-bottom: 34px;
  }

  .hero-copy {
    padding-top: 0;
  }

  #work .section-inner {
    padding-top: 34px;
  }

  .section-heading,
  .split-section,
  .writing-layout,
  .about-grid,
  .note-shell {
    display: block;
  }

  .section-heading .text-link {
    display: inline-block;
    margin-top: 18px;
  }

  .quest-list,
  .writing-list,
  .proof-strip,
  .note-sidebar {
    margin-top: 26px;
  }

  .note-sidebar {
    position: static;
  }

  .note-index-grid {
    grid-template-columns: 1fr;
  }

  .portrait-image {
    margin-bottom: 24px;
  }

  .hero-workbench {
    height: auto;
    min-height: 178px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 178px;
    gap: 12px;
  }

  .metric-panel,
  .dark-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .metric-panel,
  .dark-panel {
    padding: 16px;
    min-width: 0;
  }

  .metric-panel strong,
  .dark-panel strong {
    font-size: 0.96rem;
    line-height: 1.35;
  }

  .line-chart,
  .bar-chart {
    height: 62px;
  }

  .bar-chart {
    gap: 7px;
  }

  .video-panel,
  .code-panel,
  .small-panel {
    display: none;
  }

  .tool-grid,
  .help-grid,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 560px) {
  .brand {
    font-size: 1.04rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: clamp(1.95rem, 8vw, 2.15rem);
  }

  h1 span {
    display: block;
    white-space: normal;
  }

  h1 span::after {
    content: "";
  }

  h1 span:last-child::after {
    content: "";
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-workbench {
    display: none;
  }

  .tool-grid,
  .help-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .quest-list article {
    grid-template-columns: 1fr;
  }

  .quest-number {
    margin-bottom: 10px;
  }

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

  .form-placeholder {
    padding: 24px;
  }

  .note-body {
    padding: 24px 20px;
  }
}
