/* ============================================================
   MAISON FRAME — the honest film studio for property
   Art direction v3: fashion-house minimalism
   Reference: Saint Laurent · The Row · Danish design studios
   Monochrome interface (colour lives only in the imagery).
   Type: Helvetica Neue — stark, uppercase, letter-spaced.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  --paper:   #FBFBF9;   /* barely-warm white          */
  --paper-2: #F2F1EC;   /* faint grey band            */
  --ink:     #0B0B0B;   /* near-black                 */
  --stone:   #8C8C86;   /* muted grey                 */
  --line:    rgba(11,11,11,0.14);
  --line-2:  rgba(11,11,11,0.08);

  /* legacy accent hooks kept monochrome so every page inherits */
  --aegean:  #0B0B0B;
  --sea:     #E6E5E0;
  --sea-soft:#EEEDE8;
  --paper-3: #E6E5E0;
  --hair:    rgba(11,11,11,0.14);
  --hair-ink:rgba(11,11,11,0.08);

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--sans);
  --grot: var(--sans);
  --mono: var(--sans);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.76, 0, 0.24, 1);

  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 96rem;
}

/* ---------- Base ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button { cursor: none; }

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

/* ---------- Typography ---------- */
.display {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.display em { font-style: normal; font-weight: 300; color: var(--ink); }

h1.display { font-size: clamp(2.7rem, 9vw, 9rem); font-weight: 500; letter-spacing: -0.03em; }
h2.display { font-size: clamp(1.9rem, 5vw, 4.4rem); }
h3.display { font-size: clamp(1.25rem, 2.4vw, 2.1rem); letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow--stone { color: var(--stone); }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 40ch;
  font-weight: 400;
  letter-spacing: 0;
}
.muted { color: var(--stone); font-weight: 400; }
.serif-quote { font-family: var(--sans); font-style: normal; font-weight: 300; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(5rem, 15vh, 13rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 8vh, 7rem); }
.section--sand { background: var(--paper-2); }
.rule { height: 1px; background: var(--line); border: 0; }
.rule--faint { background: var(--line-2); }

.split { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

/* ============================================================
   NAV — tiny uppercase, letter-spaced, minimal
   ============================================================ */
.mf-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem var(--pad);
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
body.scrolled .mf-nav { padding-block: 1rem; background: rgba(251,251,249,0.88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-2); }
.mf-nav__logo {
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.6ch;
}
.mf-nav__logo span { display: none; }
.mf-nav__logo img { height: 14px; width: auto; display: block; transition: opacity 0.3s var(--ease); }
.mf-nav__logo:hover img { opacity: 0.6; }
@media (min-width: 860px){ .mf-nav__logo img { height: 15px; } }
.mf-nav__links { display: none; gap: clamp(1.4rem, 2.6vw, 2.8rem); align-items: center; }
.mf-nav__links a {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink); position: relative; padding-block: 0.3rem; opacity: 0.7;
  transition: opacity 0.35s var(--ease);
}
.mf-nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.mf-nav__links a:hover { opacity: 1; }
.mf-nav__links a:hover::after, .mf-nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.mf-nav__links a[aria-current="page"] { opacity: 1; }

.mf-nav__cta {
  display: none;
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 0.7rem 1.3rem; color: var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.mf-nav__cta:hover { background: var(--ink); color: var(--paper); }
.mf-nav__burger { display: inline-flex; flex-direction: column; gap: 6px; padding: 0.4rem; }
.mf-nav__burger span { width: 26px; height: 1px; background: var(--ink); transition: transform 0.4s var(--ease), opacity 0.2s; }
body.menu-open .mf-nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .mf-nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .mf-nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 860px) {
  .mf-nav__links { display: flex; }
  .mf-nav__cta { display: inline-block; }
  .mf-nav__burger { display: none; }
}

/* Mobile drawer */
.mf-drawer {
  position: fixed; inset: 0; z-index: 480; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 0.2rem;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease-out); pointer-events: none;
}
body.menu-open .mf-drawer { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mf-drawer a {
  font-family: var(--sans); font-size: clamp(1.8rem, 8vw, 3rem); font-weight: 400; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1.2; color: var(--ink);
  opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mf-drawer a em { font-style: normal; font-weight: 300; }
body.menu-open .mf-drawer a { opacity: 1; transform: none; }
body.menu-open .mf-drawer a:nth-child(1){ transition-delay: 0.1s; }
body.menu-open .mf-drawer a:nth-child(2){ transition-delay: 0.15s; }
body.menu-open .mf-drawer a:nth-child(3){ transition-delay: 0.2s; }
body.menu-open .mf-drawer a:nth-child(4){ transition-delay: 0.25s; }
body.menu-open .mf-drawer a:nth-child(5){ transition-delay: 0.3s; }
body.menu-open .mf-drawer a:nth-child(6){ transition-delay: 0.35s; }
body.menu-open .mf-drawer a:nth-child(7){ transition-delay: 0.4s; }

/* ============================================================
   BUTTONS — stark uppercase, thin box that inverts
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.8ch;
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.1rem 1.9rem; color: var(--paper);
  background: var(--ink); border: 1px solid var(--ink); overflow: hidden;
  transition: color 0.5s var(--ease), background 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--paper);
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn > * { position: relative; z-index: 1; }
.btn:active { opacity: 0.85; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }

.btn__arrow { transition: transform 0.45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* Text link — underline draw */
.tlink {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.7ch; position: relative; padding-bottom: 3px;
}
.tlink::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--ink); transform: scaleX(1); transform-origin: left; transition: transform 0.45s var(--ease); }
.tlink:hover::after { transform: scaleX(0); transform-origin: right; }

