/* Landing page. Values follow WebDesign2's tokens on site/review-feedback, copied here so this page ships alone. */

@font-face {
  font-family: 'Newsreader Variable';
  src: url('fonts/newsreader-latin-opsz-normal.woff2') format('woff2-variations');
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans Variable';
  src: url('fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations');
  font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
}

:root {
  --parchment: #EADFC2;
  --basalt: #2A2F2C;
  --radius-control: 3px;
  --serif: 'Newsreader Variable', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-display: clamp(2.5rem, 1.9rem + 2.6vw, 4.25rem);
  --fs-line: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --fs-small: 0.875rem;
  --margin: clamp(20px, 4.4vw, 64px);
  --rule: rgb(234 223 194 / 0.38);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-press: 150ms;
  /* How far the film is darkened. 55% is the lowest that keeps the footer text at 4.5:1 on the film's brightest
     frames (the washing channel at 0:23, the sky at 0:40), measured on the brightest 1% of pixels behind the text. */
  --film-dim: 0.55;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--basalt); color: var(--parchment); font-family: var(--sans); font-size: 1rem; line-height: 1.45; }
p, h1 { margin: 0; }

/* The film fills the window. The first frame sits under it until the whole file has arrived. */
.film { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film video { visibility: hidden; }
.film video.is-playing { visibility: visible; }
/* The second player sits on top. landing.js fades it to cross the end of the film into its beginning. */
.film video + video { visibility: visible; opacity: 0; }
.film::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / var(--film-dim)); }

/* Exactly one screen. It scrolls only if text zoom makes the content taller than the window. */
.page { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100dvh; }

.masthead { padding: var(--margin) var(--margin) 0; }
.wordmark { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; }

.headline { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 24px var(--margin) clamp(24px, 3.4vw, 40px); }
.headline h1 {
  font-family: var(--serif); font-size: var(--fs-display); font-weight: 400; font-variation-settings: 'opsz' 72;
  line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance;
}
.headline__line { font-family: var(--serif); font-size: var(--fs-line); line-height: 1.3; }
.headline__line span { display: block; text-wrap: balance; }

/* The privacy page: no film, one calm column of text. */
.wordmark a { color: inherit; text-decoration: none; }
.policy { width: 100%; max-width: calc(68ch + 2 * var(--margin)); padding: clamp(40px, 7vw, 88px) var(--margin) clamp(48px, 7vw, 88px); font-family: var(--serif); font-size: 1.125rem; line-height: 1.5; }
.policy h1 { font-size: var(--fs-display); font-weight: 400; font-variation-settings: 'opsz' 72; line-height: 1.05; letter-spacing: -0.015em; }
.policy h2 { margin: 2em 0 0.4em; font-size: 1.375rem; font-weight: 400; line-height: 1.25; }
.policy p + p { margin-top: 0.75em; }
.policy__updated { margin-top: 0.75em; font-family: var(--sans); font-size: var(--fs-small); }
.policy a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* Legal notices: one column per country, with subgrid lining up each row across the three. */
.notice { padding: clamp(40px, 7vw, 88px) var(--margin) clamp(48px, 7vw, 88px); }
.notice h1 { font-family: var(--serif); font-size: var(--fs-display); font-weight: 400; font-variation-settings: 'opsz' 72; line-height: 1.05; letter-spacing: -0.015em; }
.notice__columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px clamp(24px, 4vw, 56px); margin-top: clamp(32px, 5vw, 56px); font-size: 0.9375rem; line-height: 1.5; }
.notice__country { display: grid; grid-row: span 12; grid-template-rows: subgrid; }
.notice__country h2 { margin: 0; font-family: var(--serif); font-size: 1.625rem; font-weight: 400; line-height: 1.2; }
.notice__country dl { display: contents; }
.notice__country dt { font-weight: 500; }
.notice__country dd { margin: 0; overflow-wrap: anywhere; }
.notice a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* A hairline, quiet links, one action. */
.company {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 48px;
  margin: 0 var(--margin) calc(clamp(20px, 3vw, 40px) + env(safe-area-inset-bottom));
  padding-top: 20px; border-top: 1px solid var(--rule);
}
.company__details { font-size: var(--fs-small); line-height: 1.5; }
.company__details a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.company__links { display: flex; flex-wrap: wrap; gap: 0 20px; line-height: 24px; }
.company__links nav { display: flex; gap: 12px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; padding: 10px 24px;
  border: 1px solid var(--parchment); border-radius: var(--radius-control);
  background: transparent; color: var(--parchment); font-size: 0.9375rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-press) var(--ease), color var(--dur-press) var(--ease);
}
.button:hover { background: var(--parchment); color: var(--basalt); }

:focus-visible { outline: 2px solid var(--parchment); outline-offset: 2px; }

@media (max-width: 860px) {
  .company { flex-direction: column; align-items: stretch; }
  .company__details { order: 1; }
  .notice__columns { display: block; }
  .notice__country { display: block; margin-bottom: 44px; }
  .notice__country dl { display: block; margin: 0; }
  .notice__country p, .notice__country dl > div { margin-top: 18px; }
}

/* Short phones: the longer languages still have to fit one screen. */
@media (max-width: 860px) and (max-height: 720px) {
  :root { --fs-display: 2rem; --fs-line: 1.0625rem; --fs-small: 0.8125rem; }
  .masthead { padding-top: 16px; }
  .wordmark { font-size: 1.25rem; }
  .headline { gap: 6px; padding-top: 12px; padding-bottom: 14px; }
  .company { gap: 10px; padding-top: 12px; margin-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
