:root {
  color-scheme: light;
  --ink: #182020;
  --muted: #60706d;
  --paper: #fbf7ef;
  --surface: #fffdf8;
  --line: #ded7ca;
  --teal: #1d6d6a;
  --teal-deep: #0f3f42;
  --red: #a33d35;
  --gold: #d6a64c;
  --shadow: 0 24px 70px rgba(24, 32, 32, 0.14);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 52px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 247, 239, 0.94);
  border-bottom: 1px solid rgba(222, 215, 202, 0.9);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  background: transparent;
  overflow: hidden;
  transition: background 180ms ease, border-color 180ms ease;
}

.brand-mark img {
  display: block;
  width: 52%;
  height: 70%;
  object-fit: contain;
}

.site-header.is-scrolled .brand-mark img {
  filter: brightness(0) saturate(100%) invert(17%) sepia(27%) saturate(1041%) hue-rotate(131deg) brightness(92%) contrast(94%);
}

.brand-mark img[src$="mazur-jp-postmark-gold.png"] {
  width: 82%;
  height: 82%;
  filter: none !important;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  border: 1px solid currentColor;
  padding: 3px;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.language-switch button {
  min-width: 34px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.language-switch button.is-active {
  background: #fff;
  color: var(--teal-deep);
}

.site-header.is-scrolled .language-switch button.is-active {
  background: var(--teal-deep);
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #101817;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 19, 20, 0.86) 0%, rgba(9, 19, 20, 0.68) 36%, rgba(9, 19, 20, 0.18) 70%, rgba(9, 19, 20, 0.34) 100%),
    linear-gradient(0deg, rgba(9, 19, 20, 0.8), rgba(9, 19, 20, 0.04) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 54px;
  color: #fff;
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(4rem, 8vw, 7.2rem);
  font-weight: 650;
  line-height: 0.92;
}

html[lang="ja"] .hero h1[data-person-name-headline] {
  max-width: 680px;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.13;
  white-space: nowrap;
}

.hero-lede {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2.1vw, 1.35rem);
}

.hero-tenure {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  width: min(100%, 470px);
  column-gap: 18px;
  row-gap: 0;
  margin-top: 28px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
}

.hero-tenure-years {
  display: grid;
  align-content: start;
  gap: 1px;
  min-width: 88px;
  padding: 0 18px 14px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-tenure-years strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3.45rem, 6vw, 4.4rem);
  font-weight: 650;
  line-height: 0.82;
  letter-spacing: -0.04em;
}

.hero-tenure-copy {
  display: grid;
  align-content: start;
  gap: 5px;
  padding-top: 3px;
}

.hero-tenure-copy span {
  font-weight: 750;
  line-height: 1.16;
}

.hero-tenure-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.hero-days-counter {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-days-value {
  color: #e9c16a;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 0.94;
}

.hero-days-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hero-days-label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-days-copy small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  line-height: 1.26;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.64);
  padding: 0 20px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: #fff;
  color: var(--teal-deep);
  border-color: #fff;
}

.button.secondary {
  color: #fff;
}

.button.paper-primary,
.button.paper-secondary {
  border-color: var(--teal-deep);
}

.button.paper-primary {
  background: var(--teal-deep);
  color: #fff;
}

.button.paper-secondary {
  background: transparent;
  color: var(--teal-deep);
}

.identity-strip {
  padding: 0 calc((100% - min(var(--max), calc(100% - 40px))) / 2);
  background: var(--teal-deep);
  color: #f9f2e4;
}

.bio-section {
  background: var(--paper);
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}

.bio-portrait {
  margin: 0;
  overflow: hidden;
  background: var(--teal-deep);
  box-shadow: 18px 18px 0 rgba(201, 152, 50, 0.14);
}

.bio-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.bio-content h2 {
  max-width: 16ch;
  margin: 12px 0 30px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.25rem, 4vw, 4.4rem);
  font-weight: 650;
  line-height: 0.98;
}

.bio-copy {
  display: grid;
  gap: 18px;
}

.bio-copy p {
  max-width: 78ch;
  margin: 0;
}

.research-section {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.research-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  margin-bottom: 40px;
}

.research-lead-copy h2 {
  max-width: 760px;
  margin: 16px 0 22px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 650;
  line-height: 1.02;
}

.research-lead-copy > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.research-field-visuals {
  position: relative;
  min-height: 350px;
  isolation: isolate;
}

.research-field-visuals::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(251, 247, 239, 0) 20%, rgba(251, 247, 239, 0) 70%, var(--paper) 100%);
}

.research-field-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--teal-deep);
  box-shadow: var(--shadow);
}

.research-field-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.research-field-photo-primary {
  top: 0;
  right: 0;
  width: min(78%, 290px);
  height: 350px;
}

.research-field-photo-primary img {
  object-position: center;
}

.research-field-photo-secondary {
  bottom: 28px;
  left: 0;
  width: min(54%, 185px);
  height: 150px;
  border: 5px solid var(--paper);
}

.research-field-photo-secondary img {
  object-position: 57% 44%;
}

.research-overview > p {
  max-width: 780px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.08rem;
}

.research-recent-note {
  max-width: 880px;
  margin: 20px 0 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  color: var(--teal-deep);
}

.research-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.research-highlights article {
  padding: 24px;
  border-top: 3px solid var(--gold);
  background: var(--paper);
}

.research-highlights span {
  display: block;
  margin-bottom: 20px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-highlights h3 {
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.research-highlights p {
  margin: 0;
  color: var(--muted);
}

.identity-strip p {
  margin: 0;
  padding: 24px 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.25;
}

.section,
.bridge-section,
.trajectory-section,
.profile-statement {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 38px;
}

.section-heading.compact {
  display: block;
  max-width: 780px;
}

.section-heading h2,
.bridge-copy h2,
.profile-statement h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 650;
  line-height: 1.02;
}

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

.feature,
.bridge-panel,
.writing-list article,
.contact-link {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(24, 32, 32, 0.04);
}

.feature {
  min-height: 240px;
  padding: 24px;
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--red);
  font-weight: 800;
}

.feature h3,
.writing-list h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.feature p,
.writing-list p,
.bridge-copy p,
.trajectory-copy p,
.case-grid p,
.profile-statement p {
  color: var(--muted);
  font-size: 1rem;
}

.trajectory-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.visual-story {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr;
  gap: 8px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 88px;
}

.visual-story figure,
.achievement-photo-strip figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--teal-deep);
}

.visual-story img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.visual-story-main img {
  object-position: 38% center;
}

.visual-story figure:nth-child(2) img {
  object-position: center 35%;
}

.visual-story figure:nth-child(3) img {
  object-position: center 30%;
}

.visual-story figcaption,
.achievement-photo-strip figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(transparent, rgba(8, 41, 46, 0.9));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
}

.apu-visual-band {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--teal-deep);
}

.apu-visual-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 41, 46, 0.9) 0%, rgba(8, 41, 46, 0.55) 48%, rgba(8, 41, 46, 0.08) 78%);
}

.apu-visual-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
}

.apu-visual-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
  color: #fff;
}

.apu-visual-copy .eyebrow {
  color: #f3c85b;
}

.apu-visual-copy h2 {
  max-width: 780px;
  margin: 14px 0 18px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 3.25rem;
  line-height: 1;
}

.apu-visual-copy p:last-child {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.trajectory-portrait {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  aspect-ratio: 1;
}

.trajectory-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.trajectory-copy h2 {
  max-width: 780px;
  margin: 0 0 22px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.15rem, 5vw, 5rem);
  font-weight: 650;
  line-height: 0.98;
}

.trajectory-copy p:not(.eyebrow) {
  max-width: 720px;
}

.story-timeline {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.story-timeline h3 {
  max-width: 660px;
  margin: 10px 0 24px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.1;
}

.story-timeline ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-timeline ol::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.story-timeline li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 218px;
  padding: 20px 14px 10px;
}

.story-timeline li::before {
  position: absolute;
  top: -5px;
  left: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.story-timeline time {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.story-timeline strong {
  color: var(--teal-deep);
  font-size: 0.96rem;
  line-height: 1.18;
}

.story-timeline span {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.42;
}

.story-timeline-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
  color: var(--teal-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.story-timeline-link:hover,
.story-timeline-link:focus-visible {
  color: var(--red);
  text-decoration: underline;
}

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

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

.case-grid article {
  min-height: 300px;
  padding: 24px;
  background: var(--teal-deep);
  color: #fff;
}

.case-grid span {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-grid h3 {
  margin: 0 0 16px;
  font-size: 1.16rem;
}

.case-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.workshop-section {
  border-top: 1px solid var(--line);
}

.workshop-showcase {
  position: relative;
  display: grid;
  min-height: 430px;
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--teal-deep);
  color: #fff;
}

.workshop-showcase > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.workshop-showcase::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 63, 66, 0.94), rgba(15, 63, 66, 0.74) 48%, rgba(15, 63, 66, 0.42)),
    linear-gradient(0deg, rgba(15, 63, 66, 0.3), rgba(15, 63, 66, 0.08));
}

.workshop-showcase-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  align-self: end;
  padding: clamp(28px, 5vw, 54px);
}

.workshop-showcase-copy h3 {
  max-width: 680px;
  margin: 0 0 18px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4.4vw, 4.5rem);
  font-weight: 650;
  line-height: 1;
}

.workshop-showcase-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.offer-list li {
  min-height: 48px;
  padding: 13px 14px;
  background: rgba(255, 253, 248, 0.12);
  border: 1px solid rgba(255, 253, 248, 0.28);
  font-weight: 800;
}

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

.proof-section {
  border-top: 1px solid var(--line);
}

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

.proof-grid article {
  min-height: 250px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.proof-grid span {
  display: block;
  margin-bottom: 38px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-grid h3 {
  margin: 0 0 14px;
  color: var(--teal-deep);
  font-size: 1.12rem;
}

.proof-grid p {
  margin: 0;
  color: var(--muted);
}

.case-link {
  display: inline-flex;
  margin-top: 24px;
}

.bridge-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 44px;
  padding: 86px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bridge-copy p {
  max-width: 700px;
}

.bridge-panel {
  align-self: start;
  padding: 28px;
  box-shadow: var(--shadow);
}

.bridge-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: -10px -10px 24px;
}

.bridge-evidence figure {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: var(--teal-deep);
}

.bridge-evidence img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bridge-evidence figure:first-child img {
  object-position: 53% center;
}

.bridge-evidence figure:nth-child(2) img {
  object-position: 46% center;
}

.bridge-evidence figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 10px 9px;
  background: linear-gradient(transparent, rgba(8, 41, 46, 0.92));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.quote {
  margin: 0 0 28px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.12;
}

dl,
dd {
  margin: 0;
}

.bridge-panel div + div {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

dt {
  margin-bottom: 6px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  color: var(--muted);
}

.writing-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.writing-list article {
  padding: 38px 0;
}

.writing-page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 80px;
}

.writing-hero {
  max-width: 980px;
  padding: 58px 0 64px;
  border-bottom: 1px solid var(--line);
}

.writing-hero h1 {
  max-width: 900px;
  margin: 22px 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 650;
  line-height: 0.95;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.writing-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

.writing-hero .writing-note {
  margin-top: 16px;
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-style: italic;
}

.writing-hero-image {
  display: block;
  width: 100%;
  max-height: 480px;
  margin-top: 36px;
  object-fit: cover;
  object-position: center 36%;
  aspect-ratio: 16 / 7;
}

.writing-publication-context {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 44px;
  padding: 52px 0 54px;
  border-bottom: 1px solid var(--line);
}

.writing-publication-heading h2 {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 3.5rem);
  font-weight: 650;
  line-height: 1;
}

.writing-publication-mark {
  display: inline-flex;
  align-items: center;
  width: min(100%, 216px);
  min-height: 68px;
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--teal-deep);
  border: 1px solid var(--teal-deep);
}

.writing-publication-mark img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.writing-publication-mark:hover,
.writing-publication-mark:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
}

.writing-publication-copy {
  max-width: 760px;
}

.writing-publication-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.writing-publication-copy a {
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.writing-publication-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 16px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--line);
}

.writing-publication-stats div {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 20px 18px;
  align-content: center;
}

.writing-publication-stats div + div {
  border-left: 1px solid var(--line);
}

.writing-publication-stats strong {
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.35rem, 4vw, 4.15rem);
  font-weight: 650;
  line-height: 0.84;
}

.writing-publication-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* The Polish print-year figure is wrapped for its trailing full stop.
   Keep its numeral on the same visual scale as the other publication stats. */
.writing-publication-stats strong [data-psx-year] {
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.writing-publication-copy .writing-publication-source {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.psx-movie-card {
  display: grid;
  grid-template-columns: minmax(152px, 0.58fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 22px 0 16px;
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
  background: #f6f0e7;
  border: 1px solid var(--line);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.psx-movie-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.12);
}

.psx-movie-card-copy {
  display: grid;
  gap: 7px;
}

.psx-movie-card-copy strong {
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 650;
  line-height: 1.05;
}

.psx-movie-card-copy > span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.psx-movie-card:hover,
.psx-movie-card:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(17, 67, 64, 0.12);
  transform: translateY(-2px);
}

.writing-podcast-card {
  background: #edf5f2;
}

.writing-podcast-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--teal-deep);
}

.writing-podcast-poster img {
  height: 100%;
  filter: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.writing-podcast-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(7, 30, 34, 0.38), rgba(7, 30, 34, 0.03));
}

.writing-podcast-card:hover .writing-podcast-poster img,
.writing-podcast-card:focus-visible .writing-podcast-poster img {
  opacity: 0.88;
  transform: scale(1.025);
}

.writing-podcast-poster .video-play {
  z-index: 1;
  width: 52px;
  height: 52px;
  font-size: 0.96rem !important;
}

.writing-podcast-label,
.writing-podcast-watch {
  color: var(--red) !important;
  font-size: 0.7rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.writing-podcast-watch {
  margin-top: 3px;
  color: var(--teal-deep) !important;
}

.writing-profile {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 44px;
  padding: 52px 0 54px;
  border-bottom: 1px solid var(--line);
}

.writing-profile-heading h2 {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 3.5rem);
  font-weight: 650;
  line-height: 1;
}

.writing-profile-photo {
  position: relative;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--teal-deep);
}

.writing-profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 45%;
}

.writing-profile-photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px 14px 12px;
  background: linear-gradient(0deg, rgba(7, 30, 34, 0.86), rgba(7, 30, 34, 0));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.writing-profile-copy {
  max-width: 760px;
}

.writing-profile-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.06rem;
}

.writing-profile-list {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 20px 0 0 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.writing-profile-list strong {
  color: var(--teal-deep);
}

.writing-method {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 0 68px;
  border-bottom: 1px solid var(--line);
}

.writing-method-heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.56fr) minmax(0, 1.44fr);
  gap: 18px 46px;
  align-items: end;
  margin-bottom: 30px;
}

.writing-method-heading .eyebrow {
  grid-column: 1;
  margin: 0;
}

.writing-method-heading h2 {
  grid-column: 2;
  margin: 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.55rem);
  font-weight: 650;
  line-height: 0.98;
}

.writing-method-heading > p:last-child {
  grid-column: 2;
  max-width: 610px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.56;
}

.writing-method-map {
  position: relative;
  margin: 0;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  color: #eff7f5;
  background:
    radial-gradient(circle at 84% 7%, rgba(214, 166, 76, 0.22), transparent 28%),
    linear-gradient(135deg, #071f25 0%, #083d3e 58%, #0d514d 100%);
  border: 1px solid rgba(239, 247, 245, 0.28);
  box-shadow: 0 24px 54px rgba(7, 30, 34, 0.19);
}

.writing-method-map::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(239, 247, 245, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 247, 245, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  pointer-events: none;
}

.writing-method-map-topline,
.writing-method-core,
.writing-method-route,
.writing-method-map figcaption {
  position: relative;
  z-index: 1;
}

.writing-method-map-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #e9c16a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.writing-method-core {
  display: grid;
  gap: 5px;
  width: min(100%, 470px);
  margin: clamp(36px, 5vw, 62px) auto clamp(30px, 4vw, 46px);
  padding: 15px 18px 16px;
  text-align: center;
  background: rgba(1, 22, 25, 0.42);
  border: 1px solid rgba(233, 193, 106, 0.72);
  box-shadow: 0 11px 28px rgba(1, 15, 18, 0.26);
}

