/* Reusable pieces: hero, cards, prose, buttons, drawer. */

/* --- buttons --- */
.button {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #0f1115;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.button:hover {
  text-decoration: none;
  /* transform: translateY(-2px); */
}

.button--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.button--ghost:is(:hover, :focus-visible) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- hero ---
   Name → caps tagline → rule → two-tone headline → lede → outline action(s).
   All light-on-image; text-align flips with [data-hero-align="right"]. */
.hero__inner {
  max-width: 620px;
}

.hero__heading {
  /* Arial avoids the overlapping glyph contours exposed by stroking the Mac system font. */
/*  --hero-name-fill: rgba(201, 208, 214, 0.28);
  --hero-name-stroke: rgba(235, 242, 247, 0.75);
  --hero-name-accent-fill: rgba(41, 128, 173, 0.38);
  --hero-name-accent-stroke: rgba(113, 193, 230, 0.85);*/
--hero-name-fill: rgba(201, 208, 214, 0.6);
    --hero-name-stroke: rgba(235, 242, 247, 0.95);
    --hero-name-accent-fill: rgba(41, 128, 173, 0.9);
    --hero-name-accent-stroke: rgba(235, 242, 247, 0.75);
      margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.8rem, 7vw, 3.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #dce3e8;
}

.hero__heading-accent {
  color: #71c1e6;
}

:root[data-theme="dark"] .hero__heading {
  --hero-name-accent-fill: rgba(253, 141, 61, 0.9);
}

:root[data-theme="dark"] .hero__heading-accent {
  color: #fd8d3d;
}

@supports (-webkit-text-stroke: 0.5px white) {
  .hero__heading {
    -webkit-text-fill-color: var(--hero-name-fill);
    -webkit-text-stroke: 0.5px var(--hero-name-stroke);
  }

  .hero__heading-accent {
    -webkit-text-fill-color: var(--hero-name-accent-fill);
    -webkit-text-stroke-color: var(--hero-name-accent-stroke);
  }
}

.hero__tagline {
  margin: var(--space-2) 0 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.8rem, 1.6vw, 1.05rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.hero__rule {
  display: block;
  width: 3rem;
  height: 2px;
  margin: var(--space-3) 0;
  background: rgba(255, 255, 255, 0.6);
}

.hero__headline {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  color: #fff;
}
.hero__headline-soft { font-weight: 400; }
.hero__headline-strong { font-weight: 700; }

.hero__lede {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 35ch;
}

.hero__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

/* Outline pill with an optional leading icon (over the image). */
.hero__button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  border-radius: var(--radius);
}
.hero__button:is(:hover, :focus-visible) {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.hero__button-icon {
  width: 1.1rem;
  height: 1.1rem;
}
/* A solid variant if a hero action opts into `style: "primary"` visually. */
.hero__button--primary {
  /* keep the outline treatment by default; override here if a solid fill is
     ever wanted without touching the renderer */
}

/* Right-aligned variant: mirror the column's inner alignments. */
[data-hero-align="right"] .hero__inner { text-align: right; }
[data-hero-align="right"] .hero__rule { margin-left: auto; }
[data-hero-align="right"] .hero__lede { margin-left: auto; }
[data-hero-align="right"] .hero__actions { justify-content: flex-end; }

/* --- hero systems-index strip (bottom band, derived from the manifest) --- */
.hero__index {
  padding: 0 var(--space-4);
  /* background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)); */
  background: rgba(0,0,0,0.6);
}
.hero__index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.hero__index-item {
  display: flex;
  flex: 1 1 0;
  min-width: 180px;
}
.hero__index-item + .hero__index-item {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.hero__index-link {
  display: flex;
  flex: 1;
  width: 100%;
  min-width: 0;
  transition: color var(--transition);
  align-items: center;
  gap: 0.8rem;
  padding: calc(0.6rem + var(--space-2)) 1.3rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero__index-link:is(:hover, :focus-visible) {
  text-decoration: none;
  color: var(--color-accent);
}
.hero__index-link:is(:hover, :focus-visible) .hero__index-text,
.hero__index-link:is(:hover, :focus-visible) .hero__index-sub {
  color: var(--color-accent);
}
.hero__index-icon {
  flex: 0 0 auto;
  display: inline-flex;
}
.hero__index-icon .trait__icon {
  width: 2rem;
  height: 2rem;
  color: currentColor;
}
.hero__index-text {
  transition: color var(--transition);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.hero__index-label {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.82rem;
  font-weight: 700;
}
.hero__index-sub {
  transition: color var(--transition);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
  .hero__layout { padding: var(--space-5) var(--space-3); }
  .hero__index-item { flex-basis: 50%; }
  .hero__index-item:nth-child(odd) { border-left: none; }
}
@media (max-width: 560px) {
  .hero__index-item { flex-basis: 100%; }
  .hero__index-item + .hero__index-item { border-left: none; }
}

/* --- prose --- */
.prose>*+* {
  margin-top: var(--space-2);
}

.prose h3 {
  margin-top: var(--space-3);
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--color-muted);
}

/* --- cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
  padding: 20px;
  align-content:start;
}

.card {
  position: relative;
  /* background: var(--color-surface);
  border: 1px solid var(--color-border); */
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), border-color var(--transition);
  max-height:350px;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-muted);
}

