/* ========================================
   PROJECT HERO
======================================== */

.project-hero {
  padding-top: 110px;
  padding-bottom: 80px;
}

.project-hero-meta {
  margin-bottom: 44px;

  display: flex;
  justify-content: space-between;
  gap: 40px;

  font-size: 14px;
  color: var(--color-secondary);
}

.project-hero-title {
  max-width: 1180px;

  margin-bottom: 56px;
}

.project-hero-description {
  max-width: 720px;

  margin: 0;

  font-size: 22px;
  line-height: 1.5;

  letter-spacing: -0.02em;

  color: var(--color-secondary);
}

.project-hero-image {
  width: 100%;

  margin-top: 88px;
}

.project-hero-image img {
  width: 100%;
}


/* ========================================
   PROJECT INFO
======================================== */

.project-info-block {
  padding-top: 64px;
  padding-bottom: 120px;
}

.project-info-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 80px;
}

.project-meta-list {
  display: grid;
  gap: 28px;

  align-content: start;
}

.meta-item p {
  margin-bottom: 4px;

  font-size: 13px;
  color: var(--color-secondary);
}

.meta-item strong {
  font-size: 15px;
  font-weight: 500;
}


/* ========================================
   SECTIONS
======================================== */

.project-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.project-section.major {
  padding-top: 160px;
  padding-bottom: 160px;
}

.project-section.compact {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-heading {
  margin-bottom: 64px;
}

.section-heading .eyebrow {
  margin-bottom: 18px;
}

.section-heading h2 {
  max-width: 900px;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: var(--reading-width);
  margin-bottom: 0;

  color: var(--color-secondary);
}


/* ========================================
   TEXT
======================================== */

.project-copy {
  width: 100%;
  max-width: var(--reading-width);
}

.project-copy.center {
  margin-left: auto;
  margin-right: auto;
}

.project-copy p + p {
  margin-top: 24px;
}

.project-copy p:last-child {
  margin-bottom: 0;
}

.project-copy h3 {
  margin-top: 56px;
  margin-bottom: 20px;
}


/* ========================================
   MEDIA WIDTH SYSTEM

   One of four widths, always. Never size an image inline.
======================================== */

.media {
  /* Most .media blocks are <figure>, which the browser gives a default
     40px side margin — enough to shunt the block right and hang it past
     the page margin. The width variants below re-centre with auto. */
  margin-inline: 0;

  margin-top: 56px;
  margin-bottom: 56px;
}

.media img,
.media video,
.media-stack img,
.text-media img,
.project-hero-image img {
  border-radius: var(--radius-figure);
  box-shadow: var(--ring-figure), var(--shadow-figure);
}

.media img,
.media video {
  width: 100%;
}

.media-full {
  width: 100%;
}

.media-wide {
  width: 88%;
  margin-left: auto;
  margin-right: auto;
}

.media-medium {
  width: 68%;
  margin-left: auto;
  margin-right: auto;
}

.media-small {
  width: 48%;
  margin-left: auto;
  margin-right: auto;
}


/* ========================================
   MEDIA GRIDS
======================================== */

.media-pair {
  margin-top: 56px;
  margin-bottom: 56px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Grid items default to min-width:auto, so a wide image forces its track
   past the column. Let the tracks shrink instead. */
.media-pair > *,
.media-triplet > * {
  min-width: 0;
}

.media-triplet {
  margin-top: 56px;
  margin-bottom: 56px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.media-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ========================================
   INITIATOR — RESEARCH
======================================== */

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

  column-gap: 28px;
  row-gap: 32px;

  max-width: 1280px;
  margin: 56px auto 0;

  align-items: start;
}

.initiator-research .research-grid img {
  display: block;
  width: 100%;
  height: auto;
}

/* Benchmarking becomes the synthesis row */
.initiator-research .research-grid img:nth-child(3) {
  grid-column: 1 / -1;

  width: 100%;
  max-width: none;

  margin: 0;
  justify-self: stretch;
}

/* =============================
   RESEARCH FINDINGS
============================= */

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}

.research-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.initiator-research .research-grid img:nth-child(3) {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
  margin: 0;
}


/* ========================================
   TEXT + MEDIA
======================================== */

.text-media {
  display: grid;
  grid-template-columns: 4fr 8fr;

  gap: 80px;

  align-items: start;
}

/* .reverse puts the image on the left and narrows the copy.
   Order is set explicitly so the DOM stays copy-first for screen readers. */
.text-media.reverse {
  grid-template-columns: 8fr 4fr;
}

.text-media.reverse .text-media-copy {
  order: 2;
}

.text-media-copy {
  max-width: 480px;
}

.text-media-copy p {
  color: var(--color-secondary);
}

.text-media-copy p:last-child {
  margin-bottom: 0;
}


/* ========================================
   FINDINGS / INSIGHTS
======================================== */

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}

