/* ZACCOFFEE — main stylesheet
 *
 * One dark world from the first frame to the footer: espresso ground, crema text, the gold of the logo.
 * The page never switches between light and dark; photos and the film dissolve into the ground instead.
 * Type: Cormorant Garamond (upright, headings), Jost (text and controls). Italic only for the slogan,
 * Cinzel only for the ZACCOFFEE wordmark. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-normal-latin.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 500 600;
  font-style: italic;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-normal-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --espresso: #120d09; /* the ground of every page: the dark brown behind the logo */
  --roast: #1c1510;    /* raised surfaces */
  --crema: #efe4d1;    /* text */
  --husk: #a8988a;     /* quiet text */
  --gold: #e2ad6e;     /* headings, accents: from the logo */
  --cognac: #b06e3c;   /* lines, small accents */
  --line: rgba(226, 173, 110, 0.16);
  --line-strong: rgba(226, 173, 110, 0.4);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --wordmark: "Cinzel", "Trajan Pro", Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --head-h: 76px;
  --page: 1240px;
  --gutter: 24px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
}

@media (max-width: 1119px) {
  :root {
    --head-h: 64px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--head-h);
  background: var(--espresso);
}

/* the ground is one flat colour, so the film and the photos can fade into it without a seam */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--espresso);
  color: var(--crema);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* one film grain over the whole site, so photos, film and ground read as one material */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

img,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

::selection {
  background: rgba(226, 173, 110, 0.35);
  color: var(--crema);
}

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

.menu-open {
  overflow: hidden;
}

