:root {
  --color-navy: #081427;
  --color-teal: #43727a;
  --color-white: #ffffff;
  --color-ink: #12253a;
  --color-muted: #617284;
  --color-paper: #f4f7f8;
  --radius: 16px;
  --shadow-soft: 0 10px 30px rgba(8, 20, 39, 0.08);
  --shadow-strong: 0 20px 50px rgba(8, 20, 39, 0.16);
}

* { box-sizing: border-box; }

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

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(67, 114, 122, 0.1), transparent 45%),
    radial-gradient(circle at 95% 5%, rgba(8, 20, 39, 0.08), transparent 42%),
    var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, .button:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container { width: min(1120px, 92vw); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(8, 20, 39, 0.08);
  backdrop-filter: blur(10px);
}

.header-row {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--color-navy);
}

.brand img { width: 150px; height: auto; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  color: var(--color-muted);
}

.nav-links a:hover, .nav-links a.active { color: var(--color-teal); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  padding: 12px 20px;
  transition: 180ms ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.button-primary { background: var(--color-navy); color: var(--color-white); }
.button-primary:hover { background: var(--color-teal); transform: translateY(-1px); }

.button-secondary {
  border-color: rgba(8, 20, 39, 0.2);
  color: var(--color-navy);
  background: rgba(255, 255, 255, 0.8);
}
.button-secondary:hover { border-color: var(--color-teal); color: var(--color-teal); }

.hero { padding: 84px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--color-teal);
  font-size: 12px;
  margin-bottom: 12px;
}

h1, h2, h3 {
  font-family: "Sora", "Segoe UI", sans-serif;
  margin: 0;
  color: var(--color-navy);
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3.8rem); margin-bottom: 16px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 14px; }

.lead {
  color: var(--color-muted);
  font-size: 1.08rem;
  max-width: 64ch;
}

.hero-card, .panel {
  background: var(--color-white);
  border: 1px solid rgba(8, 20, 39, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-card { padding: 26px; }

.section { padding: 56px 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(8, 20, 39, 0.1);
  background: linear-gradient(165deg, #ffffff, #f5f8f8);
  box-shadow: var(--shadow-soft);
}

.card p { color: var(--color-muted); margin-bottom: 0; }

.story-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-image {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(8, 20, 39, 0.12);
  box-shadow: var(--shadow-soft);
}

.story-image img { width: 100%; height: 100%; object-fit: cover; }

.team-grid {
  display: grid;
  gap: 24px;
}

.team-grid-founders {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-grid-solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 420px;
  margin: 24px auto 0;
}

.team-card {
  border: 1px solid rgba(8, 20, 39, 0.1);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(165deg, #d6e3e5, #edf3f4);
  margin-bottom: 14px;
  border: 1px solid rgba(8, 20, 39, 0.1);
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.05);
}

.meta {
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--color-teal);
  font-weight: 700;
}

.small { color: var(--color-muted); font-size: 0.95rem; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.logo-card {
  border: 1px solid rgba(8, 20, 39, 0.1);
  border-radius: var(--radius);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.logo-card-light { background: var(--color-white); box-shadow: var(--shadow-soft); }
.logo-card-dark  { background: var(--color-navy);  box-shadow: var(--shadow-strong); }

.logo-card img {
  max-height: 140px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer {
  margin-top: 40px;
  border-top: 1px solid rgba(8, 20, 39, 0.1);
  padding: 28px 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.pill-links a {
  border: 1px solid rgba(8, 20, 39, 0.12);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--color-teal);
}

.pill-links a:hover {
  border-color: var(--color-teal);
  background: rgba(67, 114, 122, 0.08);
}

/* Portfolio components */

.project-feature {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: start;
}

.project-meta {
  padding: 28px;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid rgba(8, 20, 39, 0.1);
  box-shadow: var(--shadow-soft);
}

.project-meta ul {
  margin-top: 14px;
  padding-left: 20px;
  color: var(--color-muted);
  font-size: 0.93rem;
  line-height: 2.1;
}

.browser-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(8, 20, 39, 0.15);
  box-shadow: var(--shadow-strong);
}

.browser-chrome {
  background: #e8eaed;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.browser-dot { width: 11px; height: 11px; border-radius: 50%; }

.browser-bar {
  flex: 1;
  background: white;
  border-radius: 5px;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  color: #888;
  font-family: "Courier New", monospace;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid rgba(0,0,0,0.08);
}

.browser-content { background: white; }
.browser-content img {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 18px;
}

.contact-item {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(8, 20, 39, 0.1);
  background: var(--color-white);
}

.contact-item .label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 4px;
}

.contact-item a { color: var(--color-navy); font-weight: 700; }
.contact-item a:hover { color: var(--color-teal); }

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .team-grid,
  .team-grid-founders,
  .story-wrap,
  .logo-grid,
  .project-feature,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    gap: 14px;
    font-size: 0.95rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .brand img { width: 130px; }
}
