:root {
  color-scheme: dark;
  --bg: #070a0f;
  --surface: #0d121a;
  --surface-2: #111923;
  --border: #233041;
  --text: #eef4ff;
  --muted: #9aa8ba;
  --soft: #c4cfdd;
  --accent: #37d7c4;
  --accent-2: #6ca8ff;
  --danger: #ff7a90;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(55, 215, 196, 0.1), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(108, 168, 255, 0.08), transparent 24rem),
    var(--bg);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 10, 15, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.lang-switcher,
.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--soft);
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(55, 215, 196, 0.44);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(55, 215, 196, 0.08);
  font-size: 12px;
}

.nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.contact-links a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.lang-switcher {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(13, 18, 26, 0.78);
}

.lang-button {
  min-width: 38px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.lang-button.active {
  color: #06100f;
  background: var(--accent);
}

.section-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100svh - 74px);
  padding: 64px 0 46px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(42px, 6.6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--accent);
  color: #06100f;
  background: var(--accent);
}

.button.secondary {
  border-color: rgba(108, 168, 255, 0.6);
  color: var(--text);
  background: rgba(108, 168, 255, 0.11);
}

.button.ghost {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.03);
}

.profile-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 25, 35, 0.92), rgba(13, 18, 26, 0.76));
  box-shadow: var(--shadow);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-name {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.profile-role,
.company,
.timeline-item p,
.skill-grid p,
.contact-copy p,
.prose p {
  color: var(--muted);
}

.profile-role {
  margin: 5px 0 0;
}

.facts {
  display: grid;
  gap: 14px;
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.facts dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--soft);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 0 88px;
}

.signal-strip article,
.timeline-item,
.skill-grid article,
.contact-form {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(13, 18, 26, 0.72);
}

.signal-strip article {
  padding: 20px;
}

.signal-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 28px;
}

.signal-strip span {
  color: var(--muted);
}

.two-column,
.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 84px);
  padding: 86px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prose p,
.contact-copy p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 28px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  position: relative;
  padding: 22px;
}

.time {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.company {
  margin: 0 0 10px;
  font-weight: 700;
}

.timeline-item p:last-child {
  margin-bottom: 0;
  line-height: 1.65;
}

.skills-section {
  padding: 90px 0 86px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.skill-grid article {
  padding: 22px;
}

.skill-grid p {
  margin: 0;
  line-height: 1.65;
}

.contact-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  color: var(--soft);
  font-weight: 700;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 22px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.contact-form .full,
.turnstile-placeholder,
.form-status {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: #080d13;
  font: inherit;
  font-size: 15px;
}

input {
  height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 120px;
  resize: vertical;
  padding: 12px;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(55, 215, 196, 0.34);
  border-color: var(--accent);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.turnstile-placeholder {
  min-height: 1px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
}

.form-status.error {
  color: var(--danger);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.site-footer a {
  color: var(--soft);
  font-weight: 800;
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .two-column,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .signal-strip,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    padding-bottom: 58px;
  }

  .two-column,
  .skills-section,
  .contact-section {
    padding: 58px 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .section-shell {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 40px;
  }

  .hero-copy,
  .prose p,
  .contact-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    flex-direction: column;
  }
}
