/* Vigilo prototype foundation. Tokens from the Vigilo Brand Guidelines (September 2026).
   Every prototype links this file first, then its own direction stylesheet. */
@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  /* Brand palette (guidelines p6). Gold hex and RGB disagree in the guidelines:
     #C18A40 is the hex, rgb(206,167,115) = #CEA773. Both are used as a gradient pair. */
  --navy: #041126;
  --navy-2: #0A1A33;
  --navy-3: #13233F;
  --graphite: #292C34;
  --gold: #C18A40;
  --gold-soft: #CEA773;
  --gold-grad: linear-gradient(135deg, #D9B57E 0%, #CEA773 38%, #C18A40 100%);
  --ivory: #F8F0E9;
  --ivory-2: #FFFBF7;
  --stone: #D8D2CB;
  --teal: #176C70;
  --teal-hi: #1D8388;

  --ink: var(--navy);
  --ink-soft: rgba(4, 17, 38, 0.72);
  --ink-mute: rgba(4, 17, 38, 0.52);
  --on-dark: var(--ivory);
  --on-dark-soft: rgba(248, 240, 233, 0.74);
  --on-dark-mute: rgba(248, 240, 233, 0.5);
  --hair-dark: rgba(206, 167, 115, 0.28);
  --hair-light: rgba(4, 17, 38, 0.12);

  --serif: 'Cardo', 'Iowan Old Style', Georgia, serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-display: clamp(2.9rem, 7.2vw, 6.6rem);
  --fs-h1: clamp(2.5rem, 5.6vw, 5rem);
  --fs-h2: clamp(2rem, 3.9vw, 3.5rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.75rem);
  --fs-lead: clamp(1.06rem, 1.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.72rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 1100ms;

  --gutter: clamp(20px, 4.5vw, 64px);
  --maxw: 1320px;
  --radius: 4px;
  --radius-lg: 14px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; font-family: var(--sans); font-size: var(--fs-body); line-height: 1.7;
  color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold-soft); color: var(--navy); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.theme-dark { background: var(--navy); color: var(--on-dark); }

/* Type */
.display, .h1, .h2, .h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; line-height: 1.04; margin: 0; }
.display { font-size: var(--fs-display); line-height: 0.98; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); line-height: 1.08; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }
.lead { font-size: var(--fs-lead); line-height: 1.65; font-weight: 400; }
.eyebrow {
  font-family: var(--sans); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 14px; margin: 0;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.theme-dark .eyebrow, .on-dark .eyebrow { color: var(--gold-soft); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
em.serif-i, .serif-i { font-family: var(--serif); font-style: italic; }

/* Buttons. Brand: teal for calls to action, gold for premium moments. */
.btn {
  --bg: var(--teal); --fg: var(--ivory);
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--bg); color: var(--fg); border-radius: var(--radius); position: relative; overflow: hidden;
  transition: background-color 400ms var(--ease), color 400ms var(--ease), transform 400ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::after { content: '\2192'; font-size: 1.05rem; letter-spacing: 0; transition: transform 500ms var(--ease); }
.btn:hover, .btn:focus-visible, .btn:active { background: var(--teal-hi); }
.btn:hover::after, .btn:focus-visible::after, .btn:active::after { transform: translateX(4px); }
.btn:active { transform: scale(0.985); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px var(--hair-dark); }
.btn--ghost:hover, .btn--ghost:focus-visible, .btn--ghost:active { background: rgba(206, 167, 115, 0.12); }
.btn--gold { --bg: var(--gold-soft); --fg: var(--navy); background: var(--gold-grad); }
.btn--gold:hover, .btn--gold:focus-visible, .btn--gold:active { filter: brightness(1.06); background: var(--gold-grad); }
.btn--plain::after { content: none; }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.link-arrow::after { content: '\2192'; transition: transform 500ms var(--ease); }
.link-arrow:hover::after, .link-arrow:focus-visible::after, .link-arrow:active::after { transform: translateX(5px); }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

/* Frozen glass top bar (house standard). Direction CSS may restyle, but keep sticky + blur. */
.topbar {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(4, 17, 38, 0.62);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(206, 167, 115, 0.18); box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.6);
  color: var(--on-dark); transition: background-color 500ms var(--ease), box-shadow 500ms var(--ease);
}
.topbar--light { background: rgba(248, 240, 233, 0.74); color: var(--navy); border-bottom-color: var(--hair-light); box-shadow: 0 10px 30px -26px rgba(4, 17, 38, 0.35); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: rgba(4, 17, 38, 0.96); }
  .topbar--light { background: rgba(248, 240, 233, 0.97); }
}
.topbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar__links { display: flex; gap: clamp(18px, 2.2vw, 34px); align-items: center; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.topbar__links a { position: relative; padding: 6px 0; opacity: 0.86; transition: opacity 300ms; }
.topbar__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-soft); transform: scaleX(0); transform-origin: right; transition: transform 600ms var(--ease); }
.topbar__links a:hover, .topbar__links a:focus-visible, .topbar__links a:active { opacity: 1; }
.topbar__links a:hover::after, .topbar__links a:focus-visible::after, .topbar__links a:active::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ''; display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform 400ms var(--ease), opacity 300ms; }
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 59; background: var(--navy); color: var(--ivory);
  padding: 32px var(--gutter); display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 400ms var(--ease), transform 500ms var(--ease), visibility 0s 500ms;
}
.mobile-menu a { font-family: var(--serif); font-size: 1.9rem; padding: 10px 0; border-bottom: 1px solid var(--hair-dark); }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 400ms var(--ease), transform 500ms var(--ease); }
body.menu-open { overflow: hidden; }
@media (max-width: 980px) {
  .topbar__links { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar .btn { display: none; }
}

/* Logo usage (guidelines p5): complete logo, never recreated in type; symbol-only for compact spaces. */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 56px; width: auto; }
.logo-mark img { height: 34px; width: auto; }