/* Four cards in three columns strand the fourth alone on its own row with two
   empty columns beside it. Two columns give a balanced 2x2 block instead.
   The 900px rule below still drops everything to a single column. */
.insight-grid:has(> :nth-child(4)):not(:has(> :nth-child(5))) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ========================================
   TEXT SPLIT
   Heading left, body right. A .project-copy block led by a heading otherwise
   stops at --reading-width and leaves most of the column empty beside it.
   Same 80px gutter as .text-media.
   ======================================== */

.text-split {
  display: grid;
  grid-template-columns: 5fr 7fr;

  column-gap: 80px;
  row-gap: 24px;

  max-width: none;
  align-items: start;
}

/* .project-copy h3 sets a 56px top margin at equal specificity, so the reset
   has to name the element or the heading drops below its own prose. */
.text-split > h3 {
  grid-column: 1;
  margin-top: 0;
}

.text-split > :not(h3) {
  grid-column: 2;
  margin-top: 0;
}

@media (max-width: 900px) {

  .text-split {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .text-split > h3,
  .text-split > :not(h3) {
    grid-column: 1;
  }
}

/* Lead paragraph left, the elaboration right. Same grid as .text-split, for
   blocks that have no heading to put in the left column. */

.copy-split {
  display: grid;
  grid-template-columns: 5fr 7fr;

  column-gap: 80px;
  row-gap: 24px;

  max-width: none;
  align-items: start;
}

/* The trailing paragraphs are wrapped in .copy-split-body so the right column
   is a single grid item that flows continuously. Left as separate items they
   each take their own row, and a tall lead opens a gap in the middle. */
.copy-split > :first-child {
  grid-column: 1;
  margin-top: 0;
}

.copy-split > :not(:first-child) {
  grid-column: 2;
  margin-top: 0;
}

/* One paragraph has nothing to split against, so it just runs wider. */
.copy-wide {
  max-width: 1000px;
}

@media (max-width: 900px) {

  .copy-split {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .copy-split > :first-child,
  .copy-split > :not(:first-child) {
    grid-column: 1;
  }

  .copy-wide {
    max-width: var(--reading-width);
  }
}

.insight-card {
  min-height: 280px;

  padding: 32px;

  background: var(--color-surface);

  border-radius: var(--radius-md);

  display: flex;
  flex-direction: column;
}

.insight-number {
  display: block;

  margin-bottom: 72px;

  font-size: 13px;
  color: var(--color-secondary);
}

.insight-card h3 {
  margin-bottom: 20px;
}

.insight-card p {
  margin-bottom: 0;

  color: var(--color-secondary);
}


/* ========================================
   QUOTE
======================================== */

.quote-block {
  max-width: 1000px;

  margin: 120px auto;

  text-align: center;
}

.quote-block blockquote {
  margin: 0;

  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.12;

  letter-spacing: -0.035em;
}

.quote-source {
  margin-top: 24px;

  font-size: 14px;
  color: var(--color-secondary);
}


/* ========================================
   NUMBER / STAT
======================================== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--color-line);
}

.stat {
  padding: 32px 32px 60px 0;
}

.stat + .stat {
  padding-left: 32px;
  border-left: 1px solid var(--color-line);
}

.stat-number {
  margin-bottom: 10px;

  font-size: clamp(44px, 4vw, 64px);
  line-height: 1;

  letter-spacing: -0.04em;
}

.stat-label {
  max-width: 220px;

  font-size: 14px;

  color: var(--color-secondary);
}


/* ========================================
   NEXT PROJECT
======================================== */

.next-project {
  display: block;

  margin-top: 160px;
  padding-top: 64px;
  padding-bottom: 100px;

  border-top: 1px solid var(--color-line);
}

.next-project-label {
  margin-bottom: 24px;

  font-size: 14px;
  color: var(--color-secondary);
}

.next-project h2 {
  max-width: 900px;
  margin-bottom: 0;

  transition: opacity 0.25s ease;
}

.next-project:hover h2 {
  opacity: 0.55;
}


/* ========================================
   ABOUT PAGE
   (reuses the same grid + spacing system)
======================================== */

.about-portrait {
  width: 100%;

  border-radius: var(--radius-md);

  background: #e5e3de;

  aspect-ratio: 4 / 5;

  overflow: hidden;
}

.about-portrait img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.about-list {
  margin: 0;
  padding: 0;

  list-style: none;
}

.about-list li {
  padding: 24px 0;

  border-bottom: 1px solid var(--color-line);
}

.about-list li:first-child {
  border-top: 1px solid var(--color-line);
}

.about-year {
  margin-bottom: 6px;

  font-size: 13px;
  color: var(--color-secondary);
}

.about-role {
  margin-bottom: 4px;

  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.about-place {
  margin: 0;

  font-size: 15px;
  color: var(--color-secondary);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 8px 14px;

  border: 1px solid var(--color-line);
  border-radius: 999px;

  font-size: 14px;
  color: var(--color-secondary);
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 900px) {

  .project-hero {
    padding-top: 90px;
  }

  .project-info-grid,
  .text-media,
  .text-media.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .text-media.reverse .text-media-copy {
    order: 0;
  }

  .text-media-copy {
    max-width: var(--reading-width);
  }

  .insight-grid,
  /* The 2x2 rule above is more specific than this one, so it has to be
     repeated here or a four-card grid stays two-up on a phone. */
  .insight-grid:has(> :nth-child(4)):not(:has(> :nth-child(5))) {
    grid-template-columns: 1fr;
  }

  .insight-card {
    min-height: 0;
  }

  .insight-number {
    margin-bottom: 40px;
  }

  .media-wide {
    width: 94%;
  }

  .media-medium {
    width: 82%;
  }

  .media-small {
    width: 64%;
  }

  .quote-block {
    margin: 88px auto;
  }

  .next-project {
    margin-top: 110px;
  }

}


@media (max-width: 640px) {

  .project-hero {
    padding-top: 64px;
    padding-bottom: 60px;
  }

  .project-hero-meta {
    margin-bottom: 32px;
  }

  .project-hero-title {
    margin-bottom: 32px;
  }

  .project-hero-description {
    font-size: 19px;
  }

  .project-hero-image {
    margin-top: 56px;
  }

  .project-info-block {
    padding-bottom: 80px;
  }

  .project-section,
  .project-section.major {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .media,
  .media-pair,
  .media-triplet {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .media-wide,
  .media-medium,
  .media-small {
    width: 100%;
  }

  .media-pair,
  .media-triplet {
    grid-template-columns: 1fr;
  }

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

  .stat {
    padding: 28px 0 32px;
  }

  .stat + .stat {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--color-line);
  }

  .next-project {
    padding-bottom: 72px;
  }

}


/* ========================================
   INITIATOR — CASE STUDY BLOCKS
   Scoped to .initiator-* so nothing here can
   reach another project page.
======================================== */

/* --- Accent, local to this project --- */

.initiator-page {
  --ini-accent: #f08a3c;
  --ini-accent-soft: #fbe3d0;
  --ini-tint: #fdf2e9;
}


/* --- Research phases --- */

.ini-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;

  margin-top: 56px;
}

.ini-phase {
  padding: 0 32px;
  border-left: 1px solid var(--color-line);
}

.ini-phase:first-child {
  padding-left: 0;
  border-left: 0;
}

.ini-phase-step {
  display: block;
  margin-bottom: 10px;

  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ini-accent);
}

.ini-phase h3 {
  margin: 0 0 18px;
  font-size: 19px;
}

.ini-phase-figure {
  display: block;

  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ini-phase p {
  margin: 10px 0 0;

  font-size: 15px;
  color: var(--color-secondary);
}


/* --- Number callouts --- */

.ini-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  margin-top: 48px;
}

.ini-figure {
  padding: 32px 28px 34px;

  background: var(--ini-tint);
  border-radius: var(--radius-md);
}

.ini-figure-number {
  display: block;

  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ini-accent);
}

.ini-figure-number sup {
  font-size: 22px;
  top: -0.7em;
}

.ini-figure p {
  margin: 16px 0 0;

  font-size: 15px;
  line-height: 1.5;
}


/* --- Interview types --- */

.ini-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  margin-top: 48px;
}

