:root {
  --bg: #050505;
  --bg-soft: #090909;
  --surface: #101010;
  --surface-2: #161616;
  --surface-3: #1d1d1f;
  --text: #f5f5f5;
  --text-soft: #d4d4d8;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --border: #2a2a2e;
  --border-strong: #3f3f46;
  --accent: #f8f8f8;
  --brand: #e67894;
  --brand-deep: #7d315f;
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 320px),
    linear-gradient(110deg, rgba(230, 120, 148, 0.08), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 96px),
    var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  color-scheme: dark;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  color: #050505;
  background: #f4f4f5;
}

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

.section-band {
  position: relative;
  padding: 104px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max));
  margin: 18px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 9, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.32);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.brand-mark {
  display: inline-flex;
  width: 64px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(230, 120, 148, 0.28);
  background: linear-gradient(135deg, rgba(230, 120, 148, 0.12), rgba(255, 255, 255, 0.035));
  overflow: hidden;
}

.brand-mark img {
  width: 54px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 40px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  border: 1px solid transparent;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.07);
  outline: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  min-height: 820px;
  padding-top: 154px;
  padding-bottom: 92px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 50%, rgba(255, 255, 255, 0.075) 50% 50.16%, transparent 50.16%),
    linear-gradient(90deg, rgba(230, 120, 148, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 44%);
}

.hero::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.84fr);
  gap: 86px;
  align-items: center;
}

.eyebrow {
  position: relative;
  margin: 0 0 14px;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(230, 120, 148, 0.9);
  background: rgba(230, 120, 148, 0.18);
}

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

h1 {
  margin-bottom: 22px;
  font-size: 6.15rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-intro,
.section-copy p,
.project-content p,
.contact-copy p {
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-intro {
  max-width: 680px;
  margin-bottom: 30px;
}

.hero-copy {
  max-width: 760px;
}

.hero-actions,
.social-row,
.inline-links,
.project-topline,
.footer-inner {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: 0;
}

.btn-primary {
  background: #f5f5f5;
  color: #050505;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.13);
}

.btn-secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.09);
}

.social-row {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin-top: 34px;
}

.hero-metrics div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
}

.hero-metrics strong {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.social-row a,
.inline-links a,
.project-topline a,
.site-footer a {
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 750;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: color 180ms ease, border-color 180ms ease;
}

.social-row a:hover,
.inline-links a:hover,
.project-topline a:hover,
.site-footer a:hover,
.social-row a:focus-visible,
.inline-links a:focus-visible,
.project-topline a:focus-visible,
.site-footer a:focus-visible {
  color: #fff;
  border-color: #fff;
  outline: 0;
}

.hero-visual {
  position: relative;
  min-height: 640px;
}

.portrait-frame {
  position: absolute;
  inset: 0 0 74px 72px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.28));
}

.hero-panel {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: min(330px, 78%);
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(14, 14, 15, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.system-card {
  position: absolute;
  top: 52px;
  left: 0;
  width: 210px;
  padding: 18px;
  border: 1px solid rgba(230, 120, 148, 0.28);
  border-radius: 8px;
  background: rgba(10, 10, 11, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.system-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.system-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.system-card li {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 750;
}

.hero-panel span,
.credential-card span,
.certificate-list span,
.certificate-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-panel strong {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.05fr);
  gap: 74px;
}

.section-kicker h2 {
  max-width: 520px;
}

.section-copy {
  display: grid;
  gap: 18px;
}

.section-copy p {
  margin-bottom: 0;
}

.about-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.about-strip span {
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

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

.skill-card,
.project-card,
.credential-card,
.certificate-list,
.contact-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.014)),
    rgba(10, 10, 11, 0.9);
}

.skill-card {
  min-height: 268px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.055);
}

.skill-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.skill-card h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid rgba(230, 120, 148, 0.82);
  background: rgba(230, 120, 148, 0.18);
}

.skill-card ul,
.feature-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-card li {
  display: inline-flex;
  margin: 0 6px 8px 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.projects {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 36%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025), transparent);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  gap: 38px;
  align-items: center;
  margin-bottom: 30px;
  padding: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.018)),
    rgba(12, 12, 13, 0.94);
}

.project-card:nth-of-type(even) .project-media {
  order: 2;
}

.project-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.project-content {
  position: relative;
  padding: 34px 18px 34px 0;
}

.project-index {
  position: absolute;
  top: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.08);
  font-size: 4.3rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.project-topline {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.project-topline .eyebrow {
  margin-bottom: 0;
}

.feature-list {
  display: grid;
  gap: 11px;
  margin: 24px 0;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(230, 120, 148, 0.75);
  background: rgba(230, 120, 148, 0.14);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-list span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 44px;
}

.credentials-grid .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.credential-column {
  display: grid;
  gap: 14px;
}

.credential-card,
.certificate-list,
.contact-form {
  padding: 26px;
}

.credential-card p {
  margin-bottom: 8px;
  color: var(--text-soft);
}

.credential-card p:last-child {
  margin-bottom: 0;
}

.inline-links {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.certificate-list {
  display: grid;
  gap: 12px;
}

.certificate-list h3 {
  margin-bottom: 2px;
}

.certificate-list a,
.certificate-item {
  display: block;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-weight: 750;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.certificate-list a:hover,
.certificate-list a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  outline: 0;
}

.contact {
  padding-bottom: 96px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.028));
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  gap: 54px;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a,
.contact-links span {
  width: fit-content;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: #fff;
  border-color: #fff;
  outline: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #090909;
  color: var(--text);
  padding: 12px 13px;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: #0c0c0d;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
  outline: 0;
}

.contact-form .btn {
  width: fit-content;
  margin-top: 4px;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050505;
}

.footer-inner {
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-grid,
  .split-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 620px;
    max-width: 560px;
  }

  .portrait-frame {
    left: 0;
  }

  .system-card {
    left: 18px;
  }

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

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

  .project-card,
  .project-card:nth-of-type(even) {
    grid-template-columns: 1fr;
  }

  .project-card:nth-of-type(even) .project-media {
    order: initial;
  }

  .project-content {
    padding: 12px 0 4px;
  }

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

@media (max-width: 760px) {
  .container,
  .site-header {
    width: min(calc(100% - 28px), var(--max));
  }

  .section-band {
    padding: 82px 0;
  }

  .site-header {
    margin-top: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 74px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    background: rgba(8, 8, 8, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px;
  }

  .brand-name {
    display: none;
  }

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

  .hero-grid {
    gap: 48px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero-intro,
  .section-copy p,
  .project-content p,
  .contact-copy p {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }

  .portrait-frame {
    inset: 78px 0 68px 0;
  }

  .hero-panel {
    width: calc(100% - 28px);
  }

  .system-card {
    top: 0;
    left: 0;
    width: 100%;
  }

  .system-card ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .system-card li {
    font-size: 0.78rem;
  }

  .about-strip {
    grid-template-columns: 1fr;
  }

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

  .skill-card {
    min-height: auto;
  }

  .project-card {
    padding: 12px;
  }

  .project-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .project-index {
    top: 4px;
    right: 4px;
    font-size: 3rem;
  }

  .contact-grid {
    gap: 30px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.78rem;
  }

  .hero-visual {
    min-height: 540px;
  }

  .brand-mark {
    width: 58px;
  }

  .contact-form .btn {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
