:root {
  --navy-950: #07111f;
  --navy-900: #0b1727;
  --navy-800: #12243a;
  --slate-700: #35465b;
  --slate-600: #506176;
  --slate-300: #b7c5d5;
  --slate-200: #d9e2ec;
  --slate-100: #eef3f7;
  --off-white: #f7fafc;
  --white: #ffffff;
  --cyan-300: #73e7ee;
  --cyan-400: #35d3df;
  --cyan-500: #13b9c7;
  --header-height: 78px;
  --page-width: 1200px;
  --content-width: 1080px;
  --border-light: rgba(80, 97, 118, 0.18);
  --shadow-md: 0 18px 48px rgba(12, 30, 50, 0.1);
  --shadow-lg: 0 30px 70px rgba(2, 10, 20, 0.32);
}

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

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

body {
  min-width: 320px;
  margin: 0;
  background: var(--off-white);
  color: var(--navy-900);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

ul {
  padding-left: 0;
}

::selection {
  background: rgba(53, 211, 223, 0.28);
  color: var(--navy-950);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid rgba(183, 197, 213, 0.14);
  background: rgba(7, 17, 31, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--page-width));
  height: 100%;
  margin: 0 auto;
}

.site-nav a,
.social-link,
.header-cta,
.button-primary,
.button-secondary {
  border-bottom: 0;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: max-content;
  color: var(--white);
}

.brand__mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
}

.brand__name {
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.35rem, 2.7vw, 2.4rem);
  margin-left: auto;
  margin-right: clamp(1.5rem, 4vw, 3.5rem);
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--slate-300);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan-400);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.social-link {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(183, 197, 213, 0.2);
  border-radius: 50%;
  color: var(--slate-300);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(53, 211, 223, 0.65);
  color: var(--cyan-300);
  transform: translateY(-2px);
}

.header-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--cyan-400);
  border-radius: 9px;
  background: var(--cyan-400);
  color: var(--navy-950);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: var(--cyan-300);
  background: var(--cyan-300);
  color: var(--navy-950);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(183, 197, 213, 0.22);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--white);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

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

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

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.25rem, 7vw, 6rem) 24px clamp(4.5rem, 7vw, 6.25rem);
  background:
    linear-gradient(115deg, rgba(18, 36, 58, 0.56), transparent 52%),
    var(--navy-950);
  color: var(--white);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(3.5rem, 7vw, 7rem);
  align-items: center;
  width: min(100%, var(--page-width));
  margin: 0 auto;
}

