
:root {
  --bg: #08090c;
  --bg-soft: #101116;
  --panel: rgba(19, 20, 26, 0.88);
  --panel-strong: #15161c;
  --line: rgba(255,255,255,.09);
  --text: #f7f7f8;
  --muted: #a8a9b3;
  --red: #e93422;
  --red-bright: #ff5542;
  --red-dark: #811d17;
  --amber: #ff9d48;
  --green: #49d17c;
  --yellow: #e6bd4d;
  --blue: #68a8ff;
  --radius: 22px;
  --shadow: 0 20px 70px rgba(0,0,0,.35);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(233,52,34,.16), transparent 27rem),
    radial-gradient(circle at 8% 68%, rgba(143,33,24,.10), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    radial-gradient(circle at 10px 10px, rgba(255,255,255,.16) 1px, transparent 1.4px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  right: -220px;
  top: 120px;
  border: 1px solid rgba(255, 85, 66, .11);
  border-radius: 48% 52% 61% 39% / 43% 46% 54% 57%;
  transform: rotate(28deg);
  box-shadow: inset 0 0 80px rgba(233,52,34,.04);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: min(calc(100% - 34px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}
.site-header.scrolled {
  background: rgba(8, 9, 12, .82);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  font-weight: 950;
  background:
    linear-gradient(145deg, var(--red-bright), var(--red-dark));
  box-shadow: 0 0 30px rgba(233,52,34,.22);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 16px;
  background: rgba(255,255,255,.16);
  transform: rotate(-30deg) translateY(-13px);
}
.brand small {
  display: block;
  color: var(--muted);
  font-weight: 650;
  font-size: .72rem;
  letter-spacing: .04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: #c9cad1;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .94rem;
  font-weight: 700;
  transition: .2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.055);
}
.nav-links a.active {
  box-shadow: inset 0 -2px 0 var(--red);
}
.nav-cta {
  margin-left: 5px;
  border: 1px solid rgba(255,85,66,.26);
  background: rgba(233,52,34,.08) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: #fff;
  background: var(--panel);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.25rem;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 74px 0 86px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 70px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid rgba(255,85,66,.22);
  background: rgba(233,52,34,.07);
  color: #ffb0a6;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--red-bright);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,85,66,.85);
}
.hero h1, .page-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: .88;
  letter-spacing: -.07em;
}
.hero h1 span, .page-hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.42);
}
.hero .headline {
  max-width: 780px;
  font-size: clamp(1.12rem, 2vw, 1.52rem);
  font-weight: 800;
  color: #efeff2;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.hero .lede, .page-hero .lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.03rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  color: #fff;
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.075);
}
.btn.primary {
  background: linear-gradient(135deg, var(--red-bright), #b6251b);
  border-color: transparent;
  box-shadow: 0 12px 35px rgba(233,52,34,.22);
}
.btn.small { min-height: 38px; padding: 0 12px; font-size: .88rem; }
.btn.ghost-red {
  color: #ffb4aa;
  border-color: rgba(233,52,34,.22);
  background: rgba(233,52,34,.055);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
}
.hero-orbit {
  position: absolute;
  width: min(510px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  animation: spin 26s linear infinite;
}
.hero-orbit::before, .hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--red-bright);
}
.hero-orbit::before {
  width: 9px; height: 9px; top: 14%; left: 12%;
  box-shadow: 0 0 18px rgba(255,85,66,.8);
}
.hero-orbit::after {
  width: 5px; height: 5px; right: 9%; bottom: 22%;
  box-shadow: 0 0 15px rgba(255,85,66,.7);
}
@keyframes spin { to { transform: rotate(360deg); } }

.profile-card {
  width: min(390px, 88%);
  position: relative;
  padding: 18px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transform: rotate(2deg);
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,52,34,.26), transparent 63%);
  filter: blur(10px);
}
.profile-card img {
  border-radius: 23px;
  aspect-ratio: 1;
  object-fit: cover;
}
.profile-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 8px 4px;
}
.profile-caption strong { font-size: 1.05rem; }
.profile-caption span { color: var(--muted); font-size: .84rem; }

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: -10px;
  padding-bottom: 86px;
}
.stat {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.028);
  border-radius: 18px;
  padding: 20px;
}
.stat strong {
  font-size: 1.65rem;
  letter-spacing: -.04em;
}
.stat span {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: .88rem;
}

