/* ════════════════════════════════════════════════════════════
   NEXUS — 04 · Responsive + reduced motion
   ════════════════════════════════════════════════════════════ */

@media (max-width: 1280px) {
  .hero__figure {
    max-width: 400px;
  }

  .world__inset {
    width: 112%;
    margin-inline-start: -12%;
  }

  .footer__top {
    gap: 48px;
  }
}

@media (max-width: 1120px) {
  .hero__figure {
    max-width: 360px;
  }

  .hero__vertical {
    display: none;
  }

  .monolith__copy {
    width: min(360px, 38vw);
  }

  .monolith__legend {
    display: none;
  }

  .work--portrait .work__media {
    min-height: 560px;
  }
}

@media (max-width: 1024px) {
  .section-head__aside {
    grid-row: 1 / 3;
  }

  .section-head__title {
    grid-column: 3 / 13;
  }

  .section-head__lead {
    grid-column: 3 / 10;
    grid-row: 2;
    margin-top: 6px;
  }

  .world__inset {
    width: 112%;
    margin-inline-start: -12%;
  }

  .work--stagger .work__side,
  .work--portrait .work__side,
  .work__panel {
    padding: 34px;
  }

  .work--portrait .work__title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
  }

  .work--stagger .work__title {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  }

  .work__number {
    font-size: clamp(4.4rem, 9vw, 6.4rem);
  }
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 76px;
  }

  .hero {
    padding-top: 104px;
  }

  .hero__grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .hero__copy {
    grid-column: 1 / 8;
  }

  .hero__figure {
    grid-column: 8 / 13;
    max-width: 320px;
  }

  .hero__meta {
    gap: 20px;
  }

  .hero__motto {
    display: none;
  }

  .monolith__copy {
    width: min(340px, 42vw);
  }
}

