:root {
  --canvas: #e9e9e9;
  --surface: #fffada;
  --ink: #000000;
  --muted: #4a4732;
  --yellow: #f1e500;
  --pink: #ff034f;
  --cyan: #00f5ff;
  --cyan-soft: #4cf6ff;
  --blue-link: #1307ff;
  --dark: #343205;
  --scene-ink: #000000;
  --glass-highlight: rgba(255, 255, 255, 0.12);
  --glass-shadow: rgba(229, 231, 235, 0.03);
  --glass-fill: rgba(226, 228, 231, 0.05);
  --noise-opacity: 0.28;
  --noise-blend: multiply;
  --seed-stem: rgba(0, 0, 0, 0.1);
  --header-accent: var(--pink);
  --border: 2px solid var(--ink);
  --radius: 6px;
  --shadow: none;
  --shadow-hover: none;
  --gutter: 32px;
  --margin: 64px;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  scroll-behavior: smooth;
}

:root[data-theme="dark"] {
  --canvas: #050506;
  --surface: #050506;
  --ink: #f4f0e8;
  --muted: #bbb4cc;
  --yellow: #e8ff2e;
  --pink: #ff034f;
  --cyan: #26f5ff;
  --cyan-soft: #9df9ff;
  --blue-link: #cda4ff;
  --dark: #0d0b10;
  --scene-ink: #e8ff2e;
  --glass-highlight: rgba(255, 255, 255, 0.05);
  --glass-shadow: rgba(255, 3, 79, 0.025);
  --glass-fill: rgba(8, 8, 10, 0.18);
  --noise-opacity: 0.34;
  --noise-blend: screen;
  --seed-stem: rgba(232, 255, 46, 0.24);
}

body.is-over-developer {
  --header-accent: var(--cyan);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 112px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--noise-opacity);
  mix-blend-mode: var(--noise-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.56' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='96' height='96' filter='url(%23grain)' opacity='0.78'/%3E%3C/svg%3E");
  background-size: 96px 96px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 28px;
  width: min(calc(100% - 48px), 1140px);
  min-height: 78px;
  margin: 16px auto 0;
  padding: 12px 18px 12px 22px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(
      135deg,
      var(--glass-highlight),
      var(--glass-shadow)
    ),
    var(--glass-fill);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: var(--canvas);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--gutter);
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.primary-nav a {
  padding: 8px 0 6px;
  border-bottom: 4px solid transparent;
  color: var(--muted);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--header-accent);
}

.nav-mobile-only {
  display: none;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.theme-switch {
  display: grid;
  place-items: center;
  width: 42px;
  height: 66px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  outline: 0;
  background: transparent;
  color: var(--header-accent);
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 0;
  text-transform: uppercase;
}

.theme-switch-icon {
  width: 34px;
  height: 54px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 3;
}

.switch-track,
.switch-thumb {
  rx: 7;
}

.switch-thumb {
  rx: 3;
}

.switch-thumb {
  fill: currentColor;
  transform-origin: 18px 38px;
  transition: transform 120ms steps(2, end);
}

.theme-switch[aria-pressed="true"] .switch-thumb {
  transform: translateY(-19px);
}

.theme-switch:hover,
.theme-switch:focus-visible {
  background: var(--header-accent);
  color: var(--canvas);
}

.theme-switch:hover .theme-switch-icon,
.theme-switch:focus-visible .theme-switch-icon {
  color: var(--canvas);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 80ms steps(2, end),
    box-shadow 80ms steps(2, end),
    background-color 80ms steps(2, end);
}

.header-cta:hover,
.header-cta.is-active,
.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.header-cta:hover,
.header-cta.is-active {
  color: var(--header-accent);
}

.header-cta {
  min-height: 66px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  padding-inline: 24px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.menu-toggle {
  display: none;
}

.section-shell {
  padding: 96px var(--margin);
  border-bottom: var(--border);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.85fr);
  gap: var(--gutter);
  min-height: calc(100vh - 80px);
  align-items: center;
}

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

.hero-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.floating-seed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: var(--seed-length);
  height: 10px;
  pointer-events: none;
  transform-origin: 10% 50%;
  will-change: transform, opacity;
}

.floating-seed-stem {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--seed-length);
  height: 1px;
  background: var(--seed-stem);
  transform: translateY(-50%);
}

.floating-seed-tip {
  position: absolute;
  top: 50%;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--seed-color);
  transform: translate(50%, -50%);
}