.container {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ------------------------------------------------------------------ */
/* Type                                                                */
/* ------------------------------------------------------------------ */

.display,
.page-title,
.section-title {
  margin: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.display {
  font-size: clamp(42px, 3.4vw + 22px, 76px);
  line-height: 1.06;
}

.page-title {
  font-size: clamp(52px, 4.6vw + 24px, 96px);
  line-height: 1.02;
}

.section-title {
  font-size: clamp(34px, 1.8vw + 22px, 52px);
  line-height: 1.1;
}

/* the slogan is the one place for italic */
.slogan {
  margin: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 1.2vw + 20px, 38px);
  line-height: 1.2;
}

.lead {
  max-width: 34em;
  margin: 0;
  color: var(--crema);
  font-size: clamp(17px, 0.3vw + 16px, 19px);
  line-height: 1.75;
  text-wrap: pretty;
}

.quiet {
  color: var(--husk);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-6);
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, filter 0.25s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--gold {
  background: linear-gradient(180deg, #ecbd80 0%, #dba363 100%);
  color: var(--espresso);
}

.btn--gold:hover {
  filter: brightness(1.07);
}

.btn--line {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--crema);
}

.btn--line:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* over the film (dark on the light start screen: .start__film) */
.btn--ghost {
  border-color: rgba(239, 228, 209, 0.32);
  background: rgba(18, 13, 9, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--crema);
}

.btn--ghost:hover {
  border-color: var(--crema);
  background: rgba(18, 13, 9, 0.55);
}

.btn--small {
  min-height: 40px;
  padding: 0 var(--s-5);
  font-size: 14px;
}

.btn--icon {
  width: 48px;
  padding: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* on phones every button runs the full width of the text column: one straight edge on both sides, on any phone */
@media (max-width: 560px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .form button[type="submit"] {
    width: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* Header (every page)                                                 */
/* ------------------------------------------------------------------ */

.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: var(--head-h);
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  color: var(--crema);
  transition: background-color 0.45s ease, box-shadow 0.45s ease;
}

.site-head--over:not(.is-solid) {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

/* over the film the brand stays hidden: the big logo is right there */
.site-head--over:not(.is-solid) .site-head__brand {
  opacity: 0;
  pointer-events: none;
}

.site-head.is-solid,
.site-head--solid {
  background: rgba(18, 13, 9, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}

.site-head__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: var(--s-3);
  margin-right: auto;
  color: var(--gold);
  font-family: var(--wordmark);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.45s ease;
}

.site-head__brand img {
  width: 34px;
  height: 34px;
}

.site-head__nav {
  display: flex;
  gap: var(--s-6);
}

.site-head__nav a {
  position: relative;
  padding: var(--s-2) 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.site-head__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-head__nav a:hover,
.site-head__nav a[aria-current="page"] {
  color: var(--gold);
}

.site-head__nav a:hover::after,
.site-head__nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-head__menu {
  display: none;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.site-head__menu svg {
  width: 22px;
  height: 22px;
}

/* the full menu needs ~1100 px; below that the menu button takes over */
@media (max-width: 1119px) {
  .site-head__nav,
  .site-head__cta {
    display: none;
  }

  .site-head__menu {
    display: inline-flex;
  }

  .site-head__brand {
    font-size: 13px;
  }

  .site-head__brand img {
    width: 30px;
    height: 30px;
  }
}

/* ------------------------------------------------------------------ */
/* Menu (narrow screens)                                               */
/* ------------------------------------------------------------------ */

.menu {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background:
    radial-gradient(90% 60% at 80% 20%, rgba(176, 110, 60, 0.22), transparent 70%),
    var(--espresso);
  color: var(--crema);
}

.menu[open] {
  display: flex;
  flex-direction: column;
  animation: fade 0.35s ease both;
}

.menu::backdrop {
  background: var(--espresso);
}

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--head-h);
  padding: 0 var(--gutter);
}

.menu__nav {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--s-5) var(--gutter);
}

.menu__nav ul {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__nav a {
  display: block;
  padding: var(--s-2) 0;
  color: var(--crema);
  font-family: var(--serif);
  font-size: clamp(36px, 9vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
}

.menu__nav a:hover,
.menu__nav a[aria-current="page"] {
  color: var(--gold);
}

.menu__foot {
  display: grid;
  gap: var(--s-1);                /* the links are 44 px tall themselves */
  padding: var(--s-5) var(--gutter) max(var(--s-6), env(safe-area-inset-bottom));
  color: var(--husk);
  font-size: 15px;
}

.menu__foot a {
  text-decoration: none;
}

.menu__foot a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.menu__foot .btn {
  width: 100%;
  margin-bottom: var(--s-2);
}

.menu__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
}

/* ------------------------------------------------------------------ */
/* Intro: the film, then the logo video, full screen, over the start  */
/* ------------------------------------------------------------------ */

.intro {
  /* the logo video's light grey at its sides, top to bottom (tools/build_intro_menu.sh prints the stops; the start
     screen, .start, has the same) */
  --intro-light: linear-gradient(#ececec 3%, #f6f6f6 30%, #fafafa 55%, #fefefe 97%);
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  container-type: size;
  overflow: hidden;
  background: var(--espresso);
  color: var(--crema);
}

.intro[data-shape="tall"] {
  --intro-light: linear-gradient(#f9f9f9 3%, #fdfdfd 30%, #fefefe 97%);
}

/* the logo video fades in from espresso to its light grey, and the screen round it with it (home.js sets --light) */
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--intro-light);
  opacity: var(--light, 0);
}

/* set before the first paint by the script in <head>; no page scrolling while the film plays */
.intro-on {
  overflow: hidden;
}

.intro-on .intro {
  display: block;
}

.intro.is-leaving {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

/* The videos are never cropped (the logo is their point): the largest box of their shape that fits — 16:9, or 9:16
   for the portrait cuts phones get — their edges melting into the screen round them. */
.intro__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.intro[data-shape="tall"] .intro__frame {
  aspect-ratio: 9 / 16;
}

@supports (width: 1cqh) {
  .intro__frame {
    width: min(100cqw, 100cqh * 16 / 9);
  }

  .intro[data-shape="tall"] .intro__frame {
    width: min(100cqw, 100cqh * 9 / 16);
  }

  /* wider than the picture: the screen at the sides instead of top and bottom */
  @container (min-aspect-ratio: 16 / 9) {
    .intro__frame {
      -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
      mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
    }
  }

  @container (min-aspect-ratio: 9 / 16) {
    .intro[data-shape="tall"] .intro__frame {
      -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
      mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
    }
  }
}

/* the frame has the file's shape, so the picture fills it exactly */
.intro__film,
.intro__video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}

/* first the film, then the logo video in its place */
.intro.is-film .intro__video,
.intro:not(.is-film) .intro__film {
  display: none;
}

.intro__ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding:
    0
    max(var(--gutter), env(safe-area-inset-right))
    max(var(--s-5), env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
}

/* the buttons: light over the film, dark once the logo video's grey is round them */
.intro.is-light .btn--ghost {
  border-color: rgba(18, 13, 9, 0.28);
  background: rgba(255, 255, 255, 0.45);
  color: var(--espresso);
}

.intro.is-light .btn--ghost:hover {
  border-color: var(--espresso);
  background: rgba(255, 255, 255, 0.75);
}

.intro.is-light :focus-visible {
  outline-color: var(--cognac);
}

.intro__sound .icon-on,
.intro__sound.is-on .icon-off {
  display: none;
}

.intro__sound.is-on .icon-on {
  display: block;
}

.intro__skip svg {
  margin-right: -4px;
}

/* a thin gold line along the bottom edge: how much of the video is left */
.intro__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(226, 173, 110, 0.15);
}

.intro__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cognac), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ */
/* Home: the client's start screen — the gold logo and its menu         */
/* ------------------------------------------------------------------ */

/* the light grey of the client's picture all round, also where the page bounces past its ends; no film grain on it */
html:has(> body.home) {
  background: #fafafa;
}

.home {
  background: #fafafa;
  color: var(--espresso);
}

.home::after {
  content: none;
}

/* One screen, nothing to scroll: the picture (the last frame of the client's logo video) as large as fits, never
   cropped, its edges melting into the same grey around it — the grey of its sides, top to bottom
   (tools/build_intro_menu.sh prints the stops). */
.start {
  position: relative;
  height: 100vh;
  height: 100dvh;
  container-type: size;
  overflow: hidden;
  background: linear-gradient(#ececec 3%, #f6f6f6 30%, #fafafa 55%, #fefefe 97%);
}

.start__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.start__picture {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* phones held upright get the portrait picture (the <picture> in the page picks it the same way) */
@media (orientation: portrait) {
  .start {
    background: linear-gradient(#f9f9f9 3%, #fdfdfd 30%, #fefefe 97%);
  }

  .start__frame {
    aspect-ratio: 9 / 16;
  }
}

@supports (width: 1cqh) {
  .start__frame {
    width: min(100cqw, 100cqh * 16 / 9);
  }

  /* wider than the picture: grey at the sides instead of top and bottom */
  @container (min-aspect-ratio: 16 / 9) {
    .start__frame {
      -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
      mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
    }
  }

  @media (orientation: portrait) {
    .start__frame {
      width: min(100cqw, 100cqh * 9 / 16);
    }

    @container (min-aspect-ratio: 9 / 16) {
      .start__frame {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
      }
    }
  }
}

/* The menu lines in the picture are links laid over them, where the page puts them (in parts of the picture,
   from tools/build_intro_menu.sh): --l* for the landscape picture, --p* for the portrait one. */
.start__menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.start__link {
  position: absolute;
  left: calc(var(--lx) * 100%);
  top: calc(var(--ly) * 100%);
  width: calc(var(--lw) * 100%);
  height: calc(var(--lh) * 100%);
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}

@media (orientation: portrait) {
  .start__link {
    left: calc(var(--px) * 100%);
    top: calc(var(--py) * 100%);
    width: calc(var(--pw) * 100%);
    height: calc(var(--ph) * 100%);
  }
}

/* pointing at a menu line, or reaching it with the keyboard: a cognac line draws under it */
.start__link::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 7%;
  height: clamp(2px, 5%, 4px);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cognac) 22%, var(--cognac) 78%, transparent);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

.start__link:hover::after,
.start__link:focus-visible::after {
  transform: scaleX(1);
}

.start__link:focus-visible {
  outline: 2px solid var(--cognac);
  outline-offset: 2px;
}

/* the film again: a quiet button in the corner, dark on the light grey */
.start__film {
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(var(--s-5), env(safe-area-inset-bottom));
  border-color: rgba(18, 13, 9, 0.28);
  background: rgba(255, 255, 255, 0.45);
  color: var(--espresso);
}

.start__film:hover {
  border-color: var(--espresso);
  background: rgba(255, 255, 255, 0.75);
}

.start__film:focus-visible {
  outline-color: var(--cognac);
}

.start__film svg {
  width: 14px;
  height: 14px;
  margin-left: -4px;
}

/* ------------------------------------------------------------------ */
/* Split: photo + content; the photo dissolves into the ground         */
/* ------------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* the photo has no hard edge on any side: it rises out of the ground and sinks back into it */
.split__media {
  position: relative;
  overflow: hidden;
  height: 46vh;
  height: 46svh;
  min-height: 260px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 58%, transparent 100%);
}

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .split {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    min-height: calc(100vh - var(--head-h));
    min-height: calc(100svh - var(--head-h));
  }

  .split__media {
    position: sticky;
    top: var(--head-h);
    height: calc(100vh - var(--head-h));
    height: calc(100svh - var(--head-h));
    -webkit-mask-image:
      linear-gradient(to right, #000 52%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, #000 52%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-composite: intersect;
  }
}

.still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.still {
  animation: still-zoom 26s ease-out both;
}

/* a flat picture (the logo on its ground, which already deepens towards its edges): still, with straight edges */
.split__media.split__media--flat {
  -webkit-mask-image: none;
  mask-image: none;
}

.split__media--flat .still {
  animation: none;
}

@keyframes still-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

/* ------------------------------------------------------------------ */
/* Inner pages                                                         */
/* ------------------------------------------------------------------ */

.page {
  padding-top: var(--head-h);
}

.page-body {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--s-5);
  padding: var(--s-7) var(--gutter) var(--s-9);
}

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .page-body {
    padding: var(--s-8) max(var(--gutter), 6vw) var(--s-8) var(--s-6);
  }
}

