:root {
  color-scheme: dark;
  --bg: #111210;
  --panel: #191b19;
  --panel-2: #202220;
  --ink: #f1eee4;
  --muted: #9a9d96;
  --faint: #6d706b;
  --line: rgba(241, 238, 228, 0.14);
  --line-strong: rgba(241, 238, 228, 0.26);
  --orange: #ff6a22;
  --orange-soft: rgba(255, 106, 34, 0.12);
  --mono: "SFMono-Regular", "Roboto Mono", "Cascadia Code", Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: geometricPrecision;
}
.is-presenting body { overflow: hidden; }
button, a { color: inherit; }
button { font: inherit; }
::selection { color: var(--bg); background: var(--orange); }

.skip-link { position: fixed; z-index: 100; left: 1rem; top: -4rem; background: var(--orange); color: #10110f; padding: .65rem 1rem; font: 700 .75rem var(--mono); }
.skip-link:focus { top: 1rem; }

.chrome, .grid, .contours { position: fixed; inset: 0; pointer-events: none; }
.chrome { z-index: 0; overflow: hidden; }
.grid {
  opacity: .44;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.78) 60%, transparent 100%);
}
.contours { width: 58vw; height: 92vh; left: auto; top: 8vh; opacity: .15; }
.contours path { fill: none; stroke: #a9aba3; stroke-width: 1; vector-effect: non-scaling-stroke; }

.topbar, .footer { position: fixed; z-index: 20; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding-inline: clamp(1.25rem, 3vw, 3.5rem); }
.topbar { top: 0; height: 70px; border-bottom: 1px solid var(--line); background: rgba(17,18,16,.87); backdrop-filter: blur(16px); }
.identity, .text-button, .footer-nav button, .panel-header button {
  border: 0; background: transparent; cursor: pointer; font: 700 .74rem/1 var(--mono); letter-spacing: .105em;
}
.identity { display: flex; align-items: center; gap: .75rem; padding: 1rem 0; }
.identity-mark { width: 18px; height: 3px; background: var(--orange); display: inline-block; }
.identity-detail { color: var(--muted); font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 1.4rem; }
.text-button { color: var(--muted); transition: color 140ms ease; }
.text-button:hover, .text-button:focus-visible { color: var(--ink); }
kbd { font: 500 .64rem var(--mono); color: var(--faint); border: 1px solid var(--line-strong); padding: .16rem .3rem; margin-left: .28rem; }

.deck { position: relative; z-index: 2; }
.slide { position: relative; }
.is-presenting .deck { height: 100%; }
.is-presenting .slide { position: absolute; inset: 70px 0 62px; overflow: auto; visibility: hidden; opacity: 0; transform: translateY(7px); transition: opacity 180ms ease, transform 180ms ease; }
.is-presenting .slide.is-active { visibility: visible; opacity: 1; transform: none; }
.slide-inner { position: relative; width: min(1500px, 100%); margin: 0 auto; padding: clamp(1.8rem, 4vh, 4rem) clamp(1.5rem, 5vw, 6rem); }
.is-presenting .slide-inner { height: 100%; }
.slide-inner > *, .split-heading > * { min-width: 0; }
.slide-meta { position: absolute; top: clamp(1.5rem, 3vh, 2.7rem); left: clamp(1.5rem, 5vw, 6rem); right: clamp(1.5rem, 5vw, 6rem); display: flex; justify-content: space-between; color: var(--muted); font: 600 .74rem/1 var(--mono); letter-spacing: .12em; }

h1, h2, h3, p, blockquote, figure { margin: 0; }
h1, h2 { letter-spacing: -.055em; font-weight: 770; line-height: .86; }
h1 { font-size: clamp(3.8rem, 9vw, 9.2rem); }
h2 { font-size: clamp(3.2rem, 7.2vw, 7.6rem); }
h1 em, h2 em, .hero-quote em { color: var(--orange); font-style: normal; }
.eyebrow, .kicker, .section-number, .byline, .bottom-line, .q-and-a, .article-excerpt > span { font: 700 .78rem/1.2 var(--mono); letter-spacing: .13em; }
.lede { color: #c2c3bc; font-size: clamp(1.05rem, 1.65vw, 1.55rem); line-height: 1.45; max-width: 47rem; }
.callout { display: flex; align-items: center; border-left: 3px solid var(--orange); padding: .8rem 1rem; background: rgba(255,255,255,.025); color: #c5c6c0; font-size: clamp(.96rem, 1.18vw, 1.12rem); line-height: 1.4; }
.callout span { flex: 0 0 auto; color: var(--orange); font: 700 .7rem var(--mono); letter-spacing: .12em; margin-right: .7rem; transform: translateY(-1px); }

.title-layout { display: grid; align-content: center; gap: 6vh; }
.title-layout .eyebrow { color: var(--muted); }
.title-copy { position: relative; padding-left: clamp(2.2rem, 5vw, 5rem); }
.title-copy::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .6rem; width: 4px; background: var(--orange); }
.title-copy .section-number { position: absolute; left: -2px; top: -2.2rem; color: var(--orange); }
.title-copy .lede { margin-top: 2rem; }
.byline { display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }

.story-layout { display: grid; grid-template-columns: minmax(min-content, 1.5fr) minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: center; gap: 2rem clamp(2rem, 4vw, 4rem); padding-top: 6rem; }
.hero-quote { font-weight: 760; font-size: clamp(4.1rem, 8.8vw, 9rem); letter-spacing: -.06em; line-height: .88; }
.story-copy { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; font-size: clamp(1.2rem, 2vw, 2rem); line-height: 1.3; }
.story-copy p + p { color: var(--muted); margin-top: 1.6rem; }
.stacked-copy { display: grid; gap: .28em; }
.story-layout .callout { grid-column: 1 / -1; align-self: end; }

.lesson-layout { display: grid; grid-template-rows: auto auto auto; gap: 3.5vh; align-content: center; align-items: stretch; padding-top: 4rem; padding-bottom: 2rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.principles article { padding: clamp(1rem, 2vw, 2rem); min-height: 140px; }
.principles article + article { border-left: 1px solid var(--line-strong); }
.principles span, .guardrail-list span { color: var(--orange); font: 700 .76rem var(--mono); }
.principles h3, .guardrail-list h3 { font-size: clamp(1rem, 1.35vw, 1.35rem); margin: 1rem 0 .5rem; }
.principles p, .guardrail-list p { color: var(--muted); line-height: 1.4; }
.bottom-line { color: var(--orange); }

.permission-layout { display: grid; grid-template-columns: .95fr 1.05fr; grid-template-rows: 1fr auto; align-items: center; gap: 3rem 7vw; padding-top: 6rem; }
.permission-heading > span { display: block; color: var(--muted); font: 700 .8rem var(--mono); letter-spacing: .15em; margin-bottom: 1.3rem; }
.leadership-quote { font-size: clamp(1.8rem, 3.3vw, 3.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; border-left: 4px solid var(--orange); padding-left: clamp(1.3rem, 2.2vw, 2.4rem); }
.article-excerpt { grid-column: 1 / -1; display: grid; grid-template-columns: .7fr 1.3fr; border-top: 1px solid var(--line-strong); padding-top: 1.2rem; }
.article-excerpt > span { color: var(--orange); }
.article-excerpt p { color: var(--muted); font-size: clamp(.95rem, 1.3vw, 1.2rem); line-height: 1.5; max-width: 55rem; }

.bridge-layout { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: 1fr auto; gap: 2rem 6vw; align-items: center; padding-top: 6rem; }
.bridge-layout h2 { grid-column: 1; }
.bridge-layout > .lede { grid-column: 1; align-self: start; }
.agency-visual { grid-column: 2; grid-row: 1 / span 2; position: relative; align-self: center; min-width: 0; }
.agency-visual img { display: block; width: 100%; height: auto; }
.agency-visual figcaption { display: flex; justify-content: center; gap: .65rem; color: var(--muted); font: 700 .66rem/1.2 var(--mono); letter-spacing: .09em; margin-top: .7rem; }
.agency-visual figcaption span { color: var(--orange); }
.agency-labels { position: absolute; inset: 8% 0 12% 66%; display: grid; grid-template-rows: repeat(4, 1fr); align-items: center; pointer-events: none; }
.agency-labels span { color: #30322f; font: 800 clamp(.48rem, .62vw, .66rem)/1 var(--mono); letter-spacing: .08em; text-align: center; }
.bridge-layout .callout { grid-column: 1 / -1; }

.split-heading { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5vw; align-items: end; }
.split-heading > p, .split-heading > div > p { color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.3rem); line-height: 1.45; max-width: 42rem; }
.split-heading .kicker { display: block; color: var(--orange); margin-bottom: 1rem; }
.experiment-layout { display: grid; grid-template-rows: auto 1fr; gap: 1.5vh; padding-top: 4.5rem; }
.experiment-layout .split-heading { grid-template-columns: 1.15fr .85fr; }
.experiment-layout .split-heading h2 { font-size: clamp(2.8rem, 4.6vw, 4.8rem); white-space: nowrap; }
.media-frame { min-width: 0; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) 32px; background: #0a0b0a; border: 1px solid var(--line-strong); }
.media-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.media-frame figcaption { min-height: 32px; padding: 0 .7rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); background: var(--panel); font: 600 .66rem var(--mono); letter-spacing: .1em; }
.wide-frame { position: relative; justify-self: stretch; width: 100%; grid-template-rows: auto; }
.wide-frame img { height: auto; object-fit: contain; object-position: center; }
.wide-frame figcaption { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; }

.swarm-layout { display: grid; grid-template-rows: auto 1fr; gap: 2vh; padding-top: 5.2rem; }
.split-heading.compact { grid-template-columns: max-content minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.split-heading.compact h2 { font-size: clamp(2rem, 3.8vw, 4rem); white-space: nowrap; }
.workflow-carousel { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .8rem; min-height: 0; }
.carousel-stage { width: 100%; min-height: 0; justify-self: center; display: grid; place-items: center; }
.carousel-slide { width: fit-content; max-width: 100%; }
.carousel-slide[hidden] { display: none; }
.carousel-slide img { width: auto; height: auto; max-width: 100%; max-height: max(220px, calc(100dvh - 70px - 62px - 15rem)); }
.carousel-controls { width: min(100%, 1050px); justify-self: center; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.carousel-controls button { justify-self: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: 700 .7rem/1 var(--mono); letter-spacing: .1em; padding: .55rem 0; }
.carousel-controls button:hover, .carousel-controls button:focus-visible { color: var(--ink); }
.carousel-controls button:disabled { color: var(--muted); cursor: default; opacity: .32; }
.carousel-status { display: grid; justify-items: center; gap: .45rem; }
.carousel-dots { display: flex; gap: .45rem; }
.carousel-dots span { width: 22px; height: 3px; background: var(--line-strong); }
.carousel-dots span.is-current { background: var(--orange); }
.carousel-key-hint { color: var(--muted); font: 600 .58rem/1 var(--mono); letter-spacing: .1em; white-space: nowrap; }

@media (min-width: 901px) {
  /* Size each screenshot from the space left below the heading and above controls. */
  .is-presenting .carousel-stage { container-type: size; }
  .is-presenting .carousel-slide img { max-height: calc(100cqh - 34px); }
}

.limit-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5vw; align-items: center; padding-top: 5.5rem; }
.limit-copy .kicker { display: block; color: var(--orange); margin-bottom: 1.2rem; }
.limit-copy h2 { font-size: clamp(3rem, 6.1vw, 6.4rem); }
.limit-copy > p:not(.callout) { color: var(--muted); font-size: clamp(1.05rem, 1.45vw, 1.4rem); line-height: 1.45; margin-top: 1.5rem; max-width: 35rem; }
.limit-copy .callout { margin-top: 2rem; }
.tall-frame { width: fit-content; max-width: 100%; justify-self: center; }
.tall-frame img { width: auto; height: auto; max-width: 100%; max-height: min(60vh, 616px); }

.guardrail-layout { display: grid; grid-template-columns: minmax(min-content, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: center; gap: 2rem clamp(2rem, 4vw, 4rem); padding-top: 6rem; }
.guardrail-layout > h2 { font-size: clamp(3rem, 5.2vw, 5.4rem); }
.guardrail-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.guardrail-list article { min-height: 150px; padding: 1.3rem; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: rgba(255,255,255,.018); }
.guardrail-layout .bottom-line { grid-column: 1 / -1; }

.output-layout { display: grid; grid-template-rows: auto 1fr; gap: 3vh; padding-top: 5.5rem; }
.output-layout .split-heading h2 { font-size: clamp(3rem, 5.8vw, 6.2rem); }
.output-layout .split-heading .kicker { display: block; color: var(--orange); margin-bottom: .9rem; }
.project-list { border-top: 1px solid var(--line-strong); }
.project-list a { display: grid; grid-template-columns: 60px 1fr 60px; gap: 1rem; align-items: center; min-height: 100px; padding: 1rem 0; border-bottom: 1px solid var(--line-strong); color: inherit; text-decoration: none; transition: background 140ms ease, padding 140ms ease; }
.project-list a:hover, .project-list a:focus-visible { background: var(--orange-soft); padding-inline: 1rem; outline: none; }
.project-no { color: var(--orange); font: 700 .76rem var(--mono); }
.project-list h3 { font-size: clamp(1.1rem, 1.8vw, 1.7rem); letter-spacing: -.02em; }
.project-list p { color: var(--muted); line-height: 1.35; margin-top: .25rem; }
.project-arrow { justify-self: end; color: var(--orange); font-size: 1.5rem; }

.closing-layout { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto; align-content: center; align-items: center; gap: 4vh 6vw; padding-top: 4rem; padding-bottom: 4rem; }
.closing-principles { display: grid; gap: 1.2rem; color: var(--muted); font: 700 .82rem var(--mono); letter-spacing: .1em; }
.closing-principles span { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-strong); }
.closing-principles span::before { content: "/"; color: var(--orange); margin-right: 1rem; }
.closing-question { grid-column: 1 / -1; font-size: clamp(1.8rem, 3vw, 3.15rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.16; border-left: 4px solid var(--orange); padding-left: 1.5rem; }
.q-and-a { position: absolute; right: clamp(1.5rem, 5vw, 6rem); bottom: clamp(1.5rem, 3vh, 2.7rem); color: var(--muted); display: flex; gap: 1rem; }
.q-and-a span:first-child { color: var(--orange); }

.footer { bottom: 0; height: 62px; border-top: 1px solid var(--line); background: rgba(17,18,16,.9); }
.progress-wrap { display: flex; align-items: center; gap: 1rem; color: var(--muted); font: 600 .7rem var(--mono); letter-spacing: .1em; }
.progress-track { width: min(28vw, 320px); display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.progress-track span { display: block; height: 3px; background: var(--line-strong); transition: background 180ms ease; }
.progress-track span.is-complete { background: var(--orange); }
.footer-nav { display: flex; height: 100%; }
.footer-nav button { min-width: 110px; border-left: 1px solid var(--line); color: var(--muted); }
.footer-nav button:hover, .footer-nav button:focus-visible { color: var(--ink); background: var(--orange-soft); }
.footer-nav button:disabled { opacity: .28; cursor: default; background: none; }

.panel-dialog, .notes-panel { z-index: 50; color: var(--ink); background: rgba(17,18,16,.98); border: 1px solid var(--line-strong); box-shadow: 0 20px 80px rgba(0,0,0,.5); }
.panel-dialog { width: min(1000px, calc(100vw - 3rem)); max-height: calc(100vh - 3rem); padding: 0; }
.panel-dialog::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(6px); }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line-strong); }
.panel-header h2 { font-size: 2rem; letter-spacing: -.035em; margin-top: .3rem; }
.panel-header .kicker { color: var(--orange); font-size: .66rem; }
.panel-header button { color: var(--muted); }
.overview-list { list-style: none; margin: 0; padding: .5rem 1.6rem 1.6rem; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
.overview-list li { border-bottom: 1px solid var(--line); }
.overview-list button { width: 100%; display: grid; grid-template-columns: 42px 1fr; gap: .5rem; text-align: left; padding: 1rem 0; border: 0; background: transparent; cursor: pointer; }
.overview-list button:hover, .overview-list button:focus-visible { color: var(--orange); outline: none; }
.overview-list .overview-no { color: var(--orange); font: 700 .72rem var(--mono); }
.overview-list .overview-title { font-size: 1.02rem; font-weight: 650; }
.overview-list li.is-current { box-shadow: inset 3px 0 var(--orange); padding-left: .8rem; }

.notes-panel { position: fixed; top: 70px; right: 0; bottom: 62px; width: min(430px, 100vw); transform: translateX(100%); transition: transform 180ms ease; background: rgba(17,18,16,.82); backdrop-filter: blur(20px) saturate(.85); -webkit-backdrop-filter: blur(20px) saturate(.85); }
.notes-panel.is-open { transform: none; }
.notes-content { padding: 1.6rem; color: #c4c5bf; font-size: 1rem; line-height: 1.55; overflow-y: auto; height: calc(100% - 80px); }
.notes-content p + p { margin-top: 1rem; }
.notes-content strong { color: var(--orange); }

@media (max-width: 900px) {
  .identity-detail { display: none; }
  .is-presenting .slide-inner { height: auto; min-height: 100%; }
  .story-layout, .permission-layout, .bridge-layout, .limit-layout, .guardrail-layout, .closing-layout { grid-template-columns: 1fr; }
  .story-layout { align-content: center; grid-template-rows: auto auto auto; }
  .permission-layout, .limit-layout { align-content: center; }
  .article-excerpt { grid-template-columns: 1fr; gap: 1rem; }
  .agency-visual { display: none; }
  .bridge-layout h2, .bridge-layout > .lede { grid-column: 1; }
  .bridge-layout .callout { grid-column: 1; }
  .tall-frame img { max-height: 50vh; }
  .closing-question, .guardrail-layout .bottom-line { grid-column: 1; }
  .split-heading, .split-heading.compact { grid-template-columns: 1fr; gap: 1rem; }
  .experiment-layout .split-heading { grid-template-columns: 1fr; }
  .experiment-layout .split-heading h2 { white-space: normal; }
}

@media (max-width: 640px) {
  .top-actions .text-button:first-child, .footer-nav span, .byline span:last-child { display: none; }
  .slide-inner { padding-inline: 1.25rem; }
  .slide-meta { left: 1.25rem; right: 1.25rem; }
  .slide-meta span:last-child { display: none; }
  h1 { font-size: clamp(2rem, 11.5vw, 4.5rem); }
  h2, .limit-copy h2, .guardrail-layout > h2, .experiment-layout .split-heading h2, .output-layout .split-heading h2 { font-size: clamp(1.9rem, 10.5vw, 4.3rem); }
  .split-heading.compact h2 { font-size: clamp(1.25rem, 6.2vw, 2.4rem); }
  .hero-quote { font-size: clamp(2.5rem, 12vw, 4.8rem); }
  h1, h2, .hero-quote { overflow-wrap: anywhere; }
  .callout { display: block; }
  .callout span { display: block; margin: 0 0 .5rem; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: auto; }
  .principles article + article { border-left: 0; border-top: 1px solid var(--line-strong); }
  .guardrail-list { grid-template-columns: 1fr; }
  .guardrail-list article { min-height: auto; }
  .project-list a { grid-template-columns: 35px 1fr 30px; }
  .overview-list { grid-template-columns: 1fr; }
  .progress-track { width: 100px; }
  .footer-nav button { min-width: 54px; }
  .media-frame figcaption { font-size: .55rem; letter-spacing: .04em; gap: .5rem; }
  .q-and-a { display: none; }
}

/* Until the controls initialize, keep the complete talk readable as a document. */
html:not(.is-presenting) .topbar,
html:not(.is-presenting) .footer,
html:not(.is-presenting) .notes-panel,
html:not(.is-presenting) .carousel-controls { display: none; }
html:not(.is-presenting) .slide { border-bottom: 1px solid var(--line); }
html:not(.is-presenting) .slide-inner { min-height: 100svh; }
html:not(.is-presenting) .carousel-stage { gap: 1rem; }
html:not(.is-presenting) .carousel-slide { height: auto; }
html:not(.is-presenting) .carousel-slide img { height: auto; }

@media (max-height: 690px) and (min-width: 901px) {
  .slide-inner { padding-top: 3.4rem; padding-bottom: 1.4rem; }
  h1 { font-size: clamp(4rem, 8vw, 7rem); }
  h2 { font-size: clamp(3rem, 6.4vw, 5.7rem); }
  .tall-frame img { max-height: 54vh; }
  .principles article, .guardrail-list article { min-height: 115px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
