/* ===== Tokens ===== */
:root{
  --black: #050504;
  --black-soft: #0b0a09;
  --white: #f6f4ee;
  --white-dim: rgba(246,244,238,0.62);
  --gold: #a3803f;
  --gold-light: #cbaa6b;
  --line: rgba(246,244,238,0.10);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --gutter: clamp(24px, 6vw, 96px);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection{
  background: var(--gold);
  color: var(--black);
}

/* ===== Ambient signature glow ===== */
.glow{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    480px circle at var(--x, 50%) var(--y, 30%),
    rgba(163,128,63,0.16),
    transparent 60%
  );
  transition: opacity 0.6s ease;
  opacity: 0;
}
.glow.is-active{ opacity: 1; }

/* ===== Header mark ===== */
.mark{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 28px 0;
  pointer-events: none;
  mix-blend-mode: difference;
}
.mark span{
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--white);
  opacity: 0.55;
}

/* ===== Layout ===== */
main{
  position: relative;
  z-index: 1;
}

.section{
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--gutter);
}

.divider{
  width: 44px;
  height: 1px;
  margin: 0 auto;
  background: var(--gold);
  opacity: 0.55;
  position: relative;
  z-index: 1;
}

/* ===== Reveal on scroll ===== */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s cubic-bezier(.2,.6,.2,1), transform 1.1s cubic-bezier(.2,.6,.2,1);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hero ===== */
.section--hero{
  gap: 56px;
}
.hero-line{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
  max-width: 16ch;
  margin: 0;
}

.invite{
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.4s ease, border-color 0.4s ease, letter-spacing 0.4s ease;
}
.invite:hover{
  color: var(--gold-light);
  border-color: var(--gold-light);
  letter-spacing: 0.38em;
}

/* ===== Text sections (About / Scope) ===== */
.section--text{
  max-width: 760px;
  margin: 0 auto;
  gap: 30px;
}

.eyebrow{
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 6px 0;
}

.statement{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.55;
  color: var(--white);
  max-width: 34ch;
  margin: 0;
}

.statement--quiet{
  color: var(--white-dim);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-style: italic;
  max-width: 40ch;
}

/* ===== Central statement ===== */
.section--central{
  padding-top: 80px;
  padding-bottom: 80px;
}
.central-line{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.5;
  color: var(--gold-light);
  max-width: 22ch;
  margin: 0;
}

/* ===== Contact ===== */
.section--contact{
  gap: 40px;
}

.contact-form{
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.field{
  position: relative;
  text-align: left;
}

.field input,
.field textarea{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 0 10px 0;
  outline: none;
  resize: none;
  transition: border-color 0.4s ease;
}

.field textarea{ padding-top: 22px; }

.field input:focus,
.field textarea:focus{
  border-color: var(--gold);
}

.field label{
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 15px;
  color: var(--white-dim);
  pointer-events: none;
  transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease, top 0.3s ease;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field input:valid:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label{
  top: -14px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* label float trigger for inputs that have a value, without :placeholder-shown hack issues */
.field input:not(:focus):valid ~ label{ }

.contact-form button{
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 14px 34px;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
}
.field--trap{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status{
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  min-height: 1.2em;
  color: var(--white-dim);
  transition: color 0.3s ease;
}
.form-status.is-success{ color: var(--gold-light); }
.form-status.is-error{ color: #c97a6b; }

.contact-form button[disabled]{
  opacity: 0.5;
  cursor: default;
}

.contact-form button:hover{
  background: var(--gold);
  color: var(--black);
}

.contact-form button[disabled]:hover{
  background: transparent;
  color: var(--white);
}

.email{
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--white-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.email:hover{
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ===== Footer ===== */
.site-footer{
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px var(--gutter) 56px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(246,244,238,0.32);
}

/* ===== Focus visibility ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: 1px solid var(--gold-light);
  outline-offset: 4px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
  .glow{ display: none; }
  .invite, .contact-form button{ transition: none; }
}

/* ===== Small screens ===== */
@media (max-width: 640px){
  .section{ padding: 100px 24px; }
  .mark{ padding: 20px 0; }
}
