/* ==========================================================================
   ORICHALCUM

   Type: Roboto Mono Bold for headings, navigation and dates; Arial Regular for
   running text (Arial Bold for subheads, bullets and the e-mail address).
   Arial is set with +40 tracking (.04em), as in the mockup.

   Scale: the reference design is a 1920 px wide window and 1rem is 10 px
   there. The root size follows the window width (never below 9.3px, so the
   body copy stays readable on a laptop).

   Horizontal geometry is a fraction of the page width (--w) rather than rem,
   so the columns of the header, the text pages and the grids keep lining up at
   any window size. Fractions were measured from the mockup:
     .197  left edge of the text column (claim, intro, MAKRO title, articles)
     .091  right margin of that column
     .035 / .033  left / right margin of the tile grid
     .472  left edge of the text in the o… and kontakt blocks
   ========================================================================== */

@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/RobotoMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/RobotoMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  font-size: clamp(9.3px, 0.5208vw, 15px);
  -webkit-text-size-adjust: 100%;
}

:root {
  --ink:       #000;
  --ink-soft:  #55595c;
  --grey:      #7f8c93;              /* the claim, "více" links */
  --rule:      #000;

  /* Background: a vertical wash, very pale green → copper → grey-blue. */
  --bg-top:    rgb(243, 245, 241);
  --bg-mid:    rgb(244, 244, 237);
  --bg-bottom: rgb(242, 244, 244);

  --ph-bg:     rgba(0, 0, 0, .045);
  --ph-line:   rgba(0, 0, 0, .1);

  --head: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --text: Arial, "Liberation Sans", Helvetica, sans-serif;

  /* Every tinted element reads --tone, which the section it belongs to sets
     inline from its own colour field, and --scale, the size of its name
     (MAKRO largest, MIKRO smallest). */
  --tone:      var(--ink);
  --scale:     1;

  --w:         min(88vw, 2200px);
  --gutter:    2.4rem;
  --col-left:  calc(var(--w) * .197);
  --col-right: calc(var(--w) * .091);
  --grid-left: calc(var(--w) * .035);
  --grid-right: calc(var(--w) * .033);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-top) linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bottom) 100%) no-repeat;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: .3rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- page shell ---------- */

.sheet { flex: 1 0 auto; padding-bottom: 9rem; }

.wrap {
  width: var(--w);
  margin: 0 auto;
}

/* ---------- masthead ---------- */

.masthead {
  position: relative;
  display: grid;
  grid-template-columns: var(--col-left) minmax(0, 1fr) auto;
  align-items: center;
  padding: 8.6rem var(--col-right) 0 0;
}

.logo {
  display: block;
  width: calc(var(--w) * .154);
  aspect-ratio: 246 / 102;
}
.logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }

.claim {
  margin: 1.8rem 0 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: .06em;
  color: var(--grey);
}

/* Instagram sits above the navigation, flush with the right edge. */
.utility {
  position: absolute;
  top: 7rem;
  right: 0;
  margin: 0;
  font-family: var(--head);
  font-size: 1.4rem;
  letter-spacing: .06em;
}
.utility a:hover { text-decoration: underline; }

/* ---------- navigation ---------- */

.nav {
  display: flex;
  align-items: baseline;
  gap: 4rem;
  margin-top: 1.8rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: .06em;
  white-space: nowrap;
}

.nav a {
  padding-bottom: .5rem;
  border-bottom: .2rem solid transparent;
  transition: border-color .18s ease;
}
.nav a:hover,
.nav a[aria-current] { border-bottom-color: currentColor; }

/* MAKRO / MEZZO / MIKRO carry the colour and the relative size of the
   section they open. */
.is-tone { color: var(--tone); }
.nav-section { font-size: calc(2.64rem * var(--scale)); }

/* ---------- section names ---------- */

.title {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: calc(2.64rem * var(--scale));
  line-height: 1.1;
  letter-spacing: .06em;
}

/* ---------- the "• • • více" link ---------- */

.more {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .03em;
  color: var(--grey);
  white-space: nowrap;
}
.more:hover { text-decoration: underline; }
.more.is-tone { color: var(--tone); }

/* ---------- home: introduction ---------- */

.intro {
  margin: 2.2rem var(--col-right) 0 var(--col-left);
  max-width: 70rem;
  font-size: 1.6rem;
  line-height: 1.31;
}

/* ---------- tile grid ---------- */

