@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600&display=swap');

:root {
  color-scheme: dark;
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --color-ink: #032e30;
  --color-depth: #0d554f;
  --color-ember: #832b3a;
  --color-pulse: #009378;
  --color-mint: #32b397;
  --color-mist: #e8e8e3;
  --color-bg: #011b1c;
  --color-card: rgba(3, 46, 48, 0.7);
  --surface-header: rgba(1, 27, 28, 0.7);
  --surface-panel: rgba(1, 27, 28, 0.8);
  --surface-about: rgba(1, 27, 28, 0.75);
  --surface-footer: rgba(1, 27, 28, 0.9);
  --surface-img: rgba(0, 0, 0, 0.2);
  --border-soft: rgba(232, 232, 227, 0.08);
  --border-strong: rgba(232, 232, 227, 0.1);
  --border-image: rgba(232, 232, 227, 0.15);
  --text-hero: rgba(232, 232, 227, 0.9);
  --text-quiet: rgba(232, 232, 227, 0.75);
  --text-muted: rgba(232, 232, 227, 0.7);
  --text-base: #e8e8e3;
  --btn-ghost-border: rgba(232, 232, 227, 0.4);
  --nav-hover-bg: rgba(50, 179, 151, 0.15);
  --btn-primary-shadow: 0 10px 30px rgba(50, 179, 151, 0.45);
  --swatch-border: rgba(0, 0, 0, 0.3);
  --hero-gradient: linear-gradient(135deg, rgba(13, 85, 79, 0.8), rgba(131, 43, 58, 0.6));
  --body-gradient: radial-gradient(circle at top, rgba(50, 179, 151, 0.1), transparent 55%), var(--color-bg);
  --radius: 16px;
  --shadow-soft: 0 15px 45px rgba(0, 0, 0, 0.35);
  --project-card-bg: linear-gradient(145deg, rgba(3, 46, 48, 0.85), rgba(0, 0, 0, 0));
  --project-card-border: rgba(255, 255, 255, 0.15);
  --project-card-shadow: 0 30px 55px rgba(0, 0, 0, 0.35);
  --project-card-shadow-hover: 0 40px 60px rgba(0, 0, 0, 0.45);
  --project-glow-primary: rgba(50, 179, 151, 0.35);
  --project-glow-secondary: rgba(131, 43, 58, 0.35);
  --project-mock-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(50, 179, 151, 0.25));
  --project-mock-border: rgba(255, 255, 255, 0.12);
  --project-shelf-base-bg: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15));
  --project-shelf-base-border: rgba(255, 255, 255, 0.08);
  --team-card-bg: linear-gradient(135deg, rgba(1, 27, 28, 0.8), rgba(3, 46, 48, 0.6));
  --team-card-border: rgba(232, 232, 227, 0.1);
  --team-card-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
  --team-avatar-bg: radial-gradient(circle at 30% 20%, rgba(50, 179, 151, 0.4), transparent 55%), rgba(0, 0, 0, 0.4);
  --team-avatar-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

