/* ==========================================================================
   Compass | Waypoint Hospitality Solutions
   Holding page stylesheet
   --------------------------------------------------------------------------
   1. Fonts
   2. Design tokens
   3. Reset & base
   4. Layout primitives
   5. Components
   6. Sections
   7. Motion & reveal
   8. Responsive
   9. Reduced motion / print / forced colors
   ========================================================================== */

/* ── 1. Fonts ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-400.woff') format('woff'),
       url('../fonts/poppins-400.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-500.woff') format('woff'),
       url('../fonts/poppins-500.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato-400.woff') format('woff'),
       url('../fonts/lato-400.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato-600.woff') format('woff'),
       url('../fonts/lato-600.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ── 2. Design tokens ───────────────────────────────────────────────────── */

:root {
  /* Navy: structure, authority, calm */
  --navy-900: #071a2f;
  --navy-800: #0b2140;
  --navy-700: #0e2a4a;   /* Compass Navy, primary */
  --navy-600: #14395f;
  --navy-500: #1e4c7a;
  --navy-300: #7ba0c4;   /* 6.4:1 on Navy 900, safe in the footer */
  --navy-100: #c7d6e5;

  /* Muted gold: the single point of attention */
  --gold-700: #8a6a2e;   /* accessible gold on white */
  --gold-600: #a8823d;
  --gold-500: #c6a15b;   /* Compass Gold, accent */
  --gold-300: #e0c899;
  --gold-100: #f5ecdc;

  /* Neutrals: space to breathe */
  --white:  #ffffff;
  --mist:   #f5f7fa;
  --fog:    #e4eaf1;
  --slate:  #54677d;
  --ink:    #0b1b2e;

  /* Roles */
  --bg:            var(--white);
  --text:          var(--ink);
  --text-muted:    var(--slate);
  --text-on-dark:  var(--white);
  --text-on-dark-muted: var(--navy-100);
  --accent:        var(--gold-500);
  --accent-strong: var(--gold-700);
  --line:          var(--fog);
  --line-on-dark:  rgba(255, 255, 255, .14);

  /* Type */
  --font-display: 'Poppins', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-text:    'Lato', 'Helvetica Neue', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--2: clamp(0.75rem,  0.73rem + 0.09vw, 0.8125rem);
  --step--1: clamp(0.875rem, 0.85rem + 0.13vw, 0.9375rem);
  --step-0:  clamp(1rem,     0.97rem + 0.16vw, 1.0625rem);
  --step-1:  clamp(1.0625rem,1.01rem + 0.28vw, 1.1875rem);
  --step-2:  clamp(1.1875rem,1.09rem + 0.45vw, 1.4375rem);
  --step-3:  clamp(1.5rem,   1.27rem + 1.15vw, 2.25rem);
  --step-4:  clamp(2rem,     1.5rem + 2.5vw,   3.25rem);
  --step-5:  clamp(2.375rem, 1.6rem + 3.7vw,   4.5rem);

  /* Space */
  --space-2xs: .375rem;
  --space-xs:  .625rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2.25rem;
  --space-xl:  3.5rem;
  --space-2xl: clamp(4rem, 3rem + 5vw, 7.5rem);

  --shell:  min(100% - 2.5rem, 74rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 27, 46, .05), 0 4px 14px rgba(11, 27, 46, .05);
  --shadow-md: 0 2px 4px rgba(11, 27, 46, .05), 0 14px 40px rgba(11, 27, 46, .09);
  --shadow-dark: 0 20px 60px rgba(3, 12, 24, .45);

  --ease: cubic-bezier(.22, .68, .35, 1);
}

/* ── 3. Reset & base ────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.018em;
  margin: 0;
  text-wrap: balance;
}

p  { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

::selection { background: var(--gold-300); color: var(--navy-900); }

.skip-link {
  position: absolute;
  left: 1rem; top: -100%;
  z-index: 999;
  padding: .7rem 1.1rem;
  background: var(--white);
  color: var(--navy-700);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--step--1);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ── 4. Layout primitives ───────────────────────────────────────────────── */

.shell { width: var(--shell); margin-inline: auto; }

