:root {
  --bg: #050807;
  --bg-raised: #0a110e;
  --surface: #0e1813;
  --surface-2: #132019;
  --line: rgba(61, 214, 140, 0.14);
  --line-strong: rgba(61, 214, 140, 0.28);
  --emerald: #064e3b;
  --emerald-mid: #0b6b4f;
  --kelly: #2f9e57;
  --kelly-bright: #3dd68c;
  --mint: #9ff0c2;
  --glow: rgba(61, 214, 140, 0.45);
  --text: #e8f6ee;
  --muted: #8aa396;
  --danger: #f0a8a8;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(6, 78, 59, 0.35), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(47, 158, 87, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

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

a {
  color: var(--kelly-bright);
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: "Syne", "Figtree", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kelly-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--kelly);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 7, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 22px var(--glow);
}

.brand:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(61, 214, 140, 0.08);
}

.nav-cta {
  background: linear-gradient(180deg, var(--kelly), var(--emerald-mid));
  color: #04150e !important;
  font-weight: 700 !important;
  padding: 9px 16px !important;
  box-shadow: 0 0 0 1px rgba(159, 240, 194, 0.18), 0 8px 24px rgba(6, 78, 59, 0.45);
}

.nav-cta:hover {
  filter: brightness(1.08);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 72px 0 48px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 36rem;
  color: #b7cfc2;
}

.hero-mark {
  display: grid;
  place-items: center;
  position: relative;
}

.hero-mark::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 214, 140, 0.22), transparent 68%);
  filter: blur(8px);
}

.hero-mark img {
  width: min(380px, 100%);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 80px rgba(47, 158, 87, 0.18);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #43d992, #1f8a52);
  color: #04150e;
  box-shadow: 0 10px 28px rgba(47, 158, 87, 0.28);
}

.btn-primary:hover {
  color: #04150e;
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(61, 214, 140, 0.08);
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 24, 19, 0.7);
}

.stat b {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  color: var(--kelly-bright);
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Sections */
section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head p {
  max-width: 36rem;
  margin: 0;
}

.panel {
  background: linear-gradient(180deg, rgba(19, 32, 25, 0.9), rgba(10, 17, 14, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.thumb {
  height: 180px;
  position: relative;
  isolation: isolate;
}

.thumb span {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(5, 8, 7, 0.7);
  border: 1px solid var(--line);
  color: var(--mint);
}

.thumb-reliquary {
  background:
    radial-gradient(circle at 70% 20%, rgba(61, 214, 140, 0.35), transparent 40%),
    linear-gradient(160deg, #063226, #0a0f0c 55%, #1a3b28);
}

.thumb-circuit {
  background:
    repeating-linear-gradient(135deg, rgba(61, 214, 140, 0.08) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #082018, #050807);
}

.thumb-orchard {
  background:
    radial-gradient(circle at 30% 80%, rgba(47, 158, 87, 0.4), transparent 45%),
    linear-gradient(200deg, #0b1c14, #12261b);
}

.card-body {
  padding: 20px 20px 22px;
}

.card-body h3 {
  margin-bottom: 8px;
}

.card-body p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.75rem;
  color: var(--mint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
}

/* Studio split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.split-copy p {
  max-width: 38rem;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.value {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.value h3 {
  color: var(--kelly-bright);
  font-size: 1rem;
  margin-bottom: 6px;
}

.value p {
  margin: 0;
  font-size: 0.92rem;
}

/* Platforms */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 0.9rem;
}

/* Jobs */
.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.job:last-child {
  border-bottom: 0;
}

.job h3 {
  margin: 0 0 4px;
}

.job p {
  margin: 0;
  font-size: 0.92rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--mint);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #08110d;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(61, 214, 140, 0.35);
  border-color: var(--kelly);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: 24px;
  color: var(--mint);
}

.form-success.show {
  display: block;
}

.contact-aside {
  padding: 28px;
}

.contact-aside h2 {
  margin-bottom: 12px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.contact-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.contact-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

/* Page hero */
.page-hero {
  padding: 56px 0 20px;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

footer h4 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kelly-bright);
}

footer a {
  display: block;
  color: var(--muted);
  padding: 4px 0;
}

footer a:hover {
  color: var(--text);
}

.legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 404 */
.notfound {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}

/* Responsive */
@media (max-width: 880px) {
  .hero-grid,
  .split,
  .cards,
  .contact-grid,
  .footer-grid,
  .values {
    grid-template-columns: 1fr;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    background: rgba(5, 8, 7, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .job {
    grid-template-columns: 1fr;
  }
}
