@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #101114;
  --surface: #17191e;
  --surface-strong: #20232a;
  --ink: #f1f3f7;
  --muted: #a7acb7;
  --faint: #838b9a;
  --line: #303541;
  --accent: #6f8cff;
  --accent-bg: #4162e6;
  --accent-ink: #f7f8ff;
  --accent-soft: #1c2a66;
  --header: #101114;
  --dialog-scrim: rgb(3 5 10 / 0.78);
  --max: 1280px;
}

html[data-theme="light"] {
  --bg: #f2f4f8;
  --surface: #e7eaf0;
  --surface-strong: #daddE6;
  --ink: #151821;
  --muted: #555d6d;
  --faint: #606876;
  --line: #c7ccd7;
  --accent: #3159ee;
  --accent-bg: #3159ee;
  --accent-ink: #f7f8ff;
  --accent-soft: #dfe6ff;
  --header: #f2f4f8;
  --dialog-scrim: rgb(23 27 38 / 0.52);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent calc(50% - 1px), color-mix(in srgb, var(--line) 32%, transparent) 50%, transparent calc(50% + 1px));
  opacity: 0.36;
}

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

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

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

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--accent-bg);
  color: var(--accent-ink);
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wordmark-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 500 12px/1 "IBM Plex Mono", monospace;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
}

.desktop-nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.desktop-nav .nav-contact {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--surface);
}

.theme-icon {
  font-size: 18px;
}

