/* Quantum Ascend LLC — quantumascend.com
   Palette and type carried over from the firm's deck collateral. */

:root {
  --ink:        #141733;
  --ink-2:      #1E2350;
  --ink-3:      #2A3068;
  --ember:      #E2542C;
  --ember-dk:   #C2431F;
  --amber:      #F0A830;
  --paper:      #FFFFFF;
  --mist:       #F4F5F9;
  --wash:       #FBEDE7;
  --slate:      #4A4E6B;
  --slate-lt:   #787D9E;
  --rule:       #E1E3EC;
  --rule-dk:    #343A70;
  --cream:      #F7F4EF;
  --muted-d:    #A9AECD;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gap: 28px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.06rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }
a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ember-dk); text-decoration: underline; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
.lede { font-size: 1.19rem; line-height: 1.6; color: var(--slate); max-width: 62ch; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ember);
  color: #fff; padding: 12px 18px; z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.masthead {
  background: var(--ink);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.masthead .wrap { display: flex; align-items: center; gap: 22px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--cream); text-decoration: none; }
.brand:hover { text-decoration: none; color: #fff; }
.brand .glyph { width: 26px; height: 26px; flex: 0 0 26px; }
.brand b {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.01em;
}
.brand span { color: var(--muted-d); font-size: 0.72rem; display: block; line-height: 1.1; letter-spacing: 0.09em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--muted-d); font-size: 0.95rem; text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--ember); }

.btn {
  display: inline-block; background: var(--ember); color: #fff; font-weight: 500;
  padding: 12px 22px; border-radius: 3px; font-size: 0.97rem; border: 1px solid var(--ember);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--ember-dk); border-color: var(--ember-dk); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--cream); border-color: rgba(255,255,255,0.35); }
.btn.ghost:hover { background: rgba(255,255,255,0.09); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.dark:hover { background: var(--ink-2); border-color: var(--ink-2); }

.menu-btn {
  display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,0.3);
  color: var(--cream); border-radius: 3px; padding: 9px 12px; font: inherit; font-size: 0.9rem; cursor: pointer;
}

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--cream); padding: 74px 0 0; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -180px; top: -220px; width: 620px; height: 620px;
  border-radius: 50%; background: var(--ink-2); opacity: 0.55; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--cream); max-width: 17ch; }
.hero p { color: var(--muted-d); font-size: 1.16rem; max-width: 60ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 60px; }

.page-head { background: var(--ink); color: var(--cream); padding: 68px 0 58px; position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: -160px; bottom: -280px; width: 520px; height: 520px;
  border-radius: 50%; background: var(--ink-2); opacity: 0.5;
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { color: var(--cream); margin-bottom: 0.3em; }
.page-head p { color: var(--muted-d); font-size: 1.14rem; }
.kicker {
  font-size: 0.82rem; color: var(--amber); letter-spacing: 0.14em;
  text-transform: uppercase; margin: 0 0 14px; font-weight: 500;
}

/* ---------- watch band (the follow-the-sun strip) ---------- */
.watch {
  border-top: 1px solid var(--rule-dk);
  background: rgba(255,255,255,0.03);
  padding: 22px 0 26px;
}
.watch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.watch-cell { padding: 6px 26px 6px 0; border-left: 1px solid var(--rule-dk); padding-left: 22px; }
.watch-cell:first-child { border-left: 0; padding-left: 0; }
.watch-city { font-size: 0.79rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-d); }
.watch-time {
  font-family: var(--serif); font-size: 2rem; color: var(--cream);
  font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 2px;
}
.watch-state { font-size: 0.87rem; color: var(--slate-lt); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4A5080; flex: 0 0 8px; }
.on .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(240,168,48,0.16); }
.on .watch-state { color: var(--amber); }
.watch-note { color: var(--slate-lt); font-size: 0.87rem; margin: 18px 0 0; max-width: 70ch; }

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section.tight { padding: 56px 0; }
.section.mist { background: var(--mist); }
.section.ink { background: var(--ink); color: var(--muted-d); }
.section.ink h2, .section.ink h3 { color: var(--cream); }
.section.ink p { color: var(--muted-d); }

