/* Siragusa HQ — interim launch page. Colors come only from tokens.css. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--hq-base);
  color: var(--hq-light);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--hq-base);
  font-family: var(--hq-font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:where(a, button):focus-visible {
  outline: 2px solid var(--hq-signal-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: rgb(var(--hq-blue-rgb) / 0.35); color: var(--hq-light); }

.hq-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.hq-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 50;
  padding: 12px 18px;
  background: var(--hq-light);
  color: var(--hq-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}
.hq-skip:focus { top: 16px; }

/* ---------- Type ---------- */
.hq-eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--hq-font-text);
  font-size: 0.78rem;
  font-weight: 560;
  font-stretch: 118%;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hq-warm);
}
.hq-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgb(var(--hq-warm-rgb) / 0.7);
}
.hq-display {
  margin: 22px 0 0;
  font-family: var(--hq-font-display);
  font-weight: 380;
  font-size: clamp(2.6rem, 1.3rem + 4.7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  max-width: 13ch;
  text-wrap: balance;
}
.hq-dot { color: var(--hq-coral); }
.hq-h2 {
  margin: 18px 0 0;
  font-family: var(--hq-font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.25rem + 2.3vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  max-width: 22ch;
  text-wrap: balance;
}
.hq-h3 {
  margin: 0 0 16px;
  font-family: var(--hq-font-text);
  font-size: 0.78rem;
  font-weight: 560;
  font-stretch: 115%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--hq-light-rgb) / 0.78);
}
.hq-note {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: rgb(var(--hq-light-rgb) / 0.74);
}

/* ---------- Buttons ---------- */
.hq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-family: var(--hq-font-text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition: background-color var(--hq-dur-fast) var(--hq-ease-standard),
              border-color var(--hq-dur-fast) var(--hq-ease-standard),
              color var(--hq-dur-fast) var(--hq-ease-standard);
}
.hq-btn--primary {
  background: var(--hq-warm);
  color: var(--hq-base);
  border: 1px solid var(--hq-warm);
}
.hq-btn--primary:hover { background: var(--hq-light); border-color: var(--hq-light); }
.hq-btn--ghost {
  background: transparent;
  color: var(--hq-light);
  border: 1px solid rgb(var(--hq-light-rgb) / 0.34);
}
.hq-btn--ghost:hover { border-color: var(--hq-light); background: rgb(var(--hq-light-rgb) / 0.06); }

/* ---------- Header ---------- */
.hq-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px clamp(16px, 4vw, 40px);
}
.hq-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}
.hq-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(var(--hq-warm-rgb) / 0.55);
}
.hq-brand__name {
  font-family: var(--hq-font-display);
  font-size: 1.3rem;
  font-weight: 450;
  letter-spacing: 0.005em;
}
.hq-nav ul {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hq-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.76rem;
  font-weight: 560;
  font-stretch: 115%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgb(var(--hq-light-rgb) / 0.82);
  transition: color var(--hq-dur-fast) var(--hq-ease-standard);
}
.hq-nav a:hover { color: var(--hq-light); }

