@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600;700&family=Space+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700;800&display=swap");

:root {
  --paper: #ffffff;
  --ink: #070707;
  --muted: #6a6a64;
  --line: #070707;
  --accent: #1818f2;
  --soft: #e8e4d8;
  --font-sans:
    "Inter", Arial,
    Helvetica,
    sans-serif;
  --font-mono:
    "JetBrains Mono",
    "Courier New",
    monospace;
  --font-space-mono:
    "Space Mono",
    monospace;
  --font-montserrat:
    "Montserrat",
    "Trebuchet MS",
    sans-serif;
  --font-elms-sans:
    "Elms Sans",
    "Trebuchet MS",
    sans-serif;
  --font-space-grotesk:
    "Space Grotesk",
    sans-serif;
  --ease-out: cubic-bezier(
    0.22,
    1,
    0.36,
    1
  );
  --ease-in: cubic-bezier(
    0.64,
    0,
    0.78,
    0
  );
  --page-transition: 0.42s
    var(--ease-out);
}

* {
  box-sizing: border-box;
}

html {
  interpolate-size: allow-keywords;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(
    --paper
  );
  color: var(--ink);
  font-family: var(
    --font-space-mono
  );
  font-size: clamp(
    16px,
    1.35vw,
    18px
  );
  letter-spacing: 0;
  line-height: 1.35;
  overflow-x: hidden;
}

.date-number,
time,
dt,
.c-count,
.type-carousel-count,
[data-text-reader-meta],
.work-description-count,
.work-description-drawer-summary
  span,
.cv-section-meta {
  font-family: var(
    --font-space-grotesk
  ) !important;
  font-variant-numeric: lining-nums;
}

.js body {
  opacity: 0;
}
.js body.is-ready {
  opacity: 1;
  transition: opacity
    0.18s ease;
}

/* ─── Page loader ───────────────────────────────────────────────────── */

.page-loader {
  background: linear-gradient(
    90deg,
    var(--paper) 0,
    rgba(
        248,
        248,
        244,
        0.88
      )
      100%
  );
  height: 3px;
  left: 0;
  opacity: 1;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateY(
    0
  );
  transition:
    opacity 0.24s
      ease,
    transform 0.24s
      ease;
  z-index: 1000;
}

.page-loader-bar {
  animation: page-loader-run
    1s
    var(--ease-out)
    infinite;
  background: var(
    --accent
  );
  display: block;
  height: 100%;
  transform: translateX(
    -48%
  );
  width: 46%;
}

.is-ready
  .page-loader {
  opacity: 0;
  transform: translateY(
    -100%
  );
}
.is-leaving
  .page-loader {
  opacity: 1;
  transform: translateY(
    0
  );
}

@keyframes page-loader-run {
  0% {
    transform: translateX(
      -110%
    );
  }
  100% {
    transform: translateX(
      220%
    );
  }
}

/* ─── Base ──────────────────────────────────────────────────────────── */

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.22s ease,
    opacity 0.22s
      ease,
    border-color
      0.22s ease,
    background-color
      0.22s ease;
}

img,
svg,
video {
  max-width: 100%;
}

p,
h1,
h2,
h3,
blockquote,
dd,
dt,
a,
button {
  overflow-wrap: anywhere;
}

a:hover,
a:focus-visible {
  color: var(
    --accent
  );
}

button {
  border: 1px solid
    var(--line);
  border-radius: 0;
  background: var(
    --paper
  );
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 0.65rem
    0.9rem;
  text-transform: uppercase;
  transition:
    background-color
      0.24s ease,
    border-color
      0.24s ease,
    color 0.24s ease,
    opacity 0.24s
      ease,
    transform 0.24s
      var(
        --ease-out
      );
}

button:hover,
button:focus-visible {
  background: var(
    --accent
  );
  color: #fff;
  outline: none;
  transform: translateY(
    -1px
  );
}

/* ─── Header ────────────────────────────────────────────────────────── */

