:root {
  --camera-aspect: 16 / 9;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0c0f;
  color: #f4f0e8;
}

html {
  scroll-padding-top: 104px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(43, 83, 78, 0.3), transparent 38%),
    linear-gradient(315deg, rgba(166, 48, 72, 0.24), transparent 34%),
    #0b0c0f;
}

button {
  font: inherit;
}

input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(360px, 760px) minmax(460px, 1fr);
  gap: 20px;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding: 20px;
}

.capture-panel,
.gallery-panel {
  min-width: 0;
  min-height: 0;
}

.capture-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.camera-frame {
  grid-row: 2;
  position: relative;
  width: 100%;
  max-height: calc(100vh - 184px);
  aspect-ratio: var(--camera-aspect);
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, 0.16);
  border-radius: 8px;
  background: #15171c;
}

.camera-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #bdb7ad;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.booth-controls {
  grid-row: 1;
  align-items: stretch;
}

.booth-controls .primary-button,
.booth-controls .upload-picker {
  flex: 1 1 160px;
}

.primary-button {
  min-height: 52px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #f4f0e8;
  color: #111216;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.booth-controls .primary-button {
  box-shadow: 0 0 0 1px rgba(244, 240, 232, 0.12), 0 10px 28px rgba(244, 240, 232, 0.08);
}

.secondary-button {
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  border-radius: 8px;
  background: #15171c;
  color: #f4f0e8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.upload-picker {
  position: relative;
  min-width: 0;
  min-height: 52px;
}

.upload-picker .secondary-button {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.file-picker-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-picker-input:disabled {
  cursor: progress;
}

.secondary-button:disabled {
  cursor: progress;
  opacity: 0.55;
}

.primary-button:disabled {
  cursor: progress;
  opacity: 0.55;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  border-radius: 8px;
  color: #f4f0e8;
  font-size: 13px;
  flex: 1 1 118px;
  white-space: nowrap;
}

.aspect-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  border-radius: 8px;
  color: #f4f0e8;
  font-size: 13px;
  flex: 1 1 118px;
  white-space: nowrap;
}

.aspect-select span {
  color: #bdb7ad;
  font-size: 12px;
}

.aspect-select select {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #f4f0e8;
}

.mode-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #f4f0e8;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  border-radius: 8px;
  color: #f4f0e8;
  font-size: 13px;
  flex: 1 1 96px;
  text-decoration: none;
  white-space: nowrap;
}

.booth-controls .status-stack {
  flex: 1 0 100%;
}

.countdown-overlay,
.flash-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.countdown-overlay {
  display: grid;
  place-items: center;
  background: rgba(11, 12, 15, 0.3);
  color: #ffffff;
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.flash-overlay {
  background: #ffffff;
}

.status-stack {
  min-width: 0;
}

.status-stack p {
  margin: 0;
}

#statusText {
  font-size: 14px;
  color: #f4f0e8;
}

.prompt {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #bdb7ad;
  font-size: 12px;
}

.gallery-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(112px, 18vh);
  gap: 12px;
}

.gallery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.gallery-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

#countBadge {
  color: #bdb7ad;
  font-size: 13px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  grid-auto-rows: minmax(88px, auto);
  grid-auto-flow: dense;
  align-content: start;
  align-items: stretch;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.video-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 6px;
  background: #14161b;
}

.video-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed rgba(244, 240, 232, 0.16);
  border-radius: 8px;
  color: #8f8980;
  font-size: 13px;
}

.video-card-landscape {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.video-card-portrait {
  grid-row: span 2;
  aspect-ratio: 9 / 16;
}

.video-card::after {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(11, 12, 15, 0.72);
  color: #f4f0e8;
  font-size: 10px;
  line-height: 1;
  pointer-events: none;
}

.video-card-landscape::after {
  content: "16:9";
}

.video-card-portrait::after {
  content: "9:16";
}

.video-card video,
.video-card img,
.missing-capture-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0f1115;
}

.video-card img {
  object-fit: cover;
  opacity: 0.62;
}

.missing-capture-preview {
  background:
    linear-gradient(135deg, rgba(244, 240, 232, 0.08), transparent 46%),
    #15171c;
}

