/* Syllogy Labs: the marketing site's stylesheet.
   Palette and art direction from brand/BRAND-GUIDE.txt (midnight, cobalt, paper). The type system, spacing,
   card and label patterns follow the Shadow Judge design standard: a serif display face, a sans UI face,
   a mono eyebrow voice, 10px radius, 44px targets, status as a dot plus a word, light and dark palettes. */

@import url("fonts/fonts.css");

:root {
  color-scheme: light;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --measure: 62ch;

  --bg: #f8fafc;
  --fg: #0b192c;
  --card: #ffffff;
  --muted: #556174;
  --faint: #8d98aa;
  --border: #dce2eb;
  --sunken: #eef2f7;
  --tint: #eaf0fb;
  --primary: #3158ef;
  --primary-hover: #2745c9;
  --primary-fg: #ffffff;
  --emphasis: #3158ef;
  --ring: #3158ef;
  --pilot-bg: #def2e6;
  --pilot-fg: #24443b;
  --pilot-dot: #2f8a5a;
  --explore-bg: #edf1f6;
  --explore-fg: #4b586b;
  --explore-dot: #8d98aa;

  --stage: #0b192c;
  --stage-fg: #f3f6fb;
  --stage-muted: #b7c3d5;
  --stage-card: #122239;
  --stage-border: #2b3c56;
  --stage-accent: #aebff9;
  --stage-chip: #1d3553;
}

/* The dark palette. Light is the default; the switch in the header sets data-theme and remembers it. */
:root[data-theme="dark"] {
  color-scheme: dark;
    --bg: #0a1322;
    --fg: #edf1f8;
    --card: #111d31;
    --muted: #a7b3c7;
    --faint: #7a889e;
    --border: #233350;
    --sunken: #0d1829;
    --tint: #121f36;
    --primary: #7f9cff;
    --primary-hover: #99b0ff;
    --primary-fg: #06112a;
    --emphasis: #aebff9;
    --ring: #7f9cff;
    --pilot-bg: #15352a;
    --pilot-fg: #b8e8cb;
    --pilot-dot: #5fcf8f;
    --explore-bg: #1a2740;
    --explore-fg: #b6c2d6;
    --explore-dot: #7a889e;

    --stage: #060d1a;
    --stage-fg: #edf1f8;
    --stage-muted: #a7b3c7;
    --stage-card: #0f1b2f;
    --stage-border: #233350;
    --stage-accent: #aebff9;
    --stage-chip: #1b2c47;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--primary); color: var(--primary-fg); }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ol, ul { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 701px) { .container { padding-inline: 32px; } }

/* The mono eyebrow: section numbers, card labels, meta lines. The one place uppercase is used. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.4;
}
.eyebrow.quiet { color: var(--muted); }

/* Display type */
h1, h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--emphasis); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.lead { font-size: clamp(1.125rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--fg); }
.detail { color: var(--muted); max-width: var(--measure); }
.small { font-size: 0.9375rem; color: var(--muted); line-height: 1.55; }