.section { padding-block: var(--space-2xl); position: relative; }
.section--light   { background: var(--mist); }
.section--paper   { background: var(--white); }
.section--dark    { background: var(--navy-700); color: var(--text-on-dark); }
.section--closing { background: var(--navy-900); color: var(--text-on-dark); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

.section__title {
  font-size: var(--step-3);
  margin-top: var(--space-s);
  max-width: 22ch;
}
.section__title--onDark { color: var(--white); max-width: 20ch; }

.section__lede {
  margin-top: var(--space-m);
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.62;
}
.section__lede--onDark { color: var(--text-on-dark-muted); }

/* ── 5. Components ──────────────────────────────────────────────────────── */

/* Eyebrow ---------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--step--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow--onDark { color: var(--gold-300); }
.eyebrow__rule {
  width: 2rem; height: 1px; flex: none;
  background: currentColor; opacity: .55;
}

/* Buttons & links -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  background: var(--accent);
  color: var(--navy-900);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: .01em;
  text-decoration: none;
  border-radius: 999px;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 8px 24px rgba(198, 161, 91, .22);
}
.btn:hover {
  background: var(--gold-300);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(198, 161, 91, .3);
}
.btn:active { transform: translateY(0); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.link-quiet {
  color: var(--navy-100);
  font-size: var(--step--1);
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 214, 229, .3);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link-quiet:hover { color: var(--gold-300); border-color: var(--gold-300); }

/* Pulse ------------------------------------------------------------------ */
.pulse {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: .55rem;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 0 rgba(198, 161, 91, .6);
  animation: pulse 2.6s var(--ease) infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(198, 161, 91, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(198, 161, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 161, 91, 0); }
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 1.35rem;
  transition: padding .3s var(--ease), background-color .3s var(--ease),
              box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-stuck {
  padding-block: .8rem;
  background: rgba(14, 42, 74, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(4, 14, 28, .28);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
}
.site-header__logo { display: block; flex: none; }
.site-header__logo img { width: clamp(150px, 14vw, 206px); height: auto; }

.site-header__by {
  text-align: right;
  font-size: var(--step--2);
  line-height: 1.35;
  color: var(--navy-100);
}
.site-header__by-label {
  display: block;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .625rem;
  opacity: .62;
}
.site-header__by-name { font-weight: 600; letter-spacing: .01em; }

/* ── 6. Sections ────────────────────────────────────────────────────────── */

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;   /* fallback for browsers without small-viewport units */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(8rem, 6rem + 9vw, 11rem) clamp(6rem, 4rem + 6vw, 8rem);
  background: var(--navy-700);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero__field { position: absolute; inset: 0; z-index: -1; }

.hero__field::after {
  /* fine grain, keeps the flat navy from banding */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .5) .5px, transparent .5px);
  background-size: 3px 3px;
  opacity: .045;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__glow--gold {
  width: 46vmax; height: 46vmax;
  top: -14vmax; right: -12vmax;
  background: radial-gradient(circle, rgba(198, 161, 91, .30), transparent 68%);
}
.hero__glow--blue {
  width: 52vmax; height: 52vmax;
  bottom: -22vmax; left: -18vmax;
  background: radial-gradient(circle, rgba(30, 76, 122, .55), transparent 66%);
}

.hero__mark {
  position: absolute;
  right: -8vmax;
  top: 50%;
  width: min(58vmax, 900px);
  aspect-ratio: 1;
  translate: 0 -50%;
  color: var(--white);
  opacity: .07;
}
.hero__mark-orbit { animation: spin 150s linear infinite; transform-origin: 32px 32px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__inner { position: relative; }

.hero__title {
  margin-top: var(--space-m);
  font-size: var(--step-5);
  max-width: 17ch;
  color: var(--white);
}
.hero__title-accent {
  display: block;
  color: var(--gold-300);
}

.hero__lede {
  margin-top: var(--space-l);
  max-width: 56ch;
  font-size: var(--step-1);
  line-height: 1.68;
  color: var(--text-on-dark-muted);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: var(--space-m) var(--space-l);
  margin-top: clamp(2.5rem, 1.8rem + 2.4vw, 4rem);
  padding-top: var(--space-l);
  border-top: 1px solid var(--line-on-dark);
  max-width: 58rem;
}
.hero__fact dt {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-300);
  opacity: .85;
}
.hero__fact dd {
  margin-top: .4rem;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--white);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 3vh, 2.5rem);
  translate: -50% 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--navy-100);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.hero__scroll:hover { color: var(--gold-300); }
.hero__scroll-text {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hero__scroll svg { animation: nudge 2.8s var(--ease) infinite; }
@keyframes nudge {
  0%, 55%, 100% { transform: translateY(0); opacity: .75; }
  75%           { transform: translateY(5px); opacity: 1; }
}

/* Pillars ---------------------------------------------------------------- */
.pillars {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}

.pillar {
  padding: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-300);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-600));
  color: var(--white);
}
.pillar__icon svg { width: 1.75rem; height: 1.75rem; }
.pillar__icon .accent { fill: var(--gold-500); }
.pillar__icon .accent-stroke { stroke: var(--gold-500); }

.pillar__title {
  margin-top: var(--space-m);
  font-size: var(--step-2);
  color: var(--navy-700);
}
.pillar__body {
  margin-top: .75rem;
  font-size: var(--step--1);
  line-height: 1.68;
  color: var(--text-muted);
}

/* Atlas ------------------------------------------------------------------ */
.atlas {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 62rem) {
  .atlas { grid-template-columns: 1fr 1fr; }
}

.atlas__note {
  margin-top: var(--space-l);
  padding-left: var(--space-m);
  border-left: 2px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.4;
  letter-spacing: -.012em;
  color: var(--white);
  max-width: 26ch;
}