.hero__content,
.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__eyebrow,
.section-kicker {
  margin: 0 0 1.3rem;
  color: var(--cyan-300);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero__eyebrow span {
  margin: 0 0.55rem;
  color: rgba(183, 197, 213, 0.55);
}

.hero__title {
  max-width: 780px;
  margin: 0;
  color: var(--white);
  font-family: inherit;
  font-size: clamp(3rem, 5.6vw, 5rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.04;
  text-transform: none;
}

.hero__title span {
  color: var(--cyan-300);
}

.hero__lead {
  max-width: 680px;
  margin: 1.7rem 0 0;
  padding: 0;
  color: var(--slate-300);
  font-size: clamp(1.05rem, 1.7vw, 1.23rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.3rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button-primary {
  border: 1px solid var(--cyan-400);
  background: var(--cyan-400);
  color: var(--navy-950);
  box-shadow: 0 12px 32px rgba(19, 185, 199, 0.16);
}

.button-primary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--cyan-300);
  background: var(--cyan-300);
  color: var(--navy-950);
  transform: translateY(-2px);
}

.button-primary:hover svg,
.button-primary:focus-visible svg {
  transform: translateX(3px);
}

.button-secondary {
  border: 1px solid rgba(183, 197, 213, 0.3);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(115, 231, 238, 0.7);
  background: rgba(115, 231, 238, 0.08);
  color: var(--cyan-300);
  transform: translateY(-2px);
}

.hero__proof {
  display: grid;
  gap: 0.7rem;
  margin: 2.3rem 0 0;
  padding: 0;
  color: var(--slate-300);
  font-size: 0.87rem;
  line-height: 1.45;
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.proof-icon {
  display: inline-grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(53, 211, 223, 0.45);
  border-radius: 50%;
  background: rgba(53, 211, 223, 0.08);
  color: var(--cyan-300);
  font-size: 0.68rem;
  font-weight: 900;
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
}

.portrait-frame {
  position: relative;
  width: min(100%, 415px);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(115, 231, 238, 0.28);
  border-radius: 28px;
  background: var(--navy-800);
  box-shadow: var(--shadow-lg);
}

.portrait-frame::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 44%;
  border-radius: 0 0 27px 27px;
  background: linear-gradient(to top, rgba(7, 17, 31, 0.5), transparent);
  content: "";
  pointer-events: none;
}

.portrait-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 27px;
  object-fit: cover;
  object-position: 50% 19%;
}

.portrait-frame__accent {
  position: absolute;
  z-index: -1;
  top: -18px;
  right: -18px;
  width: 46%;
  height: 42%;
  border-top: 2px solid var(--cyan-400);
  border-right: 2px solid var(--cyan-400);
  border-radius: 0 32px 0 0;
  opacity: 0.8;
}

.portrait-card {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: -52px;
  display: flex;
  min-width: 285px;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(183, 197, 213, 0.18);
  border-radius: 13px;
  background: rgba(11, 23, 39, 0.93);
  box-shadow: 0 18px 46px rgba(2, 10, 20, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.portrait-card__status {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 5px rgba(53, 211, 223, 0.12);
}

.portrait-card strong,
.portrait-card span {
  display: block;
}

.portrait-card strong {
  color: var(--white);
  font-size: 0.83rem;
  font-weight: 750;
  line-height: 1.35;
}

.portrait-card div > span {
  margin-top: 0.2rem;
  color: var(--slate-300);
  font-size: 0.72rem;
  line-height: 1.4;
}

.hero__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero__glow--one {
  top: 7%;
  right: 3%;
  width: 430px;
  height: 430px;
  background: radial-gradient(
    circle,
    rgba(19, 185, 199, 0.16),
    transparent 70%
  );
}

.hero__glow--two {
  bottom: -210px;
  left: 18%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(45, 91, 138, 0.18), transparent 70%);
}

.about-summary {
  padding: clamp(4.5rem, 8vw, 7rem) 24px;
  border-bottom: 1px solid var(--slate-200);
  background: var(--off-white);
}

.about-summary__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 7.5rem);
  width: min(100%, 1080px);
  margin: 0 auto;
}

.about-summary .section-kicker {
  margin-bottom: 1rem;
  color: var(--cyan-500);
}

.about-summary h2 {
  max-width: 440px;
  margin: 0;
  color: var(--navy-900);
  font-family: inherit;
  font-size: clamp(2rem, 3.7vw, 3.15rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-transform: none;
}

.about-summary__copy {
  padding-top: 0.15rem;
}

.about-summary__copy p {
  margin: 0;
  color: var(--slate-600);
  font-size: 1.03rem;
  line-height: 1.82;
}

.about-summary__copy p + p {
  margin-top: 1.3rem;
}

.section-shell {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(2.5rem, 8vw, 7.5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 4.75rem);
}

.section-heading .section-kicker {
  margin-bottom: 1rem;
  color: var(--cyan-500);
}

.section-heading h2 {
  max-width: 650px;
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(2.2rem, 4vw, 3.45rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.section-heading__copy {
  max-width: 520px;
  margin: 0;
  color: var(--slate-600);
  font-size: 1.02rem;
  line-height: 1.8;
}

.skills-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-100);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.skill-card {
  position: relative;
  min-height: 330px;
  padding: clamp(1.65rem, 3vw, 2.35rem);
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(12, 30, 50, 0.045);
}

.skill-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 115px;
  height: 115px;
  border-radius: 0 20px 0 100%;
  background: linear-gradient(
    135deg,
    rgba(53, 211, 223, 0.08),
    transparent 72%
  );
  content: "";
  pointer-events: none;
}

.skill-card--accent {
  border-color: rgba(19, 185, 199, 0.34);
  background:
    linear-gradient(145deg, rgba(53, 211, 223, 0.08), transparent 48%),
    var(--white);
}

.skill-card__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-card__icon {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(19, 185, 199, 0.22);
  border-radius: 13px;
  background: rgba(53, 211, 223, 0.08);
  color: var(--cyan-500);
}

.skill-card__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.skill-card h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.skill-card > p {
  max-width: 540px;
  margin: 1.4rem 0 1.55rem;
  color: var(--slate-600);
  font-size: 0.94rem;
  line-height: 1.72;
}

.skill-list,
.technology-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  list-style: none;
}

