@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #292326;
  --paper: #f6f3eb;
  --line: #ded8ce;
  --muted: #716a66;
  --coral: #c94f35;
  --violet: #6258af;
  --green: #346d5b;
  --display: "Merriweather", Georgia, serif;
  --sans: "Space Grotesk", "Trebuchet MS", sans-serif;
  --mono: "DM Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

::selection {
  background: #e5dfb0;
  color: var(--ink);
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 76px;
  padding: 0 clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 235, .97);
  backdrop-filter: blur(12px);
}

.wordmark {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.08em;
  text-decoration: none;
}

.wordmark span { margin-left: 4px; color: var(--coral); font-size: .8em; }

.tabs {
  height: 76px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(8px, 2vw, 30px);
}

.tab {
  padding: 4px 11px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 500 .85rem var(--sans);
  transition: color .18s ease, border-color .18s ease;
}

.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { border-color: var(--violet); color: var(--ink); }
.tab[aria-controls="panel-strategy"][aria-selected="true"] { border-color: var(--coral); }
.tab[aria-controls="panel-growth"][aria-selected="true"] { border-color: var(--green); }

.header-note {
  flex: 0 0 auto;
  color: var(--muted);
  font: .6rem var(--mono);
  letter-spacing: .08em;
}

main { min-height: calc(100vh - 76px); }

.project {
  min-height: calc(100vh - 76px);
  padding: clamp(28px, 5vw, 68px) clamp(18px, 8vw, 116px) 76px;
}

