/* IR Human Factors Simulation Day — clinical minimalism */

:root {
  --blue-deep: #0f3a5c;
  --blue-mid: #1a5080;
  --red-procedural: #b4232a;
  --red-soft: #c94a50;
  --white: #ffffff;
  --grey-pale: #f4f6f9;
  --grey-border: #d4dde8;
  --text-body: #334155;
  --text-muted: #5c6b7a;
  --shadow-soft: 0 1px 2px rgba(15, 58, 92, 0.06),
    0 8px 24px rgba(15, 58, 92, 0.06);
  --radius: 6px;
  --max-width: 1120px;
  --font-heading: "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-procedural);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--blue-deep);
  color: var(--white);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--blue-deep);
}

.brand-link:hover {
  color: var(--blue-deep);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  max-width: 11rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blue-deep);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--red-procedural);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after,
.nav-desktop a.is-active::after {
  transform: scaleX(1);
}

.nav-desktop a:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 2px;
}

.btn {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--red-procedural);
  color: var(--white);
  border-color: var(--red-procedural);
}

.btn-primary:hover {
  background: #9a1e24;
  border-color: #9a1e24;
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn-secondary:hover {
  background: rgba(15, 58, 92, 0.06);
  color: var(--blue-deep);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--blue-deep);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--blue-mid);
}

/* ——— Motifs (SVG backgrounds) ——— */
.motif-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.motif-svg {
  position: absolute;
  opacity: 0.35;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--grey-pale) 100%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-logo-wrap {
  margin: 0;
  justify-self: center;
}

.hero-logo-wrap .hero-mark {
  display: block;
  width: min(360px, 92vw);
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
  }

  .hero-logo-wrap {
    justify-self: end;
    align-self: center;
  }

  .hero-logo-wrap .hero-mark {
    width: clamp(280px, 42vw, 520px);
  }
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
  color: var(--blue-deep);
  margin: 0 0 1.25rem;
  max-width: 22ch;
}

.hero-lead {
  font-size: 1.125rem;
  max-width: 38rem;
  color: var(--text-body);
  margin: 0 0 1.75rem;
}

.hero-meta {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--blue-deep);
  margin: 0 0 2rem;
  line-height: 1.5;
}

.hero-meta .sep {
  color: var(--red-procedural);
  font-weight: 400;
  margin: 0 0.35rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.headline-accent {
  color: var(--red-procedural);
}

/* ——— Sections ——— */
section {
  scroll-margin-top: 4.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-inner.narrow {
  max-width: 720px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--blue-deep);
  margin: 0 0 1.25rem;
  line-height: 1.25;
}

.bg-alt {
  background: var(--grey-pale);
}

/* ——— About grid ——— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about-text p {
  margin: 0 0 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 520px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition);
}

.pillar-card:hover {
  box-shadow: 0 2px 4px rgba(15, 58, 92, 0.08),
    0 12px 32px rgba(15, 58, 92, 0.08);
  transform: translateY(-2px);
}

.pillar-card h3 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 0.65rem 0 0.35rem;
}

.pillar-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.icon-line {
  color: var(--blue-deep);
}

.icon-line .accent {
  stroke: var(--red-procedural);
}

/* ——— Why section ——— */
.why-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.why-body p {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.pull-quote {
  position: relative;
  margin: 2rem 0 0;
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-left: 3px solid var(--red-procedural);
  background: linear-gradient(
    90deg,
    rgba(15, 58, 92, 0.04) 0%,
    transparent 100%
  );
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pull-quote p {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--blue-deep);
  margin: 0;
  max-width: 36rem;
}

/* ——— Stations ——— */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .stations-grid {
    grid-template-columns: 1fr;
  }
}

.station-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.station-card:hover {
  box-shadow: 0 2px 4px rgba(15, 58, 92, 0.08),
    0 12px 32px rgba(15, 58, 92, 0.08);
  transform: translateY(-2px);
}

.station-num {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red-procedural);
  margin-bottom: 0.5rem;
}

.station-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 0 0 0.65rem;
}

.station-desc {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.station-themes {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.station-themes li {
  margin-bottom: 0.35rem;
}

.station-themes li::marker {
  color: var(--blue-mid);
}

.station-icon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  opacity: 0.85;
}

/* ——— Timeline ——— */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  margin: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: var(--blue-deep);
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.5rem 1.75rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.09rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--red-procedural);
  box-shadow: 0 0 0 2px var(--grey-pale);
}

.timeline-time {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--blue-deep);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.timeline-body {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
}

.timeline-item:nth-child(even) .timeline-body {
  background: rgba(255, 255, 255, 0.85);
}

/* ——— Faculty ——— */
.faculty-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.leads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 700px) {
  .leads-grid {
    grid-template-columns: 1fr;
  }
}

.lead-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.lead-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--blue-deep) 0%,
    var(--blue-deep) 55%,
    var(--red-procedural) 55%,
    var(--red-procedural) 100%
  );
}

.lead-portrait {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid var(--grey-border);
  background: var(--grey-pale);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.lead-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 0 0 0.35rem;
}

.lead-role {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red-procedural);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.additional-faculty {
  border-top: 1px solid var(--grey-border);
  padding-top: 2rem;
}

.additional-faculty h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 0 0 0.75rem;
}

.additional-faculty p {
  margin: 0;
  max-width: 44rem;
  color: var(--text-muted);
}

/* ——— Venue / audience ——— */
.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .info-cards {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 0 0 0.75rem;
}

.info-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-body);
  font-size: 0.9375rem;
}

.info-card ul li {
  margin-bottom: 0.35rem;
}

.info-lead {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

/* ——— Objectives ——— */
.obj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .obj-grid {
    grid-template-columns: 1fr;
  }
}

.obj-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  transition: box-shadow var(--transition);
}

.obj-tile:hover {
  box-shadow: var(--shadow-soft);
}

.obj-tile p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.obj-icon {
  flex-shrink: 0;
  color: var(--blue-deep);
}

/* ——— Sponsors ——— */
.sponsor-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

.sponsor-placeholder {
  flex: 1 1 160px;
  min-height: 72px;
  border: 1px dashed var(--grey-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--white);
}

.sponsor-note {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 40rem;
}

/* ——— Registration ——— */
.reg-block {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.reg-block p {
  margin: 0 0 1.5rem;
}

.reg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--grey-border);
  background: var(--grey-pale);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand .logo-mark {
  width: 56px;
  height: auto;
  opacity: 0.9;
}

.footer-text strong {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--blue-deep);
  display: block;
  margin-bottom: 0.25rem;
}

.footer-text span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Mobile nav ——— */
@media (max-width: 960px) {
  .nav-desktop,
  .nav-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-mobile {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--grey-border);
    margin-top: 0.75rem;
    order: 10;
  }

  .nav-mobile.is-open {
    display: flex;
  }

  .nav-mobile a {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--blue-deep);
    text-decoration: none;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--grey-border);
  }

  .nav-mobile a:last-of-type {
    border-bottom: none;
  }

  .nav-mobile .btn-primary {
    margin-top: 0.75rem;
    text-align: center;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

@media (min-width: 961px) {
  .nav-mobile {
    display: none !important;
  }
}
