:root {
  --paper: #FCFCFC;
  --ink: #0A0A0A;
  --muted: #767676;
  --blue: #2E5BE6;
  --red: #E2372B;
  --highlight: #FFE45C;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

/* The home page is exactly one screen; every other page scrolls.
   The panorama is 2.5:1, so bled full width it wants a height of 40% of that
   width — more than most windows have left over. It is therefore cropped from
   the top (sky first) rather than allowed to push the page into scrolling.
   object-fit: cover only crops; it never distorts the aspect ratio. */
html.home, html.home body { height: 100%; overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Masthead ---------- */
.masthead {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(12px, 2svh, 26px) clamp(20px, 3.4vw, 52px);
}
/* wordmark on its own, centred, with room to breathe above and below */
.masthead--solo {
  justify-content: center;
  padding-top: clamp(28px, 5vh, 56px);
  padding-bottom: clamp(44px, 7vh, 76px);
}

.wordmark {
  font-weight: 700;
  font-size: clamp(20px, min(2.4vw, 3.6svh), 38px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  font-size: clamp(13px, min(1.05vw, 1.6svh), 16px);
}
.site-nav a:hover { color: var(--blue); }
/* TODO: make this a link once the page exists */
.site-nav .pending { cursor: default; }
.site-nav [aria-current="page"] { color: var(--muted); }

/* ---------- Products menu ---------- */
.nav-item { position: relative; }

.nav-trigger {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: inherit;
}
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] { color: var(--blue); }

.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  padding: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.09);
}
.nav-menu[hidden] { display: none; }
.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-menu a:hover { background: rgba(46, 91, 230, 0.07); color: var(--blue); }
.nav-menu svg { width: 0.7em; height: 0.7em; opacity: 0.45; }
.nav-menu a:hover svg { opacity: 1; }

/* ---------- Home ---------- */
/* The composition is a ~3:2 canvas. On a window wider than 2:1 a full-bleed
   panorama would need more height than the window has, so cap the canvas at
   2:1 and let the paper frame it rather than cropping the art in half. */
.page {
  height: 100vh;
  height: 100svh;
  max-width: calc(100svh * 2);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.statement {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(11px, 2.5svh, 28px);
  padding: 0 24px clamp(6px, 2svh, 26px);
  flex: 0 1 auto;
}

.quote {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(25px, min(2.6vw, 3.9svh), 46px);
  line-height: 1.16;
  letter-spacing: -0.005em;
  max-width: 16em;
  margin: 0;
}

.attribution {
  font-size: clamp(13px, min(1.28vw, 1.95svh), 20px);
  line-height: 1.4;
  margin: 0;
}
.attribution cite { font-style: italic; }

.mission {
  font-size: clamp(16px, min(1.48vw, 2.2svh), 23px);
  line-height: 1.45;
  max-width: 26em;
  margin: 0;
}

.explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  font-size: clamp(14px, min(1.24vw, 1.9svh), 19px);
  border-bottom: 1.5px solid var(--ink);
}
.explore svg { width: 0.75em; height: 0.75em; }
a.explore:hover { color: var(--blue); border-bottom-color: var(--blue); }

.world {
  flex: 1 1 auto;
  min-height: 230px;
  max-height: min(58svh, 44vw);
}
.world img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 100%;
  mix-blend-mode: multiply;
}

/* ---------- Home: swing, epigraph, memo ---------- */
.swing {
  display: block;
  width: min(560px, 82vw);
  margin: 0 auto clamp(34px, 5.5vh, 56px);
  aspect-ratio: 16 / 9;
  mix-blend-mode: multiply;
}

.epigraph {
  max-width: 680px;
  margin: 0 auto clamp(44px, 8vh, 88px);
  padding: 0 24px;
  text-align: center;
}
.epigraph .quote {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(25px, 3.1vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  max-width: none;
  margin: 0 auto;
}
.epigraph .attribution {
  font-size: clamp(15px, 1.3vw, 17px);
  margin-top: 18px;
}

.memo {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px clamp(64px, 12vh, 132px);
  font-size: 17px;
  line-height: 1.65;
}
.memo p { margin: 0 0 26px; }

.hl {
  background: linear-gradient(104deg, transparent 1%, var(--highlight) 4%, var(--highlight) 97%, transparent 99.5%);
  padding: 0 4px;
  border-radius: 2px;
}
.circled { position: relative; white-space: nowrap; margin: 0 0.3em; }
.circled svg {
  position: absolute;
  inset: -0.34em -0.42em;
  width: calc(100% + 0.84em);
  height: calc(100% + 0.68em);
  overflow: visible;
  pointer-events: none;
}
.scribble { position: relative; white-space: nowrap; }
.scribble svg {
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -0.42em;
  width: calc(100% + 4px);
  height: 0.5em;
  overflow: visible;
  pointer-events: none;
}

.closer {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.34;
  letter-spacing: -0.03em;
  margin: 36px 0 0 !important;
  text-wrap: balance;
}

@media (max-width: 760px) {
  .quote br, .mission br { display: none; }
  .site-nav { gap: 16px; }
  .world { max-height: min(46svh, 70vw); }
  .world img { object-position: 42% 100%; }
}
