/* PULSE Foundation v1 — Quiet Technology */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --pulse-ink: #050b14;
  --pulse-ink-raised: #0b1728;
  --pulse-blue: #2563ff;
  --pulse-blue-deep: #1746be;
  --pulse-ice: #eaf3ff;
  --pulse-canvas: #f7faff;
  --pulse-white: #ffffff;
  --pulse-text: #101a2a;
  --pulse-muted: #68768c;
  --pulse-line: rgba(12, 27, 50, .13);
  --pulse-line-dark: rgba(234, 243, 255, .16);
  --pulse-shell: min(1280px, calc(100vw - 80px));
  --pulse-radius: 2px;
  --pulse-ease: cubic-bezier(.2, .75, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--pulse-ink); }
body.pulse-site {
  margin: 0;
  background: var(--pulse-canvas);
  color: var(--pulse-text);
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.pulse-site::before { display: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.shell { width: var(--pulse-shell); margin-inline: auto; }

/* Type is deliberately quiet: display hierarchy comes from size and space, not a novelty font. */
h1, h2, h3, h4, .brand-word {
  font-family: Manrope, Inter, Arial, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -.045em !important;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 { line-height: .98 !important; }
h2 { line-height: 1.02 !important; }
h3, h4 { line-height: 1.15 !important; }
.eyebrow, .pulse-ref-index, .footer-label, .course-number, .course-meta,
.dash-top, .page-signal span, .principle-grid b, .project-archive-grid article > span {
  font-family: 'IBM Plex Mono', ui-monospace, monospace !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: .13em !important;
  line-height: 1.4 !important;
}

.button, input[type='submit'], button[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--pulse-blue);
  border-radius: var(--pulse-radius);
  background: var(--pulse-blue);
  box-shadow: none;
  color: #fff;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
  transition: background .24s var(--pulse-ease), border-color .24s var(--pulse-ease), color .24s var(--pulse-ease), transform .24s var(--pulse-ease);
}
.button::after { display: none !important; }
.button:hover, input[type='submit']:hover, button[type='submit']:hover {
  transform: translateY(-2px);
  background: var(--pulse-blue-deep);
  border-color: var(--pulse-blue-deep);
  color: #fff !important;
}
.button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(37, 99, 255, .34);
  outline-offset: 3px;
}
.button-small { min-height: 40px; padding-inline: 16px; font-size: 12px; }
.button-outline { background: transparent; border-color: currentColor; }
.button-outline:hover { background: var(--pulse-white); border-color: var(--pulse-white); color: var(--pulse-ink) !important; }
.text-link { gap: 12px; border-bottom-color: currentColor; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; }

/* Header */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: rgba(5, 11, 20, .72);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  transition: background .24s var(--pulse-ease), border-color .24s var(--pulse-ease);
}
.site-header.is-scrolled { border-color: var(--pulse-line-dark); background: rgba(5, 11, 20, .9); }
.nav-shell { height: 76px; gap: 26px; }
.brand { gap: 7px; align-items: baseline; }
.brand-word { color: var(--pulse-white); font-size: 20px !important; font-weight: 800 !important; letter-spacing: .035em !important; }
.brand-sub { color: rgba(234, 243, 255, .56); font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.primary-nav { margin-left: auto; }
.primary-nav ul { gap: 28px; }
.primary-nav a, .nav-account { color: rgba(234, 243, 255, .72); font-size: 13px; font-weight: 500; }
.primary-nav a { position: relative; }
.primary-nav a::after { content: ''; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--pulse-blue); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--pulse-ease); }
.primary-nav a:hover, .nav-account:hover { color: var(--pulse-white); }
.primary-nav a:hover::after { transform: scaleX(1); }
.nav-account { padding-left: 20px; border-left-color: var(--pulse-line-dark); }
.nav-shell > .button { min-height: 38px; padding-inline: 15px; font-size: 12px; }
.menu-toggle > span:not(.screen-reader-text) { background: var(--pulse-white); }

