/* Brand fonts, served from the site (Latin subset, SIL Open Font License): Anybody, Martian Mono, Newsreader. */

@font-face {
  font-family: 'Anybody';
  font-style: normal;
  font-weight: 200 600;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url(/assets/fonts/anybody-normal.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: 'Martian Mono';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/martian-mono-normal.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: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-italic.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: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-normal.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: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/newsreader-normal.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;
}

/* Leverage House: shared styles for every page. Palette direction from the
   design package; values to be re-sampled from the approved footage. */

:root {
  --canvas: #efe6d8;
  --panel: #e2d4be;
  --ink: #1e1712;
  --accent: #e3b26a;
  --accent-hover: #f0c887;
  --accent-muted: #a0703c;
  --bronze: #8a5e30;
  --text-secondary: #5c4a3a;
  --text-primary: #1e1712;
  --on-dark: #f4e2bc;
  --on-dark-soft: #d6c3a4;
  --hairline: rgb(30 23 18 / 0.16);
  --line-strong: #8a6a45;

  --display: 'Anybody', 'Archivo', system-ui, sans-serif;
  --text: 'Newsreader', Georgia, serif;
  --mono: 'Martian Mono', ui-monospace, monospace;

  --step--1: 0.8125rem;
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  --step-1: clamp(1.375rem, 1.2rem + 0.6vw, 1.667rem);
  --step-2: clamp(1.75rem, 1.4rem + 1.2vw, 2.222rem);
  --step-3: clamp(2.25rem, 1.6rem + 2.4vw, 2.963rem);
  --step-4: clamp(2.6rem, 1.6rem + 4vw, 3.95rem);
  --step-5: clamp(3rem, 1.3rem + 6.4vw, 5.6rem);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(0.22, 0.61, 0.16, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --tshadow: 0 1px 2px rgb(10 7 4 / 0.95), 0 3px 12px rgb(10 7 4 / 0.78), 0 10px 44px rgb(10 7 4 / 0.8);

  color-scheme: light;
}

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

html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.25s var(--ease-out);
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-stretch: 120%;
  line-height: 1.06;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--canvas);
  font-family: var(--display);
}

.skip-link:focus {
  top: 1rem;
}

main:focus {
  outline: none;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  transition: background-color 0.5s var(--ease-out);
}

.site-header {
  --hdr: var(--on-dark);
  --hdr-soft: var(--on-dark-soft);
  color: var(--hdr);
}

