/* realle. marketing site
   IDEA: a printer's proof. The brand sheet gives print values (Realle Red, CMYK 0 85 100 0), so the page
   behaves like a proof on the press: two plates of the headline start out of register and come into
   register as you scroll, with a faint paper grain over everything so the colour reads as ink on stock.
   TYPE: Anton for the logo and hero heading only, sentence case. Poppins 500/400 for everything else.
   COLOUR: Realle Red, Midnight Navy, Navy Mid, Slate, Warm Off-White, Linen. Nothing else. */

@font-face { font-family: "Anton"; src: url(../fonts/anton.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(../fonts/poppins-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --red: #E03500; --navy: #000C1C; --navy-mid: #0A1F3D; --slate: #8A9BB0; --off: #F2F0EC; --linen: #E8E2D9; --white: #FFFFFF;
  --pad: clamp(18px, 3.4vw, 56px);
  --ease: cubic-bezier(.19, 1, .22, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--navy) var(--off); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--off); color: var(--navy); font: 400 17px/1.6 "Poppins", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
::selection { background: var(--navy); color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; z-index: 99; left: 10px; top: -50px; background: var(--navy); color: #fff; padding: 10px 14px; }
.skip:focus { top: 10px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* the real wordmark as a mask, so it takes any brand colour */
.mark { display: block; height: 32px; aspect-ratio: 858 / 348; background: currentColor;
  -webkit-mask: url(../img/realle-wordmark.png) left center / contain no-repeat; mask: url(../img/realle-wordmark.png) left center / contain no-repeat; }

/* ---------- top bar: the slug line of a proof ---------- */
.bar { position: fixed; z-index: 50; inset: 0 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 20px var(--pad); color: var(--white); font: 500 14px/1.3 "Poppins"; transition: color .35s, transform .7s var(--ease); }
.bar.is-ink { color: var(--navy); }
.bar.is-away { transform: translateY(-100%); }
.bar__what { opacity: .8; max-width: 34ch; }
.bar__nav { display: flex; gap: 26px; }
.bar__nav a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease); }
.bar__nav a:hover { background-size: 100% 1.5px; }
.bar__menu { display: none; font-weight: 500; }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; gap: 40px; padding: 100px var(--pad) 40px; }
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a { font: 400 clamp(52px, 15vw, 110px)/1 "Anton"; text-decoration: none; }
.menu__mail { opacity: .8; }

/* ---------- cursor: the brand full stop ---------- */
.dot-cursor { position: fixed; z-index: 60; left: 0; top: 0; pointer-events: none; }
.dot-cursor span { display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--red); transition: transform .5s var(--ease), background-color .25s; }
.dot-cursor.on-red span { background: var(--white); }
.dot-cursor.is-big span { transform: scale(3.2); }
.dot-cursor.is-gone span { transform: scale(0); }
@media (hover: none), (pointer: coarse) { .dot-cursor { display: none; } }

/* ---------- HERO: the proof ---------- */
.proof { position: relative; height: 210vh; background: var(--red); }
.proof__sheet { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 20px; padding: 84px var(--pad) 30px; color: var(--white); overflow: hidden; }


.proof__title { position: relative; align-self: center; font: 400 clamp(56px, min(13.4vw, 21svh), 250px)/.9 "Anton"; letter-spacing: -.004em; }
.plate { display: block; will-change: transform; }
.plate .ln { display: block; white-space: nowrap; }
.plate--navy { position: absolute; left: 0; top: 0; color: var(--navy); transform: translate(.07em, .05em); }
.plate--white { position: relative; color: var(--white); transform: translate(-.02em, -.015em); }
.proof__answer { display: block; color: var(--navy); clip-path: inset(-.15em 100% -.3em -.05em); }
.proof__answer span { display: inline-block; }

.proof__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 48px; }
.proof__lede { max-width: 46ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; color: rgba(255,255,255,.88); }
.proof__cta { display: grid; justify-items: end; gap: 6px; text-align: right; }
.proof__cta-label { font-size: 14px; opacity: .8; }
.proof__mail { font: 500 clamp(20px, 2vw, 32px)/1.15 "Poppins"; letter-spacing: -.025em; text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 100% 100% / 100% 2px no-repeat; transition: background-size .6s var(--ease); }
.proof__mail:hover { background-size: 0 2px; background-position: 100% 100%; }