.skill-list li {
  padding: 0.4rem 0.66rem;
  border: 1px solid rgba(80, 97, 118, 0.16);
  border-radius: 7px;
  background: var(--off-white);
  color: var(--slate-700);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
}

.skill-list .skill-chip--core {
  border-color: rgba(19, 185, 199, 0.28);
  background: rgba(53, 211, 223, 0.1);
  color: #087c87;
}

.projects-section {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--white);
}

.section-heading--projects {
  margin-bottom: clamp(3.25rem, 7vw, 5.25rem);
}

.featured-projects {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.project-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  background: var(--off-white);
  box-shadow: var(--shadow-md);
}

.project-card--reverse .project-card__visual {
  order: 2;
}

.project-card--reverse .project-card__content {
  order: 1;
}

.project-card__visual {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-bottom: 0;
  text-decoration: none;
}

.project-card__visual--product {
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(53, 211, 223, 0.18),
      transparent 36%
    ),
    linear-gradient(145deg, var(--navy-800), var(--navy-950));
}

.browser-preview {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(183, 197, 213, 0.2);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 24px 55px rgba(2, 10, 20, 0.38);
  transform: perspective(1200px) rotateY(2deg);
}

.browser-preview__bar {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-bottom: 1px solid var(--slate-200);
  background: #edf2f6;
}

.browser-preview__bar > span:not(.browser-preview__address) {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9bacbd;
}

.browser-preview__bar > span:nth-child(1) {
  background: #ed7d7d;
}

.browser-preview__bar > span:nth-child(2) {
  background: #e6bc5d;
}

.browser-preview__bar > span:nth-child(3) {
  background: #6fc78f;
}

.browser-preview__address {
  min-width: 0;
  margin-left: 7px;
  color: var(--slate-600);
  font-size: 0.55rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-preview > img {
  width: 100%;
  height: auto;
}

.project-card__visual--video {
  display: block;
  background: var(--navy-900);
  color: var(--white);
}

.project-card__visual--video::after,
.compact-project__visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 17, 31, 0.74), transparent 48%),
    linear-gradient(rgba(7, 17, 31, 0.08), rgba(7, 17, 31, 0.08));
  content: "";
  pointer-events: none;
  transition: background-color 200ms ease;
}

.project-card__visual--video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.project-card__visual--video:hover img,
.project-card__visual--video:focus-visible img,
.compact-project__visual:hover img,
.compact-project__visual:focus-visible img {
  transform: scale(1.025);
}

.play-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(7, 17, 31, 0.78);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(2, 10, 20, 0.32);
  transform: translate(-50%, -50%);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.play-button svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.project-card__visual--video:hover .play-button,
.project-card__visual--video:focus-visible .play-button,
.compact-project__visual:hover .play-button,
.compact-project__visual:focus-visible .play-button {
  background: var(--cyan-400);
  color: var(--navy-950);
  transform: translate(-50%, -50%) scale(1.05);
}

.video-label {
  position: absolute;
  z-index: 2;
  right: 1.6rem;
  bottom: 1.4rem;
  left: 1.6rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.project-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.2rem, 4vw, 3.75rem);
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin-bottom: 1.2rem;
  color: var(--slate-600);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-badge,
