
/*
  Shared site styles for T-10 Robotics.

  To change the brand look, update the CSS variables in :root. To edit a page section,
  find the matching selector below (header, hero, panel, form, carousel, etc.) and adjust it here.
*/

:root {
  /* color */
  --navy: #0E1A2B;
  --navy-2: #16283F;
  --paper: #E9EDEC;
  --paper-2: #DDE3E1;
  --ink: #14202E;
  --steel: #5C6B78;
  --steel-30: rgba(92, 107, 120, 0.35);
  --yellow: #8A6A00;
  --yellow-dim: #6F5500;
  --white: #F7F9F8;
  --grid-line-dark: rgba(255, 255, 255, 0.055);
  --grid-line-light: rgba(14, 26, 43, 0.06);

  /* type */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* layout */
  --max-w: 1120px;
  --gutter: 1.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a {
  color: var(--yellow);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

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

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ---------- header + navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.brand:hover { text-decoration: none; }

.brand-mark { height: 34px; width: auto; flex-shrink: 0; }

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 0.1em 0.4em;
  margin-left: 0.35rem;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--paper-2);
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0.1rem;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a[aria-current="page"] {
  color: var(--white);
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.5rem;
  height: 2px;
  background: var(--yellow);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  width: 40px;
  height: 36px;
  border-radius: 3px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  margin: 3px auto;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem var(--gutter);
  }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { border-left: 2px solid var(--yellow); padding-left: calc(var(--gutter) - 2px); }
}

/* ---------- hero + page banners ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-dark) 1px, transparent 1px);
  background-size: 34px 34px;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.5rem var(--gutter) 3.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero.hero-compact .hero-inner {
  grid-template-columns: 1fr;
  padding: 3rem var(--gutter) 2.5rem;
  text-align: left;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--yellow);
  margin-bottom: 0.9rem;
}

.hero h1 { color: var(--white); }

.hero-lede {
  color: var(--paper-2);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-actions { display: flex; gap: 0.9rem; margin-top: 1.6rem; flex-wrap: wrap; }

.hero-figure { justify-self: center; }
.hero-figure svg { width: 100%; height: auto; max-width: 340px; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-figure { justify-self: start; max-width: 220px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--yellow);
  color: var(--white);
}
.btn-primary:hover { background: var(--yellow-dim); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

/* ---------- content panels + grids ---------- */
.section {
  padding: 4rem 0;
}
.section-dark {
  background: var(--navy);
  color: var(--paper-2);
  background-image:
    linear-gradient(var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-dark) 1px, transparent 1px);
  background-size: 34px 34px;
}
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { margin-bottom: 2.2rem; max-width: 60ch; }
.section-head p { color: inherit; opacity: 0.85; }

.panel {
  position: relative;
  border: 1px solid var(--steel-30);
  background: var(--white);
  padding: 1.75rem;
}
.section-dark .panel {
  background: var(--navy-2);
  border-color: rgba(255,255,255,0.12);
}
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--yellow);
  pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.panel::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.panel-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--yellow);
  margin-bottom: 0.6rem;
  display: block;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.sibling-card {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}
.sibling-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--steel-30);
  padding: 6px;
}
.sibling-card .sibling-name { font-family: var(--font-display); font-weight: 600; }

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.org-node {
  text-align: center;
}
.org-node img {
  width: clamp(150px, 17vw, 220px);
  height: clamp(150px, 17vw, 220px);
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
  margin: 0 auto 0.6rem;
  background: var(--navy-2);
}
.org-node .role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--yellow);
  display: block;
  margin-bottom: 0.15rem;
}
.org-node .name { font-weight: 600; color: var(--white); }

.org-connector {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.25);
}
.org-branch {
  display: flex;
  gap: 3.5rem;
  position: relative;
  padding-top: 28px;
}
.org-branch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  height: 1px;
  background: rgba(255,255,255,0.25);
  transform: translateX(-50%);
}
.org-branch .org-node { position: relative; }
.org-branch .org-node::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.25);
}

.team-group { margin-top: 3rem; }
.team-group h3 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 0.5rem;
  margin-bottom: 1.4rem;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.8rem 1.4rem;
}
.member-card {
  text-align: center;
  max-width: 260px;
  width: 100%;
  justify-self: center;
}
.member-card img {
  width: min(100%, 240px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.15);
  margin: 0 auto 0.7rem;
}
.member-card .name { color: var(--white); font-size: 0.92rem; font-weight: 500; }