:root[data-theme='light'] {
  color-scheme: light;
  --color-bg: #f7f6f1;
  --color-card: rgba(255, 255, 255, 0.9);
  --color-mist: #062927;
  --surface-header: rgba(255, 255, 255, 0.92);
  --surface-panel: rgba(255, 255, 255, 0.85);
  --surface-about: rgba(255, 255, 255, 0.95);
  --surface-footer: rgba(255, 255, 255, 0.95);
  --surface-img: rgba(255, 255, 255, 0.6);
  --border-soft: rgba(12, 66, 61, 0.14);
  --border-strong: rgba(12, 66, 61, 0.2);
  --border-image: rgba(12, 66, 61, 0.24);
  --text-hero: rgba(3, 46, 48, 0.85);
  --text-quiet: rgba(6, 41, 37, 0.7);
  --text-muted: rgba(6, 41, 37, 0.65);
  --text-base: #062927;
  --btn-ghost-border: rgba(3, 46, 48, 0.35);
  --nav-hover-bg: rgba(3, 46, 48, 0.1);
  --btn-primary-shadow: 0 10px 30px rgba(3, 46, 48, 0.2);
  --swatch-border: rgba(0, 0, 0, 0.08);
  --hero-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(211, 239, 231, 0.9));
  --body-gradient: radial-gradient(circle at top, rgba(3, 46, 48, 0.08), transparent 55%), var(--color-bg);
  --shadow-soft: 0 15px 35px rgba(0, 0, 0, 0.12);
  --project-card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(211, 239, 231, 0.9));
  --project-card-border: rgba(3, 46, 48, 0.12);
  --project-card-shadow: 0 20px 40px rgba(3, 46, 48, 0.15);
  --project-card-shadow-hover: 0 26px 55px rgba(3, 46, 48, 0.2);
  --project-glow-primary: rgba(0, 147, 120, 0.25);
  --project-glow-secondary: rgba(131, 43, 58, 0.2);
  --project-mock-bg: linear-gradient(135deg, rgba(6, 41, 37, 0.08), rgba(0, 147, 120, 0.25));
  --project-mock-border: rgba(6, 41, 37, 0.12);
  --project-shelf-base-bg: linear-gradient(90deg, rgba(3, 46, 48, 0.18), rgba(3, 46, 48, 0.08));
  --project-shelf-base-border: rgba(3, 46, 48, 0.12);
  --team-card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(211, 239, 231, 0.85));
  --team-card-border: rgba(3, 46, 48, 0.12);
  --team-card-shadow: 0 18px 28px rgba(3, 46, 48, 0.15);
  --team-avatar-bg: radial-gradient(circle at 30% 20%, rgba(0, 147, 120, 0.35), rgba(255, 255, 255, 0.9));
  --team-avatar-shadow: 0 12px 24px rgba(3, 46, 48, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--body-gradient);
  color: var(--text-base);
  min-height: 100vh;
}

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

a:hover,
a:focus-visible {
  color: var(--color-mint);
}

.site-grid {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  padding: 2rem clamp(1rem, 4vw, 4rem) 3rem;
  gap: 1.5rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  background: var(--surface-header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-tagline {
  display: block;
  font-size: 0.8rem;
  color: var(--color-mint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--nav-hover-bg);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 160ms ease;
  min-width: 56px;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-mint);
  outline-offset: 3px;
}

.theme-toggle-track {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-panel);
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  transition: border-color 180ms ease, background 180ms ease;
}

.theme-toggle:hover .theme-toggle-track {
  border-color: var(--color-mint);
}

.theme-toggle-icon {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 160ms ease, opacity 160ms ease;
  opacity: 0.65;
}

.theme-toggle-knob {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-mint);
  transform: translate(0, -50%);
  transition: transform 220ms ease;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.theme-toggle.is-light .theme-toggle-knob {
  transform: translate(26px, -50%);
}

.theme-toggle.is-light .theme-toggle-icon--sun,
.theme-toggle:not(.is-light) .theme-toggle-icon--moon {
  color: var(--color-mint);
  opacity: 1;
}

.site-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(340px, 2fr);
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--hero-gradient);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-copy {
  max-width: 420px;
}


.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: -30% -10%;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  background-image:
    radial-gradient(ellipse 2px 10px at 20% 10%, rgba(50, 179, 151, 0.65), transparent 55%),
    radial-gradient(ellipse 2px 12px at 60% 0%, rgba(131, 43, 58, 0.55), transparent 55%);
  background-size: 120px 200px, 160px 240px;
  background-repeat: repeat;
  opacity: 0.55;
  transform: translate3d(0, 0, 0) rotate(-8deg);
  animation: neonDrizzle 10s linear infinite;
  filter: drop-shadow(0 0 6px rgba(50, 179, 151, 0.35)) drop-shadow(0 0 10px rgba(131, 43, 58, 0.25));
}

