:root {
  --ink: #282828;
  --paper: #FFFFFF;
  --beige-50: #F8F4F0;
  --beige-100: #F1E9E2;
  --beige-200: #E5D7CC;
  --beige-400: #CDB7A6;
  --display: 'freight-display-pro', 'Freight Display Pro', Georgia, serif;
  --text: 'freight-text-pro', 'Freight Text Pro', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(112px, 11vw, 176px);
  --wide: 1280px;
  --measure: 32em;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --entrance: 2.1s;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 20px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: italic; }
cite { font-style: normal; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.button:focus-visible { outline-color: var(--ink); }

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

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  padding: 12px 18px; background: var(--ink); color: var(--paper); font-size: 15px;
}
.skip:focus { top: 16px; }

/* Magazine style: menu, buttons, facts, names */

.header-menu, .menu-sheet-links, .menu-sheet-foot, .button, .fact, .link, cite, .footer-links {
  font: 600 12.5px/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Header */

.header { position: sticky; top: 0; z-index: 20; background: var(--paper); }

.header-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 80px; padding: 0 clamp(20px, 3vw, 44px);
}
.header-logo img, img.header-logo { width: 272px; height: auto; }
.header-logo { justify-self: center; }
.header-actions { justify-self: end; display: flex; gap: 16px; }

