:root {
  color-scheme: dark;
  --bg: #080706;
  --bg-2: #15100c;
  --surface: rgba(20, 14, 10, 0.76);
  --surface-strong: rgba(26, 17, 12, 0.92);
  --text: #fff3e6;
  --muted: #c6b7aa;
  --line: rgba(255, 243, 230, 0.16);
  --accent: #ff711f;
  --accent-2: #ffad47;
  --cyan: #ff8b21;
  --shadow: rgba(0, 0, 0, 0.36);
  --grid: rgba(255, 243, 230, 0.045);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 113, 31, 0.13), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(255, 139, 33, 0.08), transparent 28rem),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
}

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

button {
  font: inherit;
}

#skill-universe {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 113, 31, 0.35), rgba(255, 113, 31, 0.08) 46%, transparent),
    #050403;
  box-shadow: 0 16px 44px var(--shadow);
  color: var(--accent-2);
  font-size: 17px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 18px rgba(255, 113, 31, 0.52);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 7px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(var(--accent), var(--accent-2));
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 8px;
  width: 18px;
  height: 1px;
  background: color-mix(in srgb, var(--accent-2) 76%, transparent);
}

.site-nav {
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  min-height: 84vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: end;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 124px 28px 46px;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: 76px;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 780px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

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

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #170b05;
}

.button.secondary {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.signal-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 28px 70px var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-panel div {
  padding: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
}

.signal-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.signal-panel strong {
  font-size: 18px;
}

.profile-panel {
  width: min(100%, 380px);
  align-self: center;
  justify-self: end;
}

.profile-photo {
  margin: 0;
  height: clamp(360px, 46vh, 430px);
  min-height: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 62%, var(--line));
  background: var(--surface-strong);
  overflow: hidden;
  box-shadow: inset 0 -70px 80px rgba(0, 0, 0, 0.28);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(1.02) contrast(1.04);
}

.tech-orbit-section {
  max-width: 1200px;
  min-height: 520px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
  margin: 0 auto;
  padding: 64px 28px 92px;
}

.orbit-copy {
  max-width: 440px;
  padding: 22px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  box-shadow: 0 24px 60px var(--shadow);
  backdrop-filter: blur(14px);
}

.orbit-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.wheel-readout {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-2);
  font-weight: 900;
}

.tech-wheel-shell {
  min-height: 440px;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1200px;
}

.tech-wheel-viewport {
  width: min(100%, 680px);
  height: 360px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.tech-wheel {
  position: relative;
  width: 156px;
  height: 156px;
  transform-style: preserve-3d;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.tech-wheel.is-dragging {
  cursor: grabbing;
}

.wheel-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  color: var(--text);
  box-shadow: 0 24px 58px var(--shadow);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.wheel-card img,
.skill-card img,
.skill-stage img {
  object-fit: contain;
}

.wheel-card img {
  width: 58px;
  height: 58px;
  pointer-events: none;
}

.wheel-card strong {
  font-size: 14px;
}

.wheel-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 80%, white);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%),
    var(--surface-strong);
}

.logo-fallback {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--accent-2);
  font-weight: 900;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 28px;
}

.about-band,
.career-band,
.search-band,
.work-band,
.stack-band {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 54%, transparent);
}

.section-grid,
.career-band .section-heading,
.career-shell,
.stack-band .section-heading,
.stack-band .skill-layout,
.work-band .section-heading,
.work-band .focus-grid {
  max-width: 1144px;
  margin-right: auto;
  margin-left: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.body-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.career-band {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface) 62%, transparent);
}

.career-shell {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 24px;
  align-items: start;
}

.company-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 58px var(--shadow);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.company-card:hover {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  transform: translateY(-2px);
}

.company-logo-img {
  width: min(100%, 260px);
  height: auto;
  display: block;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  background: #fff;
}

.company-card strong,
.company-card span {
  display: block;
}

.company-card span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.company-link-note {
  color: var(--accent-2) !important;
  font-size: 13px;
  font-weight: 900;
}

