/* richardbuilds.ai home (2026-11-10). Direction: taste-skill "Loud and flat" (seed 1627704579),
   brand palette and type kept from the guide pages (style.css, which the guides still use).
   Idea: the reels' cut-out host and their comment words become the poster.
   Type (2026-11-10, Richard's pick): Anton for the big words, Schibsted Grotesk for the rest.
   He tried Archivo and rejected it; don't switch back. The guides still use style.css (Anton + Work Sans). */
:root {
  --orange: #ff5a1f;
  --dark: #262628;
  --dark-2: #303033;
  --black: #111111;
  --light: #ecebe8;
  --white: #ffffff;
  --muted: #c4c4c9;
  --display: "Anton", Impact, sans-serif;
  --text: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --step-head: clamp(2rem, 1.4rem + 1.6vw, 3rem);
  --step-xl: clamp(88px, 14vw, 220px);
  --margin: clamp(16px, 3vw, 48px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--dark);
  color: var(--white);
  font: 400 var(--step-body)/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  font-kerning: normal;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
[data-chapter="on-dark"] :focus-visible, [data-chapter="on-black"] :focus-visible, .reel-toggle:focus-visible { outline-color: var(--white); }
::selection { background: var(--orange); color: var(--black); }
h1, h2, h3, p { margin: 0; }
.sr-only, .step__text strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--margin); top: 12px; background: var(--white); color: var(--black); padding: 8px 12px; z-index: 30; }

.display, .spec__word {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.85;
}

/* Chapters: each field sets its own ground and ink */
[data-chapter="on-orange"] { background: var(--orange); color: var(--black); }
[data-chapter="on-dark"] { background: var(--dark); color: var(--white); }
[data-chapter="on-light"] { background: var(--light); color: var(--black); }
[data-chapter="on-black"] { background: var(--black); color: var(--white); }