.writing-method-core::before,
.writing-method-core::after {
  position: absolute;
  top: 50%;
  width: clamp(18px, 5vw, 72px);
  height: 1px;
  background: rgba(233, 193, 106, 0.68);
  content: "";
}

.writing-method-core::before {
  right: calc(100% + 1px);
}

.writing-method-core::after {
  left: calc(100% + 1px);
}

.writing-method-core span {
  color: #e9c16a;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.writing-method-core strong {
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.25rem, 2.1vw, 1.72rem);
  font-weight: 650;
  line-height: 1.05;
}

.writing-method-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.writing-method-route li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 26px 18px 17px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(239, 247, 245, 0.23);
}

.writing-method-route li::before {
  position: absolute;
  top: -8px;
  left: 18px;
  width: 14px;
  height: 14px;
  background: #e9c16a;
  border: 3px solid #083d3e;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(233, 193, 106, 0.8);
  content: "";
}

.writing-method-number {
  color: rgba(239, 247, 245, 0.48);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.writing-method-stage {
  margin: 17px 0 0;
  color: #e9c16a;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.writing-method-route h3 {
  margin: 6px 0 0;
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.24rem, 1.85vw, 1.62rem);
  font-weight: 650;
  line-height: 1.05;
}

.writing-method-route li > p:not(.writing-method-stage) {
  margin: 11px 0 0;
  color: #d5e5e0;
  font-size: 0.82rem;
  line-height: 1.48;
}

.writing-method-detail {
  margin-top: auto;
  padding-top: 14px;
  color: #a9c6bc;
  border-top: 1px solid rgba(239, 247, 245, 0.2);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.writing-method-map figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(239, 247, 245, 0.24);
}

.writing-method-map figcaption span {
  margin-right: 4px;
  color: #a9c6bc;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.writing-method-map figcaption strong {
  color: #fff;
  font-size: 0.76rem;
  line-height: 1.2;
}

.writing-page-samples {
  max-width: 980px;
  margin: 0 auto;
  padding: 58px 0 60px;
  border-bottom: 1px solid var(--line);
}

.writing-page-samples-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px 48px;
  align-items: end;
  margin-bottom: 28px;
}

.writing-page-samples-heading .eyebrow {
  grid-column: 1;
  margin: 0;
}

.writing-page-samples-heading h2 {
  grid-column: 2;
  margin: 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.45rem);
  font-weight: 650;
  line-height: 0.98;
}

.writing-page-samples-heading > p:last-child {
  grid-column: 2;
  max-width: 640px;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.writing-page-samples-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(230px, 0.66fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.writing-page-sample {
  margin: 0;
}

.writing-page-sample-image {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(214, 166, 76, 0.18), transparent 56%),
    #eee5d7;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(24, 32, 32, 0.1);
}

.writing-page-sample--tokyo .writing-page-sample-image {
  aspect-ratio: 1.425 / 1;
}

.writing-page-sample--cozy .writing-page-sample-image {
  aspect-ratio: 0.75 / 1;
  padding: 8px;
}

.writing-page-sample-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: 0 5px 18px rgba(24, 32, 32, 0.11);
}

.writing-page-sample figcaption {
  max-width: 680px;
  margin-top: 15px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}

.writing-page-sample figcaption span,
.writing-page-sample figcaption strong,
.writing-page-sample figcaption p {
  display: block;
}

.writing-page-sample figcaption span {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.writing-page-sample figcaption strong {
  margin-top: 4px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.28rem, 2vw, 1.75rem);
  font-weight: 650;
  line-height: 1.04;
}

.writing-page-sample figcaption p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.writing-page-samples-note {
  display: grid;
  grid-template-columns: minmax(170px, 0.6fr) minmax(0, 1.4fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 36px;
  padding: 20px 22px;
  background: #f1f5ef;
  border-top: 2px solid var(--teal);
}

.writing-page-samples-note .eyebrow {
  margin: 0;
  color: var(--teal);
}

.writing-page-samples-note > p:not(.eyebrow) {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.25;
}

.writing-page-samples-note > span {
  max-width: 160px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.writing-field-notes {
  display: grid;
  grid-template-columns: minmax(240px, 0.56fr) minmax(0, 1.44fr);
  gap: clamp(28px, 5vw, 68px);
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.writing-field-notes-heading h2 {
  max-width: 430px;
  margin: 15px 0 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.9rem, 3.1vw, 3.25rem);
  font-weight: 650;
  line-height: 1;
}

.writing-field-notes-heading > p:last-child {
  max-width: 450px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.writing-field-notes-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.66fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.writing-field-note {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  background: var(--teal-deep);
}

.writing-field-note--archive {
  min-height: 334px;
}

.writing-field-note img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 420ms ease, filter 420ms ease;
}

.writing-field-note--archive img {
  object-position: center;
}

.writing-field-note::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 30, 34, 0.9), rgba(7, 30, 34, 0.02) 62%);
  content: "";
  pointer-events: none;
}

.writing-field-note figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  color: #fff;
}

.writing-field-note figcaption strong,
.writing-field-note figcaption span {
  display: block;
}

.writing-field-note figcaption strong {
  color: #e7b756;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.05;
}

.writing-field-note figcaption span {
  margin-top: 4px;
  color: #e3efeb;
  font-size: 0.73rem;
  line-height: 1.34;
}

.writing-field-note:hover img {
  filter: saturate(1.05) contrast(1.06);
  transform: scale(1.035);
}

.writing-press-interviews {
  display: grid;
  grid-template-columns: minmax(220px, 0.46fr) minmax(0, 1.54fr);
  gap: clamp(28px, 5vw, 68px);
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.writing-press-interviews-intro h2 {
  max-width: 430px;
  margin: 15px 0 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.9rem, 3.1vw, 3.25rem);
  font-weight: 650;
  line-height: 1;
}

.writing-press-interviews-intro > p:last-child {
  max-width: 430px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.writing-press-interviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.writing-press-interview {
  position: relative;
  min-height: 285px;
  margin: 0;
  overflow: hidden;
  background: var(--teal-deep);
}

.writing-press-interview--feature {
  grid-column: span 2;
  min-height: 375px;
}

.writing-press-interview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.02);
  transition: transform 420ms ease, filter 420ms ease;
}

.writing-press-interview--feature img {
  object-position: center 42%;
}

.writing-press-interview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 30, 34, 0.94) 0%, rgba(7, 30, 34, 0.5) 36%, rgba(7, 30, 34, 0.03) 72%);
  content: "";
  pointer-events: none;
}

.writing-press-interview figcaption {
  position: absolute;
  right: 16px;
  bottom: 15px;
  left: 16px;
  z-index: 1;
  color: #fff;
}

.writing-press-interview figcaption span,
.writing-press-interview figcaption strong,
.writing-press-interview figcaption p {
  display: block;
}

.writing-press-interview figcaption span {
  margin-bottom: 6px;
  color: #e7b756;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.writing-press-interview figcaption strong {
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.28rem, 2.1vw, 1.72rem);
  font-weight: 650;
  line-height: 1.04;
}

.writing-press-interview figcaption p {
  max-width: 600px;
  margin: 7px 0 0;
  color: #e3efeb;
  font-size: 0.78rem;
  line-height: 1.4;
}

.writing-press-interview:hover img {
  filter: saturate(1.06) contrast(1.05);
  transform: scale(1.035);
}

.writing-gamebook {
  position: relative;
  overflow: hidden;
  margin: 54px 0 12px;
  padding: clamp(26px, 4vw, 56px);
  color: #eff7f5;
  background:
    radial-gradient(circle at 85% 8%, rgba(222, 170, 66, 0.22), transparent 30%),
    linear-gradient(135deg, #071f25 0%, #08383a 53%, #0b5450 100%);
  border: 1px solid rgba(239, 247, 245, 0.28);
  box-shadow: 0 20px 44px rgba(7, 30, 34, 0.2);
}

.writing-gamebook::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(239, 247, 245, 0.065) 1px, transparent 1px), linear-gradient(90deg, rgba(239, 247, 245, 0.065) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  opacity: 0.45;
  pointer-events: none;
}

.writing-gamebook-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: stretch;
}

.writing-gamebook-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #021417;
  border: 1px solid rgba(239, 247, 245, 0.34);
}

.writing-gamebook-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 20, 23, 0.94), rgba(2, 20, 23, 0.04) 62%);
  content: "";
  pointer-events: none;
}

.writing-gamebook-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: saturate(0.9) contrast(1.06);
}

.writing-gamebook-stamp {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  display: inline-grid;
  gap: 2px;
  padding: 8px 10px;
  color: #071f25;
  background: #e7b756;
  box-shadow: 4px 4px 0 rgba(7, 31, 37, 0.78);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.writing-gamebook-stamp small {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
}

.writing-gamebook-visual p {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.62rem);
  font-weight: 600;
  line-height: 1.08;
}

.writing-gamebook-visual p span {
  color: #d8e7e1;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.writing-gamebook-play {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.writing-gamebook .eyebrow {
  color: #e7b756;
}

.writing-gamebook h2 {
  max-width: 690px;
  margin: 12px 0 0;
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  font-weight: 650;
  line-height: 0.97;
}

.writing-gamebook-intro {
  max-width: 640px;
  margin: 19px 0 0;
  color: #d8e7e1;
  font-size: 1.02rem;
  line-height: 1.57;
}

.writing-gamebook-stage {
  width: 100%;
  max-width: 680px;
  margin-top: 26px;
}

.writing-gamebook-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 13px;
}

.writing-gamebook-status span {
  padding: 6px 8px;
  color: #e7b756;
  background: rgba(2, 20, 23, 0.6);
  border: 1px solid rgba(231, 183, 86, 0.36);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.writing-gamebook-stage h3 {
  margin: 0;
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  font-weight: 600;
  line-height: 1.04;
}

.writing-gamebook-stage > p {
  margin: 10px 0 0;
  color: #d8e7e1;
  font-size: 0.94rem;
  line-height: 1.5;
}

.writing-gamebook-notebook {
  margin-top: 16px;
  padding: 11px 12px;
  background: rgba(1, 22, 25, 0.4);
  border: 1px dashed rgba(216, 231, 225, 0.38);
}

.writing-gamebook-notebook > strong {
  display: block;
  margin-bottom: 7px;
  color: #e7b756;
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.writing-gamebook-notebook > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #b8d2c9;
  font-size: 0.76rem;
  font-style: italic;
  line-height: 1.35;
}

.writing-gamebook-notebook span {
  padding: 5px 7px;
  color: #e9f4f0;
  background: rgba(90, 147, 137, 0.19);
  border-left: 2px solid #e7b756;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.15;
}

.writing-gamebook-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.writing-gamebook-choice,
.writing-gamebook-restart {
  min-height: 100%;
  padding: 15px;
  color: #fff;
  background: rgba(4, 37, 41, 0.76);
  border: 1px solid rgba(239, 247, 245, 0.35);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.writing-gamebook-choice strong,
.writing-gamebook-choice span {
  display: block;
}

.writing-gamebook-choice strong {
  color: #fff;
  font-size: 0.94rem;
  line-height: 1.24;
}

.writing-gamebook-choice span {
  margin-top: 5px;
  color: #b8d2c9;
  font-size: 0.78rem;
  line-height: 1.35;
}

.writing-gamebook-choice:hover,
.writing-gamebook-choice:focus-visible,
.writing-gamebook-restart:hover,
.writing-gamebook-restart:focus-visible {
  color: #071f25;
  background: #e7b756;
  border-color: #f5d080;
  outline: 0;
  transform: translateY(-2px);
}

.writing-gamebook-choice:hover strong,
.writing-gamebook-choice:hover span,
.writing-gamebook-choice:focus-visible strong,
.writing-gamebook-choice:focus-visible span {
  color: #071f25;
}

.writing-gamebook-result {
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid #e7b756;
}

.writing-gamebook-result strong {
  display: block;
  color: #e7b756;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.writing-gamebook-result h3 {
  margin-top: 8px;
}

.writing-gamebook-result p {
  margin-top: 10px;
}

.writing-gamebook-result .writing-gamebook-notebook {
  margin: 18px 0 0;
}

.writing-gamebook-result > strong:not(:first-child) {
  margin-top: 19px;
}

.writing-gamebook-lead {
  padding: 12px 14px;
  color: #fff !important;
  background: rgba(231, 183, 86, 0.13);
  border-left: 3px solid #e7b756;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.06rem !important;
  font-style: italic;
  line-height: 1.32 !important;
}

.writing-gamebook-lesson {
  color: #d8e7e1 !important;
}

.writing-gamebook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.writing-gamebook-restart {
  width: auto;
  min-height: 0;
  margin-top: 0;
  padding: 10px 13px;
  color: #071f25;
  background: #e7b756;
  border-color: #e7b756;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.writing-gamebook-replay {
  color: #071f25;
  background: #e7b756;
  border-color: #f5d080;
}

.writing-gamebook-note {
  max-width: 650px;
  margin: 18px 0 0;
  color: #b8d2c9;
  font-size: 0.75rem;
  line-height: 1.45;
}

.writing-portfolio {
  padding: 74px 0 0;
}

.writing-list article {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 54px;
  min-height: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.writing-list h2 {
  grid-column: 1;
  margin: 0 0 14px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.65rem, 2.4vw, 2.5rem);
  font-weight: 650;
  line-height: 1.02;
}

.writing-type {
  grid-column: 1;
  display: block;
  margin-bottom: 24px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.writing-list article > p {
  grid-column: 1;
  margin: 0 0 14px;
  color: var(--muted);
}

.writing-list .writing-capability {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--teal-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.writing-excerpt {
  grid-column: 2;
  grid-row: 1 / span 4;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.writing-excerpt summary {
  color: var(--teal-deep);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.writing-excerpt-label {
  display: block;
  margin-top: 22px;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.writing-excerpt blockquote + .writing-excerpt-label {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.writing-excerpt blockquote {
  margin: 10px 0 8px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  line-height: 1.45;
}

.writing-list article .writing-excerpt > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: italic;
}

.writing-list .text-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 10px;
}

.writing-cta {
  max-width: 780px;
  padding: 72px 0 0;
}

.writing-cta h2 {
  margin: 0 0 18px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 650;
  line-height: 0.98;
}

.writing-cta p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.writing-cta .button {
  margin-top: 14px;
}

.research-page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 80px;
}

.research-hero {
  max-width: 980px;
  padding: 58px 0 64px;
  border-bottom: 1px solid var(--line);
}

.research-hero h1 {
  max-width: 880px;
  margin: 22px 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3rem, 6.5vw, 6.2rem);
  font-weight: 650;
  line-height: 0.96;
}

.research-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

.research-map-section {
  padding: 64px 0 70px;
  border-bottom: 1px solid var(--line);
}

.research-map-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 42px;
  align-items: end;
  max-width: 980px;
}

.research-map-heading h2 {
  margin: 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.2rem, 4.2vw, 4.3rem);
  font-weight: 650;
  line-height: 0.98;
}

.research-map-heading > p:last-child {
  grid-column: 2;
  max-width: 630px;
  margin: -24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.research-map {
  max-width: 1100px;
  margin: 52px 0 0;
}

.research-map-core {
  position: relative;
  display: grid;
  gap: 8px;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 24px 30px;
  background: var(--teal-deep);
  color: #fff;
  text-align: center;
}

.research-map-core::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 42px;
  background: var(--teal);
  content: "";
}

.research-map-core span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-map-core strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.research-map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 3px solid var(--teal-deep);
}

.research-map-path {
  --path-color: var(--teal);
  --path-tint: #eef7f5;
  position: relative;
  min-width: 0;
}

.research-map-path::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 3px;
  height: 30px;
  background: var(--path-color);
  content: "";
  transform: translateX(-50%);
}

