/* ============================================================
   Stradford Venture Partners — stylesheet
   ============================================================ */

/* Montserrat, self-hosted: one variable file (400–800) and one request,
   instead of a third-party stylesheet plus six weights. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin.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;
}

:root {
  --cream: #f8f4ea;
  --cream-deep: #f1ece1;
  --cream-deepest: #f4efe3;
  /* the hero and the capabilities band sit a shade deeper than the header and
     each other, so the cream sections read as separate bands */
  --cream-hero: #f3ecdb;
  --cream-cap: #e9e0cd;
  --paper: #fffdf8;
  --ink: #17130c;
  --muted: #5c5447;
  --gold: #9c7623;
  --gold-deep: #6b4c10;
  /* darker golds where the colour carries text, so it stays readable
     against cream (WCAG AA) */
  --gold-ink: #7d5a17;
  --gold-btn: #7d5a17;
  --gold-light: #c9a961;
  --line: rgba(156, 118, 35, 0.28);
  /* One geometric family across the site, matching the logo wordmark. */
  --serif: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 5vw, 56px);
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -70px; left: 16px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--gold-btn);
  color: #fffdf6;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Header ---------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 1px 0 rgba(23, 19, 12, 0.09), 0 18px 26px -26px rgba(23, 19, 12, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 4vw, 40px);
  min-height: clamp(72px, 8vw, 100px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-word {
  font-family: var(--sans);
  font-size: clamp(21px, 2.5vw, 27px);
  font-weight: 800;
  letter-spacing: 0.012em;
  padding-right: 0.04em;
  background: linear-gradient(90deg, #16150f 0%, #2c2a10 24%, #574a12 47%, #8a6d1c 70%, #c39a2b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  margin-top: 6px;
  font-size: 8.2px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #2b2924;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3.4vw, 46px);
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: #221c12;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.28s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.menu-toggle,
.icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  color: #2b2418;
}
.menu-toggle svg { width: 22px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.icon-btn { display: inline-grid; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ---------- Buttons --------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 15px 26px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: #fbf6ea;
  font-family: var(--sans);
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s var(--ease);
}
.btn:hover { background: #2c261b; }
.btn:active { transform: translateY(1px); }

.ico-arrow {
  width: 22px;
  height: 11px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  transition: transform 0.25s var(--ease);
}
.btn:hover .ico-arrow { transform: translateX(4px); }

/* ---------- Hero ------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(470px, 62vh, 610px);
  overflow: hidden;
  background: var(--cream-hero);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 58%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
    #f3ecdb 0%,
    #f3ecdb 29%,
    rgba(243, 236, 219, 0.97) 37%,
    rgba(243, 236, 219, 0.74) 47%,
    rgba(243, 236, 219, 0.18) 59%,
    rgba(243, 236, 219, 0) 68%);
}

.hero-inner { padding-block: clamp(52px, 8vw, 96px); }

.hero h1 {
  margin: 0 0 clamp(18px, 2.2vw, 27px);
  max-width: 13em;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: #15110a;
}

.hero p {
  margin: 0 0 clamp(26px, 3vw, 38px);
  max-width: 24em;
  color: #241e13;
  font-size: clamp(1.05rem, 1.5vw, 1.36rem);
  line-height: 1.5;
}

/* ---------- Section eyebrow ------------------------------- */

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 34px);
  margin-bottom: clamp(26px, 3.6vw, 44px);
}
.eyebrow-row::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.eyebrow {
  flex: 0 0 auto;
  margin: 0;
  color: var(--gold-ink);
  font-family: var(--sans);
  font-size: clamp(0.66rem, 0.92vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Capabilities ---------------------------------- */

.capabilities {
  padding: clamp(44px, 5.6vw, 78px) 0 clamp(38px, 5vw, 64px);
  background: var(--cream-cap);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.cap {
  appearance: none;
  margin: 0;
  padding: 2px 18px 8px clamp(14px, 1.5vw, 24px);
  border: 0;
  border-left: 1px solid var(--line);
  background-color: transparent;
  background-image: linear-gradient(var(--gold-light), var(--gold-light));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.5vw, 1.36rem);
  line-height: 1.32;
  text-align: left;
  cursor: pointer;
  transition: color 0.22s var(--ease), background-size 0.3s var(--ease);
}
.cap:first-child {
  border-left: 0;
  padding-left: 0;
}
.cap:hover,
.cap:focus-visible {
  color: var(--gold-deep);
  background-size: 100% 1px;
}

/* ---------- Engagements ----------------------------------- */

.engagements {
  position: relative;
  padding: clamp(44px, 5.6vw, 72px) 0 clamp(46px, 6vw, 76px);
  background: var(--cream-deep);
}

.eng-stage { position: relative; }

.eng-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-right: clamp(0px, 4vw, 48px);
}

.eng-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 clamp(14px, 2vw, 32px);
  border-left: 1px solid rgba(23, 19, 12, 0.1);
  text-align: left;
  cursor: pointer;
}
.eng-card:first-child,
.eng-card.is-first {
  border-left: 0;
  padding-left: 0;
}
.eng-card.is-hidden { display: none; }

.eng-rule {
  display: block;
  width: 34px;
  height: 2px;
  margin-bottom: clamp(14px, 1.6vw, 20px);
  background: var(--gold);
}

.eng-card h3 {
  margin: 0 0 10px;
  color: #17130c;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
  transition: color 0.22s var(--ease);
}
.eng-card:hover h3,
.eng-card:focus-visible h3 { color: var(--gold-deep); }

/* The card title is the real control: a button, so keyboard and screen
   reader users get a proper target while the whole card still opens. */
.eng-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.eng-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.05vw, 1rem);
  line-height: 1.5;
}