/* a page with its own text (Our Story) opens with a larger paragraph in the serif of the headings */
.opening {
  max-width: 22em;
  margin: var(--s-2) 0 0;
  color: var(--crema);
  font-family: var(--serif);
  font-size: clamp(24px, 0.8vw + 19px, 31px);
  font-weight: 500;
  line-height: 1.35;
  text-wrap: pretty;
}

/* the slogan as the last line of the text: its signature */
.page-body .slogan {
  margin-top: var(--s-2);
}

/* the vision, values and promise, set apart in one raised panel like the signature block on the home page */
.principles {
  display: grid;
  max-width: 34em;
  margin-top: var(--s-5);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--roast);
}

.principle {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-6);
}

.principle + .principle {
  border-top: 1px solid var(--line);
}

.principle .eyebrow {
  color: var(--gold);
}

.principle__text {
  margin: 0;
  color: var(--crema);
  font-family: var(--serif);
  font-size: clamp(22px, 0.5vw + 18px, 26px);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
}

@media (max-width: 560px) {
  .principle {
    padding: var(--s-5);
  }
}

/* Meet the Founder: his photo beside his words in a raised panel (stacked when the panel is narrow) */
.founder {
  container-type: inline-size;
  width: 100%;
  max-width: 34em;
  margin-top: var(--s-5);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--roast);
}