.card-status {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(11, 12, 15, 0.76);
  color: #f4f0e8;
  font-size: 11px;
  backdrop-filter: blur(10px);
}

.spinner {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(244, 240, 232, 0.22);
  border-top-color: #f4f0e8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.video-card.done .card-status {
  display: none;
}

.video-card.failed .card-status {
  background: rgba(144, 30, 42, 0.84);
}

.log-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  padding-top: 8px;
}

.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
}

.log-header h2 {
  margin: 0;
  color: #f4f0e8;
  font-size: 14px;
  line-height: 1;
}

.mini-button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  border-radius: 6px;
  background: #15171c;
  color: #f4f0e8;
  cursor: pointer;
  font-size: 12px;
}

.log-console {
  min-height: 0;
  overflow: hidden;
  padding-right: 4px;
}

.log-empty,
.log-row {
  border: 1px solid rgba(244, 240, 232, 0.1);
  border-radius: 8px;
  background: rgba(21, 23, 28, 0.78);
}

.log-empty {
  padding: 12px;
  color: #bdb7ad;
  font-size: 12px;
}

.log-row {
  margin-top: 6px;
  padding: 8px;
}

.log-row.is-error {
  border-color: rgba(235, 91, 105, 0.42);
}

.log-row.is-success {
  border-color: rgba(103, 196, 136, 0.38);
}

.log-meta {
  color: #8f8980;
  font-size: 11px;
}

.log-title {
  margin-top: 4px;
  color: #f4f0e8;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.log-detail {
  margin: 6px 0 0;
  max-height: 58px;
  overflow: auto;
  color: #bdb7ad;
  font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.display-body {
  min-height: 100vh;
  overflow: hidden;
  background: #000000;
}

.display-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100vw;
  height: 100vh;
  background: #000000;
}

.display-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 48px;
  padding: 8px 12px;
  background: rgba(12, 13, 15, 0.94);
  border-bottom: 1px solid rgba(244, 240, 232, 0.12);
}

:fullscreen .display-toolbar {
  display: none;
}

.display-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
}

.display-title span {
  color: #bdb7ad;
  font-size: 12px;
}

.display-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.display-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bdb7ad;
  font-size: 12px;
}

.display-controls .display-check {
  color: #f4f0e8;
}

.display-check input {
  width: 16px;
  accent-color: #f4f0e8;
}

.display-controls input,
.display-controls select,
.display-controls button,
.display-controls a {
  height: 32px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 6px;
  background: #15171c;
  color: #f4f0e8;
}

.display-controls input {
  width: 54px;
  padding: 0 8px;
}

.display-controls select,
.display-controls button,
.display-controls a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0 10px;
}

.display-controls select {
  max-width: 190px;
}

.manager-body {
  min-height: 100vh;
  overflow: hidden;
  background: #0b0c0f;
}

.manager-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
  height: 100vh;
  padding: 20px;
}

.manager-header,
.manager-toolbar,
.manager-panel {
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 8px;
  background: rgba(15, 17, 22, 0.86);
}

.manager-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.manager-header h1,
.manager-section-title h2 {
  margin: 0;
  letter-spacing: 0;
}

.manager-header h1 {
  font-size: 28px;
  line-height: 1;
}

.manager-header p,
.manager-section-title span,
.media-meta span {
  color: #bdb7ad;
}

.manager-header p {
  margin: 8px 0 0;
  font-size: 13px;
}

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

.manager-nav a,
.manager-toolbar button,
.capture-card button,
.manager-video-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 6px;
  background: #15171c;
  color: #f4f0e8;
  font: inherit;
  text-decoration: none;
}

.manager-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.manager-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bdb7ad;
  font-size: 12px;
}

.manager-toolbar select {
  height: 34px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 6px;
  background: #15171c;
  color: #f4f0e8;
}

.manager-input {
  width: min(360px, 48vw);
  height: 34px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 6px;
  background: #15171c;
  color: #f4f0e8;
  font: inherit;
  padding: 0 10px;
}

.manager-toolbar button:disabled,
.capture-card button:disabled,
.manager-video-card button:disabled {
  cursor: default;
  opacity: 0.45;
}

.manager-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
}

.manager-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.manager-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(244, 240, 232, 0.12);
}

.manager-section-title h2 {
  font-size: 16px;
}

