#telephone-hero {
  width: 100%;
  padding: 28px 5% 32px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #ffffff 0%, var(--case-accent-soft) 100%);
  margin-bottom: 40px;
}

#telephone-hero-meta {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

#telephone-hero .hero-meta-item h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--case-accent);
  margin: 0 0 4px;
}

#telephone-hero .hero-meta-item p {
  margin: 0;
  font-size: 14px;
  color: #4a4a4a;
}

#telephone-hero .hero-meta-item a {
  display: block;
}

#telephone-hero-vid {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: 350px;
  max-height: 350px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  #telephone-hero {
    padding: 20px 4% 24px;
    margin-bottom: 32px;
  }

  #telephone-hero-meta {
    flex-direction: column;
    gap: 12px;
  }

  #telephone-hero-vid {
    height: 220px;
    max-height: 220px;
  }
}

body.swrl-page {
  --case-accent: #c2410c;
  --case-accent-hover: #9a3412;
  --case-accent-soft: #ffe6d2;
}

#swrl-hero {
  width: 100%;
  padding: 28px 5% 32px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #ffffff 0%, var(--case-accent-soft) 100%);
  margin-bottom: 40px;
}

.swrl-banner {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: 180px;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  margin: 0 auto 20px;
}

#swrl-hero-meta {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

#swrl-hero .hero-meta-item h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--case-accent);
  margin: 0 0 4px;
}

#swrl-hero .hero-meta-item p {
  margin: 0;
  font-size: 14px;
  color: #4a4a4a;
}

#swrl-hero .project-index {
  max-width: 1200px;
  width: 100%;
  margin: 4px auto 0;
  justify-content: space-between;
  gap: 12px 28px;
}

#swrl-hero .project-index a {
  color: var(--case-accent);
}

#swrl-hero .project-index a:hover {
  color: var(--case-accent-hover);
}

@media screen and (max-width: 768px) {
  #swrl-hero {
    padding: 20px 4% 24px;
    margin-bottom: 32px;
  }

  .swrl-banner {
    height: 120px;
    max-height: 120px;
  }

  #swrl-hero-meta {
    flex-direction: column;
    gap: 12px;
  }
}

#centered-sec.research-page {
  align-items: stretch;
}

.research-project,
.project-index {
  scroll-margin-top: 80px;
}

.project-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 28px 0 0;
  padding: 0;
}

.project-index a {
  color: var(--case-accent);
  font-size: 18px;
  line-height: 1.5;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.project-index a:hover {
  color: var(--case-accent-hover);
  text-decoration: underline;
}

.research-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(340px, 36%);
  gap: 40px;
  align-items: start;
}

.research-split .research-figure {
  max-width: none;
  margin: 0;
}

.research-figure a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.research-figure a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

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

.research-gallery-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
}

.research-gallery figure {
  margin: 0;
}

.research-gallery img,
.research-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.research-gallery figcaption,
.research-figure figcaption {
  margin-top: 8px;
  font-family: "Instrument-sans-reg", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #7a7a7a;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .research-split {
    grid-template-columns: 1fr;
  }

  .research-split .research-figure {
    max-width: 340px;
  }

  .research-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .research-gallery-pair {
    grid-template-columns: 1fr;
    max-width: 340px;
  }
}

.research-meta {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--case-accent);
}

.research-figure {
  max-width: 340px;
  margin: 0;
}

.citation {
  margin-top: 8px;
}

.citation summary {
  width: fit-content;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-muted);
}

.citation p {
  max-width: 62em;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

#centered-sec.case-wide {
  align-items: stretch;
}

#centered-sec.case-wide > .section {
  scroll-margin-top: 80px;
}

#centered-sec.case-wide > .section:first-child {
  margin-top: 0;
}

.telephone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 8px;
}

.telephone-actions a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--case-accent);
  color: var(--case-accent);
  font-family: "Instrument-sans-reg", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.telephone-actions img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

.telephone-actions span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}

.telephone-actions a svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.telephone-actions a:hover {
  background-color: var(--case-accent);
  color: #fff;
}

.telephone-actions a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.stage-sequence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}

.stage-sequence > li {
  margin: 0;
  counter-increment: stage;
}

.stage-sequence figure {
  margin: 0;
}

.stage-sequence figcaption,
.diagram-slide figcaption {
  margin-top: 8px;
  font-family: "Instrument-sans-reg", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #7a7a7a;
}

.stage-sequence figcaption {
  font-size: 16px;
}

#centered-sec.case-wide > .section:first-child strong,
#concept strong {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.concept-question {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  margin: 8px auto 32px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.concept-question::before,
.concept-question::after {
  flex: none;
  font-family: "Instrument-serif", Georgia, serif;
  font-size: 2.75em;
  line-height: 0.75;
  font-weight: 400;
  color: var(--case-accent);
}