/* Placeholders that Vigilo must confirm before launch. Visible on purpose. */
.to-confirm {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px dashed currentColor;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.to-confirm::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.placeholder-note { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-mute); }
.theme-dark .placeholder-note, .on-dark .placeholder-note { color: var(--on-dark-mute); }

/* Reveal primitives (driven by shared/motion.js). Content stays visible without JS. */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal="left"] { transform: translate3d(-32px, 0, 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1400ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="curtain"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1500ms var(--ease-in-out); transition-delay: var(--d, 0ms); }
.js [data-reveal="curtain"].is-in { clip-path: inset(0 0 0 0); }
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: block; }
.js [data-split] .split-line > span { transform: translate3d(0, 105%, 0); transition: transform 1250ms var(--ease); transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 110ms); }
.js [data-split].is-in .split-line > span { transform: none; }
.hairline { height: 1px; background: var(--hair-dark); transform-origin: left; }
.js .hairline[data-reveal] { opacity: 1; transform: scaleX(0); transition: transform 1600ms var(--ease); }
.js .hairline[data-reveal].is-in { transform: scaleX(1); }

/* Video blocks */
.vid { position: relative; overflow: hidden; background: var(--navy-2); }
.vid video, .vid > img, .vid img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* A film swapped for a photo (Copy Desk) leaves nothing to pause. */
.vid:not(:has(video)) .vid-toggle, .x4-hero:not(:has(video)) .vid-toggle { display: none; }
.vid-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ivory); background: rgba(4, 17, 38, 0.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(248, 240, 233, 0.25);
}
.vid-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.footage-note { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }

/* Footer baseline (every direction shows the corrected company details). */
.site-footer { background: var(--navy); color: var(--on-dark-soft); font-size: 0.85rem; padding: 72px 0 40px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold-soft); }

/* Accessibility and motion preferences */
.sr-only { position: absolute; 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; left: 12px; top: -60px; z-index: 100; background: var(--ivory); color: var(--navy); padding: 10px 14px; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal], .js [data-split] .split-line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
@media print { .topbar { position: static; backdrop-filter: none; background: var(--navy); } }