.founder__inner {
  display: grid;
}


/* square, his face and the cup in view */
.founder__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 28%;
}

@container (min-width: 460px) {
  .founder__inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  /* beside the words the photo runs the panel's full height */
  .founder__photo {
    height: 100%;
    aspect-ratio: auto;
  }
}

.founder__body {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-6) var(--s-5);
}

.founder .eyebrow {
  color: var(--gold);
}

.founder__quote {
  margin: 0;
  color: var(--crema);
  font-family: var(--serif);
  font-size: clamp(21px, 0.5vw + 17px, 25px);
  font-weight: 500;
  line-height: 1.4;
}

.founder__quote p {
  margin: 0;
  text-wrap: pretty;
}

.founder__quote p::before {
  content: "\201C";
}

.founder__quote p::after {
  content: "\201D";
}

.founder__name {
  margin: 0;
  color: var(--husk);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* the Contact page: each way to reach the brand on a line of its own, its name small above it */
.contact-list {
  display: grid;
  width: 100%;
  max-width: 34em;
  margin: var(--s-2) 0 var(--s-3);
}

.contact-list > div {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
}

.contact-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list dd {
  margin: 0;
  color: var(--crema);
  font-family: var(--serif);
  font-size: clamp(24px, 0.6vw + 19px, 30px);
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;              /* an easy tap */
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: var(--gold);
}

.contact-list__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0;
  color: var(--gold);
  font-size: 15px;
  font-weight: 500;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(226, 173, 110, 0.15);
}

/* ------------------------------------------------------------------ */
/* Forms: "Get launch updates" and "Leave a comment"                   */
/* ------------------------------------------------------------------ */