.card__body {
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.card__meta {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.card__summary {
  color: var(--color-muted);
}

.card__body .button {
  /* margin-top: var(--space-2); */
  align-self: flex-end;
}

.media {
  aspect-ratio: 16 / 9;
}

.media--color {
  background: var(--media-color, var(--color-border));
}

.media--video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- featured case study (reference Systems layout) --- */
.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-items: center;
  margin-bottom: var(--space-4);
  /* padding: var(--space-3); */
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  /* Subtle theme wash so the section reads at a glance. */
  background: linear-gradient(180deg, var(--theme-tint, transparent), transparent);
}

/* Layout variant from the manifest: media on the right mirrors the row. */
[data-layout="media-right"] .feature {
  flex-direction: row-reverse;
}

.feature__media__container {
  position: relative;
  overflow: hidden;

  height: 75px;

  margin: 12px 12px 0;
align-self: stretch;
  border-radius: calc(var(--radius) - 2px);
}

.feature__media__image {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  opacity: 0.3;
  transform: scale(1.2);

  transition:
    transform 180ms linear,
    opacity 180ms linear;
}

.feature__media__color {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.is-activatable:hover .feature__media,
.is-activatable:hover .card__media {
  transform: scale(1);
  opacity: 1;
}

.feature__body {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0 var(--space-3) var(--space-3);
  align-self: stretch;
}

.feature__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: bold;
}

.feature__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.feature__summary {
  color: var(--color-muted);
  font-size: 1.1rem;
}

.feature .button {
  /* margin-top: var(--space-2); */
  align-self: flex-end;
  background: color-mix(in srgb, var(--color-accent) 12%, white);
}

.feature .card__detail {
  margin-top: var(--space-2);
  align-self: flex-start;
}

/* Supporting cards sit smaller beneath the feature. */
.cards--supporting {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card__media__container{
  position: relative;
  overflow: hidden;

  height: 100%;
  margin: 12px 12px 0;

  border-radius: calc(var(--radius) - 2px);
}

.card__media__image{
   display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  opacity: 0.3;
  transform: scale(1.1);

  transition:
    transform 180ms linear,
    opacity 180ms linear;

}

/* Cards inside the "columns" layout live in ~50% of the section, so use a
   smaller min so they comfortably go two-up (single column when it gets tight). */
.cards--columns {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Featured card: the prominent treatment in the third column — accent border,
   lift, taller media, larger title. Distinct from a plain supporting card. */
.card--featured {
  /* border-color: var(--color-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10); */
  max-height: none;
}

.card--featured .card__media__container {
  height: 80px;
}

.card--featured .card__title {
  font-size: 1.3rem;
}

/* "Featured" badge: marks the ONE signature project currently in the spotlight
   (only `.card--featured` renders it). Placed over the card's top corner — the
   card is position:relative — so it reads as a ribbon on the media.
   White ink on light-mode blue; dark ink on dark-mode orange. */
.card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #0b1020;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

:root[data-theme="light"] .card__badge {
  color: #fff;
}

.card__eyebrow {
  margin-bottom: 2px;
}

/* --- project chips ---
   Mini square banner thumbnails beside "All Projects": one per project flagged
   `chip: true`. Muted at rest so the strip reads as a quiet index, full opacity
   on hover/focus. No transform on hover — same reason as the activatable cards
   (edge flicker on a small click target drops clicks). */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 50%;
}

.chips__item {
  display: block;
}

.chip {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  cursor: pointer;
  overflow: visible;
}

.chip__img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity var(--transition);
}

.chip:hover .chip__img,
.chip:focus-visible .chip__img {
  opacity: 1;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--color-accent);
}

/* Tooltip: the project name, above the chip. The button's aria-label carries
   the same text, so this is aria-hidden decoration. */