.site-header.is-solid {
  --hdr: var(--ink);
  --hdr-soft: var(--text-secondary);
  background: rgb(239 230 216 / 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-mark {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.wordmark-text {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 300;
  font-stretch: 150%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}



/* The seal: the ligature inside a ring of the full name. */
.seal {
  display: inline-block;
  width: 112px;
  color: var(--text-primary);
}

.seal svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.seal circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.seal circle.thin {
  stroke-width: 0.6;
}

.seal text {
  fill: currentColor;
  font-family: var(--display);
  font-size: 12.4px;
  font-weight: 400;
  font-stretch: 140%;
  letter-spacing: 0.2em;
}



.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-links a {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-stretch: 100%;
  text-decoration: none;
  color: var(--hdr-soft);
  transition: color 0.3s var(--ease-out);
}

.site-nav-links a:hover,
.site-nav-links a[aria-current='page'] {
  color: var(--hdr);
}

.menu-button {
  display: none;
  min-height: 44px;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: inherit;
  font: 400 0.9375rem var(--display);
  cursor: pointer;
}

@media (max-width: 960px) {
  .menu-button {
    display: block;
  }

  .site-nav-links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 6.5rem var(--gutter) 2rem;
    overflow-y: auto;
    background: var(--canvas);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s var(--ease-out), visibility 0s 0.35s;
  }

  .site-nav-links a {
    font-size: var(--step-3);
    font-weight: 200;
    font-stretch: 130%;
    color: var(--ink);
  }

  .site-header.is-open .site-nav-links {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.35s var(--ease-out);
  }
}

/* ---------- Buttons and doors ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 500 0.9375rem/1.1 var(--display);
  font-stretch: 112%;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-quiet {
  border-color: var(--line-strong);
  color: var(--text-primary);
}

.btn-quiet:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* A door into a room: big, unmistakable, and the same everywhere. */
.door {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 60px;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgb(239 230 216 / 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-stretch: 115%;
  text-decoration: none;
  text-shadow: none;
  color: var(--text-primary);
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.door-mark {
  position: relative;
  flex: none;
  width: 14px;
  height: 22px;
  border: 1px solid currentColor;
  border-bottom: 0;
  transition: transform 0.4s var(--ease-out);
}

.door-mark::after {
  content: '';
  position: absolute;
  inset: 2px 2px 0;
  background: var(--accent);
  transform: scaleX(0.15);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.door:hover {
  border-color: var(--bronze);
  background: rgb(226 212 190 / 0.9);
}

.door:hover .door-mark::after {
  transform: scaleX(1);
}

@media (pointer: coarse) {
  .btn,
  .door {
    min-height: 48px;
  }
}

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

.page-hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: min(82vh, 52rem);
  padding: 8rem var(--gutter) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}

.page-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 70% at 10% 100%, rgb(17 13 10 / 0.88), transparent 72%),
    linear-gradient(to top, rgb(17 13 10 / 0.7), transparent 45%);
}

.page-hero-copy {
  max-width: 52rem;
  color: var(--on-dark);
  text-shadow: var(--tshadow);
}

.page-hero h1 {
  font-size: var(--step-5);
}

.page-hero-lede {
  max-width: 34ch;
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--on-dark-soft);
}

.page-hero {
  background: #17120e;
}

.section {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
}

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

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 4rem;
  }
}

.section h2 {
  font-size: var(--step-3);
}

.prose {
  display: grid;
  gap: 1.25rem;
}

.prose p {
  max-width: 62ch;
  color: var(--text-secondary);
}

.prose .lede {
  max-width: 40ch;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--text-primary);
}

.prose h3 {
  margin-top: 0.75rem;
  font-size: var(--step-1);
  font-weight: 400;
  font-stretch: 110%;
}

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--bronze);
}

.offer-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.offer-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--hairline);
}

.offer-name {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 300;
  font-stretch: 118%;
  line-height: 1.15;
  color: var(--text-primary);
}

.offer-note {
  max-width: 60ch;
  color: var(--text-secondary);
}

.plain-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  max-width: 60ch;
  padding-left: 1.4rem;
  color: var(--text-secondary);
}

.plain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.6rem;
  height: 1px;
  background: var(--accent-muted);
}

/* ---------- The seam: the signature crack of light that runs down the page ---------- */

.seam {
  position: absolute;
  top: 0;
  left: var(--seam-x, 50%);
  width: 60px;
  height: 100%;
  margin-left: -30px;
  pointer-events: none;
  overflow: visible;
}

.seam path {
  fill: none;
  stroke: var(--bronze);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--draw, 0));
  filter: drop-shadow(0 0 6px rgb(227 178 106 / 0.6));
}

.seam path + path {
  stroke-width: 0.8;
  opacity: 0.6;
}

/* ---------- Entrances ---------- */

