/* Deepbleu, shared styles. Dark and quiet: real footage, one serif, one sans,
   thin lines, a lot of space. */
:root {
  --bg: #0a0d0f;
  --bg-2: #101518;
  --ink: #f3f3f1;
  --ink-2: rgba(243, 243, 241, 0.66);
  --ink-3: rgba(243, 243, 241, 0.42);
  --line: rgba(243, 243, 241, 0.14);
  --foam: #dfe8ea;
  --paper: #f4f2ec;
  --paper-ink: #111719;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 6vw, 96px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg, video { display: block; }
::selection { background: rgba(223, 232, 234, 0.3); color: #fff; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter);
  transition: padding 0.5s var(--ease), background 0.5s var(--ease);
}
.nav.solid { padding-top: 16px; padding-bottom: 16px; background: rgba(10, 13, 15, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: 0.01em; }
.brand img { width: 40px; height: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.nav-link { font-size: 14.5px; text-decoration: none; color: var(--ink-2); transition: color 0.3s; position: relative; }
.nav-link:hover, .nav-link.here { color: var(--ink); }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav-link:hover::after, .nav-link.here::after { transform: scaleX(1); }
@media (max-width: 640px) {
  .nav { padding: 18px 16px; }
  .nav.solid { padding-top: 12px; padding-bottom: 12px; }
  .brand img { width: 34px; }
  .nav-link.hide-sm { display: none; }
}

/* ---------- type ---------- */
.eyebrow { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.serif { font-family: var(--serif); font-weight: 300; letter-spacing: -0.015em; line-height: 1.06; margin: 0; text-wrap: balance; }
.lede { font-size: clamp(16px, 1.2vw, 18px); color: var(--ink-2); max-width: 34em; margin: 0; }

/* the "explore" link with a line after it, from the reference */
.line-link { display: inline-flex; align-items: center; gap: 16px; font-weight: 600; font-size: 15px; text-decoration: none; }
.line-link i { display: block; width: 110px; height: 1px; background: var(--ink-2); transform-origin: left; transition: transform 0.5s var(--ease); }
.line-link:hover i { transform: scaleX(1.35); }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 28px;
  background: var(--ink); color: var(--bg);
  font: 600 15px/1 var(--sans); text-decoration: none;
  border: 0; cursor: pointer;
  transition: background 0.3s, transform 0.4s var(--ease);
}
.btn:hover { background: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }

/* ---------- real footage ---------- */
.film { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0c1114; }
.film video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 1.2s linear;
  /* graded down from bright daylight to match the dark references */
  filter: brightness(0.6) contrast(1.12) saturate(0.5);
}
.film video.on { opacity: 1; }
.film .shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }

/* ---------- page change: a quiet fade to black ---------- */
.fade-out {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity 0.6s var(--ease);
}
.fade-out.on { opacity: 1; pointer-events: auto; }
.fade-out span { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 54px); opacity: 0; transform: translateY(8px); transition: all 0.6s 0.2s var(--ease); }
.fade-out.on span { opacity: 1; transform: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--foam); outline-offset: 3px; }
.rm *, .rm *::before, .rm *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }

/* ---------- legal pages: privacy and terms ---------- */
.legal-head { position: relative; height: 46vh; min-height: 320px; overflow: hidden; display: flex; align-items: flex-end; }
.legal-head .film video { transform: scale(1.5); transform-origin: 70% 80%; filter: brightness(0.38) contrast(1.15) saturate(0.35); }
.legal-head .shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(10,13,15,0.2) 60%, rgba(10,13,15,0.6) 100%); }
.legal-head .wrap { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter) 40px; }
.legal-head h1 { font-size: clamp(44px, 6vw, 92px); margin: 12px 0 14px; }
.legal-head .updated { font-size: 14px; color: var(--ink-2); margin: 0; }
.legal-body { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(80px, 14vh, 140px); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.toc { position: sticky; top: 96px; }
.toc p { margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); text-decoration: none; transition: color 0.3s, border-color 0.3s; }
.toc a:hover { color: var(--ink-2); }
.toc a.on { color: var(--ink); border-left-color: var(--ink); }
.legal-text { max-width: 44em; }
.legal-text section { padding-top: 12px; margin-bottom: 44px; scroll-margin-top: 90px; }
.legal-text h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-text section:first-child h2 { border-top: 0; padding-top: 0; }
.legal-text h3 { font-size: 15px; font-weight: 600; margin: 24px 0 8px; }
.legal-text p, .legal-text li { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.legal-text p { margin: 0 0 14px; }
.legal-text ul { margin: 0 0 14px; padding-left: 20px; }
.legal-text li { margin-bottom: 6px; }
.legal-text li::marker { color: var(--ink-3); }
.legal-text a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.legal-text a:hover { text-decoration-color: var(--ink); }
.legal-text strong { color: var(--ink); font-weight: 600; }
.legal-foot { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 26px var(--gutter) 30px; font-size: 13.5px; color: var(--ink-3); }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.legal-foot a { text-decoration: none; }
.legal-foot a:hover, .legal-foot a.here { color: var(--ink); }
@media (max-width: 900px) {
  .legal-body { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { columns: 2; column-gap: 24px; }
}
@media (max-width: 520px) { .toc ol { columns: 1; } }

/* the small control that pauses all footage */
.film-toggle { position: absolute; z-index: 5; right: var(--gutter); bottom: 12px; background: none; border: 0; padding: 4px 0; font: 12px/1 var(--sans); color: var(--ink-3); cursor: pointer; letter-spacing: 0.02em; }
.film-toggle:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