.site-header {
  align-items: stretch;
  background: var(
    --paper
  );
  border-bottom: 1px
    solid
    var(--line);
  display: grid;
  grid-template-columns:
    minmax(
      180px,
      0.55fr
    )
    minmax(
      280px,
      1.45fr
    );
  left: 0;
  min-height: 68px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.is-ready
  .site-header,
.is-ready
  .site-footer {
  animation: fade-slide-in
    0.48s
    var(--ease-out)
    both;
}
.is-ready
  .site-footer {
  animation-delay: 0.12s;
}

.brand {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-family: var(
    --font-space-mono
  );
  font-size: 12.48px;
  font-weight: 700;
  line-height: 0.9;
  padding: 14px 22px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  padding-inline: 12px;
}

.site-nav a {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 0.85rem;
  font-family: var(
    --font-space-grotesk
  ) !important;
  font-weight: 400;
  justify-content: center;
  padding: 0.75rem
    0.8rem;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a::before,
.site-nav a::after {
  transition:
    color 0.24s ease,
    transform 0.24s
      var(
        --ease-out
      );
}
.site-nav
  a.active::before {
  transform: translateX(
    -2px
  );
}
.site-nav
  a.active::after {
  transform: translateX(
    2px
  );
}
.site-nav
  a:last-child {
  border-right: 0;
}

.site-nav
  a.active::before {
  content: "[";
  color: var(
    --accent
  );
  left: 0;
  position: absolute;
}
.site-nav
  a.active::after {
  content: "]";
  color: var(
    --accent
  );
  position: absolute;
  right: 0;
}

/* ─── Main ──────────────────────────────────────────────────────────── */

main {
  min-height: calc(
    100vh - 146px
  );
  transform-origin: center
    top;
  transition:
    opacity
      var(
        --page-transition
      ),
    transform
      var(
        --page-transition
      ),
    filter
      var(
        --page-transition
      );
}

.is-loading main {
  opacity: 0;
  transform: translateY(
    14px
  );
}
.is-ready main {
  opacity: 1;
  transform: translateY(
    0
  );
}
.is-leaving main {
  filter: blur(4px);
  opacity: 0;
  transform: translateY(
    -12px
  );
  transition-timing-function: var(
    --ease-in
  );
}

/* ─── Page intro ────────────────────────────────────────────────────── */

.page-intro {
  border-bottom: 2px
    solid
    var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns:
    minmax(
      160px,
      0.65fr
    )
    minmax(
      280px,
      1.35fr
    );
  padding: 42px 22px
    34px;
}

.work-intro {
  min-height: 38vh;
}

.kicker {
  color: var(
    --accent
  );
  font-size: 0.8rem;
  font-family: var(
    --font-space-mono
  );
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

h2 {
  font-family: var(
    --font-space-grotesk
  );
}

h1,
h2,
h3,
p,
blockquote,
figure {
  margin: 0;
}

h1 {
  font-size: clamp(
    2.45rem,
    8vw,
    6.8rem
  );
  font-weight: 800;
  line-height: 0.86;
  text-transform: uppercase;
}

.page-intro
  p:last-child {
  align-self: end;
  font-size: clamp(
    1rem,
    1.45vw,
    1.25rem
  );
  max-width: 680px;
}

/* ─── Work overview grid ────────────────────────────────────────────── */

.work-grid {
  display: grid;
  grid-auto-rows: minmax(
    clamp(
      220px,
      28vw,
      420px
    ),
    auto
  );
  gap: clamp(
      44px,
      7vw,
      112px
    )
    clamp(
      28px,
      5vw,
      92px
    );
  grid-template-columns: repeat(
    12,
    1fr
  );
  padding: clamp(
      42px,
      7vw,
      108px
    )
    clamp(
      18px,
      5vw,
      76px
    )
    clamp(
      70px,
      10vw,
      148px
    );
  width: 100%;
}

.work-card {
  align-self: start;
  display: grid;
  grid-column: span
    4;
  grid-template-rows:
    minmax(
      220px,
      1fr
    )
    auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  transition:
    color 0.22s ease,
    transform 0.42s
      var(
        --ease-out
      );
}

.work-card.wide {
  grid-column: span
    8;
}
.work-card.tall {
  grid-row: span 2;
}

.work-card:nth-child(
  4n + 2
) {
  margin-top: clamp(
    26px,
    5vw,
    86px
  );
}
.work-card:nth-child(
  5n + 4
) {
  margin-top: clamp(
    52px,
    8vw,
    132px
  );
}
.work-card:nth-child(
  6n + 1
) {
  grid-column: span
    5;
}
.work-card:nth-child(
  7n + 3
) {
  grid-column: span
    7;
}

.is-ready
  .work-card,
.is-ready
  .info-content
  section,
.is-ready
  .text-carousel-slide.active,
.is-ready
  .stage-carousel {
  animation: fade-slide-in
    0.62s
    var(--ease-out)
    both;
}
.is-ready
  .work-card:nth-child(
    2
  ),
.is-ready
  .info-content
  section:nth-child(
    2
  ) {
  animation-delay: 0.06s;
}
.is-ready
  .work-card:nth-child(
    3
  ),
.is-ready
  .info-content
  section:nth-child(
    3
  ) {
  animation-delay: 0.12s;
}
.is-ready
  .work-card:nth-child(
    4
  ),
.is-ready
  .info-content
  section:nth-child(
    4
  ) {
  animation-delay: 0.18s;
}
.is-ready
  .work-card:nth-child(
    5
  ) {
  animation-delay: 0.24s;
}
.is-ready
  .work-card:nth-child(
    6
  ) {
  animation-delay: 0.3s;
}

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

.work-card.is-disabled {
  cursor: default;
}

.work-card.is-disabled:hover {
  color: inherit;
  transform: none;
}

.work-card.is-disabled:hover
  .artwork
  img {
  filter: none;
  transform: none;
}

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

.artwork,
.news-image {
  background: var(
    --soft
  );
  aspect-ratio: 4 /
    3;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.artwork img {
  display: block;
  height: 100%;
  object-fit: contain;
  transition: filter
    0.45s ease;
  width: 100%;
}

.news-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition:
    filter 0.45s
      ease,
    transform 0.7s
      var(
        --ease-out
      );
  width: 100%;
}

.work-card:hover
  .artwork
  img,
.work-card:focus-within
  .artwork
  img {
  filter: contrast(
    1.04
  );
}

.work-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  padding: 12px 0 0;
  min-width: 0;
}

.work-meta h2 {
  font-size: clamp(
    0.92rem,
    1.15vw,
    1.18rem
  );
  font-weight: 400;
  line-height: 1.12;
  text-transform: uppercase;
}

.work-meta p {
  color: var(
    --muted
  );
  grid-column: 1 /
    -1;
}
.work-meta span {
  color: var(
    --accent
  );
  font-family: var(
    --font-space-mono
  );
  font-weight: 700;
}

/* ─── Work detail header ────────────────────────────────────────────── */

.work-detail-header {
  border-bottom: 1px
    solid
    var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px 22px
    28px;
}

.work-detail-header
  h2 {
  font-size: clamp(
    2rem,
    6vw,
    5.2rem
  ) !important;
  color: var(
    --ink
  ) !important;
  font-weight: 400 !important;
}
.date-number,
h2 .date-number {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

.work-detail-header
  span,
.work-main-link,
.work-prev-link,
.work-next-link {
  color: var(
    --accent
  );
  font-family: var(
    --font-space-mono
  );
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.work-detail-top {
  align-items: center;
  display: flex;
  gap: 18px;
  grid-column: 1 /
    -1;
  justify-content: space-between;
}

.work-detail-row {
  align-items: center;
  display: flex;
  gap: 18px;
  width: 100%;
  justify-content: space-between;
}

.work-detail-actions {
  display: none;
}

.work-prev-link,
.work-next-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 2rem;
}

.work-description-toggle {
  font-family: var(
    --font-space-mono
  );
  font-size: 24px !important;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  min-height: 24px;
  padding: 8px 13px;
}

.work-description-toggle:hover,
.work-description-toggle:focus-visible {
  background: var(
    --accent
  );
  border-color: var(
    --accent
  );
  color: #fff;
  transform: none;
}

/* ─── Subfolder tabs ────────────────────────────────────────────────── */

.sf-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px
    solid
    var(--line);
  overflow-x: auto;
  padding: 0 22px;
  scrollbar-width: none;
}
.sf-tabs::-webkit-scrollbar {
  display: none;
}

.sf-tab {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px
    solid
    transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-family: var(
    --font-space-mono
  );
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(
    --muted
  );
  transition:
    color 0.2s,
    border-color
      0.2s,
    transform 0s;
  white-space: nowrap;
  margin-bottom: -2px;
}

.sf-tab:hover {
  color: var(--ink);
  background: transparent;
  transform: none;
}
.sf-tab.active {
  color: var(
    --accent
  );
  border-bottom-color: var(
    --accent
  );
  background: transparent;
}

.sf-single-label {
  padding: 10px 22px;
  border-bottom: 1px
    solid
    var(--line);
  font-family: var(
    --font-space-mono
  );
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(
    --accent
  );
}

/* ─── Work detail carousel ──────────────────────────────────────────── */

.work-detail-stage {
  align-items: stretch;
  display: block;
  min-height: clamp(
    420px,
    62vh,
    780px
  );
}

.work-detail-media-frame {
  /* background: var(
    --ink
  ); */
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}

.carousel-wrap {
  position: relative;
  height: 100%;
  /* background: var(
    --soft
  ); */
  overflow: hidden;
  /* height floor so portrait images still feel spacious */
  min-height: 260px;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.c-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity
    0.4s
    var(--ease-out);
}

.c-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.c-slide figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-slide img,
.c-slide video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.work-description-count {
  color: var(
    --accent
  );
  font-family: var(
    --font-space-mono
  );
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.work-description-drawer-summary
  h3 {
  font-family: var(
    --font-space-grotesk
  );
  font-size: clamp(
    1.4rem,
    2.4vw,
    2.7rem
  );
  font-weight: 700;
  line-height: 1.05;
}

.work-description-meta,
.work-description-drawer-summary
  p {
  font-family: var(
    --font-space-mono
  );
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.work-description-drawer-panel
  p {
  font-family: var(
    --font-space-grotesk
  );
  font-size: clamp(
    1rem,
    1.15vw,
    1.16rem
  );
  line-height: 1.45;
  max-width: 56ch;
}

.work-description-drawer {
  background: var(
    --paper
  );
  border-top: 1px
    solid
    var(--line);
}

.work-description-drawer-summary {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: 18px 32px;
  transition:
    background-color
      0.24s ease,
    padding 0.28s
      var(
        --ease-out
      );
}

.work-description-drawer-summary
  > div {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.work-description-drawer-summary
  span {
  color: var(
    --accent
  );
  font-family: var(
    --font-space-mono
  );
  font-size: 0.76rem;
  font-weight: 700;
}

.work-description-drawer-panel {
  border-top: 1px
    solid
    var(--line);
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  padding: 0 16px;
  transition:
    grid-template-rows
      0.34s
      var(
        --ease-out
      ),
    opacity 0.2s
      ease,
    padding 0.34s
      var(
        --ease-out
      );
}

.work-description-drawer-panel[hidden] {
  display: none;
}

.work-description-drawer-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  padding: 16px;
}

.work-description-drawer-panel
  > p {
  min-height: 0;
  overflow: hidden;
}

.work-detail-media-frame {
  min-height: clamp(
    420px,
    62vh,
    780px
  );
}

.work-carousel-controls {
  background: var(
    --paper
  );
}

/* prev / next overlay buttons */
.c-btn {
  position: absolute;
  top: 50%;
  transform: translateY(
    -50%
  );
  background: transparent;
  color: var(--ink);
  border: none;
  width: 41px;
  height: 41px;
  display: grid;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 0;
  padding: 0;
  z-index: 10;
  transition:
    color 0.2s,
    transform 0.2s;
  /* override global button transform on hover */
}

.c-btn:hover {
  background: transparent;
  color: var(
    --accent
  );
  transform: translateY(
    -50%
  ); /* keep vertical centering */
}

.c-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}
.c-btn.prev {
  left: 32px;
}
.c-btn.next {
  right: 32px;
}

/* count + dots bar */
.c-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-top: 1px
    solid
    var(--line);
  background: var(
    --paper
  );
}

.c-count {
  font-family: var(
    --font-space-mono
  );
  font-size: 12px;
  color: var(
    --accent
  );
  font-weight: 700;
  min-width: 56px;
  flex-shrink: 0;
}

.c-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  overflow: visible;
}

.c-dot {
  width: 28px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  position: relative;
  transition:
    background 0.2s,
    border-color
      0.2s,
    width 0.24s ease;
  /* override global button hover */
  transform: none;
}

.c-dot::before {
  background: #cfcfcf;
  content: "";
  display: block;
  height: 5px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(
      -50%
    )
    translateX(-50%);
  transition:
    background 0.2s
      ease,
    opacity 0.2s
      ease,
    width 0.24s ease;
  width: 10px;
}

.c-dot:hover,
.c-dot:focus-visible {
  background: transparent;
  transform: none;
}

.c-dot:hover::before,
.c-dot:focus-visible::before,
.c-dot.active::before {
  background: var(
    --accent
  );
}

.c-dot.active {
  width: 36px;
}

.c-dot.active::before {
  width: 24px;
}

.c-dot-preview {
  aspect-ratio: 4 /
    3;
  background: var(
    --paper
  );
  border: 1px solid
    var(--line);
  bottom: calc(
    100% + 14px
  );
  box-shadow: 0 14px
    30px
    rgba(
      7,
      7,
      7,
      0.18
    );
  display: block;
  left: 50%;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  transform: translate(
    -50%,
    8px
  );
  transition:
    opacity 0.18s
      ease,
    transform 0.18s
      ease;
  width: 118px;
  z-index: 20;
}

.c-dot-preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.c-dot:hover
  .c-dot-preview,
.c-dot:focus-visible
  .c-dot-preview {
  opacity: 1;
  transform: translate(
    -50%,
    0
  );
}

/* thumbnail strip */
.c-thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  border-top: 1px
    solid
    var(--line);
  /* background: var(
    --soft
  ); */
  scrollbar-width: thin;
  scrollbar-color: var(
      --accent
    )
    transparent;
}
.c-thumb-strip::-webkit-scrollbar {
  height: 4px;
}
.c-thumb-strip::-webkit-scrollbar-thumb {
  background: var(
    --accent
  );
}

