:root {
  --bg: #0B0B0C;
  --bg-raised: #131314;
  --ink: #EDE8DE;
  --ink-muted: #9C978C;
  --ink-faint: #625E56;
  --gold: #BFA05A;
  --hairline: rgba(237,232,222,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

.display {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8vh 8vw;
}

/* ---------- Section 1: Mark ---------- */
#mark {
  flex-direction: column;
  gap: 22px;
}

.logo-mark {
  width: clamp(320px, 42vw, 620px);
  position: relative;
}

.wordmark-letters {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  animation: settleIn 1s ease both;
}

.wordmark-lines {
  position: relative;
  width: 100%;
  height: clamp(6px, 0.9vw, 12px);
  margin-top: clamp(4px, 0.8vw, 10px);
}

.line-left,
.line-right {
  position: absolute;
  top: 0;
  height: auto;
  opacity: 0;
  animation: lineReveal 0.7s ease both;
  animation-delay: 0.9s;
}

.line-left {
  left: 9.9%;
  width: 42.42%;
  transform-origin: right center;
}

.line-right {
  left: 52.96%;
  width: 36.03%;
  transform-origin: left center;
  animation-delay: 1s;
}

@keyframes lineReveal {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}

.tagline {
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-align: center;
}

.wordmark-rule {
  width: 1px;
  height: 64px;
  background: var(--gold);
}

.scroll-cue {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Entrance motion ----------
   A real fade-up on load. Kept short (under 1.3s total, small delays) so
   it settles almost immediately — long enough to read as a proper
   entrance, short enough that any reasonable page-load wait (browsers,
   crawlers, screenshot tools) clears it well before capturing. */
.tagline,
.wordmark-rule {
  animation: settleIn 1s ease both;
}
.tagline { animation-delay: 0.15s; }
.wordmark-rule { animation-delay: 0.3s; }

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

/* ---------- Section 2: Statement (hero photo) ---------- */
#statement {
  background-image:
    linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.72) 55%, rgba(11,11,12,0.92) 100%),
    url('hero-photo.jpg');
  background-size: cover;
  background-position: center 30%;
  text-align: center;
}

#statement .inner {
  max-width: 720px;
}

#statement .eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
}

#statement h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- Section 3 & 4: Solutions / Advisory ---------- */
.offer {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.offer .inner {
  max-width: 560px;
  margin: 0 auto;
}

.offer .rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 32px;
}

.offer h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 22px;
}

.offer p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink-muted);
  font-weight: 300;
  max-width: 46ch;
}

.offer p + p {
  margin-top: 18px;
}

#advisory { background: var(--bg-raised); }

/* ---------- Section 5: Access ---------- */
#access {
  flex-direction: column;
  text-align: center;
}

#access .inner {
  max-width: 480px;
  width: 100%;
}

#access .rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
}

#access h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 18px;
}

#access .intro {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 48px;
}

/* ---------- Scroll-triggered motion (also safe: .in-view only adds a ----------
   transform shift; elements are never opacity:0, so if IntersectionObserver
   never fires — JS blocked, crawler, whatever — content is simply static,
   never invisible) */
.offer .inner,
#access .inner {
  transition: transform 0.9s ease, opacity 0.9s ease;
}
.offer .inner.in-view,
#access .inner.in-view {
  transform: translateY(0);
  opacity: 1;
}
.offer .inner:not(.in-view),
#access .inner:not(.in-view) {
  transform: translateY(34px);
  opacity: 0.55;
}

form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
}

.field {
  position: relative;
}

.field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  padding: 6px 2px 12px;
  transition: border-color 0.4s ease;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
  font-weight: 300;
}

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

.word-count {
  margin-top: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-align: right;
}
.word-count.limit {
  color: var(--gold);
}

.optional-tag {
  font-size: 0.62rem;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  margin-left: 8px;
}

button[type="submit"] {
  margin-top: 12px;
  align-self: flex-start;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 38px;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
}

button[type="submit"]:hover {
  background: var(--gold);
  color: var(--bg);
}

.confirm-msg {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease;
}
.confirm-msg.show { opacity: 1; height: auto; }
.confirm-msg.error { color: #C97A5A; }

.email-line {
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.email-line a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.4s ease, border-color 0.4s ease;
}
.email-line a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.foot-mark {
  margin-top: 10vh;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 640px) {
  section { padding: 10vh 7vw; }
  .offer .inner, #access .inner { max-width: 100%; }
}