.work {
  margin: 6.4rem var(--grid-right) 0 var(--grid-left);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gutter);
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
/* The photo fills the tile without adding to its height, so a portrait photo in
   a tall tile cannot stretch the rows it spans. */
.tile img,
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* A tall tile fills two rows of the grid — the accent tile in the design. */
.tile--tall { grid-row: span 2; aspect-ratio: auto; height: 100%; }

/* The name of the project: a small white card that appears over the tile. */
.tile .caption {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 52%;
  max-width: 88%;
  padding: 1rem 1.6rem;
  background: rgba(255, 255, 255, .93);
  font-size: 1.1rem;
  line-height: 1.35;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .18s ease;
}
.tile .caption b { display: block; font-weight: 400; }
.tile .caption em { display: block; font-style: normal; color: var(--ink-soft); }
.tile:hover .caption,
.tile:focus-visible .caption { opacity: 1; }

/* Tiles folded away behind "více" stay visible without script. */
.js .gallery.is-collapsed .tile.is-extra { display: none; }

.gallery.is-opening .tile.is-extra { animation: tile-in .7s ease both; }
@keyframes tile-in {
  from { opacity: 0; transform: translateY(-1.2rem); }
  to   { opacity: 1; transform: none; }
}

.gallery-more,
.section-link {
  margin: 1.2rem 0 0;
  text-align: right;
}
/* .gallery-more sits inside .work, which already has the right margin. */
.section-link { margin-right: var(--grid-right); }
.gallery-more { display: none; }
.js .gallery-more { display: block; }
.js .gallery-more[hidden] { display: none; }

/* ---------- the three services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 3.4rem var(--grid-right) 0 var(--grid-left);
}

.service {
  display: grid;
  grid-template-columns: calc(var(--w) * .09) minmax(0, 1fr);
  column-gap: 2.6rem;
  align-content: start;
  padding: 5.2rem 4.4rem 2.7rem;
}
.service:first-child { padding-left: 0; }
.service:last-child  { padding-right: 0; }
/* The dotted rule between two columns: a dot every four pixels. */
.service + .service {
  background: linear-gradient(to bottom, var(--rule) 25%, transparent 0) 0 0 / 1px 4px repeat-y;
}

.sigil { aspect-ratio: 1 / 1; }
.sigil img, .sigil video { width: 100%; height: 100%; object-fit: contain; }

.service .title { margin-bottom: 1rem; }

.service h3 {
  margin: 0 0 .8rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.service .note {
  margin: 0 0 1.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.bullets li {
  position: relative;
  padding-left: 1.2rem;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.42;
}
.bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -.02em;
  color: var(--tone);
  font-size: 1.5em;
  line-height: 1;
}
.bullets li span { display: block; font-size: .82rem; font-weight: 400; }

.service .bullets { margin-top: 1.2rem; }
.service .more { margin-top: 1.2rem; font-size: .85rem; }

/* The link on the name stretches over the whole column, so the sigil, the
   text and "více" all open the section. */
.service { position: relative; isolation: isolate; }
.service-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1; /* the positioned bullets would otherwise sit above it */
}
.service-link:focus-visible { outline: none; }
.service-link:focus-visible::after { outline: 2px solid var(--ink); outline-offset: -.3rem; }
.service:hover .more { text-decoration: underline; }

/* ---------- o… and kontakt blocks on the home page, kontakt page ---------- */

.duo {
  display: grid;
  grid-template-columns: calc(var(--w) * .472) minmax(0, 1fr);
  align-items: center;
}
.duo-figure {
  justify-self: end;
  margin-right: calc(var(--w) * .044);
}
.duo--about .duo-figure   { width: calc(var(--w) * .26); }
.duo--contact .duo-figure { width: calc(var(--w) * .183); }
.duo-figure img { display: block; width: 100%; height: auto; }
.duo-figure.ph { aspect-ratio: 1 / 1; }

.home .duo--about   { margin-top: 16rem; }
.home .duo--contact { margin-top: 8rem; }

.block-title {
  margin: 0 0 1.4rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: .06em;
}

.teaser { max-width: calc(var(--w) * .24); font-size: 1.2rem; line-height: 1.25; }
.teaser p { margin: 0 0 1.4rem; }
.duo--about .duo-text { max-width: calc(var(--w) * .24); }
.duo--about .more { display: block; margin-top: 1.4rem; text-align: right; }

