:root {
  --bg: #111514;
  --bg-soft: #151b19;
  --panel: #18201d;
  --panel-strong: #202b27;
  --white: #f4f8f6;
  --text: #f4f8f6;
  --muted: #a8b4b0;
  --quiet: #788582;
  --line: #2d3a36;
  --spring-green: #09e85e;
  --spring-green-rgb: 9, 232, 94;
  --accent: var(--spring-green);
  --accent-strong: #56ff9f;
  --cyan: #42d9ff;
  --amber: #f0bf4f;
  --violet: #bba7ff;
  --danger: #ff6b8f;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --header-height: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  color: #06110c;
  background: var(--accent);
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  color: #07100b;
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(17, 21, 20, 0.86);
  border-bottom: 1px solid rgba(71, 91, 85, 0.4);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  color: var(--text);
}

.brand img {
  width: 70px;
  height: auto;
  object-fit: contain;
}

.brand span {
  font-size: 0.96rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.site-nav a:not(.button) {
  position: relative;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
}

.site-nav a:not(.button)::after {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--accent);
  border-radius: 999px;
  opacity: 0.72;
  transform: translateX(-50%);
  transition: width 160ms ease, opacity 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  width: 22px;
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button-light {
  color: #101413;
  background: var(--text);
}

.button-accent {
  color: #07100b;
  background: var(--accent);
  box-shadow: 0 12px 34px rgba(var(--spring-green-rgb), 0.18);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--accent);
}

:focus-visible {
  outline: 3px solid rgba(var(--spring-green-rgb), 0.72);
  outline-offset: 4px;
}

.section-band {
  position: relative;
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
  overflow: clip;
}

.section-band::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 74%);
}

.hero {
  display: grid;
  min-height: 76svh;
  padding-top: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(24px, 3vw, 32px);
  place-items: center;
  background: var(--bg);
}

.hero-content {
  width: min(960px, 100%);
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-photo {
  width: clamp(164px, 15vw, 214px);
  aspect-ratio: 1;
  margin: 0 auto clamp(22px, 4vw, 34px);
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 28px rgba(var(--spring-green-rgb), 0.34));
}

.hero h1 {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(2.4rem, 4.8vw, 4.35rem);
  font-weight: 520;
  line-height: 1.04;
}

.hero-copy {
  max-width: 780px;
  margin: clamp(16px, 2vw, 22px) auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.scroll-cue {
  display: inline-grid;
  gap: 12px;
  justify-items: center;
  margin-top: clamp(24px, 4vw, 42px);
  color: var(--quiet);
  font-weight: 700;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--accent);
}

.scroll-arrow {
  display: block;
  width: 44px;
  height: 44px;
  background: var(--accent);
  -webkit-mask: url("/assets/icons/arrow-down.svg") center / contain no-repeat;
  mask: url("/assets/icons/arrow-down.svg") center / contain no-repeat;
  animation: arrowFloat 1.35s ease-in-out infinite alternate;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.hero-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-icon {
  position: absolute;
  display: block;
  width: clamp(58px, 7vw, 112px);
  aspect-ratio: 1;
  color: #74817e;
  opacity: 0.46;
  animation: iconFloat 7s ease-in-out infinite alternate;
}

.hero-icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: currentColor;
  -webkit-mask: var(--hero-icon) center / contain no-repeat;
  mask: var(--hero-icon) center / contain no-repeat;
}

.hero-icon-cube {
  --hero-icon: url("/assets/icons/cube.svg");
  left: 7%;
  bottom: 25%;
  transform: rotate(-8deg);
}

.hero-icon-branch {
  --hero-icon: url("/assets/icons/branch.svg");
  right: 13%;
  bottom: 20%;
  transform: rotate(6deg);
  width: clamp(76px, 10vw, 148px);
}

.hero-icon-code {
  --hero-icon: url("/assets/icons/code.svg");
  right: 31%;
  bottom: 10%;
  color: #93a09d;
}

.hero-icon-globe {
  --hero-icon: url("/assets/icons/globe.svg");
  left: 24%;
  bottom: 8%;
}

