:root {
  --cream: #f4efe6;
  --paper: #fbf7f1;
  --ink: #1a2321;
  --ink-soft: #3d4a47;
  --muted: #5c6b67;
  --teal: #1f4a45;
  --teal-deep: #163833;
  --teal-soft: #d7e4e0;
  --wine: #8a3d38;
  --wine-deep: #6e2f2b;
  --gold: #c4a574;
  --line: rgba(26, 35, 33, 0.12);
  --shadow: 0 18px 50px rgba(22, 56, 51, 0.12);
  --serif: "Fraunces Variable", Fraunces, "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3 Variable", "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --header-h: 4.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-weight: 430;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  background-image: url("../images/grain.svg");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal); }
h1, h2, h3, .wordmark {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--teal-deep);
}
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 0.6rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand { text-decoration: none; color: inherit; display: grid; line-height: 1.15; }
.wordmark { font-size: 1.35rem; font-style: italic; font-weight: 600; color: var(--teal-deep); }
.brand-role { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 560; font-size: 0.95rem; }
.nav-links a:hover { color: var(--teal); }
.lang-switch { display: flex; gap: 0.15rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem; background: var(--paper); }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font: 650 0.75rem/1 var(--sans); letter-spacing: 0.04em;
  padding: 0.4rem 0.65rem; border-radius: 999px; color: var(--muted);
}
.lang-switch button.is-on { background: var(--teal); color: var(--cream); }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 650; font-size: 1rem;
  padding: 0.85rem 1.35rem; border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-deep); }
.btn-ghost { background: transparent; color: var(--teal-deep); box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Hero */
.hero { padding: 3.2rem 0 4rem; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 50vw; height: 50vw; max-width: 520px;
  background: radial-gradient(circle, rgba(31,74,69,.16), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 2.75rem; align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-variation-settings: "SOFT" 50, "WONK" 0.4, "opsz" 80; margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; margin: 0 0 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-visual {
  position: relative; isolation: isolate;
  display: flex; justify-content: center; align-items: center;
  min-height: 22rem;
}
.hero-3d {
  position: absolute;
  inset: -8% -30% -14% -30%;
  z-index: 0;
  pointer-events: none;
}
.hero-3d-poster, .hero-3d-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.hero-3d-canvas.is-on { pointer-events: auto; }
.hero-3d-poster.is-replaced { opacity: 0; transition: opacity .5s ease; }
.hero-portrait {
  position: relative; z-index: 1;
  width: 300px; max-width: 100%;
  margin: 0; text-align: center;
}
.hero-portrait-frame {
  width: 300px; max-width: 100%;
  padding: 7px;
  background: linear-gradient(180deg, #c4a574 0%, #1f4a45 100%);
  border-radius: 160px 160px 22px 22px;
  box-shadow: var(--shadow);
}
.hero-portrait-frame img,
.hero-portrait-frame picture,
.hero-portrait-frame picture img {
  display: block; width: 100%; height: auto;
  border-radius: 154px 154px 16px 16px;
  object-fit: cover; object-position: center 12%;
  aspect-ratio: 287 / 323;
  background: #2a2a2a;
}
.hero-portrait-name {
  margin: 0.75rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  font-size: 1.05rem;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 0 0 0.7rem; }
.help-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.help-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 1.1rem;
  padding: 1.25rem 1.2rem 1.4rem; min-height: 100%;
}
.help-card .icon-wrap {
  width: 2.4rem; height: 2.4rem; border-radius: 0.7rem;
  display: grid; place-items: center; background: var(--teal-soft); color: var(--teal);
  margin-bottom: 0.85rem;
}
.help-card h3 { font-size: 1.15rem; margin: 0 0 0.4rem; letter-spacing: -0.02em; }
.help-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.why-card { padding-top: 0.2rem; }
.why-card h3 { margin: 0 0 0.4rem; font-size: 1.35rem; }

.place { padding: 0; }
.place-band { position: relative; min-height: 420px; }
.place-band img { width: 100%; height: 520px; object-fit: cover; }
.place-copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(22, 56, 51, 0.86) 55%);
  color: var(--cream); padding: 5rem 0 2.2rem;
}
.place-copy h2, .place-copy .kicker { color: #f6efe4; }
.place-copy .kicker { color: var(--gold); }
.place-copy p { margin: 0; max-width: 36rem; color: rgba(251,247,241,.88); }

.about-grid { display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; align-items: start; }
.portrait {
  width: 200px; border-radius: 1.2rem; overflow: hidden;
  box-shadow: var(--shadow); background: #2a2a2a;
}
.portrait img, .portrait picture, .portrait picture img { width: 100%; height: auto; display: block; }
.about-copy { max-width: 42rem; }
.about-copy p { margin: 0 0 1rem; color: var(--ink-soft); }
.about-copy p:last-child { margin-bottom: 0; }
.community-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.1fr 1.1fr;
  gap: 0.75rem;
}
.community-card {
  margin: 0; border-radius: 1.1rem; overflow: hidden;
  box-shadow: var(--shadow); background: #1a2321;
  min-height: 16rem;
}
.community-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  aspect-ratio: 4 / 5;
}
.community-card:nth-child(2) img { aspect-ratio: 5 / 4; }
@media (max-width: 900px) {
  .community-grid { grid-template-columns: 1fr 1fr; }
  .community-card, .community-card:nth-child(2) img { aspect-ratio: 4 / 5; }
  .community-card:nth-child(2) img { aspect-ratio: 4 / 5; }
}