.contribution-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(19, 185, 199, 0.28);
  border-radius: 999px;
  background: rgba(53, 211, 223, 0.1);
  color: #087c87;
  font-weight: 800;
}

.project-badge {
  padding: 0.32rem 0.65rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.project-card__content h3 {
  max-width: 520px;
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.project-card__lead {
  margin: 1.25rem 0 0;
  color: var(--slate-600);
  font-size: 1rem;
  line-height: 1.75;
}

.project-highlights {
  display: grid;
  gap: 0.76rem;
  margin: 1.55rem 0 0;
  color: var(--slate-700);
  font-size: 0.88rem;
  line-height: 1.6;
  list-style: none;
}

.project-highlights li {
  position: relative;
  padding-left: 1.35rem;
}

.project-highlights li::before {
  position: absolute;
  top: 0.6rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(53, 211, 223, 0.1);
  content: "";
}

.technology-list {
  margin-top: 1.6rem;
}

.technology-list li {
  padding: 0.34rem 0.57rem;
  border: 1px solid rgba(80, 97, 118, 0.15);
  border-radius: 6px;
  background: var(--white);
  color: var(--slate-600);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
}

.tech-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.65rem 0 0;
}

.tech-stack__group {
  min-width: 0;
}

.tech-stack__group dt {
  margin-bottom: 0.55rem;
  color: var(--navy-800);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tech-stack__group dd {
  margin: 0;
}

.tech-stack .technology-list {
  margin-top: 0;
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.85rem;
}

.project-card__actions .button-primary {
  min-height: 47px;
  padding: 0.68rem 1rem;
  font-size: 0.82rem;
}

.text-link,
.compact-project__links a,
.footer-links a,
.contact-email {
  border-bottom: 0;
  text-decoration: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.4rem 0;
  color: var(--navy-800);
  font-size: 0.82rem;
  font-weight: 800;
}

.text-link span,
.compact-project__links span,
.footer-links span {
  color: var(--cyan-500);
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span,
.compact-project__links a:hover span,
.compact-project__links a:focus-visible span,
.footer-links a:hover span,
.footer-links a:focus-visible span {
  transform: translate(2px, -2px);
}

.project-note {
  margin: 1.05rem 0 0;
  color: var(--slate-600);
  font-size: 0.7rem;
  font-style: italic;
  line-height: 1.5;
}

.additional-projects__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 8vw, 6.5rem);
  align-items: end;
  margin: clamp(5rem, 10vw, 8rem) 0 2.5rem;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--slate-200);
}

.additional-projects__heading .section-kicker {
  margin-bottom: 0.8rem;
  color: var(--cyan-500);
}

.additional-projects__heading h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.additional-projects__heading > p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.94rem;
  line-height: 1.75;
}

.additional-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.compact-project {
  display: grid;
  grid-template-columns: minmax(190px, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: var(--off-white);
}

.compact-project__visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-bottom: 0;
  background: var(--navy-900);
}

.compact-project__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.play-button--small {
  width: 52px;
  height: 52px;
}

.play-button--small svg {
  width: 21px;
  height: 21px;
}

.compact-project__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.contribution-badge {
  padding: 0.3rem 0.58rem;
  font-size: 0.59rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.compact-project h4 {
  margin: 0.85rem 0 0;
  color: var(--navy-900);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.compact-project__content > p {
  margin: 0.85rem 0 0;
  color: var(--slate-600);
  font-size: 0.84rem;
  line-height: 1.68;
}

.technology-list--compact {
  margin-top: 1.15rem;
}

.technology-list--compact li {
  background: var(--white);
  font-size: 0.62rem;
}

.compact-project__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.compact-project__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--navy-800);
  font-size: 0.73rem;
  font-weight: 800;
}

.contact-section {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) 24px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(18, 36, 58, 0.62), transparent 58%),
    var(--navy-950);
  color: var(--white);
  isolation: isolate;
}