.lead {
  margin: 0 0 1.2rem;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.57;
}
.mail {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
}
.mail:hover { text-decoration: underline; }

.contact-page .duo { margin-top: 13rem; }

/* ---------- section pages (MAKRO / MEZZO / MIKRO) ---------- */

.section-head {
  display: grid;
  grid-template-columns: calc(var(--w) * .285) calc(var(--w) * .388);
  column-gap: calc(var(--w) * .0215);
  margin: 3.6rem var(--col-right) 0 var(--col-left);
}

.section-lead {
  display: grid;
  grid-template-columns: calc(var(--w) * .108) minmax(0, 1fr);
  column-gap: 1.6rem;
  align-items: start;
}

.section-titles .subtitle {
  margin: 1.2rem 0 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 2rem;
}
.section-titles .note {
  margin: 2rem 0 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 2rem;
}
.section-titles .bullets { margin-top: 1.8rem; }
.section-titles .bullets li { margin-bottom: .6rem; font-size: 1.4rem; line-height: 1.3; }
.section-titles .bullets li span { font-size: 1.4rem; }

.section-illustration {
  width: calc(var(--w) * .211);
  margin: 11rem 0 0 calc(var(--w) * .0215);
}
.section-illustration img { display: block; width: 100%; height: auto; }

.section-text {
  column-count: 2;
  column-gap: calc(var(--w) * .0442);
  font-size: 1.4rem;
  line-height: 1.3;
  orphans: 3;
  widows: 3;
}
.section-text p { margin: 0 0 1.8rem; }
.section-text p:last-child { margin-bottom: 0; }

.section-page .work { margin-top: 5rem; }

/* ---------- inSPIRO ---------- */

.article-list {
  display: grid;
  grid-template-columns: repeat(3, calc(var(--w) * .171));
  column-gap: calc(var(--w) * .0335);
  row-gap: 3.6rem;
  margin: 9.4rem 0 0 var(--col-left);
}

.article-card { display: block; }
.article-date {
  display: block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.62rem;
  line-height: 1.2;
  letter-spacing: .05em;
}
.article-date::before {
  content: "•";
  margin-right: .3em;
  color: #9a8036;
  font-size: 1.2em;
  line-height: 1;
}
.article-title {
  display: block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.62rem;
  line-height: 1.2;
  letter-spacing: .05em;
}
.article-perex {
  display: block;
  margin-top: 1.5rem;
  font-size: 1.4rem;
  line-height: 1.3;
}
.article-card:hover .article-title,
.article-card[aria-current] .article-title { text-decoration: underline; }

.dots {
  height: 1px;
  margin: 7.6rem var(--grid-right) 0 var(--grid-left);
  border: 0;
  background: linear-gradient(to right, #607d37 25%, transparent 0) 0 0 / 4px 1px repeat-x;
}
.dots[hidden] { display: none; }

.article-stage {
  position: relative;
  width: calc(var(--w) * .58);
  margin: 8.1rem 0 0 var(--col-left);
}
.article { scroll-margin-top: 4rem; }
.article[hidden] { display: none; }

.article-inner {
  column-count: 3;
  column-gap: calc(var(--w) * .0335);
}
.article-inner .article-date { margin: 0; }
.article-inner .article-title { margin: .4rem 0 2rem; }
.article-inner p { margin: 0 0 1.8rem; }
.article-inner img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.8rem;
  break-inside: avoid;
}

/* Two thin strokes drawn in copper. */
.article-close {
  position: absolute;
  top: -4.8rem;
  right: .4rem;
  width: 2.6rem;
  height: 2.6rem;
}
.article-close::before,
.article-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.2rem;
  height: 0;
  border-top: .25rem solid #8f5a33;
}
.article-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.article-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.article-close:hover::before,
.article-close:hover::after { border-top-color: var(--ink); }

/* ---------- o… page ---------- */

.about-page {
  display: grid;
  grid-template-columns: calc(var(--w) * .26) minmax(0, 1fr);
  column-gap: calc(var(--w) * .018);
  margin: 3.6rem var(--col-right) 0 0;
}
.about-figure { margin-top: 3.7rem; }
.about-figure img { display: block; width: 100%; height: auto; }
.about-figure.ph { aspect-ratio: 1 / 1; }