.research-map-path-classroom {
  --path-color: #1679b5;
  --path-tint: #eef6fb;
}

.research-map-path-systems {
  --path-color: #27845f;
  --path-tint: #edf7f1;
}

.research-map-path-tourism {
  --path-color: #c7782b;
  --path-tint: #fff4e8;
}

.research-map-path-programmes {
  --path-color: #a33d35;
  --path-tint: #fbefed;
}

.research-map-context {
  min-width: 0;
  min-height: 238px;
  padding: 22px 20px;
  background: var(--path-tint);
  border: 2px solid var(--path-color);
}

.research-map-context > span {
  display: block;
  margin-bottom: 28px;
  color: var(--path-color);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-map-context h3 {
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.42rem;
  line-height: 1.06;
}

.research-map-context p,
.research-map-evidence p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.research-map-evidence {
  position: relative;
  min-height: 164px;
  margin-top: 28px;
  padding: 18px 18px 20px;
  background: var(--surface);
  border: 2px solid var(--path-color);
}

.research-map-evidence::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 3px;
  height: 28px;
  background: var(--path-color);
  content: "";
  transform: translateX(-50%);
}

.research-map-evidence > span {
  display: block;
  margin-bottom: 12px;
  color: var(--path-color);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-map-evidence strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.research-map figcaption {
  max-width: 780px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.research-projects {
  padding-top: 64px;
}

.research-project {
  max-width: 980px;
  padding: 34px 0 42px;
  border-bottom: 1px solid var(--line);
}

.research-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 20px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-project h2 {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 3.4rem);
  font-weight: 650;
  line-height: 1.02;
}

.research-project p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.06rem;
}

.research-project .research-question {
  max-width: 780px;
  color: var(--ink);
  font-size: 1.12rem;
}

.research-project .text-link {
  display: inline-flex;
  margin-top: 8px;
}

.comix-demo {
  position: relative;
  max-width: 980px;
  margin: 56px 0;
  padding: 42px;
  overflow: hidden;
  border: 2px solid var(--teal-deep);
  background:
    radial-gradient(circle at 92% 8%, rgba(209, 161, 59, 0.2), transparent 27%),
    linear-gradient(135deg, #e8f4ef 0%, #f8f2e7 100%);
  box-shadow:
    10px 10px 0 rgba(3, 73, 73, 0.9),
    0 18px 36px rgba(8, 41, 46, 0.11);
}

.comix-demo::before {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 20px;
  padding: 6px 9px;
  border: 1px solid var(--teal-deep);
  background: var(--gold);
  color: var(--teal-deep);
  content: "CO-MIX · MINI LESSON";
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.comix-demo[data-comix-ui="pl"]::before {
  content: "CO-MIX · MINI-LEKCJA";
}

.comix-demo::after {
  position: absolute;
  z-index: 0;
  inset: 10px;
  border: 1px dashed rgba(3, 73, 73, 0.42);
  content: "";
  pointer-events: none;
}

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

.comix-demo-heading {
  max-width: 820px;
  margin-bottom: 30px;
  padding-left: 18px;
  border-left: 4px solid var(--gold);
}

.comix-demo .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 9px;
  color: #fff;
  background: var(--teal-deep);
}

.comix-demo-heading h2 {
  max-width: 720px;
  margin: 0 0 16px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  font-weight: 650;
  line-height: 1;
}

.comix-demo-heading > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.comix-method-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 18px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--teal-deep);
  background: var(--teal-deep);
  color: #fff;
  list-style: none;
}