@media (max-width: 820px) {
  :root {
    --section-y: clamp(84px, 15vw, 120px);
  }

  .section {
    scroll-margin-top: 72px;
  }

  .brand__sup {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  /* Hero becomes a full-bleed photograph */
  .hero {
    min-height: 100svh;
    padding-top: 96px;
    padding-bottom: 18px;
  }

  .hero__grid {
    display: block;
    flex: 1 0 auto;
  }

  .hero__figure {
    position: absolute;
    top: 0;
    inset-inline-end: calc(var(--gutter) * -1);
    bottom: 0;
    inset-inline-start: calc(var(--gutter) * -1);
    z-index: 0;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
  }

  .hero__frame {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .hero__frame img {
    object-position: 56% 42%;
    filter: saturate(0.88) contrast(1.05) brightness(0.58);
  }

  .hero__figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(7, 8, 9, 0.62) 0%, rgba(7, 8, 9, 0.08) 32%, rgba(7, 8, 9, 0.74) 68%, var(--c-obsidian) 100%),
      linear-gradient(270deg, rgba(7, 8, 9, 0.45), transparent 70%);
  }

  .hero__corner,
  .hero__figure-index,
  .hero__caption,
  .hero__vertical {
    display: none;
  }

  .hero__frame,
  .hero__caption {
    transform: none;
  }

  .hero__copy {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: calc(100svh - 190px);
    padding-bottom: 8px;
  }

  .hero__title {
    margin-top: 20px;
    font-size: clamp(3.1rem, 16vw, 7rem);
    line-height: 0.86;
  }

  .hero__line--offset {
    padding-inline-start: 24px;
  }

  .hero__lede {
    max-width: 34ch;
    margin-top: 22px;
    color: rgba(242, 237, 228, 0.78);
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 24px;
  }

  .hero__actions .btn--solid {
    width: 100%;
  }

  .hero__actions .btn--text {
    align-self: flex-start;
    min-height: 40px;
  }

  .hero__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: none;
    margin-top: 26px;
    padding-top: 15px;
  }

  .hero__meta dd {
    font-size: 0.7rem;
  }

  .hero__foot {
    margin-top: 18px;
    padding-top: 0;
  }

  .hero__edition {
    display: none;
  }

  .hero__plan {
    inset-inline-end: -32vw;
    width: 100vw;
    opacity: 0.08;
  }

  .hero__blur {
    inset: -6%;
  }

  /* Section heads stack */
  .section-head {
    display: block;
    margin-bottom: 46px;
  }

  .section-head__aside {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
  }

  .section-index {
    font-size: 2.6rem;
  }

  .section-head__rule {
    display: none;
  }

  .section-head__title {
    font-size: clamp(2.7rem, 11vw, 5.2rem);
    line-height: 0.96;
  }

  .section-head__lead {
    max-width: 46ch;
    margin-top: 24px;
    padding-bottom: 0;
    font-size: 0.95rem;
  }

  /* World */
  .world__spread {
    display: block;
  }

  .world__main .frame {
    aspect-ratio: 4 / 3;
  }

  .world__main figcaption,
  .world__inset figcaption {
    font-size: 10px;
  }

  .world__aside {
    padding-top: 40px;
  }

  .world__note {
    font-size: 1.35rem;
  }

  .world__inset {
    width: 100%;
    margin: 30px 0 0;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 56px;
  }

  .stat {
    padding: 20px 0 22px;
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(odd) {
    padding-inline-end: 18px;
  }

  .stat + .stat {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .stat:nth-child(even) {
    padding-inline-start: 18px;
    border-inline-start: 1px solid var(--line);
  }

  .stat dd {
    font-size: 2.4rem;
  }

  .world__quote {
    margin-block: 64px;
    text-align: start;
  }

  .world__quote-mark {
    height: 0.5em;
    font-size: 5rem;
  }

  .world__quote blockquote {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .world__strip {
    margin-top: 64px;
  }

  .world__strip .frame {
    aspect-ratio: 4 / 3;
  }

  .world__strip figcaption {
    font-size: 10px;
  }

  /* Monolith */
  .monolith__head {
    padding-top: 96px;
  }

  .monolith__head .section-head__aside {
    display: flex;
  }

  .monolith__title {
    margin-top: 18px;
    font-size: clamp(2.8rem, 12vw, 5.4rem);
  }

  .monolith__copy {
    inset-inline-end: var(--gutter);
    bottom: 26px;
    inset-inline-start: var(--gutter);
    width: auto;
    max-width: 430px;
  }

  .monolith__copy > p:first-child {
    max-width: 33ch;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(242, 237, 228, 0.62);
  }

  .monolith__controls {
    margin-top: 14px;
  }

  .icon-btn {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .monolith__hint {
    margin-top: 10px;
  }

  .monolith__scrim {
    background:
      linear-gradient(180deg, rgba(7, 8, 9, 0.75) 0%, transparent 30%, rgba(7, 8, 9, 0.86) 80%),
      linear-gradient(270deg, rgba(7, 8, 9, 0.55), transparent 70%);
  }

  .monolith__badge {
    display: none;
  }

  .fallback-stack span {
    width: calc(170px - var(--i) * 4px);
    height: 8px;
  }

  .fallback-glow {
    width: 340px;
    height: 340px;
  }

  /* Archive */
  .gallery {
    gap: 56px;
  }

  .work--split,
  .work--stagger,
  .work--portrait {
    display: block;
  }

  .work__panel,
  .work__side {
    padding: 28px;
  }

  .work__title {
    font-size: 2.1rem;
  }

  .work--full {
    min-height: 72svh;
  }

  .work__top {
    padding: 18px 20px;
    font-size: 10px;
  }

  .work__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 0 20px 24px;
  }

  .work--full .work__title {
    font-size: clamp(2.2rem, 9vw, 3.6rem);
  }

  .work--split .work__title {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

  .work--stagger .work__media {
    aspect-ratio: 4 / 3;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .work__plan {
    display: none;
  }

  .work--stagger .work__title,
  .work--portrait .work__title {
    font-size: clamp(2.2rem, 8.5vw, 3.2rem);
  }

  .work__media--tall {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .work--portrait .work__media {
    min-height: 0;
    margin: 0;
    aspect-ratio: 4 / 5;
    border-bottom: 1px solid var(--line);
  }

  .work__number {
    top: 6px;
    inset-inline-end: 20px;
    font-size: 5rem;
    opacity: 0.8;
  }

  .work__desc {
    max-width: none;
    font-size: 0.92rem;
  }

  .work--split .work__cta {
    margin-top: 4px;
  }

  /* Threshold */
  .threshold {
    height: 210vh;
  }

  .threshold__media {
    clip-path: inset(
      calc((1 - var(--p)) * 22%) calc((1 - var(--p)) * 44%) round 2px
    );
  }

  .threshold__title {
    font-size: clamp(3.4rem, 16vw, 8rem);
  }

  .threshold__title span:first-child {
    transform: translateX(calc(var(--p) * 12vw));
  }

  .threshold__title span:last-child {
    transform: translateX(calc(var(--p) * -12vw));
  }

  .threshold__eyebrow {
    top: 90px;
  }

  .threshold__hint {
    max-width: 80vw;
    font-size: 10px;
    white-space: normal;
  }

  .threshold__arrive {
    bottom: 11%;
    font-size: 1.15rem;
    white-space: nowrap;
  }

  /* Closing */
  .manifesto__title {
    font-size: clamp(2.7rem, 10.5vw, 5rem);
  }

  .manifesto__lead {
    max-width: 38ch;
    font-size: 0.98rem;
  }

  .manifesto__actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 360px);
    gap: 12px;
    margin-top: 32px;
  }

  .manifesto__actions .btn--text {
    align-self: center;
  }

  .manifesto__transmission {
    padding-inline: var(--gutter);
    line-height: 1.8;
  }

  /* Footer */
  .footer__top {
    display: block;
  }

  .footer__brand {
    margin-bottom: 38px;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer__word {
    margin-top: 56px;
    font-size: 26vw;
  }

  .footer__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 10px;
  }

  .footer__top-link {
    justify-self: end;
  }

  /* Dialogs */
  .work-dialog {
    width: calc(100vw - 28px);
    max-height: 90svh;
    overflow-y: auto;
  }

  .work-dialog__inner {
    display: block;
    max-height: none;
  }

  .work-dialog__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .work-dialog__body {
    overflow: visible;
    padding: 26px;
    gap: 16px;
  }

  .work-dialog__title {
    font-size: 2.1rem;
  }

  .invite-dialog {
    width: calc(100vw - 28px);
    padding: 30px 24px;
  }

  .invite-dialog__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .invite-dialog__actions {
    flex-direction: column;
  }

  .invite-dialog__actions .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .mono {
    letter-spacing: 0.14em;
  }

  .hero__meta dt {
    font-size: 7px;
  }

  .hero__meta dd {
    font-size: 0.68rem;
  }

  .hero__title {
    font-size: clamp(3rem, 16.5vw, 5.2rem);
  }

  .hero__lede {
    max-width: 31ch;
    font-size: 0.96rem;
  }

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

  .stat,
  .stat:nth-child(odd),
  .stat:nth-child(even) {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-inline-start: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat dd {
    margin-top: 0;
    font-size: 2rem;
  }

  .world__main figcaption span:last-child,
  .world__inset figcaption span:last-child,
  .world__strip figcaption span:last-child {
    display: none;
  }

  .monolith__copy > p:first-child {
    display: none;
  }

  .monolith__hint {
    font-size: 7px;
  }

  .work__panel,
  .work__side {
    padding: 24px;
  }

  .work__facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .work__badge {
    width: 38px;
    height: 38px;
    top: 14px;
    inset-inline-end: 14px;
  }

  .threshold__title {
    font-size: 18vw;
  }

  .threshold__eyebrow {
    top: 78px;
    font-size: 10px;
  }

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

  .footer__bottom {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer__top-link {
    justify-self: start;
  }

  .footer__word {
    font-size: 27vw;
  }

  .work-dialog__top {
    flex-direction: column;
    gap: 6px;
  }

  .work-dialog__facts {
    grid-template-columns: 1fr;
  }

  .work-dialog__nav span {
    display: none;
  }

  .work-dialog__note {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: 15.6vw;
  }

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

  .hero__meta > div:last-child {
    display: none;
  }

  .menu__nav a {
    font-size: 1.9rem;
  }
}

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

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

  .scroll-progress,
  .cursor {
    display: none;
  }

  html.js body:not(.is-loaded) .anim,
  html.js body:not(.is-loaded) .hero__word {
    opacity: 1;
  }

  body.is-loaded .anim,
  body.is-loaded .hero__word {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .intro {
    display: none !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  html.js [data-reveal="mask"] > .frame {
    clip-path: none;
  }

  .threshold {
    height: auto;
  }

  .threshold__sticky {
    position: relative;
    height: 88svh;
  }

  .threshold__media {
    clip-path: none;
  }

  .threshold__media img {
    filter: saturate(0.9) brightness(0.74);
    transform: none;
  }

  .threshold__panel {
    display: none;
  }

  .threshold__title span {
    transform: none !important;
  }

  .threshold__hint {
    display: none;
  }

  .threshold__arrive {
    opacity: 1;
  }

  .hero__blur img {
    filter: blur(60px) saturate(0.9) brightness(0.6);
  }

  .scroll-cue__line::after {
    display: none;
  }

  .intro__mark {
    animation: none !important;
  }
}

/* Outlined type needs a fallback where text-stroke is unsupported. */
@supports not (-webkit-text-stroke: 1px red) {
  .section-index {
    color: rgba(216, 185, 138, 0.42);
  }

  .footer__word {
    color: rgba(216, 185, 138, 0.14);
  }

  .work__number {
    color: rgba(216, 185, 138, 0.12);
  }
}
