/* ============================================================
   MARIAN FUSEK — style.css
   Full clean replacement.
   Only intentional section change: PRACTICE / big copy rows restored.
   ============================================================ */

@font-face {
  font-family: "Geist";
  src: url("./fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("./fonts/Geist-SemiBold.woff2") format("woff2");
  font-weight: 650;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("./fonts/Geist-Bold.woff2") format("woff2");
  font-weight: 750;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("./fonts/Geist-ExtraBold.woff2") format("woff2");
  font-weight: 850;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --fg: #f4f4f4;
  --muted: rgba(244, 244, 244, 0.52);
  --ghost: rgba(244, 244, 244, 0.28);
  --line: rgba(244, 244, 244, 0.105);
  --line-strong: rgba(244, 244, 244, 0.24);
  --red: #e21b16;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --section-title: clamp(10px, 1.4vw, 24px);
  --project-title: clamp(14px, 1.15vw, 22px);
  --roll-size: clamp(54px, 11.5vw, 175px);
  --timeline-year: clamp(10px, 0.78vw, 13px);
  --timeline-role: clamp(17px, 1.75vw, 32px);
  --body-copy: clamp(18px, 1.8vw, 34px);
  --mono-small: 10px;
  --page-pad: 8px;
  --section-v: 12vh;
}

html {
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", Arial, sans-serif;
  overflow-x: hidden;
}

#mf {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}

#mf * {
  box-sizing: border-box;
}

#mf a {
  color: inherit;
  text-decoration: none;
}

/* Loader */

.mf-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  pointer-events: none;
}

.mf-loader span {
  background: #000;
  transform: translateY(0);
  animation: loaderReveal 0.85s var(--ease) forwards;
}

.mf-loader span:nth-child(1) { animation-delay: 0s; }
.mf-loader span:nth-child(2) { animation-delay: 0.06s; }
.mf-loader span:nth-child(3) { animation-delay: 0.12s; }
.mf-loader span:nth-child(4) { animation-delay: 0.18s; }
.mf-loader span:nth-child(5) { animation-delay: 0.24s; }
.mf-loader span:nth-child(6) { animation-delay: 0.30s; }
.mf-loader span:nth-child(7) { animation-delay: 0.36s; }
.mf-loader span:nth-child(8) { animation-delay: 0.42s; }
.mf-loader span:nth-child(9) { animation-delay: 0.48s; }
.mf-loader span:nth-child(10) { animation-delay: 0.54s; }

@keyframes loaderReveal {
  to { transform: translateY(-100%); }
}

.mf-loader.done {
  display: none;
}

/* Background grid / noise / micro marks */