.comix-method-strip li {
  position: relative;
  min-width: 0;
  padding: 14px 13px 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.comix-method-strip li:last-child {
  border-right: 0;
}

.comix-method-strip b,
.comix-method-strip span,
.comix-method-strip small {
  display: block;
}

.comix-method-strip b {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.comix-method-strip span {
  margin-bottom: 5px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
}

.comix-method-strip small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  line-height: 1.32;
}

.comix-demo-shell {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(320px, 1.28fr) minmax(230px, 0.85fr);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(8, 41, 46, 0.12);
}

.comix-demo-controls,
.comix-demo-reading,
.comix-demo-recall {
  min-width: 0;
  padding: 24px;
}

.comix-demo-controls,
.comix-demo-recall {
  background: #f1e7d6;
}

.comix-demo-reading {
  background: #fffdf8;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.comix-demo-controls > div + div {
  margin-top: 22px;
}

.comix-demo-controls > div > span,
.comix-demo-reading > span,
.comix-demo-recall > span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comix-demo-button-row {
  display: grid;
  gap: 8px;
}

.comix-demo-button-row button,
.comix-demo-answer-row button,
.comix-demo-reveal {
  border: 1px solid var(--teal-deep);
  border-radius: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--teal-deep);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.comix-demo-button-row button.is-active,
.comix-demo-answer-row button,
.comix-demo-reveal {
  background: var(--teal-deep);
  color: #fff;
}

.comix-demo-button-row button:hover,
.comix-demo-button-row button:focus-visible {
  background: rgba(3, 73, 73, 0.1);
}

.comix-demo-button-row button.is-active:hover,
.comix-demo-button-row button.is-active:focus-visible,
.comix-demo-answer-row button:hover,
.comix-demo-answer-row button:focus-visible,
.comix-demo-reveal:hover,
.comix-demo-reveal:focus-visible {
  background: #063c3c;
  color: #fff;
}

.comix-demo-principle {
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(3, 73, 73, 0.25);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.comix-demo-principle strong {
  display: block;
  margin-bottom: 5px;
  color: var(--teal-deep);
}

.comix-demo-passage {
  min-height: 190px;
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.58;
}

.comix-demo-method-note {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: #f7f0df;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.42;
}

.comix-demo-word-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(3, 73, 73, 0.28);
  border-left: 4px solid var(--teal);
  background: #eaf5f1;
}

.comix-demo-word-card > span {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comix-demo-word-card strong {
  display: block;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.12;
}

.comix-demo-word-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.comix-demo-word-card p:nth-of-type(1) {
  color: var(--teal-deep);
  font-weight: 800;
}

.comix-target-word {
  display: inline;
  margin: 0 0.08em;
  padding: 0 0.14em;
  border: 0;
  border-bottom: 2px solid var(--teal);
  background: #dff1ec;
  color: var(--teal-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.comix-target-word:hover,
.comix-target-word:focus-visible,
.comix-target-word.is-revealed {
  background: var(--teal-deep);
  color: #fff;
}

.comix-demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.comix-demo-reveal {
  text-align: center;
}

.comix-demo-actions p,
.comix-demo-privacy,
.comix-demo-input-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.comix-demo-input-note {
  margin-top: 8px;
}

.comix-demo-recall > p:not(.comix-demo-feedback):not(.comix-demo-privacy):not(.comix-demo-input-note) {
  min-height: 58px;
  margin: 0 0 16px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.18;
}

.comix-demo-recall label {
  display: block;
  margin-bottom: 7px;
  color: var(--teal-deep);
  font-size: 0.76rem;
  font-weight: 800;
}

.comix-demo-answer-row {
  display: flex;
  gap: 8px;
}

.comix-demo-answer-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.comix-demo-answer-row button {
  flex: 0 0 auto;
  text-align: center;
}

.comix-demo-feedback {
  min-height: 42px;
  margin: 14px 0;
  color: var(--teal-deep);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

.comix-demo-feedback.is-incorrect {
  color: var(--red);
}

.comix-demo-reuse {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(3, 73, 73, 0.24);
}

.comix-demo-reuse > p:first-child {
  min-height: 0;
  margin-bottom: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.38;
}

.comix-demo-reuse-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.comix-demo-reuse-options button {
  border: 1px solid rgba(3, 73, 73, 0.45);
  padding: 8px 6px;
  background: #fffaf0;
  color: var(--teal-deep);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.comix-demo-reuse-options button:hover,
.comix-demo-reuse-options button:focus-visible {
  background: var(--teal-deep);
  color: #fff;
}

.comix-demo-reuse-options button:disabled {
  cursor: default;
  opacity: 0.72;
}

.comix-demo-reuse-feedback {
  min-height: 0;
  margin: 10px 0 0;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.comix-demo-reuse-feedback.is-incorrect {
  color: var(--red);
}

.comix-demo-complete {
  margin: 18px 0 0;
  padding: 16px;
  border: 2px solid var(--teal-deep);
  background: #fffaf0;
  box-shadow: 4px 4px 0 rgba(3, 73, 73, 0.14);
}

.comix-demo-complete[hidden] {
  display: none;
}

.comix-demo-complete > span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comix-demo-complete strong {
  display: block;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.16;
}

.comix-demo-complete p {
  min-height: 0 !important;
  margin: 8px 0 12px !important;
  color: var(--muted) !important;
  font-family: inherit !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  line-height: 1.42 !important;
}

.comix-demo-complete button {
  width: 100%;
  border: 1px solid var(--teal-deep);
  padding: 10px 12px;
  background: var(--gold);
  color: var(--teal-deep);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.comix-demo-complete button:hover,
.comix-demo-complete button:focus-visible {
  background: var(--teal-deep);
  color: #fff;
}

.comix-demo-progress {
  margin-top: 16px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(3, 73, 73, 0.28);
  background: #fffaf0;
}

.comix-demo-progress-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  margin-bottom: 10px;
  color: var(--teal-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comix-demo-progress-head span:last-child {
  color: var(--red);
}

.comix-demo-progress ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comix-demo-progress li {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  background: #f4ecdf;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.comix-demo-progress li b {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 4px;
  place-items: center;
  border-radius: 50%;
  background: rgba(3, 73, 73, 0.12);
  color: var(--teal-deep);
  font-size: 0.68rem;
}

.comix-demo-progress li.is-active {
  border-color: var(--gold);
  box-shadow: inset 0 -3px 0 var(--gold);
  color: var(--teal-deep);
}

.comix-demo-progress li.is-complete {
  border-color: var(--teal-deep);
  background: var(--teal-deep);
  color: #fff;
}

.comix-demo-progress li.is-complete b {
  background: var(--gold);
  color: var(--teal-deep);
}

.comix-demo-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.comix-demo-targets span {
  padding: 7px 10px;
  background: #eef7f5;
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.comix-demo-caption,
.comix-evidence-note {
  max-width: 790px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.comix-evidence-note {
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 250, 240, 0.82);
}

.comix-evidence-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--teal-deep);
}

.comix-evidence-note p {
  margin: 0;
}

.comix-evidence-result {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 12px 18px;
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(3, 73, 73, 0.2);
}

.comix-evidence-result b {
  color: var(--red);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comix-evidence-result span {
  min-width: 0;
}

@media (max-width: 860px) {
  .comix-method-strip {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
  }

  .comix-method-strip li {
    scroll-snap-align: start;
  }

  .comix-demo-shell {
    grid-template-columns: 1fr;
  }

  .comix-demo-reading {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-right: 0;
    border-left: 0;
  }

  .comix-demo-passage {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .comix-demo {
    margin: 42px 0;
    padding: 48px 20px 30px;
    box-shadow: 6px 6px 0 rgba(3, 73, 73, 0.9), 0 18px 36px rgba(8, 41, 46, 0.11);
  }

  .comix-demo::before {
    top: 16px;
    left: 20px;
    right: auto;
  }

  .comix-demo-controls,
  .comix-demo-reading,
  .comix-demo-recall {
    padding: 20px;
  }

  .comix-demo-answer-row {
    flex-direction: column;
  }

  .comix-demo-answer-row button {
    width: 100%;
  }

  .comix-demo-reuse-options,
  .comix-demo-progress ol {
    grid-template-columns: 1fr 1fr;
  }

  .comix-demo-progress-head {
    display: grid;
  }

  .comix-evidence-result {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Press-interview contact sheets: keep the editorial grid legible on phones. */
@media (max-width: 860px) {
  .writing-press-interviews {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 620px) {
  .writing-press-interviews {
    padding: 42px 0;
  }

  .writing-press-interviews-grid {
    grid-template-columns: 1fr;
  }

  .writing-press-interview,
  .writing-press-interview--feature {
    grid-column: auto;
    min-height: 300px;
  }

  .writing-press-interview--feature {
    min-height: 335px;
  }

  .writing-press-interview figcaption {
    right: 14px;
    bottom: 13px;
    left: 14px;
  }

  .writing-press-interview figcaption p {
    font-size: 0.76rem;
  }
}

/* Explorer Passport ------------------------------------------------------- */

.stamp-rally {
  --passport-paper: #f3ead6;
  --passport-ink: #123f3d;
  --passport-red: #a73b31;
  position: relative;
  z-index: 140;
}

.stamp-rally-launcher-shell {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 143;
  display: flex;
  align-items: stretch;
  gap: 5px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.stamp-rally.is-minimized .stamp-rally-launcher-shell {
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
}

.stamp-rally-launcher {
  display: grid;
  grid-template-columns: 34px auto auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 6px 8px 6px 6px;
  border: 1px solid rgba(244, 232, 205, 0.58);
  border-radius: 4px;
  background: #103c3a;
  color: #fffaf0;
  box-shadow: 0 12px 35px rgba(11, 39, 37, 0.24);
  font: 800 0.76rem/1 var(--font-sans);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.stamp-rally-minimize {
  width: 30px;
  border: 1px solid rgba(244, 232, 205, 0.58);
  border-radius: 4px;
  background: #103c3a;
  color: #edc66f;
  font: 700 1.05rem/1 var(--font-sans);
  cursor: pointer;
}

.stamp-rally-minimize:hover,
.stamp-rally-minimize:focus-visible { background: #184b48; }

.stamp-rally-header-launcher {
  display: inline-grid;
  grid-template-columns: 28px auto;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 3px 7px 3px 3px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: 800 0.62rem/1 var(--font-sans);
  cursor: pointer;
}

.stamp-rally-header-launcher[hidden] { display: none !important; }

.stamp-rally-header-launcher span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #d49b2f;
  border-radius: 50% 46% 51% 45%;
  color: #e2b34e;
  font: 700 1rem/1 var(--font-serif);
  transform: rotate(-5deg);
}

.stamp-rally-header-launcher:hover,
.stamp-rally-header-launcher:focus-visible { background: rgba(212, 155, 47, 0.14); }

.stamp-rally-launcher:hover,
.stamp-rally-launcher:focus-visible {
  transform: translateY(-2px);
  background: #184b48;
}

.stamp-rally-launcher-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d49b2f;
  border-radius: 50% 46% 51% 45%;
  color: #e2b34e;
  font: 700 1.1rem/1 var(--font-serif);
  transform: rotate(-5deg);
}

.stamp-rally-launcher b {
  min-width: 35px;
  padding: 7px 6px;
  border-left: 1px solid rgba(255, 250, 240, 0.24);
  color: #edc66f;
  text-align: center;
}

.stamp-rally-scrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(5, 29, 28, 0.48);
  backdrop-filter: blur(2px);
}

.stamp-rally-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 142;
  width: min(560px, 100vw);
  height: 100dvh;
  padding: 34px 32px 44px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid rgba(18, 63, 61, 0.28);
  background:
    linear-gradient(rgba(26, 68, 64, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 68, 64, 0.025) 1px, transparent 1px),
    var(--passport-paper);
  background-size: 23px 23px;
  color: var(--passport-ink);
  box-shadow: -20px 0 60px rgba(9, 36, 34, 0.24);
  transform: translateX(104%);
  transition: transform 360ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.stamp-rally-drawer.is-open {
  transform: translateX(0);
}

.stamp-rally-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--passport-ink);
}

.stamp-rally-drawer-head .eyebrow {
  margin-bottom: 5px;
  color: var(--passport-red);
}

.stamp-rally-drawer-head h2 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.6rem);
  line-height: 0.94;
}

.stamp-rally-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--passport-ink);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 400 1.7rem/1 var(--font-sans);
  cursor: pointer;
}

.stamp-rally-deck {
  max-width: 48ch;
  margin: 18px 0 22px;
  color: rgba(18, 63, 61, 0.76);
  font-size: 0.98rem;
  line-height: 1.55;
}

.stamp-rally-reward-hint {
  margin: -10px 0 22px;
  padding: 8px 10px 8px 30px;
  border-left: 2px solid #d19c36;
  color: rgba(18, 63, 61, 0.82);
  font: 800 0.76rem/1.42 var(--font-sans);
  letter-spacing: 0.015em;
  position: relative;
}

.stamp-rally-reward-hint::before {
  content: "〒";
  position: absolute;
  left: 9px;
  top: 7px;
  color: #c18b27;
  font: 700 1rem/1 var(--font-serif);
}

.stamp-rally-route {
  display: grid;
  grid-template-columns: 9px 1fr 9px 1fr 9px 1fr 9px;
  align-items: center;
  margin: 0 8px 22px;
}

.stamp-rally-route span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--passport-red);
}

.stamp-rally-route i {
  height: 1px;
  border-top: 1px dashed rgba(18, 63, 61, 0.55);
}

.stamp-rally-grid {
  display: grid;
  gap: 10px;
}

.stamp-rally-item {
  --stamp-tone: #6f7775;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 144px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(18, 63, 61, 0.2);
  background: rgba(255, 253, 247, 0.84);
}

.stamp-rally-tone-gold { --stamp-tone: #bc8420; }
.stamp-rally-tone-teal { --stamp-tone: #137a72; }
.stamp-rally-tone-red { --stamp-tone: #ae3d35; }
.stamp-rally-tone-violet { --stamp-tone: #78517e; }
.stamp-rally-tone-blue { --stamp-tone: #356c8a; }
.stamp-rally-tone-orange { --stamp-tone: #c45d2f; }
.stamp-rally-tone-green { --stamp-tone: #507a43; }

.stamp-rally-stamp-field {
  position: relative;
  display: grid;
  place-items: center;
  width: 114px;
  height: 114px;
  overflow: hidden;
  border: 1px dashed rgba(18, 63, 61, 0.34);
  background:
    linear-gradient(90deg, rgba(18, 63, 61, 0.035) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(rgba(18, 63, 61, 0.035) 1px, transparent 1px) 0 0 / 18px 18px,
    #fffdf7;
  color: rgba(18, 63, 61, 0.46);
}

.stamp-rally-stamp-field::before,
.stamp-rally-stamp-field::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.stamp-rally-stamp-field::before {
  inset: 10px;
  border: 1px solid rgba(18, 63, 61, 0.12);
}

.stamp-rally-stamp-field::after {
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0 35px, rgba(18, 63, 61, 0.055) 36px 37px, transparent 38px);
}

.stamp-rally-slot-number {
  position: absolute;
  top: 8px;
  left: 9px;
  z-index: 1;
  font: 900 0.54rem/1 var(--font-sans);
  letter-spacing: 0.12em;
}

.stamp-rally-slot-label {
  position: relative;
  z-index: 1;
  max-width: 66px;
  padding: 4px 5px;
  background: rgba(255, 253, 247, 0.9);
  font: 900 0.48rem/1.15 var(--font-sans);
  letter-spacing: 0.1em;
  text-align: center;
}

.stamp-rally-slot-target {
  position: absolute;
  z-index: 0;
  width: 44px;
  height: 44px;
  border: 1px dashed rgba(18, 63, 61, 0.19);
  border-radius: 50%;
}

.stamp-rally-slot-target::before,
.stamp-rally-slot-target::after {
  content: "";
  position: absolute;
  background: rgba(18, 63, 61, 0.18);
}

.stamp-rally-slot-target::before { top: 21px; left: -8px; width: 58px; height: 1px; }
.stamp-rally-slot-target::after { top: -8px; left: 21px; width: 1px; height: 58px; }

.stamp-rally-stamp {
  position: absolute;
  inset: 5px;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--stamp-tone);
  opacity: 0;
  transform: rotate(-7deg) scale(1.22);
  mix-blend-mode: multiply;
  filter: contrast(0.92) saturate(0.88);
}

.stamp-rally-stamp::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 4;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 253, 247, 0.96) 0 1px, transparent 1.7px),
    radial-gradient(circle at 72% 19%, rgba(255, 253, 247, 0.92) 0 1.2px, transparent 2px),
    radial-gradient(circle at 37% 67%, rgba(255, 253, 247, 0.9) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 84% 72%, rgba(255, 253, 247, 0.94) 0 1.1px, transparent 1.9px);
  background-size: 17px 19px, 23px 21px, 19px 23px, 29px 25px;
  opacity: 0.6;
  pointer-events: none;
}

.stamp-rally-item:nth-child(even) .stamp-rally-stamp { transform: rotate(4deg) scale(1.22); }

.stamp-rally-item.is-unlocked .stamp-rally-slot-label,
.stamp-rally-item.is-unlocked .stamp-rally-slot-target { opacity: 0; }

.stamp-rally-item.is-unlocked .stamp-rally-stamp {
  opacity: 0.88;
  animation: passport-stamp-in 540ms cubic-bezier(0.2, 0.9, 0.28, 1.12) both;
}

.stamp-rally-stamp::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid currentColor;
  opacity: 0.84;
}

.stamp-rally-shape-round .stamp-rally-stamp::before { border-radius: 48% 52% 46% 54% / 51% 47% 53% 49%; }
.stamp-rally-shape-oval .stamp-rally-stamp::before { inset: 14px 4px; border-radius: 50%; }
.stamp-rally-shape-square .stamp-rally-stamp::before { inset: 8px; border-radius: 4px 1px 5px 2px; }
.stamp-rally-shape-shield .stamp-rally-stamp::before { inset: 5px 12px 10px; border-radius: 48% 48% 42% 42% / 18% 18% 60% 60%; }
.stamp-rally-shape-arch .stamp-rally-stamp::before { inset: 5px 10px 8px; border-radius: 48% 48% 10% 10% / 38% 38% 8% 8%; }

.stamp-rally-stamp svg {
  position: absolute;
  inset: 15px 14px 18px;
  width: calc(100% - 28px);
  height: calc(100% - 33px);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stamp-rally-stamp svg text {
  fill: currentColor;
  stroke: none;
  font: 900 12px/1 var(--font-sans);
  letter-spacing: 0.02em;
}

.stamp-rally-stamp svg .stamp-title {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.stamp-rally-stamp small,
.stamp-rally-stamp span {
  position: absolute;
  z-index: 1;
  font: 900 0.42rem/1 var(--font-sans);
  letter-spacing: 0.12em;
}

.stamp-rally-stamp small { top: 12px; }
.stamp-rally-stamp span { bottom: 12px; }

.stamp-rally-stamp strong {
  position: absolute;
  right: 17px;
  bottom: 23px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  background: rgba(255, 253, 247, 0.35);
  font: 800 0.9rem/1 var(--font-serif);
}

.stamp-rally-item-copy > span {
  color: var(--stamp-tone);
  font: 800 0.64rem/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stamp-rally-item:not(.is-unlocked) .stamp-rally-item-copy > span {
  color: #707875;
}

.stamp-rally-item-copy h3 {
  margin: 5px 0 5px;
  font-size: 1.28rem;
  line-height: 1.02;
}

.stamp-rally-item-copy p {
  margin: 0;
  color: rgba(18, 63, 61, 0.72);
  font-size: 0.82rem;
  line-height: 1.42;
}

.stamp-rally-item-copy a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--passport-ink);
  font: 800 0.72rem/1.2 var(--font-sans);
  text-decoration: none;
}

.stamp-rally-item-copy a i { font-style: normal; }

.stamp-rally-reward {
  position: relative;
  margin-top: 24px;
  padding: 28px 24px 24px;
  overflow: hidden;
  border: 2px solid var(--passport-ink);
  background: rgba(255, 251, 241, 0.84);
}

.stamp-rally-reward::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(167, 59, 49, 0.15);
  border-radius: 50%;
}

.stamp-rally-final-seal {
  float: right;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: -5px 0 12px 18px;
  border: 5px double var(--passport-red);
  border-radius: 49% 51% 46% 54%;
  color: var(--passport-red);
  transform: rotate(5deg);
}

.stamp-rally-final-seal span {
  font: 800 2.8rem/1 var(--font-serif);
}

.stamp-rally-final-seal b {
  max-width: 74px;
  font: 900 0.52rem/1.1 var(--font-sans);
  letter-spacing: 0.08em;
  text-align: center;
}

.stamp-rally-reward > .eyebrow {
  margin: 0 0 8px;
  color: var(--passport-red);
}

.stamp-rally-reward > h3 {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 0.96;
}

.stamp-rally-final-body {
  margin: 18px 0;
  font-size: 1rem;
  line-height: 1.56;
}

.stamp-rally-route-title {
  display: grid;
  gap: 3px;
  clear: both;
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 5px solid #d39a31;
  background: rgba(211, 154, 49, 0.12);
}

.stamp-rally-route-title span,
.stamp-rally-route-title b {
  font: 700 0.72rem/1.3 var(--font-sans);
}

.stamp-rally-route-title strong {
  font: 700 1.35rem/1 var(--font-serif);
}

.stamp-rally-note {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(18, 63, 61, 0.25);
}

.stamp-rally-note > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--passport-red);
  border-radius: 50%;
  color: var(--passport-red);
  font: 800 0.72rem/1 var(--font-sans);
}

.stamp-rally-note .eyebrow { margin: 0 0 7px; }
.stamp-rally-note p:last-child { margin: 0; line-height: 1.58; }

.stamp-rally-story {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 2px solid var(--passport-ink);
}

.stamp-rally-story-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 26px;
}

.stamp-rally-story-photo {
  position: relative;
  margin: 0;
  overflow: visible;
}

.stamp-rally-story-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 642;
  object-fit: contain;
  border: 1px solid rgba(18, 63, 61, 0.34);
  background: #eee8db;
  filter: saturate(0.92) contrast(1.02);
}

.stamp-rally-story-photo figcaption {
  margin: 8px 0 0;
  color: rgba(18, 63, 61, 0.67);
  font: 700 0.67rem/1.4 var(--font-sans);
}

.stamp-rally-story-ticket {
  position: absolute;
  top: 14px;
  right: -8px;
  bottom: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 104px;
  min-height: 96px;
  padding: 9px;
  border: 1px solid var(--passport-ink);
  background: #dfc789;
  color: #193e3c;
  transform: rotate(-2deg);
  box-shadow: 5px 6px 0 rgba(18, 63, 61, 0.12);
}

.stamp-rally-story-ticket b {
  font: 800 2.5rem/0.8 var(--font-serif);
}

.stamp-rally-story-ticket span {
  font: 900 0.85rem/1.1 var(--font-sans);
  text-align: right;
}

.stamp-rally-story-ticket i {
  grid-column: 1 / -1;
  align-self: end;
  padding-top: 9px;
  border-top: 1px dashed currentColor;
  font: 900 0.62rem/1 var(--font-sans);
  font-style: normal;
  letter-spacing: 0.08em;
}

.stamp-rally-story-copy .eyebrow { margin: 0 0 5px; color: var(--passport-red); }

.stamp-rally-story-copy h4 {
  margin: 0 0 12px;
  font-size: 1.65rem;
  line-height: 1.03;
}

.stamp-rally-story-copy p {
  margin: 0 0 11px;
  color: rgba(18, 63, 61, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
}

.stamp-rally-story-copy > strong {
  display: block;
  margin-top: 16px;
  color: var(--passport-red);
  font: 700 1.12rem/1.2 var(--font-serif);
}

.stamp-rally-reset {
  margin: 20px auto 0;
  padding: 8px;
  border: 0;
  border-bottom: 1px solid rgba(18, 63, 61, 0.5);
  background: transparent;
  color: rgba(18, 63, 61, 0.65);
  font: 700 0.7rem/1 var(--font-sans);
  cursor: pointer;
}

.stamp-rally-toast {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 145;
  max-width: min(330px, calc(100vw - 36px));
  padding: 14px 18px 14px 46px;
  border: 1px solid #d19c36;
  background: #113f3c;
  color: #fff9ed;
  box-shadow: 0 14px 40px rgba(5, 32, 30, 0.28);
  font: 800 0.8rem/1.35 var(--font-sans);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.stamp-rally-toast::before {
  content: "印";
  position: absolute;
  left: 13px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #d19c36;
  border-radius: 50% 46% 52% 48%;
  color: #e0b456;
  transform: rotate(-5deg);
}

.stamp-rally-toast.is-visible { opacity: 1; transform: translateY(0); }
.stamp-rally-toast.is-complete { border-color: #d87365; }

@keyframes passport-stamp-in {
  0% { opacity: 0; transform: rotate(-10deg) scale(1.34); }
  60% { opacity: 0.94; transform: rotate(-3deg) scale(0.96); }
  100% { opacity: 0.88; transform: rotate(-4deg) scale(1); }
}

@media (max-width: 620px) {
  .stamp-rally-launcher-shell {
    right: 10px;
    bottom: auto;
    /* Keep the passport control off the reading area and above the content.
       It stays deliberately compact, but no longer floats over the final story. */
    top: max(154px, calc(env(safe-area-inset-top) + 154px));
  }

  .stamp-rally-launcher {
    grid-template-columns: 30px auto;
  }

  .stamp-rally-launcher-mark { width: 30px; height: 30px; }
  .stamp-rally-launcher > span:nth-child(2) { display: none; }
  .stamp-rally-launcher b { border-left: 0; }

  .stamp-rally-drawer {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(91dvh, 820px);
    padding: 25px 16px 36px;
    border-top: 1px solid rgba(18, 63, 61, 0.28);
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(105%);
  }

  .stamp-rally-drawer.is-open { transform: translateY(0); }
  .stamp-rally-drawer-head h2 { font-size: 2.35rem; }
  .stamp-rally-item { grid-template-columns: 92px minmax(0, 1fr); gap: 11px; min-height: 120px; padding: 10px; }
  .stamp-rally-stamp-field { width: 86px; height: 86px; }
  .stamp-rally-stamp { inset: 3px; }
  .stamp-rally-stamp svg { inset: 12px 11px 15px; width: calc(100% - 22px); height: calc(100% - 27px); stroke-width: 2.6; }
  .stamp-rally-stamp strong { right: 12px; bottom: 18px; width: 18px; height: 18px; font-size: 0.72rem; }
  .stamp-rally-stamp small { top: 9px; }
  .stamp-rally-stamp span { bottom: 9px; font-size: 0.33rem; }
  .stamp-rally-slot-number { top: 6px; left: 7px; }
  .stamp-rally-slot-label { max-width: 58px; font-size: 0.4rem; }
  .stamp-rally-item-copy h3 { font-size: 1.14rem; }
  .stamp-rally-item-copy p { font-size: 0.78rem; }
  .stamp-rally-reward { padding: 23px 17px 18px; }
  .stamp-rally-final-seal { width: 92px; height: 92px; margin-left: 10px; }
  .stamp-rally-final-seal span { font-size: 2.25rem; }
  .stamp-rally-story-gallery { grid-template-columns: 1fr; gap: 18px; }
  .stamp-rally-story-ticket {
    top: 9px;
    right: -4px;
    width: 88px;
    min-height: 82px;
    padding: 7px;
  }
  .stamp-rally-story-ticket b { font-size: 2.1rem; }
  .stamp-rally-story-ticket span { font-size: 0.68rem; }
  .stamp-rally-story-ticket i { padding-top: 6px; font-size: 0.5rem; }
  .stamp-rally-toast { right: 10px; bottom: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .stamp-rally-drawer,
  .stamp-rally-toast,
  .stamp-rally-launcher-shell,
  .stamp-rally-launcher,
  .stamp-rally-stamp { transition: none; animation: none; }
}

.research-project-recent {
  padding-top: 0;
}

.research-status {
  color: var(--teal-deep) !important;
  font-size: 0.88rem !important;
  font-style: italic;
}

.research-publications {
  max-width: 980px;
  margin: 56px 0 8px;
  padding: 48px 0 12px;
  border-top: 1px solid var(--line);
}

.research-publications-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.research-publications-heading h2 {
  max-width: 680px;
  margin: 10px 0 14px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.85rem, 3.1vw, 3rem);
  font-weight: 650;
  line-height: 1.02;
}

.research-publications-heading > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.research-publications-list {
  border: 1px solid var(--teal-deep);
  background: #f8f3e9;
}

.research-publications-list > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: var(--teal-deep);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.research-publications-list > summary::-webkit-details-marker {
  display: none;
}

.research-publications-list > summary::after {
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--teal-deep);
  content: "+";
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.research-publications-list[open] > summary {
  border-bottom: 1px solid var(--teal-deep);
  background: var(--teal-deep);
  color: #fff;
}

.research-publications-list[open] > summary::after {
  border-color: #fff;
  content: "–";
}

.research-publications-list > summary span {
  margin-left: auto;
  color: var(--red);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.research-publications-list[open] > summary span {
  color: #f2cf83;
}

.research-publications-list-inner {
  padding: 0 20px;
  background: #fffdf8;
}

.research-publication-entry {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.research-publication-year {
  margin: 3px 0 0;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.research-publication-entry h3 {
  margin: 0 0 8px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 650;
  line-height: 1.13;
}

.research-publication-entry p {
  max-width: 730px;
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.research-publication-entry .research-publication-citation {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.88rem;
  font-style: italic;
}

.research-publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px !important;
}

.research-publication-links a,
.research-publications-more {
  color: var(--teal-deep);
  font-weight: 800;
}

.research-publications-more {
  display: inline-flex;
  gap: 7px;
  margin: 22px 0;
  text-underline-offset: 3px;
}

.research-publications-more span {
  color: var(--red);
}

@media (max-width: 620px) {
  .research-publications {
    margin-top: 42px;
    padding-top: 38px;
  }

  .research-publications-list > summary {
    align-items: flex-start;
    padding: 16px;
    font-size: 0.95rem;
  }

  .research-publications-list > summary span {
    display: none;
  }

  .research-publications-list-inner {
    padding: 0 16px;
  }

  .research-publication-entry {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 22px 0;
  }

  .research-publication-year {
    margin: 0;
  }
}

.research-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  padding-top: 36px;
}

.research-books {
  max-width: 980px;
  margin: 56px 0 8px;
  padding: 48px 0 12px;
  border-top: 1px solid var(--line);
}

.research-book-entry {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  background: var(--surface);
  border-left: 3px solid var(--gold);
}

.research-book-entry + .research-book-entry {
  margin-top: 16px;
}

.research-book-entry--text {
  grid-template-columns: minmax(0, 1fr);
}

.research-book-cover {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--teal-deep);
}

.research-book-cover img {
  width: 100%;
  aspect-ratio: 352 / 500;
  object-fit: cover;
  transition: transform 180ms ease;
}

.research-book-cover:hover img,
.research-book-cover:focus-visible img {
  transform: scale(1.03);
}

.research-book-copy > span {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-book-copy h3 {
  max-width: 820px;
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1.05;
}

.research-book-copy > p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

.research-book-copy .text-link {
  display: inline-block;
  margin-top: 20px;
}

.research-book-review {
  max-width: 680px;
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 2px solid var(--teal);
  background: rgba(29, 109, 106, 0.07);
}

.research-book-review p {
  margin: 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.04rem;
  line-height: 1.35;
}

.research-book-review cite {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.research-book-review cite a {
  color: inherit;
}

.writing-books {
  max-width: 980px;
  margin: 56px auto 8px;
  padding: 48px 0 12px;
  border-top: 1px solid var(--line);
}

.writing-book-entry {
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 24px;
  background: var(--surface);
  border-left: 3px solid var(--gold);
}

.writing-book-entry + .writing-book-entry {
  margin-top: 16px;
}

.writing-book-cover {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: transparent;
}

.writing-book-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 180ms ease;
}

.writing-book-cover:hover img,
.writing-book-cover:focus-visible img {
  transform: scale(1.03);
}

.writing-book-copy > span {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.writing-book-copy h3 {
  max-width: 820px;
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1.05;
}

.writing-book-copy > p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

.writing-book-copy .text-link {
  display: inline-block;
  margin-top: 20px;
}

.writing-book-review {
  max-width: 680px;
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 2px solid var(--teal);
  background: rgba(29, 109, 106, 0.07);
}

.writing-book-review p {
  margin: 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.04rem;
  line-height: 1.35;
}

.writing-book-review cite {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.writing-book-review cite a {
  color: inherit;
}

.workshop-artifact {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 0.72fr);
  gap: 34px;
  align-items: center;
  max-width: 860px;
  margin: 56px 0 8px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.workshop-artifact-image {
  display: block;
  border: 1px solid var(--line);
}

.workshop-artifact-image img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  object-position: top;
}

.workshop-artifact-copy h2 {
  max-width: 600px;
  margin: 0 0 14px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.02;
}

.workshop-artifact-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
}

.workshop-artifact-copy .text-link {
  display: inline-block;
  margin-top: 18px;
}

.teaching-materials {
  margin-top: 64px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.teaching-materials .section-heading {
  max-width: 820px;
}

.teaching-materials .section-heading > p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.teaching-materials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.teaching-material-card {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.teaching-material-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.teaching-material-card figcaption {
  padding: 22px;
}

.teaching-material-card h3 {
  margin: 0 0 10px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.teaching-material-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

@media (max-width: 1120px) {
  .teaching-materials-grid,
  .course-record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.research-links .eyebrow {
  width: 100%;
  margin-bottom: 0;
}

.research-links a {
  color: var(--teal-deep);
  font-weight: 800;
}

.workshop-evidence {
  margin-top: 64px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

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

.workshop-evidence-grid article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.workshop-evidence-grid span {
  display: block;
  margin-bottom: 22px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.workshop-evidence-grid h3 {
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.workshop-evidence-grid p {
  margin: 0;
  color: var(--muted);
}

.workshop-testimonials {
  margin-top: 64px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

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

.workshop-testimonial-grid blockquote {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 24px;
  background: var(--teal-deep);
  color: #f9f2e4;
}

.workshop-testimonial-grid blockquote p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.3;
}

.workshop-testimonial-grid cite {
  display: block;
  margin-top: 24px;
  color: rgba(249, 242, 228, 0.72);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.35;
}

.archive-section {
  border-bottom: 1px solid var(--line);
}

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

.media-section {
  background: var(--surface);
}

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

.media-item {
  display: block;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 160ms ease, transform 160ms ease;
}

.media-item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.media-item span {
  display: block;
  margin-bottom: 20px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-item h3 {
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.media-item p {
  margin: 0;
  color: var(--muted);
}

.record-player {
  margin-top: 36px;
}

.record-tv {
  position: relative;
  padding: 12px 12px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 5%, rgba(218, 172, 72, 0.13), transparent 28%),
    linear-gradient(145deg, #1a1a1a, #080808 72%);
  border: 1px solid #303030;
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(8, 12, 12, 0.2);
}

.record-library-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 48px;
  padding: 0 5px;
  overflow-x: auto;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.record-library-menu strong {
  color: #d5a948;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.record-library-menu > div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.record-library-menu button {
  padding: 4px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease;
}

.record-library-menu button:hover,
.record-library-menu button:focus-visible,
.record-library-menu button.is-active {
  border-bottom-color: #d5a948;
  color: #fff;
}

.record-tv-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 1px 4px 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.record-screen {
  height: 470px;
  overflow: hidden;
  background: #101010;
  outline: none;
}

.record-screen:focus-visible {
  box-shadow: 0 0 0 3px var(--gold);
}

.record-slide {
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
}

.record-slide[hidden] {
  display: none;
}

.record-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #101010;
}

.record-image::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.98) 0%, rgba(8, 8, 8, 0.91) 28%, rgba(8, 8, 8, 0.42) 57%, rgba(8, 8, 8, 0.08) 100%),
    linear-gradient(0deg, rgba(8, 8, 8, 0.82) 0%, transparent 55%);
  content: "";
}

.record-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.78) contrast(1.08) brightness(0.76);
}

.record-image-contain img {
  object-fit: cover;
  padding: 0;
  background: #101010;
}

.record-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(57%, 640px);
  min-height: 100%;
  padding: clamp(28px, 5vw, 56px);
  background: transparent;
  overflow: auto;
}

.record-copy > span {
  margin-bottom: 19px;
  color: #d5a948;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.record-copy h3 {
  max-width: 15ch;
  margin: 0 0 17px;
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 0.96;
}

.record-copy p {
  max-width: 48ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.record-copy a {
  margin-top: 26px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.record-copy a span {
  color: #d5a948;
}

.record-tv-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 58px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.record-tv-controls button {
  width: 34px;
  height: 34px;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.record-tv-controls button:hover,
.record-tv-controls button:focus-visible {
  background: #fff;
  color: #101010;
  transform: scale(1.06);
}

.record-channels {
  display: flex;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0 0 13px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
}

.record-channel {
  position: relative;
  flex: 0 0 168px;
  min-height: 112px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101010;
  color: var(--teal-deep);
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.record-channel::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.04), rgba(8, 8, 8, 0.88));
  content: "";
}

.record-channel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 220ms ease;
}

.record-channel span,
.record-channel strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.record-channel span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.record-channel strong {
  position: absolute;
  right: 11px;
  bottom: 10px;
  left: 11px;
  font-size: 0.76rem;
  line-height: 1.12;
}

.record-channel:hover,
.record-channel:focus-visible,
.record-channel.is-active {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 2px #d5a948;
  transform: translateY(-2px) scale(1.02);
}

.record-channel:hover img,
.record-channel:focus-visible img,
.record-channel.is-active img {
  transform: scale(1.06);
}

.record-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.record-links a {
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

.record-links a::after {
  content: " ↗";
  color: var(--coral);
}

.achievements-page {
  padding-top: 92px;
}

.video-showcase {
  padding: 76px max(28px, calc((100% - 1180px) / 2));
  background: var(--teal-deep);
  color: #fff;
}

.video-showcase-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}

.video-showcase-heading .eyebrow {
  color: #f3c85b;
}

.video-showcase-heading h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2.75rem;
  line-height: 1;
}

.video-showcase-heading > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.video-grid article {
  min-width: 0;
}

.video-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #071e22;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster {
  width: 100%;
  padding: 0;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.video-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(7, 30, 34, 0.42), rgba(7, 30, 34, 0.04));
}

.video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  display: grid !important;
  width: 64px;
  height: 64px;
  margin: 0 !important;
  place-items: center;
  transform: translate(-50%, -50%);
  background: var(--red);
  color: #fff !important;
  font-size: 1.15rem !important;
  line-height: 1;
}

.video-poster:hover img {
  opacity: 0.84;
  transform: scale(1.025);
}

.video-poster:focus-visible {
  outline: 3px solid #f3c85b;
  outline-offset: 4px;
}

.video-external {
  display: inline-block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.video-grid span {
  display: block;
  margin-top: 14px;
  color: #f3c85b;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.video-grid h3 {
  margin: 6px 0 0;
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.artifact-section {
  max-width: 1180px;
  margin-inline: auto;
  padding: 76px 28px;
  border-bottom: 1px solid var(--line);
}

.artifact-heading {
  display: grid;
  grid-template-columns: 0.6fr 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}

.artifact-heading h2 {
  margin: 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2.7rem;
  line-height: 1;
}

.artifact-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

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

.artifact-item {
  display: grid;
  min-width: 0;
  align-content: start;
  color: var(--ink);
  text-decoration: none;
}

.artifact-item img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  transition: border-color 160ms ease, transform 160ms ease;
}

.artifact-item img.artifact-poster--full {
  object-fit: contain;
  background: #f6f0e7;
}

.artifact-image-focus {
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 160ms ease, transform 160ms ease;
}

.artifact-image-focus img {
  height: 100%;
  border: 0;
  transform: scale(1.7);
  transform-origin: 100% 22%;
}

.artifact-item:hover img,
.artifact-item:focus-visible img {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.artifact-item:hover .artifact-image-focus,
.artifact-item:focus-visible .artifact-image-focus {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.artifact-item:hover .artifact-image-focus img,
.artifact-item:focus-visible .artifact-image-focus img {
  transform: scale(1.7);
}

.artifact-item > span {
  margin-top: 16px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.artifact-item strong {
  margin-top: 7px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.15;
}

.artifact-item small {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.teaching-gallery {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.teaching-gallery-heading {
  display: grid;
  grid-template-columns: 0.6fr 1.2fr 0.85fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 40px;
}

.teaching-gallery-heading h2 {
  margin: 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.25rem, 4vw, 4.4rem);
  font-weight: 650;
  line-height: 0.98;
}

.teaching-gallery-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.teaching-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: 320px 250px;
  gap: 10px;
}

.teaching-gallery-grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--teal-deep);
}

.teaching-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teaching-gallery-grid figure:nth-child(1) img {
  object-position: 60% center;
}

.teaching-gallery-grid figure:nth-child(2) img {
  object-position: 72% center;
}

.teaching-gallery-grid figure:nth-child(3) img {
  object-position: 62% center;
}

.teaching-gallery-grid figure:nth-child(4) img {
  object-position: 28% center;
}

.teaching-gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 32px 20px 18px;
  background: linear-gradient(0deg, rgba(7, 30, 34, 0.88), rgba(7, 30, 34, 0));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.achievements-hero,
.achievement-section,
.achievement-cta {
  max-width: 1180px;
  margin-inline: auto;
}

.achievement-section {
  padding: 72px 28px;
}

.achievement-guide {
  margin-bottom: 72px;
  border: 1px solid var(--line);
  background: #fbf7ef;
}

.achievement-guide-intro {
  padding: 26px 28px 24px;
  border-bottom: 1px solid var(--line);
}

.achievement-guide-intro .eyebrow {
  margin: 0;
}

.achievement-guide-intro h2 {
  max-width: 20ch;
  margin: 8px 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
}

.achievement-guide-intro > p:not(.eyebrow) {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.achievement-guide-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.achievement-guide-links > a {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 150px;
  padding: 22px;
  background: var(--surface);
  text-decoration: none;
  transition: background 160ms ease;
}

.achievement-guide-links > a:hover,
.achievement-guide-links > a:focus-visible {
  background: #f4eee3;
}

.achievement-guide strong {
  color: var(--red);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
}

.achievement-guide span {
  color: var(--teal-deep);
  line-height: 1.5;
}

.achievement-photo-strip {
  display: grid;
  grid-template-columns: 1.15fr 1.45fr 0.9fr;
  gap: 8px;
  margin: 36px 0 76px;
}

.achievement-photo-strip img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.achievement-photo-strip figure:first-child img {
  object-position: center 30%;
}

.achievement-photo-strip figure:nth-child(2) img {
  object-position: center 25%;
}

.achievement-photo-strip figure:nth-child(3) img {
  object-position: center 28%;
}

.achievement-photo-strip figure.achievement-photo--utokyo-programme img {
  object-fit: cover;
}

.achievement-photo-strip figure.achievement-photo--utokyo-programme img {
  object-position: center 56%;
}

.achievement-heading {
  margin-top: 72px;
}

.achievement-section .section-heading[id] {
  scroll-margin-top: 118px;
}

.achievement-grid .media-item {
  min-height: 240px;
  align-self: start;
}

.achievement-grid .achievement-feature {
  border-top-color: var(--coral);
}

.achievement-photo-card {
  overflow: hidden;
  padding: 0 24px 24px;
}

.achievement-photo-card > img {
  display: block;
  width: calc(100% + 48px);
  height: 184px;
  margin: 0 -24px 22px;
  object-fit: cover;
  object-position: center 42%;
}

.achievement-safe-pass {
  float: right;
  width: 82px;
  height: auto;
  margin: 0 0 14px 16px;
  background: #fff;
  border: 1px solid rgba(7, 30, 34, 0.18);
  box-shadow: 0 8px 18px rgba(7, 30, 34, 0.13);
}

.achievement-documentary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr) minmax(180px, 0.62fr);
  gap: 8px;
  margin: 42px 0 84px;
}

.achievement-documentary-grid figure,
.achievement-community-visual figure {
  position: relative;
  min-width: 0;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  background: var(--teal-deep);
}

.achievement-documentary-grid img,
.achievement-community-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.achievement-documentary-grid figure:nth-child(2) img {
  object-position: 52% center;
}

.achievement-documentary-grid .achievement-documentary-presentation img {
  object-position: 69% center;
}

.achievement-documentary-grid .achievement-documentary-poster {
  background: #e9efe8;
}

.achievement-documentary-grid .achievement-documentary-poster img {
  padding: 12px;
  object-fit: contain;
}

.achievement-documentary-grid figcaption,
.achievement-community-visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 42px 16px 15px;
  background: linear-gradient(transparent, rgba(7, 30, 34, 0.92));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.3;
}

.achievement-documentary-grid figcaption span,
.achievement-community-visual figcaption span {
  color: #ecc66e;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.achievement-community-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(220px, 0.62fr);
  gap: 8px;
  margin: 42px 0 84px;
}

.achievement-community-visual figure {
  min-height: 360px;
}

.achievement-community-visual figure img {
  object-position: center 44%;
}

.achievement-community-visual .achievement-community-dialogue img {
  object-position: 50% 48%;
}

.public-record-link {
  margin-top: 28px;
}

@media (max-width: 780px) {
  .design-studio-heading,
  .design-studio-layout {
    grid-template-columns: 1fr;
  }

  .design-studio-heading {
    gap: 14px;
  }

  .design-studio-levers,
  .design-studio-output dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .achievement-guide-links {
    grid-template-columns: 1fr 1fr;
  }

  .visual-story {
    grid-template-columns: 1fr 1fr;
  }

  .visual-story-main {
    grid-column: 1 / -1;
  }

  .visual-story img {
    height: 280px;
  }

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

  .achievement-photo-strip figure:first-child {
    grid-column: 1 / -1;
  }

  .achievement-documentary-grid {
    grid-template-columns: 1.2fr 0.8fr;
    margin-bottom: 64px;
  }

  .achievement-documentary-grid .achievement-documentary-main {
    grid-column: 1 / -1;
  }

  .achievement-community-visual {
    grid-template-columns: 1.2fr 0.8fr;
    margin-bottom: 64px;
  }

  .video-showcase-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .artifact-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .teaching-gallery-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .teaching-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 230px;
  }

  .apu-visual-copy h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 520px) {
  .teaching-design-studio {
    margin: 52px 0;
    padding: 34px 18px 18px;
    box-shadow: 6px 6px 0 var(--teal-deep);
  }

  .design-studio-brief,
  .design-studio-controls,
  .design-studio-output {
    padding: 20px;
  }

  .design-studio-levers,
  .design-studio-output dl {
    grid-template-columns: 1fr;
  }

  .design-studio-choice {
    min-height: 0;
  }

  .design-studio-output-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .design-studio-output-footer button {
    width: 100%;
  }

  .achievement-guide-intro {
    padding: 22px 18px;
  }

  .achievement-guide-links {
    grid-template-columns: 1fr;
  }

  .achievement-guide-links > a {
    min-height: 0;
  }

  .visual-story,
  .achievement-photo-strip {
    grid-template-columns: 1fr;
  }

  .visual-story-main,
  .achievement-photo-strip figure:first-child {
    grid-column: auto;
  }

  .visual-story img,
  .achievement-photo-strip img {
    height: 240px;
  }

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

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

  .artifact-item {
    max-width: 320px;
  }

  .teaching-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 240px);
  }

  .apu-visual-band {
    min-height: 560px;
  }

  .apu-visual-band::after {
    background: linear-gradient(0deg, rgba(8, 41, 46, 0.94) 0%, rgba(8, 41, 46, 0.52) 62%, rgba(8, 41, 46, 0.08) 100%);
  }

  .apu-visual-band > img {
    object-position: 58% center;
  }

  .apu-visual-copy {
    padding: 48px 0;
  }

  .apu-visual-copy h2,
  .video-showcase-heading h2 {
    font-size: 2.15rem;
  }
}

.archive-group {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.archive-group h3 {
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-size: 1.08rem;
}

.archive-group a {
  display: flex;
  min-height: 42px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms ease;
}

.archive-group a:hover {
  color: var(--red);
}

.essay-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 44px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}

.essay-spotlight h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 650;
  line-height: 0.98;
}

.essay-spotlight p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.text-link,
.back-link {
  color: var(--teal-deep);
  font-weight: 800;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.essay-page {
  background: var(--paper);
}

.essay-header {
  position: sticky;
}

.case-page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 80px;
}

.case-hero {
  max-width: 980px;
  padding: 58px 0 64px;
  border-bottom: 1px solid var(--line);
}

.case-hero h1 {
  margin: 22px 0 22px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 650;
  line-height: 0.95;
}

.case-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

.case-study-list {
  display: grid;
  gap: 18px;
  padding: 74px 0;
  border-bottom: 1px solid var(--line);
}

.case-study {
  display: grid;
  grid-template-columns: minmax(430px, 0.66fr) minmax(0, 1fr);
  gap: 36px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.case-study h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  font-weight: 650;
  line-height: 1.02;
}

.case-snapshot {
  margin: 28px 0 0;
  overflow: hidden;
  background: var(--teal-deep);
}

.case-snapshot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.case-snapshot figcaption {
  padding: 11px 13px 12px;
  color: rgba(249, 242, 228, 0.85);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.25;
}

.case-study-body p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.06rem;
}

.case-study-body dl div + div {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.case-student-voices {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.case-student-voices > .eyebrow {
  margin-bottom: 14px;
}

.case-student-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.case-student-quote-grid blockquote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 174px;
  margin: 0;
  padding: 18px;
  background: #f8f0e4;
  border-top: 3px solid var(--gold);
}

.case-student-quote-grid blockquote p {
  margin: 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  line-height: 1.32;
}

.case-student-quote-grid cite {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.3;
}

.case-cta {
  max-width: 780px;
  padding: 72px 0 0;
}

.case-cta h2 {
  margin: 0 0 24px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 650;
  line-height: 0.98;
}

.service-page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 80px;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 58px 0 64px;
  border-bottom: 1px solid var(--line);
}

.service-hero > * {
  min-width: 0;
}

.service-hero h1 {
  max-width: 860px;
  margin: 22px 0 22px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3rem, 5.6vw, 5.25rem);
  font-weight: 650;
  line-height: 0.95;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.service-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
}

