/* ==========================================================================
   mitjarobic.com — layout, sections, states and motion.
   Tokens (colour, type, spacing) come from theme.json as --wp--preset--* vars;
   they are aliased once here so the rest of the file reads like the design spec.
   ========================================================================== */

:root {
  --ink: var(--wp--preset--color--ink, #0B0B0B);
  --paper: var(--wp--preset--color--paper, #F4F2EF);
  --accent: var(--wp--preset--color--accent, #A8674A);
  --accent-soft: var(--wp--preset--color--accent-soft, #C39884);
  --muted: var(--wp--preset--color--muted, #8A8A85);
  --muted-photo: var(--wp--preset--color--muted-on-photo, #BFBDB7);
  --body-light: var(--wp--preset--color--body-on-light, #3A3A36);
  --body-dark: var(--wp--preset--color--body-on-dark, #C7C5BF);
  --faint: var(--wp--preset--color--faint, #3A3A36);

  --gutter: clamp(18px, 6vw, 110px);
  --section: clamp(84px, 15vh, 180px);
  --column-gap: clamp(34px, 6vw, 90px);
  --grid-gap: clamp(8px, 1.2vw, 18px);

  --mono: var(--wp--preset--font-family--mono, 'Space Mono', monospace);
  --display: var(--wp--preset--font-family--display, 'Familjen Grotesk', sans-serif);

  --header-h: 86px;

  /* Motion: entrances, image zooms, colour changes. */
  --ease-in: cubic-bezier(.16, 1, .3, 1);
  --ease-zoom: cubic-bezier(.22, .72, .2, 1);

  --rule-dark: rgba(244, 242, 239, .12);
  --rule-dark-strong: rgba(244, 242, 239, .3);
  --rule-light: rgba(11, 11, 11, .14);
}

/* --------------------------------------------------------------- base ---- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
  overflow-x: hidden;
}

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

/* Core wraps every image block in a <figure>. Inside our media wrappers that
   figure has to carry the full height, or the image's own height:100% resolves
   against an auto-height parent and collapses — which shows up as a hero that
   only fills the top of a phone screen. */
.mr-hero__media .wp-block-image,
.mr-pillar__zoom .wp-block-image,
.mr-shot__zoom .wp-block-image,
.mr-tile__zoom .wp-block-image,
.mr-about__portrait .wp-block-image {
  margin: 0;
  width: 100%;
  height: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

::selection {
  background: var(--accent);
  color: var(--ink);
}

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #6E6C66;
}

.mr-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--ink);
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mr-skip:focus {
  left: 0;
}

/* Shared typographic roles ------------------------------------------------ */

.mr-mono {
  font-family: var(--mono);
  text-transform: uppercase;
}

.mr-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.mr-eyebrow--accent {
  color: var(--accent);
  letter-spacing: .2em;
}

/* Over photography the full-strength accent measures 3.00:1; the tint clears AA. */
.mr-eyebrow--on-photo {
  color: var(--accent-soft);
  letter-spacing: .2em;
}

.mr-section {
  padding: var(--section) var(--gutter);
}

.mr-section--light {
  background: var(--paper);
  color: var(--ink);
}

.mr-section--dark {
  background: var(--ink);
  color: var(--paper);
}

.mr-link-underline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
  border-bottom: 1px solid var(--rule-dark-strong);
  padding-bottom: 7px;
  transition: color 400ms ease, border-color 400ms ease;
}

.mr-section--light .mr-link-underline {
  color: var(--ink);
  border-bottom-color: rgba(11, 11, 11, .25);
}

.mr-link-underline:hover,
.mr-link-underline:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ------------------------------------------------------ scroll progress -- */

.mr-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 130;
  pointer-events: none;
}

/* --------------------------------------------------------------- header -- */

.mr-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  height: var(--header-h);
  color: var(--paper);
  transition: color 400ms ease;
}

.mr-wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: inherit;
}

.mr-menu-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  color: inherit;
}

.mr-menu-toggle__word {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mr-menu-toggle__bars {
  display: grid;
  gap: 5px;
}

.mr-menu-toggle__bars span {
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: transform 400ms var(--ease-in);
}

.mr-header.is-open .mr-menu-toggle__bars span:first-child {
  transform: translateY(3px) rotate(9deg);
}

.mr-header.is-open .mr-menu-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-9deg);
}

/* --------------------------------------------------------- overlay menu -- */

.mr-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms var(--ease-in), visibility 0s linear 600ms;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px var(--gutter) clamp(28px, 5vh, 54px);
  overflow-y: auto;
}

.mr-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 600ms var(--ease-in), visibility 0s;
}