.capture-list,
.manager-video-grid {
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.capture-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.capture-card,
.manager-video-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 8px;
  background: #121419;
}

.capture-card {
  grid-template-columns: auto 96px minmax(0, 1fr);
}

.capture-card button {
  grid-column: 2 / -1;
}

.capture-card img {
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: #0b0c0f;
}

.manager-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-content: start;
  gap: 14px;
}

.manager-video-card {
  grid-template-columns: auto minmax(0, 1fr);
}

.manager-video-card video,
.manager-video-card .missing-capture-preview {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 6px;
  background: #000000;
}

.manager-video-card.archived {
  opacity: 0.58;
}

.prompt-manager-shell {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.prompt-manager-panel {
  min-height: 0;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.prompt-card {
  display: grid;
  grid-template-rows: auto auto minmax(150px, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 8px;
  background: #121419;
}

.prompt-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.prompt-card-header span,
.prompt-meta span,
.prompt-meta code {
  color: #bdb7ad;
  font-size: 12px;
}

.prompt-card-header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prompt-meta span,
.prompt-meta code {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 999px;
  background: rgba(244, 240, 232, 0.05);
}

.prompt-meta .prompt-status-active {
  color: #9ce0af;
  border-color: rgba(156, 224, 175, 0.3);
}

.prompt-meta .prompt-status-inactive {
  color: #f0c36d;
  border-color: rgba(240, 195, 109, 0.3);
}

.prompt-meta .prompt-status-archived {
  color: #9ba0aa;
  border-color: rgba(155, 160, 170, 0.3);
}

.prompt-text {
  min-width: 0;
  max-height: 190px;
  overflow: auto;
  margin: 0;
  color: #f4f0e8;
  font-size: 13px;
  line-height: 1.65;
}

.prompt-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prompt-actions button,
.prompt-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 6px;
  background: #15171c;
  color: #f4f0e8;
  font: inherit;
  text-decoration: none;
}

.prompt-actions button:disabled {
  cursor: default;
  opacity: 0.45;
}

.media-meta {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
}

.media-meta strong,
.media-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.display-grid {
  --display-cols: 3;
  --display-tile-max-width: none;
  display: grid;
  grid-template-columns: repeat(var(--display-cols), minmax(0, var(--display-tile-max-width)));
  grid-auto-rows: auto;
  align-content: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000;
}

.display-grid[data-aspect-mode="mixed"] {
  align-items: center;
}

.display-tile {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: var(--tile-aspect, 16 / 9);
  background: #000000;
}

.display-tile video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.works-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #050608;
  color: #f3ede3;
}

.works-page {
  min-width: 0;
  background: #050608;
}

.works-hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(18px, 4svh, 42px) clamp(18px, 5vw, 72px) 52px;
  isolation: isolate;
}

.works-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0), rgba(5, 6, 8, 0.78));
  z-index: -1;
}

.works-stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: #050608;
}

.works-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.works-nav a,
.work-card a,
.works-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(243, 237, 227, 0.2);
  border-radius: 6px;
  background: rgba(5, 6, 8, 0.52);
  color: #f3ede3;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.works-hero-content {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 18px;
  max-width: 980px;
  padding-top: 12svh;
}

.works-kicker,
.works-section-label {
  margin: 0;
  color: #4cc4b1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.works-hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(46px, 8.4vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

.works-hero-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(243, 237, 227, 0.86);
  font-size: clamp(16px, 2.2vw, 24px);
  line-height: 1.62;
}