.eng-pdf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(12px, 1.6vw, 18px);
  color: var(--gold-ink);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}
.eng-pdf:hover { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 4px; }
.eng-pdf .ico-arrow { width: 20px; height: 10px; stroke-width: 1.5; }

.eng-next {
  position: absolute;
  top: 50%;
  right: -12px;
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7d5a17;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}
.eng-next:hover { background: rgba(156, 118, 35, 0.13); color: var(--gold-deep); }
.eng-next svg {
  width: 13px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Stay in touch --------------------------------- */

.stay {
  display: grid;
  grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
  background: var(--cream);
}

.stay-media {
  position: relative;
  min-height: clamp(220px, 26vw, 292px);
}
.stay-media picture {
  position: absolute;
  inset: 0;
}
.stay-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.stay-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4.4vw, 52px) var(--pad) clamp(30px, 4.4vw, 52px) clamp(24px, 4vw, 64px);
  padding-right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
}

.stay-rule {
  display: block;
  width: 52px;
  height: 2px;
  margin-bottom: clamp(16px, 2vw, 26px);
  background: var(--gold);
}

.stay h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.stay p {
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  color: #2a2418;
  font-size: clamp(1rem, 1.2vw, 1.06rem);
}

.signup {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  border: 1px solid rgba(156, 118, 35, 0.55);
  border-radius: 2px;
  background: var(--paper);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.signup:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(156, 118, 35, 0.13);
}

.signup input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.98rem;
}
.signup input::placeholder { color: #8d8474; }
.signup input:focus { outline: none; }

.signup button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 74px;
  border: 0;
  background: var(--ink);
  color: #fbf6ea;
  cursor: pointer;
  transition: background 0.22s var(--ease);
}
.signup button:hover { background: #2c261b; }
.signup button svg { width: 24px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; }

.form-note {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: var(--gold-deep);
  font-size: 0.9rem;
}
.form-note.is-error { color: #9a3b23; }

/* ---------- Footer ---------------------------------------- */

.site-footer {
  padding: clamp(24px, 3vw, 34px) 0;
  border-top: 1px solid rgba(23, 19, 12, 0.06);
  background: var(--cream-deepest);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 40px);
  flex-wrap: wrap;
}

.brand--footer .brand-mark { width: 30px; height: 30px; }
.brand--footer .brand-word { font-size: clamp(20px, 2.1vw, 24px); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.6vw, 40px);
}

.footer-link {
  padding: 0;
  border: 0;
  background: none;
  color: #2c2619;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}
.footer-link:hover {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Mobile menu ----------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  flex-direction: column;
  padding: var(--pad);
  background: var(--cream);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu[data-open="true"] { display: flex; }

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(34px, 9vw, 56px);
}
.mobile-menu-top .icon-btn { display: inline-grid; }

.mobile-nav {
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 6.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--gold-deep); }

.mobile-menu-foot {
  margin: auto 0 0;
  padding-top: 32px;
  color: #6b6455;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Modal ----------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 40px);
}
.modal[data-open="true"] { display: flex; }

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 18, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: scrim-in 0.22s ease both;
}

.modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  width: min(100%, 800px);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: var(--paper);
  box-shadow: 0 30px 70px rgba(20, 16, 10, 0.32);
  animation: dialog-in 0.26s var(--ease) both;
}
.modal-dialog.is-text { grid-template-columns: 1fr; width: min(100%, 620px); }

.modal-media { overflow: hidden; background: var(--cream-deep); }
.modal-media[hidden] { display: none; }
.modal-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: clamp(24px, 3.4vw, 40px);
  padding-top: clamp(38px, 4vw, 48px);
}

.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: #221c12;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.modal-close:hover { background: var(--cream-deep); }
.modal-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; }

