@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Sora:wght@400;600;700&display=swap");

:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #1f2633;
  --muted: #5b6472;
  --accent: #3d7eff;
  --accent-dark: #2a62d6;
  --accent-soft: #dce8ff;
  --accent-2: #ff7a59;
  --accent-2-dark: #e05f40;
  --accent-2-soft: #ffe3db;
  --border: #e3dfd7;
  --shadow: 0 18px 36px rgba(31, 38, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Sora", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(61, 126, 255, 0.18), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(255, 122, 89, 0.2), transparent 46%),
    radial-gradient(circle at 20% 88%, rgba(61, 126, 255, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(31, 38, 51, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

.stealth-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.stealth-link:hover {
  border-bottom-color: rgba(31, 38, 51, 0.2);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  background: rgba(247, 245, 241, 0.86);
  box-shadow: 0 10px 24px rgba(31, 38, 51, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

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

.brand-photo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 16px rgba(31, 38, 51, 0.16);
}

.brand-name {
  margin: 0;
  font-weight: 600;
}

.brand-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  gap: 14px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(31, 38, 51, 0.05);
}

.nav a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

main {
  display: grid;
  gap: 36px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  padding: 90px 0 24px;
  align-items: center;
  position: relative;
}

.hero-copy {
  position: relative;
}

.hero-title {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
}

.hero-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: -6px;
  width: 6px;
  height: calc(100% + 6px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0 0 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin: 0 0 16px;
  position: relative;
  display: inline-block;
}

h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.08em;
  width: 100%;
  height: 0.34em;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent-2-soft));
  z-index: -1;
  border-radius: 999px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 36rem;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  background-size: 140% 140%;
  background-position: 0% 50%;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(61, 126, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(31, 38, 51, 0.16);
  background-position: 100% 50%;
  color: #fff;
}

.btn.ghost {
  background: var(--accent-2-soft);
  color: var(--accent-2-dark);
  border-color: transparent;
  box-shadow: none;
}

.photo-frame {
  position: relative;
  border-radius: 22px;
  background: var(--surface);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  aspect-ratio: 1 / 1;
  width: min(390px, 100%);
  justify-self: center;
}

.photo-frame::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 24px;
  width: 80px;
  height: 22px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent-soft), var(--accent-2-soft));
  box-shadow: 0 6px 12px rgba(31, 38, 51, 0.08);
}

.photo-image {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  display: block;
  object-fit: cover;
  border: 2px solid rgba(31, 38, 51, 0.08);
}

.section {
  padding: 44px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.05;
}

.section-header h2::before {
  content: "";
  position: static;
  width: 6px;
  height: 1.25em;
  background: var(--accent-2);
  border-radius: 999px;
  align-self: center;
}

.section-subtitle {
  color: var(--muted);
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-card {
  background: var(--surface);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(31, 38, 51, 0.06);
}

.about-card h3 {
  margin-top: 0;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.pill-list li {
  background: var(--accent-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  border: 1px solid rgba(61, 126, 255, 0.18);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  width: min(100%, 320px);
  flex: 0 1 320px;
  position: relative;
  background: var(--surface);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(31, 38, 51, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(31, 38, 51, 0.12);
}

.card a {
  font-weight: 600;
  color: var(--accent-dark);
}

.card-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.card-note {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(31, 38, 51, 0.06);
  color: var(--muted);
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  position: absolute;
  right: 18px;
  bottom: 18px;
}

.card.team {
  padding-bottom: 56px;
}

.card-coming {
  width: min(100%, 320px);
  border-style: dashed;
  border-color: rgba(61, 126, 255, 0.35);
  background: linear-gradient(135deg, rgba(61, 126, 255, 0.08), rgba(255, 122, 89, 0.08));
  box-shadow: none;
  text-align: center;
}

.card-coming h3 {
  margin-top: 0;
}

.card a:hover {
  color: var(--accent-2-dark);
}

.cv-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(61, 126, 255, 0.08), rgba(255, 122, 89, 0.08));
  border: 1px solid var(--border);
}

.cv-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cv-actions .btn {
  padding: 10px 16px;
  font-size: 0.82rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cv-title {
  margin: 0;
  font-weight: 600;
}

.cv-meta {
  margin: 6px 0 0;
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 16px;
  align-content: center;
}

.contact-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  font-size: 0.98rem;
}

.contact-item span {
  color: var(--muted);
}

.contact-item a {
  color: var(--accent-dark);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-item a:hover {
  color: var(--accent-2-dark);
  background: transparent;
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.site-footer {
  padding: 30px 0 50px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .site-header .container {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 32px;
  }

  .cv-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .photo-frame {
    transform: rotate(0deg);
  }
}
