@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-Variable.ttf") format("truetype");
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --page: #fbfaf8;
  --ink: #111b23;
  --muted: #5b6063;
  --rule: #e0dcd3;
  --soft: #f2f0eb;
  --ink-soft: rgba(251, 250, 248, 0.75);
  --ink-body: rgba(251, 250, 248, 0.82);
  --ink-line: rgba(251, 250, 248, 0.3);
  --field: rgba(251, 250, 248, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: 20px;
  --max: 1440px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] .bar {
  transform: rotate(90deg);
}

@keyframes wordUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ruleDraw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

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

/* —— Shell —— */
.site {
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* —— Header —— */
/* Slim sticky bar (~56px). Hidden when #tour is on screen (see app.js). */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--pad-x);
  min-height: 56px;
  background: var(--page);
  transition: transform 0.22s var(--ease), visibility 0.22s;
}

.header.is-hidden {
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
}

/* Stacked STU mark is ~1.38:1 — keep height fixed, width from true aspect */
.header__logo {
  height: 36px;
  width: auto;
  aspect-ratio: 6000 / 4349;
  object-fit: contain;
}

.header__cta {
  background: var(--ink);
  color: var(--page);
  padding: 12px 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* —— Hero —— */
.hero {
  padding: 34px var(--pad-x) 30px;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero__title {
  margin: 0;
  font-size: clamp(44px, 8vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
  max-width: 1180px;
}

.hero__title .word {
  display: inline-block;
  animation: wordUp 0.8s var(--ease) both;
}

.hero__title .word:nth-child(1) {
  animation-delay: 0.05s;
}
.hero__title .word:nth-child(2) {
  animation-delay: 0.13s;
}
.hero__title .word:nth-child(3) {
  animation-delay: 0.21s;
}
.hero__title .word:nth-child(4) {
  animation-delay: 0.29s;
}
.hero__title .word:nth-child(5) {
  animation-delay: 0.37s;
}
.hero__title .word:nth-child(6) {
  animation-delay: 0.45s;
}

.hero__rule {
  height: 3px;
  background: var(--ink);
  margin-top: 22px;
  transform-origin: left;
  animation: ruleDraw 0.9s var(--ease) 0.45s both;
}

.hero__lead {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
}

.hero__lead-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.hero__lead-link:hover {
  color: var(--ink);
}

.hero__media {
  height: min(56vw, 400px);
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 50%;
}

/* —— Section headings —— */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.section-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex: 0 0 auto;
}

.section-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 500;
}

/* —— Differentiators —— */
.diff {
  padding: 52px 0 0;
}

.diff__head {
  padding: 0 var(--pad-x);
}

.diff__track {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  padding: 0 var(--pad-x);
  -webkit-overflow-scrolling: touch;
}

.diff__track::-webkit-scrollbar {
  display: none;
}

.diff__card {
  flex: 0 0 min(296px, 78vw);
}

.diff__card-media {
  height: 220px;
  overflow: hidden;
}

.diff__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diff__card-num {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.diff__card-title {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.diff__card-body {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.diff__card-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.diff__card-body a:hover {
  color: var(--ink);
}

.diff__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px var(--pad-x) 0;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 200ms;
  padding: 0;
}

.nav-btn[disabled],
.nav-btn.is-dim {
  opacity: 0.25;
  cursor: default;
}

.diff__count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-left: auto;
}

/* —— Membership —— */
.membership {
  padding: 52px var(--pad-x) 0;
}

.membership__tiers {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier {
  border: 1px solid var(--ink);
  background: var(--page);
  color: var(--ink);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.tier--featured {
  border-width: 2px;
  background: var(--ink);
  color: var(--page);
}

.tier__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.tier__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex-wrap: wrap;
}

.tier--featured .tier__label {
  color: var(--ink-soft);
}

.tier__badge {
  background: var(--page);
  color: var(--ink);
  padding: 4px 8px;
  font-size: 10px;
}

/* Compact top price kept in markup for possible future use; full card uses price-line. */
.tier__price {
  display: none;
  font-size: 22px;
  font-weight: 500;
  white-space: nowrap;
}

.tier__hours {
  margin-top: 16px;
}

.tier__hours-num {
  font-size: 52px;
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.tier__hours-unit {
  font-size: 16px;
  color: var(--muted);
}

.tier--featured .tier__hours-unit {
  color: var(--ink-soft);
}

/* Full card content on all breakpoints; tiers stack on mobile, 3-up on desktop. */
.tier__price-line {
  display: block;
  margin-top: 22px;
  font-size: 30px;
  font-weight: 500;
}

.tier__price-line span {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

.tier--featured .tier__price-line span {
  color: var(--ink-soft);
}

.tier__note {
  display: none;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  color: var(--muted);
}

.tier--featured .tier__note {
  border-top-color: var(--ink-line);
  color: rgba(251, 250, 248, 0.8);
}

.tier__list {
  display: flex;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
  color: var(--muted);
}

.tier--featured .tier__list {
  border-top-color: var(--ink-line);
  color: rgba(251, 250, 248, 0.8);
}

.includes {
  margin-top: 18px;
  background: var(--soft);
  padding: 16px;
}

.includes summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink);
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.includes summary::-webkit-details-marker {
  display: none;
}

.includes .bar {
  width: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform 220ms;
  flex: 0 0 auto;
}

.includes__body {
  margin-top: 16px;
  max-width: 720px;
}

.includes__lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.includes__block {
  margin: 0 0 16px;
}

.includes__block:last-child {
  margin-bottom: 0;
}

.includes__heading {
  margin: 0 0 6px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
}

.includes__block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.includes__signoff {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.includes__signoff-name {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

/* —— Tour form —— */
.tour {
  margin-top: 52px;
  background: var(--ink);
  color: var(--page);
  padding: 52px var(--pad-x);
}

.tour .section-num {
  color: rgba(251, 250, 248, 0.7);
}

.tour__intro {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-body);
  max-width: 380px;
}

.tour__layout {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 26px;
}

.tour__photo {
  display: none;
  height: 260px;
  overflow: hidden;
  margin-top: 40px;
}

.tour__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.field__input,
.field__select,
.field__textarea {
  border: none;
  background: var(--field);
  color: var(--page);
  padding: 16px;
  font-size: 16px;
  width: 100%;
  border-radius: 0;
  outline: none;
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: 1px solid rgba(251, 250, 248, 0.45);
}

.field__select option {
  color: var(--ink);
  background: var(--page);
}

.field__textarea {
  resize: vertical;
  min-height: 96px;
}

.field__textarea::placeholder {
  color: rgba(251, 250, 248, 0.45);
}

.seg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.seg__btn {
  background: var(--field);
  color: var(--page);
  border: none;
  padding: 14px 0;
  text-align: center;
  font-size: 15px;
  cursor: pointer;
}

.seg__btn.is-active {
  background: var(--page);
  color: var(--ink);
  font-weight: 500;
}

.form__submit {
  background: var(--page);
  color: var(--ink);
  border: none;
  padding: 18px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

.form__status {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.form__status.is-ok {
  color: #c8e6c9;
}

.form__status.is-err {
  color: #ffcdd2;
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.thanks {
  max-width: 640px;
  padding: 80px var(--pad-x) 120px;
}

.thanks p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.thanks__back {
  display: inline-block;
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal {
  max-width: 720px;
  padding: 64px var(--pad-x) 96px;
}

.legal h2 {
  margin: 32px 0 12px;
  font-size: 18px;
  line-height: 1.3;
}

.legal h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.legal p,
.legal li {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* —— Footer —— */
.footer {
  padding: 34px var(--pad-x) 28px;
}

.footer__logo {
  height: 40px;
  width: auto;
  aspect-ratio: 6000 / 4349;
  object-fit: contain;
  /* column flex defaults to stretch; without this the img box is full-width
     and object-fit:contain centers the mark */
  align-self: flex-start;
}

.footer__grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 18px;
}

.footer__addr,
.footer__links {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__bar {
  /* margin-top = air between address/links and the rule (border-top) */
  margin-top: 32px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}

.footer__legal {
  display: flex;
  gap: 16px;
}

/* —— Desktop —— */
@media (min-width: 900px) {
  :root {
    --pad-x: 64px;
  }

  .header {
    padding: 11px var(--pad-x);
    min-height: 70px;
  }

  .header__logo {
    height: 48px;
  }

  .header__cta {
    padding: 14px 24px;
    font-size: 11px;
  }

  .hero {
    padding: 76px var(--pad-x) 56px;
  }

  .hero__meta {
    font-size: 11px;
  }

  .hero__meta .m-only {
    display: none;
  }

  .hero__meta .d-only {
    display: inline;
  }

  .hero__title {
    margin-top: 0;
    /* 0.9 was too tight: 24/7 slash collided with next line (Beverly) */
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  .hero__title .word {
    animation-duration: 0.85s;
  }

  .hero__title .word:nth-child(1) {
    animation-delay: 0.05s;
  }
  .hero__title .word:nth-child(2) {
    animation-delay: 0.14s;
  }
  .hero__title .word:nth-child(3) {
    animation-delay: 0.23s;
  }
  .hero__title .word:nth-child(4) {
    animation-delay: 0.32s;
  }
  .hero__title .word:nth-child(5) {
    animation-delay: 0.41s;
  }
  .hero__title .word:nth-child(6) {
    animation-delay: 0.5s;
  }

  .hero__rule {
    height: 4px;
    margin-top: 34px;
    animation-duration: 1s;
    animation-delay: 0.55s;
  }

  .hero__row {
    display: block;
    margin-top: 32px;
  }

  .hero__lead {
    margin: 0;
    font-size: 19px;
    max-width: 640px;
  }

  .hero__media {
    height: min(48vw, 700px);
  }

  .hero__media img {
    object-position: center;
  }

  .diff {
    padding: 104px 0;
  }

  .diff__head {
    padding: 0 var(--pad-x);
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 48px;
    align-items: end;
  }

  .section-head {
    display: contents;
  }

  .diff .section-title {
    font-size: 64px;
    line-height: 0.98;
    letter-spacing: -0.045em;
    max-width: 640px;
  }

  .diff__nav {
    padding: 0;
    gap: 14px;
  }

  .diff__count {
    margin-left: 0;
    margin-right: 8px;
    font-size: 11px;
  }

  .nav-btn {
    width: 52px;
    height: 52px;
    font-size: 15px;
  }

  .diff__track {
    margin-top: 52px;
    gap: 24px;
    padding: 0 var(--pad-x);
  }

  .diff__card {
    flex: 0 0 404px;
  }

  .diff__card-media {
    height: 300px;
  }

  .diff__card-num {
    font-size: 11px;
  }

  .diff__card-title {
    font-size: 28px;
  }

  .diff__card-body {
    font-size: 17px;
  }

  .membership {
    padding: 0 var(--pad-x) 104px;
  }

  .membership__inner {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 48px;
    align-items: start;
  }

  .membership .section-num {
    color: var(--ink);
  }

  .membership .section-title {
    font-size: 64px;
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  .membership__tiers {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .tier {
    padding: 36px;
  }

  .tier__label {
    font-size: 11px;
    gap: 12px;
  }

  .tier__badge {
    padding: 5px 9px;
  }

  .tier__hours {
    margin-top: 26px;
  }

  .tier__hours-num {
    font-size: 88px;
    line-height: 0.82;
  }

  .tier__hours-unit {
    font-size: 17px;
  }

  .includes {
    margin-top: 22px;
    padding: 22px 26px;
  }

  .includes summary {
    font-size: 11px;
  }

  .includes .bar {
    width: 16px;
  }

  .includes__body {
    margin-top: 18px;
  }

  .includes__lead {
    margin-bottom: 20px;
    font-size: 17px;
  }

  .includes__block {
    margin-bottom: 18px;
  }

  .includes__heading {
    font-size: 16px;
    margin-bottom: 7px;
  }

  .includes__block p,
  .includes__signoff,
  .includes__signoff-name {
    font-size: 16px;
  }

  .tour {
    margin-top: 0;
    padding: 104px var(--pad-x);
  }

  .tour__layout {
    display: grid;
    grid-template-columns: 120px 1fr 620px;
    gap: 48px;
    align-items: start;
    margin-top: 0;
  }

  .tour .section-title {
    font-size: 64px;
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  .tour__intro {
    margin-top: 26px;
    font-size: 17px;
    line-height: 1.65;
  }

  .tour__photo {
    display: block;
  }

  .form {
    gap: 20px;
  }

  .form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .field {
    gap: 8px;
  }

  .field__input,
  .field__select,
  .field__textarea {
    font-size: 17px;
  }

  .seg {
    display: flex;
    gap: 8px;
  }

  .seg__btn {
    padding: 14px 20px;
    flex: 1;
  }

  .form__submit {
    width: auto;
    align-self: flex-start;
    padding: 19px 32px;
  }

  .footer {
    padding: 48px var(--pad-x) 0;
  }

  .footer__logo {
    height: 52px;
  }

  .footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 0;
  }

  .footer__links {
    text-align: right;
  }

  .footer__bar-wrap {
    padding: 0 var(--pad-x) 32px;
  }

  .footer__bar {
    margin-top: 40px;
    padding-top: 18px;
  }

  .footer__legal {
    gap: 20px;
  }
}

/* hide desktop-only meta strings on mobile */
.d-only {
  display: none;
}

@media (min-width: 900px) {
  .d-only {
    display: inline;
  }
  .m-only {
    display: none;
  }
}
