/* DBO Do Boxing – coming soon, one page
   Two colours: ink #0b0b0b and bone #f2f2f2; pure #fff only on the focused
   field line and the button hover. One family, Saira, pushed to both ends of
   its width axis: ultra-condensed italic for the headline, extended tracked
   capitals for every small label. Nothing else competes with the film. */

@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url(fonts/saira-latin.woff2) format("woff2");
  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: "Saira";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url(fonts/saira-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url(fonts/saira-italic-latin.woff2) format("woff2");
  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: "Saira";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
  src: url(fonts/saira-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0b0b0b;
  --bone: #f2f2f2;
  --white: #ffffff;
  --ash: rgba(242, 242, 242, 0.66);
  --mute: rgba(242, 242, 242, 0.44);
  --hair: rgba(242, 242, 242, 0.32);
  --alert: #ff9a85;
  --expo: cubic-bezier(0.19, 1, 0.22, 1);
  --gutter: clamp(20px, 3.6vw, 64px);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: "Saira", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: 4px;
}

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

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

/* Extended, tracked capitals: the quiet voice for every small label. */
.eyebrow,
.lang button,
.signup__button,
.legal {
  font-stretch: 125%;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
}

/* ---------- The one page ---------- */

.one {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink) url(video/dbo-hero-v3-1080-poster.jpg) center / cover no-repeat;
}
.stage__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Low-key light: the edges fall to black, the copy corner gets a little more. */
.stage__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 60% 40%, rgba(11, 11, 11, 0) 30%, rgba(11, 11, 11, 0.6) 100%),
    linear-gradient(to top, rgba(11, 11, 11, 0.82) 0%, rgba(11, 11, 11, 0.2) 42%, rgba(11, 11, 11, 0) 64%),
    linear-gradient(to bottom, rgba(11, 11, 11, 0.5) 0%, rgba(11, 11, 11, 0) 22%);
}

.curtain {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--ink);
  pointer-events: none;
  /* Failsafe: if the script never runs to the end, lift the curtain anyway. */
  animation: curtain-failsafe 0.8s ease 4s forwards;
}
@keyframes curtain-failsafe {
  to { opacity: 0; visibility: hidden; }
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 10;
  pointer-events: none;
  background: url(img/grain.png) repeat;
  opacity: 0.05;
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, 3%); }
  100% { transform: translate(0, 0); }
}

.bar,
.hero,
.legal {
  position: relative;
  z-index: 5;
  padding-inline: var(--gutter);
}

/* ---------- Bar ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: max(26px, env(safe-area-inset-top));
}
.bar__mark img {
  display: block;
  width: clamp(96px, 8vw, 128px);
  height: auto;
}
.lang {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang button {
  font-family: inherit;
  font-size: 0.6875rem;
  color: var(--mute);
  background: none;
  border: 0;
  padding: 12px 6px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  transition: color 0.5s var(--expo);
}
.lang button:hover,
.lang button[aria-pressed="true"] {
  color: var(--bone);
}
.lang__sep {
  width: 18px;
  height: 1px;
  background: var(--hair);
}

/* ---------- Hero ---------- */

.hero {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  grid-template-areas:
    "eyebrow ."
    "headline form";
  column-gap: clamp(32px, 5vw, 96px);
  align-items: end;
  padding-bottom: clamp(28px, 5vh, 56px);
  /* The headline's tight leading lets its line box poke past the page edge;
     clip at the hero box so it never adds a scrollbar. */
  overflow: clip;
}
.eyebrow {
  grid-area: eyebrow;
  margin: 0 0 clamp(14px, 2.2vh, 24px) 0.3em;
  font-size: 0.6875rem;
  color: var(--ash);
}
/* The one loud thing. */
.headline {
  grid-area: headline;
  margin: 0;
  font-style: italic;
  font-weight: 800;
  font-stretch: 52%;
  font-size: clamp(5.5rem, 19vw, 21rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--bone);
  /* Optical alignment: the italic overhang pulls the first letter left. */
  margin-left: -0.04em;
  padding-bottom: 0.04em;
}