.mr-menu__cols {
  display: flex;
  gap: clamp(30px, 7vw, 120px);
  flex-wrap: wrap;
  align-items: flex-start;
}

.mr-menu__primary {
  display: grid;
  gap: clamp(4px, 1.2vh, 14px);
  flex: 1 1 380px;
}

.mr-menu__primary a {
  font-size: clamp(30px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 400ms ease;
}

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

.mr-menu__secondary {
  display: grid;
  gap: 16px;
  flex: 0 1 200px;
  padding-top: 12px;
}

.mr-menu__secondary a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 400ms ease;
}

.mr-menu__secondary a:hover,
.mr-menu__secondary a:focus-visible {
  color: var(--paper);
}

.mr-menu__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule-dark);
  padding-top: 22px;
  margin-top: 40px;
}

.mr-menu__social {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mr-menu__social a {
  color: var(--muted);
}

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

.mr-menu__email {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent);
}

/* Staggered entrance, set as a custom property by main.js. */
.mr-menu [data-menu-item] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-in), transform 600ms var(--ease-in);
}

.mr-menu.is-open [data-menu-item] {
  opacity: 1;
  transform: none;
}

body.mr-locked {
  overflow: hidden;
}

/* ---------------------------------------------------- sticky pillar tag -- */

.mr-pillar-label {
  position: fixed;
  left: clamp(10px, 2vw, 26px);
  top: 50%;
  z-index: 70;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--paper);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mr-pillar-label.is-on {
  opacity: 1;
}

.mr-pillar-label__rule {
  width: 1px;
  height: 56px;
  background: var(--accent);
}

@media (max-width: 900px) {
  .mr-pillar-label {
    display: none;
  }
}

/* ----------------------------------------------------------------- hero -- */

.mr-hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
}

.mr-hero__media {
  position: absolute;
  inset: -10% 0;
}

.mr-hero__media img,
.mr-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mr-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 11, 11, .92) 0%, rgba(11, 11, 11, .35) 42%, rgba(11, 11, 11, .55) 100%);
}

.mr-hero__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--gutter) clamp(34px, 6vh, 64px);
  pointer-events: none;
}

.mr-hero__body a {
  pointer-events: auto;
}

.mr-display {
  margin: 0;
  font-size: clamp(42px, 11.5vw, 168px);
  /* Spec says .86. The J of MITJA collides with the caron of ROBIČ at that value —
     the design was set in English. .94 is the tightest setting that clears it. */
  line-height: .94;
  letter-spacing: -.045em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--paper);
}

.mr-hero__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: clamp(20px, 3vh, 34px);
  border-top: 1px solid rgba(244, 242, 239, .18);
  padding-top: 20px;
}

.mr-hero__line {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--paper);
}

.mr-hero__place {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-photo);
}

.mr-scrollcue {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.mr-scrollcue span:first-child {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted-photo);
}

.mr-scrollcue__rule {
  width: 1px;
  height: 70px;
  background: var(--accent);
  animation: mr-cue 2600ms cubic-bezier(.6, 0, .4, 1) infinite;
}

@keyframes mr-cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 700px) {
  .mr-scrollcue {
    display: none;
  }
}

/* ---------------------------------------------------------------- intro -- */

.mr-intro__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--column-gap);
  align-items: start;
}

.mr-intro h2 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 68px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 600;
  text-transform: uppercase;
}

.mr-intro__body p {
  max-width: 62ch;
}

.mr-intro__body p:first-child {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
  color: var(--body-light);
}

.mr-intro__body p + p {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.mr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 4vw, 60px);
  margin-top: clamp(56px, 9vh, 110px);
  border-top: 1px solid var(--rule-light);
  padding-top: clamp(30px, 5vh, 54px);
}

