/* ============================================================
   WAMP Systems — styles
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-alt: #0e1628;
  --panel: #111a30;
  --border: #1e2a45;
  --text: #e6ecf5;
  --muted: #93a1b8;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --radius: 14px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1080px, 92%);
  margin-inline: auto;
}

.mono { font-family: var(--font-mono); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #06232b;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.brand { text-decoration: none; }

.nav-menu { display: flex; align-items: center; gap: 32px; }

.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--text); }

.nav-cta {
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  background: var(--accent-soft);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 18px 0 22px;
}

.accent { color: var(--accent); }

.lede {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #06232b;
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(34, 211, 238, 0.35); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Decorative grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.section-sub { color: var(--muted); max-width: 560px; margin-bottom: 40px; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-icon { font-size: 1.6rem; margin-bottom: 14px; }

.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Work ---------- */

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.work-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}
.work-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.6;
}

.work-meta {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.work-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.work-item p { color: var(--muted); font-size: 0.93rem; }

.work-note { color: var(--muted); font-size: 0.92rem; }

/* ---------- About ---------- */

.about-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text .eyebrow { margin-bottom: 12px; }
.about-text h2 { margin-bottom: 20px; }

.ticks { list-style: none; margin-top: 22px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.98rem;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.about-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  font-size: 0.88rem;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.panel-row:last-child { border-bottom: none; }
.panel-row .dim { color: var(--muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.1em; align-self: center; }

.status-dot::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  margin-right: 8px;
  vertical-align: middle;
}

/* Career strip */

.career {
  grid-column: 1 / -1;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.career-head .eyebrow { margin-bottom: 6px; }

.career-intro {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 620px;
  margin-bottom: 22px;
}

.career-track {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.career-start {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

.career-line {
  flex: 1 1 60px;
  height: 1px;
  min-width: 40px;
  background: linear-gradient(90deg, var(--accent), var(--border));
}

.career-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.career-companies span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.career-companies span:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Contact ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-list { list-style: none; }

.contact-list li { margin-bottom: 14px; }

.contact-list a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  text-decoration: none;
  color: var(--text);
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-list a:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-list li:not(:has(a)) {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.contact-label {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  min-width: 64px;
}

.contact-value { font-size: 1.02rem; font-weight: 500; word-break: break-word; }

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 70px 0 40px;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 14px 0 10px;
}

.legal-hero .updated {
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-body {
  max-width: 780px;
  padding: 56px 0 90px;
}

.legal-body h2 {
  font-size: 1.25rem;
  margin: 44px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }

.legal-body p { color: var(--muted); margin-bottom: 14px; }

.legal-body ul, .legal-body ol {
  color: var(--muted);
  margin: 0 0 14px 22px;
}
.legal-body li { margin-bottom: 8px; }

.legal-body a { color: var(--accent); }

.legal-body .def {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-wrap .mono { color: var(--accent); font-weight: 700; }

.footer-wrap a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); transition: color 0.2s, border-color 0.2s; }
.footer-wrap a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 8px 4%;
  }
  .nav-menu.open { display: flex; }

  .nav-menu a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu a:last-child { border-bottom: none; }
  .nav-cta { border: none; text-align: left; padding: 14px 8px; border-radius: 0; }

  .hero { padding: 80px 0 90px; }
  .section { padding: 72px 0; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .contact-list a { transition: none; }
  .card:hover, .contact-list a:hover { transform: none; }
}