/* ============================================================
   MEDIA / FRAMES — no borders, monochrome plates, reveal
   ============================================================ */
.frame { position: relative; overflow: hidden; background: var(--paper-2); }
.frame::after { content: none; }
.frame__reveal { position: absolute; inset: 0; background: var(--paper); z-index: 4; transform-origin: top; transition: transform 1s var(--ease-out); }
.frame.in .frame__reveal { transform: scaleY(0); }

.media { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s var(--ease); }
.frame:hover .media { transform: scale(1.05); }

/* Placeholder plates — soft monochrome, no colour */
.plate {
  aspect-ratio: 4 / 3; width: 100%; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #EDECE7 0%, #E0DFD9 60%, #D6D5CE 100%);
}
.plate--tall { aspect-ratio: 3 / 4; }
.plate--wide { aspect-ratio: 16 / 9; }
.plate--sand { background: linear-gradient(150deg, #EFEEE9 0%, #E4E2DB 100%); }
.plate__tag {
  position: absolute; left: 1.1rem; bottom: 1.1rem;
  font-family: var(--sans); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); opacity: 0.55; z-index: 2;
}
.plate__slate {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--sans); font-weight: 300; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: clamp(0.9rem, 1.8vw, 1.3rem); color: var(--ink); opacity: 0.28;
}

/* ============================================================
   HONEST EDIT mark — minimal
   ============================================================ */
.mark {
  display: inline-flex; align-items: center; gap: 0.7ch;
  border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 0.45rem 0;
  font-family: var(--sans); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink);
}
.mark__seal { display: inline; border: 0; color: var(--ink); font-size: 0.7rem; opacity: 0.75; }
.mark--lg { padding: 0 0 0.55rem 0; font-size: 0.6875rem; letter-spacing: 0.22em; }
.mark--lg .mark__seal { font-size: 0.8rem; }

/* ============================================================
   CARDS — borderless, rule-separated
   ============================================================ */
.card {
  border: 0; border-top: 1px solid var(--line); background: transparent;
  padding: 2.2rem 0 0 0; position: relative;
  transition: none;
}
.card:hover { transform: none; box-shadow: none; }
.card:hover .plate .media { transform: scale(1.05); }
.card__no { font-family: var(--sans); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.card h3 { margin-block: 1rem 0.6rem; }

.steps { display: grid; gap: 0; }
.step { border-top: 1px solid var(--line); padding: 2rem 0; display: grid; gap: 0.4rem; }
.step__no { font-family: var(--sans); color: var(--stone); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.step h4 { font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em; font-size: 1.1rem; margin-block: 0.3rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem,3vw,3rem); } .steps--rows { grid-template-columns: 1fr; } }

.stat { font-family: var(--sans); font-weight: 400; font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.95; color: var(--ink); letter-spacing: -0.03em; }
.stat em { font-style: normal; font-weight: 300; }

/* Pricing */
.tiers { display: grid; gap: 0; }
@media (min-width: 820px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { border-top: 1px solid var(--ink); padding: 2.2rem clamp(0rem,2vw,2rem) 2.2rem 0; display: flex; flex-direction: column; gap: 1.1rem; }
.tier--feature { border-top-width: 2px; }
.tier__price { font-family: var(--sans); font-weight: 400; font-size: 2.4rem; line-height: 1; letter-spacing: -0.02em; }
.tier__price small { font-size: 0.85rem; color: var(--stone); font-family: var(--sans); letter-spacing: 0.02em; }
.tier ul { display: grid; gap: 0.7rem; margin-block: 0.4rem; }
.tier li { display: flex; gap: 0.9ch; font-size: 0.9rem; color: var(--ink); line-height: 1.5; }
.tier li::before { content: ""; flex: 0 0 14px; height: 1px; background: var(--ink); margin-top: 0.75em; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.6rem; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 3.5rem; will-change: transform; }
.marquee__track span { font-family: var(--sans); font-weight: 300; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(1.4rem, 3vw, 2.6rem); color: var(--ink); }
.marquee__track span b { color: var(--ink); font-weight: 500; }

/* ============================================================
   HERO — full-bleed, restrained, image-led
   ============================================================ */
.hero { min-height: 100svh; display: flex; align-items: flex-end; position: relative; overflow: hidden; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(11,11,11,0.62) 0%, rgba(11,11,11,0.14) 34%, transparent 58%), url("../assets/hero.webp") center/cover no-repeat;
  transform: scale(1.06); animation: heroZoom 24s var(--ease) forwards; will-change: transform; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::before { content: none; }
.hero__sun { display: none; }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 9vh, 6rem); color: #fff; }
.hero__inner .eyebrow, .hero__inner .lede, .hero__inner .display { color: #fff; }
.hero h1 { margin-block: 1.4rem 1.6rem; max-width: 16ch; }
.hero__row { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; align-items: center; }
.hero__scroll { position: absolute; right: var(--pad); bottom: clamp(3rem,9vh,6rem); z-index: 2;
  font-family: var(--sans); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); writing-mode: vertical-rl; display: none; opacity: 0.6; }
