/* ═══════════════════════════════════════════
   OSARGI — Design System
   Colour · Typography · Spacing
   ═══════════════════════════════════════════ */

@font-face {
  font-family: 'Routed Gothic Wide';
  src: url('../fonts/routed-gothic-wide.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --lumiere:     #FAF7F2;
  --os:          #F2EDE4;
  --parchemin:   #F5F0E8;
  --sable:       #D4C4A8;
  --mineral:     #6B6259;
  --terre:       #5A5248;
  --pierre:      #3D3830;
  --argile:      #B8956A;
  --argile-text: #7A5C35;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--lumiere);
  color: var(--terre);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ═══════════════════════════════════════════
   Scrollbar — minimal, Osargi palette
   ═══════════════════════════════════════════ */

.intake-field::-webkit-scrollbar { width: 4px; }
.intake-field::-webkit-scrollbar-track { background: transparent; }
.intake-field::-webkit-scrollbar-thumb { background: var(--sable); border-radius: 2px; }
.intake-field::-webkit-scrollbar-thumb:hover { background: var(--mineral); }
.intake-field {
  scrollbar-width: thin;
  scrollbar-color: var(--sable) transparent;
}


/* ═══════════════════════════════════════════
   Language toggle
   ═══════════════════════════════════════════ */

.lang-toggle {
  position: fixed;
  top: 2.5rem;
  right: 3rem;
  z-index: 10;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.lang-toggle button {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sable);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.4s ease;
}

.lang-toggle button.active { color: var(--pierre); }
.lang-toggle button:not(.active):hover { color: var(--mineral); }
.lang-toggle .sep { font-size: 0.55rem; color: var(--sable); user-select: none; }


/* ═══════════════════════════════════════════
   Hero section
   ═══════════════════════════════════════════ */

.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem 2rem 2rem;
  max-width: 740px;
  margin: 0 auto;
  width: 100%;
}

.wordmark {
  font-family: 'Routed Gothic Wide', monospace;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--pierre);
  margin-bottom: 5rem;
  text-indent: 0.30em;
  opacity: 0;
  animation: arrive 2s ease 0.2s forwards;
}

.hero {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--pierre);
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 620px;
  opacity: 0;
  animation: arrive 2s ease 0.7s forwards;
}

.supporting {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--terre);
  text-align: center;
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.6;
  opacity: 0;
  animation: arrive 2s ease 1.1s forwards;
}

.accent-line {
  width: 40px;
  height: 1px;
  background: var(--argile);
  margin-bottom: 4rem;
  opacity: 0;
  animation: arrive 2s ease 1.4s forwards;
}


/* ═══════════════════════════════════════════
   Steps — shared
   ═══════════════════════════════════════════ */

.step-container {
  width: 100%;
  max-width: 540px;
  opacity: 0;
  animation: arrive 2s ease 1.7s forwards;
}

.step { display: none; }
.step.active { display: block; animation: fadeStep 0.8s ease forwards; }

@keyframes fadeStep {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════
   Step 1 — Write
   ═══════════════════════════════════════════ */

.intake-box {
  background: var(--os);
  border: 1px solid var(--sable);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.5s ease, background 0.5s ease;
}

.intake-box:focus-within {
  border-color: var(--mineral);
  background: var(--parchemin);
}

.intake-field {
  width: 100%;
  background: transparent;
  border: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 400;
  color: var(--pierre);
  outline: none;
  resize: vertical;
  overflow: auto;
  line-height: 1.7;
  min-height: 6rem;
  max-height: 40vh;
}

.intake-field::placeholder {
  color: var(--mineral);
  font-style: italic;
}

.step1-below {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.intake-privacy {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--mineral);
  line-height: 1.5;
  max-width: 300px;
}


/* ═══════════════════════════════════════════
   Step 2 — Review + Contact
   ═══════════════════════════════════════════ */

.review-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--pierre);
  line-height: 1.7;
  border-left: 2px solid var(--argile);
  padding-left: 1.5rem;
  margin-bottom: 3rem;
  white-space: pre-wrap;
}

.contact-section { margin-bottom: 2.5rem; }

.contact-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mineral);
  margin-bottom: 1rem;
  display: block;
}

.contact-row { display: flex; gap: 1rem; }

.field-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--mineral);
}

.contact-input {
  width: 100%;
  background: var(--os);
  border: 1px solid var(--sable);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--pierre);
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.contact-input:focus {
  border-color: var(--mineral);
  background: var(--parchemin);
}

.contact-input::placeholder { color: var(--sable); }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.consent-check {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--pierre);
  cursor: pointer;
}

.consent-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--mineral);
  line-height: 1.6;
}

.consent-text a {
  color: var(--terre);
  text-decoration: underline;
}

.review-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* ═══════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════ */