.mf-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  filter: blur(0);
  transition: opacity 1.4s var(--ease), filter 1.4s var(--ease);
  background:
    linear-gradient(to right, transparent calc(10% - 0.5px), var(--line) calc(10% - 0.5px), var(--line) calc(10% + 0.5px), transparent calc(10% + 0.5px)),
    linear-gradient(to right, transparent calc(20% - 0.5px), var(--line) calc(20% - 0.5px), var(--line) calc(20% + 0.5px), transparent calc(20% + 0.5px)),
    linear-gradient(to right, transparent calc(30% - 0.5px), var(--line) calc(30% - 0.5px), var(--line) calc(30% + 0.5px), transparent calc(30% + 0.5px)),
    linear-gradient(to right, transparent calc(40% - 0.5px), var(--line) calc(40% - 0.5px), var(--line) calc(40% + 0.5px), transparent calc(40% + 0.5px)),
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to right, transparent calc(60% - 0.5px), var(--line) calc(60% - 0.5px), var(--line) calc(60% + 0.5px), transparent calc(60% + 0.5px)),
    linear-gradient(to right, transparent calc(70% - 0.5px), var(--line) calc(70% - 0.5px), var(--line) calc(70% + 0.5px), transparent calc(70% + 0.5px)),
    linear-gradient(to right, transparent calc(80% - 0.5px), var(--line) calc(80% - 0.5px), var(--line) calc(80% + 0.5px), transparent calc(80% + 0.5px)),
    linear-gradient(to right, transparent calc(90% - 0.5px), var(--line) calc(90% - 0.5px), var(--line) calc(90% + 0.5px), transparent calc(90% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.333% - 0.5px), var(--line) calc(33.333% - 0.5px), var(--line) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
    linear-gradient(to bottom, transparent calc(66.666% - 0.5px), var(--line) calc(66.666% - 0.5px), var(--line) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
}

.mf-grid.is-soft {
  opacity: 0.55;
  filter: blur(6px);
}

.mf-grid.is-gone {
  opacity: 0;
  filter: blur(14px);
}

.mf-intersections {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.mf-mark {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.34);
  opacity: 0;
  animation: mfMark 24s steps(1) infinite;
}

.mf-mark.dot::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.mf-mark.star::before { content: "✦"; }
.mf-mark.diamond::before { content: "◆"; font-size: 7px; }

@keyframes mfMark {
  0%, 94%, 100% { opacity: 0; }
  96%, 97% { opacity: 1; }
}

.mf-noise {
  display: none;
}

.mf-blur {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14vh;
  z-index: 50;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  transition: opacity 0.35s var(--ease);
  opacity: 0;
  will-change: opacity;
}

.mf-blur.is-on { opacity: 1; }
.mf-blur.is-off { opacity: 0; }

.mf-ascii {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.14);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.mf-ascii.show {
  opacity: 1;
  transform: translateY(-4px);
}

.mf-a1 { left: 10%; top: 33%; }
.mf-a2 { left: 58%; top: 66%; }
.mf-a3 { left: 84%; top: 18%; }
.mf-a4 { left: 22%; top: 18%; }
.mf-a5 { left: 72%; top: 42%; }
.mf-a6 { left: 44%; top: 78%; }
.mf-a7 { left: 88%; top: 72%; }

/* Navigation */

.mf-nav {
  position: fixed;
  z-index: 80;
  top: 18px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: start;
  padding: 0 var(--page-pad);
  pointer-events: none;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mf-nav div,
.mf-nav a {
  pointer-events: auto;
}

.mf-nav-logo { grid-column: 1 / 2; }
.mf-nav-index { grid-column: 4 / 5; }
.mf-nav-xp { grid-column: 6 / 7; }
.mf-nav-bio { grid-column: 8 / 9; }
.mf-nav-contact { grid-column: 10 / 11; text-align: right; }

.mf-menu-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.78;
  transition: opacity 0.45s var(--ease);
  cursor: pointer;
}

.mf-menu-item:hover { opacity: 1; }

.mf-menu-item::after {
  content: "↓";
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.mf-menu-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.mf-footer-links .mf-menu-item::after { content: "↑"; }
.mf-footer-contact .mf-menu-item::after { content: "↗"; }

/* Hero */

.mf-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  z-index: 3;
  overflow: hidden;
}

.mf-hero-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  width: 100vw;
  overflow: visible;
  line-height: 0.94;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0;
  opacity: 0;
  animation: mfNameIn 1.8s var(--ease) 1.4s forwards;
  cursor: default;
  font-size: 200px;
  letter-spacing: -0.065em;
}

@keyframes mfNameIn {
  to { opacity: 1; }
}

#nameWrap {
  display: inline-block;
  width: auto;
  transform-origin: left bottom;
  will-change: transform;
}

.nc {
  display: inline;
  transition: opacity 0.06s linear, filter 0.3s var(--ease), color 0.06s linear, text-shadow 0.2s var(--ease);
}

.mf-hero-info {
  position: absolute;
  z-index: 5;
  left: 50vw;
  top: 22%;
  width: 34vw;
  max-width: 560px;
}

.mf-hero-info h1 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(18px, 2vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 400;
}