.career-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.career-timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 13px;
  width: 1px;
  background: linear-gradient(var(--accent), var(--line));
}

.career-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  box-shadow: 0 20px 48px var(--shadow);
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 8px;
  border: 2px solid var(--accent-2);
  background: var(--bg);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 13%, transparent);
}

.timeline-date {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}

.career-timeline h3 {
  margin: 8px 0 8px;
}

.career-timeline p {
  color: var(--muted);
  line-height: 1.65;
}

.career-timeline small {
  color: var(--cyan);
  font-weight: 900;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 36px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.925fr 0.925fr;
  gap: 16px;
}

.project-card,
.focus-grid article {
  min-height: 252px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 58px var(--shadow);
}

.project-card.featured {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 58%),
    var(--surface);
}

.project-card span,
.focus-grid span {
  color: var(--accent-2);
  font-weight: 900;
}

.project-card p,
.focus-grid p,
.search-grid p,
.skill-stage p {
  color: var(--muted);
  line-height: 1.7;
}

.skill-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 24px;
  align-items: stretch;
}

.skill-stage {
  min-height: 430px;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 50%),
    var(--surface);
  box-shadow: 0 30px 80px var(--shadow);
  overflow: hidden;
  position: relative;
}

.skill-stage::before {
  content: "";
  position: absolute;
  inset: auto -18% -26% auto;
  width: 260px;
  height: 260px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 50%;
}

.skill-stage img {
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.38));
}

.stage-skill-head {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.stage-skill-copy {
  position: relative;
  z-index: 1;
  align-self: start;
}

#active-skill-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}

.stage-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stage-proof span,
.stage-role-card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}

.stage-proof span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.stage-role-card {
  position: relative;
  z-index: 1;
  padding: 16px;
}

.stage-role-card span,
.stage-role-card strong {
  display: block;
}

.stage-role-card span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
}

.stage-role-card strong {
  margin-top: 6px;
  font-size: 22px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.skill-card {
  min-height: 152px;
  display: grid;
  gap: 12px;
  align-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.skill-card:hover,
.skill-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 82%, white);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.skill-card img {
  width: 38px;
  height: 38px;
}

.skill-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.search-band {
  max-width: none;
}

.search-band .section-heading,
.search-grid {
  max-width: 1144px;
  margin-right: auto;
  margin-left: auto;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.search-grid article {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 68%),
    var(--surface);
  box-shadow: 0 24px 58px var(--shadow);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-bottom: 110px;
}

.contact-section h2 {
  max-width: 760px;
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
    grid-template-columns: 1fr;
    padding: 14px 18px;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .tech-orbit-section,
  .section-grid,
  .skill-layout,
  .project-grid,
  .focus-grid,
  .search-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 74vh;
    padding: 70px 20px 34px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .signal-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .signal-panel div {
    padding: 12px 10px;
  }

  .signal-panel strong {
    font-size: 13px;
    line-height: 1.25;
  }

  .profile-panel {
    grid-template-columns: 1fr;
    justify-self: stretch;
    width: 100%;
  }

  .profile-photo,
  .profile-photo img {
    height: 360px;
  }

  .career-shell {
    grid-template-columns: 1fr;
  }

  .company-card {
    position: static;
  }

  .tech-orbit-section,
  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .tech-orbit-section {
    min-height: auto;
    padding-top: 58px;
  }

  .tech-wheel-shell {
    min-height: 380px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 28px;
  }

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

  .tech-wheel-viewport {
    height: 310px;
  }

  .tech-wheel {
    width: 136px;
    height: 136px;
  }

  .wheel-card {
    padding: 14px;
  }

  .wheel-card img {
    width: 46px;
    height: 46px;
  }

  .profile-photo,
  .profile-photo img {
    height: 330px;
  }

  .stage-proof {
    grid-template-columns: 1fr;
  }

  .career-timeline article {
    padding: 18px 16px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
