/* ==========================================================================
   Calvet Capital
   A single-screen statement: cinematic hero above a navy colophon band.
   Display type: Cormorant Garamond. Detail type: Inter. Both self-hosted.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted woff2, subset to Latin and Latin Extended)
   font-display: swap keeps text visible while the face loads; the preloads
   in the head mean the swap is effectively instant.
   -------------------------------------------------------------------------- */

/* Cormorant Garamond — display serif */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter — detail sans */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/inter-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --text:        #F5F2EC;                      /* primary ivory */
  --text-muted:  rgba(245, 242, 236, 0.78);    /* lede */
  --text-faint:  rgba(245, 242, 236, 0.56);    /* secondary detail */
  --accent:      #B8A37A;                       /* restrained gold */
  --navy:        #0B1624;                       /* footer ground */
  --navy-deep:   #081020;                       /* a touch darker, for depth */
  --overlay:     rgba(10, 16, 28, 0.365);       /* dark blue veil over the film, reduced by a further 10% */
  --hairline:    rgba(245, 242, 236, 0.14);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --footer-h: 180px;
  --gutter: clamp(24px, 6vw, 96px);
  --measure: min(1180px, calc(100% - 48px));

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   3. Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--navy-deep);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;

  /* Gentle whole-page fade on first paint */
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
body.is-ready { opacity: 1; }

a { color: inherit; }

/* The shell: hero fills the first screen; the navy band sits below the fold. */
.page {
  min-height: 100svh;
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr;               /* fixed masthead sits above the centred copy */
  overflow: hidden;
  isolation: isolate;
}

/* Background film */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: -2;
  /* Quiet grade so the footage reads as a backdrop, not a screensaver */
  filter: saturate(0.86) contrast(1.06) brightness(0.82);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* Dark blue veil + top and bottom gradients for legibility and a clean blend
   into the colophon. Implemented as a pseudo-element so we add no extra div. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 16, 32, 0.495) 0%, rgba(8, 16, 32, 0) 26%, rgba(8, 16, 32, 0) 64%, rgba(11, 22, 36, 0.828) 100%),
    radial-gradient(120% 90% at 50% 38%, rgba(10, 16, 28, 0) 38%, rgba(10, 16, 28, 0.45) 100%),
    var(--overlay);
}