.about-text {
  column-count: 3;
  column-gap: calc(var(--w) * .0359);
  font-size: 1.4rem;
  line-height: 1.3;
}
.about-text p { margin: 0 0 1.8rem; }
.about-text p:last-child { margin-bottom: 0; }

.about-photo {
  width: 63.3%;
  margin: 5rem 0 0 36.7%;
}
.about-photo img { display: block; width: 100%; height: auto; }

/* ---------- project pages ---------- */

.detail-head {
  display: grid;
  grid-template-columns: calc(var(--w) * .29) minmax(0, 1fr);
  column-gap: calc(var(--w) * .0215);
  margin: 3.6rem var(--col-right) 5rem var(--col-left);
}

.detail-head .meta { font-size: 1.3rem; line-height: 1.45; }

.detail-head h1 {
  margin: 0 0 .8rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: .06em;
}

.detail-sub {
  margin: 0 0 2rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 2rem;
}

.detail-head .line { font-weight: 700; }
.detail-head .credits { margin-top: 1.8rem; color: var(--ink-soft); }
.detail-head .meta .more { margin-top: 2.4rem; }

.detail-text {
  column-count: 2;
  column-gap: calc(var(--w) * .0442);
  font-size: 1.4rem;
  line-height: 1.3;
}
.detail-text p { margin: 0 0 1.8rem; }
.detail-text p:last-child { margin-bottom: 0; }

.detail-back { margin: 4rem var(--grid-right) 0 var(--grid-left); }

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
  margin: 0 var(--grid-right) 0 var(--grid-left);
}

/* Three across. The shape sets each item's preferred proportion through the
   spacer below; because the item itself keeps height:auto it then stretches to
   the tallest item in its row, so a row of mixed shapes still comes out flush
   and the media crops to fit. */
.grid-run {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.g-item { position: relative; overflow: hidden; }
.g-item::before { content: ""; display: block; }
.g-tall::before   { padding-top: 133.333%; }
.g-square::before { padding-top: 100%; }
.g-wide::before   { padding-top: 66.667%; }

.g-item img,
.g-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* full-width item, keeps its own proportions */
.block-full { line-height: 0; background: var(--ph-bg); }
.block-full img,
.block-full video { width: 100%; height: auto; display: block; }

/* band with a centred portrait poster */
.poster-block {
  position: relative;
  background: rgba(127, 140, 147, .16);
  padding: 8rem 0 9rem;
  display: flex;
  justify-content: center;
}
.poster {
  position: relative;
  width: 34%;
  aspect-ratio: 21 / 29.7;
  background: #fff;
  box-shadow: 0 .4rem 2.5rem rgba(0, 0, 0, .18);
  overflow: hidden;
}
.poster img,
.poster video { width: 100%; height: 100%; object-fit: cover; display: block; }

.poster-label {
  position: absolute;
  left: 4%;
  bottom: 12%;
  font-family: var(--head);
  font-weight: 700;
  font-size: 13rem;
  line-height: 1;
  color: rgba(0, 0, 0, .28);
  pointer-events: none;
}

/* ---------- footer: the photographer ---------- */

.footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 7.8rem 6.8rem;
  margin-top: -3rem;
  pointer-events: none;
}
.footer .figure { width: 10.5rem; aspect-ratio: 112 / 167; }
.footer .figure img,
.footer .figure video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- placeholders ----------
   An empty media slot keeps its box and shows a hatched field, so an
   unfinished page still shows its layout. */

.ph {
  position: relative;
  display: block;
  background:
    repeating-linear-gradient(135deg, transparent 0 .9rem, rgba(0, 0, 0, .03) .9rem 1.8rem),
    var(--ph-bg);
  border: 1px solid var(--ph-line);
  overflow: hidden;
}
.ph .ph-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .6rem;
  color: rgba(0, 0, 0, .35);
  font-family: var(--head);
  font-size: 1rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: center;
}
.poster.ph { background: #fff; }

/* ---------- narrower windows ----------
   Below ~1400px the claim and the navigation no longer fit on one line next to
   the logo: the navigation moves up beside the logo and the claim drops under
   it. */

@media (max-width: 1400px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo  nav"
      "claim claim";
    padding-right: 0;
  }
  .logo  { grid-area: logo; width: calc(var(--w) * .2); }
  .nav   { grid-area: nav; margin-top: 0; }
  .claim { grid-area: claim; margin-top: 1.6rem; }
  .utility { top: 5rem; }
}