.reveal .part {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.in .part {
  opacity: 1;
  transform: none;
}

.reveal.in .part:nth-child(2) { transition-delay: 0.1s; }
.reveal.in .part:nth-child(3) { transition-delay: 0.2s; }
.reveal.in .part:nth-child(4) { transition-delay: 0.3s; }
.reveal.done .part:nth-child(n) { transition-delay: 0s; }

/* ---------- Forms ---------- */

.lead-form {
  display: grid;
  gap: 1.1rem;
  max-width: 38rem;
}

.form-fields {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-stretch: 100%;
}

.field-hint {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #f7f1e7;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.25s var(--ease-out);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 1px;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #a5432c;
}

.field-error {
  font-size: 0.9375rem;
  color: #a5432c;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--bronze);
}

.form-status {
  font-family: var(--display);
}

.form-download {
  margin-top: 16px;
}

.form-status.is-error {
  color: #a5432c;
}

.lead-form.is-done .form-fields {
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  display: grid;
  gap: 2.5rem;
  padding: clamp(3.5rem, 7vw, 5rem) var(--gutter) 2rem;
  background: #17120e;
  color: var(--on-dark-soft);
  font-size: 0.9375rem;
  --hairline: rgb(227 178 106 / 0.22);
}

.site-footer a {
  color: var(--on-dark-soft);
}

.site-footer .prose p {
  color: var(--on-dark-soft);
}

.site-footer .seal {
  color: var(--on-dark);
}

.site-footer-top {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .site-footer-top {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}


.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 0.6rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--on-dark);
}

.disclosure {
  max-width: 64rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ---------- Reduced motion: everything in its final state ---------- */

body.paused *,
body.paused *::before,
body.paused *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }

  .reveal .part {
    opacity: 1;
    transform: none;
  }

  .seam path {
    stroke-dashoffset: 0;
  }
}

/* ---------- What we do: the five rooms, from the header ---------- */

.nav-group {
  position: relative;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hdr-soft);
  font: 400 0.9375rem var(--display);
  cursor: pointer;
  transition: color 0.3s var(--ease-out);
}

.nav-toggle::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out), margin 0.3s var(--ease-out);
}

.nav-toggle:hover,
.nav-group.is-current .nav-toggle,
.nav-group.is-open .nav-toggle {
  color: var(--hdr);
}

.nav-group.is-open .nav-toggle::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -1.25rem;
  min-width: 18rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  border: 1px solid rgb(227 178 106 / 0.3);
  background: rgb(18 14 11 / 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s 0.3s;
}

.nav-group.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

@media (hover: hover) and (min-width: 961px) {
  .nav-group:hover .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }

  /* a bridge across the gap, so the pointer can reach the menu */
  .nav-group:hover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -1.25rem;
    right: -1.25rem;
    height: 0.8rem;
  }
}

.site-nav-links .nav-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 1.25rem;
  color: var(--on-dark);
  font-size: 1rem;
  font-stretch: 112%;
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}

.nav-menu a span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--on-dark-soft);
}

.site-nav-links .nav-menu a:hover,
.site-nav-links .nav-menu a[aria-current='page'] {
  background: rgb(227 178 106 / 0.1);
  color: var(--accent-hover);
}

@media (max-width: 960px) {
  .nav-toggle {
    min-height: 0;
    font: 400 0.75rem var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bronze);
    pointer-events: none;
  }

  .nav-toggle::after {
    display: none;
  }

  .nav-menu {
    position: static;
    min-width: 0;
    margin-top: 0.5rem;
    padding: 0;
    border: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    opacity: 1;
    visibility: inherit;
    transform: none;
  }

  .site-nav-links .nav-menu a {
    justify-content: flex-start;
    padding: 0.2rem 0;
    color: var(--ink);
    font-size: var(--step-3);
    font-weight: 200;
    font-stretch: 130%;
  }

  .nav-menu a span {
    font-size: 1rem;
    color: var(--text-secondary);
  }
}

/* ---------- Room pages ---------- */

.page-hero-kicker {
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-hero-plain {
  min-height: min(64vh, 40rem);
}

.apply-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  border-top: 1px solid var(--hairline);
}

.apply-band p {
  max-width: 28ch;
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 300;
  font-stretch: 110%;
  line-height: 1.2;
}

/* The way on: the next room, as a doorway you can see through. */
.next-room {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  min-height: clamp(20rem, 58vh, 36rem);
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
  overflow: hidden;
  isolation: isolate;
  background: #17120e;
  color: var(--on-dark);
  text-decoration: none;
}