/* Masthead */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: clamp(26px, 4vw, 46px) var(--gutter) 0;
  pointer-events: none;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  letter-spacing: 0.35em;             /* the spread, premium wordmark */
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
  padding-left: 0;
  transition: color 300ms var(--ease);
}
.wordmark { pointer-events: auto; }
.wordmark:hover { color: #fffdf8; }

.menu {
  position: absolute;
  top: clamp(24px, 4vw, 44px);
  right: var(--gutter);
  pointer-events: auto;
}

.menu__button {
  appearance: none;
  border: 1px solid rgba(245, 242, 236, 0.22);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
  background: rgba(11, 22, 36, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}

.menu__button:hover,
.menu__button[aria-expanded="true"] {
  border-color: rgba(184, 163, 122, 0.7);
  background: rgba(11, 22, 36, 0.48);
}

.menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  padding: 10px;
  border: 1px solid rgba(245, 242, 236, 0.14);
  background: rgba(11, 22, 36, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms var(--ease);
}

.menu.is-open .menu__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu__panel a {
  display: block;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 220ms var(--ease), background 220ms var(--ease);
}

.menu__panel a:hover {
  color: var(--text);
  background: rgba(184, 163, 122, 0.1);
}

/* Centred hero copy */
.hero__content {
  grid-row: 1;
  align-self: center;
  width: var(--measure);
  margin: 0 auto;
  padding-bottom: clamp(24px, 5vh, 64px);   /* lift copy a little above true centre */
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: clamp(0.66rem, 0.9vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 7.2vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  white-space: nowrap;
  text-shadow: 0 14px 56px rgba(0, 0, 0, 0.55);
}

.lede {
  width: min(620px, 100%);
  margin: clamp(22px, 3vw, 32px) auto 0;
  color: var(--text-muted);
  font-weight: 300;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.75;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(30px, 4vw, 46px);
  min-height: 50px;
  padding: 0 30px;
  border: 1px solid rgba(184, 163, 122, 0.5);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(10, 16, 28, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 280ms var(--ease), border-color 280ms var(--ease), background 280ms var(--ease);
}
.contact:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(184, 163, 122, 0.12);
}

/* --------------------------------------------------------------------------
   5. Colophon (navy band, three columns spread across)
   -------------------------------------------------------------------------- */
.colophon {
  flex: 0 0 auto;
  min-height: var(--footer-h);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;   /* three equal columns */
  align-items: center;
  gap: 28px;
  padding: 30px var(--gutter);
  background: var(--navy);
  border-top: 1px solid var(--hairline);
}

.colophon__col { min-width: 0; }
.colophon__col--left   { text-align: left; }
.colophon__col--centre { text-align: center; }
.colophon__col--right  { text-align: right; }

.colophon p { margin: 0; }

.colophon__label {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.colophon__value {
  color: var(--text-muted);
  font-size: clamp(0.86rem, 1vw, 0.96rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.colophon__mark {
  color: var(--text-faint);
  font-size: clamp(0.86rem, 1vw, 0.96rem);
  letter-spacing: 0.06em;
}

.colophon a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 240ms var(--ease);
}
.colophon a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   6. Reveal animation (driven by JS adding .is-ready to <body>)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1000ms var(--ease), transform 1000ms var(--ease);
}
body.is-ready [data-reveal] { opacity: 1; transform: none; }

/* Stagger the hero lines */
body.is-ready .eyebrow  { transition-delay: 160ms; }
body.is-ready .display  { transition-delay: 300ms; }
body.is-ready .lede     { transition-delay: 460ms; }
body.is-ready .contact  { transition-delay: 620ms; }

@keyframes drift {
  from { transform: scale(1.04) translate3d(-0.6%, -0.4%, 0); }
  to   { transform: scale(1.12) translate3d(0.8%,  0.5%, 0); }
}

/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */

/* Tablet and below: ease the wordmark spacing and title */
@media (max-width: 900px) {
  .wordmark { letter-spacing: 0.28em; padding-left: 0.28em; }
  .display  { font-size: clamp(3.2rem, 9vw, 5.6rem); }
}

/* Mobile: stack the colophon, let the title wrap, soften spacing */
@media (max-width: 640px) {
  :root { --footer-h: auto; }

  .masthead { padding-top: 24px; padding-right: 118px; }
  .wordmark { font-size: 1rem; letter-spacing: 0.24em; padding-left: 0; }
  .menu { top: 22px; right: 18px; }
  .menu__button { padding: 9px 12px; font-size: 0.62rem; letter-spacing: 0.16em; }
  .menu__panel { min-width: 160px; }

  .hero__content { width: min(100% - 36px, 540px); padding-bottom: 28px; }
  .display { font-size: clamp(2.9rem, 14vw, 4.6rem); letter-spacing: -0.05em; white-space: normal; }
  .lede { font-size: 1rem; line-height: 1.66; }
  .contact { width: 100%; }

  .colophon {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 24px 38px;
    text-align: center;
  }
  .colophon__col--left,
  .colophon__col--right { text-align: center; }
}

/* Very small screens: trim the title a notch further */
@media (max-width: 380px) {
  .display { font-size: clamp(2.5rem, 13vw, 3.4rem); }
}

/* Short, wide windows (e.g. landscape laptops): keep copy clear of the band */
@media (max-height: 560px) and (min-width: 641px) {
  .hero__content { padding-bottom: 16px; }
  .display { font-size: clamp(3rem, 6vw, 5rem); }
}

/* --------------------------------------------------------------------------
   8. Reduced motion: hold everything still and rely on the poster frame
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; opacity: 1; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .hero__video { transform: translate3d(0, 0, 0); }
  .contact { transition: none; }
}
