@font-face {
  font-family: "DM Sans";
  src: url("body.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("heading.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("display.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #2e3034;
  --panel: #37393d;
  --raised: #414348;
  --line: #585b61;
  --ink: #f6f4ef;
  --muted: #d3d0d1;
  --accent: #ff9258;
  --accent-text: #ffac79;
  --button-ink: #25160e;
  --radius: 15px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  background: var(--bg);
}

:root[data-theme="day"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #fff;
  --raised: #edf0f3;
  --line: #ccd4db;
  --ink: #112e45;
  --muted: #4f6171;
  --accent-text: #963d08;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

body, a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 0.18em; }
button { font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 4px; }
section, .anchor-alias, #main { scroll-margin-top: 100px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
.shell { width: min(1240px, calc(100% - 88px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 16px;
  color: var(--button-ink);
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand img { width: 75px; height: auto; }
.brand span { font-size: 12px; font-weight: 750; line-height: 1.22; letter-spacing: 0.025em; }
[data-theme="day"] .brand img {
  background: #17191d;
  border-radius: 5px;
  padding: 6px;
  width: 83px;
}
.site-nav, .masthead-actions, .actions {
  display: flex;
  align-items: center;
}
.site-nav { gap: clamp(19px, 2.6vw, 38px); }
.site-nav a, .footer-row a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 630;
  text-decoration: none;
}
.site-nav a:hover, .footer-row a:hover { color: var(--ink); text-decoration: underline; }
.masthead-actions { gap: 14px; }
.theme-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--raised);
}
.theme-switch button {
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 680;
}
.theme-switch button[aria-pressed="true"] {
  background: var(--panel);
  color: var(--accent-text);
  box-shadow: 0 1px 4px #0002;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
  line-height: 1.25;
  transition: background 150ms ease, border-color 150ms ease;
}
.button.small { min-height: 42px; padding-inline: 14px; font-size: 13px; white-space: nowrap; }
.button.primary { color: var(--button-ink); background: var(--accent); }
.button.primary:hover { background: #ffad80; }
.button.secondary { color: var(--ink); background: var(--raised); border-color: var(--line); }
.button.secondary:hover { border-color: var(--accent-text); }
.button.on-image { background: #252123e8; color: #f6f4ef; border-color: #62544d; }
.actions { flex-wrap: wrap; gap: 12px; }
.hero { padding-block: 36px 0; }
.hero-frame {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 542px;
  border: 1px solid #5b5351;
  border-radius: 19px;
  overflow: hidden;
  color: #f6f4ef;
  background: #2d292a;
  isolation: isolate;
}
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #2c292b 4%, #292629f7 33%, #272428e6 47%, #25222632 70%, #25222600 100%);
}
.hero-copy { padding: 58px clamp(28px, 5.2vw, 75px); max-width: 760px; }
.eyebrow {
  color: var(--accent-text);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.15em;
}
.hero .eyebrow { color: #ffb184; }
h1, h2, h3 { font-family: var(--display); }
h1 {
  max-width: 625px;
  margin-top: 14px;
  font-size: clamp(60px, 6.2vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  font-weight: 600;
  text-wrap: balance;
}
h1 em { display: block; color: #ff9258; font-weight: 800; }
.hero-description {
  max-width: 475px;
  margin: 23px 0 27px;
  color: #dedad8;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.62;
}
.hero-frame :focus-visible { outline-color: #ffac79; }
.section { padding-block: 70px 0; }
.section-heading { max-width: 720px; margin-bottom: 25px; }
.section-heading > .eyebrow { margin-bottom: 5px; }
.section-heading > p:last-child { max-width: 640px; margin-top: 9px; color: var(--muted); }
h2 { font-size: clamp(37px, 4.4vw, 56px); font-weight: 600; line-height: 1.04; letter-spacing: -0.016em; text-wrap: balance; }
h3 { font-size: clamp(24px, 2.7vw, 32px); font-weight: 600; line-height: 1.13; }
.workbook {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.workbook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 19px 25px;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
}
.workbook-title { color: var(--ink); font-size: 17px; font-weight: 750; }
.compact { color: var(--muted); font-size: 13px; }
.tab-list { display: flex; gap: 4px; }
.tab-list button {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] {
  color: var(--accent-text);
  background: var(--panel);
  border-color: var(--line);
}
.sample-panel { padding: 22px 25px 23px; min-height: 292px; }
.sample-panel + .sample-panel { border-top: 1px solid var(--line); }
.sample-panel[role="tabpanel"] { border-top: 0; }
.sample-panel:focus-visible { outline-offset: -5px; }
.sheet-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sheet-scroll:focus-visible { outline-offset: -3px; }
.sheet-scroll img { display: block; width: 100%; height: auto; min-width: 720px; max-width: none; }
.soule-sheet img, .verification-sheet img { min-width: 1050px; }
.sample-note { margin-top: 10px; }
.workbook-download {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 15px 25px;
  border-top: 1px solid var(--line);
}
.workflow { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workflow-card, .founder, .overview-media, .contact {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.workflow-card { padding: 24px 25px 26px; }
.workflow-card p, .founder p:not(.eyebrow), .contact p { color: var(--muted); }
.workflow-card p { margin-top: 10px; }
.founder {
  display: grid;
  grid-template-columns: minmax(245px, 0.7fr) minmax(0, 1.5fr);
  gap: 33px;
  padding: clamp(26px, 4vw, 52px);
}
.founder-identity h2 { margin: 5px 0 11px; }
.founder-identity { border-right: 1px solid var(--line); padding-right: 24px; }
.text-link { display: inline-block; margin-top: 16px; color: var(--accent-text); font-weight: 670; }
.founder-story p { max-width: 60ch; margin-top: 12px; }
.overview-media { overflow: hidden; }
.overview-media video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #151417; }
.video-transcript { padding: 16px 21px; border-top: 1px solid var(--line); }
.video-transcript summary { cursor: pointer; font-weight: 730; }
.video-transcript p { margin-top: 12px; color: var(--muted); max-width: 72ch; }
.studio-run {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
  margin-top: 18px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.studio-run h3 { margin: 5px 0 9px; }
.studio-run-copy > p:not(.eyebrow), .run-checks { color: var(--muted); }
.run-checks { padding-inline-start: 1.2em; margin: 12px 0 0; }
.run-checks li + li { margin-top: 5px; }
.run-checks strong { color: var(--ink); }
.studio-run-proof { margin: 0; }
.studio-run-proof img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.studio-run-proof figcaption { margin-top: 7px; }
.contact-section { padding-bottom: 64px; }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 27px 50px;
  align-items: center;
  padding: clamp(26px, 4vw, 52px);
}
.contact p { max-width: 56ch; margin-top: 11px; }
.contact-actions { display: grid; gap: 13px; justify-items: center; }
.contact-actions > a:not(.button) { color: var(--muted); font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 18px; padding-block: 25px; }
.anchor-alias { display: block; }

@media (max-width: 1020px) {
  .shell { width: min(1240px, calc(100% - 56px)); }
  .masthead { min-height: 72px; gap: 15px; }
  .masthead-actions { gap: 8px; }
  .site-nav { gap: 18px; }
  .hero-copy { max-width: 660px; }
  .hero-image { object-position: 70% center; }
  .hero-frame { min-height: 493px; }
  .workflow-card { padding: 20px; }
}

@media (max-width: 780px) {
  .shell { width: calc(100% - 36px); }
  .masthead { flex-wrap: wrap; gap: 0 11px; padding-block: 10px 7px; }
  .site-nav { width: 100%; order: 3; margin-top: 7px; gap: 22px; }
  .site-nav a { padding-block: 3px; }
  .masthead-actions > .button { display: none; }
  .hero { padding-top: 20px; }
  .hero-frame { min-height: 480px; align-items: start; }
  .hero-image { object-position: 75% bottom; }
  .hero-frame::after { background: linear-gradient(139deg, #2b282bfd 20%, #282529eb 51%, #25222641 83%); }
  .hero-copy { padding: 41px 28px; }
  h1 { font-size: clamp(46px, 9.2vw, 69px); }
  .section { padding-top: 52px; }
  .workflow { grid-template-columns: 1fr; }
  .founder, .contact, .studio-run { grid-template-columns: 1fr; }
  .founder-identity { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 19px; }
  .contact-actions { justify-items: start; }
  .footer-row { flex-wrap: wrap; }
}

@media (max-width: 460px) {
  .shell { width: calc(100% - 28px); }
  .hero-frame { min-height: 504px; }
  .hero-copy { padding: 35px 21px; }
  .hero-description { margin-block: 16px 21px; }
  .workbook-header, .sample-panel, .workbook-download { padding-inline: 15px; }
  .sample-panel { min-height: 0; }
  .tab-list { width: 100%; }
  .tab-list button { flex: 1; padding: 9px 7px; text-align: center; font-size: 13px; }
  .actions .button { padding-inline: 13px; }
  .brand { gap: 8px; }
  .brand img { width: 68px; }
  .site-nav { gap: 17px; }
  .site-nav a { font-size: 13px; }
}

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