/* ---------- Hero ---------- */
.hq-hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 980px);
  display: grid;
  align-items: center;
  padding: 132px 0 112px;
  overflow: hidden;
}
.hq-hero__field {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hq-atmos {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(42% 46% at 76% 34%, rgb(var(--hq-violet-rgb) / 0.20), transparent 70%),
    radial-gradient(38% 42% at 18% 86%, rgb(var(--hq-blue-rgb) / 0.12), transparent 72%),
    radial-gradient(30% 30% at 92% 88%, rgb(var(--hq-warm-rgb) / 0.06), transparent 70%);
}
.hq-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hq-field__links {
  fill: none;
  stroke: rgb(var(--hq-blue-rgb) / 0.17);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hq-field .n { fill: rgb(var(--hq-light-rgb) / 0.34); }
.hq-field .n--b { fill: rgb(var(--hq-blue-rgb) / 0.75); }
.hq-field .n--v { fill: rgb(var(--hq-violet-rgb) / 0.65); }
.hq-field .n--h { fill: rgb(var(--hq-light-rgb) / 0.7); }
.hq-field__ring {
  fill: none;
  stroke: rgb(var(--hq-blue-rgb) / 0.35);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hq-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgb(var(--hq-base-rgb) / 0.88) 0%,
    rgb(var(--hq-base-rgb) / 0.62) 38%,
    rgb(var(--hq-base-rgb) / 0) 68%),
    linear-gradient(0deg, rgb(var(--hq-base-rgb) / 1) 0%, rgb(var(--hq-base-rgb) / 0) 22%);
}
.hq-signals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hq-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: 48px;
}
.hq-lede {
  margin: 30px 0 0;
  max-width: 34ch;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.45;
  color: rgb(var(--hq-light-rgb) / 0.92);
}
.hq-sub {
  margin: 16px 0 0;
  max-width: 52ch;
  color: rgb(var(--hq-light-rgb) / 0.76);
}

/* Emblem with orbit rings — the bitmap stays at or under 178px so it is sharp on 2x screens */
.hq-emblem {
  --size: 178px;
  position: relative;
  justify-self: center;
  width: var(--size);
  height: var(--size);
  margin: 0 auto;
}
.hq-emblem img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgb(var(--hq-warm-rgb) / 0.65),
    0 0 0 8px rgb(var(--hq-base-rgb) / 0.9),
    0 0 0 9px rgb(var(--hq-warm-rgb) / 0.25),
    0 0 70px 6px rgb(var(--hq-blue-rgb) / 0.22),
    0 30px 80px rgb(0 0 0 / 0.45);
}
.hq-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hq-orbit--1 { inset: -36px; border: 1px solid rgb(var(--hq-warm-rgb) / 0.38); }
.hq-orbit--2 { inset: -84px; border: 1px solid rgb(var(--hq-blue-rgb) / 0.26); }
.hq-orbit--3 { inset: -146px; border: 1px dashed rgb(var(--hq-blue-rgb) / 0.18); }
.hq-orbit--2::after,
.hq-orbit--3::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hq-signal-blue);
  box-shadow: 0 0 12px rgb(var(--hq-blue-rgb) / 0.8);
}
.hq-orbit--2::after { top: 14%; left: 14%; transform: translate(-50%, -50%); }
.hq-orbit--3::after { top: 82%; right: 9%; width: 5px; height: 5px; background: var(--hq-signal-violet); box-shadow: 0 0 10px rgb(var(--hq-violet-rgb) / 0.8); }

/* Pause control (BD-005). Hidden until motion actually runs. */
.hq-motion-toggle {
  position: absolute;
  left: clamp(16px, 4vw, 40px);
  bottom: 28px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 14px;
  border: 1px solid rgb(var(--hq-light-rgb) / 0.26);
  border-radius: 999px;
  background: rgb(var(--hq-base-rgb) / 0.55);
  color: rgb(var(--hq-light-rgb) / 0.86);
  font: 560 0.72rem/1 var(--hq-font-text);
  font-stretch: 115%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--hq-dur-fast) var(--hq-ease-standard), color var(--hq-dur-fast) var(--hq-ease-standard);
}
.hq-motion-toggle[hidden] { display: none; }
.hq-motion-toggle:hover { border-color: var(--hq-light); color: var(--hq-light); }
.hq-motion-toggle__icon {
  position: relative;
  width: 10px;
  height: 12px;
}
.hq-motion-toggle__icon::before,
.hq-motion-toggle__icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3px;
  height: 12px;
  background: currentColor;
  border-radius: 1px;
}
.hq-motion-toggle__icon::before { left: 0; }
.hq-motion-toggle__icon::after { right: 0; }
.hq-paused .hq-motion-toggle__icon::after { display: none; }
.hq-paused .hq-motion-toggle__icon::before {
  width: 0;
  height: 0;
  background: none;
  border-radius: 0;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ---------- Motion (BD-005): one orchestrated moment, then pausable ambient drift ---------- */
@keyframes hq-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2.5%, 0) scale(1.07); }
}
@keyframes hq-spin { to { transform: rotate(360deg); } }
@keyframes hq-dot-in {
  0%, 86% { color: var(--hq-light); } /* 86% of intro + slow ≈ the 2000 ms convergence */
  100%    { color: var(--hq-coral); }
}
@media (prefers-reduced-motion: no-preference) {
  /* The headline itself is never faded or moved; only its full stop turns coral at convergence. */
  .hq-dot { animation: hq-dot-in calc(var(--hq-dur-intro) + var(--hq-dur-slow)) var(--hq-ease-enter) both; }
  .hq-motion .hq-atmos { animation: hq-drift var(--hq-ambient-period) var(--hq-ease-standard) infinite alternate; }
  .hq-motion .hq-orbit--3 { animation: hq-spin calc(var(--hq-ambient-period) * 4) linear infinite; }
  .hq-paused .hq-atmos,
  .hq-paused .hq-orbit--3 { animation-play-state: paused; }
  .hq-paused .hq-dot { animation: none; }
}

