@charset "UTF-8";

:root {
  --bg: #0a0b0c;
  --bg-soft: #0e1011;
  --surface: #121415;
  --surface-2: #17191a;
  --text: #f3f1e9;
  --text-soft: #c9c7bf;
  --muted: #898982;
  --line: rgba(243, 241, 233, 0.13);
  --line-strong: rgba(243, 241, 233, 0.24);
  --accent: #c8ff4d;
  --accent-rgb: 200, 255, 77;
  --header-height: 84px;
  --container: 1320px;
  --page-gutter: clamp(24px, 4vw, 64px);
  --sans: "Helvetica Neue", "Inter", "Segoe UI", Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 2%, rgba(200, 255, 77, 0.045), transparent 24rem),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  content: "";
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: #090a0a;
  background: var(--accent);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: #3b3d3b;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

a {
  text-decoration: none;
}

p,
h1,
h2,
h3,
ul,
pre {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--bg);
  background: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

.container {
  width: min(var(--container), calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 300;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.page-glow {
  position: fixed;
  top: var(--pointer-y, 50%);
  left: var(--pointer-x, 70%);
  z-index: 0;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.12;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 68%);
  transform: translate(-50%, -50%);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 200;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(10, 11, 12, 0);
  transition:
    height 0.35s var(--ease-out),
    border-color 0.35s ease,
    background-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  height: 70px;
  border-color: var(--line);
  background: rgba(10, 11, 12, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #0a0b0c;
  background: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--ease-out);
}

.brand:hover .brand-mark {
  color: var(--accent);
  background: var(--text);
  transform: rotate(-5deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 42px);
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 20px;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.desktop-nav a span {
  color: #4e504d;
  font-family: var(--mono);
  font-size: 0.56rem;
}

.desktop-nav a b {
  font-weight: 550;
}

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

.desktop-nav a.is-active::after,
.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.desktop-nav a.is-active span {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.language-switch {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switch button {
  min-width: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.61rem;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.language-switch button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--text);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 17px;
  color: var(--bg);
  background: var(--accent);
  font-size: 0.73rem;
  font-weight: 750;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--ease-out);
}

.header-contact:hover {
  color: var(--accent);
  background: var(--text);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}

.menu-toggle span:first-child {
  transform: translateY(-3px);
}

.menu-toggle span:last-child {
  transform: translateY(3px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: max(760px, 100svh);
  padding: calc(var(--header-height) + clamp(54px, 8vh, 94px)) 0 86px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 84%);
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

.hero::before {
  position: absolute;
  top: 13%;
  left: -8rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 50%;
  content: "";
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 6vw, 100px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(30px, 5vh, 52px);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot,
.mini-pulse {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.status-dot::after,
.mini-pulse::after {
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: inherit;
  content: "";
  animation: pulse 2.4s ease-out infinite;
}

.hero-title {
  max-width: 100%;
  font-size: clamp(4.2rem, 6.55vw, 6.7rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.title-line {
  display: block;
  padding-bottom: 0.08em;
  overflow: hidden;
}

.title-line > span {
  display: inline-block;
}

.title-line--accent {
  padding-bottom: 0.12em;
  padding-left: 0.34em;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.9em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1.05;
}

.js .hero-title .title-line > span {
  animation: title-in 0.9s var(--ease-out) both;
}

.js .hero-title .title-line:nth-child(1) > span {
  animation-delay: 0.08s;
}

.js .hero-title .title-line:nth-child(2) > span {
  animation-delay: 0.16s;
}

.js .hero-title .title-line--accent {
  animation: title-in 0.9s var(--ease-out) 0.24s both;
}

.hero-intro {
  max-width: 610px;
  margin-top: 26px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--ease-out);
}

.button svg {
  width: 19px;
  height: 19px;
  margin-left: 22px;
  stroke-width: 1.7;
  transition: transform 0.3s var(--ease-out);
}

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

.button--primary:hover {
  color: var(--accent);
  background: var(--text);
  transform: translateY(-3px);
}

.button--primary:hover svg {
  transform: translateX(4px);
}

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

.button--ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

.hero-meta {
  display: flex;
  gap: clamp(32px, 5vw, 72px);
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta strong {
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 500px);
}

.portrait-frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.4);
}

.portrait-frame::before {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: -1;
  width: 64%;
  height: 62%;
  border-top: 1px solid rgba(var(--accent-rgb), 0.7);
  border-right: 1px solid rgba(var(--accent-rgb), 0.7);
  content: "";
}

.portrait-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 4px 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

.portrait-symbol {
  color: var(--accent);
  font-size: 0.85rem;
}

.portrait-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
}

.portrait-image::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.24), transparent 38%);
}

