/* Shared by the home page and the contact page. Both sit on the painted street scene
   (assets/street.js), so text is always light over a dark scrim. */

:root {
  --eds-accent: #E3B23C;
  --ink: #F6F3EA;
  --ink-muted: rgba(246, 243, 234, 0.82);
  --mark: #9FD9B5;
  --primary: #1F5E3B;
  --primary-hover: #26704A;
  --card: rgba(14, 20, 16, 0.72);
  --field: rgba(246, 243, 234, 0.08);
  --field-border: rgba(246, 243, 234, 0.28);
  --error: #FFB4A8;
  /* Shown until the street scene paints (and if scripts are off): a rough
     sketch of the same picture, canopy over warm light over shaded road. */
  --fallback: linear-gradient(to bottom, #1d2a16 0%, #3d5424 22%, #c9b679 40%, #efd9a9 45%, #5a5a4e 52%, #2b2c28 100%);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #1d2418 var(--fallback);
  background-attachment: fixed;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* The painted street: fills the screen behind everything. */
#street {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  display: block;
  z-index: 0;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

main, .site-header {
  position: relative;
  z-index: 2;
}

/* ---------- logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.logo svg {
  height: 2.5rem;
  width: auto;
  fill: var(--mark);
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.45));
}

.logo-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.site-header {
  padding: 1.25rem 1.5rem;
}

.site-header .logo svg { height: 2rem; }
.site-header .logo-word { font-size: 1.35rem; }

/* ---------- text ---------- */

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eds-accent);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

h1 {
  margin: 0 0 0.9rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}

.lede {
  margin: 0 auto 1.75rem;
  max-width: 38rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-muted);
  text-wrap: pretty;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost {
  background: rgba(14, 20, 16, 0.35);
  border-color: rgba(246, 243, 234, 0.45);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--eds-accent);
  outline-offset: 2px;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* ---------- home ----------
   Two full-screen sections that snap: the logo alone on the street, then (one scroll
   down) the pitch, which fades in while a deeper scrim darkens the scene behind it. */

html.home-page {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.home .scrim {
  background: radial-gradient(ellipse 60% 30% at 50% 66%, rgba(8, 12, 9, 0.45), rgba(8, 12, 9, 0) 75%);
}

.home .scrim-deep {
  background:
    radial-gradient(ellipse 85% 60% at 50% 60%, rgba(8, 12, 9, 0.55), rgba(8, 12, 9, 0) 80%),
    linear-gradient(to top, rgba(8, 12, 9, 0.75) 0%, rgba(8, 12, 9, 0.35) 45%, rgba(8, 12, 9, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.home.on-pitch .scrim-deep { opacity: 1; }

.home main { flex: 1; }

.intro,
.pitch {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.intro {
  justify-content: flex-end;
  padding-bottom: max(18vh, 6rem);
}

.logo-large {
  margin: 0;
  gap: 0.9rem;
}

.logo-large svg { height: clamp(3rem, 7vw, 4.5rem); }
.logo-large .logo-word { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; }

.scroll-cue {
  margin-top: 2.5rem;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(246, 243, 234, 0.4);
  color: var(--ink);
  background: rgba(14, 20, 16, 0.3);
  animation: cue 2.2s ease-in-out infinite;
}

.scroll-cue svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.pitch {
  justify-content: center;
}

.headline {
  margin: 0 0 0.9rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}

/* Fades/slides in when the pitch comes into view (home.js). Without JS it's just shown. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .on-pitch .reveal,
.on-pitch .reveal {
  opacity: 1;
  transform: none;
}

/* Phones: the stacked points make the pitch taller than the screen, so snap gently
   rather than forcing every scroll to land on a section edge. */
@media (max-width: 640px) {
  html.home-page { scroll-snap-type: y proximity; }
  .pitch { padding-top: 1.5rem; padding-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html.home-page { scroll-behavior: auto; }
  .scroll-cue { animation: none; }
  .js .reveal { transition: opacity 0.3s ease; transform: none; }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 60rem;
  margin: 2.5rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.pillars li {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(14, 20, 16, 0.55);
  border: 1px solid rgba(246, 243, 234, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pillars h3 {
  margin: 0 0 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--mark);
}

.pillars p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; gap: 0.6rem; margin-top: 2rem; }
}

@media (max-width: 420px) {
  .logo svg { height: 2.1rem; }
  .logo-word { font-size: 1.4rem; }
}

/* ---------- contact ---------- */

.contact .scrim {
  background: rgba(8, 12, 9, 0.55);
}

.contact main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 3rem;
}

.card {
  width: 100%;
  max-width: 34rem;
  padding: 2rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(246, 243, 234, 0.14);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.card .lede { margin: 0 0 1.5rem; font-size: 1rem; }

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.field .optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--field-border);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS from zooming on focus */
}

.field textarea { min-height: 8rem; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(246, 243, 234, 0.45); }

/* Spam trap: hidden from people, visible to bots that fill every field. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.form-status {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.form-status.error { color: var(--error); }

.sent h2 {
  margin: 0 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.8rem;
}

.sent p { color: var(--ink-muted); margin: 0 0 1.5rem; }

@media (max-width: 480px) {
  .card { padding: 1.5rem 1.25rem; }
  .site-header { padding: 1rem; }
}

/* At night the street dims a little. */
@media (prefers-color-scheme: dark) {
  #street { filter: brightness(0.8) saturate(0.95); }
}