.concept-question::before {
  content: "[";
}

.concept-question::after {
  content: "]";
}

#concept strong.mark {
  background-color: #f6c6de;
  border-radius: 3px;
  padding: 0.05em 0.22em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.concept-examples {
  width: 86%;
  max-width: 780px;
  margin: 36px auto 14px;
}

.stage-sequence figcaption::before {
  content: counter(stage) ". ";
  color: var(--case-accent);
  font-weight: 600;
}

.stage-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  line-height: 0;
  text-align: left;
}

.stage-zoom:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 12px;
}

.stage-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 20px 28px;
  box-sizing: border-box;
  background: rgba(18, 16, 16, 0.92);
}

.stage-lightbox[hidden] {
  display: none;
}

.stage-lightbox figure {
  margin: 0;
  min-width: 0;
  max-width: min(1100px, 78vw);
}

.stage-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.stage-lightbox figcaption {
  margin: 12px 0 0;
  font-family: "Instrument-sans-reg", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #f3f3f3;
  text-align: center;
}

.stage-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.stage-lightbox-prev,
.stage-lightbox-next {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  line-height: 0;
  cursor: pointer;
}

.stage-lightbox-prev svg,
.stage-lightbox-next svg {
  width: 18px;
  height: 18px;
}

.stage-lightbox-close:hover,
.stage-lightbox-prev:hover,
.stage-lightbox-next:hover {
  background: var(--case-accent);
  border-color: var(--case-accent);
  color: #fff;
}

.stage-lightbox-close:focus-visible,
.stage-lightbox-prev:focus-visible,
.stage-lightbox-next:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.rgb-example figcaption {
  margin: 0 0 8px;
  font-family: "Instrument-sans-reg", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #7a7a7a;
}

.source-passage {
  margin: 0 0 8px;
  padding: 16px 18px;
  border-left: 3px solid var(--case-accent);
  background: #fff;
  border-radius: 0 12px 12px 0;
}

.source-passage p {
  margin: 0;
}

.diagram-carousel {
  margin: 16px 0 36px;
}

.diagram-carousel:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

.diagram-slide {
  margin: 0;
}

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

.diagram-slide img {
  display: block;
  width: 100%;
  height: clamp(280px, 48vw, 520px);
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: none;
}

.concept-carousel {
  width: 86%;
  max-width: 780px;
  margin: 0 auto 36px;
}

.concept-carousel .diagram-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1123 / 483;
  object-fit: cover;
  object-position: center;
  background: #171717;
}

.diagram-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.diagram-carousel-prev,
.diagram-carousel-next,
.diagram-carousel-dot {
  padding: 0;
  border: 1px solid var(--case-accent);
  background: transparent;
  color: var(--case-accent);
  line-height: 0;
  box-sizing: border-box;
  cursor: pointer;
}

.diagram-carousel-prev,
.diagram-carousel-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
}

.diagram-carousel-prev svg,
.diagram-carousel-next svg {
  width: 16px;
  height: 16px;
}

.diagram-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.diagram-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.diagram-carousel-dot[aria-current="true"] {
  background: var(--case-accent);
}

.diagram-carousel-prev:hover,
.diagram-carousel-next:hover,
.diagram-carousel-dot:hover {
  background: var(--case-accent);
  color: #fff;
}

.diagram-carousel-prev:focus-visible,
.diagram-carousel-next:focus-visible,
.diagram-carousel-dot:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.output-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 8px 0 0;
  padding-bottom: 8px;
}

.output-scroller:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

.output-scroller figure {
  flex: 0 0 min(78%, 560px);
  margin: 0;
  scroll-snap-align: start;
}

.output-scroller img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: transparent;
}

.rgb-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 8px;
}

.rgb-example figure {
  margin: 0;
}

.rgb-reading {
  max-height: 460px;
  margin: 0;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #404040;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 8px 0 28px;
}

.mode-grid figure {
  margin: 0;
}

.mode-grid figcaption {
  margin-top: 8px;
  font-family: "Instrument-sans-reg", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #7a7a7a;
  text-align: center;
}

.telephone-steps {
  margin: 0 0 8px;
  padding-left: 1.25rem;
}

.telephone-steps li {
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
  .mode-grid,
  .rgb-example,
  .stage-sequence {
    grid-template-columns: 1fr;
  }

  .output-scroller figure {
    flex-basis: 88%;
  }

  .telephone-actions {
    grid-template-columns: 1fr;
  }

  .stage-sequence figcaption {
    font-size: 15px;
  }

  .concept-question {
    font-size: 19px;
  }

  .concept-examples,
  .concept-carousel {
    width: 100%;
  }
}
