/* Palette sampled from the BCA SOFT logo */
:root {
  --cream: #f7f4ec;
  --ink: #0b0b0b;
  --gold-light: #e8d5a3;
  --gold: #bba97f;
  --gold-dark: #9a8c6b;
  --gold-deep: #6f6347;

  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px var(--gutter) 80px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(232, 213, 163, 0.28), transparent 70%),
    var(--cream);
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Logo motif */
.motif {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1300px, 150vw, 190vh);
  transform: translateX(-50%);
  z-index: -2;
  opacity: 0.13;
  pointer-events: none;
}
.motif-star {
  transform-origin: 725px 415px;
  animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.75; }
}

/* Nav */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px var(--gutter);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}
.brand-mark { width: 64px; height: auto; display: block; }

/* Content */
.content {
  max-width: 920px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 10rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title {
  margin: 28px auto 0;
  max-width: 22ch;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.15;
}

.tagline {
  margin: 18px auto 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: #4a4636;
}

/* Buttons */
.cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font: 600 0.95rem/1 var(--font-sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  border-color: transparent;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(154, 140, 107, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold-dark);
}
.btn-secondary:hover {
  background: rgba(187, 169, 127, 0.18);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 24px;
  height: 40px;
  margin-left: -12px;
  border: 1.5px solid var(--gold-dark);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-dark);
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  80%, 100% { transform: translateY(14px); opacity: 0; }
}

/* Entrance */
.content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.content > :nth-child(2) { animation-delay: 0.1s; }
.content > :nth-child(3) { animation-delay: 0.22s; }
.content > :nth-child(4) { animation-delay: 0.34s; }
.content > :nth-child(5) { animation-delay: 0.46s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .btn { width: 100%; }
  .cta { flex-direction: column; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .content > * { animation: none; opacity: 1; transform: none; }
  .motif-star, .scroll-hint span { animation: none; }
}

/* ---------- About Us ---------- */
.about {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  background: #fbf9f3;
  border-top: 1px solid rgba(154, 140, 107, 0.25);
}
.container { max-width: 1120px; margin: 0 auto; }

.section-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  line-height: 1.05;
}
.lead {
  margin: 28px 0 0;
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.7;
  color: #3d3a2d;
}

.about-columns {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 6vw, 80px);
  padding-top: 40px;
  border-top: 1px solid rgba(154, 140, 107, 0.35);
}
.about-columns h3, .block-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.75rem;
}
.about-columns p {
  margin: 0;
  line-height: 1.75;
  color: #4a4636;
}

.stats {
  list-style: none;
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(154, 140, 107, 0.35);
  border-bottom: 1px solid rgba(154, 140, 107, 0.35);
}
.stats li { padding: 36px 24px; text-align: center; }
.stats li + li { border-left: 1px solid rgba(154, 140, 107, 0.35); }
.stats strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  font-variant-numeric: lining-nums;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span {
  display: block;
  margin: 12px auto 0;
  max-width: 24ch;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4a4636;
}

.block { margin-top: clamp(72px, 10vw, 128px); }
.block-title { margin-bottom: 32px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  padding: 40px;
  background: var(--cream);
  border: 1px solid rgba(154, 140, 107, 0.35);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(154, 140, 107, 0.2);
}
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h4, .steps h4, .principles h4 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
}
.card p, .steps p, .principles p {
  margin: 0;
  line-height: 1.7;
  color: #4a4636;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.steps li { padding-top: 24px; border-top: 2px solid var(--gold); }
.step-no {
  display: block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.principles li { padding-left: 20px; border-left: 2px solid var(--gold); }

.about-cta {
  margin-top: clamp(72px, 10vw, 128px);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(232, 213, 163, 0.18), transparent 70%),
    var(--ink);
  color: var(--cream);
}
.about-cta h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
}
.about-cta p { margin: 16px auto 32px; max-width: 46ch; line-height: 1.6; color: #d9d3c0; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  border-color: transparent;
  color: var(--ink);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232, 213, 163, 0.3); }

/* Scroll reveal (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .about-columns, .cards, .stats { grid-template-columns: 1fr; }
  .stats li + li { border-left: 0; border-top: 1px solid rgba(154, 140, 107, 0.35); }
  .card { padding: 28px; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Single key figure */
.stats { grid-template-columns: 1fr; }
.stats strong { font-feature-settings: "lnum" 1; }

/* ---------- Contact dialog ---------- */
.contact {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid rgba(154, 140, 107, 0.4);
  border-radius: 24px;
  background: var(--cream);
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 30px 80px rgba(11, 11, 11, 0.35);
}
.contact::backdrop { background: rgba(11, 11, 11, 0.55); backdrop-filter: blur(4px); }
.contact[open] { animation: pop 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

.contact-form { position: relative; padding: clamp(28px, 5vw, 48px); }
.contact-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold-deep);
  cursor: pointer;
}
.contact-close:hover { background: rgba(187, 169, 127, 0.2); }
.contact-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.1;
}
.contact-sub { margin: 12px 0 28px; line-height: 1.6; color: #4a4636; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid rgba(154, 140, 107, 0.55);
  border-radius: 12px;
  background: #fff;
  font: 400 1rem/1.4 var(--font-sans);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(187, 169, 127, 0.35);
}
.field .invalid, .field input:user-invalid, .field textarea:user-invalid { border-color: #a4402f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status { min-height: 1.4em; margin: 4px 0 12px; font-size: 0.92rem; line-height: 1.5; }
.form-status.error { color: #a4402f; }
.form-status.success { color: #4f6b3a; font-weight: 600; }
.contact-submit { width: 100%; cursor: pointer; }
.contact-submit:disabled { opacity: 0.6; cursor: progress; }

@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