.c-thumb {
  width: 200px;
  aspect-ratio: 4 /
    3;
  border: 2px solid
    transparent;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color
    0.2s;
  background: transparent;
  color: var(--ink);
  display: grid;
  gap: 6px;
  padding: 0 0 6px;
  text-align: left;
  text-transform: none;
  transform: none;
}

.c-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity
    0.2s;
}

.c-thumb:hover,
.c-thumb:focus-visible {
  background: transparent;
  color: var(
    --accent
  );
  transform: none;
}

.c-thumb:hover img,
.c-thumb:focus-visible
  img {
  opacity: 0.8;
}
.c-thumb.active {
  border-color: var(
    --accent
  );
}

/* ─── Work gallery (static grid, separate from carousel) ────────────── */

.work-gallery {
  display: grid;
  gap: clamp(
      48px,
      8vw,
      132px
    )
    clamp(
      28px,
      5vw,
      92px
    );
  grid-auto-flow: dense;
  grid-template-columns: repeat(
    12,
    1fr
  );
  padding: clamp(
      30px,
      5vw,
      72px
    )
    clamp(
      18px,
      5vw,
      76px
    )
    clamp(
      72px,
      11vw,
      164px
    );
}

.work-gallery-item {
  align-items: center;
  display: flex;
  grid-column: span
    6;
  justify-content: center;
  min-height: 0;
}

