/* Radiant Robotics — site styles */

:root {
  --gold: #E5A14C;
  --gold-soft: #F6DDB8;
  --gold-text: #8F5A14;
  --purple: #70598B;
  --purple-soft: #ECE7F3;
  --lavender: #B9A7D6;
  --night: #1E1630;
  --night-2: #2A1F3D;
  --ink: #1B1426;
  --muted: #5D566B;
  --line: #E7E2EC;
  --paper: #FBF9F6;
  --white: #FFFFFF;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27, 20, 38, 0.06), 0 8px 24px rgba(27, 20, 38, 0.06);
  --shadow-lg: 0 2px 4px rgba(27, 20, 38, 0.06), 0 20px 48px rgba(27, 20, 38, 0.12);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Keep in-page links from landing under the sticky header. */
[id] { scroll-margin-top: 88px; }

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; }
.on-dark .eyebrow { color: var(--gold); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40em; }
.on-dark .lead { color: rgba(255, 255, 255, 0.78); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(229, 161, 76, 0.35); }
.btn-primary:hover { background: #EDB063; color: var(--ink); }
.btn-secondary { background: var(--purple); color: var(--white); }
.btn-secondary:hover { background: #5F4A79; color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link::after { content: "→"; transition: transform 0.15s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 246, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
@media (max-width: 360px) { .brand img { height: 24px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-size: 0.95rem; font-weight: 600; color: var(--muted);
}
.nav a:hover { color: var(--ink); background: var(--purple-soft); }
.nav a[aria-current="page"] { color: var(--purple); }
.nav .btn { margin-left: 10px; padding: 10px 20px; font-size: 0.95rem; color: var(--ink); }
.nav .btn:hover { background: #EDB063; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; padding: 14px 20px; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.on-dark { background: var(--night); color: var(--white); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark a:not(.btn) { color: var(--gold); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 148px) 0 clamp(80px, 11vw, 136px); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 40%, rgba(112, 89, 139, 0.55), transparent 70%),
    radial-gradient(40% 60% at 95% 35%, rgba(229, 161, 76, 0.22), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-burst {
  position: absolute; z-index: 1; pointer-events: none;
  right: max(-80px, calc(50% - 720px)); top: 50%; transform: translateY(-50%);
  height: min(88%, 560px); width: auto; opacity: 0.95;
}
.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 680px; }
.hero h1 .accent { color: var(--gold); }
.hero .lead { margin-bottom: 36px; }

@media (max-width: 860px) {
  .hero-burst { opacity: 0.25; right: -120px; height: 90%; }
}

.page-hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 90% at 90% 20%, rgba(112, 89, 139, 0.5), transparent 70%);
}
.page-hero .hero-burst { height: 130%; opacity: 0.35; right: -40px; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 16em; }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card > :last-child { margin-bottom: 0; }
.card .text-link { margin-top: auto; padding-top: 8px; }
.card-feature { position: relative; overflow: hidden; }
.card-feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
}

.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-text); margin-bottom: 20px; flex-shrink: 0;
}
.icon svg { width: 26px; height: 26px; }
.icon.purple { background: var(--purple-soft); color: var(--purple); }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--purple-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2370598B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Two-column feature */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* Mission quote */
.mission {
  position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden;
  background: var(--night-2); color: var(--white);
  padding: clamp(36px, 6vw, 72px);
}
.mission::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 0% 100%, rgba(229, 161, 76, 0.22), transparent 60%),
              radial-gradient(60% 100% at 100% 0%, rgba(112, 89, 139, 0.6), transparent 65%);
}
.mission > * { position: relative; }
.mission .eyebrow { color: var(--gold); }
.mission blockquote {
  margin: 0; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.015em;
  max-width: 30em;
}
.mission blockquote::before {
  content: "“"; display: block; font-size: 4rem; line-height: 0.7; color: var(--gold); margin-bottom: 12px;
}
.mission cite { display: block; margin-top: 24px; font-style: normal; font-size: 0.95rem; color: var(--lavender); font-weight: 600; }

/* Program level tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li {
  font-size: 0.85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--purple-soft); color: var(--purple);
}

/* Visual panel used beside text */
.panel {
  position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; aspect-ratio: 5 / 4;
  background: linear-gradient(150deg, var(--night-2), var(--night));
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.panel::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.panel::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(112, 89, 139, 0.55), transparent 70%);
}
.panel > * { position: relative; z-index: 1; }
.panel .panel-art { width: 62%; }
.panel img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

/* Involvement cards */
.involve-card { text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.involve-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--lavender); color: inherit; }
.involve-card h3 { margin-bottom: 8px; }
.involve-card .text-link { color: var(--purple); }

/* CTA band */
.cta-band {
  border-radius: calc(var(--radius) + 8px); padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(120deg, var(--gold) 0%, #EDB86F 100%);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(27, 20, 38, 0.78); font-size: 1.1rem; max-width: 36em; }
.cta-band .btn-secondary { background: var(--ink); }
.cta-band .btn-secondary:hover { background: var(--night-2); }
.cta-band .btn-outline { background: transparent; border-color: rgba(27, 20, 38, 0.3); }
.cta-band .btn-outline:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--purple); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* Leadership */
.person { display: flex; gap: 16px; align-items: center; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  display: grid; place-items: center; color: var(--white); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
}
.person h3 { margin: 0 0 2px; }
.person > div { min-width: 0; }
/* Emails stay on one line; if a card is too narrow they break before the "@" (a <wbr> in the markup). */
.person a { font-size: 0.9rem; }
.people { gap: 24px; }
.person .role { color: var(--muted); font-size: 0.95rem; margin: 0 0 4px; }

/* Footer */
.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.72); padding: 72px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 32px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 24em; }
.site-footer h4 { color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-people { gap: 14px; line-height: 1.5; }
.footer-people a { overflow-wrap: anywhere; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5);
}

/* 404 */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .btn-row { justify-content: center; }

.mt-0 { margin-top: 0; }
.center { text-align: center; }