.mf-meta-row {
  margin-top: 18px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.mf-meta-cursor {
  animation: cursorBlink 1s steps(1) infinite;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

/* Shared sections */

.mf-section {
  position: relative;
  z-index: 4;
}

.mf-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.mf-reveal.visible {
  opacity: 1;
  transform: none;
}

/* Work / Index */

.mf-work {
  min-height: 110vh;
  padding: var(--section-v) 6vw;
}

.mf-index-title {
  font-size: var(--section-title);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 850;
  text-transform: uppercase;
}

.mf-strips {
  margin-top: 18vh;
}

.mf-strip {
  position: relative;
  min-height: 11vh;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 8vw 1fr 32vw 4vw;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}

.mf-strip:last-child {
  border-bottom: 1px solid var(--line);
}

.mf-strip-num,
.mf-strip-desc,
.mf-strip-plus {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.mf-strip-title {
  font-size: var(--project-title);
  letter-spacing: -0.035em;
  font-weight: 650;
}

.mf-strip-img {
  position: absolute;
  right: 8vw;
  width: 30vw;
  height: 22vh;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  filter: grayscale(1) contrast(1.1);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}

.mf-strip:hover .mf-strip-img {
  opacity: 0.72;
  transform: translateY(0) scale(1);
}

/* ============================================================
   PRACTICE (rolling expertise section)
   ============================================================ */

.mf-practice {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.mf-roll-list {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mf-roll {
  --gap: 5vw;
  --gap-hover: 18vw;
  --copy-x: 50%;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  width: 100%;
  min-height: 12vh;
  overflow: visible;

  font-size: var(--roll-size);
  line-height: .72;
  letter-spacing: -.08em;
  font-weight: 850;
  text-transform: uppercase;

  transition: gap .9s var(--ease);
}

.mf-roll:hover {
  gap: var(--gap-hover);
}

.mf-roll-left,
.mf-roll-right {
  white-space: nowrap;
  text-align: center;
}

.mf-roll:hover .mf-roll-left,
.mf-roll:hover .mf-roll-right {
  text-shadow: 0 0 16px rgba(225, 246, 255, .14);
}

.mf-roll-copy {
  position: absolute;
  top: 50%;
  left: var(--copy-x);
  transform: translate(-50%, -50%);
  width: calc(var(--gap-hover) - 4vw);
  max-width: 340px;
  color: rgba(255, 255, 255, .42);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .02em;
  font-weight: 400;
  text-transform: none;
  text-align: center;
  opacity: 0;
  transition: opacity .28s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.mf-roll:hover .mf-roll-copy {
  opacity: 1;
}

/* ============================================================
   XP / TRACK
   ============================================================ */

.mf-xp {
  min-height: 100vh;
  padding: 12vh 6vw 10vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
}

.mf-xp-head {
  position: relative;
  width: max-content;
  min-width: 0;
}

.mf-timeline-label {
  position: relative;
  font-size: var(--section-title);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 850;
  text-transform: uppercase;
  color: #fff;
}

.mf-xp-plus {
  position: absolute;
  left: 0;
  top: -1.6em;
  font-family: "Geist Mono", monospace;
  font-size: var(--mono-small);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  opacity: 0;
  transform: translateY(0);
  pointer-events: none;
}

.mf-xp-plus.pop {
  animation: xpPop 1.6s var(--ease) forwards;
}

@keyframes xpPop {
  0% { opacity: 0; transform: translateY(0); }
  10% { opacity: 1; transform: translateY(0); }
  45% { opacity: 0.8; transform: translateY(-10px); }
  70% { opacity: 0.3; transform: translateY(-13px); }
  100% { opacity: 0; transform: translateY(-16px); }
}

.mf-xp-track {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  column-gap: clamp(28px, 5vw, 96px);
  align-items: start;
}

.mf-xp-card {
  position: relative;
  min-width: 0;
  cursor: default;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.mf-xp-card.show {
  opacity: 1;
  transform: none;
}

.mf-xp-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 16px;
}

.mf-xp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 auto;
  position: relative;
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  animation: dotIdle 12s var(--ease) infinite paused;
}

.mf-xp-card.show .mf-xp-dot {
  opacity: 1;
  animation-play-state: running;
}

.mf-xp-card:hover .mf-xp-dot {
  animation: dotPulse 0.9s var(--ease) infinite;
}

.mf-xp-card:hover .mf-xp-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  animation: dotRing 0.9s var(--ease) infinite;
}

@keyframes dotIdle {
  0%, 72%, 100% { transform: scale(1); opacity: 1; }
  76%, 80% { transform: scale(1.7); opacity: 0.55; }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.85); opacity: 0.5; }
}

@keyframes dotRing {
  0% { transform: scale(0.65); opacity: 0.75; }
  100% { transform: scale(2.7); opacity: 0; }
}

.mf-xp-year {
  font-family: "Geist Mono", monospace;
  font-size: var(--timeline-year);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.mf-xp-card.show .mf-xp-year {
  opacity: 1;
  transform: none;
}

.mf-xp-card-copy {
  padding-left: 19px;
  margin-top: clamp(42px, 7vh, 82px);
}

.mf-xp-title {
  margin: 0;
  font-size: var(--timeline-role);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
  transition: filter 0.25s var(--ease), color 0.25s var(--ease), text-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
}

.mf-xp-title .xp-char {
  display: inline-block;
  min-width: 0.02em;
  transition: transform 0.12s linear, opacity 0.12s linear, filter 0.12s linear, color 0.12s linear;
}

.mf-xp-title .xp-cursor {
  display: inline-block;
  margin-left: 0;
  animation: xpCursorBlink 0.72s steps(1) infinite;
}

@keyframes xpCursorBlink {
  50% { opacity: 0; }
}

.mf-xp-title .xp-heart {
  display: inline-block;
  margin-left: 0.28em;
  color: #fff;
  transform-origin: center;
  animation: xpHeartDouble 0.92s ease-in-out infinite;
  filter: blur(0.15px);
}

@keyframes xpHeartDouble {
  0%, 100% { transform: scale(1); filter: blur(0.15px); }
  13% { transform: scale(1.32); filter: blur(1px); }
  24% { transform: scale(1); filter: blur(0.15px); }
  36% { transform: scale(1.22); filter: blur(0.8px); }
  49% { transform: scale(1); filter: blur(0.15px); }
}

.mf-xp-desc {
  margin: 15px 0 0;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  line-height: 1.42;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 260px;
}

.mf-xp-hover {
  margin: 16px 0 0;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
  max-width: 300px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.mf-xp-card:hover .mf-xp-hover {
  opacity: 1;
  transform: translateY(0);
}

.mf-xp-title.is-blood {
  color: #af0600;
  text-shadow: 0 0 7px rgba(226, 27, 22, 0.75), 0 1px 0 rgba(80, 0, 0, 0.8);
  filter: saturate(1.4) contrast(1.2);
}

.mf-xp-title.is-symbio {
  filter: blur(0.8px);
  text-shadow: 2px 0 2px rgba(0, 167, 255, 0.75), -2px 0 2px rgba(226, 27, 22, 0.65);
}

/* About */

.mf-about {
  min-height: 120vh;
  padding: var(--section-v) 6vw;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: start;
}

.mf-about-title {
  grid-column: 1 / 3;
  font-size: var(--section-title);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 850;
  text-transform: uppercase;
}

.bio-letter {
  display: inline-block;
  transition: opacity 0.8s var(--ease);
}

.bio-letter.is-off {
  opacity: 0;
}

.mf-about-layout {
  grid-column: 3 / 11;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 32px;
  min-height: 78vh;
  align-items: start;
}

.mf-about-text {
  grid-column: 1 / 5;
}

.mf-about-text p {
  margin: 0 0 1em;
  font-size: var(--body-copy);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #fff;
}

.mf-about-note {
  margin-top: 44px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.mf-photo-card {
  grid-column: 6 / 9;
  height: 54vh;
  background: linear-gradient(135deg, #151515, #050505);
  border: 1px solid var(--line);
}

.mf-art-card {
  grid-column: 5 / 8;
  margin-top: 58vh;
  border: 1px solid var(--line);
  min-height: 170px;
  padding: 18px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

.mf-art-top {
  display: flex;
  justify-content: space-between;
}

.mf-art-hidden {
  margin-top: 80px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.mf-art-card:hover .mf-art-hidden {
  opacity: 1;
}

/* Footer */

.mf-footer {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  padding: 12vh 6vw 6vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.mf-footer-inner {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 24px;
  width: 100%;
}

.mf-footer-name,
.mf-footer-mark {
  font-size: clamp(62px, 13vw, 220px);
  line-height: 0.82;
  letter-spacing: -0.08em;
  font-weight: 850;
  text-transform: uppercase;
}

.mf-footer-name {
  grid-column: 1 / 6;
}

.mf-footer-typewriter {
  grid-column: 6 / 11;
  align-self: start;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 440px;
}

.mf-tw-cursor {
  animation: cursorBlink 1s steps(1) infinite;
}

.mf-footer-links,
.mf-footer-contact {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mf-footer-links {
  grid-column: 1 / 7;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-self: end;
}

.mf-footer-contact {
  grid-column: 7 / 11;
  justify-self: end;
  align-self: end;
}

.mf-footer-mark {
  margin-top: 16vh;
  align-self: flex-end;
}

/* Overlay */

.mf-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.mf-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mf-overlay-top-left,
.mf-overlay-top-right,
.mf-close {
  position: absolute;
  z-index: 3;
  top: 18px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mf-overlay-top-left { left: 18px; }
.mf-overlay-top-right { right: 18px; }

.mf-close {
  left: 50%;
  transform: translateX(-50%);
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.mf-overlay-img {
  position: absolute;
  inset: 12vh 12vw;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.1);
}

/* Responsive */

@media (max-width: 900px) {
  :root {
    --roll-size: clamp(42px, 15vw, 96px);
    --section-v: 10vh;
  }

  .mf-nav {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 10px;
  }

  .mf-nav-logo { grid-column: 1 / 2; }
  .mf-nav-index { grid-column: 2 / 3; }
  .mf-nav-xp { grid-column: 3 / 4; }
  .mf-nav-bio { grid-column: 4 / 5; }
  .mf-nav-contact { grid-column: 1 / 5; text-align: left; margin-top: 20px; }

  .mf-hero-info {
    left: 6vw;
    right: 6vw;
    top: 20%;
    width: auto;
  }

  .mf-strip {
    grid-template-columns: 44px 1fr 44px;
    gap: 14px;
  }

  .mf-strip-desc {
    grid-column: 2 / 3;
    margin-top: 8px;
  }

  .mf-strip-img {
    display: none;
  }

  .mf-roll {
    --gap: 4vw;
    --gap-hover: 8vw;
    flex-wrap: wrap;
    text-align: center;
  }

  .mf-roll-copy {
    position: relative;
    top: auto;
    left: auto;
    width: min(420px, 86vw);
    transform: none;
    margin: 12px auto 0;
    flex-basis: 100%;
  }

  .mf-xp-track {
    grid-template-columns: 1fr;
    row-gap: 58px;
  }

  .mf-xp-card-copy {
    margin-top: 28px;
  }

  .mf-about {
    display: block;
  }

  .mf-about-layout {
    display: block;
    min-height: auto;
    margin-top: 20vh;
  }

  .mf-about-text,
  .mf-photo-card,
  .mf-art-card {
    width: 100%;
    margin-top: 40px;
  }

  .mf-footer-inner {
    display: block;
  }

  .mf-footer-typewriter,
  .mf-footer-links,
  .mf-footer-contact {
    margin-top: 36px;
  }

  .mf-footer-contact {
    justify-self: start;
  }
}