.mr-stat__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.mr-stat__value > span:first-child {
  font-size: clamp(44px, 6vw, 86px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 600;
}

.mr-stat__plus {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  color: var(--accent);
}

.mr-stat p {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Unconfirmed figures are marked in the demo so nobody mistakes them for facts. */
.mr-todo {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* -------------------------------------------------------------- pillars -- */

.mr-pillar {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
}

.mr-pillar__media {
  position: absolute;
  inset: -8% 0;
}

.mr-pillar__zoom {
  position: absolute;
  inset: 0;
  transition: transform 600ms var(--ease-zoom);
}

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

.mr-pillar:hover .mr-pillar__zoom,
.mr-pillar:focus-visible .mr-pillar__zoom {
  transform: scale(1.045);
}

.mr-pillar__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 11, 11, .9) 0%, rgba(11, 11, 11, .28) 52%, rgba(11, 11, 11, .4) 100%);
}

.mr-pillar__subs {
  position: absolute;
  top: 110px;
  right: var(--gutter);
  max-width: 230px;
  text-align: right;
  opacity: 0;
  transition: opacity 600ms ease;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-photo);
  pointer-events: none;
}

.mr-pillar:hover .mr-pillar__subs,
.mr-pillar:focus-visible .mr-pillar__subs {
  opacity: 1;
}

.mr-pillar__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--gutter) clamp(42px, 8vh, 90px);
  pointer-events: none;
}

.mr-pillar__body a {
  pointer-events: auto;
}

.mr-pillar h2 {
  margin: 16px 0 0;
  font-size: clamp(36px, 7vw, 104px);
  line-height: .9;
  letter-spacing: -.04em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--paper);
}

.mr-pillar__blurb {
  margin: 22px 0 0;
  max-width: 50ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--body-dark);
}

/* On a phone a full-viewport screen per specialism is four screens of scrolling
   before anything else — the spec asks for tall cards instead. */
@media (max-width: 767px) {
  .mr-pillar {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .mr-pillar__subs {
    display: none;
  }
}

/* --------------------------------------------------------- selected work -- */

.mr-work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.mr-work__head h2 {
  margin: 0;
  font-size: clamp(32px, 5.6vw, 84px);
  line-height: .94;
  letter-spacing: -.04em;
  font-weight: 600;
  text-transform: uppercase;
}

.mr-work__note {
  margin: 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.mr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(34px, 6vh, 64px) 0 26px;
  border-top: 1px solid var(--rule-light);
  padding-top: 26px;
}

.mr-filter {
  background: none;
  border: 1px solid rgba(11, 11, 11, .2);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 300ms ease, border-color 300ms ease, background 300ms ease;
}

.mr-filter[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

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

.mr-shot {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: block;
  background: linear-gradient(150deg, #75695E, #22201E);
}

.mr-shot__zoom {
  position: absolute;
  inset: 0;
  transition: transform 600ms var(--ease-zoom);
}

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

.mr-shot:hover .mr-shot__zoom,
.mr-shot:focus-visible .mr-shot__zoom {
  transform: scale(1.045);
}

.mr-shot[hidden] {
  display: none;
}

.mr-shot__badge {
  position: absolute;
  left: 14px;
  top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(11, 11, 11, .55);
  padding: 6px 10px;
  pointer-events: none;
}

/* The varied spans are the design — a uniform grid is not a substitute. */
.mr-shot--w4 { grid-column: span 4; }
.mr-shot--w3 { grid-column: span 3; }
.mr-shot--w2 { grid-column: span 2; }
.mr-shot--w6 { grid-column: span 6; }

.mr-shot--r16x10 { aspect-ratio: 16 / 10; }
.mr-shot--r4x5   { aspect-ratio: 4 / 5; }
.mr-shot--r1x1   { aspect-ratio: 1 / 1; }
.mr-shot--r3x2   { aspect-ratio: 3 / 2; }
.mr-shot--r16x9  { aspect-ratio: 16 / 9; }
.mr-shot--r21x9  { aspect-ratio: 21 / 9; }

@media (max-width: 1024px) {
  .mr-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .mr-shot--w6 { grid-column: span 4; }
  .mr-shot--w3 { grid-column: span 2; }
}

@media (max-width: 600px) {
  .mr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mr-shot--w4,
  .mr-shot--w6 { grid-column: span 2; }
  .mr-shot--w2,
  .mr-shot--w3 { grid-column: span 1; }
}

/* ------------------------------------------------------------- lightbox -- */

.mr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(8, 8, 8, .97);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(14px, 2.4vw, 30px);
}

.mr-lightbox[hidden] {
  display: none;
}

.mr-lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.mr-lightbox__pos,
.mr-lightbox__caption {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mr-lightbox__caption {
  color: var(--paper);
  letter-spacing: .14em;
}

.mr-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vh, 34px) 0;
  min-height: 0;
}

.mr-lightbox__stage img {
  width: auto;
  max-width: min(100%, 1180px);
  max-height: 100%;
  object-fit: contain;
}

.mr-lightbox__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mr-btn-ghost {
  background: none;
  border: 1px solid var(--rule-dark-strong);
  padding: 10px 18px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
  transition: background 300ms ease, color 300ms ease;
}

.mr-btn-ghost:hover,
.mr-btn-ghost:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.mr-lightbox__nav {
  display: flex;
  gap: 10px;
}

/* -------------------------------------------------------------- clients -- */

.mr-clients {
  padding: 0 var(--gutter) clamp(84px, 14vh, 170px);
}

.mr-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  /* The gap *is* the hairline rule. */
  gap: 1px;
  background: rgba(11, 11, 11, .12);
  border: 1px solid rgba(11, 11, 11, .12);
}