/* ---------- Sections ---------- */
.hq-section {
  position: relative;
  padding: clamp(80px, 10vw, 128px) 0;
  border-top: 1px solid rgb(var(--hq-light-rgb) / 0.08);
}

/* Teach */
.hq-teach {
  background: linear-gradient(180deg, var(--hq-base) 0%, rgb(var(--hq-light-rgb) / 0.022) 100%);
}
.hq-teach__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 56px;
  align-items: start;
}
.hq-card {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  background: rgb(var(--hq-light-rgb) / 0.035);
  border: 1px solid rgb(var(--hq-light-rgb) / 0.1);
  border-radius: 10px;
}
.hq-card::before,
.hq-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--hq-warm);
  border-style: solid;
}
.hq-card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; border-top-left-radius: 10px; }
.hq-card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; border-bottom-right-radius: 10px; }
.hq-kicker {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 560;
  font-stretch: 115%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hq-warm);
}
.hq-name {
  margin: 12px 0 0;
  font-family: var(--hq-font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem);
  font-weight: 430;
  line-height: 1.15;
}
.hq-role {
  margin: 10px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: rgb(var(--hq-light-rgb) / 0.9);
}
.hq-role::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hq-signal-blue);
  box-shadow: 0 0 10px rgb(var(--hq-blue-rgb) / 0.7);
  transform: translateY(-2px);
}
.hq-creds {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.97rem;
  color: rgb(var(--hq-light-rgb) / 0.84);
}
.hq-creds li {
  padding: 12px 0;
  border-top: 1px solid rgb(var(--hq-light-rgb) / 0.09);
}
.hq-card .hq-actions { margin-top: 28px; }

.hq-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 48px;
}
.hq-stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgb(var(--hq-warm-rgb) / 0.45);
}
.hq-stats dt {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgb(var(--hq-light-rgb) / 0.76);
}
.hq-stats dd {
  margin: 0;
  font-family: var(--hq-font-display);
  font-size: clamp(1.55rem, 1.2rem + 0.75vw, 1.95rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--hq-light);
}
.hq-block + .hq-block { margin-top: 44px; }
.hq-courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hq-courses li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid rgb(var(--hq-light-rgb) / 0.08);
  color: rgb(var(--hq-light-rgb) / 0.9);
}
.hq-num {
  flex: none;
  min-width: 2.6em;
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--hq-warm);
}
.hq-log {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hq-log li {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgb(var(--hq-light-rgb) / 0.08);
  color: rgb(var(--hq-light-rgb) / 0.88);
}
.hq-log time {
  font-size: 0.8rem;
  font-weight: 560;
  font-stretch: 112%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hq-warm);
  padding-top: 3px;
}
.hq-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border: 1px solid rgb(var(--hq-blue-rgb) / 0.55);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hq-signal-blue);
  vertical-align: 2px;
}

