* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 93px;
}

body {
  background: #0d1526;
  color: #f8fafc;
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ── Nav ── */

nav {
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  padding: 0 32px;
}

.brand-marks {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: auto;
  display: block;
}

.logo-mark-bb {
  height: 72px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: none;
  color: #94a3b8;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition:
    color 140ms ease,
    background 140ms ease;
}

.btn-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-social:hover {
  color: #f8fafc;
  background: #1f2532;
}


nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 140ms ease;
}

nav a:hover {
  color: #38bdf8;
}

/* ── Shell / Sidebar ── */

.shell {
  display: flex;
  width: 100%;
}

.sidebar {
  width: 205px;
  flex-shrink: 0;
  padding-left: 32px;
  background: #0b1220;
}

.sidebar-sticky {
  position: sticky;
  top: 93px;
  padding: 40px 12px 60px 0;
  max-height: calc(100vh - 93px);
  overflow-y: auto;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: static;
  padding: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: none;
}

.sidebar a,
.sidebar-link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  color: #94a3b8;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  padding: 6px 12px;
  transition:
    color 140ms ease,
    border-color 140ms ease;
}

.sidebar a:hover,
.sidebar-link:hover {
  color: #f8fafc;
  border-left-color: #38bdf8;
}

.sidebar .group-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #38bdf8;
  margin: 20px 0 6px 12px;
}

.sidebar .group-label:first-child {
  margin-top: 0;
}

main {
  flex: 1;
  min-width: 0;
  background: #0d1526;
}

.section > div {
  padding: 0 5%;
}

/* ── Hero ── */

.hero {
  display: flex;
  align-items: flex-start;
  padding: 24px 0 40px;
}

.hero-content {
  max-width: 1320px;
  padding: 0 5%;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex-shrink: 0;
}

.profile-photo {
  width: 240px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

.eyebrow {
  color: #38bdf8;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}

.current-role {
  margin-top: 10px;
  color: #38bdf8;
  font-size: 1rem;
  font-weight: 600;
}

.hero-text h2 {
  margin-top: 14px;
  color: #94a3b8;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
}

.intro {
  margin-top: 22px;
  font-size: 1.1rem;
  color: #cbd5e1;
}

.btn-primary {
  display: inline-block;
  padding: 12px 26px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 140ms ease,
    opacity 140ms ease;
  background: #0066cc;
  color: #fff;
}

.btn-primary:hover {
  background: #0077ee;
  transform: translateY(-1px);
}

/* ── Sections ── */

.section {
  padding: 40px 0;
}

.section-heading {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.section p {
  color: #94a3b8;
  margin-bottom: 14px;
}

.subheading {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
}

.plain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plain-list li {
  color: #94a3b8;
  padding-left: 20px;
  position: relative;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
}

.philosophy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.philosophy-list li {
  color: #cbd5e1;
  font-size: 1.05rem;
  padding-left: 20px;
  border-left: 2px solid #38bdf8;
}


/* ── Cards ── */

.cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #111827;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 180ms ease;
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #f8fafc;
}

.card p {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0;
}

.project-card {
  position: relative;
}

.project-links {
  margin-top: 14px;
  font-size: 0.88rem;
  position: relative;
  z-index: 2;
}

.stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-links a {
  color: #38bdf8;
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

/* ── Contact modal ── */

#contact-modal {
  margin: auto;
  border: none;
  border-radius: 14px;
  padding: 0;
  background: #111827;
  color: #f8fafc;
  max-width: 480px;
  width: 90%;
}

#contact-modal::backdrop {
  background: rgba(2, 6, 16, 0.75);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.modal-inner {
  padding: 32px;
  position: relative;
}

.modal-inner h3 {
  margin: 0 0 20px;
  font-size: 1.3rem;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close:hover {
  color: #f8fafc;
}


/* ── Contact form ── */

.contact-form {
  margin-top: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cf-turnstile {
  min-height: 65px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.85rem;
  color: #94a3b8;
}

.form-row input,
.form-row textarea {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #38bdf8;
}

.contact-form .btn-primary {
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

.contact-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.88rem;
  margin: 0;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

/* ── Footer ── */

footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #475569;
  font-size: 0.88rem;
  display: flex;
}

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

.api-status,
.visitor-count {
  font-size: 0.8rem;
  color: #334155;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .shell {
    flex-direction: column;
  }

  .logo-mark-bb {
    height: 44px;
  }

  .nav-actions {
    gap: 0;
  }

  .sidebar {
    width: 100%;
    padding-left: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .sidebar-sticky {
    position: static;
    max-height: none;
    padding: 16px 12px 0 0;
    overflow-y: visible;
  }

  .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .sidebar .group-label {
    display: none;
  }

  .sidebar a,
  .sidebar-link {
    width: auto;
    padding: 6px 0;
    border-left: none;
  }

  .hero-content {
    flex-direction: column-reverse;
    gap: 32px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 64px 0;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }
}
