/* MOTION TIER: L1 (CSS transitions — single viewport, no scroll) */
/* Style seed: Botanical Calm × Dark Luxury */

:root {
  /* === COLOR === */
  --color-bg:           #1c1710;
  --color-fg:           #f5f0e5;
  --color-muted:        #c0b4a5;
  --color-accent:       oklch(72% 0.13 55);
  --color-accent-dim:   oklch(72% 0.13 55 / 0.22);
  --color-accent-rule:  oklch(72% 0.13 55 / 0.55);
  --color-bg-light:     #f2ede4;
  --color-fg-dark:      #2a2318;
  --color-muted-light:  #7a6a58;
  --color-rule:         #d8cfc1;
  --color-input-bg:     #faf7f2;
  --color-error:        #b84040;
  --color-success:      #4a7c59;

  /* === FLUID TYPE SCALE === */
  --step--1: clamp(0.83rem, 0.78rem + 0.22vw, 0.94rem);
  --step-0:  clamp(1rem,    0.95rem + 0.26vw, 1.13rem);
  --step-1:  clamp(1.2rem,  1.13rem + 0.33vw, 1.41rem);
  --step-2:  clamp(1.44rem, 1.34rem + 0.51vw, 1.76rem);
  --step-3:  clamp(1.73rem, 1.57rem + 0.76vw, 2.20rem);
  --step-4:  clamp(2.07rem, 1.84rem + 1.17vw, 2.75rem);
  --step-5:  clamp(2.49rem, 2.15rem + 1.71vw, 3.43rem);
  --step-6:  clamp(2.99rem, 2.50rem + 2.44vw, 4.29rem);
  --step-7:  clamp(3.58rem, 2.89rem + 3.48vw, 5.36rem);

  /* === FLUID SPACING === */
  --space-xs:  clamp(0.75rem,  0.70rem + 0.26vw, 0.88rem);
  --space-s:   clamp(1rem,     0.95rem + 0.26vw, 1.13rem);
  --space-m:   clamp(1.5rem,   1.40rem + 0.52vw, 1.75rem);
  --space-l:   clamp(2rem,     1.87rem + 0.65vw, 2.38rem);
  --space-xl:  clamp(3rem,     2.74rem + 1.30vw, 3.75rem);
  --space-2xl: clamp(4rem,     3.61rem + 1.96vw, 5rem);
  --space-3xl: clamp(6rem,     5.48rem + 2.61vw, 7.5rem);

  /* === TYPOGRAPHY === */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "DM Sans", system-ui, sans-serif;

  /* === EASINGS === */
  --ease-warm:  cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-luxe:  cubic-bezier(0.7, 0, 0.3, 1);
  --ease-quick: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================================
   BASELINE
   ============================================================ */

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

html, body {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

a {
  color: inherit;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 0.2em;
  transition: color 250ms var(--ease-warm);
}

img, canvas { display: block; max-width: 100%; }

/* ============================================================
   MOTION GUARD
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   SHADER CANVAS (Canvas 2D ambient glow — all devices)
   ============================================================ */

#shader-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-m) var(--space-xl);
  pointer-events: none;
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-variation-settings: 'wght' 300, 'opsz' 36;
  letter-spacing: 0.04em;
  color: var(--color-fg);
  opacity: 0.82;
}

/* ============================================================
   HERO — single viewport, no scroll
   ============================================================ */

main { height: 100dvh; }

.hero {
  position: relative;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  z-index: 1;
  overflow: hidden;
  background: transparent;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 30%, oklch(68% 0.18 55 / 0.22) 0%, transparent 52%),
    radial-gradient(ellipse at 20% 68%, oklch(60% 0.14 55 / 0.12) 0%, transparent 48%);
  pointer-events: none;
  z-index: -1;
}

.hero-content { max-width: 62ch; }

/* SIGNATURE: variable font weight extremes within one headline */
.hero-headline {
  font-size: var(--step-7);
  line-height: 1.0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

.hero-headline__ghost {
  font-variation-settings: 'wght' 100, 'opsz' 144;
  color: var(--color-fg);
  opacity: 0;
  transform: translateY(0.25em);
  transition:
    opacity 900ms var(--ease-luxe),
    transform 900ms var(--ease-luxe);
}

.hero-headline__solid {
  font-variation-settings: 'wght' 900, 'opsz' 9;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(0.25em);
  transition:
    opacity 700ms var(--ease-quick),
    transform 700ms var(--ease-quick);
}

.is-loaded .hero-headline__ghost:first-child {
  opacity: 0.75;
  transform: none;
  transition-delay: 200ms;
}

.is-loaded .hero-headline__solid {
  opacity: 1;
  transform: none;
  transition-delay: 480ms;
}

.is-loaded .hero-headline__ghost:last-child {
  opacity: 0.75;
  transform: none;
  transition-delay: 340ms;
}

@keyframes rule-extend {
  from { width: 0; opacity: 0; }
  to   { width: clamp(120px, 28vw, 260px); opacity: 1; }
}

.hero-rule {
  width: 0;
  height: 1px;
  border: none;
  background: var(--color-accent-rule);
  margin: var(--space-l) 0 0;
  opacity: 0;
}

.is-loaded .hero-rule {
  animation: rule-extend 1400ms var(--ease-luxe) 950ms both;
}

.hero-body {
  font-size: var(--step-0);
  color: var(--color-muted);
  line-height: 1.75;
  margin: var(--space-l) 0 var(--space-xl);
  max-width: none;
  opacity: 0;
  transform: translateY(0.4em);
  transition:
    opacity 700ms var(--ease-warm),
    transform 700ms var(--ease-warm);
}

.is-loaded .hero-body {
  opacity: 1;
  transform: none;
  transition-delay: 1100ms;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-l);
  opacity: 0;
  transform: translateY(0.4em);
  transition:
    opacity 700ms var(--ease-warm),
    transform 700ms var(--ease-warm);
}