.works-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.works-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(243, 237, 227, 0.18);
  border-radius: 6px;
  background: rgba(5, 6, 8, 0.58);
  color: rgba(243, 237, 227, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.works-summary,
.works-section,
.works-capabilities,
.works-footer {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.works-summary {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  background: #f3ede3;
  color: #11141a;
}

.works-summary h2,
.works-section-heading h2 {
  margin: 8px 0 0;
  letter-spacing: 0;
}

.works-summary h2 {
  max-width: 680px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.08;
}

.works-summary-copy {
  display: grid;
  gap: 18px;
  color: rgba(17, 20, 26, 0.82);
  font-size: 16px;
  line-height: 1.9;
}

.works-summary-copy p {
  margin: 0;
}

.collab-roles {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: #11141a;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.role-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 240px;
  padding: 18px;
  border: 1px solid rgba(243, 237, 227, 0.13);
  border-radius: 8px;
  background: rgba(5, 6, 8, 0.38);
}

.role-grid span,
.research-list span {
  color: #d8b25f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.role-grid h3,
.research-list h3,
.source-matrix h3 {
  margin: 0;
  letter-spacing: 0;
}

.role-grid h3 {
  color: #f3ede3;
  font-size: 21px;
  line-height: 1.16;
}

.role-grid p {
  margin: 0;
  color: rgba(243, 237, 227, 0.76);
  font-size: 14px;
  line-height: 1.75;
}

.works-section {
  background: #090b0f;
}

.works-section-alt {
  background: #151922;
}

.works-section-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 24px;
}

.works-section-heading h2 {
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.08;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.work-card {
  display: grid;
  grid-template-rows: auto auto minmax(170px, 1fr) auto auto;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(243, 237, 227, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(243, 237, 227, 0.05), rgba(243, 237, 227, 0.02)),
    #11141a;
}

.work-card-featured {
  border-color: rgba(76, 196, 177, 0.28);
  background:
    linear-gradient(145deg, rgba(76, 196, 177, 0.08), rgba(216, 178, 95, 0.06) 42%, rgba(243, 237, 227, 0.03)),
    #11141a;
}

.work-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #d8b25f;
  font-size: 12px;
  font-weight: 800;
}

.work-card h3 {
  margin: 0;
  min-height: 3.2em;
  color: #f3ede3;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.work-card p {
  margin: 0;
  color: rgba(243, 237, 227, 0.76);
  font-size: 14px;
  line-height: 1.75;
}

.work-meta-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.work-meta-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
}

.work-meta-list dt,
.work-meta-list dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.work-meta-list dt {
  color: #4cc4b1;
  font-weight: 800;
}

.work-meta-list dd {
  color: rgba(243, 237, 227, 0.78);
}

.work-card a {
  justify-self: start;
  background: rgba(76, 196, 177, 0.08);
  border-color: rgba(76, 196, 177, 0.34);
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-section {
  background:
    linear-gradient(180deg, rgba(76, 196, 177, 0.08), rgba(5, 6, 8, 0) 28%),
    #0b0e14;
}

.media-intro {
  max-width: 780px;
  margin: 10px 0 0;
  color: rgba(243, 237, 227, 0.72);
  font-size: 14px;
  line-height: 1.78;
}

.media-feature-grid,
.video-embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.video-embed-grid {
  margin-top: 28px;
}

.media-card,
.video-embed-card {
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(243, 237, 227, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(243, 237, 227, 0.055), rgba(243, 237, 227, 0.018)),
    #11141a;
}

.media-image-link,
.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050608;
}

.video-frame {
  aspect-ratio: 16 / 9;
}

.media-image-link img,
.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.media-image-link img {
  object-fit: cover;
}

.video-frame iframe {
  border: 0;
}

.media-card-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
}

.media-card-copy span {
  color: #d8b25f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.media-card-copy h3 {
  margin: 0;
  color: #f3ede3;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.media-card-copy p {
  margin: 0;
  color: rgba(243, 237, 227, 0.74);
  font-size: 13px;
  line-height: 1.72;
}

.media-card-copy a {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(76, 196, 177, 0.34);
  border-radius: 6px;
  background: rgba(76, 196, 177, 0.08);
  color: #f3ede3;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.research-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.research-list article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 220px;
  padding: 16px;
  border: 1px solid rgba(243, 237, 227, 0.12);
  border-radius: 8px;
  background: rgba(5, 6, 8, 0.32);
}

.research-list h3 {
  color: #f3ede3;
  font-size: 18px;
  line-height: 1.25;
}

.research-list p {
  margin: 0;
  color: rgba(243, 237, 227, 0.76);
  font-size: 13px;
  line-height: 1.78;
}

.works-capabilities {
  background: #f3ede3;
  color: #11141a;
}

.source-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.source-matrix article {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(17, 20, 26, 0.14);
  border-radius: 8px;
  background: rgba(17, 20, 26, 0.035);
}

