/* The Offsite Company — implemented from the Claude Design handoff
   (The Offsite Company.dc.html). Palette: paper #F7F4EE, ink #17160F,
   Klein blue #002FA7. Type: Archivo 400/600. */

:root {
  --paper: #F7F4EE;
  --ink: #17160F;
  --blue: #002FA7;
  --hairline: rgba(23, 22, 15, 0.18);
  --muted: rgba(23, 22, 15, 0.65);
  --pad-x: clamp(24px, 5vw, 72px);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--blue); color: var(--paper); }
input, select, button, textarea { font-family: inherit; }

h1, h2, h3, p { margin: 0; }

#backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page { position: relative; z-index: 1; }

.wordmark, .kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.kicker { margin-bottom: 80px; }
.kicker-dim { color: rgba(247, 244, 238, 0.6); margin-bottom: 64px; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.btn {
  border: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 18px 36px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--blue); color: var(--paper); }
.btn-primary:hover { background: var(--ink); }

.btn-outline {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(247, 244, 238, 0.5);
}
.btn-outline:hover { background: var(--paper); color: var(--ink); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  padding: 14px 28px;
  align-self: flex-start;
  margin-top: 8px;
}

/* 1. Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px var(--pad-x) clamp(64px, 10vh, 120px);
  box-sizing: border-box;
}

.hero-body { max-width: 1200px; }

.hero h1 {
  margin: 0 0 32px;
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero p {
  margin: 0 0 40px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  max-width: 560px;
}

/* 2. Who we host */
.host {
  background: rgba(247, 244, 238, 0.92);
  padding: clamp(120px, 16vh, 200px) var(--pad-x);
}

.host-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(40px, 6vw, 96px);
  margin-bottom: 72px;
}

.host-grid h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.host-grid p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 440px;
}

.host-note {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
}

/* Full-bleed photo bands */
.photo-band {
  width: 100%;
  height: clamp(420px, 78vh, 820px);
  position: relative;
}

.photo-band img,
.where-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 3. What we do */
.what-we-do {
  background: var(--paper);
  padding: clamp(120px, 16vh, 200px) var(--pad-x);
}

.offer-list { display: flex; flex-direction: column; }

.offer-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 32px;
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}

.offer-row:last-child { border-bottom: 1px solid var(--hairline); }

.offer-row h2,
.where-grid h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.offer-row p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 560px;
}

/* 4. How a week works */
.week {
  background: rgba(247, 244, 238, 0.94);
  padding: clamp(120px, 16vh, 200px) var(--pad-x);
}

.week-inner { max-width: 880px; margin: 0 auto; }

.week-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.week-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}

.week-list li:last-child { border-bottom: 1px solid var(--hairline); }

.week-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.week-step {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
}

/* 5. Where */
.where {
  background: var(--paper);
  padding: clamp(120px, 16vh, 200px) var(--pad-x) 0;
}

.where-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(40px, 6vw, 96px);
  margin-bottom: 72px;
}

.where-grid h2 { margin-bottom: 20px; }

.where-grid p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 440px;
}

.where-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  margin: 0 calc(-1 * var(--pad-x));
}

.where-photo {
  position: relative;
  height: clamp(360px, 62vh, 640px);
}

.photo-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--paper);
  pointer-events: none;
}

/* 6. Privacy */
.privacy {
  background: rgba(247, 244, 238, 0.92);
  padding: clamp(120px, 18vh, 220px) var(--pad-x);
}

.privacy-inner {
  margin: 0 auto;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.privacy-inner .kicker { margin-bottom: 0; }

.privacy p {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* 7. For funds */
.funds {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(140px, 20vh, 240px) var(--pad-x);
}

.funds-inner { max-width: 1000px; margin: 0 auto; }

.funds h2 {
  margin-bottom: 40px;
  font-size: clamp(40px, 5.5vw, 84px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.funds p {
  margin-bottom: 48px;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.6;
  max-width: 640px;
}

/* 8. Proof */
.proof {
  background: var(--paper);
  padding: clamp(120px, 16vh, 200px) var(--pad-x);
}

.proof .kicker { margin-bottom: 24px; }

.proof-note {
  margin-bottom: 72px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 4vw, 64px);
}

.case {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-image {
  height: clamp(260px, 38vh, 420px);
  background: rgba(23, 22, 15, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.case-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-stat {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.case-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 480px;
}

/* 9. Closing CTA */
.closing {
  background: var(--paper);
  padding: clamp(120px, 16vh, 200px) var(--pad-x);
}

.closing-inner { max-width: 1000px; margin: 0 auto; }

.closing h2 {
  margin-bottom: 32px;
  font-size: clamp(32px, 4.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.closing p {
  margin-bottom: 48px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  max-width: 560px;
}

/* 10. Footer */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  padding: 80px var(--pad-x) 56px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}

/* Contact modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(23, 22, 15, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--paper);
  width: 100%;
  max-width: 520px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 2px;
  box-sizing: border-box;
}

.modal h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal-sent {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-sent[hidden] { display: none; }

.modal-sent p { font-size: 17px; line-height: 1.6; }

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

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

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.modal-close {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: rgba(23, 22, 15, 0.5);
  padding: 4px;
}

.modal-note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.modal-form input {
  border: none;
  border-bottom: 1px solid rgba(23, 22, 15, 0.3);
  background: transparent;
  padding: 10px 0;
  font-size: 17px;
  outline: none;
}

.modal-form input:focus { border-bottom-color: var(--blue); }

.btn-submit {
  align-self: flex-start;
  font-size: 15px;
  padding: 16px 32px;
  margin-top: 8px;
}

/* Narrow screens: stack the two-column rows */
@media (max-width: 560px) {
  .offer-row { grid-template-columns: 1fr; gap: 16px; }
  .week-list li { grid-template-columns: 48px 1fr; }
}
