/**
 * MONO — original Tunai theme for photography studios & creative portfolios.
 * Swiss gallery-white editorial minimalism: the photographs are the colour.
 * Colossal Archivo display type (one word outlined), IBM Plex Mono for every
 * number, price and label, full-bleed 1px ink hairlines between sections, and
 * a viewfinder motif — crop-mark corner brackets that appear over images.
 * Scoped under .mono-theme.
 */

.mono-theme {
  --mo-paper: #fcfcfa;
  --mo-ink: #111111;
  --mo-red: #e03c31;
  --mo-on-red: #ffffff;
  --mo-muted: #71716b;
  --mo-line: rgba(17, 17, 17, 0.16);
  --fx-accent: var(--mo-red);
  --fx-spot: rgba(224, 60, 49, 0.07);
  --mo-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mo-body: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mo-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  background: var(--mo-paper);
  color: var(--mo-ink);
  color-scheme: light;
  font-family: var(--mo-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

html:has(.mono-theme) {
  color-scheme: light;
}

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

.mono-theme img {
  max-width: 100%;
  display: block;
}

.mono-theme a {
  color: inherit;
  text-decoration: none;
}

.mono-theme ::selection {
  background: var(--mo-red);
  color: var(--mo-on-red);
}

.mono-theme :is(a, button, [role="button"]):focus-visible {
  outline: 2px solid var(--mo-red);
  outline-offset: 3px;
}

.mo-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Outlined display word — the ink drains out, only the contour remains. */
.mo-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--mo-ink);
}

/* ══ Nav ══════════════════════════════════════════════════════════════════ */

.mo-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 24px;
  background: rgba(252, 252, 250, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mo-ink);
}

.mo-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--mo-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Signal-red film marker beside the wordmark. */
.mo-logo::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  background: var(--mo-red);
}

.mo-nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mo-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mo-nav-links a {
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

/* Hairline underline draws in from the left on hover. */
.mo-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--mo-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mo-nav-links a:hover::after {
  transform: scaleX(1);
}

.mo-nav-links a:hover {
  color: var(--mo-ink);
}

/* ══ Buttons — rectangular slabs, black fill, red on hover ════════════════ */

.mo-btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--mo-ink);
  color: var(--mo-paper);
  border: 0;
  border-radius: 0;
  font-family: var(--mo-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mo-btn:hover {
  background: var(--mo-red);
  color: var(--mo-on-red);
  transform: translateY(-2px);
}

.mo-btn--line {
  background: transparent;
  color: var(--mo-ink);
  box-shadow: inset 0 0 0 1px var(--mo-ink);
}

.mo-btn--line:hover {
  background: var(--mo-ink);
  color: var(--mo-paper);
  transform: translateY(-2px);
}

/* Nav variant sits tighter. */
.mo-nav > .mo-btn {
  padding: 11px 22px;
}

/* ══ Hero ═════════════════════════════════════════════════════════════════ */

.mo-hero {
  padding-top: 78px;
}

/* Mono strapline row: red marker + discipline left, city right. */
.mo-hero-tag {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 48px;
  font-family: var(--mo-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mo-ink);
}

.mo-hero-tag span:last-child {
  color: var(--mo-muted);
}

.mo-hero-tag-lead {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.mo-hero-tag-lead::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--mo-red);
}

/* The shop name, set colossal and broken over lines. */
.mo-hero h1 {
  margin: 0 0 40px;
  font-family: var(--mo-display);
  font-weight: 900;
  font-size: calc(clamp(48px, 11vw, 118px) * var(--tx-scale, 1));
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.mo-line {
  display: block;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.mo-line--outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--mo-ink);
}

.mo-hero-sub {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}

.mo-hero-strap {
  margin: 0;
  max-width: 46ch;
  font-family: var(--mo-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--mo-muted);
}

.mo-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Full-bleed hero image under the type, framed by hairlines + crop marks. */
.mo-hero-frame {
  position: relative;
  margin-top: 68px;
  border-top: 1px solid var(--mo-ink);
  overflow: hidden;
}

.mo-hero-frame img {
  width: 100%;
  height: min(64vh, 620px);
  object-fit: cover;
}

