/* ============================================
   StillPoint — brand tokens (per Brand Guide 8/25)
   ============================================ */
:root {
  --fog: #F5EDE1;      /* primary neutral / background */
  --forest: #1F3329;   /* accent panel */
  --moss: #6B7D6A;     /* accent panel / hover */
  --copper: #633A15;   /* micro accent, focus rings */
  --stone: #847F78;    /* ground neutral */
  --ink: #0D0F10;      /* primary text (dark) */
  --chalk: #FFFFFF;    /* secondary text (on dark) */

  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max-width: 1160px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--fog);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

a { color: inherit; }

h1, h2, h3 { font-weight: 700; margin: 0 0 var(--space-2); letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; font-weight: 600; }
h3 { font-size: clamp(20px, 3vw, 26px); line-height: 1.25; font-weight: 600; }
p { margin: 0 0 var(--space-2); }
small, .small { font-size: 14px; line-height: 1.5; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

/* ============================================
   Buttons — pill-shaped, Metricon-inspired
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
.btn-solid {
  background: var(--forest);
  color: var(--chalk);
  border-color: var(--forest);
}
.btn-solid:hover { background: var(--moss); border-color: var(--moss); }
.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--chalk); }
.btn-outline-light {
  background: transparent;
  color: var(--chalk);
  border-color: rgba(255,255,255,0.75);
}
.btn-outline-light:hover { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 237, 225, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(13, 15, 16, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.site-header .logo img { height: 22px; width: auto; }
.site-nav { display: flex; align-items: center; gap: var(--space-4); }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.site-nav a:not(.btn):hover { color: var(--copper); }
.site-nav .btn { min-height: 40px; padding: 8px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--chalk);
  background: var(--forest);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 32%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,51,41,0.15) 0%, rgba(31,51,41,0.2) 40%, rgba(31,51,41,0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-6) var(--space-3) var(--space-5);
  max-width: 680px;
}
.hero-content .eyebrow { color: #E8C7A0; }
.hero-content h1 { color: var(--chalk); }
.hero-content .lede {
  font-size: clamp(17px, 2vw, 19px);
  color: rgba(255,255,255,0.86);
  max-width: 520px;
}
.hero-cta { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

/* ============================================
   Problem / chaos section
   ============================================ */
.section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-5) 0; }

.problem {
  background: var(--forest);
  color: var(--chalk);
}
.problem .container { max-width: 820px; text-align: center; }
.problem .eyebrow { color: #E8C7A0; }
.problem h2 { color: var(--chalk); }
.noise-list {
  list-style: none;
  margin: var(--space-4) 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-3);
}
.noise-list li {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
}
.problem .punch {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: var(--chalk);
  max-width: 620px;
  margin: var(--space-3) auto 0;
}

/* ============================================
   Rooms grid — "Where do you need Stillpoint?"
   (Metricon "I want to..." card-grid pattern)
   ============================================ */
.rooms {
  text-align: center;
}
.rooms .container { max-width: 820px; }
.rooms-grid {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(13,15,16,0.14);
  border-radius: 8px;
  overflow: hidden;
}
.rooms-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: var(--space-4) var(--space-2);
  text-decoration: none;
  color: var(--ink);
  border-right: 1px solid rgba(13,15,16,0.14);
  transition: background-color 200ms ease;
}
.rooms-grid a:last-child { border-right: none; }
.rooms-grid a:hover { background: rgba(31,51,41,0.06); }
.rooms-grid svg { width: 34px; height: 34px; color: var(--forest); }
.rooms-grid span { font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================
   Feature split — alternating image/text
   (Metricon "Studio M" pattern)
   ============================================ */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.feature-split.reverse .feature-media { order: 2; }
.feature-split.reverse .feature-copy { order: 1; }
.feature-media img { border-radius: 4px; }
.feature-copy p { color: var(--stone); max-width: 460px; }
.feature-copy .btn { margin-top: var(--space-2); }
.feature-split + .feature-split { margin-top: var(--space-6); }

/* ============================================
   Trust checklist
   (Metricon "Master of design / guarantee" pattern)
   ============================================ */
.trust { background: var(--chalk); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-5);
  margin-top: var(--space-4);
}
.trust-item { display: flex; gap: var(--space-2); align-items: flex-start; }
.trust-item .check {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border: 1.5px solid var(--forest);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
  margin-top: 2px;
}
.trust-item .check svg { width: 15px; height: 15px; }
.trust-item h3 { margin-bottom: 6px; }
.trust-item p { color: var(--stone); margin: 0; }