.ini-type {
  padding: 30px 28px 32px;

  background: var(--color-surface);
  border-radius: var(--radius-md);

  display: flex;
  flex-direction: column;
}

.ini-type h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ini-type-mech {
  margin: 0 0 20px;

  font-size: 14px;
  color: var(--ini-accent);
}

.ini-type p {
  margin: 0;

  font-size: 15px;
  line-height: 1.55;
  color: var(--color-secondary);
}

.ini-type blockquote {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);

  font-size: 15px;
  line-height: 1.55;
}


/* --- Three-layer architecture --- */

.ini-layers {
  margin-top: 56px;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ini-layer {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;

  padding: 28px 30px 30px;

  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.ini-layer-name {
  margin: 0;
  font-size: 18px;
}

.ini-layer-name span {
  display: block;
  margin-bottom: 8px;

  font-size: 13px;
  color: var(--color-secondary);
}

.ini-layer-body p {
  margin: 0 0 16px;

  font-size: 15px;
  line-height: 1.55;
  color: var(--color-secondary);
}

.ini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin: 0;
  padding: 0;
}

.ini-chips li {
  list-style: none;

  padding: 7px 14px;

  font-size: 14px;

  background: var(--color-bg);
  border-radius: 999px;
}

.ini-chips.is-states li {
  background: var(--ini-tint);
}


/* --- Language rules --- */

.ini-rules {
  margin: 28px 0 0;
  padding: 0;
}

.ini-rules li {
  list-style: none;

  padding: 14px 0;
  border-top: 1px solid var(--color-line);

  font-size: 16px;
}

.ini-rules li:last-child {
  border-bottom: 1px solid var(--color-line);
}


/* --- Numbered findings --- */

.ini-findings {
  margin: 48px 0 0;
  padding: 0;
  counter-reset: ini-finding;
}

.ini-findings > li {
  list-style: none;
  counter-increment: ini-finding;

  padding: 26px 0 28px;
  border-top: 1px solid var(--color-line);
}

.ini-findings > li:last-child {
  border-bottom: 1px solid var(--color-line);
}

.ini-findings h3 {
  margin: 0;
  font-size: 19px;
}

.ini-findings h3::before {
  content: counter(ini-finding) " — ";
  color: var(--color-secondary);
}

.ini-findings blockquote {
  margin: 16px 0 0;
  padding-left: 22px;
  border-left: 2px solid var(--ini-accent-soft);

  font-size: 16px;
  line-height: 1.55;
  color: var(--color-secondary);
}


/* --- UI stills: never upscale past their native size --- */

.initiator-page .text-media img {
  max-width: 100%;
  margin-inline: auto;
}

/* UI stills are small natively — never upscale them */
.initiator-page img.ini-ui-still {
  max-width: min(100%, 500px);
}


/* --- Figma artwork: rounded frames, hairline to separate
       white slide exports from the off-white page --- */

.initiator-page .media img,
.initiator-page .media-stack img,
.initiator-page .text-media img,
.initiator-page .project-hero-image img,
.initiator-page .project-hero-image img {
  border-radius: var(--radius-lg);
}

/* Dense appendix diagrams read better edge to edge */
.initiator-page .ini-wide-figure {
  margin-top: 40px;
}

.initiator-page .ini-wide-figure img {
  width: 100%;
}


/* ========================================
   INITIATOR — RESPONSIVE
======================================== */

@media (max-width: 900px) {

  .ini-phases,
  .ini-figures,
  .ini-types {
    grid-template-columns: 1fr;
  }

  .ini-phase {
    padding: 26px 0;
    border-left: 0;
    border-top: 1px solid var(--color-line);
  }

  .ini-phase:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .ini-phases {
    margin-top: 40px;
  }

  .ini-layer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

}


@media (max-width: 640px) {

  /* Wide diagrams stay legible by scrolling inside their own
     container instead of shrinking to phone width. */
  .initiator-page .ini-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .initiator-page .ini-scroll img {
    width: 860px;
    max-width: none;
  }

}


@media (max-width: 640px) {

  .ini-figure-number {
    font-size: 44px;
  }

}


/* ========================================
   INITIATOR — REBUILT DIAGRAMS
   Real elements, not slide exports: these scale
   to any width and stay sharp at any zoom.
======================================== */

/* Let a block use the full page column instead of 88% */
.initiator-page .ini-bleed {
  width: 100%;
  margin-top: 64px;
  margin-bottom: 24px;
}


/* --- Benchmarking scatter --- */

.ini-plot {
  position: relative;

  aspect-ratio: 16 / 9;
  min-height: 420px;

  margin-top: 8px;
  padding: 34px 40px;

  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.ini-plot-axis {
  position: absolute;
  background: var(--color-text);
}

.ini-plot-axis.is-x {
  left: 6%;
  right: 4%;
  top: 51%;
  height: 1px;
}

.ini-plot-axis.is-y {
  top: 14%;
  bottom: 12%;
  left: 52.1%;
  width: 1px;
}

.ini-plot-cap {
  position: absolute;

  font-size: 15px;
  color: var(--color-secondary);
  white-space: nowrap;
}

.ini-plot-cap.is-top    { left: 52.1%; top: 5%;    transform: translateX(-50%); }
.ini-plot-cap.is-bottom { left: 52.1%; bottom: 3%; transform: translateX(-50%); }
.ini-plot-cap.is-left   { left: 4%;  top: 51%; transform: translateY(-140%); }
.ini-plot-cap.is-right  { right: 4%; top: 51%; transform: translateY(-140%); }

.ini-plot-item {
  position: absolute;
  transform: translate(-50%, -50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  text-align: center;
}

.ini-plot-item img {
  display: block;
  width: 38px;
  height: auto;

  border-radius: 9px;
}

.ini-plot-item.is-wordmark img {
  width: 96px;
  border-radius: 0;
}

.ini-plot-item span {
  font-size: 12px;
  line-height: 1.2;
  color: var(--color-secondary);
}

.ini-plot-item.is-selected span {
  color: var(--color-text);
}

/* Taken forward for deeper case analysis */
.ini-plot-item.is-selected::after {
  content: "";

  width: 7px;
  height: 7px;
  margin-top: 1px;

  background: var(--ini-accent);
  border-radius: 50%;
}


/* --- Support profiles --- */

.ini-profiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;

  margin-top: 12px;
}

.ini-profile {
  padding: 28px 26px 30px;
  border-radius: var(--radius-lg);
}

.ini-profile-mech {
  display: block;
  margin-bottom: 20px;

  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 26, 23, 0.55);
}

.ini-profile h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.ini-profile p {
  margin: 0;

  font-size: 15px;
  line-height: 1.5;
  color: rgba(28, 26, 23, 0.68);
}

.ini-profile-basis {
  display: block;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(28, 26, 23, 0.14);

  font-size: 13px;
  line-height: 1.45;
  color: rgba(28, 26, 23, 0.55);
}


/* --- Palette swatches --- */

.ini-palette {
  margin-top: 12px;
}

.ini-palette + .ini-palette {
  margin-top: 40px;
}

.ini-palette-label {
  margin: 0 0 14px;

  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

/* One 7-column rack for every row, so the three palettes
   line up and a 2-swatch row does not stretch to fill. */
.ini-chips-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;

  margin: 0;
  padding: 0;
}

.ini-chips-row li {
  list-style: none;
}

.ini-chip {
  height: 76px;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(28, 26, 23, 0.08);
}

.ini-chips-row code {
  display: block;
  margin-top: 8px;

  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--color-secondary);
}


