:root {
  color-scheme: dark;
  --bg: #080a12;
  --bg-soft: #101525;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f3ea;
  --muted: #b9b6c8;
  --accent: #a7f3d0;
  --accent-strong: #5eead4;
  --rose: #f0abfc;
  --gold: #fde68a;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(94, 234, 212, 0.24), transparent 34rem),
    radial-gradient(circle at 80% 8%, rgba(240, 171, 252, 0.22), transparent 30rem),
    radial-gradient(circle at 45% 100%, rgba(253, 230, 138, 0.12), transparent 30rem),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 10, 18, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand,
.nav-links,
.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
}

.brand,
.nav-links a,
.nav-cta,
.button {
  color: inherit;
  text-decoration: none;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #06110f;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.nav-links {
  gap: 6px;
}

.nav-links a,
.nav-cta {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-cta:hover {
  color: var(--text);
  background: var(--panel);
  transform: translateY(-1px);
}

.nav-cta {
  color: #06110f;
  background: var(--accent);
}

.hero,
.section {
  padding: 72px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.07em;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4.4rem, 11vw, 9rem);
  line-height: 0.82;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.94;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-lede {
  max-width: 680px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #06110f;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 16px 44px rgba(94, 234, 212, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
}

.hero-card,
.project-card,
.values-panel,
.contact-section {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.hero-card::before {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  content: "";
  background: rgba(240, 171, 252, 0.22);
  filter: blur(10px);
}

.portrait {
  display: grid;
  width: 100%;
  min-height: 340px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(167, 243, 208, 0.22), rgba(240, 171, 252, 0.16)),
    radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 54%);
}

.portrait span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(5rem, 14vw, 9rem);
  color: rgba(255, 255, 255, 0.92);
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 800;
}

.hero-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.quick-stats {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.quick-stats div,
.values-list div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.quick-stats strong {
  display: block;
  margin-bottom: 4px;
}

.quick-stats span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section-copy p {
  font-size: 1.12rem;
}

.section-header {
  max-width: 720px;
  margin-bottom: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  min-height: 300px;
  padding: 26px;
  border-radius: var(--radius-md);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.project-card:hover {
  border-color: rgba(167, 243, 208, 0.44);
  background: var(--panel-strong);
  transform: translateY(-6px);
}

.project-number {
  display: inline-block;
  margin-bottom: 86px;
  color: var(--accent);
  font-weight: 900;
}

.values-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 36px;
  border-radius: var(--radius-lg);
}

.values-list {
  display: grid;
  gap: 14px;
}

.values-list p {
  margin-bottom: 0;
}

.contact-section {
  margin: 72px 0 40px;
  padding: clamp(28px, 6vw, 64px);
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-section p {
  max-width: 620px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--accent);
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 14px 20px;
  min-width: 240px;
  max-width: 320px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(16, 21, 37, 0.98), rgba(8, 10, 18, 0.96));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(167, 243, 208, 0.1);
  backdrop-filter: blur(24px);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  z-index: 100;
}

.tooltip::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(16, 21, 37, 0.98);
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 100;
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tooltip-accent::before {
  background: linear-gradient(145deg, rgba(167, 243, 208, 0.18), rgba(94, 234, 212, 0.12));
  border-color: var(--accent);
  color: var(--text);
  font-style: italic;
}

.tooltip-accent::after {
  border-top-color: rgba(167, 243, 208, 0.18);
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 28px, 720px);
  }

  .navbar {
    align-items: stretch;
    border-radius: 28px;
  }

  .nav-links {
    display: none;
  }

  .section-grid,
  .values-panel,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .section {
    padding: 46px 0;
  }

  .portrait {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .navbar {
    position: static;
    margin-bottom: 28px;
  }

  .brand span:last-child,
  .nav-cta {
    display: none;
  }

  h1 {
    font-size: clamp(3.8rem, 19vw, 5.4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .values-panel,
  .hero-card,
  .project-card,
  .contact-section {
    padding: 22px;
  }
}
