/* ── Reset & Variables ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #080C14;
  --bg-alt:       #0D1220;
  --bg-card:      #0F1523;
  --text:         #E8EDF8;
  --text-mid:     #9AAAC4;
  --text-muted:   #4E5E7A;
  --border:       #1A2540;
  --accent:       #3B6FD4;
  --accent-dim:   #1E3A72;
  --nav-height:   64px;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --max-w:        1100px;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-height);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.hero-title em {
  font-style: normal;
  font-weight: 300;
  font-size: 0.82em;
  color: #6B9AE8;
}

.hero-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-line {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-top: auto;
}

/* ── Section label ─────────────────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 2rem 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

/* ── About ─────────────────────────────────────────────────────── */
.about {
  padding: 0 0 8rem;
}

.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2.5rem 0;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 6rem;
}

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

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

.about-right p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
}

/* ── Portfolio ─────────────────────────────────────────────────── */
.portfolio {
  padding: 0 0 8rem;
}

.portfolio-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 2.5rem 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(59,111,212,0.35);
  transform: translateY(-2px);
}

.card-logo {
  width: 120px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-logo img {
  max-width: 110px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.card-logo img.logo-prewhite {
  filter: none;
  opacity: 0.8;
}

.card-logo-mono {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.card-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card-description {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.card-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B9AE8;
  margin-top: auto;
  transition: opacity 0.2s;
}
.card-link:hover { opacity: 0.7; }

@media (max-width: 860px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-mid);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Fade in ───────────────────────────────────────────────────── */
.fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-heading { position: static; }
}
