/* Keystone Visuals — site styles
   Brand name lives in js/config.js; colours and type live here. */

:root {
  --navy: #0c1a27;
  --navy-mid: #152536;
  --navy-soft: #1d3246;
  --ink: #14181f;
  --cream: #f4f0e8;
  --paper: #faf7f2;
  --stone: #e4ddd0;
  --stone-dark: #cfc6b6;
  --gold: #c4a35a;
  --gold-dark: #9a7b3c;
  --gold-soft: #e8d5a3;
  --muted: #5c6570;
  --muted-light: #8a9199;
  --white: #ffffff;
  --danger: #8b2e2e;
  --success: #2f5d4a;
  --overlay: rgba(12, 26, 39, 0.55);
  --shadow: 0 12px 40px rgba(12, 26, 39, 0.12);
  --shadow-soft: 0 4px 18px rgba(12, 26, 39, 0.08);
  --header-h: 4.75rem;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0.35rem;
  --radius-lg: 0.7rem;
  --font-serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-sans: "Source Sans 3", "Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
iframe { border: 0; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  color: var(--cream);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(244, 240, 232, 0.96);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--stone);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  flex: none;
}
.logo-mark .keystone { fill: var(--gold); }
.logo-mark .keystone-hi { fill: var(--gold-soft); }
.logo-wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.9;
}
.nav a:hover { opacity: 1; color: var(--gold-dark); }
.site-header:not(.is-scrolled):not(.is-open) .nav a:hover { color: var(--gold-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.site-header.is-scrolled .btn-header,
.site-header.is-open .btn-header {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.site-header:not(.is-scrolled):not(.is-open) .btn-header {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-header.is-open .nav-toggle span { background: transparent; }
.site-header.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    color: var(--navy);
    padding: 0.5rem 0 1.25rem;
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid var(--stone);
  }
  .site-header.is-open .nav { display: flex; }
  .nav a, .nav .btn {
    margin: 0 var(--gutter);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--stone);
    border-radius: 0;
  }
  .nav .btn {
    margin-top: 0.85rem;
    justify-content: center;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: var(--cream);
    padding: 0.75rem 1rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: var(--navy);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,26,39,0.35) 0%, rgba(12,26,39,0.15) 32%, rgba(12,26,39,0.72) 100%),
    linear-gradient(90deg, rgba(12,26,39,0.55) 0%, rgba(12,26,39,0.15) 55%, rgba(12,26,39,0.25) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 38rem;
  margin: 0 0 2rem;
  color: rgba(244, 240, 232, 0.88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-header {
  max-width: 40rem;
  margin-bottom: 3rem;
}
.section-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 0.7rem;
}
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--navy);
}
.lede {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
}

.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2 { color: var(--cream); }
.section-navy .lede { color: rgba(244, 240, 232, 0.78); }
.section-navy .section-kicker { color: var(--gold); }

/* ---------- Value / intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}
.intro-stat {
  border-top: 1px solid var(--stone-dark);
  padding-top: 1.25rem;
  margin-top: 0;
}
.intro-stat + .intro-stat { margin-top: 1.5rem; }
.intro-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.intro-stat span { color: var(--muted); font-size: 0.98rem; }

@media (max-width: 800px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  padding: 1.5rem 1.35rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
  min-height: 100%;
}
.step-num {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 1.1rem;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  color: var(--navy);
}
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Benefits ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.benefit {
  padding: 1.6rem 1.45rem 1.7rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone);
}
.benefit-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  color: var(--gold-dark);
}
.benefit-icon svg { width: 100%; height: 100%; }
.benefit h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--navy);
}
.benefit p { margin: 0; color: var(--muted); font-size: 0.98rem; }

@media (max-width: 900px) {
  .benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .benefits { grid-template-columns: 1fr; }
}

/* ---------- Sample tours ---------- */
.tour-note {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 46rem;
  margin: -1.5rem 0 2.25rem;
}
.tour-note a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.tours {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.tour-card {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tour-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-mid);
}
.tour-frame iframe,
.tour-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: rgba(12, 26, 39, 0.38);
  color: var(--cream);
  text-align: center;
  padding: 1.5rem;
  border: 0;
  width: 100%;
  cursor: pointer;
}
.tour-overlay:hover { background: rgba(12, 26, 39, 0.5); }
.tour-overlay strong {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
}
.tour-overlay span { font-size: 0.9rem; opacity: 0.9; }
.tour-body { padding: 1.25rem 1.4rem 1.4rem; }
.tour-body h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--navy);
}
.tour-body p { margin: 0 0 0.7rem; color: var(--muted); }
.tour-meta {
  font-size: 0.82rem;
  color: var(--muted);
}
.tour-meta a { color: var(--navy); }

@media (min-width: 900px) {
  .tours { grid-template-columns: 1fr; }
  .tour-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
  }
  .tour-body { display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
}

/* ---------- Industries ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--stone-dark);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.is-active {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.industry-card {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.industry-card[hidden] { display: none; }
.industry-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--navy-mid);
  overflow: hidden;
}
.industry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.industry-card:hover .industry-media img { transform: scale(1.04); }
.industry-badge {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  background: rgba(12, 26, 39, 0.82);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
  pointer-events: none;
}
.industry-badge.is-live { background: var(--gold); color: var(--navy); }
.industry-body { padding: 1.05rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.industry-body h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--navy);
}
.industry-body p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.industry-body .text-btn {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.industry-body .text-btn:hover { color: var(--gold-dark); }

@media (max-width: 980px) {
  .industry-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .industry-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA / form ---------- */
.cta-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
.cta-copy .lede { max-width: 32rem; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.contact-list li { margin: 0 0 0.65rem; color: rgba(244, 240, 232, 0.85); }
.contact-list a { color: var(--gold-soft); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.placeholder-flag {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: 0.35rem;
}

.form-card {
  background: var(--cream);
  color: var(--ink);
  padding: 1.75rem 1.6rem 1.8rem;
  border-radius: var(--radius-lg);
}
.form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--navy);
}
.form-disclaimer {
  margin: 0 0 1.3rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--stone-dark);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-actions { margin-top: 1.1rem; }
.form-status {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--success); }

@media (max-width: 860px) {
  .cta-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #081219;
  color: rgba(244, 240, 232, 0.78);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(228, 221, 208, 0.12);
}
.footer-brand .logo { color: var(--cream); margin-bottom: 0.9rem; }
.footer-brand p { margin: 0; max-width: 26rem; }
.site-footer h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin: 0 0 0.45rem; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: rgba(244, 240, 232, 0.55);
}
.footer-base a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 25, 0.72);
}
.modal-dialog {
  position: relative;
  width: min(72rem, 100%);
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}
.modal-bar h2 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0;
}
.modal-close {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
}
.modal-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}
.modal-frame iframe { width: 100%; height: 100%; }
.modal-caption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.85rem;
  color: rgba(244, 240, 232, 0.75);
}
.modal-caption a { color: var(--gold-soft); }

body.modal-open { overflow: hidden; }

/* ---------- Coming soon panel ---------- */
.soon-panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.soon-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  color: var(--cream);
}
.soon-panel p { margin: 0 0 1.25rem; color: rgba(244,240,232,0.8); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .industry-card:hover .industry-media img { transform: none; }
}