.work-gallery-item:nth-child(
  5n + 1
) {
  grid-column: span
    7;
}
.work-gallery-item:nth-child(
  5n + 2
) {
  grid-column: span
    5;
  margin-top: clamp(
    42px,
    7vw,
    124px
  );
}
.work-gallery-item:nth-child(
  6n + 4
) {
  grid-column: 3 /
    span 8;
}
.work-gallery-item:nth-child(
  7n + 5
) {
  grid-column: span
    4;
  margin-top: clamp(
    24px,
    5vw,
    86px
  );
}

.work-gallery-item
  img {
  display: block;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  width: 100%;
}

/* ─── Generic carousel controls (text / stage / accordion) ──────────── */

.carousel-top {
  align-items: center;
  border-bottom: 2px
    solid
    var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns:
    minmax(
      180px,
      1fr
    )
    auto auto auto;
  padding: 12px 22px;
  font-family: var(
    --font-space-mono
  );
  font-size: 0.86rem;
  text-transform: uppercase;
}

.carousel-status {
  color: var(
    --accent
  );
  min-width: 5ch;
  text-align: right;
}

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

.carousel-dot {
  background: transparent;
  border: 1px solid
    var(--line);
  height: 12px;
  padding: 0;
  width: 12px;
}
.carousel-dot.active,
.carousel-dot:hover,
.carousel-dot:focus-visible {
  background: var(
    --accent
  );
  border-color: var(
    --accent
  );
}

.carousel-actions {
  display: flex;
  gap: 8px;
}
.carousel-actions
  button:disabled {
  color: var(
    --muted
  );
  cursor: default;
  opacity: 0.45;
}
.carousel-actions
  button:disabled:hover {
  background: var(
    --paper
  );
  color: var(
    --muted
  );
}

.carousel-track {
  display: grid;
  grid-auto-columns: minmax(
    78vw,
    1fr
  );
  grid-auto-flow: column;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x
    mandatory;
  scrollbar-gutter: stable;
}
.carousel-track:focus-visible {
  outline: 2px solid
    var(--accent);
  outline-offset: -2px;
}
.carousel-track::-webkit-scrollbar {
  height: 12px;
}
.carousel-track::-webkit-scrollbar-thumb {
  background: var(
    --accent
  );
}

.news-panel,
.quote-panel {
  border-right: 2px
    solid
    var(--line);
  min-height: calc(
    100vh - 190px
  );
  scroll-snap-align: start;
}

.news-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
}
.news-image {
  aspect-ratio: auto;
  min-height: 100%;
}
.news-copy {
  align-content: end;
  border-left: 2px
    solid
    var(--line);
  display: grid;
  gap: 18px;
  padding: 22px;
}

.news-panel time,
.quote-panel span {
  color: var(
    --accent
  );
  font-family: var(
    --font-space-mono
  );
  font-weight: 700;
  text-transform: uppercase;
}

.news-panel h2 {
  font-size: clamp(
    2.1rem,
    4.8vw,
    4.8rem
  );
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}
.news-panel p {
  font-size: clamp(
    1rem,
    1.8vw,
    1.35rem
  );
  max-width: 34rem;
}

/* ─── Quote carousel ────────────────────────────────────────────────── */

.quote-carousel {
  border-bottom: 2px
    solid
    var(--line);
}
.quote-carousel
  .carousel-track {
  grid-auto-columns: minmax(
    72vw,
    1fr
  );
}

.quote-panel {
  align-content: space-between;
  display: grid;
  gap: 28px;
  padding: 28px 22px;
}

blockquote {
  font-size: clamp(
    1.5rem,
    4.2vw,
    2.4rem
  );
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
  max-width: 11ch;
}

.quote-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  border-top: 2px
    solid
    var(--line);
  padding-block: 12px;
}
.quote-footer
  button {
  border: none !important;
  font-size: 24px !important;
}

.quote-panel a {
  font-family: var(
    --font-space-mono
  );
  font-size: 1.2rem;
  text-transform: uppercase;
}

/* ─── Info / CV ─────────────────────────────────────────────────────── */

.info-layout {
  display: grid;
  min-height: calc(
    100vh - 146px
  );
}
.info-sticky {
  border-right: 2px
    solid
    var(--line);
  padding: 42px 22px;
}
.info-sticky h1 {
  font-size: clamp(
    2.4rem,
    5.8vw,
    5.8rem
  );
  margin-top: 16px;
}

.info-content
  section {
  border-bottom: 1px
    solid
    var(--line);
  display: grid;
  gap: 16px;
  padding: 42px 22px;
  text-align: justify;
}
.info-content h2 {
  color: var(
    --accent
  );
  font-size: 18px;
  text-transform: uppercase;
}
.info-content p {
  font-size: 16px;
  max-width: 900px;
}
.info-content a {
  text-decoration: underline;
  text-decoration-color: var(
    --accent
  );
  text-decoration-thickness: 2px;
}

.cv-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.info-content
  .cv-section {
  border-bottom: 0;
  display: block;
  padding: 0;
  transition:
    background-color
      0.24s ease,
    color 0.24s ease;
}
.info-content
  .cv-section.full {
  grid-column: auto;
}