/* ============================================
   Team grid
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.team-card { text-align: left; }
.avatar-circle,
.team-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-bottom: var(--space-2);
  object-fit: cover;
}
.avatar-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: var(--chalk);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.team-card h3 { margin-bottom: 6px; font-size: 18px; }
.team-card p { color: var(--stone); font-size: 14px; margin: 0; }

@media (max-width: 860px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
  background: var(--stone);
  color: var(--chalk);
}
.gallery h2 { color: var(--chalk); }
.gallery .container > .eyebrow,
.gallery .container > p { color: rgba(255,255,255,0.85); }
/* Large full-bleed "hero" photos, in place of a small thumbnail grid */
.photo-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--chalk);
  background: var(--forest);
}
.photo-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,51,41,0.05) 0%, rgba(31,51,41,0.1) 55%, rgba(31,51,41,0.75) 100%);
}
.photo-hero-caption {
  position: relative;
  z-index: 2;
  padding: var(--space-4) var(--space-3);
  max-width: 620px;
}
.photo-hero-caption .eyebrow { color: #E8C7A0; }
.photo-hero-caption h3 { color: var(--chalk); margin-bottom: 4px; }
.photo-hero-caption p { color: rgba(255,255,255,0.85); margin: 0; }
.photo-hero + .photo-hero { margin-top: 4px; }

/* ============================================
   Transformation / quotes
   ============================================ */
.transform { background: var(--forest); color: var(--chalk); }
.transform h2 { color: var(--chalk); }
.transform .container { max-width: 760px; text-align: center; }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.quote-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: var(--space-3);
  text-align: left;
}
.quote-card p.line {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.quote-card p.who {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* ============================================
   Preorder / email capture
   ============================================ */
.preorder { text-align: center; }
.preorder .container { max-width: 620px; }
.preorder-form {
  display: flex;
  gap: 10px;
  margin-top: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}
.preorder-form input[type="email"] {
  flex: 1 1 280px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--stone);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--chalk);
  color: var(--ink);
}
.preorder-form input[type="email"]:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
}
.preorder-note { margin-top: var(--space-2); color: var(--stone); }
.form-success {
  display: none;
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(31,51,41,0.08);
  border: 1px solid var(--forest);
  border-radius: 6px;
  color: var(--forest);
  font-weight: 600;
}
.form-success.show { display: block; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.85);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand img { height: 20px; margin-bottom: var(--space-1); }
.footer-brand p { color: rgba(255,255,255,0.6); margin: 0; }
.footer-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { text-decoration: none; font-size: 14px; color: rgba(255,255,255,0.85); }
.footer-links a:hover { color: var(--chalk); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding-top: var(--space-3);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-media { order: 1; }
  .feature-split.reverse .feature-copy { order: 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .rooms-grid a:nth-child(2) { border-right: none; }
  .rooms-grid a:nth-child(1), .rooms-grid a:nth-child(2) { border-bottom: 1px solid rgba(13,15,16,0.14); }
  .trust-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--fog);
    border-bottom: 1px solid rgba(13,15,16,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 250ms ease;
  }
  .site-nav.open { max-height: 320px; }
  .site-nav a:not(.btn) {
    display: block;
    padding: 16px var(--space-3);
    border-top: 1px solid rgba(13,15,16,0.06);
  }
  .site-nav .btn { margin: var(--space-2) var(--space-3) var(--space-3); }

  .hero-media img { object-position: 68% center; }
  /* Each gallery photo has its subject roughly centred already (45–58%),
     so no blanket shift here — that's what cropped the airport shot before. */
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero { min-height: 100vh; }
}