.header-menu { display: flex; justify-content: center; gap: 56px; padding: 0 0 22px; }
.header-menu a { padding: 6px 0; background: linear-gradient(currentColor, currentColor) 50% 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.header-menu a:hover { background-size: 100% 1px; }

.icon { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 -8px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.icon svg, .menu-sheet-foot svg, .film-toggle svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.header-menu-button { display: none; }

/* Menu sheet (phone) */

.menu-sheet {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 0 40px;
  border: 0; background: var(--paper); color: var(--ink);
  flex-direction: column;
}
.menu-sheet[open] { display: flex; }
.menu-sheet::backdrop { background: var(--paper); }
.menu-sheet .header-bar { padding: 0 20px; }
.menu-sheet-links { display: flex; flex-direction: column; align-items: center; gap: 32px; margin: auto 0; font-size: 14px; }
.menu-sheet-foot { display: flex; justify-content: center; gap: 40px; }
.menu-sheet-foot a { display: flex; align-items: center; gap: 10px; }

/* Type */

.display {
  font: 500 clamp(46px, 5.6vw, 84px)/1.02 var(--display);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display span, .title span { display: block; }

.title {
  font: 500 clamp(38px, 4vw, 60px)/1.06 var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.standfirst { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.5; text-wrap: balance; }
.body { max-width: var(--measure); text-wrap: pretty; }

.quote {
  font: italic 500 clamp(32px, 3.3vw, 50px)/1.16 var(--display);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
blockquote footer { margin-top: 28px; }
blockquote cite { display: block; }

.stars { letter-spacing: 0.16em; }

.link {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.6em;
  text-decoration-color: var(--beige-400);
  transition: text-decoration-color 0.3s;
}
.link:hover { text-decoration-color: currentColor; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 40px;
  background: var(--ink); color: var(--paper);
  transition: background-color 0.3s;
}
.button:hover { background: #000; }

/* Film and entrance */

.film { position: relative; }
.film-curtain { clip-path: inset(0 0 0 0); }
.film-video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--beige-100); }
.js .film-curtain { animation: curtain 1.6s var(--ease) 0.2s both; }
@keyframes curtain { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }

.film-toggle {
  position: absolute; right: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: none; color: var(--paper); cursor: pointer;
}
.film-toggle svg { width: 22px; height: 22px; stroke-width: 1.5; }
.film-toggle .film-play { display: none; fill: currentColor; }
.film-toggle[aria-pressed="true"] .film-pause { display: none; }
.film-toggle[aria-pressed="true"] .film-play { display: block; }

.js .header, .js .film-toggle, .js main > :not(.film), .js .footer { animation: fade 0.9s var(--ease) var(--entrance) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Cover */

.cover {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(88px, 9vw, 136px) var(--gutter) var(--section);
  text-align: center;
}
.cover .standfirst { max-width: 27em; margin-top: 32px; }
.cover .button { margin-top: 44px; }

.credentials {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(32px, 3.4vw, 48px);
  margin-top: clamp(40px, 4vw, 56px);
  font: 600 13px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.credentials li { display: flex; align-items: center; gap: 10px; }
.credentials .stars { font-size: 15px; line-height: 1; letter-spacing: 0.12em; }

/* Splits: a photo filling one column, text in the other */

.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-photo { grid-row: 1; aspect-ratio: 4 / 5; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-text {
  grid-row: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 32px;
  padding: 96px clamp(40px, 7vw, 128px);
}
.split-end .split-photo { grid-column: 2; }
.split-end .split-text { grid-column: 1; }
.split-text .body { max-width: 24em; }
.split-text .link { margin-top: 12px; }

.problem .title { max-width: 12em; }

.voice { background: var(--beige-100); }
.voice .quote { max-width: 15em; text-wrap: pretty; }
.voice footer { margin-top: 0; }

.philosophy { background: var(--ink); color: var(--paper); }
.philosophy .link { text-decoration-color: rgb(255 255 255 / 0.4); }
.philosophy .link:hover { text-decoration-color: currentColor; }

/* Services */

.services { padding-top: var(--section); text-align: center; }

.services-head { padding: 0 var(--gutter) clamp(72px, 7vw, 112px); }
.services-head .standfirst { max-width: 28em; margin: 24px auto 0; }

.colour-photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 22%; }
.colour-text { display: flex; flex-direction: column; align-items: center; padding: clamp(56px, 5vw, 80px) var(--gutter) 0; }
.service-title { font: 500 clamp(40px, 4.2vw, 64px)/1.04 var(--display); letter-spacing: -0.01em; }
.colour-text .body { margin-top: 28px; }
.colour-text .button { margin-top: 36px; }
.colour-text .fact { margin-top: 20px; }

.more { margin-top: var(--section); padding: var(--section) var(--gutter); background: var(--beige-100); }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(32px, 3.4vw, 48px);
  max-width: var(--wide); margin: 0 auto;
  text-align: left;
}
.step { display: flex; flex-direction: column; min-width: 0; }
.step-photo { overflow: hidden; }
.step-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.step-photo-rack img { object-position: 100% 0; scale: 1.5; transform-origin: 78% 12%; }
.step-name { margin-top: 32px; font: 500 clamp(28px, 2.4vw, 36px)/1.1 var(--display); letter-spacing: -0.005em; }
.step-promise { margin: 14px 0 32px; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.step-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--beige-400);
}
.step-foot .link { white-space: nowrap; }

.services-all { display: inline-block; margin-top: clamp(72px, 7vw, 104px); }

/* Proof */

.proof {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(24px, 3vw, 48px);
  padding: var(--section) max(var(--gutter), (100% - var(--wide)) / 2);
  background: var(--beige-200);
}
.proof-lead { grid-column: 1 / -1; }
.proof-stars { display: block; font: 600 18px/1 var(--sans); }
.proof-hero { margin-top: 32px; }
.proof-hero-line {
  margin-left: -0.32em;
  font-size: clamp(44px, 5vw, 76px); line-height: 1; letter-spacing: -0.02em;
}
.proof-hero-rest { max-width: 24em; margin-top: clamp(20px, 2vw, 28px); font-size: clamp(22px, 1.8vw, 26px); line-height: 1.25; text-wrap: pretty; }

.proof-more {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: inherit;
  margin-top: clamp(72px, 7vw, 104px);
}
.proof-more blockquote { display: flex; flex-direction: column; padding-top: 28px; border-top: 1px solid var(--beige-400); }
.proof-more .quote { font-size: clamp(20px, 1.5vw, 23px); line-height: 1.3; text-wrap: pretty; }
.proof-more footer { margin-top: auto; padding-top: 28px; }

.proof-link { grid-column: 1 / -1; justify-self: center; margin-top: clamp(80px, 7vw, 112px); }

/* Retail */

.retail { background: var(--ink); color: var(--paper); }
.retail .button { background: var(--paper); color: var(--ink); }
.retail .button:hover { background: var(--beige-100); }
.retail .button:focus-visible { outline-color: var(--paper); }

.retail-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

.retail-text {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(56px, 7vw, 120px); align-items: start;
  max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(88px, 9vw, 136px) var(--gutter) var(--section);
}
.retail-intro .title { max-width: 13em; }
.retail-intro .body { margin-top: 32px; }

.offers { align-self: stretch; border-top: 1px solid rgb(255 255 255 / 0.24); }
.offers li {
  padding: 22px 0; border-bottom: 1px solid rgb(255 255 255 / 0.24);
  font: 500 clamp(24px, 2vw, 28px)/1.2 var(--display); letter-spacing: -0.005em;
}
.retail-offer { display: flex; flex-direction: column; align-items: flex-start; padding-top: 12px; }
.retail-note { margin-top: 40px; }
.retail-offer .button { margin-top: 28px; }

/* Closing */

.closing {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--section) var(--gutter);
  background: var(--beige-50); text-align: center;
}
.closing .button { margin-top: 56px; }
.closing .link { margin-top: 28px; }

/* Footer */

.footer {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  padding: 88px var(--gutter) 40px;
  text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; }
.footer-links a:hover, .footer-email:hover { text-decoration: underline; text-decoration-color: var(--beige-400); text-underline-offset: 0.4em; text-decoration-thickness: 1px; }
.footer-email { font-size: 20px; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  width: 100%; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--beige-100);
  font-size: 15px; line-height: 1;
}
.footer-base img { width: 141px; height: auto; }

/* Reveal */

.js .reveal { opacity: 0; transition: opacity 1.1s var(--ease); }
.js .reveal.is-visible { opacity: 1; }

/* Tablet and phone */

@media (max-width: 1100px) {
  .header-menu { gap: 36px; }
}

@media (max-width: 900px) {
  .header-menu, .icon-desktop { display: none; }
  .header-menu-button { display: grid; justify-self: start; }
  .header-bar { height: 64px; padding: 0 20px; }
  .header-logo img, img.header-logo { width: 198px; }
  .header { border-bottom: 1px solid var(--beige-100); }

  .split { grid-template-columns: 1fr; }
  .split-photo, .split-end .split-photo, .split-text, .split-end .split-text { grid-column: 1; grid-row: auto; }
  .split-text { padding: 72px var(--gutter) 96px; gap: 24px; }

  .credentials { flex-direction: column; align-items: center; }

  .more { padding-inline: 0; }
  .steps {
    display: flex; gap: 16px;
    padding: 0 var(--gutter) 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 min(80%, 440px); scroll-snap-align: start; }
  .step-photo img { aspect-ratio: 3 / 4; }
  .step-name { margin-top: 24px; }
  .step-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .services-all { margin-top: 56px; }

  .proof { display: flex; flex-direction: column; padding-inline: var(--gutter); }
  .proof-hero-line { margin-left: 0; }
  .proof-more { grid-template-columns: 1fr; row-gap: 56px; }
  .proof-link { align-self: center; }

  .retail-text { grid-template-columns: 1fr; row-gap: 56px; }
}

@media (max-width: 640px) {
  :root { --section: 96px; }
  body { font-size: 18px; }
  .display { font-size: 44px; }
  .title { font-size: 36px; }
  .quote { font-size: 30px; }
  .cover { padding-top: 64px; }
  .cover .standfirst { margin-top: 24px; }
  .button { align-self: stretch; }
  .credentials { margin-top: 40px; }

  .split-photo { aspect-ratio: 4 / 5; }
  .colour-photo img { aspect-ratio: 4 / 5; object-position: 30% 50%; }
  .service-title { font-size: 40px; }
  .step-name { font-size: 27px; }

  .proof-hero { margin-top: 24px; }
  .proof-hero-line { font-size: 38px; }
  .proof-hero-rest { margin-top: 20px; font-size: 21px; }
  .proof-more { margin-top: 80px; }
  .proof-more .quote { font-size: 20px; }

  .retail-photo img { aspect-ratio: 4 / 3; }
  .retail-text { padding-top: 72px; }
  .offers li { font-size: 24px; padding: 18px 0; }

  .footer { padding-top: 80px; }
  .footer-links { flex-direction: column; gap: 18px; }
  .footer-base { flex-direction: column; gap: 16px; margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .film-curtain, .js .header, .js .film-toggle, .js main > :not(.film), .js .footer { animation: none; }
  .js .reveal { opacity: 1; transition: none; }
  .header-menu a, .button, .link { transition: none; }
}
