/* ============================================================
   CREOS — luxury developer aesthetic
   Cormorant Garamond + DM Sans, warm cream + black
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&display=swap');

/* Relative Book — paid font, not on Google Fonts.
   When the licensed font file is supplied, drop a @font-face declaration
   here and the rest of the stylesheet picks it up via --sans. */

:root {
  --paper: #F5F3EE;          /* warm cream */
  --paper-2: #EAE6DE;
  --ink: #0F0F0E;            /* near-black */
  --ink-2: #1E1D1B;
  --warm-muted: #8B847A;
  --warm-muted-2: #6F695F;
  --rule: #DCD6CB;
  --rule-dark: #2A2826;
  --accent: #8B847A;

  --serif: 'Manrope', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sans:  'Manrope', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --gutter: clamp(24px, 5vw, 96px);
  --max: 1600px;

  --ease: cubic-bezier(.2, .7, .2, 1);

  --nav-h: 132px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--warm-muted-2);
  text-wrap: pretty;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: inherit;
}

.serif-xl { font-weight: 300; font-size: clamp(48px, 6.2vw, 96px); line-height: 1.05; letter-spacing: -0.02em; }
.serif-lg { font-weight: 300; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -0.015em; }
.serif-md { font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.15; letter-spacing: -0.01em; }
.serif-sm { font-weight: 400; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.2; letter-spacing: -0.005em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--warm-muted);
}

.lead { font-size: 16px; line-height: 1.7; color: var(--warm-muted-2); max-width: 60ch; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* Guarantee the side gutter always wins: several page-level section rules
   (e.g. .page-head { padding: X 0 Y }) share the element with .wrap and,
   via the padding shorthand, would otherwise reset the horizontal padding
   to 0. The descendant selector outranks those single-class rules. */
body .wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.rule { height: 1px; background: var(--rule); width: 100%; border: 0; }

/* ============================================================
   Nav — two states
   1. .nav--hero   →  absolute inside hero, white-on-transparent
                       (scrolls out of the video naturally)
   2. .nav--stuck  →  fixed at top, slides in once past the hero
                       light bg, dark text
   ============================================================ */

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  min-height: var(--nav-h);
}

/* Rectangle wordmark logo — the supplied PNG, processed to transparent bg.
   On dark sections we filter:invert(1) to flip the black ink to white. */
.nav__brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: inherit;
}
.logo-img {
  display: block;
  height: 88px;
  width: auto;
  transition: opacity .25s var(--ease);
}
.nav__brand:hover .logo-img { opacity: 0.7; }
.logo-img--lg { height: 88px; }

/* Invert the black logo to white on any dark surface */
.nav--hero .logo-img { filter: invert(1); }
.foot:not(.foot--light) .logo-img { filter: invert(1); }

.nav__links {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
}
.nav__links a {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 0;
  transition: opacity .25s var(--ease);
}
.nav__links a:hover { opacity: 0.65; }
.nav__cta {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 0;
  transition: opacity .25s var(--ease);
}

/* — Hero state (sticky over the video, fades out once past it) */
.nav--hero {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  color: #fff;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.nav--hero.is-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
.nav--hero .nav__cta:hover { opacity: 0.65; }

/* — Stuck state (slides in past hero) */
.nav--stuck {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-100%);
  transition: transform .55s var(--ease);
}
.nav--stuck.is-visible { transform: translateY(0); }
.nav--stuck .nav__cta:hover { opacity: 0.65; }

/* — Solid state (used on non-home pages; visible by default, no animation in) */
.nav--solid {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.nav--solid .nav__cta:hover { opacity: 0.65; }

/* On non-home pages, push content below the fixed nav. */
body.has-solid-nav main { padding-top: var(--nav-h); }

@media (max-width: 800px) {
  .nav { padding: 14px var(--gutter); min-height: 76px; }
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 10px; letter-spacing: 0.12em; }
  .nav__cta { padding: 6px 0; font-size: 10px; letter-spacing: 0.12em; }
  .logo-img { height: 52px; }
  :root { --nav-h: 76px; }
}
@media (max-width: 560px) {
  .nav__links a.nav__link--secondary { display: none; }
}

/* ---------- arrow link ---------- */
.alink {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding: 4px 0;
  transition: gap .25s var(--ease), opacity .25s var(--ease);
}
.alink:hover { gap: 20px; opacity: 0.7; }
.alink--inverse { color: #fff; }

/* ---------- placeholder image ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(45deg,
      color-mix(in oklab, var(--paper-2) 70%, var(--ink) 4%),
      color-mix(in oklab, var(--paper-2) 70%, var(--ink) 4%) 12px,
      color-mix(in oklab, var(--paper-2) 70%, var(--ink) 8%) 12px,
      color-mix(in oklab, var(--paper-2) 70%, var(--ink) 8%) 24px);
  color: rgba(255,255,255,.7);
}
.ph--dark {
  background:
    repeating-linear-gradient(45deg, #1a1917, #1a1917 12px, #232220 12px, #232220 24px);
}
.ph__label {
  position: absolute; left: 20px; bottom: 20px;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- shared chalk footer (.foot--light) ---------- */
.foot--light {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(72px, 10vh, 120px) var(--gutter) 32px;
  border-top: 1px solid var(--rule);
}
.foot--light .foot__grid,
.foot--light .foot__bottom { max-width: var(--max); margin-left: auto; margin-right: auto; }
.foot--light .foot__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.foot--light .foot__brand { display: inline-block; color: var(--ink); }
.foot--light .foot__tag { margin-top: 26px; font-size: 14px; line-height: 1.65; color: var(--warm-muted); max-width: 40ch; }
.foot--light .foot__col h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--warm-muted); margin-bottom: 22px; }
.foot--light .foot__col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.foot--light .foot__col li a, .foot--light .foot__col li span { font-size: 14px; color: var(--warm-muted-2); }
.foot--light .foot__col li a:hover { color: var(--ink); }
.foot--light .foot__contact a, .foot--light .foot__contact span { font-size: 14px; color: var(--warm-muted-2); }
.foot--light .foot__contact a:hover { color: var(--ink); }
.foot--light .foot__contact .arrow { display: inline-flex; gap: 8px; align-items: center; }
.foot--light .foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; font-size: 13px; color: var(--warm-muted); }
.foot--light .foot__legal { padding-top: 24px; }
.foot--light .foot__legal p { font-size: 13px; line-height: 1.6; color: var(--warm-muted); max-width: 70ch; }
.foot--light .foot__bottom .links { display: flex; gap: 32px; }
.foot--light .foot__bottom a:hover { color: var(--ink); }
.foot--light .logo-img { filter: none; }
@media (max-width: 800px) {
  .foot--light .foot__grid { grid-template-columns: 1fr; gap: 48px; }
  .foot--light .foot__bottom { flex-direction: column; align-items: start; gap: 16px; }
}
