:root {
  --bg: #0a0a0f;
  --bg-elev: #11121a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --fg: #f5f6fa;
  --fg-muted: #9598a8;
  --fg-dim: #6b6e80;
  --accent: #8b7cff;
  --accent-2: #4fd1c5;
  --accent-3: #ff7eb3;
  --maxw: 1080px;
  /* pointy-top hex — matches the company honeycomb logo */
  --hex-clip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  --hex-aspect: 0.866 / 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

@supports (font-variation-settings: normal) {
  body {
    font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, sans-serif;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

/* Ambient background orbs */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.bg-orb--a {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #8b7cff 0%, transparent 65%);
  top: -180px;
  left: -120px;
}

.bg-orb--b {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #4fd1c5 0%, transparent 65%);
  top: 320px;
  right: -200px;
  opacity: 0.28;
}

/* Deep-background logo watermark — sits above the ambient orbs, below all content.
   No parent opacity here: each child element controls its own alpha so the 5th hex
   can keep its specified colors while the surrounding 4 stay watermark-faint. */
.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(78vmin, 720px);
  height: auto;
  color: #f5f6fa;
  pointer-events: none;
  z-index: 0;
}

.watermark svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.site-header,
main,
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
}

.wordmark__glyph {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  font-size: 14px;
  color: var(--fg-muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-nav a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
}

main {
  padding-top: clamp(48px, 10vw, 96px);
}

/* Sections */
.section {
  padding: 32px 0 80px;
  text-align: center;
}

.section:first-of-type {
  padding-top: 0;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
}

.section__index {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
}

.section__head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Hex grid — honeycomb-friendly layout for cards */
.hex-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}

/* Hex card: two-layer technique gives a visible gradient hex border */
.hex-card {
  width: 320px;
  aspect-ratio: var(--hex-aspect);
  clip-path: var(--hex-clip);
  background: linear-gradient(
    140deg,
    rgba(139, 124, 255, 0.55) 0%,
    rgba(79, 209, 197, 0.35) 55%,
    rgba(255, 126, 179, 0.45) 100%
  );
  padding: 1.5px;
  display: block;
  transition: transform 0.22s ease, filter 0.22s ease;
  position: relative;
}

a.hex-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.hex-card__inner {
  width: 100%;
  height: 100%;
  background: var(--bg-elev);
  clip-path: var(--hex-clip);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Project card: thumbnail fills the entire hex, title overlay at the bottom */
.hex-card--project {
  width: 360px;
}

.hex-card--project .hex-card__inner {
  padding: 0;
}

.hex-card__fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hex-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 18%;
  background: linear-gradient(
    to top,
    rgba(10, 10, 15, 0.92) 0%,
    rgba(10, 10, 15, 0.55) 35%,
    transparent 55%
  );
  gap: 4px;
}

/* Member card: avatar thumbnail + name + role stacked, all centered */
.hex-card--member {
  width: 200px;
  height: 200px;
  aspect-ratio: auto;
}

.hex-card--member .hex-card__inner {
  gap: 0;
  padding: 0;
}

.hex-thumb {
  width: 75px;
  aspect-ratio: var(--hex-aspect);
  clip-path: var(--hex-clip);
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.hex-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hex-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.hex-card__sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--fg-muted);
}

/* Member block (hex card + outboard pill links) */
.member {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.member__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.member__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.member__links a:hover {
  color: var(--fg);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 28px;
  padding-bottom: 40px;
  margin-top: 60px;
  font-size: 13px;
  color: var(--fg-dim);
}

.dot {
  opacity: 0.5;
}

@media (max-width: 560px) {
  .site-nav {
    gap: 0;
  }
  .site-nav a {
    padding: 8px 10px;
  }
  .section {
    padding-bottom: 56px;
  }
  .hex-card--project {
    width: 300px;
  }
  .hex-card--member {
    width: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