/* Buttons: square, flat, one shape on the whole page */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: var(--orange);
  color: var(--black);
  font: 700 var(--step-body)/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) { .btn:hover { background: #ff7442; } }
[data-chapter="on-orange"] .btn { background: var(--black); color: var(--white); }
@media (hover: hover) { [data-chapter="on-orange"] .btn:hover { background: #2a2a2a; } }

/* Bar: wordmark and the one action. It sits on the hero and scrolls away with it. */
.bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px var(--margin);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }

.bar__mark { font: 800 1.25rem/1 var(--text); letter-spacing: -0.02em; text-decoration: none; transition: color 300ms var(--ease-out); }
.bar__btn { min-height: 44px; padding: 0 18px; }
.bar[data-ink="on-orange"] .bar__mark, .bar[data-ink="on-light"] .bar__mark { color: var(--black); }
.bar[data-ink="on-dark"] .bar__mark, .bar[data-ink="on-black"] .bar__mark { color: var(--white); }
.bar[data-ink="on-orange"] .bar__btn { background: var(--black); color: var(--white); }
@media (hover: hover) { .bar__mark:hover { text-decoration: underline; } .bar[data-ink="on-orange"] .bar__btn:hover { background: #2a2a2a; } }

/* Hero: one orange field, two-ink statement, the host stuck on */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 15svh var(--margin) clamp(32px, 6svh, 64px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.hero__title { text-wrap: balance; font-size: var(--step-xl); line-height: 0.82; letter-spacing: -0.02em; position: relative; z-index: 1; }
.hero__title .l1 { color: var(--white); }
.hero__title .l2 { color: var(--black); }
.hero__text { grid-row: 3; max-width: min(44ch, calc(100vw - 2 * var(--margin) - min(78svh, 860px) * 0.84)); font-size: var(--step-lead); line-height: 1.35; position: relative; z-index: 1; }
.hero__host {
  position: absolute;
  right: clamp(-40px, -2vw, 0px);
  bottom: -2svh;
  height: min(78svh, 860px);
  width: auto;
  transform: rotate(-4deg);
  transform-origin: 50% 100%;
}

/* Masked line reveal */
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line > span { display: block; white-space: nowrap; }
.js .line > span { transform: translateY(105%); }
.js.ready .line > span { transform: none; transition: transform 900ms var(--ease-out); }
.js.ready .line:nth-child(2) > span { transition-delay: 110ms; }
.js .after { opacity: 0; transform: translateY(12px); }
.js.ready .after { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out) 520ms, transform 600ms var(--ease-out) 520ms; }
.js .hero__host { opacity: 0; transform: translateY(40px) rotate(-1deg); }
.js.ready .hero__host { opacity: 1; transform: rotate(-4deg); transition: opacity 500ms var(--ease-out) 300ms, transform 900ms var(--ease-out) 300ms; }

/* Section entrances */
.js [data-rise] > * { opacity: 0; transform: translateY(24px); }
.js [data-rise].in > * { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js [data-rise].in > *:nth-child(2) { transition-delay: 80ms; }
.js [data-rise].in > *:nth-child(3) { transition-delay: 160ms; }
/* steps: media and caption rise on their own, so they stagger by position */
.js .step__media[data-reveal], .js .step__text[data-reveal] { opacity: 0; transform: translateY(32px); }
.js .step__media[data-reveal].in, .js .step__text[data-reveal].in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
/* footer host peeks in from below, keeping its tilt */
.js .foot__pic img { opacity: 0; transform: translateY(12%) rotate(4deg); }
.js .foot__pic.in img { opacity: 1; transform: rotate(4deg); transition: transform 900ms var(--ease-out), opacity 500ms var(--ease-out); }

/* One word, one guide */
.words { padding: clamp(96px, 12vw, 180px) var(--margin) clamp(64px, 8vw, 120px); }
.words__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.words__title { grid-column: 1 / 6; font: 800 var(--step-head)/1.05 var(--text); letter-spacing: -0.025em; text-wrap: balance; }
.words__head p { grid-column: 7 / 13; max-width: 46ch; }
.try { margin-top: clamp(48px, 7vw, 96px); display: grid; gap: 12px; max-width: 640px; }
.try label { font-weight: 600; }
.try__row { display: flex; gap: 8px; }
.try input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--dark-2);
  color: var(--white);
  font: 600 var(--step-body)/1 var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.try input::placeholder { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.try input:focus-visible { outline: 3px solid var(--orange); outline-offset: 0; }
.try__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--dark-2);
  color: var(--white);
  font: 600 var(--step-small)/1 var(--text);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--white); color: var(--black); }
@media (hover: hover) { .chip:hover:not([aria-pressed="true"]) { background: #46464b; } }
html:not(.js) .try { display: none; }

.spec { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 12px; }
.spec__box {
  --fs: min(var(--step-xl), calc((88vw - 13rem) / (var(--len, 6) * 0.47)));
  background: var(--dark-2);
  padding: 24px 24px 0;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  height: calc(var(--fs) * 0.74 + 24px);
  overflow: hidden;
}
.spec__box--alt { background: var(--orange); color: var(--black); }
.spec__box--alt .spec__word.swap { animation-delay: 90ms; animation-fill-mode: backwards; }
.spec__cap { font-weight: 600; padding-top: 4px; }
.spec__word {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: var(--fs);
  line-height: 0.8;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.spec__word.swap { animation: swap 520ms var(--ease-out); }
@keyframes swap { from { transform: translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }
.words__result { margin-top: 24px; max-width: 60ch; min-height: 3em; }
.words__result.swap-text { animation: swap-text 240ms var(--ease-out) 80ms backwards; }
@keyframes swap-text { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* How it works: one verb at a time */
.step {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: clamp(96px, 12svh, 140px) var(--margin);
}
.step--watch { --n: 5; }
.step--comment { --n: 7; }
.step--open { --n: 4; }
.step--ship { --n: 4; }
.step__verb { position: absolute; inset: 0; pointer-events: none; padding: 0 var(--margin) 24svh; }
.step__verb span {
  position: sticky;
  top: 50%;
  display: block;
  transform: translateY(-50%);
  font-size: min(var(--step-xl), calc(56vw / (var(--n) * 0.44)));
  margin-top: 50svh;
}
.step__media { grid-column: 2; position: relative; }
.reel-toggle {
  position: absolute; left: 20px; bottom: 24px;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 0;
  background: var(--black); color: var(--white); font: 600 var(--step-small)/1 var(--text);
  cursor: pointer; touch-action: manipulation; transition: transform 160ms var(--ease-out);
}
.reel-toggle:active { transform: scale(0.97); }
@media (hover: hover) { .reel-toggle:hover { background: #2a2a2a; } }
html:not(.js) .reel-toggle { display: none; }
.step__pic { height: min(76svh, 760px); width: auto; aspect-ratio: 9 / 16; object-fit: cover; padding: 10px; background: var(--black); transform: rotate(3deg); }
.step--comment .step__pic, .step--ship .step__pic { transform: rotate(-3deg); }
.step__text {
  position: absolute;
  left: var(--margin);
  bottom: clamp(32px, 6svh, 64px);
  max-width: 30ch;
  font-size: var(--step-lead);
  line-height: 1.35;
}

/* Who makes it */
.about { padding: clamp(96px, 12vw, 180px) var(--margin); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.about__title { font: 800 var(--step-head)/1.05 var(--text); letter-spacing: -0.025em; text-wrap: balance; }
.tiles { grid-column: 2 / 4; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile__pic { aspect-ratio: 4 / 5; overflow: hidden; }
.tile__pic img { width: 100%; height: 100%; object-fit: cover; }
.tile__pic--orange { background: var(--orange); }
.tile__pic--orange img { object-position: 50% 0; transform: scale(1.02) translateY(6%); }
.tile__pic--light { background: var(--light); }
.tile__pic--light img { object-position: 50% 62%; }
.tile h3 { margin-top: 16px; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; }
.tile p { margin-top: 4px; max-width: 40ch; }

/* Questions: a band per question */
.band { padding: 56px var(--margin); }
.band--alt { background: var(--dark-2); }
.band--head { min-height: 40svh; display: flex; align-items: flex-end; padding-top: 96px; }
.band--head h2 { font-size: var(--step-xl); }
.band__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.band h3 { grid-column: 1 / 6; font: 800 var(--step-head)/1.05 var(--text); letter-spacing: -0.025em; text-wrap: balance; }
.band p { grid-column: 7 / 13; max-width: 46ch; }

/* Close: the idea again, inverted */
.close {
  min-height: 90svh;
  padding: clamp(96px, 14svh, 160px) var(--margin) 40px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 48px;
}
.close__title { text-wrap: balance; font-size: var(--step-xl); line-height: 0.9; color: var(--orange); }
.close__title > span { display: block; }
.mask { overflow: hidden; padding-bottom: 0.04em; }
.mask > span { display: block; }
.js .close__title .mask > span { transform: translateY(105%); }
.js .close__title.in .mask > span { transform: none; transition: transform 900ms var(--ease-out); }
.js .close__title.in .mask:nth-child(2) > span { transition-delay: 110ms; }
.close__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.close__row p { grid-column: 1 / 6; font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.close__row .btn { grid-column: 10 / 13; justify-self: end; min-height: 56px; }

/* Footer: picture half, menu half */
.foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 72svh; }
.foot__pic { background: var(--orange); overflow: hidden; position: relative; }
.foot__pic img { position: absolute; left: -12%; bottom: -38%; width: 118%; max-width: none; transform: rotate(4deg); }
.foot__side { padding: 40px var(--margin) 28px clamp(24px, 6vw, 96px); display: grid; grid-template-rows: auto 1fr auto; gap: 48px; }
.foot__mark { font: 800 1.25rem/1 var(--text); letter-spacing: -0.02em; text-decoration: none; justify-self: start; }
.foot__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; align-content: start; }
.foot__menu a {
  display: inline-block;
  font: 800 var(--step-head)/1.1 var(--text);
  letter-spacing: -0.025em;
  text-decoration: none;
  transition: transform 260ms var(--ease-out), color 200ms var(--ease-out);
}
@media (hover: hover) {
  .foot__menu:hover a { color: var(--muted); }
  .foot__menu a:hover { color: var(--white); transform: translateX(12px); }
}
.foot__menu a:focus-visible { color: var(--white); transform: translateX(12px); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--step-small); color: var(--muted); }

/* Tablet and phone: the steps stack */
@media (max-width: 900px) {
  .step { grid-template-columns: 1fr; min-height: auto; padding-block: 72px; gap: 32px; }
  .step__verb { position: static; padding: 0; }
  .step__verb span { position: static; transform: none; margin: 0; font-size: min(var(--step-xl), calc(88vw / (var(--n) * 0.44))); }
  .step__media { grid-column: 1; justify-self: center; }
  .step__pic { height: auto; width: min(68vw, 340px); }
  .step__text { position: static; }
  .hero { padding-top: 16svh; grid-template-rows: auto auto 1fr; }
  .hero__text { grid-row: 2; margin-top: 24px; max-width: 26ch; }
  .hero__host { height: min(46svh, 64vw * 1.28); right: -6vw; }
  .band h3 { grid-column: 1 / 7; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --step-xl: 20vw; }
  .spec__box { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; padding: 16px 16px 0; --fs: min(var(--step-xl), calc((90vw - 8rem) / (var(--len, 6) * 0.47))); height: calc(var(--fs) * 0.74 + 16px); min-height: 72px; }
  .spec__cap { line-height: 1.25; padding-top: 0; }
  .bar { padding-block: 12px; }
  .bar__btn { padding: 0 14px; }
  .words__head { grid-template-columns: 1fr; gap: 16px; }
  .words__title, .words__head p { grid-column: 1; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .tiles { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .band { padding: 32px 20px; }
  .band--head { min-height: 30svh; }
  .band__in { grid-template-columns: 1fr; gap: 12px; }
  .band h3, .band p { grid-column: 1; }
  .close { min-height: 80svh; }
  .close__row { grid-template-columns: 1fr; }
  .close__row p, .close__row .btn { grid-column: 1; }
  .close__row .btn { width: 100%; }
  .foot { grid-template-columns: 1fr; }
  .foot__pic { height: 50svh; }
  .foot__pic img { width: 100%; left: 0; bottom: -45%; }
  .foot__side { padding: 32px 20px 24px; }
}
main:focus { outline: none; }
@media (max-width: 360px) { .bar__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 420px) {
  .bar { gap: 12px; }
  .bar__mark { font-size: 1.0625rem; }
  .bar__btn { padding: 0 12px; font-size: 0.9375rem; }
}

@media (prefers-reduced-motion: reduce) {
  /* No travel. Entrances become 300ms fades. */
  .js .line > span, .js .mask > span, .js .after, .js [data-rise] > * { transform: none !important; }
  .js .hero__host { transform: rotate(-4deg) !important; }
  .js .line > span, .js .after, .js .hero__host, .js [data-rise] > *, .js .close__title .mask > span { opacity: 0; }
  .js.ready .line > span, .js.ready .after, .js.ready .hero__host,
  .js [data-rise].in > *, .js .close__title.in .mask > span { opacity: 1; transition: opacity 300ms ease !important; transition-delay: 0ms !important; }
  .spec__word.swap, .words__result.swap-text, .spec__box--alt .spec__word.swap { animation: fade 300ms ease; animation-delay: 0ms; }
  .js .step__media[data-reveal], .js .step__text[data-reveal] { transform: none !important; }
  .js .step__media[data-reveal].in, .js .step__text[data-reveal].in { transition: opacity 300ms ease !important; }
  .js .foot__pic img { transform: rotate(4deg) !important; }
  .js .foot__pic.in img { transition: opacity 300ms ease !important; }
  .btn, .chip, .foot__menu a, .bar__mark { transition: none; }
  .foot__menu a:hover, .foot__menu a:focus-visible { transform: none; }
}
@keyframes fade { from { opacity: 0; } }