.portrait-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.78) contrast(1.04);
  transform: scale(1.01);
}

.portrait-index {
  position: absolute;
  right: 24px;
  bottom: 4px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--mono);
  font-size: 3.8rem;
  font-weight: 300;
  letter-spacing: -0.08em;
  line-height: 1;
}

.floating-card {
  position: absolute;
  border: 1px solid var(--line-strong);
  background: rgba(17, 19, 20, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.floating-card--top {
  top: 13%;
  right: -30px;
  display: flex;
  padding: 10px 12px;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

.floating-card--top span:not(:last-child)::after {
  margin-left: 12px;
  color: #525451;
  content: "/";
}

.floating-card--bottom {
  bottom: -28px;
  left: -44px;
  display: flex;
  align-items: center;
  min-width: 230px;
  padding: 15px 18px;
  gap: 13px;
}

.floating-card--bottom p {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.floating-card--bottom small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.floating-card--bottom strong {
  margin-top: 3px;
  font-size: 0.75rem;
  font-weight: 650;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: var(--page-gutter);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.scroll-cue svg {
  width: 13px;
  height: 20px;
  stroke-width: 1.3;
  animation: scroll-cue 1.8s ease-in-out infinite;
}

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

.tech-ticker {
  position: relative;
  z-index: 2;
  padding: 17px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--accent);
  color: var(--bg);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.tech-ticker span {
  padding-inline: 24px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-ticker i {
  font-size: 0.55rem;
  font-style: normal;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(100px, 12vw, 168px) 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(54px, 7vw, 92px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-number {
  color: var(--accent);
}

.section-heading p {
  margin-left: auto;
}

.about-section {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(56px, 9vw, 150px);
  align-items: start;
}

.about-title,
.projects-intro h2,
.skills-intro h2,
.contact-copy h2 {
  max-width: 900px;
  font-size: clamp(2.8rem, 5.25vw, 5.2rem);
  font-weight: 570;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

.about-copy {
  padding-top: 0.55em;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.8;
}

.about-copy p + p {
  margin-top: 22px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(72px, 9vw, 130px);
  border: 1px solid var(--line);
  background: var(--line);
}

.approach-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 2vw, 30px);
  min-height: 220px;
  padding: clamp(25px, 3vw, 38px);
  background: var(--bg);
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.approach-card > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.57rem;
}

.approach-card h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.approach-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.approach-card:hover {
  background: var(--surface);
}

/* Projects */
.projects-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.projects-intro,
.skills-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: end;
  margin-bottom: clamp(60px, 7vw, 100px);
}

.projects-intro h2,
.skills-intro h2 {
  max-width: 840px;
}

.projects-intro > p,
.skills-intro > p {
  padding-bottom: 0.45em;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    border-color 0.35s ease,
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.project-card--wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.65fr);
}

.project-card--standard {
  display: grid;
  grid-column: span 6;
  grid-template-rows: minmax(340px, 1fr) auto;
}

.project-card:nth-child(3) {
  grid-column: 7 / -1;
}

.project-card:hover,
.project-card:focus-within {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.project-media {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #181a1b;
  isolation: isolate;
}

.project-card--wide .project-media {
  min-height: 520px;
}

.project-card--standard .project-media {
  min-height: 340px;
}

.project-media::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -80px 100px rgba(0, 0, 0, 0.12);
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.02);
  transform: scale(1.015) translate(var(--image-x, 0), var(--image-y, 0));
  transition: transform 0.7s var(--ease-out), filter 0.4s ease;
}

.project-card:hover .project-media img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.055) translate(var(--image-x, 0), var(--image-y, 0));
}

.browser-bar {
  display: none;
}

.browser-bar > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #505251;
}

.browser-bar i {
  margin-left: auto;
  color: #6c6e6b;
  font-family: var(--mono);
  font-size: 0.48rem;
  font-style: normal;
  letter-spacing: 0.07em;
}

.project-open {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--bg);
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(12px) rotate(-8deg);
  transition:
    opacity 0.35s ease,
    transform 0.4s var(--ease-out);
}

