:root {
  --bg: #040b1e;
  --bg-deep: #020714;
  --surface: rgba(9, 22, 48, 0.82);
  --surface-strong: rgba(11, 27, 58, 0.96);
  --surface-soft: rgba(14, 33, 68, 0.66);
  --line: rgba(158, 190, 255, 0.16);
  --line-strong: rgba(158, 205, 255, 0.3);
  --text: #f0f6ff;
  --text-soft: #a8b9d2;
  --text-faint: #758aa9;
  --blue: #6bdcf4;
  --pink: #ef8fbd;
  --green: #b5e2c7;
  --detail-accent: rgba(107, 220, 244, 0.18);
  --detail-line: rgba(107, 220, 244, 0.26);
  --display: "Bodoni Moda", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 7%, rgba(42, 78, 139, 0.24), transparent 29rem),
    radial-gradient(circle at 7% 37%, rgba(44, 107, 118, 0.13), transparent 32rem),
    linear-gradient(180deg, #050d24 0%, #03091a 42%, #020714 100%);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(152, 188, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 188, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

::selection {
  color: #031020;
  background: #9aeaf7;
}

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

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

a {
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: #031020;
  background: #d7f8ff;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient-field,
.ambient-orbit,
.ambient-glow {
  position: fixed;
  pointer-events: none;
}

.ambient-field {
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.ambient-orbit {
  position: absolute;
  border: 1px solid rgba(129, 183, 255, 0.11);
  border-radius: 50%;
}

.ambient-orbit-a {
  width: min(68vw, 66rem);
  aspect-ratio: 1;
  top: -28rem;
  right: -15rem;
}

.ambient-orbit-b {
  width: min(52vw, 48rem);
  aspect-ratio: 1;
  bottom: -28rem;
  left: -18rem;
}

.ambient-glow {
  border-radius: 50%;
  filter: blur(110px);
}

.ambient-glow-a {
  width: 20rem;
  height: 20rem;
  top: 16vh;
  right: 8vw;
  background: rgba(87, 196, 222, 0.1);
}

.ambient-glow-b {
  width: 22rem;
  height: 22rem;
  bottom: 12vh;
  left: 4vw;
  background: rgba(214, 91, 154, 0.075);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(1320px, calc(100vw - 3rem));
  min-height: 4.7rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 11, 30, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  width: 0.68rem;
  height: 0.68rem;
  border: 1px solid var(--blue);
  border-radius: 50% 45% 54% 42%;
  box-shadow: 0 0 15px rgba(107, 220, 244, 0.52);
  transform: rotate(32deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.site-nav a {
  position: relative;
  padding-block: 0.5rem;
}

.site-nav a::after,
.text-link::after,
.site-footer a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after,
.site-footer a:hover::after,
.site-footer a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.portfolio-main,
.site-footer {
  width: min(1320px, calc(100vw - 3rem));
  margin-inline: auto;
}

.hero {
  min-height: calc(100vh - 4.7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(28rem, 0.98fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  padding: clamp(4rem, 7vw, 7.8rem) 0 clamp(5rem, 8vw, 8rem);
}

.eyebrow,
.panel-kicker,
.text-label,
.detail-id,
.meta-label,
.video-label,
.support-figure figcaption {
  margin: 0;
  color: var(--blue);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.detail-heading h3,
.series-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 10.5ch;
  margin-top: 1.05rem;
  font-size: clamp(4.15rem, 8.15vw, 8.7rem);
  line-height: 0.8;
}

.hero-copy {
  min-width: 0;
}

.hero h1 em {
  color: #bdd3f4;
  font-weight: 400;
}

.hero-lead {
  max-width: 40rem;
  margin: 2rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.25rem;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.45rem;
  border: 1px solid rgba(151, 228, 248, 0.48);
  border-radius: 999px;
  color: #031020;
  background: #b8edf7;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 0 34px rgba(93, 220, 244, 0.12);
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  color: var(--text);
  background: transparent;
  transform: translateY(-2px);
}

.text-link,
.site-footer a {
  position: relative;
  padding-bottom: 0.32rem;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.hero-facts {
  margin: clamp(3.4rem, 7vh, 6.2rem) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts div {
  padding: 1.1rem 0.8rem 1.15rem 0;
}

.hero-facts div + div {
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  color: var(--text-faint);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0.34rem 0 0;
  font-size: 0.82rem;
}

.hero-stage {
  position: relative;
  min-height: clamp(35rem, 66vw, 45rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 10% 4% 4% 12%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 191, 218, 0.16), rgba(51, 81, 130, 0.06) 43%, transparent 70%);
  filter: blur(8px);
}

.stage-orbit {
  position: absolute;
  inset: 12% 2% 8% 7%;
  z-index: -1;
  border: 1px solid rgba(128, 194, 246, 0.19);
  border-radius: 48% 52% 46% 54%;
  transform: rotate(-11deg);
}

.stage-orbit::before,
.stage-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(237, 143, 189, 0.11);
  border-radius: 50%;
}

.stage-orbit::before {
  inset: 8%;
}

.stage-orbit::after {
  width: 0.55rem;
  height: 0.55rem;
  top: 14%;
  right: 6%;
  border: 0;
  background: var(--pink);
  box-shadow: 0 0 28px rgba(239, 143, 189, 0.72);
}

.specimen {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(178, 214, 255, 0.24);
  background: #0c1934;
  box-shadow: var(--shadow);
}

.specimen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specimen-main {
  width: min(68%, 26rem);
  aspect-ratio: 3 / 4;
  top: 7%;
  right: 10%;
  z-index: 2;
  padding: 0.55rem;
  border-radius: 45% 45% 1rem 1rem;
  transform: rotate(2.5deg);
}

.specimen-main img {
  border-radius: 45% 45% 0.65rem 0.65rem;
}

.specimen-main figcaption {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  left: 0.9rem;
  padding: 0.68rem 0.72rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #eef7ff;
  background: rgba(4, 11, 30, 0.78);
  backdrop-filter: blur(10px);
  font-family: var(--display);
  font-size: 0.92rem;
}

.specimen-main figcaption span {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.specimen-small {
  width: min(28%, 10.5rem);
  aspect-ratio: 3 / 4;
  z-index: 3;
  padding: 0.35rem;
  border-radius: 0.5rem;
}

.specimen-small-a {
  top: 21%;
  left: 3%;
  transform: rotate(-8deg);
}

.specimen-small-b {
  right: 1%;
  bottom: 4%;
  transform: rotate(7deg);
}

.stage-note {
  position: absolute;
  bottom: 6%;
  left: 8%;
  color: var(--text-faint);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  line-height: 1.8;
  text-transform: uppercase;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: left bottom;
}

.section-block {
  padding: clamp(5rem, 9vw, 9rem) 0;
  scroll-margin-top: 4.7rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 2.4rem;
}

.section-heading h2,
.series-copy h2 {
  margin-top: 0.7rem;
  font-size: clamp(2.8rem, 5.3vw, 5.8rem);
  line-height: 0.98;
}

.section-note,
.series-lead,
.panel-copy,
.detail-text p {
  color: var(--text-soft);
  line-height: 1.75;
}

.section-note {
  max-width: 30rem;
  margin: 0 0 0.25rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.work-card {
  --card-accent: rgba(107, 220, 244, 0.17);
  position: relative;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.62rem 0.62rem 0.82rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: var(--text);
  background:
    linear-gradient(150deg, rgba(13, 30, 63, 0.95), rgba(5, 14, 34, 0.88)),
    var(--card-accent);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  text-align: left;
  cursor: pointer;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 280ms ease;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -50% -30%;
  height: 65%;
  background: radial-gradient(circle, var(--card-accent), transparent 70%);
  opacity: 0;
  transition: opacity 280ms ease;
}

.work-card:hover,
.work-card:focus-visible,
.work-card.is-selected {
  transform: translateY(-8px);
  border-color: var(--detail-line);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34), 0 0 28px var(--card-accent);
}

.work-card:hover::before,
.work-card:focus-visible::before,
.work-card.is-selected::before {
  opacity: 0.75;
}

.work-card.is-selected {
  border-color: rgba(161, 229, 248, 0.62);
}

.card-image-wrap {
  position: relative;
  z-index: 1;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #101d38;
}

.card-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 280ms ease;
}

.work-card:hover img,
.work-card:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.card-index {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  padding: 0.24rem 0.4rem;
  color: #dff9ff;
  background: rgba(3, 10, 27, 0.72);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
}

.card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.22rem;
  padding-inline: 0.2rem;
}

.card-title {
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  color: var(--text-faint);
  font-size: 0.67rem;
}

.detail-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(1.15rem, 2.5vw, 2.2rem);
  border: 1px solid var(--detail-line);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 93% 7%, var(--detail-accent), transparent 26rem),
    linear-gradient(145deg, rgba(12, 27, 57, 0.96), rgba(4, 12, 30, 0.95));
  box-shadow: var(--shadow);
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.detail-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  width: 7rem;
  height: 1px;
  background: var(--blue);
  box-shadow: 0 0 22px rgba(107, 220, 244, 0.54);
}

.detail-shell.is-refreshing {
  animation: detailRefresh 360ms ease;
}

@keyframes detailRefresh {
  from {
    opacity: 0.74;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-count {
  min-width: 5rem;
  padding: 0.56rem 0.8rem;
  border: 1px solid var(--detail-line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(2, 9, 24, 0.48);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-align: center;
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  gap: clamp(2rem, 4vw, 4.5rem);
}

.detail-visual {
  display: grid;
  gap: 1rem;
}

.main-figure,
.support-figure,
.video-wrap {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(3, 11, 28, 0.72);
}

.main-figure {
  padding: 0.68rem;
}

.main-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.support-figure,
.video-wrap {
  padding: 0.74rem;
}

.support-figure figcaption,
.video-label {
  display: block;
  margin-bottom: 0.62rem;
  color: var(--text-faint);
}

.support-figure img,
.video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #010612;
}

.detail-copy {
  align-self: center;
  padding-block: 1.5rem;
}

.detail-heading h3 {
  margin-top: 0.52rem;
  font-size: clamp(3.25rem, 5.2vw, 6.1rem);
  line-height: 0.92;
}

.detail-meta {
  margin: 1.2rem 0 0;
  color: var(--text-faint);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.detail-text {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.4rem;
}

.detail-text > div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.detail-text p:last-child {
  margin: 0.7rem 0 0;
  font-size: 0.94rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.nav-button {
  min-height: 2.9rem;
  padding: 0 1rem;
  border: 1px solid var(--detail-line);
  border-radius: 999px;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, transform 220ms ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  color: #031020;
  background: #b8edf7;
  transform: translateY(-2px);
}

.nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.28;
  transform: none;
}

.series-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(21rem, 0.7fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
  border-top: 1px solid var(--line);
}

.series-copy h2 {
  max-width: 12ch;
}

.series-lead {
  max-width: 48rem;
  margin: 1.8rem 0 0;
  white-space: pre-line;
}

.series-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.3rem;
}

.meta-chip {
  min-height: 6.4rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(10, 24, 51, 0.58);
}

.meta-value {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
}

.series-panel {
  position: sticky;
  top: 7rem;
  min-height: 32rem;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50% 50% 1rem 1rem;
  background:
    radial-gradient(circle at 50% 8%, rgba(84, 196, 219, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(12, 31, 62, 0.88), rgba(5, 14, 33, 0.94));
  box-shadow: var(--shadow);
}

.classification-glyph {
  position: relative;
  width: 10rem;
  height: 10rem;
  margin: 0 auto 2.2rem;
}

.classification-glyph span {
  position: absolute;
  inset: 50%;
  display: block;
  border: 1px solid rgba(137, 216, 240, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.classification-glyph span:nth-child(1) {
  width: 9rem;
  height: 6rem;
  transform: translate(-50%, -50%) rotate(25deg);
}

.classification-glyph span:nth-child(2) {
  width: 6rem;
  height: 9rem;
  border-color: rgba(239, 143, 189, 0.24);
  transform: translate(-50%, -50%) rotate(-35deg);
}

.classification-glyph span:nth-child(3) {
  width: 1rem;
  height: 1rem;
  border: 0;
  background: var(--blue);
  box-shadow: 0 0 30px rgba(107, 220, 244, 0.72);
}

.panel-copy {
  margin: 0.9rem 0 0;
}

.panel-details {
  margin-top: 1.6rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.panel-details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
}

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

.panel-details summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.2rem;
}

.panel-details[open] summary::after {
  content: "−";
}

.panel-details p {
  max-height: 23rem;
  margin: 1rem 0 0;
  overflow: auto;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre-line;
  scrollbar-color: var(--blue) transparent;
}

.site-footer {
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.site-footer a {
  color: var(--text-soft);
}

.reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.orba-cursor-dot,
.orba-cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.orba-cursor-enabled {
    cursor: none;
  }

  .orba-cursor-dot,
  .orba-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: block;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: difference;
    will-change: transform;
    transform: translate3d(-100px, -100px, 0);
  }

  .orba-cursor-dot {
    width: 4px;
    height: 4px;
    background: #fff;
  }

  .orba-cursor-ring {
    width: 24px;
    height: 24px;
    border: 1px solid #fff;
    opacity: 1;
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  }

  body.orba-cursor-hover .orba-cursor-ring {
    width: 42px;
    height: 42px;
    opacity: 0.55;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
    gap: 2rem;
  }

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

  .detail-layout,
  .series-section {
    grid-template-columns: 1fr;
  }

  .detail-copy {
    padding-inline: 0.4rem;
  }

  .series-panel {
    position: relative;
    top: auto;
    min-height: auto;
    border-radius: 1rem;
  }
}

@media (max-width: 820px) {
  .site-header,
  .portfolio-main,
  .site-footer {
    width: min(100vw - 2rem, 1320px);
  }

  .site-header {
    min-height: 4rem;
  }

  .site-nav {
    gap: 0.9rem;
  }

  .site-nav a:nth-child(2) {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 4.2rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 15vw, 7rem);
  }

  .hero-stage {
    min-height: 38rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .section-heading h2,
  .series-copy h2 {
    font-size: clamp(2.8rem, 10vw, 5rem);
  }

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

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

@media (max-width: 560px) {
  .site-header,
  .portfolio-main,
  .site-footer {
    width: min(100vw - 1.25rem, 1320px);
  }

  .brand {
    font-size: 0.68rem;
  }

  .site-nav {
    font-size: 0.69rem;
  }

  .site-nav a:nth-child(3) {
    display: none;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.9rem, 14.5vw, 4.4rem);
    letter-spacing: -0.055em;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

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

  .hero-facts div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-stage {
    min-height: 30rem;
  }

  .specimen-main {
    right: 8%;
    width: 71%;
  }

  .stage-note {
    display: none;
  }

  .section-block {
    padding: 4.7rem 0;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .work-card {
    padding: 0.45rem 0.45rem 0.68rem;
  }

  .card-title {
    font-size: 0.93rem;
  }

  .detail-shell {
    padding: 0.8rem;
  }

  .detail-layout {
    gap: 1.5rem;
  }

  .media-strip {
    grid-template-columns: 1fr;
  }

  .detail-heading h3 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .detail-actions,
  .nav-button {
    width: 100%;
  }

  .series-panel {
    padding: 1.25rem;
  }

  .site-footer {
    min-height: 8rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
