/* ==========================================================
   Splash Page Media — styles
   Mobile-first. Contrast targets WCAG 2.2 AAA (7:1 for text).
   ========================================================== */

/* ===== Theme settings — change the accent here ===== */
:root {
  --accent: #00e5ff;      /* bright cyan, 13.7:1 on black */
  --bg: #000000;
  --surface: #0d0d0d;
  --text: #ffffff;        /* 21:1 on black */
  --muted: #b3b3b3;       /* 10:1 on black */
  --line: #767676;        /* borders on interactive elements, 4.5:1 */
  --line-soft: #262626;   /* decorative dividers only */
  --radius: 0.75rem;
  --max: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --speed: 150ms;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main { flex: 1; }

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 7vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 750; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
/* AAA 1.4.8: lines max ~80 characters, paragraph spacing well above line spacing */
p { margin: 0 0 1.5em; max-width: 55ch; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.15em; }

.accent { color: var(--accent); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.15rem, 2.5vw, 1.35rem); color: var(--muted); }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section + .section { border-top: 1px solid var(--line-soft); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== Focus: thick, high-contrast, always visible on keyboard use ===== */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Skip-link and in-page targets receive focus programmatically; no outline on those */
[tabindex="-1"]:focus { outline: none; }

/* ===== Skip link ===== */
.skip-link {
  position: absolute; left: 1rem; top: -100%; z-index: 100;
  padding: 0.75rem 1.25rem; min-height: 44px;
  background: var(--accent); color: var(--bg); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ===== Header ===== */
.site-header { border-bottom: 1px solid var(--line-soft); }

.header-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-block: 0.75rem;
}

.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text); text-decoration: none;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em;
}
.wordmark:hover .accent { text-decoration: underline; }

/* Menu toggle (mobile) */
.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-width: 44px; min-height: 44px; padding: 0 1rem;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: border-color var(--speed), color var(--speed);
}
.menu-toggle:hover { border-color: var(--accent); color: var(--accent); }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

/* Without JS the menu is always visible; the toggle only appears once JS runs */
.menu-toggle { display: none; }
.js .menu-toggle { display: inline-flex; }

.site-menu {
  flex-basis: 100%;
  display: flex; flex-direction: column; gap: 1rem;
  padding-block: 0.5rem 1rem;
}
.js .site-menu { display: none; }
.js .site-menu.is-open { display: flex; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav-list a {
  display: flex; align-items: center; min-height: 44px; padding: 0.25rem 0.5rem;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.1rem;
  transition: color var(--speed);
}
.nav-list a:hover { color: var(--accent); }
.nav-list a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em;
}

/* Desktop header. Uses em so 200% text zoom falls back to the mobile menu. */
@media (min-width: 60em) {
  .header-bar { flex-wrap: nowrap; }
  .js .menu-toggle { display: none; }
  .site-menu, .js .site-menu {
    display: flex; flex-direction: row; align-items: center; flex-basis: auto;
    gap: 1.5rem; padding: 0;
  }
  .nav-list { flex-direction: row; gap: 0.25rem; }
  .nav-list a { font-size: 1rem; padding-inline: 0.75rem; }
}

/* ===== Social icon links (header, footer) ===== */
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.social-icons a {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  color: var(--text); border-radius: 50%;
  transition: color var(--speed), background-color var(--speed);
}
.social-icons a:hover { color: var(--accent); background: var(--surface); }
.social-icons svg { width: 22px; height: 22px; }

/* ===== Social buttons with visible labels (Home, Contact, Careers) ===== */
.social-buttons {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.social-buttons a {
  display: flex; align-items: center; gap: 0.85rem;
  min-height: 3.5rem; padding: 0.75rem 1.25rem;
  color: var(--text); text-decoration: none; font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--speed), color var(--speed), background-color var(--speed);
}
.social-buttons a:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.social-buttons svg { width: 24px; height: 24px; flex-shrink: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.75rem 1.75rem;
  background: var(--accent); color: var(--bg);
  border: 2px solid var(--accent); border-radius: 999px;
  font-weight: 700; text-decoration: none;
  transition: background-color var(--speed), color var(--speed);
}
.btn:hover { background: var(--bg); color: var(--accent); }

/* ===== Hero ===== */
.hero { padding-block: clamp(4rem, 14vw, 9rem) clamp(2.5rem, 7vw, 5rem); }
.hero h1 { max-width: 16ch; }
.hero .btn { margin-top: 1rem; }

.page-intro { padding-block: clamp(3rem, 10vw, 6rem) clamp(1rem, 4vw, 2rem); }

/* ===== Team ===== */
/* auto-fill grid: add or remove <li> items and the layout adjusts itself */
.team {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.team img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); background: var(--surface); margin-bottom: 1rem;
}
.team li { max-width: 22rem; }
.team h3 { margin-bottom: 0.2rem; }
.team p { margin: 0; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 2rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
}
.footer-inner p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ===== Windows High Contrast / forced colors ===== */
@media (forced-colors: active) {
  .menu-icon, .menu-icon::before, .menu-icon::after { background: CanvasText; forced-color-adjust: none; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .btn, .social-buttons a, .menu-toggle { border: 2px solid ButtonText; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