.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.service-hero-actions .button.primary,
.workshop-start .button.primary {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
}

.portfolio-chapter-nav {
  position: sticky;
  top: 74px;
  z-index: 12;
  margin: 0 calc((100vw - min(var(--max), calc(100vw - 40px))) / -2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 239, 0.96);
  box-shadow: 0 10px 26px rgba(24, 32, 32, 0.06);
  backdrop-filter: blur(14px);
}

.portfolio-chapter-nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0;
}

.portfolio-chapter-label {
  flex: 0 0 164px;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.portfolio-chapter-swipe-hint {
  display: none;
}

.portfolio-chapter-links {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.portfolio-chapter-links a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid transparent;
  color: var(--teal-deep);
  font-size: 0.79rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.portfolio-chapter-links a:hover,
.portfolio-chapter-links a:focus-visible {
  border-color: var(--gold);
  background: var(--surface);
  outline: none;
}

.portfolio-chapter-links a b {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.portfolio-chapter-links a.is-active {
  border-color: var(--teal-deep);
  background: var(--teal-deep);
  color: #fff;
}

.portfolio-chapter-links a.is-active b {
  color: #f2c76c;
}

[data-portfolio-chapter-target] {
  scroll-margin-top: 150px;
}

.teaching-scope {
  margin: 68px 0 0;
  padding: 0 0 62px;
  border-bottom: 1px solid var(--line);
}

.teaching-scope .section-heading {
  margin-bottom: 30px;
}

.teaching-scope .section-heading > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

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

.teaching-scope-grid article {
  display: flex;
  min-height: 288px;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px;
  background: var(--surface);
  border-top: 3px solid var(--gold);
}

.teaching-scope-grid span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.teaching-scope-grid h3 {
  margin: 32px 0 13px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.72rem;
  line-height: 1.05;
}

.teaching-scope-grid p {
  margin: 0;
  color: var(--muted);
}

.teaching-scope-grid a {
  margin-top: auto;
  padding-top: 20px;
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.course-record {
  margin: 66px 0 0;
  padding: 0 0 62px;
  border-bottom: 1px solid var(--line);
}

.course-record .section-heading {
  max-width: 840px;
  margin-bottom: 30px;
}

.course-record .section-heading > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

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

.course-record-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

.course-record-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.course-record-card--poster > img {
  object-fit: contain;
  background: var(--teal-deep);
}

.course-record-copy {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.course-record-copy > span {
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-record-copy h3 {
  margin: 20px 0 12px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.58rem;
  line-height: 1.05;
}

.course-record-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.course-record-evidence {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.course-record-evidence strong {
  color: var(--teal-deep);
}

.course-record-copy a {
  margin-top: auto;
  padding-top: 22px;
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.teaching-video-sample {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 44px;
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
}

.teaching-video-sample-copy h2 {
  max-width: 520px;
  margin: 16px 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 3.5rem);
  font-weight: 650;
  line-height: 1;
}

.teaching-video-sample-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.teaching-video-sample-copy .text-link {
  color: var(--teal-deep);
  font-weight: 800;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.teaching-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--teal-deep);
}

.teaching-video-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-poster-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  overflow: hidden;
  margin: 0 0 64px;
  padding: clamp(34px, 5vw, 68px);
  color: #f7f1e7;
  background:
    linear-gradient(135deg, rgba(168, 48, 116, 0.17), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 6px),
    #111012;
  border-top: 4px solid #a83074;
}

.course-poster-feature::after {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  content: "";
  border: 1px solid rgba(233, 188, 64, 0.38);
  transform: rotate(45deg);
  pointer-events: none;
}

.course-poster-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  align-items: center;
}

.course-poster-sheet {
  display: grid;
  gap: 10px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.course-poster-sheet img {
  display: block;
  width: 100%;
  height: auto;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
  transition: transform 180ms ease, border-color 180ms ease;
}

.course-poster-sheet:hover img,
.course-poster-sheet:focus-visible img {
  border-color: rgba(233, 188, 64, 0.8);
  transform: translateY(-4px);
}

.course-poster-sheet:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

.course-poster-copy {
  position: relative;
  z-index: 1;
}

.course-poster-copy .eyebrow {
  color: #e9bc40;
}

.course-poster-copy h2 {
  max-width: 620px;
  margin: 16px 0 22px;
  color: #fffaf0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.15rem, 4vw, 4.35rem);
  font-weight: 650;
  line-height: 0.98;
}

.course-poster-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.course-poster-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 22px;
}

.course-poster-principles span {
  padding: 9px 12px;
  color: #fff;
  background: rgba(168, 48, 116, 0.2);
  border: 1px solid rgba(226, 99, 170, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.course-poster-copy .text-link {
  color: #fffaf0;
  font-weight: 800;
  text-decoration-color: #e9bc40;
  text-underline-offset: 5px;
}

.workshop-start {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.88fr);
  gap: 52px;
  margin: 62px 0 0;
  padding: 54px;
  background: #f1e7d6;
  border-top: 4px solid var(--gold);
}

.workshop-start h2 {
  max-width: 14ch;
  margin: 0 0 18px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 4rem);
  font-weight: 650;
  line-height: 0.98;
}

.workshop-start-intro > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.workshop-problem-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.workshop-problem-list span {
  padding: 12px 13px;
  border-left: 2px solid var(--gold);
  background: rgba(255, 253, 248, 0.56);
  color: var(--teal-deep);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.28;
}

.workshop-start-steps {
  padding: 28px;
  background: var(--teal-deep);
  color: #fff;
}

.workshop-start-steps .eyebrow {
  color: var(--gold);
}

.workshop-start-steps ol {
  display: grid;
  gap: 17px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: workshop-step;
}

.workshop-start-steps li {
  position: relative;
  min-height: 42px;
  padding-left: 48px;
  counter-increment: workshop-step;
}

.workshop-start-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.64);
  color: var(--gold);
  content: counter(workshop-step, decimal-leading-zero);
  font-size: 0.65rem;
  font-weight: 800;
}

.workshop-start-steps strong,
.workshop-start-steps span {
  display: block;
}

.workshop-start-steps strong {
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.workshop-start-steps span,
.workshop-start-note {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  line-height: 1.4;
}

.workshop-start-note {
  margin: 16px 0 0;
}

.service-hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 22% center;
  opacity: 0.92;
  border: 1px solid var(--line);
}

.workshop-carousel {
  position: relative;
  min-width: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--teal-deep);
}

.workshop-carousel figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

.workshop-carousel figure[hidden] {
  display: none;
}

.workshop-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.workshop-carousel-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(15, 63, 66, 0.88);
  color: #fff;
  backdrop-filter: blur(8px);
}