/* Shared rhythm and surfaces. Page-specific compositions are built in later stages. */
.section { padding: clamp(96px, 12vw, 176px) 0; }
.section-heading { margin-bottom: clamp(42px, 6vw, 78px); }
.section-heading > p:last-child, .prose p, .page-intro > div > p:not(.eyebrow), .course-hero p:not(.eyebrow) {
  color: var(--pulse-muted);
}
.content-page, .course-hero, .application-page, .pulse-page, .page-intro {
  background: var(--pulse-canvas) !important;
  color: var(--pulse-text);
}
.content-page, .course-hero, .application-page { padding-top: 160px; }
.content-page h1, .course-hero h1, .application-layout h1, .page-intro h1 { color: var(--pulse-text); }
.content-page .eyebrow, .course-hero .eyebrow, .application-page .eyebrow, .page-intro .eyebrow { color: var(--pulse-blue); }
.content-page .eyebrow span, .course-hero .eyebrow span, .application-page .eyebrow span, .page-intro .eyebrow span { background: var(--pulse-blue); }
.archive-grid, .project-archive-grid { gap: 20px; }
.archive-card, .project-archive-grid article {
  min-height: 300px;
  border: 1px solid var(--pulse-line);
  border-radius: var(--pulse-radius);
  background: var(--pulse-white);
  box-shadow: none;
  transition: transform .24s var(--pulse-ease), border-color .24s var(--pulse-ease);
}
.archive-card:hover, .project-archive-grid article:hover { transform: translateY(-4px); border-color: rgba(37, 99, 255, .45); }
.archive-card p, .project-archive-grid p, .prose p { color: var(--pulse-muted); }
.course-facts { border-color: var(--pulse-line); background: var(--pulse-white); }
.course-facts div { border-right-color: var(--pulse-line); }
.course-facts span { color: var(--pulse-muted); }
.application-form-wrap { border: 1px solid var(--pulse-line); border-radius: var(--pulse-radius); background: var(--pulse-white); box-shadow: 0 24px 70px rgba(16, 38, 72, .09); }
.pulse-form label, .pulse-form .pulse-consent, .form-help { color: var(--pulse-muted); }
.pulse-form input, .pulse-form select, .pulse-form textarea, .login-wrap #loginform input:not([type=checkbox]) { border-color: var(--pulse-line); background: var(--pulse-white); color: var(--pulse-text); border-radius: var(--pulse-radius); }
.pulse-form-notice { background: #edf3ff; color: #274674; }

/* Existing homepage key visual is intentionally untouched until stage 2. */
.pulse-ref-hero-figure::before { display: none !important; }
.pulse-ref-hero-figure img { visibility: visible !important; }

/* Footer */
.site-footer { border-top-color: var(--pulse-line-dark); background: var(--pulse-ink); padding: 88px 0 28px; }
.footer-grid { gap: 56px; }
.footer-grid p { color: rgba(234, 243, 255, .61); font-size: 15px; line-height: 1.5; }
.footer-grid a:not(.brand) { color: rgba(234, 243, 255, .63); font-size: 13px; transition: color .2s var(--pulse-ease); }
.footer-grid a:not(.brand):hover { color: var(--pulse-white); }
.footer-label { color: rgba(234, 243, 255, .43); margin-bottom: 14px; }
.footer-bottom { border-top-color: var(--pulse-line-dark); color: rgba(234, 243, 255, .48); font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 9px; letter-spacing: .11em; }

@media (max-width: 1000px) {
  :root { --pulse-shell: min(100% - 40px, 760px); }
  .nav-shell { height: 68px; }
  .primary-nav { top: 68px; right: 20px; left: 20px; border-color: var(--pulse-line-dark); background: var(--pulse-ink-raised); }
  .primary-nav ul { gap: 22px; }
  .content-page, .course-hero, .application-page { padding-top: 132px; }
}
@media (max-width: 640px) {
  :root { --pulse-shell: calc(100% - 32px); }
  body.pulse-site { font-size: 15px; }
  .section { padding: 80px 0; }
  .nav-shell { gap: 16px; }
  .brand-word { font-size: 18px !important; }
  .brand-sub { font-size: 8px; }
  .site-footer { padding-top: 64px; }
  .footer-grid { gap: 36px; }
}