.modal-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(14px, 1.8vw, 20px);
}
.modal-eyebrow span {
  color: var(--gold-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.modal-eyebrow::after {
  content: "";
  width: 52px;
  height: 1px;
  background: var(--gold-light);
}

.modal-body h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.modal-body p {
  margin: 0 0 clamp(18px, 2vw, 24px);
  color: #2b2620;
  font-size: 1rem;
  line-height: 1.58;
}

.modal-list {
  display: grid;
  gap: 11px;
  margin: 0 0 clamp(22px, 2.6vw, 30px);
  padding: 0;
  list-style: none;
}
.modal-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: #2b2620;
  font-size: 0.98rem;
  line-height: 1.4;
}
.check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--gold-light);
}
.check svg { width: 10px; height: 8px; fill: none; stroke: #fffdf8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.modal-meta {
  display: grid;
  grid-template-columns: minmax(78px, auto) 1fr;
  gap: 8px 20px;
  margin: 0 0 clamp(22px, 2.6vw, 30px);
  font-size: 0.95rem;
}
.modal-meta dt {
  padding-top: 3px;
  color: #6b6455;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.modal-meta dd { margin: 0; color: #2b2620; }

.gate { margin: 0; }
.gate[hidden],
.gate-done[hidden] { display: none; }

.modal-body .gate-label {
  margin: 0 0 12px;
  color: #2b2620;
  font-size: 0.98rem;
  line-height: 1.5;
}

.gate-detail {
  display: block;
  margin-top: 5px;
  color: #6b6455;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gate-row {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(156, 118, 35, 0.55);
  border-radius: 2px;
  background: var(--paper);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.gate-row:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(156, 118, 35, 0.13);
}

.gate-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.97rem;
}
.gate-row input::placeholder { color: #8d8474; }
.gate-row input:focus { outline: none; }

.gate-row button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  background: var(--gold-btn);
  color: #fdf7e8;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s var(--ease);
}
.gate-row button:hover { background: #6b4c10; }
.gate-row button .ico-arrow { width: 18px; height: 9px; stroke-width: 1.5; }

.modal-body .gate-note {
  margin: 10px 0 0;
  color: #6b6455;
  font-size: 0.85rem;
  line-height: 1.45;
}
.modal-body .gate-note.is-error { color: #9a3b23; }

.modal-body .gate-done p {
  margin: 0 0 14px;
  color: #2b2620;
  font-size: 0.98rem;
}

.modal-body .btn { padding: 13px 22px; font-size: 0.93rem; }

@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* ---------- Motion, depth and polish ---------------------- */

:root {
  --ease-out: cubic-bezier(0.16, 0.84, 0.28, 1);
  --shadow-soft: 0 30px 60px -34px rgba(23, 19, 12, 0.45);
}

::selection { background: rgba(201, 169, 97, 0.34); color: #17130c; }

/* thin progress hairline under the header */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 61;
  pointer-events: none;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* header settles into a translucent, slimmer bar once scrolled.
   A near-opaque cream instead of a backdrop blur: the blur forced the
   compositor to re-filter the whole bar on every scroll frame. */
.site-header {
  background-color: var(--cream);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-stuck {
  background-color: rgba(248, 244, 234, 0.97);
}
.header-inner { transition: min-height 0.35s var(--ease); }
.site-header.is-stuck .header-inner { min-height: clamp(62px, 6vw, 72px); }

.nav-link { transition: color 0.22s var(--ease); }
.nav-link:hover { color: var(--gold-deep); }

/* ---------- hero ------------------------------------------ */

/* A slow fade rather than a 26-second zoom: it reads the same but does not
   keep the compositor busy for the whole first half minute. */
.hero-media img {
  animation: hero-in 1.4s var(--ease) both;
}
@keyframes hero-in {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.hero h1,
.hero p,
.hero .btn { animation: rise-in 0.95s var(--ease-out) both; }
.hero h1 { animation-delay: 0.04s; }
.hero p { animation-delay: 0.14s; }
.hero .btn { animation-delay: 0.24s; }
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}

.hero h1 { font-weight: 500; letter-spacing: -0.028em; }

/* ---------- scroll reveals -------------------------------- */

/* .has-motion is added by script.js, so without JavaScript — or when
   reduced motion is requested — everything stays visible. */
html.has-motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.has-motion [data-reveal].is-in { opacity: 1; transform: none; }

html.has-motion .reveal-child {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--d, 0ms);
/* Stagger by position in CSS rather than writing a delay on every card. */
html.has-motion .reveal-child:nth-child(2) { transition-delay: 70ms; }
html.has-motion .reveal-child:nth-child(3) { transition-delay: 140ms; }
html.has-motion .reveal-child:nth-child(4) { transition-delay: 210ms; }
html.has-motion .reveal-child:nth-child(5) { transition-delay: 280ms; }
html.has-motion .reveal-child:nth-child(n+6) { transition-delay: 350ms; }
}
html.has-motion .reveal-child.is-in { opacity: 1; transform: none; }

html.has-motion [data-reveal] .eyebrow-row::after {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--ease-out) 0.12s;
}
html.has-motion [data-reveal].is-in .eyebrow-row::after { transform: scaleX(1); }

/* ---------- hover detail ---------------------------------- */

.cap {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cap-index {
  color: var(--gold-ink);
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1;
  transition: color 0.22s var(--ease);
}
.cap:hover .cap-index,
.cap:focus-visible .cap-index { color: var(--gold-deep); }

.btn {
  box-shadow: 0 12px 26px -16px rgba(107, 76, 16, 0.85);
  transition: background 0.22s var(--ease), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -18px rgba(107, 76, 16, 0.9); }
.btn:active { transform: translateY(1px); box-shadow: none; }

.eng-card { transition: transform 0.45s var(--ease-out); }
.eng-card:hover,
.eng-card:focus-visible { transform: translateY(-3px); }
.eng-rule { transition: width 0.45s var(--ease-out); }
.eng-card:hover .eng-rule,
.eng-card:focus-visible .eng-rule { width: 56px; }

.signup button svg { transition: transform 0.3s var(--ease-out); }
.signup button:hover svg { transform: translateX(4px); }

.stay-media img { transition: transform 1.2s var(--ease-out); }
.stay:hover .stay-media img { transform: scale(1.03); }

.footer-link { transition: color 0.2s var(--ease); }

.mobile-nav a { transition: color 0.2s var(--ease), padding-left 0.25s var(--ease-out); }
.mobile-nav a:hover { padding-left: 6px; }

/* ---------- Responsive ------------------------------------ */

@media (max-width: 1080px) {
  .hero h1 { max-width: 11.4em; }
  .stay { grid-template-columns: minmax(200px, 34%) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  /* Narrow screens stack the hero: the copy sits on solid cream and the
     photograph runs full width beneath it, so it is never washed out by
     the cream scrim that covers it on wide screens. */
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 0;
  }
  .hero::before { display: none; }
  .hero-media {
    position: relative;
    inset: auto;
    order: 2;
    z-index: 0;
    height: clamp(220px, 44vh, 320px);
    overflow: hidden;
  }
  .hero-media img { object-position: 66% 56%; }
  /* soft feather so the cream copy area melts into the photograph */
  .hero-media::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: 52%;
    background: linear-gradient(180deg,
      #f3ecdb 0%,
      rgba(243, 236, 219, 0.88) 22%,
      rgba(243, 236, 219, 0.38) 58%,
      rgba(243, 236, 219, 0) 100%);
  }
  .hero-inner { padding-block: clamp(34px, 9vw, 56px) clamp(22px, 6vw, 34px); }
  .hero h1 { max-width: 15em; }
  .hero p { max-width: 26em; }

  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .cap { border-left: 1px solid var(--line); padding: 0 16px 8px clamp(14px, 2.4vw, 22px); }
  .cap:nth-child(odd) { border-left: 0; padding-left: 0; }

  .eng-grid {
    display: flex;
    gap: 26px;
    padding: 0 0 6px;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* without this the snap ignores the inset and parks the first card
       flush against the screen edge */
    scroll-padding-inline: var(--pad);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .eng-grid::-webkit-scrollbar { display: none; }
  .eng-card {
    flex: 0 0 78%;
    max-width: 360px;
    padding: 0;
    border-left: 0;
    scroll-snap-align: start;
  }
  .eng-card.is-hidden { display: flex; }
  .eng-next { display: none; }

  .stay { grid-template-columns: 1fr; }
  .stay-media { min-height: 0; height: clamp(170px, 34vw, 240px); }
  .stay-body { padding: clamp(28px, 5vw, 44px) var(--pad); }

  .modal-dialog {
    grid-template-columns: 1fr;
    max-height: 88vh;
  }
  .modal-media { height: 190px; }
  .modal-media img { min-height: 0; }
  .modal-body { padding: 26px clamp(20px, 5vw, 32px) clamp(26px, 5vw, 34px); }
  .modal-close { top: 8px; right: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); }
}

@media (max-width: 620px) {
  .brand-sub { letter-spacing: 0.22em; font-size: 8px; }

  .cap-grid { grid-template-columns: 1fr; row-gap: 0; }
  .cap,
  .cap:nth-child(odd) {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 15px 0;
  }
  .cap:first-child { border-top: 0; padding-top: 0; }
  .cap:last-child { padding-bottom: 0; }

  .eng-card { flex: 0 0 86%; }

  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 12px 22px; }

  .modal { padding: 10px; }
  .modal-media { height: 160px; }
  .modal-body h2 { font-size: 1.42rem; }

  .gate-row { flex-direction: column; }
  .gate-row button {
    justify-content: center;
    padding: 13px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