.btn-next {
  background: none;
  border: 1px solid var(--sable);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--terre);
  cursor: pointer;
  padding: 0.75rem 1.8rem;
  transition: border-color 0.4s ease, color 0.4s ease, opacity 0.4s ease;
  flex-shrink: 0;
}

.btn-next:hover { border-color: var(--pierre); color: var(--pierre); }
.btn-next:disabled { opacity: 0.2; cursor: default; }
.btn-next:disabled:hover { border-color: var(--sable); color: var(--terre); }

.btn-back {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--mineral);
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.btn-back:hover { color: var(--terre); }

.btn-primary {
  background: var(--pierre);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--lumiere);
  cursor: pointer;
  padding: 0.9rem 2.2rem;
  transition: background 0.4s ease, opacity 0.4s ease;
}

.btn-primary:hover { background: var(--terre); }
.btn-primary:disabled { opacity: 0.2; cursor: default; }
.btn-primary:disabled:hover { background: var(--pierre); }


/* ═══════════════════════════════════════════
   Step 3 — Confirmation
   ═══════════════════════════════════════════ */

.confirmation { text-align: center; max-width: 520px; }

.confirmation-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  color: var(--pierre);
  line-height: 1.15;
  margin-bottom: 2rem;
}

.confirmation-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--terre);
  line-height: 1.85;
  max-width: 400px;
  margin: 0 auto;
}

.confirmation-ref {
  font-family: 'Routed Gothic Wide', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--argile-text);
  margin-top: 3rem;
  display: block;
}


/* ═══════════════════════════════════════════
   Learn more CTA
   ═══════════════════════════════════════════ */

.learn-more-cta {
  text-align: center;
  padding: 1rem 2rem 3rem;
  opacity: 0;
  animation: arrive 2s ease 2.5s forwards;
}

.learn-more-cta a {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--mineral);
  text-decoration: none;
  transition: color 0.4s ease;
  cursor: pointer;
}

.learn-more-cta a:hover { color: var(--terre); }


/* ═══════════════════════════════════════════
   About section
   ═══════════════════════════════════════════ */

.about {
  max-width: 640px;
  margin: 0 auto;
  padding: 6rem 2rem 6rem;
}

.about-divider {
  width: 40px;
  height: 1px;
  background: var(--sable);
  margin: 0 auto 5rem;
}

.about-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  color: var(--pierre);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 3.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.about-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--terre);
  line-height: 1.95;
  max-width: 520px;
  margin: 0 auto 2.25rem;
}

.about-alchemy {
  font-family: 'Routed Gothic Wide', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--argile-text);
  text-align: center;
  margin: 3.5rem auto;
  line-height: 2.4;
  white-space: pre-line;
}

.about-name-origin {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--terre);
  line-height: 1.9;
  max-width: 520px;
  margin: 3.5rem auto 2.25rem;
  text-align: center;
}

.about-name-detail {
  font-family: 'Routed Gothic Wide', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--argile-text);
  text-align: center;
  margin-top: 1rem;
  line-height: 2.2;
  white-space: pre-line;
}

.about-founders {
  max-width: 520px;
  margin: 0 auto;
  border-top: 1px solid var(--sable);
  padding-top: 3rem;
  margin-top: 3.5rem;
}

.about-founders-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--pierre);
  margin-bottom: 1.25rem;
}

.about-founders-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--terre);
  line-height: 1.95;
}

.about-return { text-align: center; margin-top: 5rem; }

.about-return a {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--mineral);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.about-return a:hover { color: var(--pierre); }


/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */

footer {
  padding: 2.5rem 3rem 2rem;
  opacity: 0;
  animation: arrive 2s ease 2.2s forwards;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.footer-founders {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--mineral);
}

.footer-date {
  font-family: 'Routed Gothic Wide', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mineral);
}

.footer-legal {
  border-top: 1px solid var(--sable);
  padding-top: 1rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-legal a {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--mineral);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover { color: var(--terre); }


/* ═══════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════ */

@keyframes arrive {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════
   Mobile
   ═══════════════════════════════════════════ */

@media (max-width: 640px) {
  .lang-toggle { top: 1.5rem; right: 1.5rem; }
  .hero-section { padding: 6rem 1.5rem 2rem; }
  .wordmark { margin-bottom: 3.5rem; }
  .accent-line { margin-bottom: 3rem; }
  .step1-below { flex-direction: column; gap: 1rem; align-items: stretch; }
  .intake-privacy { max-width: 100%; }
  .btn-next { text-align: center; }
  .contact-row { flex-direction: column; }
  .review-actions { flex-direction: column-reverse; gap: 1rem; align-items: stretch; }
  .btn-primary { text-align: center; }
  .btn-back { text-align: center; }
  footer { padding: 2rem 1.5rem 1.5rem; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .footer-legal { gap: 1.25rem; }
  .about { padding: 4rem 1.5rem 4rem; }
}
