:root {
  --bg: #0b1220;
  --panel: #121a2b;
  --panel-soft: #172136;
  --text: #e5ecf5;
  --muted: #99a8bf;
  --line: #26324a;
  --accent: #66b3ff;
  --accent-strong: #8bc6ff;
  --max: 1100px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #08111e 0%, #0b1220 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}
.narrow { width: min(100% - 2rem, 860px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 17, 30, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-wrap, .footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--muted);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
}

.nav a.active,
.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

.hero, .page-header {
  padding: 5rem 0 3rem;
}

.hero-grid, .grid {
  display: grid;
  gap: 1.25rem;
}
.hero-grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
.three-up { grid-template-columns: repeat(3, 1fr); }
.two-up { grid-template-columns: repeat(2, 1fr); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

h1, h2, h3 { line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(2.1rem, 4vw, 3.6rem); margin-bottom: 1rem; }
h2 { font-size: 1.7rem; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

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

.section { padding: 1rem 0 3rem; }
.section-alt { background: rgba(255,255,255,0.02); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.button-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #06111f;
  font-weight: 700;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
}
.button:hover { text-decoration: none; filter: brightness(1.05); }
.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.clean-list {
  margin: 0;
  padding-left: 1.2rem;
}

.timeline-item { margin-bottom: 1rem; }
.compact-grid .card p { margin-bottom: 0; }
.contact-card p { margin: 0.5rem 0; }

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .hero-grid, .three-up, .two-up { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-wrap, .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    flex-wrap: wrap;
  }
  .hero, .page-header { padding-top: 3.5rem; }
}


.hero-with-banner {
  position: relative;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  opacity: 0.26;
  pointer-events: none;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid-personal {
  position: relative;
  z-index: 1;
}

.profile-card {
  text-align: center;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
  border: 4px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.profile-photo-large {
  width: 220px;
  height: 220px;
}

.about-layout {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.hobby-grid {
  grid-template-columns: repeat(3, 1fr);
}

.hobby-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(102,179,255,0.1);
  color: var(--text);
  border: 1px solid rgba(102,179,255,0.18);
  font-size: 0.95rem;
}

.image-card {
  padding: 0.75rem;
}

.content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 4px);
}

@media (max-width: 900px) {
  .about-layout, .hobby-grid { grid-template-columns: 1fr; }
  .hero-banner { height: 320px; }
}



.hobby-preview-grid {
  grid-template-columns: repeat(3, 1fr);
}

.hobby-preview {
  padding: 0.9rem;
}

.hobby-thumb {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
}

.top-gap {
  margin-top: 1.25rem;
}

.feature-rows {
  grid-template-columns: 1fr;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 0.9rem;
}

.feature-row-reverse .feature-media {
  order: 2;
}

.feature-row-reverse .feature-copy {
  order: 1;
}

.feature-media {
  min-width: 0;
}

.feature-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

.feature-copy {
  padding: 0.5rem;
}

@media (max-width: 900px) {
  .hobby-preview-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row-reverse .feature-media,
  .feature-row-reverse .feature-copy {
    order: initial;
  }
}


/* Layout fixes */
.container { width: min(100% - 2rem, 1200px); }
.narrow { width: min(100% - 2rem, 960px); }

.hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 420px);
  align-items: center;
}

.profile-card {
  max-width: 420px;
  justify-self: end;
}

.feature-rows {
  gap: 1.25rem;
}

.feature-row {
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
}

.feature-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.feature-copy p:last-child {
  margin-bottom: 0;
}

.page-header {
  padding-bottom: 2rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: none;
    justify-self: stretch;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-image {
    height: 220px;
  }
}
