/* Bin to Bottle: single-screen home page (2026-12-01).
   The page is one viewport tall on desktop and phone; type scales with the
   viewport height so the copy fits without scrolling. With the form open the
   page may scroll on small screens. */

:root {
  --btb-ink: #0d0f0e;
  --btb-charcoal: #1a1d1c;
  --btb-steel: #3a3f3d;
  --btb-stone: #6b7270;
  --btb-mist: #c8cdcb;
  --btb-cloud: #e8eae9;
  --btb-cream: #f5f4f0;
  --btb-copper: #b87333;
  --btb-copper-light: #d4956a;
  --btb-wine: #722f37;
  --font-headline: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --pad-x: clamp(24px, 6.6vw, 96px);
}

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

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

body {
  margin: 0;
  background: var(--btb-ink);
  color: var(--btb-cream);
  font-family: var(--font-body);
  font-weight: 300;
}

.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--btb-cream);
  color: var(--btb-ink);
  font-weight: 500;
}
.skip-link:focus { top: 16px; }

a { color: var(--btb-copper-light); }
a:hover { color: var(--btb-cream); }
:focus-visible { outline: 2px solid var(--btb-copper-light); outline-offset: 3px; }

/* --- Page frame --- */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(12px, 2.4vh, 28px);
  padding: clamp(18px, 4.6vh, 44px) var(--pad-x) clamp(14px, 4vh, 40px);
  background-color: var(--btb-ink);
  background-image:
    linear-gradient(90deg, rgba(13,15,14,0.97) 0%, rgba(13,15,14,0.93) 46%, rgba(13,15,14,0.62) 74%, rgba(13,15,14,0.5) 100%),
    url('images/hero-night-1600.webp');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-headline);
  font-size: clamp(20px, 2.7vh, 24px);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--btb-cream);
  text-decoration: none;
}
.wordmark__rule {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin: 0 0.5em;
  background: var(--btb-copper);
}

/* --- Main --- */
.stage {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.intro {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3vh, 28px);
  max-width: 760px;
}

.label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--btb-copper-light);
}
.label__rule { display: inline-block; width: 48px; height: 1px; background: var(--btb-copper); }

.headline {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(34px, 7.5vh, 68px);
  line-height: 1.06;
  font-weight: 400;
  color: var(--btb-cream);
}

.body-copy {
  margin: 0;
  max-width: 700px;
  font-size: clamp(14px, 1.9vh, 17px);
  line-height: 1.7;
  color: var(--btb-cloud);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(46px, 6vh, 54px);
  padding: 0 36px;
  border: 0;
  border-radius: 0;
  background: var(--btb-copper);
  color: var(--btb-ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.cta:hover { background: var(--btb-copper-light); }
.cta:disabled { opacity: 0.7; cursor: default; }
.intro .cta { align-self: flex-start; }

/* --- Footer --- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: clamp(10px, 2.2vh, 20px);
  border-top: 1px solid rgba(200,205,203,0.22);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--btb-mist);
}
.foot p { margin: 0; }
.foot a { color: var(--btb-mist); }
.foot a:hover { color: var(--btb-cream); }

/* --- Form panel (shown after Discuss a project) --- */
.panel {
  flex: 1 1 0;
  min-width: 0;
  padding: clamp(18px, 3.4vh, 32px) clamp(18px, 2.6vw, 36px);
  background: var(--btb-charcoal);
  border: 1px solid var(--btb-steel);
  border-top: 2px solid var(--btb-copper);
}
.panel[hidden] { display: none; }

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(8px, 1.6vh, 16px);
}
.panel__title {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(26px, 3.6vh, 32px);
  line-height: 1.1;
  font-weight: 400;
}
.panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -8px -10px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--btb-mist);
  cursor: pointer;
}
.panel__close:hover { color: var(--btb-cream); }

.contact__form { display: flex; flex-direction: column; gap: clamp(8px, 1.7vh, 16px); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.7vh, 16px) 16px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--btb-mist);
}
.form__optional { letter-spacing: 0.04em; text-transform: none; font-weight: 400; }
.form__input, .form__select, .form__textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--btb-stone);
  border-radius: 0;
  background: var(--btb-ink);
  color: var(--btb-cream);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
}
.form__textarea { min-height: clamp(64px, 10vh, 88px); resize: none; }
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: 2px solid var(--btb-copper-light);
  outline-offset: 1px;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.cf-turnstile { min-height: 65px; }
/* script.js sets this note's colour inline for the old light form. */
.contact__verify-note { margin: 0; font-size: 13px; font-weight: 400; color: var(--btb-copper-light) !important; }
.form__privacy { margin: 0; font-size: 12px; font-weight: 400; color: var(--btb-mist); }

/* Form open: the intro narrows to label and headline. */
.is-form-open .intro { flex: 0 0 min(36vw, 520px); }
.is-form-open .body-copy,
.is-form-open #open-form { display: none; }
.is-form-open .headline { font-size: clamp(32px, 5.8vh, 52px); }

/* --- Phone and narrow screens --- */
@media (max-width: 860px) {
  .page {
    background-image:
      linear-gradient(180deg, rgba(13,15,14,0.9) 0%, rgba(13,15,14,0.93) 45%, rgba(13,15,14,0.96) 100%),
      url('images/hero-night-900.webp');
    background-position: 58% center;
  }
  .stage { flex-direction: column; align-items: stretch; }
  .intro { gap: clamp(8px, 2.1vh, 18px); }
  .label { font-size: 11px; gap: 12px; }
  .label__rule { width: 32px; }
  .headline { font-size: clamp(27px, 4.5vh, 38px); line-height: 1.08; }
  .body-copy { font-size: clamp(12.5px, 1.72vh, 14.5px); line-height: 1.55; }
  .intro .cta { align-self: stretch; }
  .foot { font-size: 11px; }

  .is-form-open .intro { display: none; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form__foot .cta { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .cta, .panel__close, a { transition: background-color 0.15s ease, color 0.15s ease; }
}