main,
footer {
  max-width: var(--max);
  margin: 0 auto;
  border-inline: 1px solid var(--line);
}

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(60px, 8vw, 108px) clamp(24px, 6vw, 84px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.work-kicker,
.mono-label {
  margin: 0 0 20px;
  color: var(--accent);
  font: 500 12px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(52px, 5.8vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-summary {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.35;
}

.hero-actions,
.contact-actions,
.brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  border-color: var(--accent-bg);
  background: var(--accent-bg);
  color: var(--accent-ink);
}

.button.primary:hover {
  background: color-mix(in srgb, var(--accent-bg) 90%, #000);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.hero-visual {
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 520px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.portrait-frame {
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-caption {
  display: grid;
  gap: 3px;
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.portrait-caption strong {
  color: var(--ink);
  font-size: 20px;
}

.role-lens {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px 72px;
  padding: 80px clamp(24px, 6vw, 84px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.role-intro h2,
.section-heading h2,
.evidence-intro h2,
.experience h2,
.contact h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.role-intro p,
.section-heading p,
.evidence-intro p,
.contact-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
}

.role-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1;
  border: 1px solid var(--line);
}

.role-tab {
  min-height: 58px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}

.role-tab:last-child {
  border-right: 0;
}

.role-tab:hover {
  color: var(--ink);
  background: var(--surface-strong);
}

.role-tab.active {
  background: var(--accent-bg);
  color: var(--accent-ink);
}

.role-readout {
  grid-column: 2;
  min-height: 290px;
  padding: 40px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
}

.role-readout h3 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.role-readout > p:not(.mono-label) {
  max-width: 720px;
  color: var(--muted);
}

.role-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.role-proof span {
  display: block;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.role-proof strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font: 500 13px/1.4 "IBM Plex Mono", monospace;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.proof-strip article {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.proof-strip article:last-child {
  border-right: 0;
}

.proof-strip strong {
  max-width: 12ch;
  font: 600 clamp(28px, 3vw, 44px)/1.02 "Hanken Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.proof-strip span {
  color: var(--muted);
  font-size: 15px;
}

.selected-work,
.evidence-section,
.experience {
  padding: 112px clamp(24px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 60px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
}

.work-grid > article {
  border: 1px solid var(--line);
  overflow: hidden;
}

.work-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 600px;
  background: var(--surface);
}

.work-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}

.work-grid h3 {
  margin: 0;
  font-size: clamp(29px, 3.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.work-grid p:not(.work-kicker) {
  color: var(--muted);
}

.evidence-pairs,
.case-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0;
}

.evidence-pairs div,
.case-preview div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.evidence-pairs dt,
.case-preview dt {
  color: var(--faint);
  font: 500 11px/1.4 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.evidence-pairs dd,
.case-preview dd {
  margin: 7px 0 0;
  font-size: 15px;
}

.system-map {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(28px, 5vw, 68px);
  background: var(--accent-soft);
}

.map-stage {
  position: relative;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--line));
  color: color-mix(in srgb, var(--ink) 84%, var(--accent));
  font: 500 13px/1.4 "IBM Plex Mono", monospace;
}

.map-stage::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -13px;
  width: 1px;
  height: 12px;
  background: var(--accent);
}

.map-stage:last-child::after {
  display: none;
}

.map-stage.active {
  background: var(--accent-bg);
  color: var(--accent-ink);
}

.work-standard {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(28px, 4vw, 54px);
  background: var(--surface);
}

.work-standard .case-preview {
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 22px 0;
}

.work-standard .text-link {
  margin-top: auto;
}

.work-standard h3 {
  font-size: clamp(28px, 3.2vw, 46px);
}

.work-blue {
  background: var(--accent-bg);
  color: var(--accent-ink);
  border-color: var(--accent-bg) !important;
}

.work-blue .work-kicker,
.work-blue p:not(.work-kicker),
.work-blue .text-link {
  color: var(--accent-ink);
}

.work-blue .case-preview dt {
  color: var(--accent-ink);
}

.work-image {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--surface);
}

.work-image img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #050914;
}

.work-image-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 4vw, 56px);
}

.work-image-copy h3 {
  max-width: 760px;
}

.work-image-copy > p:not(.work-kicker) {
  max-width: 680px;
  color: var(--muted);
}

.work-image-copy .case-preview {
  width: min(100%, 760px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 18px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}

.text-link:hover {
  color: var(--accent);
}

/* Tabler-style arrow-up-right geometry, rendered as a mask to avoid native glyph fallback. */
.external-link-glyph {
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19L19 5'/%3E%3Cpath d='M9 5h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19L19 5'/%3E%3Cpath d='M9 5h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.evidence-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 72px;
}

.evidence-ledger article {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-ledger article:first-child {
  padding-top: 0;
}

.evidence-ledger article:last-child {
  border-bottom: 0;
}

.ledger-index,
.ledger-proof {
  font: 500 12px/1.5 "IBM Plex Mono", monospace;
  color: var(--accent);
}

.ledger-proof {
  color: var(--muted);
  text-align: right;
}

.evidence-ledger h3,
.principle-list h3,
.timeline h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.evidence-ledger p,
.principle-list p,
.timeline p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.operating-principles {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 720px;
  border-bottom: 1px solid var(--line);
}

.principle-statement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 7vw, 92px);
  background: var(--accent-bg);
  color: var(--accent-ink);
}

.principle-statement .mono-label {
  color: var(--accent-ink);
}

.principle-statement blockquote {
  margin: 0;
  max-width: 780px;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.principle-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 76px);
  background: var(--surface);
}

.principle-list article {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.principle-list article:last-child {
  border-bottom: 0;
}

.timeline {
  max-width: 980px;
}

.timeline article {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.timeline article > p {
  margin: 0;
  color: var(--accent);
  font: 500 12px/1.5 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.role-progression {
  margin: 22px 0 18px;
  padding: 0;
  list-style: none;
}

.role-progression li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.role-progression strong {
  font-size: 16px;
  line-height: 1.35;
}

.role-progression span {
  margin: 2px 0 0;
  font: 500 12px/1.4 "IBM Plex Mono", monospace;
  white-space: nowrap;
}

.testimonial {
  padding: 100px clamp(24px, 9vw, 130px);
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.testimonial blockquote {
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.testimonial p {
  margin: 24px 0 0;
  color: var(--muted);
  font: 500 12px/1.5 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 44px;
  align-items: end;
  padding: 100px clamp(24px, 6vw, 84px);
}

.contact-actions {
  margin-top: 0;
  justify-content: flex-end;
}

footer {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 90px;
  padding: 24px clamp(24px, 6vw, 84px);
  color: var(--muted);
  font: 500 12px/1.5 "IBM Plex Mono", monospace;
  border-bottom: 1px solid var(--line);
}

footer a {
  color: var(--ink);
}

.footer-credit {
  justify-self: center;
  text-align: center;
}

.footer-credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-dialog,
.brief-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-height: min(900px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  overflow: auto;
}

.case-dialog::backdrop,
.brief-dialog::backdrop {
  background: var(--dialog-scrim);
}

.dialog-close {
  position: sticky;
  float: right;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.dialog-close:hover {
  border-color: var(--accent);
}

.dialog-body {
  padding: clamp(36px, 7vw, 88px);
}

.dialog-body > h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.dialog-lead {
  max-width: 800px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 21px;
}

.case-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 50px;
  margin-top: 56px;
}

.case-columns section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.case-columns h3 {
  margin: 0;
  font-size: 20px;
}

.case-columns p,
.disclosure-note {
  color: var(--muted);
}

.disclosure-note {
  margin: 48px 0 0;
  padding: 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  font-size: 14px;
}

.brief-body {
  max-width: 880px;
}

.brief-summary {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 21px;
}

.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 42px;
}

.brief-grid section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.brief-grid h3 {
  margin: 0;
  font-size: 20px;
}

.brief-grid ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.copy-status {
  min-height: 1.5em;
  color: var(--accent);
  font: 500 12px/1.5 "IBM Plex Mono", monospace;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.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;
}

#agents,
#dimevision,
#enterprise,
#experience {
  scroll-margin-top: 280px;
}

.presentation-player {
  position: sticky;
  top: 72px;
  z-index: 9;
  padding: 18px clamp(20px, 4vw, 48px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.22);
}

.presentation-player:has(details[open]) {
  position: relative;
  top: 0;
}

.presentation-main {
  display: grid;
  grid-template-columns: 54px minmax(210px, 0.75fr) minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.presentation-toggle,
.presentation-nav button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

.presentation-toggle {
  width: 54px;
  height: 54px;
  border-color: var(--accent-bg);
  background: var(--accent-bg);
  color: var(--accent-ink);
  font-weight: 800;
}

.play-pause-glyph {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.button .play-pause-glyph {
  width: 14px;
  height: 14px;
}

.play-pause-glyph::before,
.play-pause-glyph::after {
  content: "";
  position: absolute;
  top: 8%;
  height: 84%;
  background: currentColor;
  transition: left 160ms ease, right 160ms ease, width 160ms ease, opacity 120ms ease;
}

.play-pause-glyph::before {
  left: 18%;
  width: 72%;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.play-pause-glyph::after {
  right: 14%;
  width: 28%;
  border-radius: 1px;
  opacity: 0;
}

.play-pause-glyph.is-playing::before {
  left: 14%;
  width: 28%;
  border-radius: 1px;
  clip-path: none;
}

.play-pause-glyph.is-playing::after {
  opacity: 1;
}

.direction-glyph {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.direction-glyph::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: calc(50% - 1px);
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
}

.direction-glyph::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.direction-glyph.is-next::after {
  right: 2px;
  transform: rotate(45deg);
}

.direction-glyph.is-previous::after {
  left: 2px;
  transform: rotate(-135deg);
}

.presentation-status {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.presentation-status .mono-label {
  margin: 0;
}

.presentation-status strong {
  overflow: hidden;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-status span,
.presentation-time {
  color: var(--muted);
  font: 400 11px/1.4 "IBM Plex Mono", monospace;
}

.presentation-status .presentation-disclosure {
  color: var(--faint);
}

.presentation-timeline {
  display: grid;
  gap: 4px;
}

.presentation-timeline input {
  width: 100%;
  accent-color: var(--accent-bg);
  cursor: pointer;
}

.presentation-time {
  display: flex;
  justify-content: space-between;
}

.presentation-nav {
  display: flex;
  gap: 8px;
}

.presentation-nav button {
  width: 42px;
  height: 42px;
}

.presentation-chapters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.presentation-chapters button {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  text-align: left;
  font: 500 11px/1.3 "IBM Plex Mono", monospace;
}

.presentation-chapters li:last-child button {
  border-right: 0;
}

.presentation-chapters button span {
  margin-left: 4px;
  color: var(--muted);
}

.presentation-chapters button[aria-current="true"] {
  background: var(--bg);
  color: var(--accent);
  box-shadow: inset 0 2px 0 var(--accent);
}

.presentation-chapters button[aria-current="true"] span {
  color: var(--ink);
}

.presentation-transcript {
  border-top: 1px solid var(--line);
}

.presentation-transcript summary {
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  padding: 14px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.presentation-transcript summary::-webkit-details-marker {
  display: none;
}

.presentation-transcript summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.presentation-transcript[open] summary::before {
  transform: rotate(135deg);
}

.presentation-transcript > div {
  max-width: 780px;
  padding: 8px 0 30px;
}

.presentation-transcript h3 {
  margin: 28px 0 8px;
  font-size: 22px;
}

.presentation-transcript p {
  margin: 0 0 12px;
  color: var(--muted);
}

.agent-systems {
  padding: 112px clamp(24px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
}

.agent-systems .section-heading {
  max-width: 820px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 54px;
  border: 1px solid var(--line);
}

.agent-card {
  position: relative;
  min-height: 440px;
  padding: 36px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.agent-card:last-child {
  border-right: 0;
}

.agent-card-primary {
  background: var(--accent-soft);
}

.agent-card-primary .agent-index {
  color: var(--muted);
}

.agent-card-primary .work-kicker {
  color: var(--ink);
}

.agent-index {
  margin-bottom: 62px;
  color: var(--faint);
  font: 500 12px/1 "IBM Plex Mono", monospace;
}

.agent-card h3 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.agent-card > p:not(.work-kicker) {
  margin: 22px 0 0;
  color: var(--muted);
}

.agent-card ul {
  display: grid;
  gap: 8px;
  margin: 30px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  list-style: none;
  font: 500 12px/1.4 "IBM Plex Mono", monospace;
}

.agent-card li::before {
  content: "↳";
  margin-right: 8px;
  color: var(--accent);
}

.agent-platform-note {
  max-width: 980px;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

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

.agent-platform-note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.agent-platform-note a:hover {
  color: var(--accent);
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  body::before {
    display: none;
  }

  .site-header {
    padding: 0 18px;
    gap: 12px;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 56px 24px 72px;
  }

  .hero h1 {
    font-size: clamp(52px, 14vw, 78px);
  }

  .hero-visual {
    min-height: 520px;
    padding-left: 0;
    border-left: 0;
  }

  .presentation-main {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .presentation-timeline {
    grid-column: 1 / -1;
    grid-row: 2;
  }

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

  .agent-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .agent-card:last-child {
    border-bottom: 0;
  }

  .role-lens,
  .evidence-section,
  .operating-principles,
  .work-feature,
  .work-image,
  .contact {
    grid-template-columns: 1fr;
  }

  .role-readout {
    grid-column: 1;
  }

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

  .work-feature,
  .work-image,
  .work-image img {
    grid-column: 1;
  }

  .work-image img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .role-proof,
  .evidence-pairs,
  .work-feature .case-preview {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

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

  .footer-credit {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .wordmark > span:last-child {
    display: none;
  }

  .hero {
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 62px);
  }

  .hero-summary {
    font-size: 19px;
  }

  .hero-actions,
  .contact-actions,
  .brief-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }

  .role-lens,
  .agent-systems,
  .selected-work,
  .evidence-section,
  .experience,
  .contact {
    padding: 68px 20px;
  }

  .presentation-player {
    top: 72px;
    padding: 12px 14px 0;
  }

  #agents,
  #dimevision,
  #enterprise,
  #experience {
    scroll-margin-top: 320px;
  }

  .presentation-main {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .presentation-toggle {
    width: 48px;
    height: 48px;
  }

  .presentation-status .mono-label {
    display: none;
  }

  .presentation-status .presentation-disclosure {
    display: none;
  }

  .presentation-status strong {
    font-size: 16px;
  }

  .presentation-nav {
    gap: 5px;
  }

  .presentation-nav button {
    width: 38px;
    height: 38px;
  }

  .presentation-chapters {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .presentation-chapters li {
    flex: 0 0 168px;
    scroll-snap-align: start;
  }

  .presentation-chapters button {
    border-bottom: 0;
  }

  .agent-grid {
    margin-top: 38px;
  }

  .agent-card {
    padding: 30px 22px;
  }

  .agent-index {
    margin-bottom: 42px;
  }

  .role-controls {
    grid-template-columns: 1fr;
  }

  .role-tab {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .role-tab:last-child {
    border-bottom: 0;
  }

  .role-readout {
    padding: 28px 22px;
  }

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

  .proof-strip article {
    min-height: 138px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip article:nth-child(3) {
    border-bottom: 0;
  }

  .work-image-copy .case-preview {
    grid-template-columns: 1fr;
  }

  .work-feature {
    min-height: auto;
  }

  .work-copy,
  .work-standard,
  .work-image-copy,
  .system-map {
    padding: 30px 22px;
  }

  .work-standard {
    min-height: 360px;
  }

  .evidence-ledger article {
    grid-template-columns: 34px 1fr;
  }

  .ledger-proof {
    grid-column: 2;
    text-align: left;
  }

  .principle-statement,
  .principle-list {
    padding: 58px 22px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .role-progression li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .role-progression span {
    margin-top: 0;
    white-space: normal;
  }

  .testimonial {
    padding: 72px 22px;
  }

  .case-columns,
  .brief-grid {
    grid-template-columns: 1fr;
  }

  .dialog-body {
    padding: 58px 22px 36px;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  :root,
  html[data-theme="light"] {
    --bg: #f7f8fa;
    --surface: #eff1f5;
    --ink: #151821;
    --muted: #4c5361;
    --line: #c8cdd7;
    --accent: #3159ee;
  }

  .site-header,
  .hero,
  .role-lens,
  .proof-strip,
  .selected-work,
  .evidence-section,
  .operating-principles,
  .testimonial,
  .contact,
  footer,
  .dialog-close,
  .brief-actions,
  .copy-status {
    display: none !important;
  }

  body {
    background: var(--bg);
    font-size: 11pt;
  }

  .brief-dialog[open] {
    position: static;
    display: block;
    width: 100%;
    max-height: none;
    border: 0;
    overflow: visible;
  }

  .brief-dialog::backdrop {
    display: none;
  }

  .dialog-body {
    padding: 0;
  }

  .dialog-body > h2 {
    font-size: 34pt;
  }
}
