:root {
  --bg: #060a0f;
  --surface: #0c1018;
  --border: rgba(255,255,255,0.07);
  --accent: #f59e0b;
  --text: #c8d4e0;
  --muted: #4e5a66;
  --heading: #eef2f7;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(245,158,11,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 10vh 52px 8vh;
}

/* ── HEADER ───────────────────────────────── */

.header {
  margin-bottom: 88px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 48px;
}

/* Identity goes left via order trick; photo stays right per HTML order */
.header-identity {
  flex: 1;
  order: -1;
}

/* ── PHOTO ───────────────────────────────── */

.profile-placeholder {
  width: 220px;
  height: 220px;
  flex: 0 0 220px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent);
  box-shadow:
    0 0 0 6px rgba(245,158,11,0.1),
    0 16px 56px rgba(245,158,11,0.28),
    0 4px 20px rgba(245,158,11,0.15);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

.profile-svg {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.profile-placeholder.has-photo .profile-svg { display: none; }

/* ── IDENTITY ─────────────────────────────── */

.header-tag {
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0.8;
}

.name {
  font-size: clamp(3.4rem, 8vw, 5.8rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.title-line {
  font-family: var(--mono);
  font-size: 0.67rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 40px;
}

.header-rule {
  height: 1px;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    rgba(245,158,11,0.25) 35%,
    transparent 72%
  );
}

/* ── SECTIONS ─────────────────────────────── */

.section {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 52px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding-top: 3px;
  text-transform: uppercase;
}

.section-label::before {
  content: '//';
  display: block;
  letter-spacing: 0;
  opacity: 0.35;
  margin-bottom: 7px;
  font-size: 0.56rem;
}

.section-body p {
  margin-bottom: 20px;
  line-height: 1.85;
}

.section-body p:last-child { margin-bottom: 0; }

/* ── CONTACT ──────────────────────────────── */

.contact-list { list-style: none; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-key {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.09em;
  color: var(--muted);
  width: 96px;
  flex: 0 0 96px;
  text-transform: uppercase;
}

.contact-val {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.14s ease;
}

.contact-val:hover { color: var(--accent); }

.icon {
  width: 15px;
  height: 15px;
  opacity: 0.55;
  filter: invert(1) brightness(2);
  flex: 0 0 15px;
}

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

.btn {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--accent);
  padding: 9px 20px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.14s ease;
}

.btn:hover { opacity: 0.82; }

/* ── FOOTER ───────────────────────────────── */

.footer {
  padding-top: 56px;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ── RESPONSIVE ───────────────────────────── */

@media (max-width: 700px) {
  .page { padding: 7vh 24px 6vh; }

  .header { margin-bottom: 60px; }

  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }

  /* Reset order: HTML order wins — photo (first) goes top */
  .header-identity {
    order: 0;
    width: 100%;
  }

  .profile-placeholder {
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
    border-radius: 50%;
    box-shadow:
      0 0 0 5px rgba(245,158,11,0.12),
      0 14px 48px rgba(245,158,11,0.3),
      0 4px 16px rgba(245,158,11,0.18);
  }

  .lead { text-align: center; }

  .header-rule {
    background: linear-gradient(to right, transparent, var(--accent) 40%, transparent);
  }

  .section {
    grid-template-columns: 1fr;
    gap: 10px 0;
    padding: 36px 0;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .contact-key { width: auto; flex: none; }
}