/* Viewfinder corner brackets — white over the photograph, always on. */
.mo-hero-frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 4;
  pointer-events: none;
  --mk: #ffffff;
  background:
    linear-gradient(var(--mk), var(--mk)) left top / 20px 2px,
    linear-gradient(var(--mk), var(--mk)) left top / 2px 20px,
    linear-gradient(var(--mk), var(--mk)) right top / 20px 2px,
    linear-gradient(var(--mk), var(--mk)) right top / 2px 20px,
    linear-gradient(var(--mk), var(--mk)) left bottom / 20px 2px,
    linear-gradient(var(--mk), var(--mk)) left bottom / 2px 20px,
    linear-gradient(var(--mk), var(--mk)) right bottom / 20px 2px,
    linear-gradient(var(--mk), var(--mk)) right bottom / 2px 20px;
  background-repeat: no-repeat;
}

/* ══ Index ticker ═════════════════════════════════════════════════════════ */

.mo-marquee {
  border-top: 1px solid var(--mo-ink);
  padding: 13px 0;
  --fx-mq: 30s;
}

.mo-marquee em {
  font-family: var(--mo-mono);
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 0 36px;
  white-space: nowrap;
}

.mo-marquee em::after {
  content: "■";
  margin-left: 72px;
  font-size: 8px;
  color: var(--mo-red);
  vertical-align: 2px;
}

/* ══ Sections — full-bleed hairline, mono label left / index right ════════ */

.mo-section {
  border-top: 1px solid var(--mo-ink);
  padding: 0 0 108px;
}

.mo-sec-head {
  padding-top: 20px;
  margin-bottom: 56px;
}