.section-grid,
.section-heading,
.project-grid,
.timeline,
.education-card {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.section-intro {
  max-width: 470px;
}

.section-intro h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 560;
  line-height: 1.08;
}

.section-intro p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
}

.tech-section {
  padding-top: clamp(24px, 3vw, 32px);
  background: #121716;
}

.tech-experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tech-experience-card {
  min-height: 280px;
  padding: 24px;
  border: 0;
  border-radius: 2px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: background-color 0.4s, box-shadow 0.4s, transform 180ms ease;
}

.tech-experience-card:hover,
.tech-experience-card:focus-within {
  background-color: rgba(var(--spring-green-rgb), 0.035);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35), 0 0 20px rgba(var(--spring-green-rgb), 0.12);
  transform: translateY(-3px);
}

.tech-card-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tech-experience-card h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

.tech-experience-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.skill-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  color: #07100b;
  background: var(--spring-green);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
}

.skill-tags span:nth-child(3n + 2) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(var(--spring-green-rgb), 0.28);
}

.section-heading {
  margin-bottom: clamp(30px, 5vw, 58px);
  text-align: left;
}

.projects-section {
  background: #101413;
}

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

.project-card {
  display: grid;
  min-width: 0;
  min-height: 426px;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, background 180ms ease;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 168px;
  object-fit: cover;
  background: #0f1413;
  border-bottom: 1px solid var(--line);
  filter: grayscale(1);
  transition: filter 220ms ease, transform 220ms ease;
}

.project-card:hover .project-image,
.project-card:focus-within .project-image {
  filter: grayscale(0);
  transform: scale(1.035);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  background: #1b2521;
}

.project-card:has(.project-link) {
  cursor: pointer;
}

.project-visual {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  min-height: 168px;
  overflow: hidden;
  place-items: center;
  background: #0f1413;
  border-bottom: 1px solid var(--line);
}

.project-body {
  display: grid;
  min-height: 0;
  padding: 22px;
  align-content: start;
}

.project-body h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.project-body p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  color: #06110c;
  background: var(--accent);
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 850;
}

.tags span:nth-child(2n) {
  background: var(--cyan);
}

.tags span:nth-child(3n) {
  background: var(--amber);
}

.project-link,
.inline-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 18px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.project-link::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
}

.project-link::after,
.inline-link::after {
  content: ">";
  margin-left: 8px;
  color: var(--accent);
}

.visual-cards {
  grid-template-columns: repeat(3, 62px);
  gap: 12px;
  background:
    linear-gradient(135deg, #eaf0ec 0 50%, #d3ddd8 50% 100%);
}

.visual-cards span {
  width: 62px;
  height: 88px;
  background: #f8fbf9;
  border: 2px solid #899590;
  border-radius: 8px;
  transform: rotate(var(--tilt, -7deg));
}

.visual-cards span:nth-child(2) {
  --tilt: 4deg;
  margin-top: 18px;
}

.visual-cards span:nth-child(3) {
  --tilt: 9deg;
}

.visual-ml {
  grid-template-columns: repeat(4, 52px);
  gap: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent),
    #1b1f1e;
}