@media (max-width: 1200px) {
  .service { grid-template-columns: 1fr; row-gap: 1.4rem; padding-left: 2.4rem; padding-right: 2.4rem; }
  .service:first-child { padding-left: 0; }
  .service:last-child  { padding-right: 0; }
  .service .sigil { width: 10rem; }
}

/* ---------- tablet and phone ---------- */

@media (max-width: 900px) {
  html { font-size: 10.4px; }
  :root {
    --w: 90vw;
    --col-left: 0px;
    --col-right: 0px;
    --grid-left: 0px;
    --grid-right: 0px;
    --gutter: 1.2rem;
  }

  .masthead {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "claim" "nav";
    row-gap: 2rem;
    padding-top: 6.4rem;
  }
  .logo  { width: min(24rem, 62%); }
  .claim { margin: 0; font-size: 1.8rem; }
  .utility { top: 2.4rem; }
  .nav { flex-wrap: wrap; gap: 1.2rem 2.4rem; margin-top: 0; }
  .nav-section { font-size: calc(2.1rem * var(--scale)); }

  .intro { margin-top: 3rem; }
  .work  { margin-top: 3.4rem; }

  .gallery { grid-template-columns: repeat(3, 1fr); }
  .tile--tall { grid-row: auto; aspect-ratio: 3 / 2; height: auto; }
  /* Without hover there is nothing to reveal, so the name sits open. */
  .tile .caption {
    left: 0; right: 0; top: auto; bottom: 0;
    min-width: 0; max-width: none;
    transform: none;
    opacity: 1;
    padding: .6rem .8rem;
    font-size: 1rem;
  }

  .services { grid-template-columns: 1fr; margin-top: 5rem; }
  .service { grid-template-columns: 11rem minmax(0, 1fr); column-gap: 2.4rem; row-gap: 0; padding: 0; }
  .service .sigil { width: auto; }
  .service:first-child, .service:last-child { padding: 0; }
  .service + .service {
    background: linear-gradient(to right, var(--rule) 25%, transparent 0) 0 0 / 4px 1px repeat-x;
    margin-top: 3.2rem;
    padding-top: 3.2rem;
  }
  .service .note, .bullets li { font-size: 1.25rem; }
  .service .more { font-size: 1.2rem; }

  .duo { grid-template-columns: 1fr; row-gap: 2.4rem; }
  .duo-figure { justify-self: start; margin-right: 0; }
  .duo--about .duo-figure   { width: min(32rem, 80%); }
  .duo--contact .duo-figure { width: min(24rem, 62%); }
  .home .duo--about   { margin-top: 7rem; }
  .home .duo--contact { margin-top: 6rem; }
  .contact-page .duo  { margin-top: 5rem; }
  .duo--about .duo-text { max-width: none; }
  .teaser { max-width: none; font-size: 1.3rem; }

  .section-head,
  .detail-head { grid-template-columns: 1fr; row-gap: 3rem; margin-top: 3.4rem; }
  .section-text { width: auto; }
  .section-lead { grid-template-columns: 11rem minmax(0, 1fr); }
  .section-illustration { width: min(30rem, 80%); margin: 4rem 0 0; }
  .section-text,
  .detail-text { column-count: 1; }
  .section-link, .gallery-more { margin-right: 0; }

  .article-list { grid-template-columns: 1fr; margin-left: 0; row-gap: 2.8rem; margin-top: 4rem; }
  .dots { margin: 4.4rem 0 0; }
  .article-stage { width: auto; margin: 4.4rem 0 0; }
  .article-inner { column-count: 1; }
  .article-close { top: -3.4rem; right: 0; }

  .about-page { grid-template-columns: 1fr; margin: 3.4rem 0 0; row-gap: 3rem; }
  .about-figure { margin-top: 0; width: min(32rem, 80%); }
  .about-text { column-count: 1; }
  .about-photo { width: 100%; margin: 3rem 0 0; }

  .grid-run { grid-template-columns: repeat(2, 1fr); }
  .poster-block { padding: 4rem 0 5rem; }
  .poster { width: 60%; }
  .poster-label { font-size: 8rem; }

  .footer { padding: 0 2rem 3rem; margin-top: 2rem; }
  .footer .figure { width: 8rem; }
}

@media (max-width: 520px) {
  html { font-size: 10px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .grid-run { grid-template-columns: 1fr; }
  .nav-section { font-size: calc(1.9rem * var(--scale)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
