:root {
  --ink: #101114;
  --ink-2: #1c1f26;
  --paper: #f7f5ef;
  --paper-2: #ebe6dc;
  --muted: #67625a;
  --line: rgba(16, 17, 20, 0.12);
  --line-dark: rgba(255, 255, 255, 0.15);
  --white: #ffffff;
  --teal: #0f9f9a;
  --coral: #e85d4f;
  --amber: #f2a13a;
  --violet: #7057d2;
  --lime: #8fbf4d;
  --shadow: 0 20px 60px rgba(16, 17, 20, 0.18);
  --max: 1180px;
  --header: 74px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.section-dark,
.section-light,
.section-tint {
  position: relative;
  padding: 112px 0;
}

.section-dark {
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(232, 93, 79, 0.12), transparent 36%),
    linear-gradient(225deg, rgba(15, 159, 154, 0.16), transparent 42%),
    #101114;
}

.section-light {
  background: var(--paper);
}

.section-tint {
  background:
    linear-gradient(180deg, rgba(143, 191, 77, 0.14), rgba(242, 161, 58, 0.08)),
    var(--paper-2);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.site-header.scrolled {
  background: rgba(247, 245, 239, 0.9);
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(16, 17, 20, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(100% - 32px, 1240px);
  height: var(--header);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}

.site-header.scrolled .brand {
  color: var(--ink);
}

.brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--violet));
  border-radius: var(--radius);
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}

.brand strong {
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 10px 12px;
  color: rgba(247, 245, 239, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-header.scrolled .nav-link {
  color: rgba(16, 17, 20, 0.68);
}

.nav-link:hover,
.nav-link.active,
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--coral);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-action,
.btn,
.project-body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 800;
}

.nav-action {
  padding: 0 15px;
  color: var(--paper);
  border: 1px solid rgba(247, 245, 239, 0.28);
  background: rgba(247, 245, 239, 0.08);
}

.site-header.scrolled .nav-action {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(16, 17, 20, 0.04);
}

.nav-action svg,
.btn svg,
.project-body a svg,
.contact-link svg,
.skill-block svg,
.reflection-item svg,
.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(247, 245, 239, 0.24);
  border-radius: var(--radius);
  background: rgba(247, 245, 239, 0.08);
  cursor: pointer;
}

.site-header.scrolled .nav-toggle {
  border-color: var(--line);
  background: rgba(16, 17, 20, 0.04);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.scrolled .nav-toggle span {
  background: var(--ink);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--header) + 64px);
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 56px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.4rem, 5.7vw, 5.95rem);
  white-space: nowrap;
}

h2 {
  max-width: 870px;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.hero-lead {
  max-width: 760px;
  margin-top: 24px;
  color: var(--white);
  font-size: clamp(1.08rem, 1.55vw, 1.24rem);
  font-weight: 700;
}

.hero-text {
  max-width: 680px;
  margin-top: 16px;
  color: rgba(247, 245, 239, 0.72);
}

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

.btn {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.project-card:hover,
.contact-link:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  box-shadow: 0 18px 38px rgba(232, 93, 79, 0.28);
}

.btn-secondary {
  color: var(--paper);
  border-color: rgba(247, 245, 239, 0.26);
  background: rgba(247, 245, 239, 0.08);
}

.hero-showcase {
  display: grid;
  gap: 14px;
}

.showcase-main {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(247, 245, 239, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.showcase-main img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.showcase-strip img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(247, 245, 239, 0.16);
  border-radius: var(--radius);
}

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

.hero-metrics div {
  padding: 18px;
  border: 1px solid rgba(247, 245, 239, 0.16);
  border-radius: var(--radius);
  background: rgba(247, 245, 239, 0.08);
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  display: block;
  color: var(--amber);
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-size: 1.75rem;
}

.hero-metrics span {
  display: block;
  color: rgba(247, 245, 239, 0.7);
  font-size: 0.88rem;
}

.section-heading {
  max-width: 870px;
  margin-bottom: 42px;
}

.section-heading p,
.heading-note {
  max-width: 780px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-dark .section-heading p {
  color: rgba(247, 245, 239, 0.72);
}

.identity-grid {
  display: grid;
  grid-template-columns: minmax(270px, 360px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.profile-panel,
.goal-card,
.skill-block,
.project-card,
.reflection-item,
.contact-link,
.closing-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 42px rgba(16, 17, 20, 0.08);
}

.profile-panel {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(232, 93, 79, 0.12), transparent 52%),
    rgba(255, 255, 255, 0.72);
}

.profile-photo {
  position: relative;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 17, 20, 0.12);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 18px 48px rgba(16, 17, 20, 0.16);
}

.profile-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}

.profile-photo figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  color: #fff;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 159, 154, 0.95), rgba(112, 87, 210, 0.95)),
    var(--ink);
  box-shadow: 0 10px 26px rgba(16, 17, 20, 0.28);
  font-size: 0.9rem;
  font-weight: 700;
}

