/* ============================================================
   Dunearn House — register of interest
   Palette: deep heritage green · warm stone/cream · brass
   Display: Fraunces  ·  Body: Hanken Grotesk
   ============================================================ */

:root {
  /* Greens */
  --forest-900: #0e211c;
  --forest-800: #16302a;
  --forest-700: #1d3f37;
  --forest-600: #2a544a;

  /* Stone / cream */
  --cream:      #f6f1e7;
  --cream-200:  #efe7d7;
  --stone-300:  #e2d6bf;
  --stone-500:  #b9ac92;

  /* Brass / bronze accent */
  --brass:      #b08d52;
  --brass-400:  #c5a468;
  --bronze-600: #8f6f3c;

  /* Ink / text */
  --ink:        #1a2420;
  --ink-soft:   #41514a;
  --on-dark:    #ede6d6;
  --on-dark-soft: #b6c0b6;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 24px 60px -28px rgba(14, 33, 28, 0.45);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
sup { font-size: 0.62em; }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; z-index: 2; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.kicker {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 600; color: var(--bronze-600); margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.kicker::before { content: ""; width: 2.2rem; height: 1px; background: var(--brass); display: inline-block; }
.kicker.light { color: var(--brass-400); }
.kicker.light::before { background: var(--brass-400); }

.section-title { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); color: var(--forest-800); }
.section-title.light { color: var(--cream); }
.section-intro { margin-top: 1.25rem; font-size: 1.075rem; color: var(--ink-soft); max-width: 42rem; }
.section-intro.light { color: var(--on-dark-soft); }

.fineprint { margin-top: 1.75rem; font-size: 0.82rem; color: var(--stone-500); max-width: 44rem; line-height: 1.55; }
.fineprint.light { color: rgba(182, 192, 182, 0.7); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 0.9rem 1.6rem; border-radius: 2px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn-cta {
  background: var(--brass); color: var(--forest-900);
  box-shadow: 0 10px 24px -12px rgba(176, 141, 82, 0.7);
}
.btn-cta:hover { background: var(--brass-400); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(176, 141, 82, 0.8); }
.btn-ghost { border-color: currentColor; color: var(--forest-800); background: transparent; }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(22, 48, 42, 0.06); }
.btn-block { width: 100%; }
.btn-small { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: rgba(22, 48, 42, 0.12);
  box-shadow: 0 6px 24px -18px rgba(14, 33, 28, 0.5);
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0.85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--forest-800); }
.brand-mark { color: var(--brass); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; color: var(--forest-800); letter-spacing: -0.01em; }
.brand-tag { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-600); font-weight: 600; }

.header-nav { display: flex; align-items: center; gap: 2rem; }
.header-nav a:not(.btn) {
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); position: relative; padding-block: 0.25rem;
}
.header-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--brass);
  transition: width 0.35s var(--ease);
}
.header-nav a:not(.btn):hover { color: var(--forest-800); }
.header-nav a:not(.btn):hover::after { width: 100%; }

@media (max-width: 880px) {
  .header-nav a:not(.btn) { display: none; }
  .brand-tag { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 2; overflow: hidden;
  min-height: clamp(620px, 92vh, 940px);
  display: flex; align-items: center;
  background:
    radial-gradient(120% 90% at 80% 0%, var(--forest-700) 0%, var(--forest-800) 40%, var(--forest-900) 100%);
  color: var(--on-dark);
}
.hero-bg { position: absolute; inset: 0; color: rgba(197, 164, 104, 0.16); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 15% 90%, rgba(42, 84, 74, 0.55) 0%, transparent 60%),
    radial-gradient(50% 40% at 90% 80%, rgba(176, 141, 82, 0.12) 0%, transparent 70%);
}
.contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.contours path { animation: drift 22s ease-in-out infinite alternate; }
.contours path:nth-child(2) { animation-delay: -4s; }
.contours path:nth-child(3) { animation-delay: -8s; }
.contours path:nth-child(4) { animation-delay: -12s; }
.contours path:nth-child(5) { animation-delay: -16s; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-14px); } }

.hero-inner { position: relative; z-index: 3; max-width: var(--maxw); margin-inline: auto; padding: 7rem var(--gutter) 6rem; width: 100%; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600;
  color: var(--brass-400); margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(3.4rem, 1.5rem + 9vw, 8rem);
  color: var(--cream); font-weight: 300;
  font-optical-sizing: auto; line-height: 0.94; letter-spacing: -0.025em;
}
.hero-sub {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.3rem); color: var(--brass-400);
  margin-top: 0.6rem;
}
.hero-lead { margin-top: 1.8rem; max-width: 36rem; font-size: 1.1rem; color: var(--on-dark-soft); line-height: 1.7; }
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-actions .btn-ghost { color: var(--on-dark); border-color: rgba(237, 230, 214, 0.4); }
.hero-actions .btn-ghost:hover { background: rgba(237, 230, 214, 0.08); }
.hero-note { margin-top: 1.8rem; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-soft); }