.mo-sec-rule {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.mo-sec-label {
  font-family: var(--mo-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.mo-sec-num {
  font-family: var(--mo-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mo-red);
}

.mo-sec-head h2 {
  margin: 0;
  font-family: var(--mo-display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* The red full stop — a signature, spent sparingly. */
.mo-sec-head h2 em {
  font-style: normal;
  color: var(--mo-red);
}

/* ══ Services — the stark rate table ══════════════════════════════════════ */

.mo-table {
  border-top: 1px solid var(--mo-ink);
}

.mo-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 18px;
  padding: 24px 16px;
  border-bottom: 1px solid var(--mo-ink);
  transition:
    background 0.22s ease,
    color 0.22s ease;
}

/* The inversion: the row becomes a black frame, the index turns red. */
.mo-row:hover {
  background: var(--mo-ink);
  color: var(--mo-paper);
}

.mo-row-idx {
  font-family: var(--mo-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mo-muted);
  transition: color 0.22s ease;
}

.mo-row:hover .mo-row-idx {
  color: var(--mo-red);
}

.mo-row-main {
  min-width: 0;
}

.mo-row-name {
  display: block;
  font-family: var(--mo-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.25;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.mo-row-meta {
  display: block;
  margin-top: 5px;
  font-family: var(--mo-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mo-muted);
  transition: color 0.22s ease;
}

.mo-row:hover .mo-row-meta {
  color: rgba(252, 252, 250, 0.55);
}

.mo-row-price {
  font-family: var(--mo-mono);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.mo-row-arrow {
  font-family: var(--mo-mono);
  font-size: 16px;
  line-height: 1;
  color: var(--mo-red);
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mo-row:hover .mo-row-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ══ Gallery — edge-to-edge masonry, full colour, zooms when touched ══════ */

.mo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(170px, 26vw, 320px);
  grid-auto-flow: dense;
  gap: 4px;
  border-top: 1px solid var(--mo-ink);
  border-bottom: 1px solid var(--mo-ink);
}

/* One generous 2×2 tile per six — the index breathes. Three columns make
   every full block of six tile a perfect 3×3 rectangle (4 + 5 cells); the
   span is suppressed near the tail so a short set can't leave holes. */
.mo-gallery figure:nth-child(6n + 1):not(:nth-last-child(-n + 3)) {
  grid-column: span 2;
  grid-row: span 2;
}

.mo-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #ecece9;
}

.mo-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease, transform 0.6s ease;
}

/* Brightens and zooms under the viewfinder — [data-curtain] owns ::before
   and the crop marks ::after, so the flourish is a bloom, not a sheen. */
.mo-gallery figure:hover img,
.mo-gallery figure:focus-visible img {
  filter: brightness(1.06) saturate(1.1);
  transform: scale(1.05);
}

/* Red crop marks on hover — [data-curtain] owns ::before, we take ::after. */
.mo-gallery figure::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  --mk: var(--mo-red);
  background:
    linear-gradient(var(--mk), var(--mk)) left top / 16px 2px,
    linear-gradient(var(--mk), var(--mk)) left top / 2px 16px,
    linear-gradient(var(--mk), var(--mk)) right top / 16px 2px,
    linear-gradient(var(--mk), var(--mk)) right top / 2px 16px,
    linear-gradient(var(--mk), var(--mk)) left bottom / 16px 2px,
    linear-gradient(var(--mk), var(--mk)) left bottom / 2px 16px,
    linear-gradient(var(--mk), var(--mk)) right bottom / 16px 2px,
    linear-gradient(var(--mk), var(--mk)) right bottom / 2px 16px;
  background-repeat: no-repeat;
}

.mo-gallery figure:hover::after,
.mo-gallery figure:focus-visible::after {
  opacity: 1;
}

.mo-gallery figure:focus-visible {
  outline: 2px solid var(--mo-red);
  outline-offset: -2px;
}

/* View-all control, restyled to the index vocabulary. */
.mono-theme .theme-view-more {
  margin-top: 34px;
  font-family: var(--mo-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 1;
  transition: color 0.2s ease;
}

.mono-theme .theme-view-more:hover {
  color: var(--mo-red);
}

.mono-theme .theme-view-more-icon {
  border-radius: 0;
  border-width: 1px;
  opacity: 1;
}

/* The gallery grid is full-bleed; align its button with the page gutter
   (the same left edge the wrapped headings sit on). */
.mono-theme #gallery .theme-view-more {
  margin-left: max(24px, calc((100% - 1220px) / 2 + 24px));
}

/* ══ Team — portraits, huge names, red index ══════════════════════════════ */

.mo-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 26px;
  counter-reset: mo-member;
}

.mo-member {
  counter-increment: mo-member;
  min-width: 0;
}

.mo-member-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ecece9;
}

.mo-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Hover zooms the portrait + red crop marks, same as the portfolio tiles. */
.mo-member:hover .mo-member-photo img,
.mo-member:focus-visible .mo-member-photo img {
  transform: scale(1.05);
}

/* Light sheen sweeps the portrait — crop marks own ::after, we take ::before. */
.mo-member-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.mo-member:hover .mo-member-photo::before,
.mo-member:focus-visible .mo-member-photo::before {
  transform: translateX(130%);
}

.mo-member-photo::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  --mk: var(--mo-red);
  background:
    linear-gradient(var(--mk), var(--mk)) left top / 16px 2px,
    linear-gradient(var(--mk), var(--mk)) left top / 2px 16px,
    linear-gradient(var(--mk), var(--mk)) right top / 16px 2px,
    linear-gradient(var(--mk), var(--mk)) right top / 2px 16px,
    linear-gradient(var(--mk), var(--mk)) left bottom / 16px 2px,
    linear-gradient(var(--mk), var(--mk)) left bottom / 2px 16px,
    linear-gradient(var(--mk), var(--mk)) right bottom / 16px 2px,
    linear-gradient(var(--mk), var(--mk)) right bottom / 2px 16px;
  background-repeat: no-repeat;
}

.mo-member:hover .mo-member-photo::after,
.mo-member:focus-visible .mo-member-photo::after {
  opacity: 1;
}

.mo-member-info {
  position: relative;
  margin-top: 14px;
  border-top: 1px solid var(--mo-ink);
  padding-top: 12px;
}

/* Portfolio index number, set in red mono at the rule's right edge. */
.mo-member-info::before {
  content: counter(mo-member, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 0;
  font-family: var(--mo-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mo-red);
}

.mo-member-info h3 {
  margin: 0;
  padding-right: 46px;
  font-family: var(--mo-display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.mo-member-info p {
  margin: 7px 0 0;
  font-family: var(--mo-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mo-muted);
}

/* ══ Classes — workshop ledger ════════════════════════════════════════════ */

.mo-classes {
  border-top: 1px solid var(--mo-ink);
}

.mo-class {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 16px;
  border-bottom: 1px solid var(--mo-ink);
  transition:
    background 0.22s ease,
    color 0.22s ease;
}

.mo-class:hover {
  background: var(--mo-ink);
  color: var(--mo-paper);
}

.mo-class b {
  font-family: var(--mo-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.mo-class-when {
  display: block;
  margin-top: 4px;
  font-family: var(--mo-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mo-muted);
  transition: color 0.22s ease;
}

.mo-class:hover .mo-class-when {
  color: rgba(252, 252, 250, 0.55);
}

.mo-class-seats {
  font-family: var(--mo-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mo-red);
  white-space: nowrap;
}

.mo-class-seats.is-full {
  color: var(--mo-muted);
}

.mo-class:hover .mo-class-seats.is-full {
  color: rgba(252, 252, 250, 0.55);
}

/* ══ Visit ════════════════════════════════════════════════════════════════ */

.mo-visit .mo-sec-head h2 {
  font-size: clamp(42px, 7.5vw, 96px);
}

.mo-visit .mo-sec-head {
  margin-bottom: 12px;
}

.mo-visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 38px 28px;
  margin: 34px 0 56px;
}

.mo-visit-cell {
  border-top: 1px solid var(--mo-ink);
  padding-top: 14px;
  min-width: 0;
}

.mo-visit-cell h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--mo-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.mo-visit-cell h3::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--mo-red);
}

.mo-visit-cell p {
  margin: 0 0 7px;
  font-size: 15.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.mo-visit-cell a {
  border-bottom: 1px solid var(--mo-red);
  transition: color 0.2s ease;
}

.mo-visit-cell a:hover {
  color: var(--mo-red);
}

.mo-outlets {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
}

.mo-outlets li {
  margin-bottom: 7px;
}

/* ══ Footer ═══════════════════════════════════════════════════════════════ */

.mo-footer {
  border-top: 1px solid var(--mo-ink);
  padding: 26px 0 44px;
  font-family: var(--mo-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.mo-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mo-footer a {
  transition: color 0.2s ease;
}

.mo-footer a:hover {
  color: var(--mo-red);
}

.mo-footer-social {
  display: flex;
  gap: 20px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ══ Motion ═══════════════════════════════════════════════════════════════ */

.tfx .mono-theme [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 0.55s ease,
    translate 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tfx .mono-theme [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}

/* Hero entrance — type first, frame last. */
.mono-theme .mo-hero .mo-wrap > *,
.mono-theme .mo-hero-frame {
  animation: mo-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.mono-theme .mo-hero .mo-wrap > *:nth-child(2) {
  animation-delay: 0.08s;
}

.mono-theme .mo-hero .mo-wrap > *:nth-child(3) {
  animation-delay: 0.16s;
}

.mono-theme .mo-hero-frame {
  animation-delay: 0.26s;
}

@keyframes mo-in {
  from {
    opacity: 0;
    translate: 0 28px;
  }
}

/* ══ Mobile booking bar ═══════════════════════════════════════════════════ */

.mo-mobile-bar {
  display: none;
}

/* ══ Responsive ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .mo-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: clamp(140px, 26vw, 250px);
  }

  .mo-hero-frame img {
    height: min(56vh, 520px);
  }

  .mo-section {
    padding-bottom: 92px;
  }

  .mo-team {
    gap: 40px 22px;
  }
}

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

  .mo-hero {
    padding-top: 56px;
  }

  .mo-hero-frame {
    margin-top: 52px;
  }

  .mo-sec-head {
    margin-bottom: 44px;
  }

  .mo-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 20px 12px;
  }

  .mo-row-arrow {
    display: none;
  }

  .mo-team {
    grid-template-columns: repeat(2, 1fr);
  }

  .mo-section {
    padding-bottom: 76px;
  }
}

@media (max-width: 720px) {
  .mo-nav > .mo-btn {
    display: none;
  }

  .mo-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(252, 252, 250, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--mo-ink);
    justify-content: center;
  }

  .mo-mobile-bar .mo-btn {
    width: 100%;
    text-align: center;
  }

  .mo-footer {
    padding-bottom: 120px;
  }
}

@media (max-width: 640px) {
  .mo-hero h1 {
    font-size: calc(clamp(40px, 13.5vw, 64px) * var(--tx-scale, 1));
  }

  .mo-line--outline {
    -webkit-text-stroke-width: 1.5px;
  }

  .mo-hero-tag {
    margin-bottom: 36px;
  }

  .mo-hero-frame img {
    height: min(48vh, 380px);
  }

  .mo-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(130px, 34vw, 200px);
    gap: 3px;
  }

  .mo-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px 8px;
  }

  .mo-row-idx {
    display: none;
  }

  .mo-visit-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mono-theme #gallery .theme-view-more {
    margin-left: 24px;
  }
}

@media (max-width: 560px) {
  .mo-team {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .mo-member-photo {
    aspect-ratio: 4 / 5;
  }
}

/* ══ Reduced motion ═══════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .mono-theme .mo-hero .mo-wrap > *,
  .mono-theme .mo-hero-frame {
    animation: none;
  }

  .tfx .mono-theme [data-reveal] {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .mo-gallery img,
  .mo-member-photo img,
  .mo-row,
  .mo-class,
  .mo-btn {
    transition: none;
  }
}

/* ══ Specificity guards ═══════════════════════════════════════════════════
   `.mono-theme a` (0,1,1) outranks `.mo-btn` (0,1,0); re-state colours. */

.mono-theme .mo-btn {
  color: var(--mo-paper);
}

.mono-theme .mo-btn:hover {
  color: var(--mo-on-red);
}

.mono-theme .mo-btn--line {
  color: var(--mo-ink);
}

.mono-theme .mo-btn--line:hover {
  color: var(--mo-paper);
}

/* ── Themed backdrop: film sprockets and crop marks ──────────────────────────────
   A page-wide motif tile pinned behind every section, so the canvas reads as
   film sprockets and crop marks the way the seasonal themes carry their own festive
   backdrop. `::before` is left to the existing colour wash; this rides on
   `::after` at z-index -1, which keeps it above the page background but under
   every in-flow section without having to restack the theme's own children.
   `isolation` makes the root a stacking context so the -1 layer stays inside it
   (above the root's own background) instead of sinking behind the page. */
.mono-theme {
  isolation: isolate;
}

.mono-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%3E%20%3Cg%20fill='none'%20stroke='%23111111'%20stroke-opacity='.045'%20stroke-width='1.1'%3E%20%3Crect%20x='14'%20y='14'%20width='10'%20height='7'%20rx='1.5'/%3E%3Crect%20x='14'%20y='30'%20width='10'%20height='7'%20rx='1.5'/%3E%20%3Crect%20x='14'%20y='46'%20width='10'%20height='7'%20rx='1.5'/%3E%3Crect%20x='14'%20y='62'%20width='10'%20height='7'%20rx='1.5'/%3E%20%3Crect%20x='14'%20y='78'%20width='10'%20height='7'%20rx='1.5'/%3E%3Crect%20x='14'%20y='94'%20width='10'%20height='7'%20rx='1.5'/%3E%20%3Cpath%20d='M32%208v104'%20stroke-opacity='.03'/%3E%20%3Cpath%20d='M70%2030h14M70%2030v14M112%2030H98M112%2030v14M70%2092h14M70%2092v-14M112%2092H98M112%2092v-14'/%3E%20%3C/g%3E%3C/svg%3E");
  background-size: 150px 150px;
  background-repeat: repeat;
}

/* ══ Deco: viewfinder furniture ═══════════════════════════════════════════ */
/* Ambient layer pinned behind the page (z-index 0, content lifted to 1).
   Deliberately restrained to match the gallery-white minimalism: crop-mark
   brackets breathing at the viewport corners, two slowly turning registration
   crosses, a hairline scanline gliding down the page, and a handful of mono
   ticks drifting like dust on a lightbox. One tick is signal-red. */
.mo-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mono-theme > *:not(.mo-deco) {
  position: relative;
  z-index: 1;
}

/* Crop-mark brackets breathing at the viewport corners. */
.mo-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  color: rgba(17, 17, 17, 0.22);
  animation: mo-mark-breathe 14s ease-in-out infinite alternate;
}

.mo-mark--tl { left: 14px; top: 72px; }
.mo-mark--tr { right: 14px; top: 72px; transform: rotate(90deg); animation-delay: -3.5s; }
.mo-mark--br { right: 14px; bottom: 14px; transform: rotate(180deg); animation-delay: -7s; }
.mo-mark--bl { left: 14px; bottom: 14px; transform: rotate(270deg); animation-delay: -10.5s; }

@keyframes mo-mark-breathe {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

/* Registration crosses turning almost imperceptibly. */
.mo-reg {
  position: absolute;
  width: 20px;
  height: 20px;
  color: rgba(17, 17, 17, 0.14);
  animation: mo-reg-turn 60s linear infinite;
}

.mo-reg--1 { right: 6%; top: 34%; }
.mo-reg--2 { left: 5%; bottom: 28%; width: 15px; height: 15px; animation-delay: -25s; animation-direction: reverse; }

@keyframes mo-reg-turn {
  to { transform: rotate(360deg); }
}

/* A hairline scanline gliding down the lightbox. */
.mo-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.1) 20%, rgba(17, 17, 17, 0.1) 80%, transparent);
  animation: mo-scan 25s linear infinite;
}

@keyframes mo-scan {
  from { transform: translateY(0); }
  to { transform: translateY(100vh); }
}

/* Mono ticks — short dashes drifting like dust on a lightbox. */
.mo-tick {
  position: absolute;
  width: 10px;
  height: 1.5px;
  background: rgba(17, 17, 17, 0.16);
  animation: mo-tick-drift 20s ease-in-out infinite alternate;
}

.mo-tick--1 { left: 12%; top: 18%; }
.mo-tick--2 { left: 30%; top: 64%; width: 7px; animation-delay: -4s; }
.mo-tick--3 { left: 48%; top: 26%; transform: rotate(90deg); animation-delay: -8s; }
.mo-tick--4 { left: 66%; top: 74%; width: 7px; animation-delay: -12s; }
.mo-tick--5 { left: 84%; top: 20%; transform: rotate(90deg); animation-delay: -16s; }
.mo-tick--6 { left: 22%; top: 86%; animation-delay: -6s; }
.mo-tick--7 { left: 58%; top: 48%; width: 6px; background: var(--mo-red); opacity: 0.5; animation-delay: -10s; }
.mo-tick--8 { left: 90%; top: 58%; width: 7px; animation-delay: -14s; }

@keyframes mo-tick-drift {
  from { translate: 0 0; opacity: 0.5; }
  to { translate: 14px -18px; opacity: 1; }
}

/* ── Anchored ornaments: corner frames, a measuring rail, a lens target ── */

/* Nested architectural corner frames anchored at opposing corners. */
.mo-frame {
  position: absolute;
  width: 220px;
  height: 220px;
  color: rgba(17, 17, 17, 0.4);
  animation: mo-frame-breathe 16s ease-in-out infinite alternate;
}

.mo-frame--tl { left: -6px; top: 62px; }
.mo-frame--br { right: -6px; bottom: -6px; transform: rotate(180deg); animation-delay: -8s; }

@keyframes mo-frame-breathe {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* A ruled measuring rail running down the right margin. */
.mo-rail {
  position: absolute;
  right: 16px;
  top: 26%;
  width: 44px;
  height: 260px;
  color: rgba(17, 17, 17, 0.38);
  animation: mo-rail-glide 22s ease-in-out infinite alternate;
}

@keyframes mo-rail-glide {
  from { translate: 0 0; opacity: 0.65; }
  to { translate: 0 -20px; opacity: 1; }
}

/* A lens focus target easing out of the left margin, turning imperceptibly. */
.mo-lens {
  position: absolute;
  left: -34px;
  top: 58%;
  width: 150px;
  height: 150px;
  color: rgba(17, 17, 17, 0.32);
  animation: mo-lens-turn 90s linear infinite;
}

@keyframes mo-lens-turn {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .mo-frame {
    width: 130px;
    height: 130px;
  }

  .mo-rail,
  .mo-lens {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mo-mark,
  .mo-reg,
  .mo-tick,
  .mo-frame,
  .mo-rail,
  .mo-lens {
    animation: none;
  }

  .mo-scanline {
    display: none;
  }
}