.mr-logo {
  background: var(--paper);
  aspect-ratio: 2.4 / 1;
  position: relative;
  display: grid;
  place-items: center;
}

.mr-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Placeholder cell — no invented brand marks. */
.mr-logo--empty {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 10px;
}

.mr-quote {
  margin: clamp(44px, 7vh, 80px) 0 0;
  max-width: 62ch;
}

/* The quote is a plain paragraph so the client can edit it in place; blockquote
   is matched too in case someone swaps the block later. */
.mr-quote blockquote,
.mr-quote > p:first-child {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 32px);
  line-height: 1.35;
  letter-spacing: -.02em;
}

.mr-quote figcaption {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------ instagram -- */

.mr-ig {
  padding: clamp(70px, 11vh, 130px) 0;
}

.mr-ig__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 var(--gutter);
  margin-bottom: clamp(26px, 4vh, 46px);
}

.mr-ig__head h2 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 600;
  text-transform: uppercase;
}

.mr-ig__note {
  margin: 0;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.mr-ig__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 2px;
  overflow-x: auto;
  padding: 0 var(--gutter);
  scrollbar-width: none;
}

.mr-ig__row::-webkit-scrollbar {
  display: none;
}

.mr-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(150deg, #3A2F26, #131110);
  display: block;
}

.mr-tile__zoom {
  position: absolute;
  inset: 0;
  transition: transform 600ms var(--ease-zoom);
}

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

.mr-tile:hover .mr-tile__zoom,
.mr-tile:focus-visible .mr-tile__zoom {
  transform: scale(1.05);
}

/* ---------------------------------------------------------------- about -- */

.mr-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--column-gap);
  align-items: start;
}

.mr-about__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, #B2A392, #3A3129);
  overflow: hidden;
}

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

.mr-about h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 600;
  text-transform: uppercase;
}

.mr-about__bio {
  margin: 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-light);
}

.mr-about__bio + .mr-about__bio {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.mr-facts {
  margin: clamp(36px, 6vh, 60px) 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-light);
}

.mr-facts__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-light);
}

.mr-facts dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mr-facts dd {
  margin: 0;
  font-size: 15px;
}

@media (max-width: 480px) {
  .mr-facts__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* -------------------------------------------------------------- contact -- */

.mr-contact h2 {
  margin: 0 0 clamp(44px, 8vh, 86px);
  font-size: clamp(34px, 7vw, 116px);
  line-height: .88;
  letter-spacing: -.045em;
  font-weight: 600;
  text-transform: uppercase;
}

.mr-contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--column-gap);
  align-items: start;
}

.mr-contact__direct {
  display: grid;
  gap: 26px;
  align-content: start;
}