/* Cathy */
.hq-cathy {
  overflow: hidden;
  isolation: isolate;
}
.hq-cathy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(40% 70% at 88% 50%, rgb(var(--hq-violet-rgb) / 0.14), transparent 70%);
}
.hq-cathy__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: start;
}
.hq-cathy__body p {
  margin: 0;
  max-width: 44ch;
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgb(var(--hq-light-rgb) / 0.86);
}
.hq-cathy__body .hq-note { margin-top: 14px; font-size: 0.95rem; color: rgb(var(--hq-light-rgb) / 0.74); }
.hq-cathy__body .hq-actions { margin-top: 28px; }

/* Contact */
.hq-contact { text-align: left; }
.hq-contact__lead {
  margin: 20px 0 0;
  font-size: 1.15rem;
  color: rgb(var(--hq-light-rgb) / 0.86);
}
.hq-email {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--hq-font-display);
  font-size: clamp(1.75rem, 1rem + 3.4vw, 3.6rem);
  font-weight: 380;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgb(var(--hq-warm-rgb) / 0.6);
  overflow-wrap: anywhere;
  transition: color var(--hq-dur-fast) var(--hq-ease-standard), text-decoration-color var(--hq-dur-fast) var(--hq-ease-standard);
}
.hq-email:hover { color: var(--hq-warm); text-decoration-color: var(--hq-warm); }
.hq-contact .hq-note { max-width: 60ch; margin-top: 22px; }

/* Footer */
.hq-footer {
  padding: 40px 0 48px;
  border-top: 1px solid rgb(var(--hq-light-rgb) / 0.08);
  font-size: 0.88rem;
  color: rgb(var(--hq-light-rgb) / 0.72);
}
.hq-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}
.hq-footer p { margin: 0; max-width: 62ch; }
.hq-footer a { text-underline-offset: 0.2em; }

/* 404 */
.hq-plain {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hq-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hq-hero { padding: 120px 0 104px; min-height: auto; }
  .hq-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hq-emblem { --size: 112px; order: -1; justify-self: start; margin: 4px 0 28px 40px; }
  .hq-orbit--1 { inset: -22px; }
  .hq-orbit--2 { inset: -50px; }
  .hq-orbit--3 { inset: -86px; }
  .hq-scrim {
    background: linear-gradient(180deg,
      rgb(var(--hq-base-rgb) / 0.35) 0%,
      rgb(var(--hq-base-rgb) / 0.78) 42%,
      rgb(var(--hq-base-rgb) / 0.9) 100%);
  }
  .hq-teach__grid { grid-template-columns: minmax(0, 1fr); }
  .hq-cathy__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 560px) {
  .hq-header { padding-top: 16px; column-gap: 12px; }
  .hq-brand { gap: 10px; }
  .hq-brand img { width: 34px; height: 34px; }
  .hq-brand__name { font-size: 1.12rem; }
  .hq-nav ul { gap: 14px; }
  .hq-nav a { font-size: 0.68rem; font-stretch: 100%; letter-spacing: 0.1em; }
  .hq-eyebrow { letter-spacing: 0.17em; }
  .hq-courses { grid-template-columns: minmax(0, 1fr); }
  .hq-log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hq-actions .hq-btn { flex: 1 1 100%; }
  .hq-motion-toggle { bottom: 20px; }
}
@media (max-width: 380px) {
  .hq-hero { padding-top: 150px; } /* header wraps to two rows here */
  .hq-emblem { margin-left: 24px; }
  .hq-stats { gap: 18px; }
  .hq-eyebrow { gap: 10px; font-size: 0.7rem; letter-spacing: 0.12em; } /* keeps "Siragusa HQ · Now opening" on one line at 320 px */
  .hq-eyebrow::before { width: 18px; }
}

/* ---------- Reduced motion: the composed still frame ---------- */
@media (prefers-reduced-motion: reduce) {
  .hq-motion-toggle { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