.profile-panel h3 {
  margin-bottom: 6px;
  font-size: 1.75rem;
}

.profile-panel > p {
  color: var(--muted);
  font-weight: 700;
}

.profile-panel dl {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.profile-panel dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-panel dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.about-story {
  display: grid;
  gap: 18px;
  padding-top: 8px;
  color: #34302b;
  font-size: 1.05rem;
}

.about-story strong {
  color: var(--ink);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 159, 154, 0.22);
  border-radius: 999px;
  color: #064d4a;
  background: rgba(15, 159, 154, 0.09);
  font-size: 0.88rem;
  font-weight: 800;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.goal-card {
  padding: 24px;
}

.goal-card span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--coral);
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.goal-card h3,
.skill-block h3,
.reflection-item h3 {
  margin-bottom: 12px;
}

.goal-card p,
.skill-block p {
  color: var(--muted);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: 44px;
  align-items: start;
}

.split-heading .section-heading {
  margin-bottom: 0;
}

.split-heading .heading-note {
  margin-top: 88px;
}

.skill-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.skill-block {
  min-height: 252px;
  padding: 24px;
  background: rgba(247, 245, 239, 0.76);
}

.skill-block svg {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  padding: 10px;
  color: var(--teal);
  border: 1px solid rgba(15, 159, 154, 0.24);
  border-radius: var(--radius);
  background: rgba(15, 159, 154, 0.08);
}

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

.project-card {
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  box-shadow: 0 24px 70px rgba(16, 17, 20, 0.15);
}

.project-card-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.project-media {
  display: block;
  overflow: hidden;
  background: var(--ink);
}

.project-media img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.045);
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 288px;
  padding: 22px;
}

