/* ============================================================
   Rareglacier Properties — brand system
   Ivory #F7F2E9 · Gold #B28C4E · Charcoal text · Didot display
   ============================================================ */

:root {
  --ivory:        #F7F2E9;
  --ivory-2:      #EFE7D7;
  --gold:         #B28C4E;
  --gold-deep:    #9A763C;
  --charcoal:     #2B2A28;
  --charcoal-2:   #4A4843;
  --ink:          #16150F;
  --dark:         #1A1A18;
  --dark-2:       #232220;
  --line:         rgba(43, 42, 40, 0.14);
  --line-gold:    rgba(178, 140, 78, 0.40);
  --shadow:       0 24px 60px -28px rgba(22, 21, 15, 0.45);

  --serif: "Didot", "GFS Didot", "Cormorant Garamond", "Bodoni 72", "Times New Roman", serif;
  --sans:  "Avenir Next", "Avenir", "Montserrat", "Helvetica Neue", system-ui, sans-serif;

  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

.serif { font-family: var(--serif); }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.gold { color: var(--gold); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; color: var(--ink); }

section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .95em 1.7em; border-radius: 2px;
  border: 1px solid var(--gold);
  transition: all .25s ease; cursor: pointer;
}
.btn-solid { background: var(--gold); color: #fff; }
.btn-solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: #fff; }
.btn-light { border-color: rgba(247,242,233,.6); color: var(--ivory); background: transparent; }
.btn-light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.nav.scrolled {
  background: rgba(247, 242, 233, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .85rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.4rem; letter-spacing: .04em; color: var(--ivory);
  display: flex; align-items: center; gap: .6rem;
  transition: color .35s ease;
}
.brand .mark { color: var(--gold); }
.nav.scrolled .brand { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: rgba(247,242,233,.85); transition: color .25s ease;
}
.nav.scrolled .nav-links a { color: var(--charcoal-2); }
.nav-links a:hover { color: var(--gold); }
.nav-links .btn { padding: .7em 1.3em; }
.nav.scrolled .nav-links .btn.btn-light { color: var(--gold); border-color: var(--gold); }
.nav.scrolled .nav-links .btn.btn-light:hover { background: var(--gold); color:#fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--ivory); overflow: hidden;
  padding: 6rem 0;
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  /* paint poster instantly while the video buffers */
  background: url("img/hero_poster.jpg") center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(15,14,10,.20) 0%, rgba(15,14,10,.36) 100%),
    linear-gradient(180deg, rgba(15,14,10,.26) 0%, rgba(15,14,10,.14) 40%, rgba(15,14,10,.42) 100%);
}
.hero .wrap { position: relative; z-index: 2; max-width: 1000px; }
.hero .eyebrow { color: var(--gold); margin-bottom: 1.6rem; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  letter-spacing: .005em; max-width: 18ch; margin-inline: auto;
  text-shadow: 0 2px 30px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.35);
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lede {
  margin: 1.8rem auto 0; max-width: 46ch;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  letter-spacing: .02em;
  color: rgba(247,242,233,.94); font-weight: 300;
  text-shadow: 0 1px 16px rgba(0,0,0,.4);
}
/* ============================================================
   THESIS
   ============================================================ */
.thesis { background: var(--ivory); }
.thesis .head { max-width: 62ch; margin-bottom: 3.4rem; }
.thesis h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: .8rem 0 1.4rem; }
.thesis .head p { font-size: 1.1rem; color: var(--charcoal-2); max-width: 60ch; }

.quote {
  border-left: 2px solid var(--gold);
  padding: .4rem 0 .4rem 1.8rem; margin: 0 0 3.6rem;
  max-width: 60ch;
}
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem,2.4vw,1.9rem); color: var(--ink); line-height: 1.4; }
.quote cite { display: block; font-style: normal; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-top: 1rem; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.principle {
  background: #fff; border: 1px solid var(--line);
  padding: 2.2rem 1.9rem; border-radius: 3px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.principle:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-gold); }