.next-room img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.next-room::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(17 13 10 / 0.88), rgb(17 13 10 / 0.15) 65%);
}

.next-room:hover img {
  transform: scale(1.03);
}

.next-room-copy {
  display: grid;
  gap: 0.4rem;
  text-shadow: var(--tshadow);
}

.next-room-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.next-room-name {
  font-family: var(--display);
  font-size: var(--step-4);
  font-weight: 300;
  font-stretch: 118%;
  line-height: 1.05;
}

.next-room-place {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--on-dark-soft);
}

.next-room .door-mark {
  width: 22px;
  height: 34px;
  color: var(--accent);
}

.next-room:hover .door-mark::after {
  transform: scaleX(1);
}

/* ---------- The collection ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.figures li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}

.figures strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-weight: 200;
  font-stretch: 125%;
  line-height: 1;
}

.figures span {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.placards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.placards li {
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  min-height: 10rem;
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.4s var(--ease-out);
}

.placards li:hover {
  background: var(--panel);
}

.placard-no {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
}

.placard-name {
  display: block;
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 300;
  font-stretch: 112%;
  line-height: 1.15;
}

.placard-sector {
  margin-top: -1.1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ---------- Apply: how it works ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--hairline);
}

.steps li {
  position: relative;
  padding: 1.2rem 0 1.2rem 3rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-secondary);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.45rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--bronze);
}

.steps strong {
  font-family: var(--display);
  font-weight: 400;
  color: var(--text-primary);
}

/* ---------- Legibility: a shade under the header wherever it floats on a photograph ---------- */

.site-header:not(.is-solid)::before {
  content: '';
  position: absolute;
  inset: 0 0 -70%;
  z-index: -1;
  background: linear-gradient(to bottom, rgb(12 9 6 / 0.62), rgb(12 9 6 / 0.25) 60%, transparent);
  pointer-events: none;
}

.site-header:not(.is-solid) .wordmark,
.site-header:not(.is-solid) .site-nav-links > li > a,
.site-header:not(.is-solid) .nav-toggle,
.site-header:not(.is-solid) .menu-button {
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6), 0 2px 14px rgb(0 0 0 / 0.45);
}

.site-header:not(.is-solid) .site-nav-links > li > a,
.site-header:not(.is-solid) .nav-toggle {
  color: var(--on-dark);
}

.site-header.is-open::before {
  display: none;
}

.page-hero-copy .page-hero-lede {
  color: var(--on-dark);
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Sections are numbered, like a brief ---------- */

main {
  counter-reset: part;
}

.section.split {
  counter-increment: part;
}

.section.split > h2::before {
  content: counter(part, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--bronze);
}

/* ---------- Forms: two steps, and the one-line letter ---------- */

.form-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--bronze);
}

.form-back {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.form-step {
  display: grid;
  gap: 1.25rem;
}

.form-step[hidden] {
  display: none;
}

.letter-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.letter-row .field {
  flex: 1;
  min-width: 0;
}

.letter-row input {
  width: 100%;
}

.letter-form .form-fields {
  gap: 0.6rem;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer-letter {
  display: grid;
  gap: 0.6rem;
  max-width: 26rem;
}

.footer-letter-title {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 300;
  font-stretch: 115%;
  color: var(--on-dark);
}

.site-footer .form-note,
.site-footer .footer-letter p {
  color: var(--on-dark-soft);
}

.site-footer .letter-row input,
.room-letter .letter-row input {
  border-color: rgb(227 178 106 / 0.45);
  background: rgb(255 255 255 / 0.06);
  color: var(--on-dark);
}

.site-footer .letter-row input::placeholder,
.room-letter .letter-row input::placeholder {
  color: rgb(244 226 188 / 0.55);
}

.room-letter .form-note,
.room-letter .form-status {
  color: var(--on-dark-soft);
  font-size: 0.75rem;
  text-shadow: none;
}

@media (min-width: 1000px) {
  .site-footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem) auto;
    gap: 3rem;
  }
}