.visual-ml span {
  width: 52px;
  height: 52px;
  background:
    linear-gradient(135deg, #eef5f1 0 48%, #222827 48% 52%, #bfc9c4 52% 100%);
  border: 2px solid #5f6f6a;
  border-radius: 8px;
}

.visual-lease {
  gap: 6px;
  color: #101413;
  background: #f8f8f3;
}

.visual-lease::before {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 220px;
  height: 36px;
  content: "";
  border-top: 3px solid #111514;
  border-radius: 50%;
  transform: translateX(-50%) rotate(-2deg);
}

.visual-lease strong {
  z-index: 1;
  margin-top: 22px;
  font-size: 1.14rem;
}

.visual-lease small {
  z-index: 1;
  color: #333b38;
  font-weight: 800;
}

.visual-chart {
  align-items: end;
  grid-template-columns: repeat(5, 36px);
  gap: 12px;
  padding: 34px;
  background:
    linear-gradient(#1c2321 0 0) padding-box,
    repeating-linear-gradient(to top, rgba(255,255,255,0.08) 0 1px, transparent 1px 28px);
}

.visual-chart span {
  width: 36px;
  height: var(--h);
  background: var(--accent);
  border-radius: 6px 6px 0 0;
}

.visual-chart span:nth-child(1) { --h: 42px; }
.visual-chart span:nth-child(2) { --h: 86px; background: var(--cyan); }
.visual-chart span:nth-child(3) { --h: 64px; background: var(--amber); }
.visual-chart span:nth-child(4) { --h: 118px; }
.visual-chart span:nth-child(5) { --h: 76px; background: var(--violet); }

.visual-game {
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(255,255,255,0.12) 49% 51%, transparent 51%),
    linear-gradient(#121716, #171c1b);
}

.visual-game span {
  width: 86px;
  height: 86px;
  background:
    linear-gradient(140deg, var(--accent), #d9fff0 52%, #202624 52%);
  border: 3px solid #e8f4ef;
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(var(--spring-green-rgb), 0.08);
}

.visual-report {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 30px;
  background: #edf1ef;
}

.visual-report span {
  width: min(280px, 78%);
  height: 13px;
  background: #798783;
  border-radius: 3px;
}

.visual-report span:nth-child(1) {
  width: min(210px, 68%);
  background: #1f2825;
}

.visual-report span:nth-child(3) {
  width: min(250px, 74%);
}

.visual-report span:nth-child(4) {
  width: min(160px, 58%);
  background: var(--accent);
}

.visual-mobile {
  grid-template-columns: repeat(3, 54px);
  gap: 16px;
  background: #eef3f0;
}

.visual-mobile span {
  width: 54px;
  height: 122px;
  border: 3px solid #1d2522;
  border-radius: 16px;
  background:
    linear-gradient(to top, var(--accent) var(--meter), transparent var(--meter)),
    #f9fbfa;
}

.visual-mobile span:nth-child(1) { --meter: 34%; }
.visual-mobile span:nth-child(2) { --meter: 68%; }
.visual-mobile span:nth-child(3) { --meter: 48%; }

.visual-invoice {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 32px;
  background: #141918;
}

.visual-invoice span {
  width: min(310px, 86%);
  height: 18px;
  background: linear-gradient(90deg, var(--accent) 0 30%, #d8e4de 30% 100%);
  border-radius: 4px;
}

.visual-invoice span:nth-child(2) {
  background: linear-gradient(90deg, var(--cyan) 0 50%, #d8e4de 50% 100%);
}

.visual-invoice span:nth-child(3) {
  background: linear-gradient(90deg, var(--amber) 0 42%, #d8e4de 42% 100%);
}

.visual-graph {
  background:
    radial-gradient(circle at 24% 32%, var(--accent) 0 6px, transparent 7px),
    radial-gradient(circle at 58% 24%, var(--cyan) 0 6px, transparent 7px),
    radial-gradient(circle at 72% 70%, var(--amber) 0 6px, transparent 7px),
    radial-gradient(circle at 35% 76%, var(--violet) 0 6px, transparent 7px),
    #151b19;
}

.visual-graph span {
  position: absolute;
  width: 180px;
  height: 2px;
  background: #6f7e7a;
  transform-origin: center;
}

.visual-graph span:nth-child(1) {
  transform: translate(-68px, -18px) rotate(-12deg);
}

.visual-graph span:nth-child(2) {
  transform: translate(50px, 38px) rotate(45deg);
}

.visual-graph span:nth-child(3) {
  transform: translate(-30px, 50px) rotate(-30deg);
}

.visual-graph span:nth-child(4) {
  transform: translate(14px, -10px) rotate(65deg);
}

.visual-memory {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: center;
  justify-content: center;
  padding: 28px;
  color: #101413;
  background: #f5f1e8;
}

.visual-memory span {
  padding: 7px 10px;
  border: 2px solid #1d2522;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  font-weight: 800;
}

.visual-scraper {
  grid-template-columns: repeat(3, 64px);
  gap: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 18px),
    #121716;
}

.visual-scraper span {
  width: 64px;
  height: 64px;
  border: 2px solid #dce8e2;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 50%, rgba(var(--spring-green-rgb), 0.65) 50% 100%);
}

.experience-section {
  background: #121716;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.timeline-card,
.education-card {
  position: relative;
  min-height: 300px;
  padding: 28px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow: var(--shadow);
  transition: background-color 0.4s, box-shadow 0.4s, transform 180ms ease;
}

.timeline-card {
  display: flex;
  flex-direction: column;
}

.timeline-card:hover,
.timeline-card:focus-within,
.education-card:hover,
.education-card:focus-within {
  background-color: rgba(var(--spring-green-rgb), 0.035);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35), 0 0 20px rgba(var(--spring-green-rgb), 0.12);
}

.work-logo {
  width: 112px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.work-card-header {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}

.company-name {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

.education-card {
  display: grid;
  min-height: 0;
  margin-top: 24px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 5vw, 54px);
  align-items: center;
}

.timeline-date {
  margin: 8px 0 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-card h3,
.education-card h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.22;
}

.timeline-card p:not(.timeline-date):not(.company-name),
.education-card p:not(.timeline-date):not(.company-name) {
  margin: 14px 0 0;
  color: var(--muted);
}

.timeline-card > p:not(.timeline-date):not(.company-name) {
  margin-top: auto;
  padding-top: 18px;
}

.faq-section {
  background: #101413;
}

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

.faq-list details {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: var(--panel);
  opacity: 0;
  transform: translate(-14px, -10px);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.faq-list.is-visible details {
  animation: faqItemIn 520ms ease both;
}

.faq-list.is-visible details:nth-child(2) {
  animation-delay: 90ms;
}

.faq-list.is-visible details:nth-child(3) {
  animation-delay: 180ms;
}

.faq-list details[open] {
  background: #18221f;
  box-shadow: 0 0 20px rgba(var(--spring-green-rgb), 0.08);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 18px 20px;
  font-weight: 800;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  width: 10px;
  height: 10px;
  content: "";
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(-135deg);
}

.faq-panel {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.faq-list details[open] .faq-panel {
  opacity: 1;
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.contact-section {
  background: #121716;
}

.contact-links {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  justify-items: start;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent);
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.email-icon {
  --icon: url("/assets/icons/email.svg");
  width: 24px;
  height: 24px;
  color: var(--muted);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
  border: 0;
  border-radius: 2px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  height: auto;
  min-height: 2.75rem;
  color: var(--white);
  background-color: #0000;
  border: 1px solid var(--spring-green);
  border-radius: 0;
  margin-bottom: 0;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  transition: background-color 0.4s, box-shadow 0.4s;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background-color: rgba(var(--spring-green-rgb), 0.035);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--spring-green-rgb), 0.18), 0 0 18px rgba(var(--spring-green-rgb), 0.14);
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.contact-form button {
  width: fit-content;
  margin-top: 8px;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.field-error {
  min-height: 18px;
  margin-top: -6px;
  color: var(--danger);
  font-size: 0.82rem;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status[data-status="success"] {
  color: var(--accent-strong);
}

.form-status[data-status="error"] {
  color: var(--danger);
}

.project-card,
.tech-experience-card,
.timeline-card,
.education-card,
.faq-list details,
.contact-form {
  --neon-stroke: 4px;
  position: relative;
  isolation: isolate;
}

.project-card::before,
.tech-experience-card::before,
.timeline-card::before,
.education-card::before,
.faq-list details::before,
.contact-form::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  opacity: 0;
  will-change: background-size;
}

.project-card::before,
.tech-experience-card::before,
.timeline-card::before,
.education-card::before,
.faq-list details::before,
.contact-form::before {
  background:
    linear-gradient(var(--accent), var(--accent)) left top / var(--neon-top, 0%) var(--neon-stroke) no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / var(--neon-stroke) var(--neon-left, 0%) no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / var(--neon-stroke) var(--neon-right, 0%) no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / var(--neon-bottom, 0%) var(--neon-stroke) no-repeat;
  opacity: var(--neon-visible, 0);
  filter: drop-shadow(0 0 5px rgba(var(--spring-green-rgb), 0.5));
}

.contact-form label,
.contact-form input[data-form-field],
.contact-form textarea[data-form-field],
.contact-form .field-error,
.contact-form button,
.contact-form .form-status {
  opacity: 0;
  transform: translate(-14px, -10px);
}

.contact-form.is-visible label,
.contact-form.is-visible input[data-form-field],
.contact-form.is-visible textarea[data-form-field],
.contact-form.is-visible .field-error,
.contact-form.is-visible button,
.contact-form.is-visible .form-status {
  animation: formFieldIn 500ms ease both;
}

.contact-form.is-visible label:nth-of-type(1),
.contact-form.is-visible #name {
  animation-delay: 70ms;
}

.contact-form.is-visible [data-field-error="name"],
.contact-form.is-visible label:nth-of-type(2),
.contact-form.is-visible #email {
  animation-delay: 140ms;
}

.contact-form.is-visible [data-field-error="email"],
.contact-form.is-visible label:nth-of-type(3),
.contact-form.is-visible #message {
  animation-delay: 210ms;
}

.contact-form.is-visible [data-field-error="message"],
.contact-form.is-visible button,
.contact-form.is-visible .form-status {
  animation-delay: 280ms;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--quiet);
  background: #0e1211;
  border-top: 1px solid var(--line);
}

.footer-logo-link img {
  width: 144px;
  height: auto;
  object-fit: contain;
}

.social-link {
  display: inline-grid;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  place-items: center;
  font-weight: 900;
}

.linkedin-icon {
  --icon: url("/assets/icons/linkedin.svg");
  width: 30px;
  height: 30px;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent);
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.site-footer .brand img {
  width: 58px;
}

.site-footer .brand span {
  color: var(--text);
}

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

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

@keyframes iconFloat {
  0% {
    translate: 0 0;
  }
  100% {
    translate: 0 -28px;
  }
}

@keyframes arrowFloat {
  0% {
    translate: 0 0;
  }
  100% {
    translate: 0 12px;
  }
}

@keyframes faqItemIn {
  0% {
    opacity: 0;
    transform: translate(-14px, -10px);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes formFieldIn {
  0% {
    opacity: 0;
    transform: translate(-14px, -10px);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

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

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

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

  .faq-list details,
  .contact-form label,
  .contact-form input[data-form-field],
  .contact-form textarea[data-form-field],
  .contact-form .field-error,
  .contact-form button,
  .contact-form .form-status {
    opacity: 1;
    transform: none;
  }
}

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

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 18px;
    left: 18px;
    display: grid;
    gap: 8px;
    padding: 16px;
    background: rgba(19, 25, 23, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

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

  .site-nav a:not(.button) {
    padding: 13px 12px;
  }

  .site-nav a:not(.button)::after {
    display: none;
  }

  .site-nav .button {
    width: 100%;
  }

  .brand span {
    display: none;
  }

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

  .tech-experience-grid,
  .project-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-card {
    grid-template-columns: 1fr;
  }

  .hero-icon {
    opacity: 0.24;
  }

  .hero-icon-code {
    right: 8%;
  }

  .hero-icon-globe {
    left: 8%;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 74px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand img {
    width: 58px;
  }

  .hero {
    min-height: 84svh;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 4.3rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

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

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

  .tech-experience-grid,
  .project-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .tech-experience-card {
    min-height: 0;
    padding: 22px;
  }

  .timeline-card,
  .education-card {
    min-height: 0;
    padding: 22px;
  }

  .work-card-header {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 20px;
  }

  .work-logo {
    width: 86px;
    height: 50px;
  }

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

  .project-visual {
    min-height: 156px;
  }

  .project-image {
    min-height: 156px;
  }

  .timeline-card {
    min-height: 0;
  }

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

  .hero-icon-cube {
    left: 4%;
    bottom: 12%;
  }

  .hero-icon-branch {
    right: 6%;
    bottom: 8%;
  }

  .hero-icon-code,
  .hero-icon-globe {
    display: none;
  }
}

@media (max-width: 420px) {
  .section-band {
    padding-inline: 14px;
  }

  .profile-photo {
    width: 154px;
  }

  .project-body {
    padding: 18px;
  }

  .visual-cards {
    grid-template-columns: repeat(3, 48px);
  }

  .visual-cards span {
    width: 48px;
    height: 72px;
  }
}