.eyebrow {
  margin: 0 0 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

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

.hero h1,
.section-heading h2,
.about-panel h2,
.skills-panel h2,
.contact h2 {
  margin-bottom: 28px;
  font-size: clamp(4rem, 10vw, 8.1rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: 0;
}

.hero h1 {
  display: inline-block;
  border-bottom: 8px solid var(--yellow);
}

.hero-title {
  max-width: 760px;
  margin-bottom: 44px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
}

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

.hero-actions .button {
  min-height: 58px;
  padding: 15px 30px;
  font-size: 16px;
}

.button-hot {
  background: var(--pink);
  color: #000000;
}

.button-hot:hover {
  border-color: transparent;
  background: transparent;
  text-decoration-line: underline;
  text-decoration-color: var(--blue-link);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.button-calm {
  background: var(--cyan-soft);
  color: #000000;
}

.button-calm:hover {
  border-color: transparent;
  background: transparent;
  text-decoration-line: underline;
  text-decoration-color: var(--blue-link);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.button-yellow {
  width: fit-content;
  background: var(--yellow);
  color: #000000;
}

:root[data-theme="dark"] .button-hot:hover,
:root[data-theme="dark"] .button-calm:hover {
  color: var(--ink);
}

:root[data-theme="dark"] .project-card-header,
:root[data-theme="dark"] .skill-list li:hover {
  color: #000000;
}

.section-heading {
  margin-bottom: var(--gutter);
  border-bottom: var(--border);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

.project-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 80ms steps(2, end),
    background-color 80ms steps(2, end);
}

.project-card.is-hovered {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  background: var(--cyan-soft);
}

.project-card:focus-visible {
  outline: 4px solid var(--header-accent);
  outline-offset: 4px;
}

.project-card.is-hovered p {
  color: #111111;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: var(--border);
  background: var(--yellow);
}

.project-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.project-card-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.project-card-arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-card p {
  flex: 1;
  margin: 0;
  padding: 28px;
  border-bottom: var(--border);
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.tags,
.skill-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}

.tags li,
.skill-list li,
.status-list span {
  display: inline-flex;
  width: fit-content;
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) - 2px);
  background: var(--ink);
  color: var(--surface);
  padding: 7px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.about-skills {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-bottom: var(--border);
}

.about-panel,
.skills-panel {
  padding: 96px var(--margin);
}

.about-panel {
  background: var(--pink);
  color: var(--surface);
}

.about-panel .eyebrow,
.about-panel .about-copy {
  color: var(--surface);
}

.about-copy {
  max-width: 680px;
  padding-left: 28px;
  border-left: var(--border);
  border-color: var(--surface);
  font-size: 20px;
  line-height: 1.5;
}

.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}

.status-list span {
  border-color: var(--surface);
}

.skills-panel {
  border-right: var(--border);
  background: var(--canvas);
}

.skill-groups {
  display: grid;
  gap: var(--gutter);
}

.skill-groups h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 28px;
  text-transform: uppercase;
}

.dot {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 3px;
}

.dot-pink {
  background: var(--pink);
}

.dot-cyan {
  background: var(--cyan);
}

.dot-yellow {
  background: var(--yellow);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 24px;
  border-left: var(--border);
}

.skill-list li {
  background: var(--canvas);
  color: var(--ink);
}

.skill-list li:hover {
  background: var(--yellow);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.contact-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}

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

.contact-links a {
  width: fit-content;
  border-bottom: 2px solid var(--ink);
  color: var(--pink);
  font-family: "JetBrains Mono", monospace;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

:root[data-theme="dark"] .contact-links a {
  color: var(--cyan);
}

.contact-form {
  display: grid;
  gap: 24px;
  padding: 32px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(232, 255, 46, 0.62);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--surface);
  padding: 12px 0;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: var(--border);
  border-color: var(--cyan);
  padding: 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--margin);
  color: var(--pink);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

:root[data-theme="dark"] .site-footer {
  color: var(--cyan);
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

@media (max-width: 980px) {
  :root {
    --margin: 24px;
    --gutter: 20px;
  }

  body.nav-open {
    overflow: auto;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    top: 12px;
    width: calc(100% - 32px);
    min-height: 64px;
    margin-top: 12px;
    padding: 10px 12px 10px 14px;
    gap: 10px;
  }

  .header-actions {
    position: static;
    grid-column: 2;
    grid-row: 1;
    gap: 0;
  }

  .theme-switch {
    width: 28px;
    height: 44px;
  }

  .theme-switch-icon {
    width: 28px;
    height: 44px;
  }

  .header-cta {
    display: none;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .brand-row {
    max-width: 145px;
    overflow: hidden;
    font-size: 13px;
    gap: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-kicker {
    max-width: 170px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    position: static;
    grid-column: 3;
    grid-row: 1;
    display: grid;
    gap: 5px;
    width: 42px;
    height: 44px;
    place-content: center;
    border: var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--ink);
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.28),
        rgba(229, 231, 235, 0.08)
      ),
      rgba(226, 228, 231, 0.16);
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
  }

  body.nav-open .primary-nav {
    display: flex;
  }

  body.nav-open.is-over-contact-form .primary-nav a {
    color: #050506;
  }

  .primary-nav a {
    padding: 18px 24px;
    border-top: var(--border);
    font-size: 18px;
  }

  .primary-nav a:hover + a,
  .primary-nav a.is-active + a {
    border-top-color: transparent;
  }

  .primary-nav a:hover + .nav-desktop-only + a,
  .primary-nav a.is-active + .nav-desktop-only + a {
    border-top-color: transparent;
  }

  .nav-desktop-only {
    display: none;
  }

  .nav-mobile-only {
    display: block;
  }

  .section-shell {
    padding-top: 72px;
    padding-bottom: 72px;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-visual {
    display: none;
  }

  .about-panel,
  .skills-panel {
    padding: 72px var(--margin);
  }

  .skills-panel {
    border-right: 0;
    border-bottom: var(--border);
  }
}

@media (max-width: 620px) {
  .hero h1,
  .section-heading h2,
  .about-panel h2,
  .skills-panel h2,
  .contact h2 {
    font-size: 4rem;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .button,
  .button-yellow {
    width: 100%;
  }

  .project-card p,
  .contact-copy p:not(.eyebrow),
  .about-copy {
    font-size: 18px;
  }
}