.chip__label {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  max-width: 12rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: #0b1020;
  color: #f5f7fa;
  font-size: 0.7rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.chip:hover .chip__label,
.chip:focus-visible .chip__label {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* --- whole-box activation (drawer mode) ---
   The "Read more" button stays the one real control; its ::after overlay
   stretches over the entire card so a click anywhere opens the drawer. */
.is-activatable {
  cursor: pointer;
}

.is-activatable:hover {
  border-color: var(--color-muted);
}

.is-activatable .card__more::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Move the visible focus ring to the whole box, not just the button. */
.is-activatable:focus-within {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.is-activatable .card__more:focus-visible {
  outline: none;
}

/* Do NOT move an activatable box (or its button) on hover: a transform lift
   slides the box out from under the pointer at the edges, which toggles hover
   on/off — that flickers the button and drops clicks. Use a static shadow cue. */
.is-activatable:hover {
  transform: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.is-activatable .card__more:hover {
  transform: none;
}

/* Stack the feature on narrow viewports, regardless of layout variant. */
@media (max-width: 720px) {

  .feature,
  [data-layout="media-right"] .feature {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Inline expansion via <details>: animate the disclosure. */
.card__detail {
  margin-top: var(--space-2);
}

.card__detail summary {
  cursor: pointer;
  color: var(--color-accent);
  font-weight: 600;
  list-style: none;
}

.card__detail summary::-webkit-details-marker {
  display: none;
}

.card__detail-body {
  margin-top: var(--space-2);
}

.card__detail-body>*+* {
  margin-top: var(--space-2);
}

/* --- drawer / modal --- */
/* Shared darkened background behind BOTH drawers (detail + shelf). One element,
   toggled by drawer.js's syncScrim(); clicking it closes everything. It sits
   below both panels so they stay lit; it captures clicks over the rest. */
.app-scrim {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity var(--transition);
}

.app-scrim[hidden] {
  display: none;
}

.app-scrim.is-visible {
  opacity: 1;
}

/* Drawer roots are click-through; only their panels capture pointer events, so
   the shared scrim (and, when scrimless, the page) stays reachable behind. */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.drawer[hidden] {
  display: none;
}

.drawer__panel {
  pointer-events: auto;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  /* Wide on desktop, but never wider than the viewport (was min-width:800px,
     which overflowed horizontally on phones/small tablets). */
  width: min(950px, 92vw);
  /* background: var(--color-surface);
  border-left: 1px solid var(--color-border); */
  padding: var(--space-4);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition);

  /* Frosted "liquid glass" panel; colors adapt to the active theme. */
  /* background: var(--drawer-glass); */
  background: var(--color-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-left: 1px solid var(--drawer-glass-border);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.12);
}

/* Left-side variant: anchor to the left edge and slide in from the left. */
.drawer[data-side="left"] .drawer__panel {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--drawer-glass-border);
  transform: translateX(-100%);
}

/* Open state wins for both sides (must follow the data-side rule). */
.drawer.is-open .drawer__panel {
  transform: translateX(0);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

/* Programmatic arrival point for long-form drawers. It communicates the
   dialog title to assistive technology but is not an operable control or part
   of the sequential Tab order, so it does not need a keyboard focus ring. */
[data-drawer-initial-focus]:focus {
  outline: none;
}

.drawer__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.drawer__close:hover {
  color: var(--color-text);
}

.drawer__eyebrow{
  margin-top:0px !important;
}

/* Project identity directly under the banner: copy stays left and an optional
   organization/era mark sits right. The mark is capped to roughly the title +
   eyebrow/meta stack, so wide wordmarks support the heading rather than
   becoming a second hero image. */
.drawer__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.drawer__heading-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.drawer__heading-copy > * {
  margin-inline: 0;
}

.drawer__heading-copy > :first-child {
  margin-top: 0;
}

.drawer__heading-copy > :last-child {
  margin-bottom: 0;
}

.drawer__work-mark {
  --work-mark-height: clamp(2.75rem, 6vw, 4rem);
  flex: 0 1 calc(var(--work-mark-height) * var(--work-mark-ratio, 1));
  width: calc(var(--work-mark-height) * var(--work-mark-ratio, 1));
  max-width: 34%;
  height: var(--work-mark-height);
  color: var(--color-text);
  background: currentColor;
  -webkit-mask: var(--logo-src) center / contain no-repeat;
  mask: var(--logo-src) center / contain no-repeat;
}

.drawer__work-mark--link {
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.72;
  transition: color var(--transition), opacity var(--transition);
}

:root[data-theme="light"] .drawer__work-mark {
  --work-mark-hover-color: var(--work-mark-hover-light, var(--color-text));
}

:root[data-theme="dark"] .drawer__work-mark {
  --work-mark-hover-color: var(--work-mark-hover-dark, var(--color-text));
}

.drawer__work-mark--link:hover,
.drawer__work-mark--link:focus-visible {
  color: var(--work-mark-hover-color, var(--color-text));
  opacity: 1;
}

.drawer__work-mark--link:focus-visible {
  outline: 2px solid var(--work-mark-hover-color, var(--color-accent));
  outline-offset: 6px;
}

.drawer__work-mark[data-logo="msum"] {
  --logo-src: var(--svg-msum);
  --work-mark-ratio: 523 / 138;
}
.drawer__work-mark[data-logo="crh"] {
  --logo-src: var(--svg-crh);
  --work-mark-ratio: 1;
}
.drawer__work-mark[data-logo="crl"] {
  --logo-src: var(--svg-crl);
  --work-mark-ratio: 516 / 190;
}
.drawer__work-mark[data-logo="obeKps"] {
  --logo-src: var(--svg-obeKps);
  --work-mark-ratio: 345 / 100;
}
.drawer__work-mark[data-logo="obeCrh"] {
  --logo-src: var(--svg-obeCrh);
  --work-mark-ratio: 169 / 59;
}
.drawer__work-mark[data-logo="koin"] {
  --logo-src: var(--svg-koin);
  --work-mark-ratio: 1331 / 439;
}
.drawer__work-mark[data-logo="sweetwater"] {
  --logo-src: var(--svg-sweetwater);
  --work-mark-ratio: 624 / 131;
}
.drawer__work-mark[data-logo="rkr"] {
  --logo-src: var(--svg-rkr);
  --work-mark-ratio: 1;
}

/* Wide, short banner under the drawer title. Full content-width, capped height
   so it never dominates; object-fit crops an <img>, height applies to a color
   placeholder too. */
.drawer__banner {
  display: block;
  width: 100%;
  height: clamp(120px, 22vh, 200px);
  object-fit: cover;
  border-radius: var(--radius);
  transform: scale(1);
  position: initial;
  opacity: 1;
}

.drawer__meta {
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

@media (max-width: 560px) {
  .drawer__heading {
    align-items: flex-start;
    gap: var(--space-2);
  }

  .drawer__work-mark {
    --work-mark-height: clamp(2rem, 9vw, 3rem);
    max-width: 32%;
  }
}

.drawer__content>*+* {
  margin-top: var(--space-2);
}

/* Hidden work/era profile pages reuse the detail drawer. Related projects can
   cross Systems sections, so this index is independent of a section shelf. */
.work-profile__projects {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 4px solid var(--color-accent);
}

.work-profile__project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.work-profile__project {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.work-profile__project:hover,
.work-profile__project:focus-visible {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, var(--theme-tint, transparent), var(--color-surface));
}

.work-profile__project:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.work-profile__project-title {
  font-weight: 700;
}

.work-profile__project-meta {
  color: var(--color-muted);
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .work-profile__project-list {
    grid-template-columns: 1fr;
  }
}

/* Project detail footer: an in-flow accent rule gives long case studies a
   clear visual finish, while the ordered neighbors provide finite navigation
   within this section. It deliberately stays non-sticky so it never competes
   with the project content while reading. */
.drawer__project-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  padding-bottom: var(--space-4);
  border-top: 4px solid var(--color-accent);
}

.drawer__project-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: var(--space-1) 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.drawer__project-nav--next {
  grid-column: 2;
  align-items: flex-end;
  text-align: right;
}

.drawer__project-nav-direction {
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.drawer__project-nav-title {
  max-width: 100%;
  color: var(--color-muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.drawer__project-nav:hover .drawer__project-nav-title,
.drawer__project-nav:focus-visible .drawer__project-nav-title {
  color: var(--color-text);
}

.drawer__project-nav:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Prevent the page behind the drawer from scrolling. */
.drawer-open {
  overflow: hidden;
}

/* --- shelf drawer ("Additional Examples") --- */
/* Sits one z-tier above the detail drawer so, on the opposite edge, its panel
   stays lit alongside an open project. Click-through root is inherited from
   .drawer; the shared scrim provides the darkened background. */
.drawer--shelf {
  z-index: 190;
}

.drawer--shelf .drawer__panel {
  width: min(560px, 92vw);
}

/* When both panels fit side by side, let the project drawer consume the
   wide-screen dead space between them. The shelf remains exactly 560px wide.
   Below this threshold the existing fixed/overlapping behavior is safer than
   squeezing either UI. */
@media (min-width: 1510px) {
  .drawer-pair-open .drawer:not(.drawer--shelf) .drawer__panel {
    width: calc(100vw - 560px);
  }
}

.drawer__title {
  margin-top: 0;
}

/* Card grid inside the shelf: the panel already supplies padding. */
.shelf__cards {
  padding: 0;
  margin-top: var(--space-2);
}

/* Group headers inside the shelf ("Signature" / "Additional Projects") — small
   accent eyebrow, spaced above its grid. First one hugs the title. */
.shelf__group-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-top: var(--space-4);
  margin-bottom: 0;
}

.shelf__body > .shelf__group-label:first-child {
  margin-top: var(--space-3);
}

/* The shelf card matching the currently-open detail drawer: accent border +
   tint so you can see where you are in the list — plus the same hover look
   (media un-dims + a static shadow cue) so the active card reads as "lit",
   as if you were hovering it. Matches `.is-activatable:hover` (see above);
   no transform, deliberately, to avoid the edge-flicker noted there. */
.shelf__cards .card.is-active {
  border: 1px solid var(--color-accent);
  background: linear-gradient(180deg, var(--theme-tint, transparent), transparent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.shelf__cards .card.is-active .card__media {
  transform: scale(1);
  opacity: 1;
}

/* On narrow screens both drawers are ~full-width and overlap, so the detail
   drawer (the active modal) must sit on top — the shelf stays open behind it. */
@media (max-width: 900px) {
  .drawer:not(.drawer--shelf) {
    z-index: 220;
  }
}

/* ── Traits band ("How I Think") ──────────────────────────────────────────
   A slim strip: lead-in tagline on the left, then a row of icon+label chips.
   Built by renderers.traits; icons are inline currentColor SVG. */
.traits {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 3rem;
}

.traits__tagline {
  margin: 0;
  flex: 0 1 auto;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--color-muted);
  font-weight: bold;
}

.traits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-wrap: end;
  align-items: center;
  gap: 1.1rem 2.25rem;
}

@media (max-width: 1600px) {
  .traits__tagline{
    margin-left: auto;
    margin-right: auto;
    text-align:center;
  }

  .traits__list{
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.trait {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
}

.trait__icon {
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
  color: var(--color-accent);
}

.trait__label {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
      color: #c7ccd6;
}

@media (max-width: 900px) {
  .traits {
    gap: 1rem 1.5rem;
  }
  .traits__list {
    gap: 0.85rem 1.5rem;
  }
}

/* ── Contributions: logo wall + "Other Projects" list ─────────────────────
   Built by renderers.contributions. Left = places (logo wall + "and more"),
   right = other-projects list, split by a divider. */
.contrib__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Only one sub-block left visible (each of places / collaborators /
   otherProjects has its own `visible` flag): go full width rather than leave a
   half-empty track, and drop the divider that only makes sense between two
   columns. */
.contrib__grid[data-cols="1"] {
  grid-template-columns: 1fr;
}
.contrib__grid[data-cols="1"] .contrib__other {
  border-left: none;
  padding-left: 0;
}

.contrib__heading {
  margin: 0 0 1.75rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* logo wall */
.logo-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
  justify-content: center;
}

.logo-wall__item {
  display: inline-flex;
  align-items: center;
}

.logo-wall__link {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
}

.logo-wall__img {
  height: 2.4rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.logo-wall__link:hover .logo-wall__img {
  filter: none;
  opacity: 1;
}

/* Monochrome SVG logos (stored as --svg-* custom props in base.css).
   Painted as a currentColor mask so they follow the theme automatically
   (dark on light, light on dark). Dim black by default, solid on hover.
   Each --logo-src + aspect-ratio is mapped per logo via [data-logo] below. */
.logo-wall__img--svg {
  display: block;
  height: 2.4rem;
  width: auto;
  aspect-ratio: 3 / 1;
  background-color: currentColor;
  -webkit-mask: var(--logo-src) center / contain no-repeat;
  mask: var(--logo-src) center / contain no-repeat;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.logo-wall__item:hover .logo-wall__img--svg,
.logo-wall__link:hover .logo-wall__img--svg {
  opacity: 1;
}

.logo-wall__img--svg[data-logo="sweetwater"] { 
  --logo-src: var(--svg-sweetwater); 
  aspect-ratio: 624 / 131;
  height:3.5rem; }
.logo-wall__img--svg[data-logo="sweetwater"]:hover,
.logo-wall__link:is(:hover, :focus-visible, [aria-current="true"]) .logo-wall__img--svg[data-logo="sweetwater"] { background:linear-gradient(0deg,  rgba(var(--sweetwater-red-dark), 1) 0%, rgba(var(--sweetwater-blue-darkest), 1) 50%, rgba(var(--sweetwater-blue-lighter), 1) 100%); }
.logo-wall__img--svg[data-logo="obeKps"]     { 
  --logo-src: var(--svg-obeKps);     
  aspect-ratio: 345 / 100; 
  height:4.5rem;}
.logo-wall__img--svg[data-logo="obeKps"]:hover,
.logo-wall__link:is(:hover, :focus-visible, [aria-current="true"]) .logo-wall__img--svg[data-logo="obeKps"]     { background:rgba(var(--kps-primary))}
.logo-wall__img--svg[data-logo="koin"]       { 
  --logo-src: var(--svg-koin);
  aspect-ratio: 1331 / 439; 
  height:3.5rem;
}
.logo-wall__img--svg[data-logo="koin"]:hover,
.logo-wall__link:is(:hover, :focus-visible, [aria-current="true"]) .logo-wall__img--svg[data-logo="koin"]       { background:rgba(var(--koin-primary)) }
.logo-wall__img--svg[data-logo="crh"]        { 
  --logo-src: var(--svg-crh);        
  aspect-ratio: 1 / 1; 
  height:6.5rem;
}
.logo-wall__img--svg[data-logo="crh"]:hover,
.logo-wall__link:is(:hover, :focus-visible, [aria-current="true"]) .logo-wall__img--svg[data-logo="crh"]        { background:rgba(var(--crh-primary)) }
.logo-wall__img--svg[data-logo="crl"]        { 
  --logo-src: var(--svg-crl);        
  aspect-ratio: 516 / 190; 
  height:4rem;
}
.logo-wall__img--svg[data-logo="crl"]:hover,
.logo-wall__link:is(:hover, :focus-visible, [aria-current="true"]) .logo-wall__img--svg[data-logo="crl"]        { background:rgba(var(--crl-primary)) }
.logo-wall__img--svg[data-logo="msum"]       { 
  --logo-src: var(--svg-msum);       
  aspect-ratio: 523 / 138; 
  height:4.5rem;
}
.logo-wall__img--svg[data-logo="msum"]:hover,
.logo-wall__link:is(:hover, :focus-visible, [aria-current="true"]) .logo-wall__img--svg[data-logo="msum"]       { background:rgba(var(--msum-red-primary)) }

.logo-wall__img--svg[data-logo="rkr"] {
  --logo-src: var(--svg-rkr);
  aspect-ratio: 1;
  height: 4.5rem;
}

.logo-wall__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--color-text);
}

.logo-wall__name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-wall__sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-muted);
}

.logo-wall__more {
  margin: 1.5rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  justify-content: flex-end;
}

.logo-wall__more-dots {
  letter-spacing: 0.1em;
}

/* "Collaborated With" tier — a curated text list, deliberately quieter than
   the logo wall so the hierarchy (employers vs. brands worked alongside)
   reads at a glance. */
.collaborators {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.collaborators__heading {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.collaborators__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.4rem;
}

.collaborator {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* thin separator between names */
.collaborator:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.75rem;
  width: 1px;
  height: 0.9em;
  background: var(--color-border);
}

.collaborator__name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.collaborator__link {
  text-decoration: none;
  color: inherit;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.collaborator__link:hover {
  opacity: 1;
}

.collaborators__note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* other projects list */
.contrib__other {
  border-left: 1px solid var(--color-border);
  padding-left: 3rem;
  height:100%;
}

.other-projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.other-project + .other-project {
  border-top: 1px solid var(--color-border);
}

.other-project__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
}

.other-project__text {
  flex: 1 1 auto;
  min-width: 0;
}

.other-project__title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.other-project__summary {
  margin: 0.15rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.other-project__media {
  flex: 0 0 auto;
  width: 4.75rem;
  height: 2.9rem;
  border-radius: 6px;
  object-fit: cover;
}

a.other-project__row:hover .other-project__title {
  color: var(--color-accent);
}

.other-projects__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.other-projects__more:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .contrib__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contrib__other {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
  }
}

/* Inline SVG icon default sizing (contact details, action buttons, etc.). */
.icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

/* ── Contact ──────────────────────────────────────────────────────────────
   Built by renderers.contact: edge portrait | headline + actions | details. */
.contact__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3rem;
  padding: var(--space-5) var(--space-6);
}

.contact__portrait-wrap {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  min-height: 16rem;
}
.contact__portrait {
  width: 15rem;
  max-width: 30vw;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.contact__main {
  /* max-width: 34ch; */
}
.contact__headline {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.contact__headline-em {
  font-weight: 750;
}

.contact__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: var(--space-3);
}
.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  background: #111318;
  color: #fff;
  font-weight: 600;
  transition: transform var(--transition), background var(--transition);
}
.contact__cta:hover {
  text-decoration: none;
  background: #000;
}
.contact__link-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact__action-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.contact__details {
  list-style: none;
  margin: 0;
  padding: 0 0 0 3rem;
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.contact__detail-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--color-accent);
}
.contact__detail-link { color: var(--color-muted); }
.contact__detail-link:hover { color: var(--color-text); text-decoration: none; }

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact__portrait-wrap { min-height: 0; }
  .contact__portrait { width: 100%; max-width: none; height: 14rem; }
  .contact__details {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-3);
  }
}
/* ── Gallery + lightbox ───────────────────────────────────────────────────────
   A `gallery` body block renders the thumbnail grid; clicking a thumb opens the
   full-screen viewer (js/lightbox.js). Reduced motion needs nothing extra here —
   base.css's [data-motion-resolved="reduced"] * kill-switch drops the fades, and
   lightbox.js reads transitionDuration to decide whether to wait for one. */
.gallery {
  list-style: none;
  margin-bottom: var(--space-4);
  padding: 0;
  display: grid;
  /* auto-FIT + a capped max: a handful of thumbs read as a deliberate strip
     instead of shrinking to 1/Nth of the row, and a single thumb can't balloon
     to full width the way a bare 1fr max would. */
  grid-template-columns: repeat(auto-fit, minmax(150px, 200px));
  justify-content: center;
  gap: var(--space-2);
}

/* The whole thumb IS the button — one focusable control, no nested
   interactivity. Border/shadow cue only (no hover transform), matching the
   activatable-card rule. */
.gallery__thumb {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.gallery__thumb:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.gallery__thumb:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.gallery__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* One z-tier above the shelf (220) so the viewer can open from inside an open
   project. Always light-on-dark regardless of theme — it's a blackout view. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
}
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  transition: opacity var(--transition);
}
.lightbox.is-open .lightbox__backdrop { opacity: 1; }

.lightbox__panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: clamp(var(--space-3), 5vh, var(--space-5));
  opacity: 0;
  transform: scale(0.985);
  transition: opacity var(--transition), transform var(--transition);
}
.lightbox.is-open .lightbox__panel {
  opacity: 1;
  transform: none;
}
.lightbox__panel:focus { outline: none; }

.lightbox__figure {
  margin: 0;
  min-width: 0;
  max-width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lightbox__media {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Caption box under the image: text on the left, N / total on the right. */
.lightbox__caption {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  max-width: 70ch;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #e7e9ee;
  font-size: 0.92rem;
  line-height: 1.45;
}
.lightbox__caption[hidden] { display: none; }
.lightbox__caption-text { flex: 1 1 auto; }
.lightbox__counter {
  flex: 0 0 auto;
  color: #9aa0ac;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.lightbox__close,
.lightbox__nav {
  background: transparent;
  border: 0;
  color: #e7e9ee;
  cursor: pointer;
}
.lightbox__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  font-size: 2.2rem;
  line-height: 1;
}
.lightbox__close:hover { color: #fff; }

.lightbox__nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav .icon { width: 1.4rem; height: 1.4rem; }
/* Prev reuses the shared `arrow` glyph, mirrored. */
.lightbox__nav--prev .icon { transform: scaleX(-1); }

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Page scroll lock, independent of .drawer-open — a gallery can live in a plain
   section with no drawer open, and closing the viewer must not unlock a page
   that a drawer is still holding. */
.lightbox-open { overflow: hidden; }

@media (max-width: 700px) {
  /* Give the image the full width; the arrows wrap to a row beneath it. */
  .lightbox__panel { flex-wrap: wrap; align-content: center; }
  .lightbox__figure { order: 1; flex: 1 0 100%; }
  .lightbox__nav--prev { order: 2; }
  .lightbox__nav--next { order: 3; }
  .lightbox__media { max-height: 62vh; }
}

/* ── Video block ──────────────────────────────────────────────────────────────
   A `video` body block: a real player the reader drives (native controls give
   play/scrub/volume/fullscreen for free). Distinct from media-mode video, which
   is ambient autoplay with no controls — see videoBlock() in render.js. */
.video-block {
  margin: var(--space-1) 0;
}
.video-block__player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  /* object-fit matters once a poster or source isn't 16:9 — letterbox on black
     rather than stretch. */
  object-fit: contain;
  background: #000;
  border-radius: var(--radius);
  
}
.video-block__caption {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.caption_list{
    margin: var(--space-2) 0;
    font-size: 0.9rem;
    line-height: 1.5;
    padding-bottom: var(--space-2);
    color: var(--color-muted);
    border-bottom: 1px solid var(--color-accent);
}

.caption_text{
    margin: var(--space-1) 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-muted);
    text-indent:20px;
}

/* ── Video pause overlay ("slug") ─────────────────────────────────────────────
   Opt-in per video block via `pauseOverlay` (see pauseOverlayNode in render.js).
   Shown while the player is paused — including before first play, over the
   poster — and faded out while it plays.

   It's a <button> — the play control at rest, where videoBlock() has the native
   controls switched off. videoBlock() sets `disabled` once the reader engages;
   `:disabled` below is what keeps it off the control bar from then on.

   Colors are custom props so JSON can override them per video without inline
   styles fighting the cascade. */
.video-block__stage {
  position: relative;
  display: block;
  line-height: 0; /* no descender gap under the player */
  cursor:pointer;
}
.video-pause {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* undo the UA button chrome — this is a full-bleed surface, not a chip */
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  background: var(--pause-scrim, rgba(0, 0, 0, 0.3));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity var(--transition);
}
/* Engaged. Matters on a mid-video pause, where the slug is visible again but the
   control bar underneath it must stay clickable. */
.video-pause:disabled {
  pointer-events: none;
  cursor: default;
}
/* Fade branding during playback; paused titles stay clear of bottom controls. */
.video-block__stage[data-paused="false"] .video-pause {
  opacity: 0;
}
/* White, not the accent — this sits on the image. Inset to clear the radius. */
.video-pause:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* Centered play glyph — the --svg-play-button token as a currentColor mask. */
.video-pause__play {
  width: clamp(3rem, 12%, 5rem);
  aspect-ratio: 85 / 68;
  /* background-color: var(--pause-text, #fff); */
  -webkit-mask: var(--svg-play-button) center / contain no-repeat;
  mask: var(--svg-play-button) center / contain no-repeat;
  opacity: 0.9;
  background-color: rgb(from var(--color-accent) r g b / 0.9);
}

/* Resting titles sit at the bottom; mid-video pauses use the top. */
.video-pause__lower-third {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgb(from var(--color-accent) r g b / 0.8);
  height:25%;
  border-bottom-right-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  
}
/* Position updates on pause, so starting playback cannot flash a top title. */
.video-block__stage[data-title-position="top"] .video-pause__lower-third {
  top: 0;
  bottom: auto;
  border-radius: var(--radius) var(--radius) 0 0;
}

.video-pause__lower-third-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 clamp(0.8rem, 3%, 1.6rem);
  height:100%;
}
.video-pause__logo {
  flex: 0 0 auto;
  width: 2.4rem;
  aspect-ratio: 1 / 1;
  background-color: var(--pause-logo, var(--pause-text, #fff));
  -webkit-mask: var(--logo-src) center / contain no-repeat;
  mask: var(--logo-src) center / contain no-repeat;
}
/* Token map, same pattern as .site-footer__monogram--svg[data-logo]. */
.video-pause__logo[data-logo="navimage"] { --logo-src: var(--svg-rkr); }
.video-pause__logo[data-logo="rkr"] { --logo-src: var(--svg-rkr); }
.video-pause__logo[data-logo="rkrname-icon"] { --logo-src: var(--svg-rkr-squarename-icon); }
.video-pause__logo[data-logo="pillars"] { --logo-src: var(--svg-pillars); }
.video-pause__logo[data-logo="nodes"] { --logo-src: var(--svg-nodes); }

.video-pause__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  color: var(--pause-text, #fff);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  min-width: 0;
  text-align: left; /* the overlay is a <button>, which would centre it */
}
.video-pause__title {
  font-weight: 700;
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  letter-spacing: 0.01em;
}
.video-pause__tagline {
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  opacity: 0.85;
}


@media (max-width: 600px) {
  .video-pause__logo { width: 1.8rem; }
}

/* ── Container block ──────────────────────────────────────────────────────────
   A `container` body block: a plain box around a nested `blocks[]`, so a group
   of blocks is sized/spaced once instead of styling each child. The base only
   claims box-sizing — width, flow and decoration come from the block's own
   `class` (either a modifier below or a content class of your own). */
.block-container {
  box-sizing: border-box;
}
/* Width modifiers. Percentages resolve against the body column, so a container
   inside the drawer narrows with the drawer. */
.block-container--half { 
  width: 48%;
  margin: 1%;
  Float:left;
}
/* `--half` floats, so the next non-half block must clear it or it rides up
   alongside the pair instead of starting below (verified: the "Reception" heading
   overlapped the two video boxes by ~545px before this rule). */
.block-container--half + :not(.block-container--half) { clear: both; }
.block-container--third { width: 33.3333%; }
.block-container--two-thirds { width: 66.6666%; }
/* A narrowed container sits at the start of the line by default; these place it
   otherwise, and --float lets body text wrap alongside it. */
.block-container--center { margin-inline: auto; }
.block-container--end { margin-inline-start: auto; }
.block-container--float {
  float: inline-end;
  margin-inline-start: var(--space-4);
  margin-block-end: var(--space-3);
}
/* Two containers in a row read as columns without a wrapper type. */
.block-container--inline {
  display: inline-block;
  vertical-align: top;
}
@media (max-width: 700px) {
  /* Narrow containers stop earning their width on a phone. */
  .block-container--half,
  .block-container--third,
  .block-container--two-thirds,
  .block-container--inline {
    width: 100%;
  }
  /* A full-width float still floats — drop it so the pair truly stacks. */
  .block-container--half {
    float: none;
    margin-inline: 0;
  }
  .block-container--float {
    float: none;
    margin-inline-start: 0;
  }
}

/* ── SVG block ────────────────────────────────────────────────────────────────
   An `svg` body block: a --svg-* data-URI token from base.css painted into a
   sized box. An empty <span> has no intrinsic size, so the box has to claim its
   own — height here, width from the token's own aspect-ratio in the map below.
   Default paint is background-image, which keeps multi-color artwork (the Emmy
   is gold + two grays); add --mask for the flat currentColor silhouette the
   logo wall and footer monogram use. */
.svg-block {
  display: inline-block;
  height: 4rem;
  width: auto;
  background: var(--logo-src) center / contain no-repeat;
}
.svg-block--mask {
  background: currentColor;
  -webkit-mask: var(--logo-src) center / contain no-repeat;
  mask: var(--logo-src) center / contain no-repeat;
}
/* Token map — one line per logo an svg block can name via `logoVar`. */
.svg-block[data-logo="emmy"] {
  --logo-src: var(--svg-emmy);
  aspect-ratio: 132 / 100;
  height: 5rem;
}
.svg-block[data-logo="rkr"] { --logo-src: var(--svg-rkr); aspect-ratio: 1 / 1; }

/* Business browsing reuses the standard shelf and detail panel dimensions. */
.business-shelf {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: var(--space-3);
  padding-block: var(--space-3);
}

.business-shelf .logo-wall__item {
  justify-content: center;
  width: 100%;
  min-height: 7rem;
}

.business-shelf .logo-wall__link {
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 7rem;
  padding: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.business-shelf .logo-wall__link[aria-current="true"] {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.business-shelf .logo-wall__link:is(:hover, :focus-visible, [aria-current="true"]) .logo-wall__img--svg {
  opacity: 1;
}

.business-shelf .logo-wall__img--svg {
  max-width: 100%;
}

/* Related organizations share OBE's row without becoming profile controls. */
.logo-wall__item--group > .logo-wall__link {
  align-items: center;
  gap: 1rem;
}

.logo-wall__associated {
  border-inline-start: 1px solid var(--color-border);
  padding-inline-start: 1rem;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.logo-wall__associated .logo-wall__img--svg[data-logo="crh"] {
  height: 2.75rem;
}

.logo-wall__associated .logo-wall__img--svg[data-logo="crl"] {
  height: 1.5rem;
}

/* Cover-led guide downloads, adapted from the original portfolio. */
.guide-downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin-block: var(--space-3, 24px);
  align-items: start;
}
.guide-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
  text-decoration: none;
}
.guide-download__cover {
  display: block;
  width: 100%;
  height: auto;
  opacity: .7;
  transition: opacity .18s ease, box-shadow .18s ease;
}
.guide-download__title {
  color: #e50012;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.3;
  margin-top: .4rem;
}
.guide-download__format {
  color: var(--color-text);
  font-size: .9rem;
  opacity: .75;
}
.guide-download[href]:hover .guide-download__cover,
.guide-download[href]:focus-visible .guide-download__cover {
  opacity: 1;
  box-shadow: 0 0 8px 2px color-mix(in srgb, var(--color-text) 50%, transparent);
}
.guide-download[href]:hover .guide-download__format,
.guide-download[href]:focus-visible .guide-download__format { text-decoration: underline; }
.guide-download:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 6px; }
@media (max-width: 540px) {
  .guide-downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .guide-download__cover { transition: none; }
}

/* A distinct closing note for the fan-created restoration guides. */
.restoration-disclaimer {
  margin-block: var(--space-4, 32px);
  padding: clamp(20px, 4vw, 36px);
  border-radius: 24px;
  background: #244f98;
  color: #edf3ff;
  text-align: center;
}
.restoration-disclaimer > .project_heading {
  margin: 0 0 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgb(237 243 255 / 35%);
  color: inherit;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}
.restoration-disclaimer > .project_paragraph {
  margin: 0;
  color: inherit;
  line-height: 1.8;
  text-align: center;
}

/* Campaign groups keep the full archive browsable within a project. */
.project-disclosure {
  margin-block: .75rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 20%, transparent);
  border-radius: 10px;
  padding: .85rem 1rem;
}
.project-disclosure > summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
}
.project-disclosure > summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}
.project-disclosure[open] > summary { margin-bottom: 1rem; }

/* Personal identity: white Rs and blue K, independent of company marks. */
.logo-wall__link:is(:hover, :focus-visible, [aria-current="true"]) .logo-wall__img--svg[data-logo="rkr"],
.drawer__work-mark--link[data-logo="rkr"]:is(:hover, :focus-visible) {
  -webkit-mask: none;
  mask: none;
  background: var(--svg-rkr-color-dark-orange) center / contain no-repeat;
}

/* The section introduction is also an entrance to its project shelf. */
.section__rail--activatable {
  position: relative;
  border-radius: var(--radius);
}
.section__rail-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid transparent;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.section__rail--activatable .section__head h2 {
  transition: color var(--transition);
}
.section__rail--activatable:has(.section__rail-open:is(:hover, :focus-visible)) .section__head h2 {
  color: var(--color-accent);
}

/* Let contribution marks reflow inside narrow screens without widening the page. */
.contrib__places,
.contrib__left {
  min-width: 0;
}
.logo-wall__item,
.logo-wall__link {
  max-width: 100%;
  min-width: 0;
}
.logo-wall__img--svg {
  max-width: 100%;
  min-width: 0;
  flex-shrink: 1;
}
@media (max-width: 600px) {
  .contrib { padding-inline: var(--space-3); }
}

:root[data-theme="light"] .logo-wall__link:is(:hover, :focus-visible, [aria-current="true"]) .logo-wall__img--svg[data-logo="rkr"],
:root[data-theme="light"] .drawer__work-mark--link[data-logo="rkr"]:is(:hover, :focus-visible) {
  background-image: var(--svg-rkr-color-light);
}

/* Profile header marks display their active identity without becoming links. */
.drawer__work-mark--active {
  color: var(--work-mark-hover-color, var(--color-text));
  opacity: 1;
}
.drawer__work-mark--active[data-logo="sweetwater"] {
  background: linear-gradient(0deg, rgba(var(--sweetwater-red-dark), 1) 0%, rgba(var(--sweetwater-blue-darkest), 1) 50%, rgba(var(--sweetwater-blue-lighter), 1) 100%);
}
.drawer__work-mark--active[data-logo="rkr"] {
  -webkit-mask: none;
  mask: none;
  background: var(--svg-rkr-color-dark-orange) center / contain no-repeat;
}
:root[data-theme="light"] .drawer__work-mark--active[data-logo="rkr"] {
  background-image: var(--svg-rkr-color-light);
}

/* Compact project identity, overlaid only after the original title scrolls away. */
.drawer__scroll-header-anchor {
  position: sticky;
  top: calc(-1 * var(--space-4));
  height: 0;
  margin-inline: calc(-1 * var(--space-4));
  z-index: 5;
}
.drawer__scroll-header {
  position: absolute;
  inset: 0 0 auto;
  min-height: 3.5rem;
  padding: .5rem 1rem .5rem var(--space-4);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgb(0 0 0 / .08);
}
.drawer__scroll-header[hidden] { display: none; }
.drawer__scroll-header-title {
  min-width: 0;
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drawer__scroll-header-close {
  flex: 0 0 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.drawer__scroll-header-close:hover { background: var(--color-surface); }
.has-scroll-header > .drawer__panel > .drawer__close { visibility: hidden; }

/* Section artwork is another native entrance to the section's project shelf. */
.section__banner-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.section__banner-open:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -5px;
}