.form {
  display: grid;
  justify-items: start;
  gap: var(--s-4);
  width: 100%;
  max-width: 30em;
}

.form__field {
  display: grid;
  gap: var(--s-2);
  width: 100%;
}

.form__label {
  color: var(--crema);
  font-size: 15px;
  font-weight: 500;
}

.form__optional {
  margin-left: var(--s-1);
  color: var(--husk);
  font-size: 13px;
  font-weight: 400;
}

.form input,
.form textarea {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--crema);
  font: inherit;
  font-size: 16px;               /* 16 px: phones don't zoom in on focus */
  line-height: 1.5;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form textarea {
  min-height: 7.5em;
  resize: vertical;
}

.form input:hover,
.form textarea:hover {
  border-color: var(--gold);
}

.form input:focus-visible,
.form textarea:focus-visible {
  border-color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* the field people can't see: bots fill it in, and the send is refused */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  margin: 0;
  color: var(--husk);
  font-size: 14px;
  line-height: 1.5;
}

.form__note a {
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.form__note a:hover {
  color: var(--gold);
}

.form__status {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.form__status:empty {
  display: none;
}

.form__status.is-ok {
  color: var(--gold);
}

.form__status.is-error {
  color: #f0a58a;
}

.form.is-sending button[type="submit"] {
  opacity: 0.6;
  pointer-events: none;
}

/* the sign-up window */
.signup-dialog {
  width: min(30rem, 100% - 2 * var(--gutter));
  max-height: calc(100dvh - 2 * var(--gutter));
  padding: var(--s-7) var(--s-6) var(--s-6);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background:
    radial-gradient(90% 60% at 80% 0%, rgba(176, 110, 60, 0.18), transparent 70%),
    var(--roast);
  color: var(--crema);
}

.signup-dialog::backdrop {
  background: rgba(10, 7, 5, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.signup-dialog__close {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
}

.signup-dialog__title {
  margin: 0 0 var(--s-2);
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(30px, 1vw + 24px, 38px);
  font-weight: 500;
  line-height: 1.15;
}

.signup-dialog__lead {
  margin: 0 0 var(--s-5);
  color: var(--crema);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .signup-dialog {
    padding: var(--s-7) var(--s-5) var(--s-5);
  }
}

/* comments under Our Story */
.comments {
  display: grid;
  gap: var(--s-5);
  width: 100%;
  max-width: 34em;
  margin-top: var(--s-7);
  padding-top: var(--s-7);
  border-top: 1px solid var(--line);
}

.comments__title {
  margin: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(28px, 0.8vw + 22px, 34px);
  font-weight: 500;
  line-height: 1.2;
}

.comments__list {
  display: grid;
  gap: var(--s-5);
  margin: 0 0 var(--s-4);
  padding: 0;
  list-style: none;
}

.comments__who {
  margin: 0 0 var(--s-1);
  color: var(--crema);
  font-weight: 500;
}

.comments__who span {
  margin-left: var(--s-2);
  color: var(--husk);
  font-size: 13px;
  font-weight: 400;
}

.comments__text {
  margin: 0;
  color: var(--crema);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* Gallery                                                             */
/* ------------------------------------------------------------------ */

.page-intro {
  display: grid;
  gap: var(--s-4);
  padding: clamp(var(--s-7), 7vw, var(--s-9)) 0 var(--s-7);
}

/* an even grid: every tile the same 4:5 shape, the photo cropped around its subject (the crop is set per photo in
   the admin); the photos don't open or enlarge (asked 02.11) */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0 auto var(--s-9);
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-5);
  }
}

.gallery li {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  background: var(--roast);
}

/* two columns and an odd count: the last photo takes the whole row instead of standing alone */
@media (max-width: 759px) {
  .gallery li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}

/* ------------------------------------------------------------------ */
/* Footer (every page)                                                 */
/* ------------------------------------------------------------------ */

.site-foot {
  border-top: 1px solid var(--line);
  color: var(--husk);
  font-size: 15px;
}

.site-foot__top {
  display: grid;
  gap: var(--s-7);
  padding: var(--s-9) 0 var(--s-8);
}

/* tablets: the logo across the top, the three link groups side by side under it */
@media (min-width: 640px) and (max-width: 899px) {
  .site-foot__top {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-7) var(--s-5);
    align-items: start;
  }

  .site-foot__top > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .site-foot__top {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    align-items: start;
  }
}

.site-foot__logo img {
  width: 190px;
  height: auto;
}

.site-foot .slogan {
  margin-top: var(--s-4);
  font-size: 24px;
}

.site-foot h2 {
  margin: 0 0 var(--s-3);
  color: var(--crema);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
}

.site-foot ul {
  display: grid;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-foot a {
  display: inline-block;
  padding: var(--s-1) 0;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.site-foot a:hover {
  color: var(--gold);
}

/* fingers: on phones and tablets every footer link is at least 44 px tall */
@media (max-width: 899px) {
  .site-foot ul {
    gap: 0;
  }

  .site-foot ul a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
  }
}

.site-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-5);
  padding: var(--s-5) 0 max(var(--s-6), env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
}

/* links inside a sentence (the music credit) stay in the line */
.site-foot__bottom a {
  display: inline;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

/* Privacy next to the copyright; who made the site at the right end of the row; both as quiet as the copyright,
   gold under the pointer */
.site-foot__bottom .site-foot__legal,
.site-foot__bottom .site-foot__maker {
  text-decoration: none;
}

.site-foot__bottom .site-foot__maker {
  margin-left: auto;
}

@media (max-width: 899px) {
  .site-foot__bottom .site-foot__legal,
  .site-foot__bottom .site-foot__maker {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* phones: the whole footer on one centre line, from the logo down to the copyright */
@media (max-width: 639px) {
  .site-foot__top,
  .site-foot__bottom {
    text-align: center;
  }

  .site-foot ul a {
    display: inline-flex;
  }

  /* one line under the other, an even 44 px apart */
  .site-foot__bottom {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .site-foot__bottom > * {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .site-foot__bottom .site-foot__maker {
    margin-left: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Privacy: one column at a comfortable reading width                  */
/* ------------------------------------------------------------------ */

.legal {
  padding: clamp(var(--s-7), 7vw, var(--s-9)) 0 var(--s-9);
}

.legal__body {
  max-width: 44rem;
  margin-inline: auto;
}

.legal .legal__updated {
  margin: var(--s-5) 0 var(--s-7);
  color: var(--husk);
  font-size: 14px;
  line-height: 1.5;
}

.legal h2 {
  margin: var(--s-7) 0 var(--s-3);
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(24px, 0.6vw + 20px, 28px);
  font-weight: 500;
  line-height: 1.25;
}

.legal p,
.legal li {
  color: var(--crema);
  font-size: clamp(16px, 0.2vw + 15.5px, 17px);
  line-height: 1.75;
  text-wrap: pretty;
}

.legal p {
  margin: 0 0 var(--s-4);
}

/* the opening paragraph: what the page is about, a little larger */
.legal__updated + p {
  font-family: var(--serif);
  font-size: clamp(20px, 0.5vw + 17px, 23px);
  line-height: 1.5;
}

.legal ul {
  display: grid;
  gap: var(--s-3);
  margin: 0 0 var(--s-4);
  padding: 0;
  list-style: none;
}

.legal li {
  position: relative;
  padding-left: var(--s-5);
}

/* a small gold dot, centred on the first line */
.legal li::before {
  content: "";
  position: absolute;
  top: calc(0.875em - 3px);
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.legal a {
  color: var(--gold);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ */
/* Not found                                                           */
/* ------------------------------------------------------------------ */

.lost {
  display: grid;
  min-height: calc(100vh - var(--head-h));
  min-height: calc(100svh - var(--head-h));
  align-content: center;
  justify-items: start;
  gap: var(--s-5);
  padding: var(--s-8) 0;
}

/* ------------------------------------------------------------------ */
/* Motion                                                              */
/* ------------------------------------------------------------------ */

/* moving between pages: the header stays put, the rest cross-fades (Chrome, Edge, Safari 18.2+) */
@view-transition {
  navigation: auto;
}

.site-head {
  view-transition-name: site-head;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* scrolling down: sections below the first screen rise into place as they come into view (site.js adds .rise
   only to what is off screen when the page opens, and .is-in when it arrives) */
.rise {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rise.is-in {
  opacity: 1;
  transform: none;
}

@media print {
  .rise {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  /* photos stay still */
  .still {
    animation: none !important;
  }
}