.project-open svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.project-card:hover .project-open,
.project-card:focus-within .project-open {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.project-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(25px, 3vw, 42px);
}

.project-card--wide .project-body {
  padding: clamp(32px, 4vw, 58px);
}

.project-card--wide .project-body > div:nth-child(2) {
  margin-block: auto;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(42px, 7vw, 90px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-topline span:first-child {
  color: var(--accent);
}

.project-body h3 {
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.project-type {
  margin-top: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-description {
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.72;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.feature-list li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 650;
  transition: color 0.25s ease;
}

.project-link svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.5;
  transition: transform 0.3s var(--ease-out);
}

.project-link:hover {
  color: var(--accent);
}

.project-link:hover svg {
  transform: translateX(5px);
}

/* Skills */
.skills-section {
  overflow: hidden;
  background: var(--bg);
}

.skills-glow {
  position: absolute;
  top: 24%;
  right: -20rem;
  width: 46rem;
  height: 46rem;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 7rem rgba(var(--accent-rgb), 0.012),
    0 0 0 14rem rgba(var(--accent-rgb), 0.01);
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 22px;
  align-items: stretch;
}

.skill-groups {
  display: grid;
  gap: 20px;
}

.skill-group {
  border: 1px solid var(--line);
  background: var(--surface);
}

.skill-group-heading {
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 0 clamp(22px, 3vw, 34px);
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.skill-group-heading span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.55rem;
}

.skill-group-heading h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.skill {
  display: flex;
  min-width: 0;
  min-height: 126px;
  padding: 20px 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-right: 1px solid var(--line);
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.skill:last-child {
  border-right: 0;
}

.skill img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  opacity: 0.78;
  filter: grayscale(1) brightness(0) invert(1);
  transition:
    opacity 0.25s ease,
    transform 0.35s var(--ease-out),
    filter 0.25s ease;
}

.skill span {
  max-width: 100%;
  overflow: hidden;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.skill:hover {
  background: rgba(255, 255, 255, 0.025);
}

.skill:hover img {
  opacity: 1;
  filter: grayscale(1) brightness(0) invert(1);
  transform: translateY(-4px) scale(1.06);
}

.code-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: #101213;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.code-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.code-card-bar > span {
  display: flex;
  gap: 6px;
}

.code-card-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3d3f3e;
}

.code-card-bar i:first-child {
  background: #ff665c;
}

.code-card-bar i:nth-child(2) {
  background: #ffbd45;
}

.code-card-bar i:nth-child(3) {
  background: var(--accent);
}

.code-card-bar b {
  color: #666865;
  font-family: var(--mono);
  font-size: 0.53rem;
  font-weight: 400;
}

.code-card pre {
  flex: 1;
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  overflow-x: auto;
  color: #c7c7c1;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.9vw, 0.83rem);
  line-height: 2.05;
  tab-size: 2;
}

.code-card code {
  font: inherit;
}

.code-purple { color: #c792ea; }
.code-blue { color: #82aaff; }
.code-green { color: #c3e88d; }
.code-orange { color: #f78c6c; }

.code-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.53rem;
}

.code-card-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.code-card-footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
}

.code-card-footer b {
  color: var(--text-soft);
  font-weight: 500;
}

/* Contact */
.contact-section {
  padding-bottom: clamp(90px, 11vw, 150px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 60%, rgba(var(--accent-rgb), 0.075), transparent 26rem),
    #0c0d0e;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-kicker {
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-copy h2 {
  max-width: 11ch;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: 48px;
  padding-bottom: 8px;
  gap: 24px;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(1.05rem, 2.1vw, 1.8rem);
  letter-spacing: -0.035em;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.contact-email svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  stroke-width: 1.5;
  transition: transform 0.3s var(--ease-out);
}

.contact-email:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-email:hover svg {
  transform: translate(3px, -3px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: clamp(80px, 10vw, 140px);
  border: 1px solid var(--line);
  background: var(--line);
}

.contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 128px;
  padding: 22px;
  gap: 16px;
  border: 0;
  color: var(--text);
  background: #0c0d0e;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.contact-card:hover {
  color: var(--bg);
  background: var(--accent);
}

.contact-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.45;
}

.contact-card > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.35;
}

.contact-card small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.contact-card strong {
  margin-top: 6px;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-card > i {
  font-size: 0.9rem;
  font-style: normal;
  transition: transform 0.3s var(--ease-out);
}

.contact-card:hover small {
  color: rgba(10, 11, 12, 0.62);
}

.contact-card:hover > i {
  transform: translate(3px, -3px);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 126px;
}

.footer-brand {
  justify-self: start;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.footer-brand span {
  margin-left: 3px;
  color: var(--accent);
  font-size: 0.55em;
  vertical-align: top;
}

.footer-inner > p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
}

.footer-meta a {
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.footer-meta a:hover {
  color: var(--accent);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 500;
  max-width: calc(100% - 48px);
  padding: 13px 17px;
  color: var(--bg);
  background: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 0.25s ease,
    transform 0.35s var(--ease-out);
}

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

/* Motion */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

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

@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover,
  .brand:hover,
  .header-contact:hover,
  .button:hover,
  .project-link:hover,
  .contact-card:hover {
    cursor: pointer;
  }
}

@keyframes title-in {
  from { opacity: 0; transform: translateY(105%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { opacity: 0.8; transform: scale(0.7); }
  75%, 100% { opacity: 0; transform: scale(1.6); }
}

@keyframes scroll-cue {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(5px); }
}

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

/* Responsive */
@media (max-width: 1180px) {
  :root {
    --page-gutter: clamp(24px, 3vw, 42px);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
    gap: 48px;
  }

  .hero-title {
    font-size: clamp(3.8rem, 6.2vw, 5.8rem);
  }

  .floating-card--top {
    right: -14px;
  }

  .floating-card--bottom {
    left: -24px;
  }

  .project-card--wide {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  }

  .skill {
    padding-inline: 9px;
  }

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

@media (max-width: 960px) {
  :root {
    --header-height: 72px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-actions .language-switch,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    position: relative;
    display: grid;
    place-items: center;
  }

  .site-header.menu-is-open {
    height: var(--header-height);
    border-color: var(--line);
    background: var(--bg);
  }

  .mobile-menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 190;
    display: block;
    visibility: hidden;
    overflow: hidden;
    background: var(--bg);
    opacity: 0;
    transform: translateY(-12px);
    transition:
      visibility 0s linear 0.45s,
      opacity 0.35s ease,
      transform 0.45s var(--ease-out);
  }

  .mobile-menu[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .mobile-menu-inner {
    display: flex;
    width: min(var(--container), calc(100% - (var(--page-gutter) * 2)));
    height: 100%;
    margin-inline: auto;
    padding: 38px 0 28px;
    flex-direction: column;
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu nav a {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: baseline;
    padding: 16px 0 18px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu nav a span {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.57rem;
  }

  .mobile-menu nav a b {
    font-size: clamp(2.1rem, 8vw, 4.2rem);
    font-weight: 550;
    letter-spacing: -0.055em;
    line-height: 1;
  }

  .mobile-menu-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: end;
    margin-top: auto;
  }

  .mobile-menu-footer > p {
    grid-column: 1 / -1;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .mobile-menu-footer > p::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
  }

  .mobile-socials {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.72rem;
  }

  .mobile-socials a:hover {
    color: var(--accent);
  }

  .mobile-languages {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-languages button {
    padding: 8px 11px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: transparent;
    font-family: var(--mono);
    font-size: 0.56rem;
    cursor: pointer;
  }

  .mobile-languages button[aria-pressed="true"] {
    border-color: var(--accent);
    color: var(--bg);
    background: var(--accent);
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 78px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(4.5rem, 11.5vw, 7.2rem);
  }

  .hero-visual {
    justify-self: center;
    width: min(78vw, 570px);
  }

  .floating-card--top {
    right: -28px;
  }

  .floating-card--bottom {
    left: -30px;
  }

  .scroll-cue {
    display: none;
  }

  .about-grid,
  .projects-intro,
  .skills-intro,
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-copy {
    max-width: 660px;
    padding-top: 0;
  }

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

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

  .projects-intro > p,
  .skills-intro > p {
    max-width: 620px;
    padding-bottom: 0;
  }

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

  .project-card--wide .project-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .project-card--wide .project-body > div:nth-child(2) {
    margin-block: 30px;
  }

  .project-card--standard,
  .project-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .skill-list {
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    overflow-x: auto;
  }

  .skill-group:last-child .skill-list {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }

  .code-card {
    min-height: 480px;
  }

  .contact-copy h2 {
    max-width: 12ch;
  }
}

@media (max-width: 680px) {
  :root {
    --page-gutter: 18px;
  }

  body {
    font-size: 15px;
  }

  .brand-copy small {
    display: none;
  }

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

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

  .hero-grid-bg {
    background-size: 46px 46px;
  }

  .availability {
    margin-bottom: 28px;
  }

  .hero-title {
    font-size: clamp(2.65rem, 12.4vw, 4.3rem);
    line-height: 0.91;
  }

  .title-line--accent {
    padding-left: 0.12em;
  }

  .hero-intro {
    margin-top: 24px;
    font-size: 0.97rem;
  }

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

  .button {
    justify-content: space-between;
    width: 100%;
  }

  .button svg {
    margin-left: auto;
  }

  .hero-meta {
    justify-content: space-between;
    gap: 20px;
  }

  .hero-visual {
    width: min(90vw, 460px);
  }

  .floating-card--top {
    top: 10%;
    right: -11px;
  }

  .floating-card--bottom {
    bottom: -30px;
    left: -12px;
    min-width: 215px;
  }

  .portrait-index {
    font-size: 3rem;
  }

  .tech-ticker {
    padding-block: 14px;
  }

  .section {
    padding: 94px 0;
  }

  .section-heading {
    margin-bottom: 46px;
  }

  .about-title,
  .projects-intro h2,
  .skills-intro h2,
  .contact-copy h2 {
    font-size: clamp(2.35rem, 11.2vw, 3.6rem);
  }

  .approach-grid {
    margin-top: 62px;
  }

  .approach-card {
    grid-template-columns: 30px 1fr;
    padding: 24px 20px;
  }

  .projects-grid {
    gap: 16px;
  }

  .project-card--wide .project-media,
  .project-card--standard .project-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .project-card--wide .project-body,
  .project-body {
    padding: 24px 20px;
  }

  .project-topline {
    margin-bottom: 44px;
  }

  .project-body h3 {
    font-size: 2.2rem;
  }

  .project-open {
    opacity: 1;
    transform: none;
  }

  .skill-group-heading {
    min-height: 64px;
    padding-inline: 20px;
  }

  .skill {
    min-height: 106px;
  }

  .skill-list,
  .skill-group:last-child .skill-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .skill {
    min-width: 92px;
    flex: 0 0 92px;
    scroll-snap-align: start;
  }

  .code-card {
    min-height: 420px;
  }

  .code-card pre {
    padding: 28px 22px;
    font-size: 0.68rem;
  }

  .contact-email {
    max-width: 100%;
    margin-top: 38px;
    font-size: clamp(0.95rem, 4.3vw, 1.25rem);
  }

  .contact-email span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    margin-top: 68px;
  }

  .contact-card {
    min-height: 104px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    min-height: 150px;
    gap: 30px;
  }

  .footer-inner > p {
    display: none;
  }

  .footer-meta {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .toast {
    right: 18px;
    bottom: 18px;
    max-width: calc(100% - 36px);
  }
}

@media (max-width: 400px) {
  .hero-copy,
  .hero-actions,
  .button {
    min-width: 0;
  }

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

  .button {
    padding-inline: 14px;
    font-size: 0.75rem;
  }

  .button svg {
    margin-left: 12px;
  }

  .hero-visual {
    width: 92vw;
  }

  .floating-card--top {
    right: -4px;
  }

  .floating-card--bottom {
    left: -5px;
  }

  .portrait-topline {
    font-size: 0.5rem;
  }
}

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

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

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