.memory-format-page {
  background: var(--ink);
}

.mf-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--lime);
  font: 800 11px/1 var(--mono);
  text-transform: uppercase;
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.mf-skip-link:focus { transform: translateY(0); }

.memory-format-page code { color: var(--lime); font-family: var(--mono); font-size: .88em; }
.mf-hero h1,
.mf-lede h2,
.mf-reader h2,
.mf-anatomy h2,
.mf-profiles h2,
.mf-preview h2,
.mf-closing h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .88;
  text-transform: uppercase;
  text-wrap: balance;
}
.mf-hero h1 span,
.mf-preview h2 span,
.mf-closing h2 span { color: var(--lime); }

.mf-hero {
  min-height: calc(100svh - 92px);
  padding: clamp(36px, 5vh, 58px) clamp(26px, 5vw, 78px) clamp(42px, 6vh, 68px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  grid-template-areas:
    "logo copy"
    "title title";
  column-gap: clamp(48px, 7vw, 110px);
  row-gap: clamp(22px, 3.5vh, 32px);
  align-content: center;
}
.mf-thinking-grid {
  width: 100vw;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  display: block;
  pointer-events: none;
  transform: translateX(-50%);
}
.mf-hero-brand,
.mf-hero h1,
.mf-hero-copy { position: relative; z-index: 1; }
.mf-hero-title { display: contents; }
.mf-hero-brand {
  grid-area: logo;
  width: max-content;
  display: inline-flex;
  align-items: center;
  align-self: end;
  gap: 18px;
}
.mf-hero-logo {
  width: clamp(62px, 5vw, 82px);
  display: block;
  height: auto;
  filter: brightness(0) saturate(100%) invert(90%) sepia(27%) saturate(1045%) hue-rotate(38deg) brightness(99%) contrast(84%);
}
.mf-hero-wordmark { color: var(--lime); font: 800 24px/1 var(--mono); letter-spacing: .06em; }
.mf-hero h1 { grid-area: title; max-width: 1420px; color: var(--lime); font-size: clamp(66px, 6.6vw, 106px); line-height: calc(.82em + 16px); }
.mf-hero h1 span { display: block; }
.mf-hero-copy { grid-area: copy; align-self: start; }
.mf-hero-copy > p { max-width: 540px; margin: 0 0 24px; color: var(--paper); font-size: clamp(17px, 1.3vw, 21px); line-height: 1.55; text-wrap: pretty; }
.mf-hero-copy small { display: block; padding-top: 16px; border-top: 1px solid var(--line); color: rgba(247, 250, 247, .5); font: 9px/1.5 var(--mono); text-transform: uppercase; }

.mf-lede {
  padding-block: clamp(100px, 11vw, 175px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(70px, 9vw, 150px);
  align-items: start;
}
.mf-lede h2 { max-width: 850px; font-size: clamp(62px, 6.4vw, 106px); }
.mf-lede-copy > p { max-width: 650px; margin: 2px 0 48px; color: var(--paper); font-size: clamp(18px, 1.4vw, 22px); line-height: 1.65; text-wrap: pretty; }
.mf-principles { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.mf-principles li { min-height: 92px; padding: 20px 0; display: grid; grid-template-columns: 52px 145px 1fr; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.mf-principles span { color: var(--lime); font: 10px/1 var(--mono); }
.mf-principles strong { font-size: 17px; font-weight: 600; }
.mf-principles small { color: rgba(247, 250, 247, .68); font: 9px/1.5 var(--mono); text-transform: uppercase; }

.mf-reader { padding: clamp(28px, 3.5vw, 56px); }
.mf-reader-heading { padding: clamp(20px, 2.5vw, 36px) clamp(4px, 1vw, 16px) clamp(44px, 5vw, 76px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; }
.mf-reader h2 { font-size: clamp(54px, 4.7vw, 78px); }
.mf-reader h2 span { display: block; white-space: nowrap; }
.mf-reader-heading > p { max-width: 570px; margin: 0 0 6px; color: rgba(247, 250, 247, .7); font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.mf-reader-frame { width: 75%; margin: 0 auto; overflow: hidden; border: 4px solid var(--lime); border-radius: 24px; background: #121212; box-shadow: 0 0 0 4px var(--ink), 0 40px 100px rgba(0, 9, 5, .42); }
.mf-reader-screen { position: relative; overflow: hidden; background: #121212; }
.mf-reader-screen > img { display: block; width: 100%; height: auto; }

.mf-anatomy {
  padding-block: clamp(115px, 12vw, 190px);
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  gap: clamp(80px, 10vw, 165px);
  align-items: center;
}
.mf-file { position: relative; border: 1px solid var(--line); background: rgba(177, 231, 110, .028); box-shadow: 28px 28px 0 rgba(177, 231, 110, .035); }
.mf-file::before { content: ""; position: absolute; inset: 18px -19px -19px 18px; z-index: -1; border: 1px solid rgba(177, 231, 110, .16); }
.mf-file-header { min-height: 112px; padding: 20px 24px; display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: center; border-bottom: 1px solid var(--line); }
.mf-file-mark { width: 70px; height: 70px; display: grid; place-items: center; }
.mf-file-mark img { width: 64px; height: 64px; object-fit: contain; filter: brightness(0) invert(1); }
.mf-file-header > div { display: flex; flex-direction: column; gap: 7px; }
.mf-file-header strong { font: 900 clamp(18px, 1.6vw, 25px)/1 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.mf-file-header small { color: rgba(247, 250, 247, .62); font: 9px/1.2 var(--mono); text-transform: uppercase; }
.mf-file-layers > div { min-height: 105px; padding: 22px 24px; display: grid; grid-template-columns: 52px 112px 1fr; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.mf-file-layers span { color: var(--lime); font: 10px/1 var(--mono); }
.mf-file-layers strong { font-size: 14px; font-weight: 600; }
.mf-file-layers p { margin: 0; color: rgba(247, 250, 247, .68); font-size: 13px; line-height: 1.55; }
.mf-file-footer { min-height: 56px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--lime); font: 8px/1.2 var(--mono); text-transform: uppercase; }
.mf-anatomy h2 { max-width: 780px; font-size: clamp(60px, 6vw, 98px); }
.mf-anatomy-copy > p { max-width: 680px; margin: 38px 0; color: rgba(247, 250, 247, .7); font-size: 17px; line-height: 1.7; }
.mf-honesty { max-width: 680px; padding: 22px 0; display: grid; grid-template-columns: 155px 1fr; gap: 25px; border-block: 1px solid var(--line); }
.mf-honesty strong { color: var(--lime); font: 700 10px/1.4 var(--mono); text-transform: uppercase; }
.mf-honesty p { margin: 0; color: var(--paper); font-size: 13px; line-height: 1.6; }

.mf-profiles { padding: clamp(72px, 8vw, 125px); }
.mf-profiles > header { padding-bottom: clamp(65px, 7vw, 110px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; align-items: end; }
.mf-profiles h2 { font-size: clamp(60px, 6vw, 100px); }
.mf-profiles > header > p { max-width: 560px; margin: 0 0 7px; color: rgba(247, 250, 247, .7); font-size: 17px; line-height: 1.7; }
.mf-profile-list { border-top: 1px solid var(--line); }
.mf-profile-list article { min-height: 132px; padding: 28px 0; display: grid; grid-template-columns: 70px minmax(180px, .55fr) minmax(260px, .8fr) 1.45fr; gap: 26px; align-items: center; border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s ease; }
.mf-profile-list article:hover { padding-inline: 18px; background: rgba(177, 231, 110, .05); }
.mf-profile-list article > span { color: var(--lime); font: 10px/1 var(--mono); }
.mf-profile-list h3 { margin: 0 24px 0 0; font: 900 clamp(28px, 2.5vw, 42px)/.95 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.mf-profile-tags { min-width: 0; margin-left: clamp(18px, 2vw, 32px); display: flex; flex-wrap: wrap; gap: 8px; }
.mf-profile-list code { width: fit-content; padding: 8px 10px; border: 1px solid rgba(177, 231, 110, .2); background: rgba(177, 231, 110, .04); font-size: 10px; }
.mf-profile-list p { max-width: 610px; margin: 0; color: rgba(247, 250, 247, .68); font-size: 14px; line-height: 1.6; }

.mf-preview { padding-block: clamp(120px, 13vw, 205px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(80px, 10vw, 160px); }
.mf-preview-intro { position: sticky; top: 80px; align-self: start; }
.mf-preview h2 { font-size: clamp(60px, 6.2vw, 102px); }
.mf-preview-intro > p:last-child { max-width: 650px; margin: 38px 0 0; color: rgba(247, 250, 247, .7); font-size: 17px; line-height: 1.7; }
.mf-capabilities { border-top: 1px solid var(--line); }
.mf-capabilities article { min-height: 188px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.mf-capabilities h3 { margin: 0 0 13px; font: 900 35px/.95 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.mf-capabilities article p { max-width: 620px; margin: 0; color: rgba(247, 250, 247, .68); line-height: 1.65; }
.mf-capabilities aside { margin-top: 36px; padding: 28px; border-left: 3px solid var(--lime); background: rgba(177, 231, 110, .065); }
.mf-capabilities aside strong { color: var(--lime); font: 700 10px/1 var(--mono); text-transform: uppercase; }
.mf-capabilities aside p { margin: 10px 0 0; color: var(--paper); line-height: 1.6; }

.mf-closing { min-height: 650px; padding-block: 100px; display: flex; flex-direction: column; justify-content: center; }
.mf-closing h2 { margin-bottom: 44px; color: var(--lime); font-size: clamp(18.75px, 6.125vw, 100px); line-height: .9; white-space: nowrap; }

@media (max-width: 1080px) {
  .mf-file::before { right: 0; }
  .mf-lede,
  .mf-anatomy,
  .mf-preview { grid-template-columns: 1fr; gap: 70px; }
  .mf-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "title"
      "copy";
    gap: 28px;
    align-content: center;
  }
  .mf-hero-copy > p { max-width: 780px; }
  .mf-lede-copy > p { max-width: 800px; }
  .mf-reader-heading,
  .mf-profiles > header { grid-template-columns: 1fr; gap: 38px; }
  .mf-reader-heading > p,
  .mf-profiles > header > p { max-width: 760px; }
  .mf-profile-list article { grid-template-columns: 52px max-content minmax(0, 1fr); row-gap: 14px; }
  .mf-profile-tags { margin-left: 0; }
  .mf-profile-list p { grid-column: 2 / -1; }
  .mf-file { width: min(780px, 100%); }
  .mf-anatomy-copy { max-width: 900px; }
  .mf-preview-intro { position: static; }
}

@media (max-width: 700px) {
  .memory-format-page .shell { width: calc(100% - 24px); }
  .mf-hero { min-height: 0; padding: 34px 20px 46px; gap: 24px; align-content: start; }
  .mf-hero h1 { font-size: clamp(42px, 12.5vw, 54px); overflow-wrap: anywhere; }
  .mf-hero-logo { width: 50px; }
  .mf-hero-copy > p { margin-bottom: 20px; font-size: 15px; line-height: 1.5; }
  .mf-hero-copy small { padding-top: 14px; font-size: 8px; }
  .mf-lede { padding-block: 90px; gap: 48px; }
  .mf-lede h2,
  .mf-reader h2,
  .mf-anatomy h2,
  .mf-profiles h2,
  .mf-preview h2 { font-size: clamp(48px, 13.5vw, 62px); overflow-wrap: anywhere; }
  .mf-preview h2 { font-size: clamp(38px, 10vw, 46px); overflow-wrap: normal; }
  .mf-reader h2 { font-size: clamp(20px, 6.2vw, 30px); overflow-wrap: normal; }
  .mf-lede-copy > p { margin-bottom: 36px; font-size: 17px; }
  .mf-principles li { grid-template-columns: 36px 106px 1fr; gap: 9px; }
  .mf-reader { width: calc(100% - 12px); padding: 12px; }
  .mf-reader-frame { width: 100%; border-radius: 15px; }
  .mf-reader-heading { padding: 30px 10px 42px; gap: 24px; }
  .mf-reader-heading > p { font-size: 15px; }
  .mf-reader-screen { height: auto; }
  .mf-reader-screen > img { width: 100%; height: auto; }
  .mf-anatomy { padding-block: 100px; gap: 58px; }
  .mf-file { box-shadow: 12px 12px 0 rgba(177, 231, 110, .035); }
  .mf-file::before { inset: 10px 0 -10px 10px; }
  .mf-file-header { grid-template-columns: 62px 1fr; gap: 14px; padding: 16px; }
  .mf-file-mark { width: 58px; height: 58px; }
  .mf-file-mark img { width: 52px; height: 52px; }
  .mf-file-layers > div { min-height: 0; padding: 20px 16px; grid-template-columns: 34px 86px 1fr; gap: 8px; align-items: start; }
  .mf-file-layers p { font-size: 11px; }
  .mf-file-footer { padding: 0 16px; gap: 7px; font-size: 7px; }
  .mf-anatomy-copy > p { margin-block: 28px; font-size: 15px; }
  .mf-honesty { grid-template-columns: 1fr; gap: 10px; }
  .mf-profiles { padding: 72px 20px; }
  .mf-profiles > header { padding-bottom: 58px; gap: 25px; }
  .mf-profiles > header > p { font-size: 15px; }
  .mf-profile-list article { padding: 24px 0; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
  .mf-profile-list article:hover { padding-inline: 8px; }
  .mf-profile-list h3 { font-size: 30px; }
  .mf-profile-tags,
  .mf-profile-list p { grid-column: 2; }
  .mf-profile-tags { margin: 10px 0 4px; }
  .mf-profile-list p { font-size: 13px; }
  .mf-preview { padding-block: 100px; gap: 60px; }
  .mf-preview-intro > p:last-child { font-size: 15px; }
  .mf-capabilities article { min-height: 0; padding: 30px 0; }
  .mf-capabilities h3 { font-size: 30px; }
  .mf-capabilities aside { padding: 22px; }
  .mf-closing { min-height: 560px; padding-block: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .mf-skip-link,
  .mf-profile-list article { transition: none; }
}
