/* ————————————————————————————————
   Oxon Development — oxondevelopment.com
   Palette: cream / ink / brass. Type: Fraunces + Inter.
   ———————————————————————————————— */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/cormorant-var.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('assets/fonts/librefranklin-var.woff2') format('woff2');
  font-weight: 300 600;
  font-display: swap;
}

:root {
  --cream: #F3EEE7;
  --cream-deep: #ECE6DB;
  --ink: #313131;
  --ink-soft: #5D5A54;
  --brass: #9C8656;
  --line: rgba(49, 49, 49, 0.16);
  --serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --sans: 'Libre Franklin', -apple-system, 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.25; letter-spacing: 0.015em; }

.eyebrow {
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass);
}
.section-label { margin-bottom: 30px; }

/* ——— header ——— */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 22px 0;
}
header .wrap { display: flex; align-items: center; justify-content: space-between; }
header.scrolled { background: rgba(246, 243, 236, 0.96); backdrop-filter: blur(6px); box-shadow: 0 1px 0 var(--line); padding: 14px 0; }

.wordmark { text-decoration: none; line-height: 1; }
.wordmark .oxon {
  font-family: var(--serif); font-weight: 600; font-size: 25px; letter-spacing: 0.34em;
  color: #fff; transition: color .35s ease; display: block;
}
.wordmark .dev {
  font-family: var(--sans); font-weight: 400; font-size: 8px; letter-spacing: 0.5em;
  color: rgba(255,255,255,0.72); transition: color .35s ease; display: block; margin-top: 5px; text-transform: uppercase;
}
header.scrolled .oxon { color: var(--ink); }
header.scrolled .dev { color: var(--brass); }

nav .phone {
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: #fff; border-bottom: 1px solid var(--brass);
  padding-bottom: 2px; transition: color .35s ease;
}
header.scrolled nav .phone { color: var(--ink); }
nav .phone:hover { color: var(--brass); }

/* ——— hero ——— */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(78deg, rgba(18,17,14,0.52) 0%, rgba(18,17,14,0.18) 52%, rgba(18,17,14,0.05) 100%),
    linear-gradient(to top, rgba(18,17,14,0.72) 0%, rgba(18,17,14,0.24) 48%, rgba(18,17,14,0.26) 100%);
}
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(48px, 9vh, 96px); color: #fff; }
.hero-copy h1 { font-size: clamp(38px, 5vw, 60px); color: #fff; }
.hero-copy p { margin-top: 18px; max-width: 32em; font-size: 14.5px; letter-spacing: 0.04em; line-height: 1.8; color: rgba(255,255,255,0.88); }
.hero-cta { margin-top: 32px; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: 10.5px; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase;
  padding: 13px 32px; border: 1px solid currentColor; background: transparent;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn-light { color: #fff; }
.btn-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-dark { color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--cream); }

/* ——— sections ——— */
section { padding: clamp(84px, 12vw, 150px) 0; }

/* ——— current build ——— */
figure.frame { position: relative; }
figure.frame img { width: 100%; height: auto; }
figure.frame figcaption {
  margin-top: 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); text-align: right;
}

.residence-copy { max-width: 620px; margin: clamp(48px, 7vw, 84px) auto 0; text-align: center; }
.residence-copy h2 { font-size: clamp(27px, 3vw, 38px); }
.residence-copy .status {
  margin: 14px 0 24px; font-size: 10px; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass);
}
.residence-copy p:not(.status) { color: var(--ink-soft); font-size: 15px; }
.residence-copy .btn { margin-top: 34px; }

.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(48px, 7vw, 84px); }
.spec { padding: 26px 18px 24px; text-align: center; border-left: 1px solid var(--line); }
.spec:first-child { border-left: 0; }
.spec b { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 2.2vw, 27px); display: block; }
.spec span { font-size: 9.5px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-top: 8px; }
@media (max-width: 700px) {
  .specs { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(3) { border-left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ——— statement ——— */
.band { background: var(--cream-deep); }
.statement .wrap { text-align: center; }
.statement .eyebrow { display: block; margin-bottom: 20px; }
.statement h2 { font-size: clamp(32px, 4vw, 48px); }
.statement p { margin: 22px auto 0; max-width: 38em; color: var(--ink-soft); }

/* ——— water band ——— */
.waterband img { width: 100%; height: clamp(300px, 52vh, 560px); object-fit: cover; display: block; }

/* ——— custom ——— */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-copy .eyebrow { display: block; margin-bottom: 18px; }
.split-copy h2 { font-size: clamp(27px, 3vw, 38px); margin-bottom: 24px; }
.split-copy p { color: var(--ink-soft); max-width: 36em; font-size: 15px; }
.split-copy .btn { margin-top: 36px; }

/* ——— contact ——— */
#contact { padding: clamp(64px, 9vw, 110px) 0; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-left h2 { font-size: clamp(26px, 2.9vw, 36px); margin-bottom: 24px; }
.contact-direct a {
  display: block; text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); font-weight: 500;
  padding: 13px 0; border-bottom: 1px solid var(--line); transition: color .3s ease;
}
.contact-direct a:first-child { border-top: 1px solid var(--line); }
.contact-direct a:hover { color: var(--brass); }
.contact-note { margin-top: 18px; font-size: 13px; color: var(--ink-soft); }

form .field { margin-bottom: 14px; }
form label {
  display: block; font-size: 9.5px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px;
}
form input, form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-weight: 300; font-size: 15px; color: var(--ink);
  padding: 3px 0 8px; border-radius: 0; outline: none; transition: border-color .3s ease;
  appearance: none; -webkit-appearance: none;
}
form textarea { resize: vertical; min-height: 64px; }
form ::placeholder { color: rgba(85, 82, 74, 0.5); font-size: 13.5px; }
form input:focus, form textarea:focus { border-color: var(--brass); }
form .btn { margin-top: 12px; padding: 12px 28px; }

/* ——— footer ——— */
footer { border-top: 1px solid var(--line); padding: 54px 0 60px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand .oxon { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: 0.34em; color: var(--ink); display: block; }
.foot-brand .dev { font-family: var(--sans); font-weight: 400; font-size: 7.5px; letter-spacing: 0.5em; color: var(--brass); text-transform: uppercase; display: block; margin-top: 5px; }
.foot-meta { font-size: 12.5px; color: var(--ink-soft); line-height: 2.1; text-align: right; }
.foot-meta a { color: var(--ink-soft); text-decoration: none; }
.foot-meta a:hover { color: var(--brass); }
@media (max-width: 700px) { .foot-meta { text-align: left; } }

/* ——— reveal on scroll ——— */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
