:root {
  --bg: #0d0d0c;
  --surface: #171715;
  --surface-2: #20201d;
  --text: #f8f7f2;
  --muted: #b8b5aa;
  --line: rgba(248, 247, 242, 0.14);
  --orange: #ff6b2b;
  --cyan: #2fd6c6;
  --lime: #c9f24b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-height: 100vh;
  overflow-x: clip;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(18px, 6vw, 78px);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 12, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 107, 43, 0.55);
  border-radius: var(--radius);
  background: var(--orange);
  color: #11110f;
  box-shadow: 0 0 28px rgba(255, 107, 43, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.site-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 9px 13px;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.header-cta,
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-cta {
  padding: 0 16px;
  background: var(--text);
  color: #11110f;
  font-size: 0.9rem;
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.btn svg,
.header-cta svg,
.menu-toggle svg,
.process-grid svg,
.contact-links svg,
.site-footer svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

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

.hero {
  display: grid;
  min-height: min(820px, calc(100svh - 26px));
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding-top: calc(var(--header-height) + 42px);
  padding-bottom: 46px;
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 0.98;
  overflow-wrap: break-word;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.25rem, 7.4vw, 6.4rem);
  font-weight: 900;
}

.name-line {
  display: block;
}

h2 {
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 900;
}

h3 {
  color: var(--text);
  font-size: 1.22rem;
  font-weight: 850;
}

.role-line {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--lime);
  font-size: clamp(1.1rem, 2.3vw, 1.65rem);
  font-weight: 800;
}

.cursor {
  width: 3px;
  height: 1.4em;
  background: var(--lime);
  animation: blink 900ms steps(2, start) infinite;
}

.hero-lede,
.about-copy p,
.section-heading p + h2 + p,
.contact-card p,
.project-card p,
.process-grid p,
.skill-panel p {
  color: var(--muted);
}

.hero-lede {
  max-width: 640px;
  min-width: 0;
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}

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

.btn {
  min-width: 154px;
  padding: 0 18px;
}

.btn-primary {
  background: var(--orange);
  color: #11110f;
  box-shadow: 0 16px 38px rgba(255, 107, 43, 0.22);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-visual {
  position: relative;
}

.portrait-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.portrait-card::before {
  position: absolute;
  inset: 12px;
  z-index: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  pointer-events: none;
}

.portrait-card img {
  width: 100%;
  height: clamp(420px, 58vw, 610px);
  object-fit: cover;
  object-position: 52% 24%;
  filter: saturate(1.04) contrast(1.02);
}

.status-chip {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(13, 13, 12, 0.78);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  max-width: calc(100% - 32px);
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.status-chip span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.hero-stats article {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.hero-stats strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.marquee div {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 14px 0;
  animation: slide 24s linear infinite;
}

.marquee span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-block {
  padding-block: clamp(72px, 10vw, 126px);
}

.section-heading {
  display: grid;
  max-width: 820px;
  gap: 8px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

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

.project-card {
  position: relative;
  display: grid;
  min-height: 340px;
  align-content: space-between;
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 107, 43, 0.22), transparent 28%),
    var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.project-card.featured {
  grid-row: span 2;
  min-height: 696px;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(47, 214, 198, 0.2), transparent 28%),
    var(--surface);
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-type {
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-preview {
  position: relative;
  display: grid;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #10100f;
}

.featured .project-preview {
  min-height: 390px;
}

.dashboard-preview {
  grid-template-columns: 0.72fr 1fr;
  gap: 10px;
  padding: 14px;
}

.dashboard-preview span,
.app-preview span,
.landing-preview span {
  display: block;
  border-radius: 6px;
}

.dashboard-preview span:first-child {
  grid-row: span 2;
  background: linear-gradient(160deg, rgba(255, 107, 43, 0.95), rgba(201, 242, 75, 0.65));
}

.dashboard-preview span:nth-child(2) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(47, 214, 198, 0.28));
}

.dashboard-preview span:nth-child(3) {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 12%, transparent 12% 18%, rgba(255, 255, 255, 0.08) 18%),
    rgba(255, 255, 255, 0.06);
}

.app-preview,
.landing-preview {
  gap: 10px;
  padding: 14px;
}

.app-preview span:first-child {
  height: 28px;
  background: rgba(47, 214, 198, 0.6);
}

.app-preview span:nth-child(2) {
  height: 76px;
  background: rgba(255, 255, 255, 0.1);
}

.app-preview span:nth-child(3) {
  height: 38px;
  background: rgba(201, 242, 75, 0.55);
}

.landing-preview {
  grid-template-columns: 1fr 0.72fr;
  align-items: stretch;
}

.landing-preview span:first-child {
  grid-row: span 2;
  background: linear-gradient(145deg, rgba(255, 107, 43, 0.85), rgba(255, 255, 255, 0.1));
}

.landing-preview span:nth-child(2),
.landing-preview span:nth-child(3) {
  background: rgba(255, 255, 255, 0.1);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(22px, 5vw, 72px);
  align-items: start;
}

.about-copy {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.about-copy p:last-child {
  margin-top: 18px;
  font-size: 1.06rem;
}

.skill-panel {
  display: grid;
  gap: 12px;
}

.skill-panel article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.skill-panel article > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--cyan);
  font-weight: 900;
}

.skill-panel h3 {
  margin-bottom: 7px;
}

.process-section {
  border-block: 1px solid var(--line);
}

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

.process-grid article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.process-grid svg {
  width: 32px;
  height: 32px;
  margin-bottom: 34px;
  color: var(--orange);
}

.process-grid h3 {
  margin-bottom: 10px;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(22px, 5vw, 70px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 107, 43, 0.16), transparent 35%),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin-bottom: 14px;
}

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

.contact-links a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

form {
  display: grid;
  gap: 14px;
}

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

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 13px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  min-height: 142px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(47, 214, 198, 0.7);
  box-shadow: 0 0 0 4px rgba(47, 214, 198, 0.1);
}

::placeholder {
  color: rgba(184, 181, 170, 0.68);
}

.form-note {
  min-height: 24px;
  color: var(--lime);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 78px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}

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

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

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

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

@media (max-width: 980px) {
  .site-header {
    padding-inline: 18px;
  }

  .header-cta {
    margin-left: auto;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 18px auto;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(23, 23, 21, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

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

  .hero,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--header-height) + 34px);
  }

  .hero-visual {
    max-width: 540px;
  }

  .about-copy {
    position: static;
  }

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

  .project-card.featured {
    min-height: 0;
  }

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

@media (max-width: 640px) {
  :root {
    --header-height: 66px;
  }

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

  .header-cta {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

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

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 28px);
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 3.7rem);
  }

  .hero-lede {
    max-width: 100%;
  }

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

  .portrait-card {
    transform: none;
  }

  .portrait-card img {
    height: min(112vw, 500px);
  }

  .status-chip {
    right: 12px;
    bottom: 12px;
    font-size: 0.78rem;
  }

  .hero-stats,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .featured .project-preview,
  .project-preview {
    min-height: 0;
  }

  .featured .project-preview {
    min-height: 250px;
  }

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

  .contact-links a {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