/* --- Type facts --- */

.ini-typefacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;

  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
}

.ini-typefacts dt {
  margin-bottom: 8px;

  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.ini-typefacts dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}


/* ========================================
   INITIATOR — REBUILT DIAGRAMS, RESPONSIVE
======================================== */

@media (max-width: 1100px) {

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

}


@media (max-width: 900px) {


  .ini-plot {
    aspect-ratio: 4 / 3;
  }

  .ini-plot-item img { width: 30px; }
  .ini-plot-item.is-wordmark img { width: 74px; }
  .ini-plot-item span { font-size: 11px; }

  .ini-typefacts {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ini-chips-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}


@media (max-width: 640px) {

  .ini-profiles {
    grid-template-columns: 1fr;
  }

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

  .ini-chip {
    height: 60px;
  }

  /* The scatter needs width to stay legible — let it scroll */
  .ini-plot-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ini-plot {
    width: 640px;
    aspect-ratio: 16 / 11;
    min-height: 0;
  }

}

/* ---------------------------------------------------------------
   Embedded video. A 16:9 box so the iframe reserves its space
   before the player loads, matching the width of .media figures.
   --------------------------------------------------------------- */

.video-frame {
  position: relative;

  box-shadow: var(--shadow-figure);

  /* Each embed sets --ratio to its source aspect, so the player fills the
     box instead of letterboxing inside a assumed 16:9. */
  aspect-ratio: var(--ratio, 16 / 9);

  border-radius: 12px;
  overflow: hidden;

  background: #111;
}

/* Works for an embedded player and for a self-hosted <video> alike. */
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;
}