.principle .num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); border: 1px solid var(--line-gold); width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; margin-bottom: 1.3rem; }
.principle h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.principle p { font-size: .96rem; color: var(--charcoal-2); }

/* ============================================================
   TRACK RECORD
   ============================================================ */
.track { background: var(--ivory-2); }
.track .head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 3rem; }
.track h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.track .head p { color: var(--charcoal-2); max-width: 42ch; }

.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 3.4rem; }
.statband .s { background: var(--ivory-2); padding: 2rem 1.4rem; text-align: center; }
.statband .n { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--ink); line-height: 1; }
.statband .l { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-top: .65rem; }

.deals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.deal {
  background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.deal:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.deal .ph { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.deal .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.deal:hover .ph img { transform: scale(1.05); }
.deal .tag {
  position: absolute; top: 1rem; left: 1rem;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  padding: .4em .9em; border-radius: 2px; backdrop-filter: blur(4px);
}
.tag.closed { background: rgba(43,42,40,.82); color: var(--ivory); }
.tag.active { background: var(--gold); color: #fff; }
.deal .body { padding: 1.8rem 1.9rem 2rem; display: flex; flex-direction: column; flex: 1; }
.deal h3 { font-size: 1.7rem; }
.deal .loc { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin: .4rem 0 1.3rem; }
.deal .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: auto; }
.deal .metrics .m .n { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); }
.deal .metrics .m .l { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal-2); }
.deal .note { font-size: .92rem; color: var(--charcoal-2); margin-top: 1.3rem; }
.deal .dlink { margin-top: 1.5rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--ivory-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-bottom: 3.4rem; }
.about-grid .eyebrow { margin-bottom: .8rem; }
.about-grid h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.about-copy p { color: var(--charcoal-2); font-size: 1.06rem; margin-bottom: 1.1rem; }
.about-copy p:last-child { margin-bottom: 0; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.about-stats .as { background: #fff; padding: 2.6rem 1.6rem; text-align: center; }
.about-stats .n { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.3rem); color: var(--gold); line-height: 1; }
.about-stats .l { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--charcoal-2); margin-top: .75rem; }
.about-note { font-size: .8rem; color: var(--charcoal-2); opacity: .75; margin-top: 1.3rem; max-width: 78ch; }

/* ============================================================
   OFFERING / PORTAL
   ============================================================ */
.offering { background: var(--dark); color: var(--ivory); position: relative; overflow: hidden; }
.offering::before {
  content: ""; position: absolute; inset: 0;
  background: url("img/g_topdown.jpg") center / cover; opacity: .14;
}
.offering .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.offering .eyebrow { color: var(--gold); }
.offering h2 { color: var(--ivory); font-size: clamp(2rem, 4vw, 3rem); margin: 1rem 0 1.3rem; }
.offering p { color: rgba(247,242,233,.82); max-width: 50ch; margin-bottom: 1rem; }
.offering .gatecard {
  background: rgba(247,242,233,.05); border: 1px solid rgba(247,242,233,.16);
  border-radius: 4px; padding: 2.4rem;
}
.gatecard .row { display: flex; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid rgba(247,242,233,.12); font-size: .95rem; }
.gatecard .row span:first-child { color: rgba(247,242,233,.6); letter-spacing: .04em; }
.gatecard .row span:last-child { font-family: var(--serif); color: var(--gold); font-size: 1.15rem; }
.gatecard .btn { width: 100%; justify-content: center; margin-top: 1.8rem; }
.gatecard .locknote { font-size: .76rem; color: rgba(247,242,233,.5); text-align: center; margin-top: 1rem; letter-spacing: .03em; }

/* ============================================================
   TEAM
   ============================================================ */