@media (max-width: 760px) {
  .org-branch { flex-direction: column; gap: 2rem; }
  .org-branch::before { display: none; }
  .org-branch .org-node::before { display: none; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-card { max-width: none; }
}

/* ---------- outreach + media cards ---------- */
.event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--steel-30);
}
.event-card:last-child { border-bottom: none; }
.event-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--steel-30);
}
.event-card:nth-child(even) .event-media { order: 2; }
@media (max-width: 760px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card:nth-child(even) .event-media { order: 0; }
}

.video-stage {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  background-image:
    linear-gradient(var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-dark) 1px, transparent 1px);
  background-size: 34px 34px;
}
.video-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.08);
  opacity: 0.7;
}
.video-gallery {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.88fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: start;
}
.video-category + .video-category {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.video-section-header {
  margin-bottom: 1.5rem;
}
.video-section-header .hero-eyebrow {
  margin-bottom: 0.45rem;
}
.video-section-header h2 {
  color: var(--white);
  margin-bottom: 0;
}
.video-card {
  position: relative;
  padding: 0.8rem;
  background: rgba(22,40,63,0.72);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 42px rgba(0,0,0,0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.video-card-secondary { margin-top: 4.5rem; }
.video-card-coming-soon { align-self: end; }
.video-card-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.15rem 0.1rem 0.85rem;
}
.video-card-header h2,
.video-card-header h3 {
  color: var(--white);
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  margin: 0;
}
.video-number {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.video-card::before,
.video-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--yellow);
  border-style: solid;
  pointer-events: none;
}
.video-card::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}
.video-card::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}
.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 24px 50px rgba(0,0,0,0.32);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}
.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  border: 1px dashed rgba(255,255,255,0.28);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.04) 8px,
    transparent 8px,
    transparent 16px
  );
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-badge svg {
  width: 52px; height: 52px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}
.video-caption {
  padding-top: 0.7rem;
}
.video-caption .name { color: var(--white); font-weight: 600; }
.video-caption .sub { font-family: var(--font-mono); font-size: 0.72rem; color: var(--steel); }

@media (max-width: 760px) {
  .video-stage::before { display: none; }
  .video-gallery { grid-template-columns: 1fr; }
  .video-card-secondary { margin-top: 0; }
  .video-card:hover { transform: none; }
}

/* ---------- contact form + location ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.map-frame {
  width: 100%;
  aspect-ratio: 16/10;
  border: 1px solid var(--steel-30);
}
.address {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 0.8rem;
}

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.field-row { display: flex; gap: 0.9rem; }
.field-row .field { flex: 1; }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--steel-30);
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--yellow); outline-offset: 0; border-color: var(--yellow); }
textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.82rem;
  color: var(--steel);
  margin-top: 0.6rem;
}
.form-note.success { color: #1E7A46; }

.roster-contact { list-style: none; margin: 0; padding: 0; }
.roster-contact li { padding: 0.9rem 0; border-bottom: 1px solid var(--steel-30); }
.roster-contact li:first-child { padding-top: 0; }
.roster-contact .role { font-family: var(--font-mono); font-size: 0.72rem; color: var(--yellow); display: block; margin-bottom: 0.2rem; }
.roster-contact .who { font-weight: 600; }

.img-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--steel);
  background: repeating-linear-gradient(
    45deg,
    rgba(92,107,120,0.08),
    rgba(92,107,120,0.08) 8px,
    transparent 8px,
    transparent 16px
  );
  border: 1px dashed var(--steel-30);
  padding: 0.5rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--steel);
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  color: var(--paper-2);
}
.social-link:hover {
  color: var(--yellow);
  text-decoration: none;
}
.social-icon { width: 1.4rem; height: 1.4rem; }
.footer-brand { font-family: var(--font-mono); font-size: 0.8rem; }

@keyframes gear-turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- image carousel ---------- */
/* The carousel uses a manifest.json file in each outreach folder, so add or remove images there to change the slideshow. */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-2);
  border: 1px solid var(--steel-30);
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms ease;
}
.carousel-track img.active {
  opacity: 1;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14, 26, 43, 0.55);
  color: var(--white);
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: rgba(14, 26, 43, 0.8); }
.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }
.carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active { background: var(--yellow); }