.contact-section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
}

.contact-section__glow {
  position: absolute;
  z-index: -1;
  top: -180px;
  left: -150px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(19, 185, 199, 0.18),
    transparent 70%
  );
  pointer-events: none;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
  gap: clamp(3.5rem, 8vw, 7rem);
  align-items: center;
  width: min(100%, var(--page-width));
  margin: 0 auto;
}

.contact-copy .section-kicker {
  margin-bottom: 1rem;
}

.contact-copy h2 {
  max-width: 560px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.35rem, 4.3vw, 3.7rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.contact-copy > p:not(.section-kicker) {
  max-width: 560px;
  margin: 1.5rem 0 0;
  color: var(--slate-300);
  font-size: 1rem;
  line-height: 1.78;
}

.contact-email {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
  color: var(--white);
}

.contact-email__icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(115, 231, 238, 0.36);
  border-radius: 12px;
  background: rgba(53, 211, 223, 0.08);
  color: var(--cyan-300);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.contact-email__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-email small,
.contact-email strong {
  display: block;
}

.contact-email small {
  margin-bottom: 0.18rem;
  color: var(--slate-300);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact-email strong {
  font-size: clamp(0.82rem, 2vw, 0.94rem);
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.contact-email:hover .contact-email__icon,
.contact-email:focus-visible .contact-email__icon {
  border-color: var(--cyan-300);
  background: rgba(53, 211, 223, 0.14);
  transform: translateY(-2px);
}

.contact-panel {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(183, 197, 213, 0.17);
  border-radius: 20px;
  background: rgba(11, 23, 39, 0.86);
  box-shadow: 0 28px 65px rgba(2, 10, 20, 0.3);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-field {
  display: grid;
  gap: 0.5rem;
}

.form-field label {
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(183, 197, 213, 0.2);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--white);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.form-field input {
  height: 51px;
  padding: 0 0.95rem;
}

.form-field textarea {
  min-height: 150px;
  padding: 0.85rem 0.95rem;
  line-height: 1.55;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(183, 197, 213, 0.58);
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: rgba(183, 197, 213, 0.34);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--cyan-400);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 0 0 3px rgba(53, 211, 223, 0.12);
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
  margin-top: 0.15rem;
}

.form-submit {
  min-width: 160px;
  border: 0;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-status {
  flex: 1 1 190px;
  margin: 0;
  color: var(--slate-300);
  font-size: 0.75rem;
  line-height: 1.5;
}

.form-status.is-success {
  color: #8eebc0;
}

.form-status.is-error {
  color: #ffb3b3;
}

.site-footer {
  padding: 3.2rem 24px 1.6rem;
  border-top: 1px solid rgba(183, 197, 213, 0.12);
  background: #050d18;
  color: var(--slate-300);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.9fr) auto;
  gap: 2rem;
  align-items: center;
  width: min(100%, var(--page-width));
  margin: 0 auto;
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-identity img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
}

.footer-identity strong,
.footer-identity span {
  display: block;
}

.footer-identity strong {
  color: var(--white);
  font-size: 0.87rem;
  font-weight: 750;
}

.footer-identity span {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  line-height: 1.4;
}

.footer-proof {
  max-width: 370px;
  margin: 0;
  font-size: 0.71rem;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.25rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--slate-300);
  font-size: 0.72rem;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

.site-footer__bottom {
  width: min(100%, var(--page-width));
  margin: 2.2rem auto 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(183, 197, 213, 0.1);
}

.site-footer__bottom p {
  margin: 0;
  color: rgba(183, 197, 213, 0.58);
  font-size: 0.65rem;
}

.error-page {
  display: grid;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(19, 185, 199, 0.18),
      transparent 34%
    ),
    var(--navy-950);
}

.error-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  width: min(100%, 920px);
  overflow: hidden;
  border: 1px solid rgba(183, 197, 213, 0.18);
  border-radius: 24px;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
}

.error-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.error-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2.25rem, 6vw, 4.5rem);
}