.hero::after {
  background: radial-gradient(circle at 20% -10%, rgba(50, 179, 151, 0.25), transparent 45%),
    radial-gradient(circle at 80% 120%, rgba(131, 43, 58, 0.3), transparent 40%);
  opacity: 0.9;
}

.hero>* {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-top: 0.4rem;
  font-size: clamp(2.8rem, 5vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--text-quiet);
  opacity: 0.8;
}

.hero-subtitle {
  max-width: 45ch;
  color: var(--text-hero);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.project-showcase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.project-shelf {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.project-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 220px;
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--project-card-border);
  background: var(--project-card-bg);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--project-card-shadow);
  overflow: hidden;
  backdrop-filter: blur(6px);
  transform-origin: center top;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--project-card-shadow-hover);
  border-color: rgba(50, 179, 151, 0.45);
}

.project-card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, var(--project-glow-primary), transparent 55%),
    radial-gradient(circle at 80% 0%, var(--project-glow-secondary), transparent 45%);
  opacity: 0.7;
  z-index: 0;
}

.project-card * {
  position: relative;
  z-index: 1;
}

.project-label {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.6rem;
  color: var(--text-quiet);
}

.project-card strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.project-tagline {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.project-url {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-mint);
}

.project-mock {
  display: block;
  margin-top: 0.8rem;
  width: 100%;
  height: 110px;
  border-radius: 12px;
  background: var(--project-mock-bg);
  border: 1px solid var(--project-mock-border);
  overflow: hidden;
}

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

.project-card:nth-child(odd) {
  transform: translateY(-4px) rotate(-1.5deg);
}

.project-card:nth-child(even) {
  transform: translateY(6px) rotate(1deg);
}

.project-shelf-base {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: var(--project-shelf-base-bg);
  border: 1px solid var(--project-shelf-base-border);
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.08);
}

.hero-title {
  margin-bottom: 0.75rem;
}

@keyframes neonDrizzle {
  0% {
    background-position: 0px -80px, 60px -150px;
  }

  100% {
    background-position: -60px 190px, 5px 210px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn-primary {
  background: var(--color-mint);
  color: var(--color-ink);
  box-shadow: var(--btn-primary-shadow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--color-ink);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--btn-ghost-border);
  color: var(--text-base);
}

.grid-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.grid-panel article,
.updates article,
.palette article,
.about article {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--color-card);
}

.updates {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-panel);
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--text-quiet);
}

.palette {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.palette-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.swatch {
  display: inline-block;
  width: 100%;
  height: 90px;
  border-radius: 12px;
  background: var(--swatch-color, var(--color-mint));
  border: 1px solid var(--swatch-border);
}

.swatch-name {
  margin: 0.6rem 0 0;
  font-weight: 600;
}

.swatch-value {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-about);
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.team-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--team-card-border);
  background: var(--team-card-bg);
  box-shadow: var(--team-card-shadow);
}

.team-avatar {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-image);
  background: var(--team-avatar-bg);
  box-shadow: var(--team-avatar-shadow);
}

.team-avatar img,
.team-avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-avatar-fallback {
  background: var(--team-avatar-bg);
}

.team-details h2 {
  margin: 0;
}

.team-details p {
  margin-top: 0.35rem;
}

.team-details .role {
  margin-top: 0.25rem;
}

.role {
  color: var(--color-mint);
  font-weight: 600;
  margin: 0.2rem 0 0.6rem;
}

.principles {
  list-style: decimal;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--surface-footer);
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-contact {
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-mint);
  text-decoration: underline;
}

.footer-contact:hover,
.footer-contact:focus-visible {
  color: var(--color-mist);
}

.palette-mini {
  display: flex;
  gap: 0.4rem;
}

.palette-mini .swatch {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  .team-card {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding: 1.5rem;
  }

  .team-card {
    gap: 0.9rem;
  }

  .team-avatar {
    width: 80px;
    height: 80px;
  }
}