/* Form */
#review { background: linear-gradient(180deg, #e8efe9 0%, var(--cream) 100%); }
.form-card {
  background: var(--paper); border-radius: 1.4rem; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 1.75rem 1.5rem 1.6rem;
}
.progress { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.3rem; }
.progress-dots { display: flex; gap: 0.35rem; }
.progress-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--line); }
.progress-dot.is-current { background: var(--wine); transform: scale(1.2); }
.progress-dot.is-done { background: var(--teal); }
.progress-bar { flex: 1; height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--teal); transition: width .35s ease; }
#form-step-label { font-size: 0.85rem; font-weight: 650; color: var(--muted); letter-spacing: 0.04em; }
.step h3 { margin: 0 0 1rem; font-size: 1.55rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.2rem; }
.field.full { grid-column: 1 / -1; }
label, .label { font-weight: 620; font-size: 0.92rem; }
.hint { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 0.7rem;
  padding: 0.7rem 0.8rem; width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--teal) 45%, white);
  border-color: var(--teal);
}
textarea { min-height: 7rem; resize: vertical; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.85rem;
  background: #fff; cursor: pointer; font-weight: 560;
}
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.choice input { accent-color: var(--teal); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; }
.consent input { margin-top: 0.3rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-nav { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 1.4rem; }
.field-error { color: var(--wine); font-size: 0.82rem; min-height: 1em; }
#form-error { color: var(--wine); margin-top: 0.8rem; font-weight: 620; }
#form-success {
  background: var(--paper); border-radius: 1.4rem; padding: 2.2rem 1.6rem;
  box-shadow: var(--shadow); outline: none;
}
#form-success h3 { font-size: 2rem; margin-top: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact-card {
  background: var(--paper); border-radius: 1.1rem; padding: 1.2rem 1.2rem 1.3rem;
  border: 1px solid var(--line); text-decoration: none; color: inherit;
  display: block;
}
.contact-card span { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wine); font-weight: 700; margin-bottom: 0.3rem; }
.contact-card strong { font-size: 1.15rem; color: var(--teal-deep); }

/* Footer */
.site-footer { background: var(--teal-deep); color: #e8efe9; padding: 2.6rem 0 2rem; }
.site-footer a { color: #f1e3c8; }
.site-footer .wordmark { color: #f4efe6; }
.footer-top { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.fine { font-size: 0.82rem; color: #c5d1cc; max-width: 50rem; margin: 0 0 0.7rem; }
.credits { font-size: 0.78rem; color: #a9b8b3; }

/* Reveal: stay visible if JS does not run. js-motion opts into hide-until-in-view. */
[hidden] { display: none !important; }
.reveal { opacity: 1; transform: none; }
.js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js-motion .reveal.is-in { opacity: 1; transform: none; }
.reduce-motion .reveal,
.js-motion.reduce-motion .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; justify-items: center; gap: 2rem; }
  .help-grid, .why-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle {
    display: inline-flex; background: transparent; border: 1px solid var(--line);
    border-radius: 0.5rem; padding: 0.4rem 0.55rem; cursor: pointer;
  }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 0.8rem 1rem 1.1rem; gap: 0.6rem;
  }
  .nav-links.is-open { display: flex; }
  .header-inner { position: relative; }
}
@media (max-width: 640px) {
  .hero { padding: 2rem 0 2.5rem; }
  .hero-grid, .help-grid, .why-grid, .contact-grid, .grid-2, .community-grid, .about-grid { grid-template-columns: 1fr; }
  .about-grid { justify-items: center; }
  .hero-portrait, .hero-portrait-frame { width: min(300px, 86vw); }
  .section { padding: 3rem 0; }
  .place-band img { height: 380px; }
  .form-card { padding: 1.2rem 1rem; }
}

@media (max-width: 900px) {
  .hero-3d { inset: -8% -8% -10% -8%; opacity: 0.7; }
  .hero-3d-canvas.is-on { pointer-events: none; }
}
