:root {
  --primary: #ff3b30;
  --primary-soft: #ffaaa5;
  --bg: #1a1a1a;
  --bg-deep: #0f0f0f;
  --surface: #202020;
  --surface-2: #2a2525;
  --text: #ffffff;
  --muted: #d6c0bd;
  --subtle: #8a7a78;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 8%, rgba(255, 59, 48, 0.16), transparent 28rem),
    linear-gradient(180deg, var(--bg), var(--bg-deep) 68%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 36px));
  height: 76px;
  margin: 0 auto;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.header-action,
.button,
.ticker,
.project-type {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 700;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--bg-deep);
  background: var(--primary);
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active,
.site-footer a:hover {
  color: var(--primary-soft);
}

.header-action {
  padding: 11px 17px;
  color: var(--bg-deep);
  background: var(--text);
  border-radius: 6px;
  font-size: 13px;
  transition: transform 180ms ease, background 180ms ease;
}

.header-action:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(36px, 6vw, 92px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 76px);
  align-items: center;
  padding: 38px 0 78px;
}

.intro-line,
.section-title p,
.contact-copy p {
  margin: 0 0 18px;
  color: var(--primary-soft);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.8vw, 5.4rem);
  line-height: 0.95;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
  color: var(--bg-deep);
  background: var(--primary);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(255, 170, 165, 0.42);
}

.button-secondary:hover {
  border-color: var(--primary-soft);
  background: rgba(255, 59, 48, 0.08);
}

.hero-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 170, 165, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.hero-art::before {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(255, 59, 48, 0.28);
  content: "";
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.05);
}

.status-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 36px);
  padding: 13px 15px;
  color: var(--text);
  background: rgba(15, 15, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  backdrop-filter: blur(18px);
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 20px var(--primary);
}

.ticker {
  display: flex;
  gap: clamp(18px, 4vw, 52px);
  width: min(1180px, calc(100% - 36px));
  margin: -34px auto 0;
  padding: 18px 0;
  color: var(--subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: clamp(0.76rem, 2vw, 0.94rem);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

.ticker span {
  position: relative;
}

.ticker span::after {
  position: absolute;
  top: 50%;
  right: -28px;
  width: 5px;
  height: 5px;
  background: var(--primary);
  content: "";
  transform: translateY(-50%);
}

.ticker span:last-child::after {
  display: none;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(86px, 12vw, 148px) 0 0;
}

.section-title h2,
.contact-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 5.6rem);
  line-height: 1;
}

.section-title.compact {
  max-width: 760px;
}

.about-panel {
  align-self: end;
  padding-top: 16px;
  color: var(--muted);
  border-top: 3px solid var(--primary-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.about-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.about-list span {
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
}

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

.skill-card {
  min-height: 278px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.skill-card:hover {
  background: var(--surface-2);
  border-color: rgba(255, 170, 165, 0.24);
  transform: translateY(-6px);
}

.skill-card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 46px;
  color: var(--primary-soft);
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.skill-card h3 {
  margin-bottom: 12px;
  font-size: 1.32rem;
}

.skill-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.projects {
  padding-top: clamp(76px, 11vw, 132px);
}

.project-list {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.project-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 110px;
  gap: 18px;
  align-items: center;
  min-height: 128px;
  border-bottom: 1px solid var(--border);
  transition: background 180ms ease, color 180ms ease, padding 180ms ease;
}

.project-row:hover {
  padding-left: 14px;
  background: rgba(255, 59, 48, 0.06);
}

.project-index {
  color: var(--primary-soft);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
}

.project-row strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(1.3rem, 3vw, 2.25rem);
}

.project-row small {
  color: var(--muted);
  font-size: 0.98rem;
}

.project-type {
  justify-self: end;
  color: var(--primary-soft);
  font-size: 13px;
}

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

.cert-card {
  min-height: 190px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.cert-card:hover {
  background: var(--surface-2);
  border-color: rgba(255, 170, 165, 0.24);
  transform: translateY(-5px);
}

.cert-card span {
  display: block;
  margin-bottom: 44px;
  color: var(--primary-soft);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.cert-card h3 {
  margin-bottom: 0;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.25;
}

.education-list {
  margin-top: 34px;
  border-top: 1px solid var(--border);
}

.education-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.education-row > span {
  color: var(--primary-soft);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.education-row h3 {
  margin-bottom: 9px;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.education-row p {
  margin-bottom: 8px;
  color: var(--muted);
}

.education-row small {
  color: var(--subtle);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: end;
  padding-bottom: 104px;
}

.contact-copy h2 {
  margin-bottom: 32px;
}

.contact-card {
  padding: 26px;
  background: var(--primary);
  border-radius: var(--radius);
  color: var(--bg-deep);
}

.contact-card span {
  display: block;
  margin-bottom: 18px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.contact-card strong {
  display: block;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.55rem;
  line-height: 1.22;
}

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

.contact-links a {
  color: var(--bg-deep);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 38px;
  color: var(--subtle);
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 740ms var(--ease), transform 740ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.from-up {
  transform: translateY(-42px);
}

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

@media (max-width: 860px) {
  .site-header {
    height: auto;
    min-height: 68px;
  }

  .nav-links {
    display: none;
  }

  .section-grid,
  .contact {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: clamp(3rem, 16vw, 5.6rem);
  }

  .hero-art img {
    aspect-ratio: 1 / 0.88;
  }

  .ticker {
    margin-top: 8px;
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
  }

  .ticker span::after {
    right: -14px;
  }

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

  .project-row {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 142px;
  }

  .project-type {
    grid-column: 2;
    justify-self: start;
  }

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

  .education-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-card {
    max-width: 440px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .section-grid,
  .section,
  .ticker,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .header-action {
    padding-inline: 13px;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .status-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: center;
  }

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

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

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

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

  .reveal,
  .reveal.from-up {
    opacity: 1;
    transform: none;
  }
}