.workshop-carousel-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
}

.workshop-carousel-controls button:hover,
.workshop-carousel-controls button:focus-visible {
  background: #fff;
  color: var(--teal-deep);
}

.workshop-carousel-controls span {
  min-width: 40px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
}

.workshop-quick-feedback {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 38px;
  max-width: 980px;
  margin: 54px 0 0;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workshop-quick-feedback h2 {
  margin: 0 0 16px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.02;
}

.workshop-quick-feedback > div > p:not(.eyebrow) {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

.workshop-quick-feedback-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workshop-quick-feedback blockquote {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 22px;
  background: var(--teal-deep);
  color: #f9f2e4;
}

.workshop-quick-feedback blockquote p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.32;
}

.workshop-quick-feedback cite {
  display: block;
  margin-top: 20px;
  color: rgba(249, 242, 228, 0.72);
  font-size: 0.74rem;
  font-style: normal;
  line-height: 1.35;
}

.service-panel {
  padding: 74px 0;
  border-bottom: 1px solid var(--line);
}

.format-table-block {
  margin-top: 0;
}

.format-table-wrap {
  border: 1px solid var(--line);
  background: var(--surface);
}

.format-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.format-table th,
.format-table td {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.format-table tr > *:last-child {
  border-right: 0;
}

.format-table tbody tr:last-child > * {
  border-bottom: 0;
}

.format-table thead th {
  background: var(--teal-deep);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.format-table thead th:first-child,
.format-table tbody th {
  width: 15%;
}

.format-table tbody th {
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.15;
}

.format-table td {
  color: var(--muted);
  font-size: 0.92rem;
}

.service-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.service-columns > div {
  padding: 28px;
  background: var(--teal-deep);
  color: #fff;
}

.service-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 253, 248, 0.22);
  color: rgba(255, 255, 255, 0.82);
}

.workshop-menu {
  margin-top: 66px;
}

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

.workshop-menu-grid article {
  min-height: 300px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.workshop-menu-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workshop-menu-grid h3 {
  margin: 0 0 14px;
  color: var(--teal-deep);
  font-size: 1.14rem;
}

.workshop-menu-grid p {
  margin: 0;
  color: var(--muted);
}

.workshop-catalog {
  margin-top: 22px;
  border: 1px solid var(--teal-deep);
  background: var(--surface);
}

.workshop-catalog summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 26px;
  color: var(--teal-deep);
  cursor: pointer;
  list-style: none;
}

.workshop-catalog summary::-webkit-details-marker {
  display: none;
}

.workshop-catalog summary span {
  display: grid;
  gap: 5px;
}

.workshop-catalog summary b {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.05;
}

.workshop-catalog summary small {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.workshop-catalog summary i {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--teal-deep);
  font-size: 1.5rem;
  font-style: normal;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.workshop-catalog summary:hover i,
.workshop-catalog summary:focus-visible i {
  background: var(--teal-deep);
  color: #fff;
}

.workshop-catalog[open] summary i {
  transform: rotate(45deg);
}

.workshop-catalog-body {
  padding: 0 26px 28px;
  border-top: 1px solid var(--line);
}

.workshop-catalog-intro {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.workshop-catalog-group {
  margin-top: 34px;
}

.workshop-catalog-heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 14px;
}

.workshop-catalog-heading p {
  margin: 0;
}

.workshop-catalog-heading > p:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.workshop-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workshop-catalog-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workshop-catalog-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.workshop-catalog-grid h3 {
  margin: 12px 0 8px;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.12;
}

.workshop-catalog-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.workshop-catalog-status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.workshop-catalog-status.delivered {
  background: var(--teal-deep);
  color: #fff;
}

.workshop-catalog-status.tailored {
  background: #ead6a7;
  color: var(--teal-deep);
}

.workshop-catalog-status.talk {
  background: #efe0dc;
  color: #8f302b;
}

.workshop-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 42px;
  margin-top: 70px;
  padding: 44px;
  background: var(--teal-deep);
  color: #fff;
}

.workshop-proof h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 650;
  line-height: 1;
}