.section-head { max-width: 66ch; margin-bottom: 44px; }
.section-head p { color: var(--slate); font-size: 1.1rem; margin-bottom: 0; }
.section.ink .section-head p { color: var(--muted-d); }

.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }

.panel {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 30px 28px;
}
.panel h3 { margin-bottom: 0.35em; }
.panel p:last-child { margin-bottom: 0; }
.panel.accent { background: var(--wash); border-color: #F0C4B4; }
.section.ink .panel { background: var(--ink-2); border-color: var(--rule-dk); }

.pillar { display: block; color: inherit; text-decoration: none; }
.pillar:hover { text-decoration: none; border-color: #C6CADD; }
.pillar .more { color: var(--ember); font-weight: 500; font-size: 0.96rem; display: inline-block; margin-top: 6px; }
.pillar:hover .more { text-decoration: underline; }

/* rule list — used for capability listings */
.rules { border-top: 1px solid var(--rule); margin: 0; padding: 0; list-style: none; }
.rules li { border-bottom: 1px solid var(--rule); padding: 20px 0; display: grid; grid-template-columns: 250px 1fr; gap: 28px; }
.rules b { font-family: var(--serif); font-weight: 600; font-size: 1.09rem; color: var(--ink); }
.rules span { color: var(--slate); }
.section.ink .rules { border-color: var(--rule-dk); }
.section.ink .rules li { border-color: var(--rule-dk); }
.section.ink .rules b { color: var(--cream); }
.section.ink .rules span { color: var(--muted-d); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat .n { font-family: var(--serif); font-size: 2.3rem; color: var(--ember); line-height: 1.1; }
.section.ink .stat .n { color: var(--amber); }
.stat p { font-size: 0.97rem; margin: 6px 0 0; }

.tags { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 18px 0 0; list-style: none; }
.tags li {
  border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px;
  font-size: 0.85rem; color: var(--slate); background: var(--paper);
}
.section.ink .tags li { border-color: var(--rule-dk); color: var(--muted-d); background: transparent; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid var(--rule); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 2px; background: var(--ember);
}

.office { border-top: 3px solid var(--ember); padding-top: 22px; }
.office h3 { margin-bottom: 2px; }
.office .region { color: var(--slate-lt); font-size: 0.9rem; margin: 0 0 14px; }
.office p { font-size: 0.97rem; margin-bottom: 0.5em; }

.cta { background: var(--ink); color: var(--cream); padding: 62px 0; }
.cta h2 { color: var(--cream); max-width: 20ch; }
.cta p { color: var(--muted-d); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- forms ---------- */
form.enquiry { display: grid; gap: 18px; max-width: 620px; }
.field label { display: block; font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid #C9CCDC; border-radius: 3px; padding: 11px 13px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ember); outline-offset: 1px; }
.field .hint { font-size: 0.84rem; color: var(--slate-lt); margin: 6px 0 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--muted-d); padding: 54px 0 30px; font-size: 0.94rem; }
.foot a { color: var(--muted-d); }
.foot a:hover { color: #fff; }
.foot h4 { color: var(--cream); font-size: 0.95rem; font-family: var(--sans); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--gap); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot .fine {
  border-top: 1px solid var(--rule-dk); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 0.87rem; color: var(--slate-lt);
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .g4, .stats { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .rules li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--ink-2);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 26px 22px;
    border-bottom: 1px solid var(--rule-dk);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--rule-dk); }
  .nav a[aria-current="page"] { border-bottom-color: var(--ember); }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
  .watch-grid { grid-template-columns: 1fr; }
  .watch-cell { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-dk); padding-top: 14px; margin-top: 14px; }
  .watch-cell:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
  .g2, .g3, .g4, .stats, .row2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding-top: 52px; }
}