/* ---------- The founder, elsewhere ---------- */

.footprint {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.footprint a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

.footprint-text {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.footprint-name {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 300;
  font-stretch: 115%;
  line-height: 1.15;
}

.footprint-handle {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* the way out: a drawn arrow in a ring, which turns gold on hover */
.footprint-arrow {
  width: 40px;
  height: 40px;
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-primary);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.footprint a:hover .footprint-name {
  color: var(--bronze);
}

.footprint a:hover .footprint-arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
  transform: translate(2px, -2px);
}

/* ---------- The private line ---------- */

.concierge {
  width: min(36rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgb(227 178 106 / 0.35);
  background: var(--canvas);
  color: var(--text-primary);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.concierge::backdrop {
  background: rgb(12 9 6 / 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.concierge[open] {
  animation: concierge-in 0.45s var(--ease-out);
}

@keyframes concierge-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.concierge-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.6rem;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: 400 0.75rem var(--mono);
  cursor: pointer;
}

.concierge-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.concierge-seal {
  display: block;
  width: 56px;
  color: var(--text-primary);
}

.concierge-seal svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.concierge-seal circle {
  fill: none;
  stroke: currentColor;
}

.concierge-seal text {
  fill: currentColor;
  font: 400 12.4px var(--display);
  font-stretch: 140%;
  letter-spacing: 0.2em;
}

.concierge-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--bronze);
}

.concierge h2 {
  font-size: var(--step-3);
}

.concierge-head p:last-child {
  color: var(--text-secondary);
}

.concierge-foot {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

/* ---------- Reading comfort ---------- */

.page-hero h1 {
  max-width: 16ch;
}

.page-hero-lede,
.prose .lede {
  text-wrap: pretty;
}

.offer-note,
.prose p,
.plain-list li,
.steps li {
  line-height: 1.65;
  text-wrap: pretty;
}

.section.split > h2 {
  max-width: 12ch;
}

@media (max-width: 720px) {
  .page-hero h1 {
    font-size: clamp(2.4rem, 1.2rem + 6vw, 3.2rem);
  }

  .section h2 {
    font-size: clamp(1.9rem, 1.2rem + 3vw, 2.4rem);
  }
}

/* ---------- Questions ---------- */

.faq {
  margin: 0;
  border-top: 1px solid var(--hairline);
}

.faq > div {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--hairline);
}

.faq dt {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 300;
  font-stretch: 115%;
  line-height: 1.2;
}

.faq dd {
  max-width: 62ch;
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
  line-height: 1.65;
  text-wrap: pretty;
}

/* ---------- Consent: analytics wait for a yes ---------- */

.consent-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 44rem;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  border: 1px solid rgb(227 178 106 / 0.35);
  background: var(--canvas);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.35);
  font-size: 0.9375rem;
}

.consent-bar[hidden] {
  display: none;
}

/* In the house the bottom belongs to the walk's controls and the visitor's thumb: the bar waits under the header. */
.house-live .house-page .consent-bar {
  top: 4.75rem;
  bottom: auto;
  margin-right: 0;
  max-width: 30rem;
}

.consent-bar div {
  display: flex;
  gap: 0.5rem;
}

/* ---------- Focus: a gold ring wherever the ground is dark ---------- */

.site-header :focus-visible,
.site-footer :focus-visible,
.page-hero :focus-visible,
.next-room:focus-visible,
.house-stage :focus-visible {
  outline-color: var(--accent);
}

/* Without JavaScript the house is a long page, so the header scrolls away with it. */
html:not(.house-live) body.house-page .site-header {
  position: absolute;
}

/* ---------- Phones: the header fits on one line, whatever the width ---------- */

@media (max-width: 480px) {
  .site-header {
    gap: 0.6rem;
    padding-inline: max(1rem, env(safe-area-inset-left));
  }

  .wordmark {
    gap: 0.5rem;
  }

  .wordmark-mark {
    width: 26px;
    height: 26px;
  }

  .wordmark-text {
    font-size: 0.6875rem;
    font-stretch: 112%;
    letter-spacing: 0.14em;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .menu-button {
    font-size: 0.875rem;
  }

  .site-nav > .btn {
    min-height: 40px;
    padding: 0.5rem 0.8rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

@media (max-width: 374px) {
  .wordmark-text {
    display: none;
  }
}

/* ---------- Essays ---------- */

.essay {
  display: grid;
  justify-items: start;
  gap: 2.5rem;
}

.essay-byline {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
  width: min(100%, 62ch);
  color: var(--text-primary);
}

.essay-meta,
.essay-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.essay-body {
  width: min(100%, 62ch);
}

.essay-body p,
.essay-body li {
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text-primary);
}

.essay-body h2 {
  margin-top: 1.5rem;
  font-size: var(--step-2);
  line-height: 1.15;
}

.essay-body h3 {
  margin-top: 0.5rem;
}

.essay-body ul,
.essay-body ol {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.25rem;
}

.essay-body a,
.essay-byline a,
.essay-source a {
  color: inherit;
  text-decoration-color: var(--accent-muted);
  text-underline-offset: 0.2em;
}

.essay-kicker {
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.essay-body table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}

.essay-body th,
.essay-body td {
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
  color: var(--text-primary);
}

.essay-body thead th {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.essay-source {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.essay-list .footprint-handle {
  white-space: normal;
}

/* ---------- Decode: The Morse Code's lead magnets ---------- */

.decode-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .decode-feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.decode-cover {
  margin: 0;
  max-width: 30rem;
}

.decode-cover-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgb(30 23 18 / 0.08), 0 18px 48px -18px rgb(30 23 18 / 0.45);
  transform: rotate(-1.25deg);
}

.decode-body {
  display: grid;
  gap: 1.75rem;
}

.section .decode-inside-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
}

.decode-body .plain-list {
  margin: -0.75rem 0 0.5rem;
}

.decode-body .form-note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.decode-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 2rem 1.5rem;
  margin: 0.5rem 0 1rem;
  padding: 0;
  list-style: none;
}

.decode-card a {
  display: grid;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}

.decode-card .decode-cover-img {
  margin-bottom: 0.6rem;
  transform: none;
  box-shadow: 0 10px 28px -14px rgb(30 23 18 / 0.45);
  transition: transform 0.4s var(--ease-out);
}

.decode-card a:hover .decode-cover-img,
.decode-card a:focus-visible .decode-cover-img {
  transform: translateY(-4px);
}

.decode-card-num,
.decode-card-when {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze);
}

.decode-card-title {
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.2;
}

.decode-card-when {
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .decode-card .decode-cover-img { transition: none; }
}

@media (max-width: 899px) {
  .decode-cover {
    max-width: 15rem;
  }

  .decode-list {
    grid-template-columns: repeat(auto-fill, minmax(9rem, 11rem));
  }
}

/* Decode on a phone: most visitors arrive from YouTube on one, so the form
   comes up fast. A shorter hero, and the cover sits small beside the bullets. */
@media (max-width: 899px) {
  main:has(.decode-feature) .page-hero {
    min-height: 0;
    padding-top: 6.5rem;
    padding-bottom: 2.25rem;
  }

  main:has(.decode-feature) .page-hero h1 {
    font-size: var(--step-4);
  }

  .decode-feature {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1.25rem 1.25rem;
    padding-top: 2.25rem;
  }

  .decode-body {
    display: contents;
  }

  .decode-cover {
    grid-column: 1;
    grid-row: 1 / span 2;
    max-width: none;
  }

  .decode-cover-img {
    transform: none;
  }

  .decode-feature .decode-inside-title {
    grid-column: 2;
    align-self: end;
  }

  .decode-feature .plain-list {
    grid-column: 2;
    margin: 0;
    font-size: 0.9375rem;
  }

  .decode-feature .lead-form,
  .decode-feature .form-download {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }
}