/* ---------- Waitlist ---------- */

.signup {
  grid-area: form;
  width: 100%;
  padding-bottom: 0.9vw;
}
.signup__row {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--hair);
  transition: border-color 0.6s var(--expo);
}
.signup__row:focus-within {
  border-bottom-color: var(--white);
}
.signup__input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--bone);
  background: transparent;
  border: 0;
  padding: 14px 0;
}
.signup__input::placeholder {
  color: var(--mute);
  opacity: 1;
}
.signup__input:focus-visible {
  outline: none;
}
.signup__button {
  position: relative;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 0.625rem;
  color: var(--bone);
  background: none;
  border: 0;
  padding: 14px 0;
  cursor: pointer;
  transition: color 0.5s var(--expo);
}
.signup__button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.26em;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 0.7s var(--expo);
}
.signup__button:hover {
  color: var(--white);
}
.signup__button:hover::after,
.signup__button:focus-visible::after {
  transform: scaleX(1);
}
.signup__button[disabled] {
  cursor: progress;
  opacity: 0.5;
}
.signup__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--mute);
  cursor: pointer;
}
.signup__consent input {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin: 2px 0 0;
  border: 1px solid var(--hair);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s var(--expo), border-color 0.3s var(--expo);
}
.signup__consent input:checked {
  background: var(--bone);
  border-color: var(--bone);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.signup__consent a {
  color: var(--ash);
  text-underline-offset: 3px;
}
.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup__status {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--bone);
}
.signup__status[data-state="error"] {
  color: var(--alert);
}
.signup[data-done] .signup__row,
.signup[data-done] .signup__consent {
  display: none;
}
.signup[data-done] .signup__status {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.9375rem;
}

/* No-JS sign-up result: subscribe.php redirects to /#signup-<result>. */
.flash {
  display: none;
  grid-column: 1 / -1;
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--alert);
}
.flash--ok {
  color: var(--bone);
}
.flash:target {
  display: block;
}

/* Waitlist switched off: no form, no result messages. */
body[data-signup="off"] .signup,
body[data-signup="off"] .flash {
  display: none;
}

/* ---------- Legal line ---------- */

.legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  font-size: 0.5625rem;
  color: var(--mute);
}
.legal a {
  text-decoration: none;
  transition: color 0.4s var(--expo);
}
.legal a:hover {
  color: var(--bone);
}

@media (max-width: 860px) {
  .headline {
    font-size: clamp(5.5rem, 26vw, 12rem);
  }
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "headline"
      "form";
    row-gap: 0;
  }
  .signup {
    margin-top: clamp(28px, 5vh, 44px);
    padding-bottom: 0;
  }
  .stage__shade {
    background:
      radial-gradient(ellipse 120% 70% at 50% 35%, rgba(11, 11, 11, 0) 30%, rgba(11, 11, 11, 0.55) 100%),
      linear-gradient(to top, rgba(11, 11, 11, 0.92) 0%, rgba(11, 11, 11, 0.45) 45%, rgba(11, 11, 11, 0) 70%),
      linear-gradient(to bottom, rgba(11, 11, 11, 0.5) 0%, rgba(11, 11, 11, 0) 20%);
  }
  .legal {
    font-size: 0.5rem;
    letter-spacing: 0.2em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain {
    animation: none;
  }
  .curtain {
    display: none;
  }
}

/* ---------- Privacy page ---------- */

.bar--static,
.legal--static {
  position: relative;
}
.legal--static {
  padding-top: 40px;
}
.doc {
  position: relative;
  max-width: 44rem;
  padding: 56px var(--gutter) 64px;
}
.doc h1 {
  font-style: italic;
  font-weight: 800;
  font-stretch: 55%;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.9;
  color: var(--bone);
  margin: 24px 0 28px;
}
.doc h2 {
  margin: 2.2rem 0 0.5rem;
  font-size: 0.6875rem;
  font-stretch: 125%;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone);
}
.doc p,
.doc li {
  color: var(--ash);
  max-width: 68ch;
  font-size: 0.9375rem;
}
.doc a {
  color: var(--bone);
}