.workshop-proof p:not(.eyebrow) {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.workshop-showcase .offer-list .workshop-output-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.workshop-showcase .offer-list li:has(.workshop-output-link) {
  padding: 0;
}

.workshop-showcase .offer-list .workshop-output-link {
  padding: 15px;
}

.workshop-showcase .offer-list li:has(.workshop-output-link):hover,
.workshop-showcase .offer-list li:has(.workshop-output-link):focus-within {
  border-color: var(--gold);
  background: rgba(209, 161, 59, 0.2);
}

.workshop-showcase .offer-list .workshop-output-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.teaching-design-studio {
  position: relative;
  min-width: 0;
  max-width: 100%;
  margin: 74px 0;
  padding: 52px;
  overflow: hidden;
  border: 1px solid var(--teal-deep);
  background:
    radial-gradient(circle at 94% 7%, rgba(209, 161, 59, 0.28), transparent 22%),
    linear-gradient(135deg, #f8f1e4 0%, #edf6f1 55%, #fdfaf3 100%);
  box-shadow: 10px 10px 0 var(--teal-deep);
}

.teaching-design-studio::before {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(8, 75, 75, 0.34);
  content: "";
  pointer-events: none;
}

.teaching-design-studio > * {
  position: relative;
  z-index: 1;
}

.design-studio-heading {
  display: grid;
  grid-template-columns: 0.62fr 1.12fr 0.8fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 42px;
}

.design-studio-heading h2 {
  margin: 0;
  color: var(--teal-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.15rem, 4.1vw, 4.2rem);
  font-weight: 650;
  line-height: 0.98;
}

.design-studio-heading > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.design-studio-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
  min-width: 0;
}

.design-studio-brief,
.design-studio-controls,
.design-studio-output {
  min-width: 0;
  border: 1px solid var(--line);
}

.design-studio-brief {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--teal-deep);
  color: #fff;
}

.design-studio-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  margin: 0 0 14px;
  border: 1px solid currentColor;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.design-studio-brief h3,
.design-studio-controls h3,
.design-studio-output h3 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.04;
}

.design-studio-brief > p:not(.design-studio-step) {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.45;
}

.design-studio-challenges {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.design-studio-challenge,
.design-studio-choice,
.design-studio-output-footer button {
  font: inherit;
  cursor: pointer;
}

.design-studio-challenge {
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.design-studio-challenge:hover,
.design-studio-challenge:focus-visible,
.design-studio-challenge.is-selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--teal-deep);
  outline: none;
}

.design-studio-challenge:hover,
.design-studio-challenge:focus-visible {
  transform: translateX(3px);
}

.design-studio-challenge strong,
.design-studio-challenge span {
  display: block;
}

.design-studio-challenge strong {
  font-size: 0.94rem;
}

.design-studio-challenge span {
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.28;
  opacity: 0.82;
}

.design-studio-research {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.design-studio-research .eyebrow {
  color: var(--gold);
}

.design-studio-research p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  line-height: 1.42;
}

.design-studio-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.design-studio-sources a {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  font-size: 0.72rem;
  text-decoration: none;
}

.design-studio-sources a:hover,
.design-studio-sources a:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.design-studio-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.design-studio-controls {
  padding: 26px;
  background: rgba(255, 253, 248, 0.74);
}

.design-studio-controls-heading {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
}

.design-studio-controls-heading .design-studio-step {
  margin-top: 2px;
  color: var(--teal-deep);
}

.design-studio-controls-heading p:not(.design-studio-step) {
  margin: 8px 0 0;
  color: var(--muted);
}

.design-studio-levers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
  min-width: 0;
}

.design-studio-lever {
  min-width: 0;
  padding: 12px;
  background: #fffdf8;
  border-top: 3px solid var(--gold);
}

.design-studio-lever h4 {
  margin: 0;
  display: block;
  margin-bottom: 10px;
  color: var(--teal-deep);
  font-size: 0.82rem;
  line-height: 1.1;
}

.design-studio-choice {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.24;
  text-align: left;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

.design-studio-choice:hover,
.design-studio-choice:focus-visible,
.design-studio-choice.is-selected {
  border-color: var(--teal);
  background: rgba(29, 109, 106, 0.09);
  color: var(--teal-deep);
  outline: none;
}

.design-studio-output {
  padding: 28px;
  background: #fffdf8;
  border-color: var(--teal-deep);
}

.design-studio-output-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.design-studio-output-heading .eyebrow {
  margin: 0;
}

.design-studio-output-heading .design-studio-step {
  margin-bottom: 10px;
  color: var(--teal-deep);
}

.design-studio-output-heading > span {
  display: inline-flex;
  padding: 7px 9px;
  background: var(--gold);
  color: var(--teal-deep);
  font-size: 0.76rem;
  font-weight: 800;
}

.design-studio-output > h3 {
  max-width: 18ch;
  margin-top: 14px;
  color: var(--teal-deep);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.design-studio-output > p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.design-studio-output dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0;
  min-width: 0;
}

.design-studio-output dl div {
  padding: 12px;
  background: #edf5f1;
}

.design-studio-output dt {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.design-studio-output dd {
  margin: 6px 0 0;
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.design-studio-output-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.design-studio-output-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.38;
}

.design-studio-output-footer button {
  flex: 0 0 auto;
  padding: 11px 13px;
  border: 1px solid var(--teal-deep);
  background: var(--teal-deep);
  color: #fff;
  font-weight: 800;
}

.design-studio-output-footer button:hover,
.design-studio-output-footer button:focus-visible {
  background: var(--teal);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.design-studio-copy-status {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
}

.service-cta {
  max-width: 780px;
  padding: 72px 0 0;
}

.service-cta h2 {
  margin: 0 0 18px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 5rem);
  font-weight: 650;
  line-height: 0.98;
}

.service-cta p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
}

.service-cta .button.primary {
  margin-top: 16px;
  background: var(--teal-deep);
  color: #fff;
  border-color: var(--teal-deep);
}

.service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.service-cta-actions .button.primary {
  margin-top: 0;
}

.workshop-brief-link {
  display: inline-flex;
  margin-top: 22px;
}

.essay-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 86px;
}

.essay-hero {
  padding: 72px 0 46px;
  border-bottom: 1px solid var(--line);
}

.essay-hero h1 {
  max-width: 860px;
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3.3rem, 8vw, 7.2rem);
  font-weight: 650;
  line-height: 0.94;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.essay-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
}

.essay-content {
  max-width: 760px;
  padding: 46px 0 0;
}

.essay-content p {
  margin: 0 0 24px;
  color: #2b3635;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}

.essay-content h2 {
  margin: 54px 0 18px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 650;
  line-height: 1.02;
}

.profile-statement {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 42px;
  padding: 60px;
  background: var(--teal-deep);
  color: #fff;
}

.profile-statement p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-heading {
  display: block;
}

.contact-postcard {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: stretch;
  margin: 28px 0 24px;
  padding: clamp(24px, 4vw, 50px);
  border: 1px solid var(--teal);
  background:
    linear-gradient(90deg, rgba(218, 176, 66, 0.1), transparent 32%),
    var(--surface);
  box-shadow: 7px 7px 0 rgba(25, 65, 64, 0.09);
  position: relative;
  overflow: hidden;
}

.contact-postcard::before,
.contact-postcard::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}

.contact-postcard::before {
  top: 18px;
  right: -24px;
  transform: rotate(35deg);
}

.contact-postcard::after {
  bottom: 18px;
  left: -24px;
  transform: rotate(35deg);
}

.contact-postcard-mark {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  margin: 0;
  min-height: 300px;
  padding: 22px;
  border-right: 1px dashed rgba(25, 65, 64, 0.4);
  position: relative;
  z-index: 1;
}

.contact-mailbox-tagline {
  margin: 0;
  padding-top: 8px;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.contact-postcard-mark img {
  display: block;
  width: min(100%, 186px);
  height: min(100%, 245px);
  object-fit: contain;
}

.contact-postcard-copy {
  display: grid;
  align-content: center;
  gap: 22px;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding-right: clamp(78px, 8vw, 112px);
}

.contact-postcard-stamp {
  position: absolute;
  z-index: 2;
  top: clamp(24px, 3vw, 36px);
  right: clamp(24px, 3vw, 36px);
  width: clamp(72px, 7vw, 94px);
  margin: 0;
  padding: 4px;
  border: 2px dashed rgba(25, 65, 64, 0.68);
  background: #fffdf8;
  box-shadow: 3px 4px 0 rgba(25, 65, 64, 0.14);
  transform: rotate(3deg);
}

.contact-postcard-stamp::before {
  content: "BEPPU\A 2026";
  position: absolute;
  z-index: 2;
  left: -22px;
  bottom: -17px;
  display: grid;
  width: 43px;
  height: 43px;
  place-content: center;
  border: 1.5px solid rgba(157, 53, 46, 0.66);
  border-radius: 50%;
  color: var(--brick);
  font-size: 0.34rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.12;
  text-align: center;
  white-space: pre;
  transform: rotate(-13deg);
  opacity: 0.88;
  pointer-events: none;
}

.contact-postcard-stamp::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: -14px;
  bottom: 13px;
  width: 56px;
  height: 13px;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(157, 53, 46, 0.5) 3px 4px, transparent 4px 6px);
  transform: rotate(-13deg);
  opacity: 0.8;
  pointer-events: none;
}

.contact-postcard-stamp img {
  display: block;
  width: 100%;
  aspect-ratio: 0.8;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.92) contrast(1.03);
}

