/* INVESTATE — coming soon. Brand tokens carried over from the main site:
   ivory canvas, ink type, antique gold as the single accent,
   Cormorant Garamond for display, Jost for everything else. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost.woff2") format("woff2");
}

:root {
  --ivory: #f7f3ec;
  --ivory-2: #fbf9f4;
  --sand: #efe8db;
  --line: #e1d9c9;
  --ink: #17181a;
  --ink-soft: #2a2b2e;
  --muted: #6e6a61;
  --gold: #b08d57;
  --gold-dk: #9a7842;
  --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4.5vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  height: 100svh;
  background: var(--ivory);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--ivory); }

/* ---------- header ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.4vh, 26px) var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { width: 52px; height: 52px; display: block; }
.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.22em;
  color: var(--ink);
  transform: translateY(1px);
}
.lang {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.lang button { transition: color 0.3s; }
.lang button:hover { color: var(--gold-dk); }
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- stage ---------- */
/* The page is exactly one viewport tall: no scrolling, the model fills the rest. */
.stage {
  position: relative;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 40%) 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 0 var(--gutter) clamp(18px, 3vh, 36px);
}
.scene-wrap {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  min-height: 0;
  margin-right: calc(-1 * var(--gutter));
}
.scene-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 46% at 52% 56%, var(--ivory-2) 0%, rgba(251, 249, 244, 0) 72%);
  pointer-events: none;
}
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
html.no-webgl .scene-wrap { display: none; }

.copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  min-height: 0;
  padding-top: clamp(84px, 14vh, 130px);
  padding-right: clamp(12px, 3vw, 48px);
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.8rem, min(7.2vw, 13vh), 7rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.lead {
  margin: clamp(18px, 2.6vh, 28px) 0 0;
  max-width: 34ch;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
}
.services {
  margin: clamp(22px, 3.4vh, 36px) 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dk);
}

/* ---------- footer ---------- */
.bottom {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  gap: 14px 32px;
  padding-top: clamp(16px, 2.6vh, 28px);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.item { display: flex; flex-direction: column; gap: 3px; font-style: normal; }
.label {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.item a {
  color: var(--ink);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.3s;
}
.item a:hover { color: var(--gold-dk); }
address span:last-child { color: var(--ink-soft); }

/* ---------- reveal ---------- */
html.js .copy > *, html.js .bottom > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.1s var(--ease) forwards;
}
html.js .copy > :nth-child(2) { animation-delay: 0.12s; }
html.js .copy > :nth-child(3) { animation-delay: 0.24s; }
html.js .bottom > * { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto auto;
    padding-top: clamp(72px, 11vh, 96px);
    padding-bottom: clamp(16px, 2.6vh, 24px);
  }
  .scene-wrap {
    grid-column: 1;
    grid-row: 1;
    margin: 0 calc(-1 * var(--gutter));
  }
  .copy { grid-row: 2; padding-top: clamp(8px, 1.6vh, 16px); padding-right: 0; align-self: end; }
  h1 { font-size: clamp(2.4rem, min(13vw, 7.5vh), 4.2rem); }
  .lead { max-width: none; margin-top: clamp(8px, 1.4vh, 14px); }
  .services { margin-top: clamp(12px, 2vh, 22px); }
  .bottom { grid-row: 3; margin-top: clamp(14px, 2.4vh, 24px); padding-top: clamp(12px, 2vh, 20px); gap: 10px 24px; }
}
@media (min-width: 861px) {
  .bottom { grid-template-columns: auto auto; justify-content: start; gap: 14px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .copy > *, html.js .bottom > * { animation: none; opacity: 1; transform: none; }
  * { transition-duration: 0.001ms !important; }
}