/* Buttons: 44px tall, 10px radius, one filled action per screen. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none; line-height: 1;
  transition: background-color .15s, border-color .15s, color .15s;
}
.button-primary { background: var(--primary); color: var(--primary-fg); }
.button-primary:hover { background: var(--primary-hover); }
.button-secondary { background: transparent; border-color: var(--border); color: var(--fg); }
.button-secondary:hover { border-color: var(--primary); color: var(--primary); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 0.9375rem; color: var(--fg); text-decoration: none; }
.text-link::after { content: "\2192"; margin-left: 6px; transition: transform .15s; }
.text-link:hover { color: var(--primary); }
.text-link:hover::after { transform: translateX(3px); }

/* Skip link */
.skip { position: fixed; top: -100px; left: 16px; z-index: 50; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.wordmark .labs { font-family: var(--font-mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.14em; border-left: 1px solid var(--border); padding: 4px 0 4px 10px; color: var(--muted); }
nav { display: flex; align-items: center; gap: 4px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius); font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--fg); }
nav a:hover { background: var(--sunken); }
nav .nav-contact { margin-left: 8px; border: 1px solid var(--border); padding: 0 16px; }
nav .nav-contact:hover { border-color: var(--primary); color: var(--primary); background: transparent; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-switch { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); }
.theme-switch:hover { border-color: var(--primary); color: var(--primary); }
.theme-switch svg { width: 20px; height: 20px; }
.theme-switch .moon { display: none; }
:root[data-theme="dark"] .theme-switch .sun { display: none; }
:root[data-theme="dark"] .theme-switch .moon { display: block; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9375rem; font-weight: 500; }
.menu-toggle span { font-size: 1.25rem; line-height: 1; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.hero-copy > .eyebrow { margin-bottom: 20px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 16px; }
.hero .detail { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.hero-caption { margin-top: 24px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.hero-caption strong { font-weight: 500; color: var(--fg); }
.hero-visual { position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; background: #09172b; color: #f3f6fb; aspect-ratio: 4 / 5; min-width: 0; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(11, 25, 44, .08), 0 12px 28px -8px rgba(11, 25, 44, .28), 0 36px 64px -24px rgba(11, 25, 44, .35); }
:root[data-theme="dark"] .hero-visual { border-color: #2b3c56; box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -12px rgba(0, 0, 0, .7); }
.hero-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,14,29,.45), transparent 22%, transparent 70%, rgba(4,14,29,.65)); }
.visual-title { position: absolute; top: 20px; left: 22px; color: #bfcbe0; }
.visual-caption { position: absolute; left: 22px; right: 22px; bottom: 20px; font-size: 1rem; line-height: 1.45; color: #f3f6fb; }

/* The quiet band */
.thesis-band { background: var(--sunken); border-block: 1px solid var(--border); }
.thesis-inner { display: flex; align-items: baseline; gap: 12px 32px; padding-block: 22px; flex-wrap: wrap; }
.thesis-inner p { font-family: var(--font-serif); font-size: 1.25rem; letter-spacing: -0.01em; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-heading { margin-bottom: clamp(32px, 4vw, 48px); max-width: 56rem; }
.section-heading .eyebrow { margin-bottom: 16px; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading > p { color: var(--muted); max-width: var(--measure); font-size: 1.0625rem; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; gap: 0; }
.product.featured-product { border-color: var(--primary); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.product-number { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--faint); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; line-height: 1.3; background: var(--pilot-bg); color: var(--pilot-fg); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pilot-dot); flex: none; }
.status.muted { background: var(--explore-bg); color: var(--explore-fg); }
.status.muted::before { background: var(--explore-dot); }
.product-icon { width: 48px; color: var(--primary); margin-bottom: 18px; }
.product h3 { margin-bottom: 10px; }
.product > p { color: var(--muted); font-size: 1rem; }
.product-footer { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.product-footer span { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product-footer a { align-self: flex-start; }

/* The pilot: the stage band */
.pilot-section { background: var(--stage); color: var(--stage-fg); padding-block: clamp(64px, 9vw, 112px); }
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pilot-copy > .eyebrow { color: var(--stage-accent); margin-bottom: 16px; }
.pilot-copy h2 { margin-bottom: 20px; }
.pilot-copy h2 em { color: var(--stage-accent); }
.pilot-lead { font-size: clamp(1.125rem, 1.35vw, 1.3rem); line-height: 1.5; margin-bottom: 14px; }
.pilot-copy > p:not(.eyebrow):not(.pilot-lead) { color: var(--stage-muted); max-width: var(--measure); margin-top: 12px; }
.academy-label { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 12px 16px 12px 12px; border: 1px solid var(--stage-border); border-radius: var(--radius); font-size: 0.9375rem; line-height: 1.4; }
.academy-initials { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--stage-chip); color: var(--stage-accent); }
.academy-label strong { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--stage-muted); }
.pilot-board { background: var(--stage-card); border: 1px solid var(--stage-border); border-radius: var(--radius); padding: 24px 28px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--stage-border); }
.board-head .eyebrow { color: var(--stage-accent); }
.board-tag { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stage-muted); }
.review-loop { list-style: none; padding: 8px 0 0; }
.review-loop li { position: relative; display: flex; gap: 16px; padding: 18px 0; }
.review-loop li + li { border-top: 1px solid var(--stage-border); }
.step-number { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--stage-chip); color: var(--stage-accent); font-family: var(--font-mono); font-size: 0.75rem; }
.review-loop h3 { font-size: 1.0625rem; margin: 4px 0 6px; }
.review-loop p { font-size: 0.9375rem; line-height: 1.6; color: var(--stage-muted); }
.board-foot { display: flex; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--stage-border); font-size: 0.875rem; color: var(--stage-muted); }
.small-square { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--stage-accent); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principles article { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.principle-number { display: block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--primary); margin-bottom: 18px; }
.principles h3 { margin-bottom: 10px; }
.principles p { color: var(--muted); font-size: 1rem; }

/* Canada */
.canada-section { background: var(--tint); border-block: 1px solid var(--border); padding-block: clamp(64px, 9vw, 112px); }
.canada-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.canada-grid > div > .eyebrow { margin-bottom: 16px; }
.canada-grid h2 { margin-bottom: 20px; }
.canada-lead { font-size: clamp(1.125rem, 1.35vw, 1.3rem); line-height: 1.5; margin-bottom: 14px; max-width: var(--measure); }
.canada-grid > div > p:not(.eyebrow):not(.canada-lead) { color: var(--muted); max-width: var(--measure); margin-top: 12px; }
.sovereignty-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.panel-kicker { display: block; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sovereignty-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.sovereignty-index { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--tint); color: var(--primary); font-family: var(--font-mono); font-size: 0.75rem; }
.sovereignty-row h3 { font-size: 1.0625rem; margin: 4px 0 6px; }
.sovereignty-row p { font-size: 0.9375rem; color: var(--muted); }
.sovereignty-note { padding-top: 16px; font-size: 0.875rem; color: var(--muted); }

/* Connect */
.connect-section > .eyebrow { margin-bottom: 16px; }
.connect-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.connect-grid > div > p { color: var(--muted); max-width: var(--measure); }
.contact-email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-family: var(--font-serif); font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.01em; color: var(--fg); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contact-email:hover { color: var(--primary); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-note { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); min-height: 24px; }
.contact-note.is-copied { color: var(--pilot-fg); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 28px; font-size: 0.9375rem; color: var(--muted); }
.footer-inner .brand img { width: 26px; height: 26px; }
.footer-inner .wordmark { font-size: 1.25rem; }

/* Not-found page */
.notfound { max-width: 40rem; }
.notfound .eyebrow { margin-bottom: 16px; }
.notfound h1 { margin-bottom: 20px; }
.notfound .detail { margin-bottom: 28px; }

/* Screens narrower than a laptop */
@media (max-width: 1100px) {
  .pilot-grid, .canada-grid, .connect-grid { gap: 40px; }
  .pilot-board, .sovereignty-panel { padding: 20px 22px; }
}
@media (max-width: 900px) {
  .products, .principles { grid-template-columns: 1fr; }
  .pilot-grid, .canada-grid, .connect-grid { grid-template-columns: 1fr; }
  .pilot-grid, .canada-grid { align-items: start; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 48px; }
  .hero-visual { aspect-ratio: 1 / 1.05; }
  .thesis-inner { flex-direction: column; gap: 8px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  .menu-toggle { display: inline-flex; }
  nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--border); }
  nav.is-open { display: flex; }
  nav a { min-height: 48px; padding: 0 12px; font-size: 1.0625rem; }
  nav .nav-contact { margin: 8px 0 0; justify-content: center; }
}
/* A short, wide window (a phone on its side) keeps its height. */
@media (max-width: 360px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
}
@media (max-height: 500px) { .site-header { position: static; } html { scroll-padding-top: 0; } }
/* On laptop screens the hero art fits the window height and keeps its shape. */
@media (min-width: 761px) and (max-height: 860px) and (min-height: 501px) {
  .hero-visual { width: auto; max-width: 100%; height: calc(100vh - 64px - 140px); min-height: 440px; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .text-link::after { transition: none; }
}