.mr-contact__label {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mr-contact__big {
  font-size: clamp(17px, 1.8vw, 24px);
  letter-spacing: -.01em;
  color: var(--paper);
  border-bottom: 1px solid rgba(244, 242, 239, .25);
  transition: color 400ms ease, border-color 400ms ease;
}

.mr-contact__big:hover,
.mr-contact__big:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mr-contact__elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mr-contact__elsewhere a {
  color: var(--paper);
}

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

.mr-contact__lead {
  margin: 0;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* Form — underline-only fields. Styled generically so the form plugin's markup
   picks it up as well as the fallback markup. */
.mr-form {
  display: grid;
  gap: 26px;
}

.mr-form label,
.mr-form .ff-el-group > label {
  display: grid;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mr-form input[type="text"],
.mr-form input[type="email"],
.mr-form input[type="tel"],
.mr-form select,
.mr-form textarea {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(244, 242, 239, .22);
  padding: 11px 0;
  /* The label above is mono; what the visitor types is not. Set explicitly,
     because the field would otherwise inherit the label's family. */
  font-family: var(--display);
  letter-spacing: 0;
  text-transform: none;
  /* 16px stops iOS Safari zooming the page on focus. Do not lower it. */
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper);
  outline: none;
  border-radius: 0;
  transition: border-color 300ms ease;
  width: 100%;
}

.mr-form textarea {
  resize: vertical;
}

.mr-form select {
  appearance: none;
  padding-right: 26px;
  cursor: pointer;
}

.mr-form select option {
  background: var(--ink);
  color: var(--paper);
}

.mr-select {
  position: relative;
  display: block;
}

.mr-select::after {
  content: "▼";
  position: absolute;
  right: 2px;
  top: 12px;
  pointer-events: none;
  color: var(--muted);
  font-size: 12px;
}

.mr-form input:focus,
.mr-form select:focus,
.mr-form textarea:focus {
  border-bottom-color: var(--accent);
}

.mr-form .mr-error,
.mr-form .error {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: none;
}

.mr-submit {
  justify-self: start;
  margin-top: 6px;
  background: none;
  border: 1px solid rgba(244, 242, 239, .4);
  padding: 17px 34px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper);
  transition: background 400ms ease, color 400ms ease, border-color 400ms ease;
}

.mr-submit:hover,
.mr-submit:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

/* GDPR consent — a normal checkbox row, not the underline treatment. */
.mr-form .mr-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted-photo);
  cursor: pointer;
}

.mr-form .mr-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.mr-form .mr-consent .mr-error {
  grid-column: 1 / -1;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.mr-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mr-sent {
  border-top: 1px solid var(--accent);
  padding-top: 30px;
}

.mr-sent h3 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 600;
  text-transform: uppercase;
}

.mr-sent p {
  margin: 16px 0 0;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.mr-quote__by {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----------------------------------------------------------- pillar page -- */

.mr-subpage {
  display: block;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(120px, 18vh, 190px) var(--gutter) clamp(70px, 12vh, 140px);
  min-height: 100vh;
}

.mr-subpage h1 {
  margin: 0;
  font-size: clamp(36px, 8vw, 124px);
  line-height: .88;
  letter-spacing: -.045em;
  font-weight: 600;
  text-transform: uppercase;
}

.mr-subpage__blurb {
  margin: 30px 0 0;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-dark);
}

.mr-subpage__note {
  margin: 14px 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.mr-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--grid-gap);
  margin: clamp(44px, 8vh, 90px) 0 0;
}

.mr-subgrid .mr-tile {
  aspect-ratio: 4 / 5;
}

.mr-subpage__cta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: clamp(44px, 8vh, 90px);
  border-top: 1px solid rgba(244, 242, 239, .14);
  padding-top: 30px;
}

/* --------------------------------------------------------------- footer -- */

.mr-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--rule-dark);
  padding: clamp(40px, 7vh, 70px) var(--gutter);
}

.mr-footer__cols {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.mr-footer__tag {
  margin: 14px 0 0;
  max-width: 28ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.mr-footer nav,
.mr-footer__social {
  display: grid;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mr-footer nav a,
.mr-footer__social a {
  color: var(--muted);
  transition: color 400ms ease;
}

.mr-footer nav a:hover,
.mr-footer__social a:hover,
.mr-footer nav a:focus-visible,
.mr-footer__social a:focus-visible {
  color: var(--paper);
}

.mr-footer__legal {
  margin: clamp(34px, 6vh, 60px) 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  /* Spec asks for #3A3A36, which is 1.7:1 on ink and unreadable at 10px.
     Stepped to the palette's muted tone (5.7:1). */
  color: var(--muted);
}

.mr-footer__credit a {
  color: var(--paper);
  transition: color 400ms ease;
}

.mr-footer__credit a:hover,
.mr-footer__credit a:focus-visible {
  color: var(--accent-soft);
}

/* ---------------------------------------------------------------- cover -- */

.mr-cover {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
}

.mr-cover__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #2C241F 0%, #12100E 55%, #0B0B0B 100%);
  animation: mr-drift 26s ease-in-out infinite alternate;
}

.mr-cover__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

/* Both scrims are part of the theme, not editable blocks — they are what keeps
   the text readable, and the client should not be able to delete them. */
.mr-cover__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 11, 11, .95) 0%, rgba(11, 11, 11, .7) 45%, rgba(11, 11, 11, .8) 100%);
}