.is-loaded .hero-ctas {
  opacity: 1;
  transform: none;
  transition-delay: 1300ms;
}


.hero-cta-secondary {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  background: none;
  border: 1px solid currentColor;
  padding: 0.65em 1.4em;
  cursor: pointer;
  border-radius: 2px;
  transition: color 280ms var(--ease-warm);
}

.hero-cta-secondary:hover { color: var(--color-fg); }

.hero-cta-secondary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: var(--space-s) var(--space-xl);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: var(--step--1);
  color: var(--color-muted);
  pointer-events: none;
}


.site-footer__link {
  pointer-events: auto;
  color: var(--color-muted);
  text-decoration-color: var(--color-accent-dim);
  opacity: 0.8;
  transition: color 250ms var(--ease-warm), opacity 250ms var(--ease-warm);
}

.site-footer__link:hover {
  color: var(--color-fg);
  opacity: 1;
}

/* ============================================================
   CONTACT MODAL
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-l);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-warm);
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(12% 0.02 55 / 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  background: var(--color-bg-light);
  color: var(--color-fg-dark);
  width: 100%;
  max-width: 460px;
  padding: var(--space-xl);
  border-radius: 3px;
  transform: translateY(14px);
  transition: transform 280ms var(--ease-quick);
}

.modal.is-open .modal-panel { transform: none; }

.modal-close {
  position: absolute;
  top: var(--space-m);
  right: var(--space-m);
  background: none;
  border: none;
  color: var(--color-muted-light);
  cursor: pointer;
  padding: var(--space-xs);
  line-height: 1;
  border-radius: 2px;
  transition: color 200ms var(--ease-warm);
}

.modal-close:hover { color: var(--color-fg-dark); }

.modal-close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.modal-title {
  font-family: var(--font-display);
  font-variation-settings: 'wght' 500, 'opsz' 36;
  font-size: var(--step-2);
  color: var(--color-fg-dark);
  margin-bottom: var(--space-l);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form { display: flex; flex-direction: column; gap: var(--space-m); }

.form-field { display: flex; flex-direction: column; gap: var(--space-xs); }


.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--color-fg-dark);
  background: var(--color-input-bg);
  border: 1px solid var(--color-rule);
  padding: var(--space-s) var(--space-m);
  border-radius: 2px;
  width: 100%;
  -webkit-appearance: none;
  transition: border-color 200ms var(--ease-warm);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}

.form-field textarea { resize: vertical; min-height: 96px; }

.cf-turnstile { min-height: 65px; }

.form-status {
  min-height: 1.4em;
  font-size: var(--step--1);
  color: var(--color-muted-light);
  margin: 0;
}

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

.form-submit {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  padding: var(--space-m) var(--space-xl);
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 0.02em;
  transition: opacity 200ms var(--ease-warm);
}

.form-submit:hover:not(:disabled) { opacity: 0.85; }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-submit:focus-visible {
  outline: 2px solid var(--color-fg-dark);
  outline-offset: 3px;
}

.form-submit__sending { display: none; }
.form-submit.is-loading .form-submit__label  { display: none; }
.form-submit.is-loading .form-submit__sending { display: inline; }

/* ============================================================
   MOBILE OVERRIDES
   ============================================================ */

@media (max-width: 767px) {
  .site-header { padding: var(--space-s) var(--space-m); }

  .hero {
    padding: var(--space-2xl) var(--space-m) var(--space-2xl);
    justify-content: center;
  }

  .hero-headline { font-size: var(--step-5); }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-m);
  }

  .site-footer {
    padding-inline: var(--space-m);
    font-size: clamp(0.7rem, 2.5vw, 0.83rem);
  }
}

/* ============================================================
   SHORT VIEWPORT OVERRIDES (desktop browser at reduced height)
   ============================================================ */

@media (max-height: 680px) {
  .hero {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-l);
  }
  .hero-headline { font-size: var(--step-5); }
  .hero-body {
    margin-top: var(--space-s);
    margin-bottom: var(--space-l);
  }
}

@media (max-height: 520px) {
  .hero {
    padding-top: var(--space-m);
    padding-bottom: var(--space-m);
    justify-content: center;
  }
  .hero-headline { font-size: var(--step-4); }
  .hero-body {
    margin-top: var(--space-xs);
    margin-bottom: var(--space-m);
  }
  .hero-rule { margin-top: var(--space-m); }
}