.team { background: var(--ivory); }
.team .head { text-align: center; max-width: 56ch; margin: 0 auto 3.6rem; }
.team h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: .8rem 0 1.2rem; }
.team .head p { color: var(--charcoal-2); }
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.member { text-align: center; }
.member .pic {
  width: 168px; height: 168px; margin: 0 auto 1.5rem; border-radius: 50%;
  background: var(--ivory-2); border: 1px solid var(--line-gold);
  overflow: hidden; position: relative;
}
.member .pic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.02); }
.member h3 { font-size: 1.5rem; }
.member .role { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin: .5rem 0 1rem; }
.member p { font-size: .94rem; color: var(--charcoal-2); max-width: 32ch; margin: 0 auto 1rem; }
.member .contact { font-size: .82rem; }
.member .contact a { color: var(--gold-deep); border-bottom: 1px solid var(--line-gold); }
.member .contact a:hover { color: var(--gold); }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.contact { background: var(--dark); color: var(--ivory); position: relative; }
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; }
.contact .eyebrow { color: var(--gold); }
.contact h2 { color: var(--ivory); font-size: clamp(2rem, 4vw, 3rem); margin: 1rem 0 1.3rem; }
.contact .intro p { color: rgba(247,242,233,.82); margin-bottom: 1.6rem; max-width: 42ch; }
.contact .direct { margin-top: 2.2rem; }
.contact .direct div { padding: .7rem 0; border-top: 1px solid rgba(247,242,233,.12); font-size: .95rem; }
.contact .direct .k { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(247,242,233,.5); display: block; margin-bottom: .2rem; }
.contact .direct a { color: var(--gold); }

form { display: grid; gap: 1.1rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,242,233,.65); display: block; margin-bottom: .5rem; }
input, select, textarea {
  width: 100%; font-family: var(--sans); font-size: .95rem; color: var(--ivory);
  background: rgba(247,242,233,.05); border: 1px solid rgba(247,242,233,.2);
  border-radius: 3px; padding: .85rem 1rem; transition: border-color .2s ease;
}
input::placeholder, textarea::placeholder { color: rgba(247,242,233,.4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
select option { color: var(--ink); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; color: rgba(247,242,233,.7); letter-spacing: 0; text-transform: none; }
.consent input { width: auto; margin-top: .25rem; }
form .btn { justify-content: center; margin-top: .4rem; }
.formnote { font-size: .8rem; color: rgba(247,242,233,.55); }
.formnote.ok { color: #9fd0a3; }
.formnote.err { color: #e2a3a3; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--ink); color: rgba(247,242,233,.7); padding: 3.5rem 0 2.5rem; }
footer .wrap { display: grid; gap: 1.8rem; }
footer .top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
footer .brand { color: var(--ivory); font-size: 1.3rem; }
footer .fnav { display: flex; gap: 1.6rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
footer .fnav a:hover { color: var(--gold); }
footer .disclaimer { font-size: .76rem; line-height: 1.7; color: rgba(247,242,233,.45); border-top: 1px solid rgba(247,242,233,.12); padding-top: 1.6rem; max-width: 95ch; }
footer .copy { font-size: .74rem; color: rgba(247,242,233,.4); letter-spacing: .05em; }

/* ---------- reveal animation (progressive enhancement) ---------- */
/* Visible by default — only hidden once JS marks <html class="js">, so the
   page is fully readable without JS and degrades gracefully. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .principles, .members { grid-template-columns: 1fr 1fr; }
  .deals { grid-template-columns: 1fr; }
  .offering .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 2.4rem; }
  .statband { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .about-stats { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem;
    position: absolute; top: 100%; right: 0; left: 0;
    background: rgba(247,242,233,.98); padding: 1.6rem clamp(1.5rem,4vw,3rem); box-shadow: var(--shadow);
  }
  .nav-links.open a { color: var(--charcoal-2); }
  .nav-toggle { display: block; color: var(--ivory); }
  .nav.scrolled .nav-toggle { color: var(--ink); }
  .principles, .members { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
}