.mr-cover__veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 11, 11, .45) 0%, rgba(11, 11, 11, .35) 55%, rgba(11, 11, 11, 0) 100%);
}

@keyframes mr-drift {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(0, -2%, 0); }
}

.mr-cover__band {
  position: relative;
  z-index: 2;
}

.mr-cover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 4vh, 38px) var(--gutter);
}

.mr-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-photo);
}

.mr-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.mr-cover__centre {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(26px, 4vh, 44px);
  padding: clamp(30px, 6vh, 70px) var(--gutter);
}

.mr-cover__name {
  margin: 0;
  font-size: clamp(40px, 10.5vw, 150px);
  line-height: .94;
  letter-spacing: -.045em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--paper);
}

.mr-cover__lead-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 60px);
  flex-wrap: wrap;
  border-top: 1px solid rgba(244, 242, 239, .18);
  padding-top: 22px;
}

.mr-cover__copy {
  max-width: 40ch;
}

.mr-cover__lead {
  margin: 0;
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.45;
}

.mr-cover__sub {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-photo);
}

.mr-cover__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mr-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 400ms ease, color 400ms ease, border-color 400ms ease;
}

.mr-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.mr-btn--ghost {
  background: none;
  border-color: rgba(244, 242, 239, .4);
  color: var(--paper);
}

.mr-btn:hover,
.mr-btn:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.mr-cover__strip {
  padding: 0 var(--gutter) clamp(24px, 4vh, 44px);
}

.mr-cover__strip-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.mr-cover__handle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color 400ms ease;
}

.mr-cover__handle:hover,
.mr-cover__handle:focus-visible {
  color: var(--accent);
}

.mr-cover__strip-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-photo);
}

.mr-cover__tiles {
  display: grid;
  /* auto-fit is the whole responsive story: six across on desktop, three on a phone. */
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2px;
}

.mr-cover__footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule-dark);
  padding: 20px var(--gutter) clamp(22px, 4vh, 34px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.mr-cover__credit {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.mr-cover__credit a {
  color: var(--paper);
  transition: color 400ms ease;
}

.mr-cover__credit a:hover,
.mr-cover__credit a:focus-visible {
  color: var(--accent-soft);
}

/* Portrait phones crop a 3:2 frame hard; shifting the focal point drops the lit
   ridge into the open band under the buttons instead of behind the headline. */
@media (max-width: 700px) {
  .mr-cover__backdrop img {
    object-position: 50% 28%;
  }

  .mr-cover__veil {
    height: 52%;
    background: linear-gradient(to top, rgba(11, 11, 11, .4) 0%, rgba(11, 11, 11, .28) 55%, rgba(11, 11, 11, 0) 100%);
  }
}

/* --------------------------------------------------------------- motion -- */

.mr-reveal {
  opacity: 0;
  transform: translateY(26px);
}

.mr-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 800ms var(--ease-in), transform 800ms var(--ease-in);
  transition-delay: var(--mr-delay, 0ms);
}

/* Anything above the fold on load must never be hidden — main.js adds this
   before the observer runs, and it is also the no-JS fallback. */
.no-js .mr-reveal,
.mr-reveal.is-instant {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------- custom cursor -- */

.mr-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 200;
  display: grid;
  place-items: center;
  /* Hidden until the pointer first moves — otherwise it sits in the middle of
     the page looking like a stray dot. */
  opacity: 0;
  transition: width 300ms var(--ease-in), height 300ms var(--ease-in), opacity 200ms ease;
}

.mr-cursor.is-live {
  opacity: 1;
}

.mr-cursor__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 200ms ease;
}

.mr-cursor.is-view {
  width: 76px;
  height: 76px;
}

.mr-cursor.is-view .mr-cursor__label {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .mr-cursor {
    display: none;
  }
}

/* ------------------------------------------------------- reduced motion -- */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .mr-cursor {
    display: none;
  }
}