.scroll-cue { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 3; width: 24px; height: 38px; border: 1px solid rgba(237, 230, 214, 0.4); border-radius: 12px; display: grid; place-items: start center; padding-top: 7px; }
.scroll-cue span { width: 3px; height: 7px; border-radius: 2px; background: var(--brass-400); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
@media (max-width: 600px) { .scroll-cue { display: none; } }

/* ============================================================
   WHY — feature grid
   ============================================================ */
.section-why { background: var(--cream); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: rgba(22, 48, 42, 0.1); border: 1px solid rgba(22, 48, 42, 0.1); }
.feature { background: var(--cream); padding: clamp(1.75rem, 3vw, 2.6rem); position: relative; transition: background-color 0.4s var(--ease); }
.feature:hover { background: var(--cream-200); }
.feature-no { font-family: var(--serif); font-size: 0.95rem; color: var(--brass); letter-spacing: 0.1em; }
.feature h3 { font-size: 1.5rem; color: var(--forest-800); margin-top: 1.4rem; margin-bottom: 0.7rem; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }

/* ============================================================
   NUMBERS
   ============================================================ */
.section-numbers { background: var(--cream-200); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.stat { padding-top: 1.5rem; border-top: 1px solid rgba(143, 111, 60, 0.4); }
.stat-fig {
  display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.8rem, 1.5rem + 4vw, 4.6rem); color: var(--forest-800); line-height: 1; letter-spacing: -0.02em;
}
.stat-unit { font-size: 0.4em; color: var(--brass); margin-left: 0.15em; }
.stat-label { display: block; margin-top: 0.9rem; font-size: 0.9rem; color: var(--ink-soft); letter-spacing: 0.01em; }

.developer-note {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--forest-800); color: var(--on-dark); border-radius: 3px;
  display: grid; gap: 0.75rem; box-shadow: var(--shadow-soft);
  border-left: 3px solid var(--brass);
}
.dev-kicker { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass-400); font-weight: 600; }
.dev-body { font-size: 1.12rem; max-width: 52rem; line-height: 1.6; color: var(--on-dark); font-family: var(--serif); font-weight: 300; }
.dev-body strong { color: var(--cream); font-weight: 500; }

/* ============================================================
   CONNECTIVITY — split
   ============================================================ */
.section-connect { background: var(--cream); }
.split { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 0.85fr 1.15fr; } .split-text { position: sticky; top: 6rem; } }
.connect-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.connect-list li { padding: 1.8rem 0; border-top: 1px solid rgba(22, 48, 42, 0.12); position: relative; }
.connect-list li:last-child { border-bottom: 1px solid rgba(22, 48, 42, 0.12); }
.connect-list h3 { font-size: 1.4rem; color: var(--forest-800); margin-bottom: 0.5rem; }
.connect-list p { color: var(--ink-soft); max-width: 38rem; }
.tag { display: inline-block; margin-top: 0.9rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--forest-700); background: rgba(42, 84, 74, 0.1); padding: 0.3rem 0.7rem; border-radius: 2px; }
.tag-soft { color: var(--bronze-600); background: rgba(176, 141, 82, 0.14); }

/* ============================================================
   NEIGHBOURHOOD
   ============================================================ */
.section-hood { background: var(--cream-200); }
.hood-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.hood-card { background: var(--cream); padding: clamp(1.6rem, 3vw, 2.3rem); border-radius: 3px; border: 1px solid rgba(22, 48, 42, 0.08); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.hood-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.hood-card h3 { font-size: 1.32rem; color: var(--forest-800); margin-bottom: 0.7rem; }
.hood-card p { color: var(--ink-soft); font-size: 0.97rem; }
.hood-card em { color: var(--bronze-600); font-style: italic; }

/* ============================================================
   COLLECTION
   ============================================================ */
.section-collection { background: var(--cream); }
.collection-table { border: 1px solid rgba(22, 48, 42, 0.14); border-radius: 3px; overflow: hidden; }
.ct-row { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr; gap: 1rem; padding: 1.3rem clamp(1.1rem, 2.5vw, 2rem); align-items: center; border-top: 1px solid rgba(22, 48, 42, 0.1); transition: background-color 0.35s var(--ease); }
.ct-row:first-child { border-top: none; }
.ct-row:not(.ct-head):hover { background: var(--cream-200); }
.ct-head { background: var(--forest-800); color: var(--on-dark-soft); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.ct-type { font-family: var(--serif); font-size: 1.25rem; color: var(--forest-800); }
.ct-size { font-weight: 600; color: var(--bronze-600); }
.ct-row span:nth-child(2) { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 680px) {
  .ct-head { display: none; }
  .ct-row { grid-template-columns: 1fr; gap: 0.35rem; padding-block: 1.1rem; }
  .ct-size { margin-top: 0.2rem; }
}

/* ============================================================
   TURF CITY — dark
   ============================================================ */
.section-turf { background: var(--forest-900); color: var(--on-dark); overflow: hidden; }
.turf-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.6;
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(42, 84, 74, 0.6) 0%, transparent 60%),
    radial-gradient(60% 50% at 5% 95%, rgba(176, 141, 82, 0.1) 0%, transparent 60%),
    repeating-linear-gradient(115deg, rgba(197,164,104,0.04) 0 1px, transparent 1px 46px);
}
.section-turf .wrap { position: relative; z-index: 2; }
.turf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.turf-card { padding: clamp(1.6rem, 3vw, 2.2rem) 0; border-top: 1px solid rgba(197, 164, 104, 0.3); }
.turf-card h3 { font-size: 1.45rem; color: var(--cream); margin-bottom: 0.6rem; }
.turf-card p { color: var(--on-dark-soft); font-size: 0.97rem; }