/* paper: a faint grain over every page, so the colour reads as ink on stock */
body::after { content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; background: url(../img/paper.png) 0 0 / 512px 512px repeat; mix-blend-mode: multiply; opacity: .9; }

/* ---------- FIRST SECTION: proof corrections ---------- */
.marks { position: relative; background: var(--off); padding: clamp(110px, 12vw, 190px) 0 clamp(90px, 10vw, 160px); }
.marks__head { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 380px); gap: 64px; padding: 0 var(--pad); margin-bottom: clamp(60px, 8vw, 130px); }
.marks__title { font: 500 clamp(22px, 2vw, 30px)/1.2 "Poppins"; letter-spacing: -.02em; }
.marks__intro { font-size: 15px; color: var(--navy-mid); }

.marks__list { display: grid; gap: clamp(70px, 9vw, 150px); }
.mk { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 380px); gap: 18px 64px; padding: 0 var(--pad); }
.mk__line { grid-column: 1 / -1; font: 500 clamp(34px, 6.6vw, 124px)/1 "Poppins"; letter-spacing: -.05em; padding-top: .62em; white-space: nowrap; }
.mk__edit { position: relative; display: inline-block; white-space: nowrap; }
.mk__out { position: relative; text-decoration: none; transition: color .6s; }
.mk__out::after { /* the editor's strike: drawn left to right */ content: ""; position: absolute; left: -.06em; right: -.06em; top: 54%; height: .085em; border-radius: .05em; background: var(--red);
  transform: rotate(-4deg) scaleX(var(--strike, 0)); transform-origin: left center; }
.mk.is-marked .mk__out { color: var(--slate); }
.mk__in { position: absolute; left: 50%; bottom: 88%; font-size: .56em; letter-spacing: -.04em; color: var(--red); white-space: nowrap;
  transform: translate(-50%, 30%) rotate(-5deg); opacity: 0; clip-path: inset(0 100% 0 0); }
.mk__caret { position: absolute; left: 50%; top: 82%; font-size: .5em; line-height: 1; color: var(--red); transform: translate(-50%, 0) scale(0); }
.mk__note { grid-column: 2; display: grid; gap: 10px; font-size: 15px; line-height: 1.55; padding-left: 18px; border-left: 1px solid rgba(224, 53, 0, .5); }
.mk__pair { font-weight: 500; color: var(--red); }
.mk__note p { color: var(--navy-mid); }
.mk__fix span { font-weight: 500; color: var(--navy); }
.marks__end { margin-top: clamp(80px, 9vw, 140px); padding: 0 var(--pad); font-weight: 500; }
.marks__end a { color: var(--red); text-underline-offset: 4px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .bar { grid-template-columns: auto 1fr auto; }
  .bar__what, .bar__nav { display: none; }
  .bar__menu { display: block; grid-column: 3; }
  .proof { height: 170vh; }
  .proof__foot { grid-template-columns: 1fr; }
  .proof__cta { justify-items: start; text-align: left; }
  .marks__head, .mk { grid-template-columns: 1fr; gap: 20px; }
  .mk__line { white-space: normal; font-size: clamp(34px, 9.6vw, 70px); line-height: 1.5; padding-top: .2em; }
  .mk__note { grid-column: 1; max-width: 46ch; }
}
@media (max-width: 560px) {
  .proof__title { font-size: 14.6vw; }
  .proof__sheet { padding-top: 84px; }
}

/* ---------- reduced motion: the proof is already in register ---------- */
@media (prefers-reduced-motion: reduce) {
  .proof { height: auto; }
  .proof__sheet { position: relative; min-height: 100svh; }
  .plate--navy, .plate--white { transform: none !important; }
  .proof__answer { clip-path: none !important; }
  .mk__out::after { transform: rotate(-4deg) scaleX(1); }
  .mk__in { opacity: 1; clip-path: none; transform: translate(-50%, 30%) rotate(-5deg); }
  .mk__caret { transform: translate(-50%, 0) scale(1); }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