.cv-section h3 {
  font-family: var(
    --font-space-mono
  );
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.cv-section
  summary {
  align-items: center;
  border: 1px solid
    rgba(
      7,
      7,
      7,
      0.34
    );
  cursor: pointer;
  display: grid;
  gap: 10px 16px;
  grid-template-columns:
    minmax(0, 1fr)
    auto auto;
  list-style: none;
  min-height: 54px;
  padding: 14px 16px;
  transition:
    background-color
      0.24s ease,
    border-color
      0.24s ease,
    color 0.24s ease,
    transform 0.24s
      var(
        --ease-out
      );
}
.cv-section
  summary::-webkit-details-marker {
  display: none;
}
.cv-section
  summary::after {
  align-items: center;
  color: var(
    --accent
  );
  content: "+";
  display: flex;
  font-family: var(
    --font-space-mono
  );
  font-size: 1rem;
  font-weight: 400;
  height: 26px;
  justify-content: center;
  line-height: 1;
  text-align: center;
  transition:
    background-color
      0.24s ease,
    color 0.24s ease,
    transform 0.3s
      var(
        --ease-out
      );
  width: 26px;
}
.cv-section[open]
  summary::after {
  content: "-";
  transform: rotate(
    180deg
  );
}

.cv-section-meta {
  color: var(
    --muted
  );
  font-family: var(
    --font-space-mono
  );
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.cv-section
  summary:hover,
.cv-section[open]
  summary {
  border-color: var(
    --line
  );
}
/* .cv-section summary:hover::after, .cv-section summary:focus-visible::after { background: var(--accent); color: #fff; } */
.cv-section
  summary:hover
  h3,
.cv-section
  summary:focus-visible
  h3 {
  color: var(
    --accent
  );
}
.cv-section
  summary:focus-visible {
  outline: 2px solid
    var(--accent);
  outline-offset: 3px;
}
.cv-section
  summary
  h3 {
  border-bottom: 0;
  padding-bottom: 0;
}

.cv-section::details-content {
  block-size: 0;
  opacity: 0;
  overflow: clip;
  transition:
    block-size 0.3s
      var(
        --ease-out
      ),
    content-visibility
      0.3s
      allow-discrete,
    opacity 0.24s
      ease;
}
.cv-section[open]::details-content {
  block-size: auto;
  opacity: 1;
}

.cv-section dl {
  border: 1px solid
    rgba(
      7,
      7,
      7,
      0.14
    );
  border-top: 0;
  margin: 0;
  overflow: hidden;
  padding: 12px 16px
    18px;
}
.cv-section dl div {
  border-bottom: 1px
    solid
    rgba(
      7,
      7,
      7,
      0.1
    );
  display: grid;
  gap: 18px;
  grid-template-columns:
    minmax(
      86px,
      110px
    )
    minmax(0, 1fr);
  padding: 8px 0;
}
.cv-section
  dl
  div:last-child {
  border-bottom: 0;
}
.cv-section dt {
  margin: 0;
  font-family: var(
    --font-space-mono
  );
  font-size: 0.9rem;
}
.cv-section dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* ─── Footer ────────────────────────────────────────────────────────── */

.site-footer {
  align-items: center;
  border-top: 2px
    solid
    var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 74px;
  padding: 18px 22px;
  font-family: var(
    --font-space-mono
  );
  font-size: 0.86rem;
  text-transform: uppercase;
}
.site-footer a {
  color: var(
    --accent
  );
  font-weight: 700;
}

/* ─── Type carousels (text / stage / accordion) ─────────────────────── */

.carousel-test-intro {
  min-height: 34vh;
}

.carousel-demo-section {
  border-bottom: 2px
    solid
    var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns:
    minmax(
      180px,
      0.45fr
    )
    minmax(
      0,
      1.55fr
    );
  padding: 34px 22px;
}
.carousel-demo-heading {
  align-content: start;
  display: grid;
  gap: 14px;
}
.carousel-demo-heading
  h2 {
  font-size: clamp(
    1.6rem,
    3vw,
    3.2rem
  );
  line-height: 0.95;
  text-transform: uppercase;
}

.text-carousel,
.stage-carousel,
.accordion-carousel {
  min-width: 0;
  position: relative;
}

.text-carousel {
  background: var(
    --paper
  );
  display: grid;
  min-height: calc(
    100vh - 64px
  );
  overflow: hidden;
}

.text-carousel-slide {
  align-content: center;
  display: grid;
  gap: 18px;
  grid-area: 1 / 1;
  justify-items: center;
  opacity: 0;
  padding: clamp(
      80px,
      12vh,
      150px
    )
    clamp(
      58px,
      12vw,
      210px
    );
  text-align: center;
  transform: translateY(
    12px
  );
  transition:
    opacity 0.45s
      ease,
    transform 0.45s
      var(
        --ease-out
      ),
    visibility 0.45s
      step-end;
  visibility: hidden;
}
/* .text-carousel-date {
  display: flex;
} */
.text-carousel-date
  .date-number {
  margin-top: 0px !important;
}
.text-carousel-author {
  display: flex;
  gap: 12px;
  color: var(
    --muted
  ) !important;
  margin-top: 0px !important;
}
.text-carousel-author::before {
  content: "—";
}
.text-carousel
  .type-carousel-controls {
  border-top: 0;
  display: contents;
  grid-area: 1 / 1;
}
.text-carousel-slide.active {
  opacity: 1;
  transform: translateY(
    0
  );
  transition:
    opacity 0.5s
      ease,
    transform 0.5s
      var(
        --ease-out
      ),
    visibility 0s;
  visibility: visible;
}

.text-carousel-slide
  span,
.stage-carousel-slide
  span {
  color: var(
    --accent
  );
  font-family: var(
    --font-space-mono
  );
  font-weight: 700;
  text-transform: uppercase;
}

.text-carousel-slide
  blockquote {
  font-family: var(
    --font-space-grotesk
  );
  font-size: clamp(
    2rem,
    3.05vw,
    3.75rem
  );
  font-weight: 400;
  line-height: 1.1;
  max-width: min(
    860px,
    76vw
  );
  order: 1;
}
.text-carousel-slide
  span {
  color: var(--ink);
  font-family: var(
    --font-space-mono
  );
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
  margin-top: 16px;
  order: 2;
  text-transform: uppercase;
}
.text-carousel-slide
  .quote-footer {
  border-top: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
  order: 3;
  padding: 0;
}
.text-carousel-slide
  .quote-footer
  a {
  color: var(
    --muted
  );
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}
.text-carousel-slide
  [data-read-more] {
  border-color: var(
    --line
  );
  color: var(
    --muted
  );
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 12px;
}
.text-carousel-slide
  [data-read-more]:hover,
.text-carousel-slide
  [data-read-more]:focus-visible {
  background: transparent;
  color: var(
    --accent
  );
}
.text-carousel-slide::before {
  color: var(
    --accent
  );
  content: "\201C";
  font-family: var(
    --font-space-mono
  );
  font-size: clamp(
    3.4rem,
    5vw,
    5.7rem
  );
  font-weight: 700;
  line-height: 0.55;
  order: 0;
}

.text-carousel
  .type-carousel-count {
  display: none;
}
.text-carousel
  .type-carousel-dots {
  align-self: end;
  display: flex;
  gap: 12px;
  grid-area: 1 / 1;
  justify-self: center;
  margin-bottom: clamp(
    28px,
    5vh,
    58px
  );
  z-index: 2;
}
.text-carousel
  .type-carousel-dot {
  background: #cfcfcf;
  border: 0;
  height: 2px;
  width: 24px;
}
.text-carousel
  .type-carousel-dot.active,
.text-carousel
  .type-carousel-dot:hover,
.text-carousel
  .type-carousel-dot:focus-visible {
  background: var(
    --accent
  );
}

.text-carousel
  .type-carousel-btn {
  align-self: center;
  display: grid;
  font-size: 20px;
  grid-area: 1 / 1;
  height: 41px;
  justify-self: start;
  line-height: 0;
  margin-left: 32px;
  padding: 0;
  place-items: center;
  width: 41px;
  z-index: 2;
}
.text-carousel
  .type-carousel-btn.next {
  justify-self: end;
  margin-left: 0;
  margin-right: 32px;
}
.text-carousel
  .type-carousel-btn::before {
  content: none;
}
.text-carousel
  .type-carousel-btn
  svg {
  display: block;
  height: 24px;
  width: 24px;
}
.text-carousel
  .type-carousel-btn.next
  svg {
  transform: scaleX(
    -1
  );
}
.text-carousel
  .type-carousel-btn {
  border: none;
}
.text-carousel
  .type-carousel-btn:hover {
  background: transparent;
  color: var(
    --accent
  );
}

/* text reader modal */
.text-reader {
  background: var(
    --paper
  );
  border: 2px solid
    var(--line);
  color: var(--ink);
  grid-template-rows:
    auto
    minmax(0, 1fr);
  height: 80vh;
  width: 80vw;
  margin: auto;
  max-height: 80vh;
  overflow: hidden;
  padding: 28px;
  opacity: 0;
  transform: translateY(
      18px
    )
    scale(0.98);
  transition:
    opacity 0.32s
      ease,
    transform 0.32s
      var(
        --ease-out
      ),
    overlay 0.32s
      ease
      allow-discrete,
    display 0.32s
      ease
      allow-discrete;
}
.text-reader[open] {
  display: grid;
  opacity: 1;
  transform: translateY(
      0
    )
    scale(1);
}
.text-reader::backdrop {
  background: rgba(
    7,
    7,
    7,
    0.62
  );
  opacity: 0;
  transition:
    opacity 0.32s
      ease,
    overlay 0.32s
      ease
      allow-discrete,
    display 0.32s
      ease
      allow-discrete;
}
.text-reader[open]::backdrop {
  opacity: 1;
}

.text-reader-header {
  background: var(
    --paper
  );
  border-bottom: 2px
    solid
    var(--line);
  position: sticky;
  top: 0;
  z-index: 1;
}

.text-reader-close {
  float: right;
  margin-left: 18px;
  border: none;
}
.text-reader-close:hover {
  color: var(
    --accent
  );
  background: transparent !important;
}
.text-reader-meta {
  color: var(
    --accent
  );
  font-family: var(
    --font-space-mono
  );
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.text-reader h2 {
  /* font-size: clamp(
    2rem,
    6vw,
    4.5rem
  ); */
  font-size: 2rem;
  line-height: 0.9;
  margin: 0 0 28px;
  max-width: 90%;
  text-transform: uppercase;
}
.text-reader-body {
  display: grid;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
  padding-top: 20px;
  overscroll-behavior: contain;
}
.text-reader-body
  p {
  font-family: var(
    --font-space-grotesk
  );
  font-size: clamp(
    1.05rem,
    2vw,
    1.35rem
  );
  line-height: 1.45;
  max-width: 64ch;
}

/* type-carousel-controls bar (used by stage / accordion) */
.type-carousel-controls {
  align-items: center;
  border-top: 2px
    solid
    var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: auto auto 1fr auto;
  padding: 12px;
  min-width: 0;
}
.type-carousel-count {
  color: var(
    --accent
  );
  font-family: var(
    --font-space-mono
  );
  min-width: 5ch;
}
.type-carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: end;
}
.type-carousel-dot {
  border: 1px solid
    var(--line);
  height: 12px;
  padding: 0;
  width: 12px;
}
.type-carousel-dot.active,
.type-carousel-dot:hover,
.type-carousel-dot:focus-visible {
  background: var(
    --accent
  );
  border-color: var(
    --accent
  );
}
.type-carousel-btn:disabled {
  color: var(
    --muted
  );
  cursor: default;
  opacity: 0.45;
}
.type-carousel-btn:disabled:hover {
  background: var(
    --paper
  );
  color: var(
    --muted
  );
}

/* stage carousel */
.stage-carousel {
  border-block: 2px
    solid
    var(--line);
  position: relative;
  overflow: hidden;
}
.stage-carousel-viewport {
  overflow: hidden;
  padding: 18px 0
    14px;
}
.stage-carousel-track {
  display: flex;
  gap: 22px;
  transition: transform
    0.7s
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    );
  will-change: transform;
}
.stage-carousel-slide {
  background: var(
    --soft
  );
  border: 2px solid
    var(--line);
  display: grid;
  flex: 0 0
    min(
      86vw,
      1440px
    );
  opacity: 0.45;
  transform: scale(
    0.9
  );
  transition:
    opacity 0.45s
      ease,
    transform 0.7s
      cubic-bezier(
        0.22,
        1,
        0.36,
        1
      );
}
.stage-carousel-slide.near {
  opacity: 0.7;
}
.stage-carousel-slide.active {
  opacity: 1;
  transform: scale(
    1
  );
}
.stage-carousel-slide
  img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.stage-carousel-slide
  > div {
  background: var(
    --paper
  );
  border-top: 2px
    solid
    var(--line);
  display: grid;
  gap: 8px;
  padding: 16px;
}
.stage-carousel-slide
  h3 {
  font-family: var(
    --font-space-grotesk
  );
  font-size: clamp(
    1.4rem,
    3vw,
    3.4rem
  );
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

/* news */
.news-intro {
  min-height: 34vh;
}
.news-stage-carousel {
  border-bottom: 2px
    solid
    var(--line);
  border-top: 0;
  background: linear-gradient(
    180deg,
    rgba(
      255,
      255,
      255,
      0.94
    ),
    rgba(
      248,
      248,
      244,
      1
    )
  );
}
.news-stage-carousel
  .stage-carousel-viewport {
  padding: 0;
}
.news-stage-carousel
  .stage-carousel-track {
  gap: 0;
}
.news-stage-slide {
  background: transparent;
  border: 0;
  flex-basis: 100vw;
  opacity: 0.24;
  padding: 0;
  transform: scale(
    0.96
  );
}
.news-stage-slide.active {
  opacity: 1;
  transform: scale(
    1
  );
}
.news-stage-slide.near {
  opacity: 0.52;
}
.news-stage-media {
  background: var(
    --ink
  );
  border: 2px solid
    var(--line);
  height: calc(
    100vh - 134px
  );
  height: calc(
    100svh - 134px
  );
  overflow: hidden;
  position: relative;
}
.news-stage-media::after {
  background: linear-gradient(
    180deg,
    rgba(7, 7, 7, 0)
      40%,
    rgba(
        7,
        7,
        7,
        0.2
      )
      60%,
    rgba(
        7,
        7,
        7,
        0.85
      )
      100%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}
.news-stage-media
  img {
  filter: grayscale(
      1
    )
    contrast(1.04)
    brightness(0.92);
  object-fit: cover;
  transform: scale(
    1.01
  );
  transition:
    filter 0.5s ease,
    transform 1s
      var(
        --ease-out
      );
}
.news-stage-slide.active
  .news-stage-media
  img {
  transform: scale(
    1.04
  );
}
.news-stage-copy {
  background: transparent;
  border: 0;
  bottom: 0;
  color: #fff;
  left: 0;
  max-width: min(
    100%,
    46rem
  );
  padding: clamp(
    18px,
    2.2vw,
    30px
  );
  position: absolute;
  z-index: 2;
}
.news-stage-slide
  .news-stage-copy {
  opacity: 0;
  transform: translateY(
    16px
  );
  transition:
    opacity 0.42s
      ease,
    transform 0.52s
      var(
        --ease-out
      );
}
.news-stage-slide.active
  .news-stage-copy {
  opacity: 1;
  transform: translateY(
    0
  );
  transition-delay: 0.2s;
}
.news-stage-copy::before {
  background: linear-gradient(
    90deg,
    rgba(
      7,
      7,
      7,
      0.72
    ),
    rgba(
      7,
      7,
      7,
      0.08
    )
  );
  content: "";
  inset: auto 0 0 0;
  opacity: 0.92;
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: -1;
}
.news-stage-copy
  time {
  color: rgba(
    255,
    255,
    255,
    0.78
  );
  font-family: var(
    --font-space-mono
  );
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.news-stage-copy
  h3 {
  color: #fff;
  font-size: clamp(
    1.7rem,
    2.2vw,
    3.4rem
  );
  letter-spacing: 0.03em;
  max-width: 32ch;
}
.news-stage-copy p {
  font-size: clamp(
    1rem,
    1.25vw,
    1.2rem
  );
  max-width: 44rem;
  color: rgba(
    255,
    255,
    255,
    0.9
  );
  margin: 0;
}

.news-stage-carousel
  .type-carousel-controls {
  border-top: 0;
  inset: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}
.news-stage-carousel
  .type-carousel-count {
  bottom: clamp(
    24px,
    3vw,
    42px
  );
  color: #fff;
  font-size: 0.78rem;
  grid-column: auto;
  justify-self: auto;
  letter-spacing: 0.18em;
  line-height: 1;
  min-width: 0;
  position: absolute;
  right: clamp(
    24px,
    3vw,
    42px
  );
  text-shadow: 0 1px
    12px
    rgba(
      0,
      0,
      0,
      0.55
    );
  z-index: 5;
}
.news-stage-carousel
  .type-carousel-dots {
  display: none;
}
.news-stage-carousel
  .type-carousel-dot {
  background: transparent;
  border: 0;
  border-top: 3px
    solid
    rgba(
      7,
      7,
      7,
      0.18
    );
  border-radius: 0;
  height: 0;
  width: 30px;
}
.news-stage-carousel
  .type-carousel-dot.active,
.news-stage-carousel
  .type-carousel-dot:hover,
.news-stage-carousel
  .type-carousel-dot:focus-visible {
  background: transparent;
  border-color: var(
    --accent
  );
}
.news-stage-carousel
  .type-carousel-btn {
  align-items: center;
  background: rgba(
    7,
    7,
    7,
    0.2
  );
  border: 1px solid
    rgba(
      255,
      255,
      255,
      0.45
    );
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: absolute;
  pointer-events: auto;
  top: 50%;
  transform: translateY(
    -50%
  );
  width: 42px;
  z-index: 3;
}
.news-stage-carousel
  .type-carousel-btn:hover,
.news-stage-carousel
  .type-carousel-btn:focus-visible {
  background: rgba(
    221,
    28,
    26,
    0.95
  );
  color: #fff;
}
.news-stage-carousel
  .type-carousel-btn.previous {
  left: 28px;
}
.news-stage-carousel
  .type-carousel-btn.next {
  right: 28px;
}
.news-stage-carousel
  .type-carousel-btn.next
  svg {
  transform: rotate(
    180deg
  );
}
.news-stage-carousel
  .type-carousel-btn
  svg {
  width: 18px;
  height: 18px;
}

/* accordion carousel */
.accordion-carousel {
  border: 2px solid
    var(--line);
}
.accordion-carousel-item
  + .accordion-carousel-item {
  border-top: 2px
    solid
    var(--line);
}
.accordion-carousel-trigger {
  align-items: center;
  border: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: auto 1fr;
  justify-items: start;
  padding: 16px;
  text-align: left;
  width: 100%;
}
.accordion-carousel-trigger
  span {
  color: var(
    --accent
  );
}
.accordion-carousel-panel {
  display: grid;
  grid-template-columns:
    minmax(
      180px,
      0.75fr
    )
    minmax(
      220px,
      1fr
    );
  grid-template-rows: 0fr;
  transition: grid-template-rows
    0.5s
    var(--ease-out);
}
.accordion-carousel-item.active
  .accordion-carousel-panel {
  grid-template-rows: 1fr;
}
.accordion-carousel-panel
  > * {
  min-height: 0;
  overflow: hidden;
}
.accordion-carousel-panel
  img {
  display: block;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  width: 100%;
}
.accordion-carousel-panel
  p {
  align-self: end;
  border-left: 2px
    solid
    var(--line);
  font-size: clamp(
    1rem,
    1.8vw,
    1.35rem
  );
  padding: 18px;
}

/* ─── Animations ────────────────────────────────────────────────────── */

@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(
      16px
    );
  }
  to {
    opacity: 1;
    transform: translateY(
      0
    );
  }
}

/* ─── Reduced motion ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .js body,
  .is-loading main,
  .is-ready main,
  .is-leaving main,
  .work-card:hover
    .artwork
    img,
  .work-card:focus-within
    .artwork
    img,
  .news-stage-slide.active
    .news-stage-media
    img {
    filter: none;
    opacity: 1;
    transform: none;
  }
  .page-loader {
    display: none;
  }
  .text-carousel-slide,
  .stage-carousel-track,
  .stage-carousel-slide,
  .accordion-carousel-panel,
  .work-description-drawer-summary,
  .work-description-drawer-panel {
    transition: none;
  }
}

/* ─── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 1020px) {
  .page-intro,
  .work-detail-header,
  .news-panel,
  .info-layout,
  .carousel-demo-section {
    grid-template-columns: 1fr;
  }
  .page-intro {
    padding-top: 34px;
  }
  .work-detail-media-frame {
    min-height: clamp(
      360px,
      62vw,
      680px
    );
  }
  .site-header {
    grid-template-columns:
      minmax(
        160px,
        auto
      )
      minmax(0, 1fr);
  }
  .site-nav {
    flex-wrap: wrap;
    gap: 4px 10px;
    justify-content: flex-end;
  }
  .work-grid {
    gap: clamp(
        34px,
        6vw,
        72px
      )
      clamp(
        22px,
        4vw,
        48px
      );
    padding: clamp(
        34px,
        6vw,
        72px
      )
      clamp(
        18px,
        4vw,
        42px
      )
      clamp(
        52px,
        8vw,
        96px
      );
  }
  .work-card,
  .work-card.wide,
  .work-card.tall {
    grid-column: span
      6;
    grid-row: span 1;
    min-height: 380px;
  }
  .work-card:nth-child(
    4n + 2
  ),
  .work-card:nth-child(
    5n + 4
  ) {
    margin-top: clamp(
      18px,
      4vw,
      46px
    );
  }
  .news-panel,
  .quote-panel {
    min-height: auto;
  }
  .work-gallery-item {
    grid-column: span
      12;
    min-height: 0;
  }
  .work-gallery {
    gap: clamp(
        38px,
        7vw,
        78px
      )
      clamp(
        22px,
        4vw,
        48px
      );
    padding: clamp(
        28px,
        5vw,
        54px
      )
      clamp(
        18px,
        4vw,
        42px
      )
      clamp(
        56px,
        9vw,
        104px
      );
  }
  .work-gallery-item:nth-child(
    5n + 1
  ),
  .work-gallery-item:nth-child(
    5n + 2
  ),
  .work-gallery-item:nth-child(
    6n + 4
  ),
  .work-gallery-item:nth-child(
    7n + 5
  ) {
    grid-column: span
      12;
    margin-top: 0;
  }
  .stage-carousel-viewport {
    padding-left: 7vw;
  }
  .stage-carousel-slide {
    flex-basis: min(
      82vw,
      680px
    );
    grid-template-rows:
      minmax(
        240px,
        46vh
      )
      auto;
  }
}

@media (max-width: 900px) {
  .news-panel {
    grid-template-rows: 54vh auto;
  }
  .news-copy,
  .info-sticky {
    border-left: 0;
    border-right: 0;
  }
  .carousel-track,
  .quote-carousel
    .carousel-track {
    grid-auto-columns: 92vw;
  }
  .news-stage-slide {
    flex-basis: 100vw;
  }
  .news-stage-media {
    height: calc(
      100vh - 134px
    );
    height: calc(
      100svh - 134px
    );
  }
  .accordion-carousel-panel {
    grid-template-columns: 1fr;
  }
  .accordion-carousel-panel
    p {
    border-left: 0;
    border-top: 2px
      solid
      var(--line);
  }
  .cv-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .info-content
    .cv-section.full {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
    position: static;
  }
  .brand {
    border-bottom: 2px
      solid
      var(--line);
    min-height: 60px;
  }
  .site-nav {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(
      4,
      minmax(0, 1fr)
    );
    padding: 0;
  }
  .site-nav a {
    border-right: 2px
      solid
      var(--line);
    font-size: 0.78rem;
    min-height: 52px;
    padding: 0.7rem
      0.45rem;
    white-space: normal;
  }
  .site-nav
    a:last-child {
    border-right: 0;
  }
  .work-card,
  .work-card.wide,
  .work-card.tall {
    grid-column: span
      12;
    min-height: 0;
  }
  .work-grid {
    gap: 38px;
    padding: 26px
      14px 64px;
  }
  .work-gallery {
    gap: 42px;
    padding: 24px
      14px 64px;
  }
  .work-card:nth-child(
    4n + 2
  ),
  .work-card:nth-child(
    5n + 4
  ) {
    margin-top: 0;
  }
  .artwork {
    min-height: clamp(
      230px,
      68vw,
      360px
    );
  }
  .news-stage-media {
    height: calc(
      100vh - 176px
    );
    height: calc(
      100svh - 176px
    );
  }
  .carousel-wrap {
    min-height: clamp(
      320px,
      70vw,
      560px
    );
  }
}

@media (max-width: 560px) {
  .site-nav
    a.active::before {
    content: "";
  }
  .site-nav
    a.active::after {
    content: "";
  }

  .page-intro,
  .work-detail-header,
  .carousel-top,
  .quote-panel,
  .carousel-demo-section,
  .info-sticky,
  .info-content
    section,
  .site-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .brand {
    padding-left: 14px;
    padding-right: 14px;
  }
  .work-detail-top,
  .work-description-drawer-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .work-description-drawer-summary,
  .work-description-drawer-panel {
    padding-left: 14px;
    padding-right: 14px;
  }
  .carousel-top,
  .site-footer,
  .type-carousel-controls {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .site-footer {
    flex-direction: column;
    justify-content: center;
  }
  .stage-carousel-viewport {
    padding: 18px 0
      18px 14px;
  }
  .stage-carousel-slide {
    flex-basis: 88vw;
    grid-template-rows:
      minmax(
        220px,
        54vw
      )
      auto;
  }
  .news-stage-slide {
    flex-basis: 100vw;
  }
  .news-stage-media {
    height: calc(
      100vh - 176px
    );
    height: calc(
      100svh - 176px
    );
  }
  h1 {
    font-size: clamp(
      2.25rem,
      12vw,
      4.3rem
    );
  }
  blockquote {
    font-size: 24px;
  }
  .text-reader {
    padding: 18px;
  }
  .text-reader-close {
    float: none;
    margin: 0 0 22px;
  }
  .cv-section
    dl
    div {
    gap: 4px;
    grid-template-columns: 1fr;
    padding: 8px 0;
  }
  .cv-section
    summary {
    grid-template-columns:
      minmax(0, 1fr)
      auto;
    padding: 12px;
  }
  .cv-section
    summary::after {
    grid-column: 2;
    grid-row: 1;
  }
  .cv-section-meta {
    grid-column: 1 /
      -1;
    text-align: left;
  }
  .work-meta {
    grid-template-columns: 1fr;
  }
  .quote-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .c-thumb {
    width: 104px;
  }
}
.brand-dot {
  color: var(
    --accent
  );
}

.work-description-empty {
  color: var(
    --muted
  );
}

#imprint h4 {
  margin: 0 !important;
}