@media (min-width: 860px){ .hero__scroll { display: block; } }

/* Hero buttons over difference-blend: keep them plain */
.hero__inner .btn { mix-blend-mode: normal; }

/* ============================================================
   FOOTER
   ============================================================ */
.mf-footer { border-top: 1px solid var(--line); padding-block: clamp(4rem,9vh,6rem) 2.5rem; }
.mf-footer__grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 760px){ .mf-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.mf-footer__big { font-family: var(--sans); font-weight: 400; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1; }
.mf-footer__big em { font-style: normal; font-weight: 300; }
.mf-footer__col h5 { font-family: var(--sans); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-bottom: 1.2rem; }
.mf-footer__col a { display: block; padding-block: 0.4rem; color: var(--ink); opacity: 0.75; transition: opacity 0.3s; font-size: 0.85rem; }
.mf-footer__col a:hover { opacity: 1; }
.mf-footer__base { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line-2); }
.mf-footer__base, .mf-footer__base a { font-family: var(--sans); font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.mf-footer__base a:hover { color: var(--ink); }

/* ============================================================
   REVEALS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: 0.09s; }
.reveal[data-d="2"]{ transition-delay: 0.18s; }
.reveal[data-d="3"]{ transition-delay: 0.27s; }
.reveal[data-d="4"]{ transition-delay: 0.36s; }
.line-mask { overflow: hidden; padding-bottom: 0.06em; }
.line-mask > * { display: block; transform: translateY(112%); transition: transform 0.9s var(--ease-out); }
.line-mask.in > * { transform: none; }
.line-mask[data-d="1"] > * { transition-delay: 0.08s; }
.line-mask[data-d="2"] > * { transition-delay: 0.16s; }
.line-mask[data-d="3"] > * { transition-delay: 0.24s; }

/* ============================================================
   CUSTOM CURSOR — small black dot + lerped ring
   ============================================================ */
.mf-cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; display: none; mix-blend-mode: difference; }
body.cursor-on .mf-cursor { display: block; }
.mf-cursor__dot { position: fixed; width: 5px; height: 5px; background: #fff; border-radius: 50%; transform: translate(-50%,-50%); }
.mf-cursor__ring { position: fixed; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.6); border-radius: 50%; transform: translate(-50%,-50%); transition: width 0.35s var(--ease), height 0.35s var(--ease); display: grid; place-items: center; }
.mf-cursor__ring span { font-family: var(--sans); font-size: 0.5rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity 0.2s; }
body.cursor-hover .mf-cursor__ring { width: 54px; height: 54px; }
body.cursor-media .mf-cursor__ring { width: 76px; height: 76px; }
body.cursor-media .mf-cursor__ring span { opacity: 1; }

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-old(root) { animation: 0.4s var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: 0.5s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
.page-wipe { position: fixed; inset: 0; z-index: 9500; background: var(--paper); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }
.page-wipe.entering { animation: wipe-in 0.55s var(--ease-out) forwards; }
.page-wipe.leaving { transform-origin: top; animation: wipe-out 0.55s var(--ease-out) forwards; }
@keyframes wipe-in { from { transform: scaleY(1); } to { transform: scaleY(0); transform-origin: bottom; } }
@keyframes wipe-out { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .line-mask > * { opacity: 1 !important; transform: none !important; }
  .frame.in .frame__reveal { transform: scaleY(0) !important; }
}

/* Utilities */
.stack > * + * { margin-top: var(--s, 1.2rem); }
.center { text-align: center; }
.maxw-prose { max-width: 46ch; }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: 4rem; }
.grid-2 { display: grid; gap: clamp(1.5rem,4vw,4rem); } @media(min-width:760px){ .grid-2{ grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: clamp(1.5rem,3vw,3rem); } @media(min-width:760px){ .grid-3{ grid-template-columns: repeat(3,1fr); } }
