/* Momentum brand tokens (from the original Showit site) */
:root {
  --green: #34493d;
  --cream: #ededE5;
  --butter: #ded9a7;
  --sage: #bdd1ce;
  --ink: #1d2721;

  --font-display: "Syne", sans-serif;
  --font-body: "Inter Tight", system-ui, sans-serif;
  --font-accent: "Averia Serif Libre", Georgia, serif;
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.site-header {
  padding: 8px clamp(20px, 5vw, 64px) 0;
}
.logo { width: 150px; }

/* Main two-column layout */
.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(32px, 5vh, 64px) clamp(20px, 5vw, 64px);
}

/* Hero */
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--green);
}
/* Keeps "what's next." together on one line */
.nowrap { white-space: nowrap; }

h1 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.sub {
  margin: 24px 0 36px;
  max-width: 30ch;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 300;
  line-height: 1.45;
}

.cta {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.cta:hover { background: #2a3b31; transform: translateY(-2px); }
.cta:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }

/* Wavy line under the button (mobile only, see media query) */
.scroll-line { display: none; }
.scroll-line path {
  fill: none;
  stroke: url(#line-fade);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
/* Line "draws" downward on load by unclipping from top to bottom */
.scroll-line {
  clip-path: inset(0 0 100% 0);
  animation: draw-line 1.8s ease-out 0.4s forwards;
}
@keyframes draw-line { to { clip-path: inset(0 0 0 0); } }

/* Team column */
.team {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.proof {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green);
}

.person {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 18px;
}
.person img {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.person h2 {
  margin: 2px 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--green);
}
.person p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Footer + wave */
.site-footer { margin-top: auto; }

.waves {
  display: block;
  width: 100%;
  height: clamp(56px, 9vh, 96px);
  margin-bottom: -1px; /* hide hairline gap between wave and bar */
}
/* Header wave: the footer wave flipped upside down, a little shorter */
.waves-top {
  flex: none;
  height: clamp(40px, 6vh, 64px);
  margin: -1px 0 0;
  transform: scaleY(-1);
}

.w1 { fill: var(--sage); opacity: 0.6; }
.w2 { fill: var(--butter); opacity: 0.7; }
.w3 { fill: var(--sage); }
.w4 { fill: var(--green); }

.wave-layers > use {
  animation: drift 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.wave-layers > .w1 { animation-delay: -2s;  animation-duration: 9s; }
.wave-layers > .w2 { animation-delay: -3s;  animation-duration: 13s; }
.wave-layers > .w3 { animation-delay: -4s;  animation-duration: 17s; }
.wave-layers > .w4 { animation-delay: -5s;  animation-duration: 24s; }

/* Header wave drifts the other way, at different speeds, so it doesn't mirror the footer */
.waves-top .wave-layers > use { animation-direction: reverse; }
.waves-top .wave-layers > .w1 { animation-delay: -7s;  animation-duration: 11s; }
.waves-top .wave-layers > .w2 { animation-delay: -1s;  animation-duration: 15s; }
.waves-top .wave-layers > .w3 { animation-delay: -9s;  animation-duration: 20s; }
.waves-top .wave-layers > .w4 { animation-delay: -12s; animation-duration: 28s; }

@keyframes drift {
  0%   { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .wave-layers > use { animation: none; }
  .cta { transition: none; }
  .scroll-line { animation: none; clip-path: none; }
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 4px clamp(20px, 5vw, 64px) 22px;
  background: var(--green);
  color: var(--cream);
  font-size: 0.85rem;
}
.footer-bar nav { display: flex; gap: 20px; }
.footer-bar a { color: var(--cream); text-decoration: none; opacity: 0.85; }
.footer-bar a:hover { opacity: 1; text-decoration: underline; }

/* Mobile */
@media (max-width: 860px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    align-content: start;
    gap: 40px;
  }
  .logo { width: 128px; margin: 0 auto; }
  .hero, .proof { text-align: center; }
  /* Hero fills the first screen; the wavy line stretches to the bottom
     so the "60+ brands" line and bios start just below the fold */
  .hero {
    min-height: calc(100svh - 130px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4vh;
  }
  .scroll-line {
    display: block;
    flex: 1;
    width: 22px;
    min-height: 90px;
    margin-top: 28px;
  }
  .sub { margin: 18px auto 28px; }
  .footer-bar { flex-direction: column; align-items: center; text-align: center; }
  /* Photos side by side: two cards, each stacked photo -> name -> bio */
  .team {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .proof { grid-column: 1 / -1; }
  .person {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 12px;
  }
  .person img { width: 88px; height: 88px; }
  .person h2 { margin: 0 0 4px; font-size: 1rem; }
  .person p { font-size: 0.85rem; line-height: 1.45; }
}

/* ---------- Work together page (/worktogether) ---------- */
[hidden] { display: none !important; }
.site-header a { display: block; width: fit-content; }

.form-page {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) clamp(20px, 5vw, 40px) 48px;
}
.form-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.form-page .sub { max-width: none; margin: 16px 0 36px; }

#work-form { display: flex; flex-direction: column; gap: 22px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span,
.field legend {
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green);
  line-height: 1.4;
}
.field legend { margin-bottom: 10px; }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(52, 73, 61, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}

/* Multiple choice as pill buttons */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span {
  display: inline-block;
  padding: 10px 18px;
  border: 1.5px solid rgba(52, 73, 61, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.35;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pills label:hover span { border-color: var(--green); }
.pills input:checked + span { background: var(--green); border-color: var(--green); color: var(--cream); }
.pills input:focus-visible + span { outline: 3px solid var(--butter); outline-offset: 2px; }
.pills-stack { flex-direction: column; align-items: flex-start; }
.pills-stack span { border-radius: 18px; }

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

#work-form .cta {
  align-self: flex-start;
  margin-top: 6px;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
#work-form .cta:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-status { margin: 0; color: #9a3b2c; font-size: 0.95rem; }
.form-status:empty { display: none; }

.thanks {
  padding: 32px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 18px;
}
.thanks h2 { margin: 0 0 8px; font-family: var(--font-display); color: var(--green); }
.thanks p { margin: 0 0 18px; }
.thanks .back { color: var(--green); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .field input, .field textarea, .pills span { transition: none; }
}

@media (max-width: 860px) {
  .site-header a { margin: 0 auto; }
  .form-page h1, .form-page > .sub { text-align: center; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  #work-form .cta { align-self: stretch; text-align: center; }
}