.atlas__card {
  position: relative;
  padding: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem);
  background: linear-gradient(165deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.atlas__card::before {
  /* gold hairline along the top edge */
  content: '';
  position: absolute;
  inset: -1px auto auto 1.75rem;
  width: 3.5rem; height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}

.atlas__card-head {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.atlas__avatar {
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
}
.atlas__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-0);
  color: var(--white);
}
.atlas__stamp {
  margin-left: auto;
  font-size: var(--step--2);
  color: var(--navy-100);
  opacity: .7;
}

/* No-JS / reduced-motion: all three messages read as a stacked list.
   With JS: they overlap in one grid cell and cross-fade. */
.atlas__messages { display: block; }
.atlas__messages > * + * { margin-top: 1rem; }

.js .atlas__messages { display: grid; min-height: 8.5rem; }
.js .atlas__messages > * + * { margin-top: 0; }
.atlas__message {
  grid-area: 1 / 1;
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--white);
  transition: opacity .6s var(--ease);
}

.atlas__dots {
  display: flex;
  gap: .4rem;
  margin-top: 1.4rem;
}
.atlas__dot {
  width: 1.25rem; height: 3px;
  border-radius: 3px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .22);
  transition: background .3s var(--ease), width .3s var(--ease);
}
.atlas__dot.is-active { background: var(--gold-500); width: 2rem; }

/* Promise ---------------------------------------------------------------- */
.promise { max-width: 58rem; }
.promise .section__title { max-width: 24ch; }

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .35rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.chain__item {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--navy-600);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.chain__item::after {
  content: '';
  width: 1.15rem; height: 1px;
  margin-left: 1rem;
  margin-right: -.5rem;
  background: var(--gold-500);
  opacity: .8;
}
.chain__item--end {
  color: var(--white);
  background: var(--navy-700);
  border-color: var(--navy-700);
}
.chain__item--end::after { display: none; }

.promise__close {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-size: var(--step-1);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 58ch;
}

/* Closing ---------------------------------------------------------------- */
.closing { max-width: 44rem; text-align: center; margin-inline: auto; }
.closing__mark { margin: 0 auto var(--space-m); opacity: .9; }
.closing__title {
  font-size: var(--step-4);
  color: var(--white);
  margin-inline: auto;
}
.closing__body {
  margin: var(--space-m) auto 0;
  font-size: var(--step-1);
  line-height: 1.68;
  color: var(--text-on-dark-muted);
  max-width: 50ch;
}
.closing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-m);
  margin-top: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  padding-block: var(--space-xl) var(--space-l);
  background: var(--navy-900);
  color: var(--navy-100);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l);
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer__brand img { width: clamp(160px, 16vw, 184px); height: auto; }
.site-footer__tag {
  margin-top: .9rem;
  font-size: var(--step--1);
  color: var(--navy-300);
  max-width: 30ch;
}
.site-footer__meta { max-width: 34rem; }
.site-footer__company {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-0);
  color: var(--white);
}
.site-footer__legal {
  margin-top: .6rem;
  font-size: var(--step--2);
  line-height: 1.6;
  color: var(--navy-300);
}

/* ── 7. Motion & reveal ─────────────────────────────────────────────────── */

/* Content is visible by default. The `js` class is only applied by an inline
   script in <head>, so if scripting fails the page still reads perfectly. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Atlas messages stack until JS takes over the cross-fade. */
.js .atlas__message { opacity: 0; }
.js .atlas__message.is-active { opacity: 1; }

/* ── 8. Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 48rem) {
  .site-header__by-label { display: none; }
  .site-header__by-name  { font-size: .6875rem; opacity: .8; }
  .hero__mark { right: -30vmax; opacity: .055; }
  .hero__scroll { display: none; }
  .hero { min-height: auto; padding-block: 7.5rem 4.5rem; }
  .chain__item::after { display: none; }
}

@media (max-width: 30rem) {
  :root { --shell: min(100% - 2rem, 74rem); }
  .site-header__by { display: none; }
  .atlas__stamp { display: none; }
}

@media (min-width: 90rem) {
  :root { --shell: min(100% - 4rem, 78rem); }
}

/* ── 9. Reduced motion / print / forced colors ──────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .atlas__message { opacity: 1; }
  .js .atlas__messages { display: block; min-height: 0; }
  .js .atlas__messages > * + * { margin-top: 1rem; }
  .atlas__dots, .hero__scroll svg { display: none; }
}

@media (forced-colors: active) {
  .pillar, .atlas__card { border: 1px solid CanvasText; }
  .btn { border: 1px solid ButtonText; }
}

@media print {
  .site-header, .hero__field, .hero__scroll, .atlas__dots { display: none !important; }
  body { background: #fff; color: #000; }
  .section--dark, .section--closing, .hero, .site-footer {
    background: #fff !important; color: #000 !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