/* ============================================================
   DEVELOPERS
   ============================================================ */
.section-devs { background: var(--cream); }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.dev-card { padding: clamp(1.6rem, 3vw, 2.2rem); border: 1px solid rgba(22, 48, 42, 0.12); border-radius: 3px; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-200) 100%); transition: transform 0.45s var(--ease); }
.dev-card:hover { transform: translateY(-4px); }
.dev-card h3 { font-size: 1.4rem; color: var(--forest-800); margin-bottom: 0.7rem; }
.dev-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ============================================================
   REGISTER
   ============================================================ */
.section-register { background: var(--forest-800); color: var(--on-dark); overflow: hidden; }
.register-bg { position: absolute; inset: 0; z-index: 0; color: rgba(197, 164, 104, 0.14); }
.register-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 90% 20%, rgba(42,84,74,0.5) 0, transparent 60%); }
.register-wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .register-wrap { grid-template-columns: 1fr 1fr; } }
.register-intro .section-intro strong { color: var(--brass-400); }
.register-points { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.register-points li { position: relative; padding-left: 1.8rem; color: var(--on-dark); font-size: 0.98rem; }
.register-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem; border: 1px solid var(--brass-400); transform: rotate(45deg); }

.register-card { background: var(--cream); color: var(--ink); border-radius: 5px; padding: clamp(1.6rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-soft); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--forest-700); margin-bottom: 0.5rem; }
.field input, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1rem; background: #fff; border: 1px solid rgba(22, 48, 42, 0.2); border-radius: 3px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input::placeholder { color: var(--stone-500); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176, 141, 82, 0.18); }
.field input:invalid:not(:placeholder-shown):not(:focus) { border-color: #a23b2e; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 0.5rem; height: 0.5rem; border-right: 1.5px solid var(--forest-700); border-bottom: 1.5px solid var(--forest-700); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 0.78rem; line-height: 1.55; color: var(--ink-soft); margin: 1.4rem 0; padding-top: 1.2rem; border-top: 1px solid rgba(22, 48, 42, 0.1); }
.form-status { margin-top: 1rem; font-size: 0.9rem; min-height: 1.2em; }
.form-status.error { color: #a23b2e; font-weight: 600; }
.form-status.success { color: var(--forest-700); font-weight: 600; }
.register-card.is-sent .field, .register-card.is-sent .consent, .register-card.is-sent button { display: none; }
.sent-message { display: none; text-align: center; padding: 1.5rem 0; }
.register-card.is-sent .sent-message { display: block; }
.sent-message h3 { font-size: 1.8rem; color: var(--forest-800); margin-bottom: 0.6rem; }
.sent-message p { color: var(--ink-soft); }
.sent-message .mark { width: 3.2rem; height: 3.2rem; margin: 0 auto 1.2rem; border-radius: 50%; background: rgba(176,141,82,0.16); display: grid; place-items: center; color: var(--brass); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--forest-900); color: var(--on-dark-soft); padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; position: relative; z-index: 2; font-size: 0.9rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: end; padding-bottom: 2rem; border-bottom: 1px solid rgba(197, 164, 104, 0.2); }
.footer-brand .brand-name { color: var(--cream); font-size: 1.6rem; }
.footer-tag { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-400); margin-top: 0.4rem; }
.footer-contact { text-align: right; display: grid; gap: 0.9rem; justify-items: end; }
.footer-contact strong { color: var(--cream); }
.footer-contact .btn-ghost { color: var(--on-dark); border-color: rgba(237,230,214,0.35); }
@media (max-width: 560px) { .footer-contact { text-align: left; justify-items: start; } }

.disclaimers { padding-block: 2rem; display: grid; gap: 0.8rem; }
.disclaimers p { font-size: 0.76rem; line-height: 1.6; color: rgba(182, 192, 182, 0.66); max-width: 70ch; }
.disclaimers p:first-child { color: rgba(182, 192, 182, 0.82); }

.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid rgba(197, 164, 104, 0.2); font-size: 0.78rem; }
.footer-bottom a { color: var(--brass-400); }
.footer-bottom a:hover { color: var(--cream); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.feature.reveal:nth-child(2) { transition-delay: 0.08s; }
.feature.reveal:nth-child(3) { transition-delay: 0.16s; }
.feature.reveal:nth-child(4) { transition-delay: 0.24s; }
.stat.reveal:nth-child(2) { transition-delay: 0.08s; }
.stat.reveal:nth-child(3) { transition-delay: 0.16s; }
.stat.reveal:nth-child(4) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