.source-matrix h3 {
  color: #11141a;
  font-size: 18px;
  line-height: 1.2;
}

.source-matrix p,
.source-matrix li,
.research-note {
  color: rgba(17, 20, 26, 0.74);
  font-size: 13px;
  line-height: 1.72;
}

.source-matrix p {
  margin: 10px 0 0;
}

.source-matrix ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.source-matrix li {
  padding-left: 2px;
}

.research-note {
  max-width: 980px;
  margin: 22px 0 0;
}

.source-section {
  background: #050608;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(243, 237, 227, 0.2);
  border-radius: 6px;
  background: rgba(243, 237, 227, 0.05);
  color: #f3ede3;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.capability-grid div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(17, 20, 26, 0.14);
  border-radius: 8px;
}

.capability-grid strong {
  color: #11141a;
  font-size: 14px;
}

.capability-grid span {
  color: rgba(17, 20, 26, 0.72);
  font-size: 13px;
  line-height: 1.65;
}

.works-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(243, 237, 227, 0.12);
  background: #050608;
  color: rgba(243, 237, 227, 0.72);
  font-size: 12px;
}

@media (max-width: 820px) {
  .app-shell {
    height: auto;
    overflow: visible;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding: 14px;
  }

  .capture-panel {
    grid-template-columns: minmax(120px, 36vw) 1fr;
    grid-template-rows: auto;
    align-items: end;
  }

  .camera-frame {
    max-height: 42vh;
  }

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

  .primary-button {
    width: 100%;
  }

  .status-stack {
    grid-column: 1 / -1;
  }

  .gallery-header h1 {
    font-size: 23px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .display-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .display-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .manager-shell {
    height: auto;
    min-height: 100vh;
    padding: 14px;
  }

  .manager-header,
  .manager-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .manager-nav,
  .manager-toolbar {
    flex-wrap: wrap;
  }

  .manager-input {
    width: 100%;
  }

  .manager-layout {
    grid-template-columns: 1fr;
  }

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

  .works-hero {
    min-height: 76svh;
    padding-bottom: 38px;
  }

  .works-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .works-hero-content {
    gap: 14px;
    padding-top: 7svh;
  }

  .works-hero h1 {
    max-width: 9ch;
    font-size: clamp(42px, 15vw, 72px);
  }

  .works-hero-lead {
    font-size: 15px;
    line-height: 1.7;
  }

  .works-summary {
    grid-template-columns: 1fr;
  }

  .role-grid article,
  .research-list article {
    min-height: 0;
  }

  .work-card {
    grid-template-rows: auto auto auto auto auto;
  }

  .work-meta-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .works-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* FIL Design System override for the Daito x MIKIKO history page. */
.works-body {
  background: #000000;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.works-body *:focus-visible {
  outline: 1px solid #ffffff;
  outline-offset: 3px;
}

#worksHeroTitle,
#mediaTitle,
#collabTimeline,
#timelineTitle,
#perfumeTitle,
#elevenplayTitle,
#sourceTitle,
#casePagesTitle,
#caseTitle,
#caseMediaTitle,
#caseVideoTitle,
#caseRoleTitle,
#caseSourceTitle {
  scroll-margin-top: 104px;
}

.works-page {
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    #000000;
  background-size: 48px 48px;
  color: #ffffff;
}

.works-hero {
  min-height: 92svh;
  padding: 96px clamp(20px, 5vw, 72px) 72px;
  background: #000000;
}

.works-hero::after {
  content: none;
}

.works-stage-canvas {
  display: none;
}

.works-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  justify-content: flex-end;
  padding: 18px clamp(20px, 5vw, 72px);
  mix-blend-mode: difference;
}

.works-nav a {
  min-height: auto;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.72;
}

.works-nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.case-page-body .works-nav .case-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(0, 0, 0, 0.38);
  opacity: 1;
}

.case-page-body .works-nav .case-home-link::before {
  content: "<";
  margin-right: 6px;
}

.case-page-body .works-nav .case-home-link:hover {
  border-color: #ffffff;
  text-decoration: none;
}

.works-hero-content {
  max-width: 1040px;
  gap: 24px;
}