.section { padding: 92px 0; }
.section.compact { padding: 64px 0; }
.section-kicker {
  color: var(--red-bright);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .74rem;
}
.section-title {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.055em;
  margin: 9px 0 14px;
}
.section-intro {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 35px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.037), rgba(255,255,255,.018)),
    var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
}
.card.hover {
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.card.hover:hover {
  transform: translateY(-5px);
  border-color: rgba(255,85,66,.25);
  background:
    linear-gradient(180deg, rgba(233,52,34,.055), rgba(255,255,255,.018)),
    var(--panel);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
}
.icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(233,52,34,.22), rgba(233,52,34,.05));
  border: 1px solid rgba(255,85,66,.19);
  color: #fff;
  font-weight: 950;
  font-size: .92rem;
  letter-spacing: -.03em;
  overflow: hidden;
}
.icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0d0e12;
}
.card h3 { margin: 0; font-size: 1.2rem; letter-spacing: -.025em; }
.meta { color: var(--muted); font-size: .87rem; margin-top: 2px; }
.card p { color: #b7b8c1; margin: 12px 0 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c4c5cc;
  background: rgba(255,255,255,.025);
  font-size: .75rem;
  font-weight: 750;
}
.tag.red { border-color: rgba(233,52,34,.22); color: #ffada3; background: rgba(233,52,34,.06); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.status.active { color: var(--green); }
.status.semi { color: var(--yellow); }
.status.dev { color: var(--blue); }
.status.closed { color: #777b87; }
.status.past { color: #bb8bff; }

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.page-hero {
  padding: 86px 0 54px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(3.4rem, 9vw, 7rem);
  margin-top: 14px;
  max-width: 900px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 25px;
  bottom: 25px;
  width: 1px;
  background: linear-gradient(var(--red), rgba(255,255,255,.06));
}
.timeline-item {
  position: relative;
  padding-left: 54px;
}
.timeline-dot {
  position: absolute;
  left: 10px;
  top: 28px;
  width: 17px;
  height: 17px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 18px rgba(233,52,34,.5);
}
.timeline-card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 20px;
}
.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.timeline-role {
  color: var(--red-bright);
  font-weight: 850;
  margin-top: 3px;
}
.timeline-date {
  white-space: nowrap;
  color: var(--muted);
  font-size: .86rem;
}
.timeline-card ul {
  margin: 15px 0 0;
  padding-left: 18px;
  color: #b9bac3;
}

.server-list { display: grid; gap: 18px; }
.server-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 25px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.server-visual {
  min-height: 220px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 50% 35%, rgba(233,52,34,.23), transparent 52%),
    #111217;
  border-right: 1px solid var(--line);
}
.server-visual .icon {
  width: 92px; height: 92px;
  flex-basis: 92px;
  border-radius: 24px;
  font-size: 1.15rem;
}
.server-body { padding: 26px 28px 26px 0; }
.server-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.server-top h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.04em; }
.server-role { color: var(--red-bright); font-weight: 850; margin-top: 3px; }
.server-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}
.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.24);
  color: #dddde2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .79rem;
  cursor: pointer;
}
.copy-pill:hover { border-color: rgba(255,85,66,.34); }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.fact {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.fact strong { display:block; font-size: .93rem; }
.fact span { color: var(--muted); font-size: .74rem; }

.skill-group h3 { margin-top: 0; }
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: 8px 10px;
  border-radius: 10px;
  color: #d0d1d8;
  font-size: .84rem;
  font-weight: 720;
}
.skill.primary { border-color: rgba(233,52,34,.2); background: rgba(233,52,34,.055); }

.callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 31px;
  border-radius: 24px;
  border: 1px solid rgba(255,85,66,.18);
  background:
    linear-gradient(125deg, rgba(233,52,34,.12), transparent 47%),
    var(--panel);
}
.callout h2 { margin: 0; font-size: 1.8rem; letter-spacing: -.04em; }
.callout p { margin: 7px 0 0; color: var(--muted); }

.contact-stack {
  display: grid;
  gap: 12px;
  max-width: 760px;
}
.contact-row {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.contact-row strong { display: block; }
.contact-row span { color: var(--muted); font-size: .88rem; }

.note {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--red);
  color: var(--muted);
  background: rgba(233,52,34,.045);
  border-radius: 0 12px 12px 0;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 30px 0 42px;
  color: #8e9099;
  font-size: .86rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-row a:hover { color: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  padding: 12px 15px;
  border-radius: 12px;
  background: #f3f3f5;
  color: #121318;
  font-weight: 800;
  box-shadow: var(--shadow);
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { transform: none; opacity: 1; }

@media (max-width: 980px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 17px;
    right: 17px;
    padding: 10px;
    border: 1px solid var(--line);
    background: rgba(12,13,17,.96);
    backdrop-filter: blur(18px);
    border-radius: 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-height: 430px; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .server-card { grid-template-columns: 145px 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .hero { padding-top: 42px; }
  .hero h1, .page-hero h1 { font-size: clamp(3rem, 17vw, 5.3rem); }
  .hero-visual { min-height: 360px; }
  .profile-card { width: min(300px, 86%); }
  .quick-stats, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .server-card { grid-template-columns: 1fr; }
  .server-visual { min-height: 145px; border-right: 0; border-bottom: 1px solid var(--line); }
  .server-body { padding: 23px; }
  .facts { grid-template-columns: 1fr; }
  .server-top, .timeline-top, .contact-row, .callout, .footer-row {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }
  .timeline-date { white-space: normal; }
}