.project-body > span {
  width: fit-content;
  padding: 5px 10px;
  color: #fff;
  border-radius: 999px;
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-body p {
  color: var(--muted);
}

.project-body a {
  width: fit-content;
  min-height: 40px;
  margin-top: auto;
  padding: 0 13px;
  color: #fff;
  background: var(--teal);
}

.summary {
  overflow: hidden;
}

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

.reflection-item {
  min-height: 300px;
  padding: 24px;
  color: var(--paper);
  border-color: var(--line-dark);
  background: rgba(247, 245, 239, 0.08);
  box-shadow: none;
}

.reflection-item svg {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  padding: 10px;
  color: var(--amber);
  border: 1px solid rgba(242, 161, 58, 0.28);
  border-radius: var(--radius);
  background: rgba(242, 161, 58, 0.1);
}

.reflection-item p {
  color: rgba(247, 245, 239, 0.72);
}

.closing-note {
  margin-top: 22px;
  padding: 28px;
  color: var(--paper);
  border-color: var(--line-dark);
  background:
    linear-gradient(135deg, rgba(15, 159, 154, 0.2), rgba(232, 93, 79, 0.14)),
    rgba(247, 245, 239, 0.08);
}

.closing-note p {
  max-width: 900px;
  color: rgba(247, 245, 239, 0.78);
}

.closing-note strong {
  display: block;
  margin-top: 18px;
  color: var(--amber);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 46px;
  align-items: start;
}

.contact-actions {
  display: grid;
  gap: 14px;
  align-content: center;
}

.contact-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-link svg {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  padding: 9px;
  color: var(--coral);
  border: 1px solid rgba(232, 93, 79, 0.24);
  border-radius: var(--radius);
  background: rgba(232, 93, 79, 0.08);
}

.contact-link span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-link strong {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
}

.site-footer {
  padding: 30px 0;
  color: rgba(247, 245, 239, 0.72);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.92rem;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--coral);
  box-shadow: 0 16px 40px rgba(232, 93, 79, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 1080px) {
  .nav-links {
    gap: 0;
  }

  .nav-link {
    padding-inline: 8px;
    font-size: 0.84rem;
  }

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

  .hero {
    min-height: auto;
  }

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

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

  .project-card-wide {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .nav-action {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: var(--header);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(247, 245, 239, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .nav-link,
  .site-header.scrolled .nav-link {
    padding: 12px;
    color: var(--ink);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(232, 93, 79, 0.08);
  }

  .goal-grid,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .split-heading .heading-note {
    margin-top: 0;
  }
}

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

  .container,
  .nav-shell {
    width: min(100% - 28px, var(--max));
  }

  .section-dark,
  .section-light,
  .section-tint {
    padding: 78px 0;
  }

  .hero {
    padding-top: 108px;
  }

  h1 {
    font-size: 3.3rem;
    white-space: normal;
  }

  .hero-actions {
    display: grid;
  }

  .showcase-strip,
  .hero-metrics,
  .skill-layout,
  .project-grid,
  .reflection-layout {
    grid-template-columns: 1fr;
  }

  .project-card-wide {
    grid-column: span 1;
  }

  .project-body {
    min-height: auto;
  }

  .footer-inner {
    display: grid;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

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

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

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
    animation: none !important;
  }

  html {
    scroll-padding-top: 0;
  }

  body {
    color: #111;
    background: #fff;
    font-size: 10.5pt;
    line-height: 1.55;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .site-header,
  .back-to-top {
    display: none !important;
  }

  .container,
  .nav-shell {
    width: 100%;
    max-width: none;
  }

  .section-dark,
  .section-light,
  .section-tint {
    padding: 18mm 0;
    break-inside: avoid;
  }

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

  .hero-noise {
    display: none;
  }

  .hero-layout,
  .identity-grid,
  .split-heading,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 8mm;
  }

  .hero-showcase,
  .showcase-strip,
  .hero-metrics,
  .skill-layout,
  .goal-grid,
  .project-grid,
  .reflection-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card-wide {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  h1 {
    white-space: normal;
    font-size: 42pt;
  }

  h2 {
    font-size: 32pt;
  }

  h3 {
    font-size: 16pt;
  }

  .hero-lead {
    font-size: 14pt;
  }

  .section-heading,
  .split-heading .section-heading {
    margin-bottom: 8mm;
  }

  .split-heading .heading-note,
  .skill-layout {
    margin-top: 0;
  }

  .profile-panel,
  .goal-card,
  .skill-block,
  .project-card,
  .reflection-item,
  .contact-link,
  .closing-note {
    break-inside: avoid;
    background: #fff;
    border: 1px solid #ddd;
  }

  .project-media img,
  .showcase-main img,
  .showcase-strip img,
  .profile-photo img {
    break-inside: avoid;
  }

  .project-body {
    min-height: auto;
  }

  .project-body a::after {
    content: " (" attr(href) ")";
    display: block;
    grid-column: 2;
    color: #666;
    font-size: 8pt;
    font-weight: 400;
    overflow-wrap: anywhere;
  }

  .project-body a {
    color: #fff;
  }

  .section-dark {
    background: #101114;
  }

  .section-tint {
    background: #ebe6dc;
  }

  .summary,
  .hero {
    color: #fff;
  }

  .contact {
    break-before: page;
  }
}