.works-kicker,
.works-section-label {
  color: rgba(255, 255, 255, 0.68);
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.works-hero h1 {
  max-width: 11ch;
  color: #ffffff;
  font-size: 7rem;
  font-weight: 100;
  line-height: 0.95;
  letter-spacing: 0;
}

.works-hero-lead {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  font-weight: 300;
  line-height: 1.95;
}

.works-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 940px);
  gap: 0;
  border-top: 1px solid #333333;
  border-left: 1px solid #333333;
}

.works-hero-meta span {
  min-height: 52px;
  padding: 12px;
  border: 0;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  border-radius: 0;
  background: #000000;
  color: rgba(255, 255, 255, 0.78);
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.works-summary,
.works-section,
.works-capabilities,
.collab-roles,
.works-footer {
  padding: clamp(64px, 8vw, 128px) clamp(20px, 5vw, 72px);
  background: #000000;
  color: #ffffff;
  border-top: 1px solid #222222;
}

.works-summary {
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
}

.works-summary h2,
.works-section-heading h2 {
  color: #ffffff;
  font-weight: 200;
  letter-spacing: 0;
}

.works-summary h2 {
  font-size: 3rem;
  line-height: 1.08;
}

.works-summary-copy {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  font-weight: 300;
}

.works-section-heading {
  margin-bottom: 32px;
  border-bottom: 1px solid #333333;
  padding-bottom: 24px;
}

.works-section-heading h2 {
  font-size: 3.2rem;
  line-height: 1.08;
}

.role-grid,
.works-grid,
.media-feature-grid,
.video-embed-grid,
.research-list,
.source-matrix {
  gap: 0;
  border-top: 1px solid #333333;
  border-left: 1px solid #333333;
}

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

.works-grid,
.media-feature-grid,
.video-embed-grid,
.source-matrix {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-grid article,
.work-card,
.media-card,
.video-embed-card,
.research-list article,
.source-matrix article {
  min-width: 0;
  border: 0;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  border-radius: 0;
  background: #000000;
  box-shadow: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.role-grid article:hover,
.work-card:hover,
.media-card:hover,
.video-embed-card:hover,
.research-list article:hover,
.source-matrix article:hover {
  background: #111111;
}

.work-card {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  padding: 24px;
}

.work-card-featured {
  border-color: #333333;
  background: #000000;
}

.role-grid span,
.research-list span,
.work-card-topline,
.media-card-copy span {
  color: rgba(255, 255, 255, 0.62);
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.role-grid h3,
.work-card h3,
.research-list h3,
.source-matrix h3,
.media-card-copy h3 {
  min-height: 0;
  color: #ffffff;
  font-weight: 300;
  letter-spacing: 0;
}

.work-card h3 {
  font-size: 1.35rem;
  line-height: 1.22;
}

.role-grid p,
.work-card p,
.research-list p,
.source-matrix p,
.source-matrix li,
.research-note,
.media-intro,
.media-card-copy p {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.work-meta-list {
  border-top: 1px solid #222222;
  padding-top: 12px;
}

.work-meta-list div {
  grid-template-columns: 96px minmax(0, 1fr);
}

.work-meta-list dt,
.work-meta-list dd {
  color: rgba(255, 255, 255, 0.66);
}

.work-meta-list dt {
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 400;
}

.work-card a,
.media-card-copy a,
.source-list a,
.works-footer a {
  min-height: 36px;
  border: 1px solid #333333;
  border-radius: 0;
  background: #111111;
  color: #ffffff;
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.work-card a:hover,
.media-card-copy a:hover,
.source-list a:hover,
.works-footer a:hover {
  border-color: #ffffff;
  background: #222222;
  transform: translateY(-2px);
}

.media-section {
  background: #000000;
}

.media-image-link,
.video-frame {
  border-bottom: 1px solid #333333;
  background: #050505;
}

.media-image-link {
  display: block;
  width: 100%;
  aspect-ratio: auto;
  overflow: visible;
}

.video-frame {
  aspect-ratio: 16 / 9;
}

.media-image-link img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.media-card-copy {
  padding: 18px;
}

.works-capabilities {
  background: #000000;
  color: #ffffff;
}

.source-matrix h3,
.capability-grid strong {
  color: #ffffff;
}

.source-matrix p,
.source-matrix li,
.research-note,
.capability-grid span {
  color: rgba(255, 255, 255, 0.7);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #333333;
  border-left: 1px solid #333333;
}

.source-list a {
  justify-content: flex-start;
  min-height: 48px;
  border: 0;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  background: #000000;
}

.works-footer {
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid #333333;
  color: rgba(255, 255, 255, 0.62);
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.case-directory {
  margin-top: 56px;
}

.case-directory-grid,
.case-media-grid,
.case-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #333333;
  border-left: 1px solid #333333;
}

.case-directory-card,
.case-media-item,
.case-role-card {
  min-width: 0;
  margin: 0;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  background: #000000;
}

.case-directory-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 220px;
  padding: 20px;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.case-directory-card:hover {
  background: #111111;
  transform: translateY(-2px);
}

.case-directory-card span,
.case-role-card span,
.case-media-item figcaption,
.case-hero-meta span,
.case-sibling-nav a {
  color: rgba(255, 255, 255, 0.62);
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.case-directory-card strong {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.25;
}

.case-directory-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.55;
}

.case-directory-card em {
  align-self: end;
  color: #ffffff;
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-hero {
  min-height: 72svh;
  padding: 112px clamp(20px, 5vw, 72px) 72px;
  background: #000000;
  border-bottom: 1px solid #222222;
}

.case-hero h1 {
  max-width: 980px;
  margin: 18px 0 0;
  color: #ffffff;
  font-size: 5.4rem;
  font-weight: 100;
  letter-spacing: 0;
  line-height: 0.98;
}

.case-subtitle {
  max-width: 800px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.45;
}

.case-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  width: min(100%, 540px);
  border-top: 1px solid #333333;
  border-left: 1px solid #333333;
  margin-bottom: 32px;
}

.case-hero-meta span {
  min-height: 44px;
  padding: 12px;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
}

.case-section {
  background: #000000;
}

.case-two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.66fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
}

.case-two-column h2 {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: 3rem;
  font-weight: 200;
  letter-spacing: 0;
  line-height: 1.08;
}

.case-focus-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid #333333;
  border-left: 1px solid #333333;
  list-style: none;
}

.case-focus-list li {
  min-height: 72px;
  padding: 18px;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  line-height: 1.65;
}

.case-media-item {
  display: grid;
  grid-template-rows: minmax(220px, auto) auto;
}

.case-media-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: #050505;
  border-bottom: 1px solid #333333;
}

.case-media-item figcaption {
  min-height: 48px;
  padding: 14px 16px;
  line-height: 1.5;
}

.case-role-card {
  padding: 22px;
}

.case-role-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  line-height: 1.75;
}

.case-sibling-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-sibling-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #333333;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}

.case-sibling-nav a:hover {
  border-color: #ffffff;
  background: #222222;
}

@media (max-width: 1024px) {
  .works-hero h1 {
    font-size: 5.4rem;
  }

  .works-grid,
  .media-feature-grid,
  .video-embed-grid,
  .source-matrix,
  .source-list,
  .case-directory-grid,
  .case-media-grid,
  .case-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-grid,
  .works-hero-meta,
  .research-list,
  .case-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .works-hero {
    min-height: 84svh;
    padding-top: 86px;
  }

  .works-nav {
    justify-content: flex-start;
    padding: 14px 20px;
  }

  .works-nav a {
    font-size: 10px;
  }

  .works-hero h1 {
    max-width: 10ch;
    font-size: 3.65rem;
    line-height: 1;
  }

  .case-hero {
    min-height: 66svh;
    padding-top: 86px;
  }

  .case-hero h1 {
    font-size: 3.35rem;
    line-height: 1;
  }

  .case-subtitle {
    font-size: 1.05rem;
  }

  .case-hero-meta {
    grid-template-columns: 1fr;
  }

  .works-hero-lead {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .works-summary {
    grid-template-columns: 1fr;
  }

  .works-summary h2,
  .works-section-heading h2,
  .case-two-column h2 {
    font-size: 2.25rem;
  }

  .works-grid,
  .media-feature-grid,
  .video-embed-grid,
  .source-matrix,
  .source-list,
  .case-directory-grid,
  .case-media-grid,
  .case-role-grid {
    grid-template-columns: 1fr;
  }
}