.error-card__content .section-kicker {
  margin-bottom: 0.9rem;
}

.error-card__content h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.error-card__content > p:not(.section-kicker) {
  margin: 1.25rem 0 1.8rem;
  color: var(--slate-300);
  line-height: 1.75;
}

.site-nav a:focus-visible,
.social-link:focus-visible,
.header-cta:focus-visible,
.nav-toggle:focus-visible,
.button-primary:focus-visible,
.button-secondary:focus-visible,
.text-link:focus-visible,
.project-card__visual:focus-visible,
.compact-project__visual:focus-visible,
.compact-project__links a:focus-visible,
.contact-email:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(115, 231, 238, 0.55);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.75fr);
    gap: 3rem;
  }

  .hero__title {
    font-size: clamp(2.8rem, 5.7vw, 4.2rem);
  }

  .portrait-card {
    left: -28px;
  }

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

  .project-card--reverse .project-card__visual,
  .project-card--reverse .project-card__content {
    order: initial;
  }

  .project-card__visual {
    min-height: 430px;
  }

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

  .footer-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 70px;
  }

  .site-header__inner {
    width: min(calc(100% - 32px), var(--page-width));
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0.75rem 24px 1.25rem;
    border-bottom: 1px solid rgba(183, 197, 213, 0.16);
    background: rgba(7, 17, 31, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

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

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(183, 197, 213, 0.1);
    font-size: 0.95rem;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

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

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }

  .hero__content {
    max-width: 720px;
  }

  .hero__visual {
    justify-content: center;
  }

  .portrait-frame {
    width: min(82vw, 400px);
  }

  .about-summary__inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .about-summary h2 {
    max-width: 620px;
  }

  .section-heading,
  .additional-projects__heading {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    align-items: start;
  }

  .section-heading__copy,
  .additional-projects__heading > p {
    max-width: 650px;
  }

  .additional-projects {
    grid-template-columns: 1fr;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .contact-copy {
    max-width: 680px;
  }

  .contact-panel {
    width: 100%;
    max-width: 680px;
  }
}

@media (max-width: 600px) {
  .brand__name {
    display: none;
  }

  .social-link {
    display: none;
  }

  .header-cta {
    margin-left: 0;
  }

  .hero {
    padding-right: 20px;
    padding-bottom: 5.5rem;
    padding-left: 20px;
  }

  .hero__eyebrow {
    font-size: 0.67rem;
    letter-spacing: 0.14em;
  }

  .hero__eyebrow span {
    margin: 0 0.3rem;
  }

  .hero__title {
    font-size: clamp(2.5rem, 12vw, 3.25rem);
    letter-spacing: -0.05em;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .portrait-card {
    right: 14px;
    bottom: 16px;
    left: 14px;
    min-width: 0;
  }

  .about-summary {
    padding-right: 20px;
    padding-left: 20px;
  }

  .section-shell {
    width: min(calc(100% - 40px), var(--page-width));
  }

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

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

  .project-card--featured {
    border-radius: 18px;
  }

  .project-card__visual {
    min-height: 290px;
  }

  .project-card__visual--product {
    padding: 1.1rem;
  }

  .browser-preview {
    transform: none;
  }

  .project-card__content {
    padding: 1.65rem;
  }

  .project-card__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .project-card__actions .text-link {
    justify-content: center;
  }

  .tech-stack {
    grid-template-columns: 1fr;
  }

  .additional-projects__heading {
    margin-top: 5rem;
  }

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

  .compact-project__visual {
    min-height: 230px;
    aspect-ratio: 16 / 9;
  }

  .contact-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .contact-panel {
    padding: 1.25rem;
  }

  .form-submit-row {
    display: grid;
  }

  .form-submit {
    width: 100%;
  }

  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-links {
    grid-column: auto;
  }

  .error-page {
    padding: 20px;
  }

  .error-card {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .error-card__visual {
    max-height: 260px;
  }

  .error-card__content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 390px) {
  .header-cta {
    display: none;
  }
}

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

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