.project-rights { background: #f4f0f8; }
.project-strategy { background: #fbf8f0; }
.project-growth { background: #eff5ef; }

.project-heading {
  max-width: 1030px;
  margin: 0 auto 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.project-heading h1 {
  margin: 0;
  font: 700 clamp(2.4rem, 5vw, 4.5rem)/1.12 var(--display);
  letter-spacing: -.035em;
}

.project-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font: .7rem var(--mono);
  letter-spacing: .04em;
}

.content-block,
.reflection,
.resource-list,
.video-block {
  width: min(100%, 1030px);
  margin-right: auto;
  margin-left: auto;
}

.content-block { margin-top: 24px; }

.assignment-start {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid rgba(41, 35, 38, .2);
}

.project-rights .assignment-start { border-top-color: rgba(98, 88, 175, .3); }

.project-strategy .assignment-start { border-top-color: rgba(201, 79, 53, .3); }

.project-growth .assignment-start { border-top-color: rgba(52, 109, 91, .3); }

.section-title {
  margin: 0 0 10px;
  font: 700 1.7rem/1.3 var(--display);
}

.subtabs {
  min-height: 48px;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.subtab {
  flex: 0 0 auto;
  min-height: 43px;
  padding: 7px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 500 .77rem var(--sans);
  white-space: nowrap;
}

.subtab:hover { color: var(--ink); }
.subtab[aria-selected="true"] { border-color: var(--violet); color: var(--ink); }
.project-strategy .subtab[aria-selected="true"] { border-color: var(--coral); }
.project-growth .subtab[aria-selected="true"] { border-color: var(--green); }

.document-panel {
  min-height: 0;
  padding: 14px 0;
}

.image-deck { width: 100%; }

.slide-gallery {
  width: min(100%, 1030px);
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.slide {
  min-width: 0;
  display: block;
  overflow: hidden;
  background: white;
  box-shadow: 0 6px 18px rgba(41, 35, 38, .1);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.slide:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(41, 35, 38, .16);
}

.slide-gallery .slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  background: #171015;
}

.slide span {
  display: block;
  padding: 9px 12px;
  color: var(--ink);
  font: .67rem var(--mono);
}

.deck-stage {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  display: grid;
  place-items: center;
}

.deck-stage.presentation-deck { overflow: hidden; }

.deck-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(76vh, 880px);
  display: block;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 7px 22px rgba(41, 35, 38, .12);
}

.page-enter { animation: page-enter .32s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes page-enter {
  from { clip-path: inset(0 0 0 100%); transform: scale(.985); }
  to { clip-path: inset(0); transform: scale(1); }
}

.presentation-transition-image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  max-width: none;
  max-height: none;
  object-fit: contain;
  box-shadow: none;
}

.presentation-outgoing { z-index: 1; }
.presentation-transitioning .deck-arrow,
.presentation-transitioning .deck-page { z-index: 3; }
.presentation-in-next { animation: presentation-in-next .55s cubic-bezier(.22, .72, .2, 1) both; }
.presentation-in-previous { animation: presentation-in-previous .55s cubic-bezier(.22, .72, .2, 1) both; }
.presentation-out-next { animation: presentation-out-next .55s cubic-bezier(.22, .72, .2, 1) both; }
.presentation-out-previous { animation: presentation-out-previous .55s cubic-bezier(.22, .72, .2, 1) both; }

@keyframes presentation-in-next {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes presentation-in-previous {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes presentation-out-next {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes presentation-out-previous {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

.deck-arrow {
  width: 44px;
  height: 44px;
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(41, 35, 38, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  cursor: pointer;
  font: 1.35rem var(--sans);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .15);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.deck-arrow:hover {
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}
.deck-previous:hover { transform: translate(-2px, -50%); }
.deck-next:hover { transform: translate(2px, -50%); }
.deck-previous { left: 12px; }
.deck-next { right: 12px; }

.deck-page {
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 6px 10px;
  border: 1px solid rgba(41, 35, 38, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font: .65rem var(--mono);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}

.deck-controls {
  width: fit-content;
  max-width: 100%;
  min-height: 42px;
  margin: 10px auto 0;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid rgba(41, 35, 38, .07);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 4px 14px rgba(41, 35, 38, .06);
}

.page-tab {
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 500 .65rem var(--mono);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.page-tab:hover {
  transform: translateY(-1px);
  border-color: var(--line);
  background: white;
}

.page-tab[aria-pressed="true"] {
  border-color: var(--violet);
  background: var(--violet);
  color: white;
  box-shadow: 0 2px 7px rgba(98, 88, 175, .25);
}

.project-strategy .page-tab[aria-pressed="true"] { border-color: var(--coral); background: var(--coral); }
.project-growth .page-tab[aria-pressed="true"] { border-color: var(--green); background: var(--green); }

.deck-autoplay {
  margin-left: 8px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: .64rem var(--mono);
}

.deck-autoplay:hover { color: var(--ink); }

.reflection {
  margin-top: 12px;
  padding: 19px 23px;
  border-left: 3px solid var(--violet);
  background: rgba(255, 255, 255, .62);
}

.project-strategy .reflection { border-color: var(--coral); }
.project-growth .reflection { border-color: var(--green); }

.collapsible-block { padding-top: 0; }

.reflection > summary,
.collapsible-block > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.reflection > summary::-webkit-details-marker,
.collapsible-block > summary::-webkit-details-marker { display: none; }

.reflection > summary::after,
.collapsible-block > summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--violet);
  font: 500 1.4rem/1 var(--sans);
}

.project-strategy .reflection > summary::after,
.project-strategy .collapsible-block > summary::after { color: var(--coral); }

.project-growth .reflection > summary::after,
.project-growth .collapsible-block > summary::after { color: var(--green); }

.reflection[open] > summary::after,
.collapsible-block[open] > summary::after { content: "−"; }

.reflection-title {
  margin: 0 0 10px;
  font: 700 1.5rem/1.3 var(--display);
}

.reflection p {
  max-width: 850px;
  margin: 0;
  color: #514a46;
  font-size: .9rem;
}

.reflection-copy {
  margin: 0 0 17px;
  padding: 15px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
}

.reflection-copy h2,
.reflection-copy h3 {
  margin: 0 0 6px;
  font: 700 1.15rem/1.35 var(--display);
}

.reflection-copy p {
  max-width: 850px;
  margin: 0;
  color: #514a46;
  font-size: .88rem;
}

.collapsible-block > summary { margin: 0; }
.collapsible-block[open] > summary { margin-bottom: 10px; }
.feedback-reflection-block {
  padding: 19px 23px;
  border-left: 3px solid var(--violet);
  background: #e9e3f0;
}

.project-strategy .feedback-reflection-block {
  border-left-color: var(--coral);
  background: #f1e9d8;
}

.project-growth .feedback-reflection-block {
  border-left-color: var(--green);
  background: #e1ece1;
}

.video-block:not(.assignment-start) { margin-top: 24px; }

.video-block video {
  width: 100%;
  max-height: 75vh;
  display: block;
  background: #171015;
}

.script-sources ul {
  max-width: 820px;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.script-sources li {
  padding: 12px 15px;
  border-left: 3px solid var(--green);
  background: rgba(52, 109, 91, .07);
}

.script-sources a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.video-block > .reflection {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(52, 109, 91, .22);
}

.learning-objectives ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  counter-reset: objective;
}

.learning-objectives li {
  min-width: 0;
  padding: 17px 18px;
  border-top: 2px solid var(--green);
  background: rgba(255, 255, 255, .55);
  counter-increment: objective;
}

.learning-objectives li::before {
  content: "0" counter(objective);
  color: var(--green);
  font: .67rem var(--mono);
}

.learning-objectives h3 {
  margin: 9px 0 7px;
  font: 700 1rem/1.4 var(--display);
}

.learning-objectives li p {
  margin: 0;
  color: #514a46;
  font-size: .79rem;
}

.source-link {
  display: inline-flex;
  margin-top: 13px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.interview-block > audio {
  width: 100%;
  display: block;
}

.transcript {
  max-width: 850px;
  padding: 14px 18px;
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, .65);
}

.transcript p {
  margin: 0 0 12px;
  color: #514a46;
  font-size: .84rem;
}

.transcript p:last-child { margin-bottom: 0; }
.transcript strong { color: var(--ink); }

.growth-figure {
  width: min(100%, 850px);
  margin: 0 auto 26px;
  padding: 12px;
  background: white;
  box-shadow: 0 9px 24px rgba(41, 35, 38, .1);
}

.growth-figure a { display: block; }
.growth-figure img { width: 100%; height: auto; display: block; object-fit: contain; }
.growth-figure figcaption { padding: 9px 2px 0; color: var(--muted); font: .63rem var(--mono); }

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 12px;
}

.resource-list > a {
  min-height: 43px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  text-decoration: none;
}

.resource-list > a:hover { color: var(--coral); }

@media (max-width: 700px) {
  .site-header {
    min-height: 70px;
    padding: 0 14px;
    gap: 12px;
  }

  .tabs {
    height: 70px;
    flex: 1;
    gap: 0;
  }

  .tab { padding: 4px 6px 0; font-size: .72rem; }
  .header-note { display: none; }
  .project { padding: 27px 18px 48px; }
  .project-heading { margin-bottom: 25px; gap: 15px; }
  .project-heading h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
  .project-heading p { font-size: .59rem; }
  .content-block { margin-top: 24px; }
  .assignment-start { margin-top: 44px; padding-top: 24px; }
  .section-title { font-size: 1.45rem; }
  .slide-gallery { gap: 11px; }
  .slide span { padding: 7px 9px; font-size: .59rem; }
  .subtab { padding-right: 10px; padding-left: 10px; font-size: .72rem; }
  .deck-stage { max-height: 65vh; }
  .deck-arrow { width: 34px; height: 34px; }
  .deck-previous { left: 7px; }
  .deck-next { right: 7px; }
  .page-tab { min-width: 27px; height: 26px; padding: 0 6px; font-size: .59rem; }
  .reflection { padding: 16px 18px; }
  .resource-list { grid-template-columns: 1fr; }
  .learning-objectives ol { grid-template-columns: 1fr; }
  .transcript { padding: 12px 14px; }
}

@media (max-width: 400px) {
  .site-header { padding: 0 10px; }
  .wordmark { font-size: 1rem; }
  .tab { padding-right: 4px; padding-left: 4px; font-size: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