.contact-postcard-stamp figcaption {
  display: block;
  margin-top: 6px;
  color: var(--teal);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.contact-address {
  display: grid;
  gap: 3px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-address strong {
  color: var(--teal-deep);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.contact-copy > p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-copy .contact-signature {
  max-width: 62ch;
  margin-top: 13px;
  color: var(--teal-deep);
  font-size: 0.96rem;
  font-weight: 700;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-profiles {
  display: grid;
  grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.38fr);
  gap: 28px;
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-profiles-heading {
  display: grid;
  gap: 9px;
}

.contact-profiles-heading .eyebrow {
  margin: 0;
}

.contact-profiles-heading h3 {
  max-width: 18ch;
  margin: 0;
  color: var(--teal-deep);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  line-height: 0.98;
}

.contact-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 116px;
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.contact-link:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.contact-link-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--teal-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.contact-link-copy {
  display: grid;
  gap: 4px;
}

.contact-link-copy strong {
  color: var(--teal-deep);
  font-size: 0.98rem;
}

.contact-link-copy small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.contact-link-arrow {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 20px;
  }

  .portfolio-chapter-nav {
    top: 66px;
  }

  .portfolio-chapter-nav-inner {
    display: block;
    position: relative;
    padding: 10px 0 11px;
  }

  .portfolio-chapter-label {
    max-width: calc(100% - 88px);
    margin: 0 0 8px;
  }

  .portfolio-chapter-swipe-hint {
    position: absolute;
    top: 10px;
    right: 0;
    display: block;
    color: var(--red);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .portfolio-chapter-links {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin: 0 -14px;
    padding: 1px 48px 6px 14px;
    scroll-padding-inline: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(157, 53, 46, 0.42) transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 40px), transparent 100%);
  }

  .portfolio-chapter-links a {
    flex: 0 0 auto;
    min-width: min(72vw, 190px);
    border-color: rgba(222, 215, 202, 0.88);
    background: rgba(255, 252, 246, 0.72);
    scroll-snap-align: start;
  }

  .brand span:last-child {
    display: none;
  }

  .nav {
    gap: 12px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 19, 20, 0.9) 0%, rgba(9, 19, 20, 0.68) 72%, rgba(9, 19, 20, 0.48) 100%),
      linear-gradient(0deg, rgba(9, 19, 20, 0.82), rgba(9, 19, 20, 0.08) 48%);
  }

  .hero-image {
    object-position: center;
  }

  .hero-content {
    padding: 130px 0 46px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 16vw, 5rem);
  }

  .section {
    padding: 64px 0;
  }

  .section-heading,
  .bio-layout,
  .research-lead,
  .intro-grid,
  .bridge-section,
  .trajectory-section,
  .writing-publication-context,
  .writing-profile,
  .writing-field-notes,
  .writing-gamebook-shell,
  .service-hero,
  .case-study,
  .essay-spotlight,
  .writing-list,
  .research-highlights,
  .media-grid,
  .case-grid,
  .proof-grid,
  .workshop-menu-grid,
  .workshop-catalog-grid,
  .workshop-catalog-grid.compact,
  .teaching-materials-grid,
  .service-columns,
  .workshop-proof,
  .workshop-evidence-grid,
  .workshop-testimonial-grid,
  .workshop-quick-feedback,
  .teaching-video-sample,
  .course-poster-feature,
  .archive-groups,
  .profile-statement,
  .contact-postcard,
  .contact-profiles,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .workshop-catalog-heading {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

  .course-poster-feature {
    gap: 34px;
    padding: 36px;
  }

  .section-heading {
    gap: 8px;
  }

  .research-field-visuals {
    width: min(100%, 430px);
    margin: 0 auto;
  }

  .writing-list article {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    column-gap: 0;
  }

  .writing-excerpt {
    grid-column: 1;
    grid-row: auto;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .feature {
    min-height: 0;
  }

  .trajectory-section {
    padding: 64px 0;
    gap: 28px;
  }

  .trajectory-portrait {
    max-width: 320px;
  }

  .story-timeline ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .story-timeline ol::before {
    display: none;
  }

  .story-timeline li,
  .story-timeline li:nth-child(2n + 1) {
    min-height: 202px;
    padding: 16px 0 16px 18px;
    border-right: 0;
    border-left: 1px solid var(--line);
  }

  .story-timeline li::before {
    top: 20px;
    left: -5px;
  }

  .feature-icon {
    margin-bottom: 24px;
  }

  .bridge-section {
    padding: 64px 0;
  }

  .workshop-showcase {
    min-height: 560px;
  }

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

  .case-grid article {
    min-height: 0;
  }

  .essay-spotlight {
    padding: 58px 0;
  }

  .essay-shell {
    padding-top: 40px;
  }

  .service-page {
    padding-top: 86px;
  }

  .case-page {
    padding-top: 86px;
  }

  .writing-page {
    padding-top: 86px;
  }

  .case-hero {
    padding-top: 38px;
  }

  .writing-hero {
    padding-top: 38px;
  }

  .case-study {
    grid-template-columns: minmax(260px, 0.66fr) minmax(0, 1fr);
    gap: 22px;
    padding: 24px;
  }

  .service-hero {
    gap: 28px;
    padding-top: 38px;
  }

  .workshop-start {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 34px;
  }

  .teaching-scope-grid {
    grid-template-columns: 1fr;
  }

  .course-record-grid {
    grid-template-columns: 1fr;
  }

  .teaching-scope-grid article,
  .course-record-card {
    min-height: 0;
  }

  .service-hero img {
    max-width: 320px;
  }

  .workshop-carousel {
    max-width: none;
  }

  .record-slide {
    display: block;
  }

  .record-screen {
    height: 700px;
  }

  .record-library-menu {
    gap: 20px;
  }

  .record-copy {
    width: 100%;
    min-height: 100%;
    justify-content: flex-end;
    padding: 40px;
    background: linear-gradient(0deg, rgba(8, 8, 8, 0.9), rgba(8, 8, 8, 0.12) 66%);
  }

  .record-image img {
    min-height: 0;
  }

  .record-copy h3 {
    max-width: 20ch;
  }


  .profile-statement {
    padding: 34px 24px;
  }

  .contact-postcard {
    gap: 28px;
  }

  .contact-postcard-copy {
    padding-right: 0;
  }

  .contact-postcard-stamp {
    top: 22px;
    right: 22px;
    width: 78px;
  }

  .contact-postcard-mark {
    min-height: 200px;
    border-right: 0;
    border-bottom: 1px dashed rgba(25, 65, 64, 0.4);
  }

  .contact-postcard-mark img {
    width: min(100%, 145px);
    height: 178px;
  }

  .contact-profiles-heading h3 {
    max-width: 29ch;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  /* Keep the three header controls on one calm visual baseline. */
  .brand-mark,
  .stamp-rally-header-launcher,
  .language-switch {
    box-sizing: border-box;
    height: 48px;
  }

  .brand-mark {
    width: 48px;
  }

  .stamp-rally-header-launcher {
    min-height: 48px;
    padding: 4px 8px 4px 4px;
  }

  .language-switch {
    align-items: stretch;
    padding: 3px;
  }

  .language-switch button {
    min-height: 0;
    height: 100%;
  }

  .workshop-catalog summary {
    gap: 14px;
    padding: 20px 18px;
  }

  .workshop-catalog summary small {
    font-size: 0.8rem;
  }

  .workshop-catalog summary i {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .workshop-catalog-body {
    padding: 0 16px 20px;
  }

  .workshop-catalog-grid article {
    padding: 18px;
  }

  .portfolio-chapter-nav {
    top: 108px;
    /* Keep the horizontally scrollable chapter strip inside the viewport.
       Its desktop full-bleed negative margins otherwise create a small
       page-level horizontal scroll on narrow phones. */
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    overflow: clip;
  }

  .portfolio-chapter-nav-inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .portfolio-chapter-links a {
    min-width: min(76vw, 180px);
    padding: 8px 9px;
    font-size: 0.75rem;
  }

  .brand {
    order: 1;
  }

  .nav {
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0 12px;
    font-size: 0.8rem;
  }

  .header-tools {
    order: 2;
    margin-left: auto;
  }

  .header-tools .language-switch { margin-left: 0; }

  .hero-content {
    padding-top: 196px;
  }

  .language-switch button {
    min-width: 34px;
    min-height: 26px;
    font-size: 0.72rem;
  }

  .hero-tenure {
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 14px;
    width: min(100%, 390px);
  }

  .hero-tenure-years {
    min-width: 78px;
    padding-right: 14px;
  }

  .hero-tenure-years strong {
    font-size: clamp(3.1rem, 15vw, 3.8rem);
  }

  .hero-days-counter {
    gap: 10px;
  }

  .hero-days-value {
    font-size: clamp(1.4rem, 7.3vw, 1.8rem);
  }

  .story-timeline ol {
    grid-template-columns: 1fr;
  }

  .story-timeline li,
  .story-timeline li:nth-child(2n + 1),
  .story-timeline li:nth-child(2n),
  .story-timeline li:last-child {
    min-height: 0;
    padding: 14px 0 14px 18px;
    border-right: 0;
    border-left: 1px solid var(--line);
  }

  .story-timeline li::before {
    top: 20px;
    left: -5px;
  }

  .nav a {
    padding: 5px 0;
    line-height: 1.2;
  }

  /* Native hash navigation must leave room for the two-row mobile header. */
  main > section[id] {
    scroll-margin-top: 180px;
  }

  .research-book-entry,
  .research-book-entry--text,
  .writing-book-entry,
  .workshop-artifact {
    grid-template-columns: 1fr;
  }

  .research-book-cover {
    width: min(150px, 48%);
  }

  .writing-book-cover {
    width: min(220px, 68%);
  }

  .writing-gamebook {
    margin-top: 40px;
  }

  .writing-field-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 680px;
  }

  .writing-page-samples {
    padding: 46px 0 50px;
  }

  .writing-page-samples-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .writing-page-sample--cozy {
    width: min(100%, 350px);
  }

  .writing-field-note--archive {
    grid-column: span 2;
    min-height: 280px;
  }

  .writing-gamebook-visual {
    min-height: 320px;
  }

  .writing-gamebook-choices {
    grid-template-columns: 1fr;
  }

  .workshop-artifact {
    gap: 22px;
    padding: 24px;
  }

  .workshop-artifact-image {
    width: min(160px, 55%);
  }

  .course-poster-feature {
    gap: 30px;
    margin-inline: -20px;
    padding: 32px 20px 38px;
  }

  .course-poster-gallery {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    margin-inline: -20px;
    padding: 4px 20px 18px;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .course-poster-sheet {
    flex: 0 0 min(78vw, 340px);
    scroll-snap-align: center;
  }

  .course-poster-copy h2 {
    font-size: clamp(2.15rem, 11vw, 3.25rem);
  }

  .course-poster-principles {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-hero-actions .button {
    justify-content: center;
  }

  .workshop-start {
    margin-top: 46px;
    padding: 26px 20px;
  }

  .workshop-start h2 {
    max-width: 16ch;
  }

  .workshop-problem-list {
    grid-template-columns: 1fr;
  }

  .workshop-start-steps {
    padding: 24px 20px;
  }

  .workshop-quick-feedback-quotes {
    grid-template-columns: 1fr;
  }

  .achievements-page,
  .case-page,
  .research-page,
  .service-page,
  .writing-page {
    padding-top: 24px;
  }

  .writing-publication-stats {
    grid-template-columns: 1fr;
  }

  .writing-publication-stats div {
    min-height: 0;
    padding: 17px 0;
  }

  .writing-publication-stats div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .psx-movie-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .psx-movie-card img {
    max-width: 360px;
  }

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

  .case-student-quote-grid {
    grid-template-columns: 1fr;
  }

  .case-student-quote-grid blockquote {
    min-height: 0;
  }

  .case-snapshot {
    max-width: 440px;
  }

  .record-tv {
    padding: 9px 9px 0;
    border-width: 7px;
    border-radius: 18px 18px 12px 12px;
  }

  .record-tv-bar {
    padding-bottom: 8px;
    font-size: 0.59rem;
  }

  .record-library-menu {
    min-height: 44px;
    gap: 16px;
  }

  .record-library-menu > div {
    gap: 14px;
  }

  .record-library-menu strong,
  .record-library-menu button {
    font-size: 0.67rem;
  }

  .record-image img {
    min-height: 0;
  }

  .record-screen {
    height: 740px;
  }

  .record-slide {
    display: block;
  }

  .record-image-contain img {
    padding: 12px;
  }

  .record-copy {
    padding: 30px 22px 34px;
  }

  .record-copy h3 {
    font-size: clamp(2rem, 10.5vw, 2.25rem);
  }

  .record-tv-controls {
    grid-template-columns: 38px 1fr 38px;
    min-height: 52px;
    font-size: 0.64rem;
  }

  .record-channels {
    gap: 8px;
    margin-top: 28px;
  }

  .record-channel {
    flex-basis: 142px;
    min-height: 102px;
  }

  .button {
    width: 100%;
  }

  .essay-shell {
    width: min(100% - 32px, 900px);
    padding-top: 32px;
  }

  .writing-page {
    width: min(100% - 32px, var(--max));
  }

  .essay-hero {
    padding-top: 42px;
  }

  .essay-hero h1 {
    font-size: clamp(2.5rem, 11vw, 3rem);
  }

  .service-hero h1 {
    font-size: clamp(2.3rem, 10.5vw, 2.75rem);
  }

  .writing-page-samples-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .writing-page-samples-heading .eyebrow,
  .writing-page-samples-heading h2,
  .writing-page-samples-heading > p:last-child {
    grid-column: auto;
  }

  .writing-page-samples-heading > p:last-child {
    margin: 0;
  }

  .writing-page-samples-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .writing-page-samples-note > span {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .research-map-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .research-map-heading > p:last-child {
    grid-column: auto;
    margin: 0;
  }

  .research-map-core::after {
    display: none;
  }

  .research-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    margin-top: 30px;
    padding-top: 0;
    border-top: 0;
  }

  .research-map-path {
    padding-top: 16px;
    border-top: 3px solid var(--path-color);
  }

  .research-map-path::before {
    display: none;
  }
}

@media (max-width: 680px) {
  .format-table-wrap {
    border: 0;
    background: transparent;
  }

  .format-table,
  .format-table tbody,
  .format-table tr,
  .format-table th,
  .format-table td {
    display: block;
    width: 100%;
  }

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

  .format-table tbody tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .format-table tbody th {
    width: 100%;
    padding: 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--teal-deep);
    color: #fff;
  }

  .format-table td {
    display: grid;
    grid-template-columns: minmax(110px, 0.72fr) minmax(0, 1.28fr);
    gap: 14px;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .format-table td:last-child {
    border-bottom: 0;
  }

  .format-table td::before {
    color: var(--red);
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

@media (max-width: 520px) {
  .research-map-section {
    padding: 50px 0 56px;
  }

  .research-map {
    margin-top: 38px;
  }

  .research-map-core {
    padding: 20px;
  }

  .research-map-core::after {
    height: 28px;
  }

  .research-map-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .research-map-context {
    min-height: 0;
    padding: 22px 20px;
  }

  .research-map-context > span {
    margin-bottom: 16px;
  }

  .research-map-evidence {
    min-height: 0;
  }

  .format-table td {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* The editorial route folds deliberately instead of shrinking into a diagram. */
@media (max-width: 860px) {
  .writing-method-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .writing-method-heading .eyebrow,
  .writing-method-heading h2,
  .writing-method-heading > p:last-child {
    grid-column: auto;
  }

  .writing-method-heading > p:last-child {
    margin: 0;
  }

  .writing-method-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .writing-method-core::before,
  .writing-method-core::after {
    width: 24px;
  }
}

@media (max-width: 520px) {
  .writing-method {
    padding: 46px 0 50px;
  }

  .writing-method-map {
    padding: 22px 16px;
  }

  .writing-method-map-topline {
    font-size: 0.6rem;
  }

  .writing-method-core {
    width: 100%;
    margin: 34px auto 38px;
    padding: 14px;
  }

  .writing-method-core::before,
  .writing-method-core::after {
    display: none;
  }

  .writing-method-route {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .writing-method-route li {
    min-height: 0;
    padding: 24px 16px 16px;
  }

  .writing-method-map figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: clip;
  }

  .site-header,
  .site-header *,
  .teaching-design-studio,
  .teaching-design-studio * {
    min-width: 0;
  }

  .teaching-design-studio {
    margin: 42px 0;
    padding: 28px 14px 14px;
    box-shadow: 5px 5px 0 var(--teal-deep);
  }

  .teaching-design-studio::before {
    inset: 7px;
  }

  .design-studio-heading {
    gap: 12px;
    margin-bottom: 26px;
  }

  .design-studio-heading h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .design-studio-layout,
  .design-studio-levers,
  .design-studio-output dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .design-studio-layout {
    gap: 14px;
  }

  .design-studio-brief,
  .design-studio-controls,
  .design-studio-output {
    padding: 18px 14px;
  }

  .design-studio-controls-heading {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .design-studio-controls-heading .design-studio-step {
    width: 32px;
  }

  .design-studio-lever {
    padding: 14px;
  }

  .design-studio-choice {
    min-height: 48px;
    padding: 12px 10px;
    font-size: 0.88rem;
  }

  .design-studio-output-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .design-studio-output-heading > span {
    flex: 0 0 auto;
    font-size: 0.68rem;
  }

  .design-studio-output > h3 {
    max-width: none;
    font-size: clamp(1.55rem, 7.2vw, 2rem);
  }

  .design-studio-output dl {
    gap: 7px;
    margin: 18px 0;
  }

  .design-studio-output dl div {
    padding: 11px;
  }

  .design-studio-output-footer {
    gap: 12px;
    padding-top: 14px;
  }

  .design-studio-output-footer button,
  .design-studio-challenge {
    min-height: 44px;
    touch-action: manipulation;
  }
}

@media (max-width: 430px) {
  .nav {
    column-gap: 8px;
    font-size: 0.73rem;
  }

  .nav a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  html[lang="ja"] .hero h1[data-person-name-headline] {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.55rem);
    line-height: 1.16;
    white-space: normal;
  }

  .teaching-design-studio {
    padding: 22px 10px 10px;
  }

  .design-studio-brief,
  .design-studio-controls,
  .design-studio-output {
    padding: 16px 12px;
  }

  .design-studio-controls-heading {
    grid-template-columns: 1fr;
  }

  .design-studio-controls-heading .design-studio-step {
    margin-bottom: 2px;
  }

  .design-studio-output-heading {
    display: block;
  }

  .design-studio-output-heading > span {
    display: inline-flex;
    margin-top: 8px;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px 16px;
  }

  .brand {
    order: 1;
  }

  .header-tools {
    order: 2;
    margin-left: auto;
  }

  .header-tools .language-switch { margin-left: 0; }

  .nav {
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 2px 10px;
    font-size: 0.78rem;
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 36px;
    padding: 5px 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .language-switch button {
    min-width: 36px;
    min-height: 32px;
  }

  .hero-content {
    padding-top: 184px;
  }
}

@media (max-width: 520px) {
  .hero-content {
    padding-top: 196px;
  }
}

/* Final small-screen repairs: these sit after the teaching-studio base rules. */
@media (max-width: 780px) {
  .design-studio-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .achievement-photo-strip {
    margin: 32px 0 56px;
  }
}

@media (max-width: 520px) {
  .design-studio-heading h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .design-studio-heading {
    display: block;
  }

  .design-studio-heading .eyebrow {
    margin-bottom: 14px;
  }

  .design-studio-heading > p:not(.eyebrow) {
    max-width: 34ch;
    margin-top: 18px;
  }

  .achievement-documentary-grid,
  .achievement-community-visual {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 32px 0 56px;
  }

  .achievement-documentary-grid figure,
  .achievement-community-visual figure,
  .achievement-documentary-grid img,
  .achievement-community-visual img {
    min-height: 255px;
  }

  .contact-postcard {
    margin-top: 22px;
    padding: 20px 16px;
    gap: 20px;
    box-shadow: 4px 4px 0 rgba(25, 65, 64, 0.09);
  }

  .contact-postcard-mark {
    min-height: 170px;
    padding: 8px 12px 22px;
  }

  .contact-postcard-mark img {
    width: 112px;
    height: 135px;
  }

  .contact-mailbox-tagline {
    padding-top: 4px;
    font-size: 0.58rem;
  }

  .contact-postcard-stamp {
    top: 14px;
    right: 14px;
    width: 68px;
    padding: 4px;
  }

  .contact-postcard-stamp::before {
    left: -17px;
    bottom: -14px;
    width: 34px;
    height: 34px;
    font-size: 0.27rem;
  }

  .contact-postcard-stamp::after {
    right: -11px;
    bottom: 9px;
    width: 44px;
    height: 10px;
  }

  .contact-postcard-stamp figcaption {
    margin-top: 4px;
    font-size: 0.4rem;
  }

  .contact-postcard-copy {
    gap: 17px;
  }

  .contact-copy > p {
    font-size: 1rem;
  }

  .contact-copy .contact-signature {
    font-size: 0.9rem;
  }

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

  .contact-actions .button {
    justify-content: center;
    text-align: center;
  }

  .contact-link {
    min-height: 94px;
    padding: 14px;
  }

  .contact-link-mark {
    width: 38px;
    height: 38px;
    font-size: 0.65rem;
  }

  .contact-profiles-heading h3 {
    font-size: 1.65rem;
  }

}
