:root {
  --ink: #151a2d;
  --ink-soft: #5e6477;
  --paper: #ffffff;
  --paper-soft: #f6f7fb;
  --paper-purple: #f1effc;
  --line: #e2e5ed;
  --purple: #6d5ed8;
  --purple-deep: #4f43b2;
  --purple-dark: #201d42;
  --coral: #ff806c;
  --coral-soft: #ffb19f;
  --mint: #58e2bd;
  --blue: #4b8cff;
  --shadow-sm: 0 12px 35px rgba(27, 27, 56, 0.08);
  --shadow-md: 0 24px 70px rgba(27, 27, 56, 0.13);
  --shadow-purple: 0 25px 80px rgba(71, 53, 166, 0.25);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --shell: 1180px;
  --section: clamp(5.25rem, 9vw, 8.75rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

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

button {
  color: inherit;
}

svg {
  display: block;
}

::selection {
  color: #fff;
  background: var(--purple);
}

:focus-visible {
  outline: 3px solid rgba(255, 128, 108, 0.85);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 2.5rem), var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--purple);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--coral-soft);
}

.section-heading h2,
.about__content h2,
.proof-section h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.section-heading h2 span,
.about__content h2 span,
.contact-card h2 span {
  color: var(--coral);
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button svg,
.text-link svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

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

.button:hover svg,
.text-link:hover svg {
  transform: translateX(3px);
}

.button--light {
  color: var(--purple-deep);
  background: #fff;
  box-shadow: 0 12px 30px rgba(37, 24, 108, 0.18);
}

.button--light:hover {
  box-shadow: 0 16px 38px rgba(37, 24, 108, 0.24);
}

.button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.14);
}

.button--primary {
  color: #fff;
  background: var(--purple);
  box-shadow: 0 12px 32px rgba(76, 59, 178, 0.25);
}

.button--primary:hover {
  background: var(--purple-deep);
  box-shadow: 0 16px 38px rgba(76, 59, 178, 0.3);
}

.button--full {
  width: 100%;
}

/* Header and hero */
.site-header {
  position: relative;
  min-height: 810px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 8%, rgba(115, 150, 255, 0.92), transparent 34%),
    radial-gradient(circle at 91% 90%, rgba(151, 84, 185, 0.8), transparent 30%),
    linear-gradient(126deg, #667ce4 0%, #7161d7 45%, #7651b2 100%);
  isolation: isolate;
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.14;
  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='.28'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-orbs {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
}

.orb--one {
  top: 14%;
  left: 5%;
  width: 90px;
  height: 90px;
}

.orb--two {
  top: 6%;
  right: 13%;
  width: 180px;
  height: 180px;
}

.orb--three {
  right: 3%;
  bottom: 18%;
  width: 130px;
  height: 130px;
}

.orb--four {
  bottom: 13%;
  left: 33%;
  width: 45px;
  height: 45px;
}

.navbar {
  position: relative;
  z-index: 50;
  top: 1.3rem;
  display: flex;
  width: min(calc(100% - 2.5rem), 650px);
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0.48rem 0.65rem 0.48rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(43, 34, 112, 0.16);
  transition: width 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.navbar.is-scrolled {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  width: min(calc(100% - 2.5rem), 760px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(28, 25, 68, 0.17);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #8390ee, #5e50c6);
  font-size: 0.73rem;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand__name {
  display: none;
  font-size: 0.82rem;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link,
.nav-contact {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 999px;
  color: #5b6071;
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-contact:hover {
  color: var(--purple-deep);
  background: var(--paper-purple);
}

.nav-contact {
  color: #fff;
  background: var(--purple);
}

.nav-contact:hover {
  color: #fff;
  background: var(--purple-deep);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper-purple);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 2.5px auto;
  background: var(--purple-dark);
  transition: transform 180ms ease;
}

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

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

.mobile-menu {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: none;
  padding: 8rem 1.5rem 2rem;
  color: #fff;
  background: rgba(30, 27, 66, 0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__inner {
  display: grid;
  gap: 0.3rem;
}

.mobile-menu__eyebrow {
  margin: 0 0 1rem;
  color: var(--coral-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mobile-menu a,
.mobile-menu button {
  width: 100%;
  padding: 0.45rem 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  text-align: left;
}

.mobile-menu__note {
  position: absolute;
  right: 1.5rem;
  bottom: 2rem;
  left: 1.5rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 735px;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
  padding-top: 7rem;
  padding-bottom: 4.8rem;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 640px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.8rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.availability__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(88, 226, 189, 0.12);
}

.availability__dot::after {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(88, 226, 189, 0.65);
  border-radius: inherit;
  content: "";
  animation: ping 2.2s ease-out infinite;
}

.hero__kicker {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.66);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 690px;
  margin: 0;
  font-size: clamp(3.7rem, 7.2vw, 6.35rem);
  font-weight: 750;
  letter-spacing: -0.068em;
  line-height: 0.9;
}

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

.hero__description {
  min-height: 2rem;
  margin: 1.65rem 0 0;
  color: #fff;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 600;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 0.25rem;
  background: var(--coral-soft);
  transform: translateY(0.12em);
  animation: blink 900ms steps(1) infinite;
}

.hero__support {
  max-width: 590px;
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.91rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__metrics {
  display: grid;
  max-width: 590px;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.metric {
  display: grid;
  gap: 0.2rem;
}

.metric strong {
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.metric span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.65rem;
}

.hero__visual {
  position: relative;
  z-index: 2;
}

.code-halo {
  position: absolute;
  z-index: -1;
  inset: -28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 143, 114, 0.24), transparent 64%);
  filter: blur(25px);
}

.code-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #171d31;
  box-shadow: 0 35px 80px rgba(17, 16, 50, 0.35);
  transform: rotate(1deg);
}

.code-window__bar,
.code-window__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.42);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.57rem;
}

.code-window__bar {
  min-height: 46px;
  padding-inline: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.window-dots {
  display: flex;
  gap: 0.36rem;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b62;
}

.window-dots span:nth-child(2) {
  background: #ffca55;
}

.window-dots span:nth-child(3) {
  background: #4bd89f;
}

.code-window__status {
  color: var(--mint);
}

.code-window__body {
  padding: 1.6rem 1.5rem 1.8rem;
  color: #d8e1f5;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.65rem, 1.2vw, 0.82rem);
  line-height: 2;
}

.code-line {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.55rem;
  white-space: nowrap;
}

.code-line i {
  color: #ba8cff;
  font-style: normal;
}

.code-line b {
  color: #63e6c0;
  font-weight: 500;
}

.code-line em {
  color: #ff987f;
  font-style: normal;
}

.code-muted {
  color: #46506b;
}

.code-line--comment {
  color: #697794;
}

.code-window__footer {
  min-height: 38px;
  padding-inline: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.code-window__footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.code-window__footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(88, 226, 189, 0.7);
}

.floating-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 154px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.floating-note--top {
  top: -3.1rem;
  right: -2rem;
  transform: rotate(2deg);
}

.floating-note--bottom {
  bottom: -3rem;
  left: -2.5rem;
  transform: rotate(-2deg);
}

.floating-note__icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--purple);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
}

.floating-note > span:last-child {
  display: grid;
  color: var(--ink-soft);
  font-size: 0.57rem;
  line-height: 1.45;
}

.floating-note strong {
  color: var(--ink);
  font-size: 0.68rem;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 1.6rem;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.62);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@keyframes ping {
  0% { opacity: 0.8; transform: scale(0.5); }
  70%, 100% { opacity: 0; transform: scale(1.3); }
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

/* Intro strip */
.intro-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.intro-strip__inner {
  display: grid;
  min-height: 124px;
  grid-template-columns: minmax(0, 1.25fr) minmax(70px, 0.3fr) minmax(240px, 0.75fr);
  align-items: center;
  gap: 2rem;
}

.intro-strip p,
.intro-strip span {
  margin: 0;
}

.intro-strip p {
  max-width: 650px;
  font-size: clamp(1rem, 2vw, 1.22rem);
  letter-spacing: -0.02em;
}

.intro-strip strong {
  color: var(--purple);
}

.intro-strip__line {
  height: 1px;
  background: var(--line);
}

.intro-strip span {
  color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  line-height: 1.8;
}

/* Services */
.services {
  background:
    linear-gradient(90deg, rgba(109, 94, 216, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(109, 94, 216, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
  margin-bottom: 4rem;
}

.section-heading--split h2 {
  max-width: 820px;
}

.section-heading--split > p {
  margin: 0 0 0.4rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.85;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 1rem;
}

.service-card {
  position: relative;
  min-height: 430px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 35px rgba(34, 38, 67, 0.035);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.service-card::after {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(109, 94, 216, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 28px rgba(109, 94, 216, 0.04);
}

.service-card:hover {
  border-color: rgba(109, 94, 216, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.service-card--featured {
  color: #fff;
  border-color: var(--purple);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 128, 108, 0.24), transparent 36%),
    linear-gradient(145deg, var(--purple-deep), var(--purple));
  box-shadow: var(--shadow-purple);
}

.service-card--featured::after {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.04);
}

.service-card__number {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  color: #a4a8b7;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.service-card--featured .service-card__number {
  color: rgba(255, 255, 255, 0.5);
}

.service-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 3.4rem;
  place-items: center;
  border-radius: 15px;
  color: var(--purple);
  background: var(--paper-purple);
}

.service-card--featured .service-card__icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.service-card h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.035em;
}

.service-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.8;
}

.service-card--featured > p {
  color: rgba(255, 255, 255, 0.72);
}

.service-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-card--featured ul {
  border-color: rgba(255, 255, 255, 0.16);
}

.service-card li {
  position: relative;
  padding-left: 1rem;
  color: #565c6e;
  font-size: 0.72rem;
}

.service-card--featured li {
  color: rgba(255, 255, 255, 0.75);
}

.service-card li::before {
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

/* Stack */
.stack-section {
  position: relative;
  padding-block: clamp(5.3rem, 8vw, 7.4rem);
  color: #fff;
  background:
    radial-gradient(circle at 84% 10%, rgba(109, 94, 216, 0.22), transparent 25%),
    #171a2c;
  overflow: hidden;
}

.stack-section::before {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  content: "";
}

.stack-section__heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: end;
  gap: 4rem;
  margin-bottom: 3.6rem;
}

.stack-section__heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.3rem, 4.5vw, 4.2rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.stack-section__heading > p {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.stack-marquee {
  position: relative;
  display: grid;
  gap: 0.85rem;
  margin-block: 1rem 4rem;
}

.stack-marquee::before,
.stack-marquee::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 12vw;
  content: "";
  pointer-events: none;
}

.stack-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #171a2c, transparent);
}

.stack-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, #171a2c, transparent);
}

.stack-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.stack-group {
  display: flex;
  gap: 0.7rem;
  padding-right: 0.7rem;
}

.stack-track--forward {
  animation: marquee-forward 42s linear infinite;
}

.stack-track--reverse {
  animation: marquee-reverse 46s linear infinite;
}

.stack-marquee:hover .stack-track {
  animation-play-state: paused;
}

.tech-chip {
  display: flex;
  min-width: 148px;
  min-height: 68px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(7px);
}

.tech-chip img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.stack-principles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stack-principles > div {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.6rem;
}

.stack-principles span {
  color: var(--coral);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
}

.stack-principles p {
  display: grid;
  gap: 0.22rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  line-height: 1.7;
}

.stack-principles strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
}

@keyframes marquee-forward {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* About */
.about {
  background: var(--paper);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(4rem, 9vw, 8.5rem);
}

.about__visual {
  position: relative;
  min-height: 610px;
}

.portrait-card,
.work-card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.portrait-card {
  z-index: 2;
  top: 0;
  left: 0;
  width: 67%;
  height: 490px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.28), transparent 35%),
    linear-gradient(145deg, #8176e2, #5b4ac4);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.portrait-card__label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: #fff;
  background: rgba(26, 26, 54, 0.46);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.work-card {
  right: 0;
  bottom: 0;
  width: 57%;
  height: 360px;
  border: 8px solid #fff;
  transform: rotate(2.5deg);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__stamp {
  position: absolute;
  z-index: 4;
  bottom: 34px;
  left: 5%;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 18px 42px rgba(255, 128, 108, 0.28);
  transform: rotate(-8deg);
}

.about__stamp::before {
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  content: "";
}

.about__stamp strong {
  position: absolute;
  font-size: 1.35rem;
}

.about__stamp span {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
}

.about__stamp span:first-child {
  top: 20px;
}

.about__stamp span:last-child {
  bottom: 20px;
}

.about__content h2 {
  max-width: 720px;
}

.about__lead {
  margin: 2rem 0 1rem;
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  font-weight: 500;
  line-height: 1.8;
}

.about__content > p:not(.eyebrow):not(.about__lead) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.about__values {
  display: grid;
  gap: 0;
  margin-block: 2.2rem;
  border-block: 1px solid var(--line);
}

.about__values > div {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.75rem;
  padding-block: 1rem;
}

.about__values > div + div {
  border-top: 1px solid var(--line);
}

.about__values span {
  color: var(--coral);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.61rem;
}

.about__values p {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.about__values strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Portfolio */
.portfolio {
  background:
    radial-gradient(circle at 9% 4%, rgba(109, 94, 216, 0.08), transparent 28%),
    var(--paper-soft);
}

.portfolio__heading {
  display: grid;
  max-width: 900px;
  justify-items: center;
  margin: 0 auto 3rem;
  text-align: center;
}

.portfolio__heading > p:last-child {
  max-width: 700px;
  margin: 1.4rem auto 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-button {
  min-height: 38px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: #fff;
  border-color: var(--purple);
  background: var(--purple);
}

.project-toolbar > p {
  margin: 0;
  color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.project-card {
  position: relative;
  display: grid;
  grid-column: span 6;
  min-height: 530px;
  grid-template-rows: 290px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 12px 35px rgba(31, 33, 56, 0.045);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.project-card[data-size="wide"] {
  grid-column: span 12;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  grid-template-rows: 1fr;
  min-height: 490px;
}

.project-card:hover {
  border-color: rgba(109, 94, 216, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.project-card.is-hidden {
  display: none;
}

.project-card__media {
  position: relative;
  min-height: 0;
  padding: 2rem;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.55), transparent 42%),
    #e7e8ed;
  overflow: hidden;
}

.project-card[data-size="wide"] .project-card__media {
  min-height: 490px;
}

.project-card__media::before {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: linear-gradient(rgba(31, 32, 57, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 32, 57, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
}

.project-card__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(21, 25, 45, 0.19);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .project-card__media img {
  transform: scale(1.025);
}

.project-card__index {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.85rem;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  backdrop-filter: blur(10px);
}

.project-card__content {
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
}

.project-card__category {
  margin: 0 0 0.65rem;
  color: var(--purple);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  letter-spacing: -0.04em;
}

.project-card__summary {
  margin: 0.8rem 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.75;
}

.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
}

.project-card__stack span,
.project-modal__stack span {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #676c7e;
  background: var(--paper-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.52rem;
}

.project-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.project-card__details,
.project-card__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
}

.project-card__live {
  color: var(--purple);
}

.project-card__details svg,
.project-card__live svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.project-card__live svg {
  transition: transform 180ms ease;
}

.project-card__live:hover svg {
  transform: translate(2px, -2px);
}

.noscript-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.noscript-projects p {
  width: 100%;
}

.noscript-projects a {
  color: var(--purple);
  text-decoration: underline;
}

/* Process */
.proof-section {
  padding-block: var(--section);
  color: #fff;
  background:
    radial-gradient(circle at 10% 100%, rgba(255, 128, 108, 0.15), transparent 27%),
    var(--purple-dark);
}

.proof-section__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.proof-section h2 {
  max-width: 500px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.process-list > div {
  min-height: 220px;
  padding: 1.7rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.process-list span {
  color: var(--coral);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.61rem;
}

.process-list h3 {
  margin: 2.1rem 0 0.55rem;
  font-size: 1.1rem;
}

.process-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  line-height: 1.7;
}

/* Contact and footer */
.contact-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: #fff;
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.5fr);
  gap: clamp(2rem, 7vw, 6rem);
  padding: clamp(2.2rem, 6vw, 5rem);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.06), transparent 35%),
    linear-gradient(135deg, #5c50c8, #7358c7 60%, #8b55a7);
  box-shadow: var(--shadow-purple);
  overflow: hidden;
}

.contact-card::after {
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 50px rgba(255, 255, 255, 0.035), 0 0 0 100px rgba(255, 255, 255, 0.02);
}

.contact-card__glow {
  position: absolute;
  top: -160px;
  left: 28%;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(255, 128, 108, 0.2);
  filter: blur(50px);
}

.contact-card__copy,
.contact-card__actions,
.contact-card__meta {
  position: relative;
  z-index: 2;
}

.contact-card h2 {
  max-width: 780px;
}

.contact-card__copy > p:last-child {
  max-width: 670px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
}

.contact-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.8rem;
}

.contact-card__meta {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
}

.contact-card__meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.78);
}

.contact-card__meta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.footer {
  color: #fff;
  background: #151727;
}

.footer__top,
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer__top {
  min-height: 150px;
}

.brand--footer .brand__name {
  display: inline;
}

.footer__top > p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.73rem;
  text-align: center;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 600;
}

.linkedin-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer__bottom {
  min-height: 82px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.58rem;
}

.footer__bottom > div {
  display: flex;
  gap: 1.2rem;
}

.footer__bottom a,
.footer__bottom button {
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.56);
  background: transparent;
  cursor: pointer;
  font-size: 0.62rem;
}

.footer__bottom a:hover,
.footer__bottom button:hover {
  color: #fff;
}

/* Dialogs and floating contact */
.floating-contact {
  position: fixed;
  z-index: 90;
  right: 1.4rem;
  bottom: 1.4rem;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #806be7, #604fc9);
  box-shadow: 0 15px 38px rgba(70, 54, 178, 0.34);
  cursor: pointer;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.floating-contact:hover {
  box-shadow: 0 18px 45px rgba(70, 54, 178, 0.42);
  transform: translateY(-3px);
}

.floating-contact svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.floating-contact__ping {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--mint);
}

.dialog-backdrop {
  position: fixed;
  z-index: 110;
  inset: 0;
  background: rgba(18, 19, 35, 0.68);
  backdrop-filter: blur(8px);
}

.contact-panel {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  display: flex;
  width: min(100%, 560px);
  height: 100dvh;
  flex-direction: column;
  background: #fff;
  box-shadow: -25px 0 70px rgba(15, 17, 32, 0.25);
  transform: translateX(104%);
  transition: transform 280ms cubic-bezier(0.22, 0.85, 0.3, 1);
}

.contact-panel.is-open {
  transform: translateX(0);
}

.contact-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 2rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.contact-panel__header .eyebrow {
  margin-bottom: 0.7rem;
}

.contact-panel__header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  color: #fff;
  background: var(--ink);
  transform: rotate(4deg);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-panel__body {
  flex: 1;
  padding: 1.6rem 2rem;
  overflow-y: auto;
}

.contact-panel__intro {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

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

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

.form-row label {
  color: var(--ink);
  font-size: 0.69rem;
  font-weight: 700;
}

.form-row__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-row__label > span {
  color: #9196a6;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--paper-soft);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.form-row input {
  min-height: 50px;
  padding: 0.75rem 0.9rem;
}

.form-row textarea {
  padding: 0.85rem 0.9rem;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(109, 94, 216, 0.75);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(109, 94, 216, 0.1);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #9ca0ad;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.2rem;
  margin: -0.2rem 0 0;
  color: #b24a3b;
  font-size: 0.67rem;
}

.contact-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-inline: 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.64rem;
}

.contact-panel__footer a {
  color: var(--purple);
  font-weight: 700;
}

.sending-state,
.success-state {
  min-height: 420px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.sending-state:not([hidden]),
.success-state:not([hidden]) {
  display: grid;
}

.sending-state video {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.sending-state h3,
.success-state h3 {
  margin: 0.8rem 0 0.4rem;
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}

.sending-state p,
.success-state p {
  max-width: 360px;
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.success-state__icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  box-shadow: 0 0 0 12px var(--paper-purple);
}

.success-state__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.project-modal {
  position: fixed;
  z-index: 125;
  inset: 0;
  display: grid;
  padding: 1.5rem;
  place-items: center;
  background: rgba(18, 19, 35, 0.76);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  backdrop-filter: blur(10px);
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal__surface {
  position: relative;
  display: grid;
  width: min(100%, 980px);
  max-height: min(780px, calc(100dvh - 3rem));
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 35px 90px rgba(11, 12, 26, 0.4);
  overflow: hidden;
  transform: translateY(16px) scale(0.985);
  transition: transform 220ms ease;
}

.project-modal.is-open .project-modal__surface {
  transform: translateY(0) scale(1);
}

.project-modal__close {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
}

.project-modal__media {
  position: relative;
  display: grid;
  min-height: 520px;
  padding: 2.4rem;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 45%),
    #e9eaf0;
  overflow: hidden;
}

.project-modal__media::before {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image: linear-gradient(rgba(31, 32, 57, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 32, 57, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
}

.project-modal__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 22px 50px rgba(25, 28, 50, 0.22);
}

.project-modal__media > span {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
}

.project-modal__content {
  padding: 4.2rem 2.4rem 2.4rem;
  overflow-y: auto;
}

.project-modal__content h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.project-modal__summary {
  margin: 1rem 0;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 500;
}

.project-modal__detail {
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.8;
}

.project-modal__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.6rem;
}

/* Reveal transitions */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

/* Responsive */
@media (max-width: 1020px) {
  .site-header {
    min-height: auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 6rem;
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .hero__content {
    max-width: 720px;
  }

  .hero__visual {
    width: min(100%, 630px);
    margin-inline: auto;
  }

  .scroll-cue {
    display: none;
  }

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

  .service-card:last-child {
    grid-column: 1 / -1;
    min-height: 360px;
  }

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

  .about__visual {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .project-card[data-size="wide"] {
    grid-template-columns: 1fr;
    grid-template-rows: 340px 1fr;
  }

  .project-card[data-size="wide"] .project-card__media {
    min-height: 0;
  }

  .proof-section__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --section: 5.8rem;
  }

  .navbar {
    width: min(calc(100% - 2rem), 560px);
  }

  .navbar.is-scrolled {
    width: calc(100% - 2rem);
  }

  .navbar__links {
    display: none;
  }

  .menu-toggle,
  .mobile-menu {
    display: block;
  }

  .brand__name {
    display: inline;
  }

  .hero {
    padding-top: 7.5rem;
  }

  .hero__title {
    max-width: 640px;
    font-size: clamp(3.4rem, 13vw, 5.8rem);
  }

  .intro-strip__inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding-block: 2rem;
  }

  .intro-strip__line {
    width: 90px;
  }

  .section-heading--split,
  .stack-section__heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .service-card,
  .service-card:last-child {
    grid-column: auto;
    min-height: 390px;
  }

  .stack-principles {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .project-card,
  .project-card[data-size="wide"] {
    grid-column: span 12;
  }

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

  .contact-card__actions {
    align-items: start;
  }

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

  .footer__top {
    flex-direction: column;
    justify-content: center;
    padding-block: 2.5rem;
  }

  .footer__bottom {
    flex-direction: column-reverse;
    justify-content: center;
    padding-block: 1.5rem;
    text-align: center;
  }

  .project-modal__surface {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .project-modal__media {
    min-height: 300px;
  }

  .project-modal__content {
    overflow: visible;
  }
}

@media (max-width: 600px) {
  .shell {
    width: min(calc(100% - 1.5rem), var(--shell));
  }

  .site-header {
    min-height: auto;
  }

  .navbar {
    top: 0.75rem;
    min-height: 56px;
    padding: 0.38rem 0.5rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__name {
    max-width: 125px;
    font-size: 0.72rem;
  }

  .hero {
    gap: 4rem;
    padding-top: 6.8rem;
    padding-bottom: 5.2rem;
  }

  .availability {
    margin-bottom: 1.4rem;
    font-size: 0.59rem;
  }

  .hero__kicker {
    font-size: 0.58rem;
  }

  .hero__title {
    font-size: clamp(3.1rem, 17vw, 4.8rem);
  }

  .hero__description {
    min-height: 3.3rem;
  }

  .hero__support {
    font-size: 0.82rem;
  }

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

  .hero__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .metric strong {
    font-size: 1.2rem;
  }

  .metric span {
    font-size: 0.55rem;
    line-height: 1.5;
  }

  .code-window {
    border-radius: 14px;
    transform: none;
  }

  .code-window__file,
  .code-window__status {
    font-size: 0.49rem;
  }

  .code-window__body {
    padding: 1.25rem 0.8rem 1.45rem;
    font-size: clamp(0.5rem, 2.55vw, 0.67rem);
  }

  .code-line {
    grid-template-columns: 1.5rem 1fr;
    gap: 0.25rem;
  }

  .floating-note {
    display: none;
  }

  .section-heading h2,
  .about__content h2,
  .proof-section h2,
  .contact-card h2 {
    font-size: clamp(2.25rem, 11vw, 3.6rem);
  }

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

  .service-card__icon {
    margin-bottom: 2.6rem;
  }

  .stack-section__heading h2 {
    font-size: clamp(2.15rem, 10vw, 3.45rem);
  }

  .tech-chip {
    min-width: 132px;
    min-height: 60px;
  }

  .about__visual {
    min-height: 470px;
  }

  .portrait-card {
    width: 75%;
    height: 390px;
  }

  .work-card {
    width: 57%;
    height: 265px;
    border-width: 5px;
  }

  .about__stamp {
    bottom: 15px;
    width: 90px;
    height: 90px;
  }

  .about__stamp span {
    display: none;
  }

  .about__values p {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .project-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card,
  .project-card[data-size="wide"] {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 235px 1fr;
  }

  .project-card__media {
    padding: 1.2rem;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list > div {
    min-height: 190px;
  }

  .contact-card {
    padding: 2.3rem 1.25rem;
    border-radius: 24px;
  }

  .contact-card__actions {
    align-items: stretch;
  }

  .floating-contact {
    right: 0.9rem;
    bottom: 0.9rem;
    width: 54px;
    height: 54px;
  }

  .contact-panel__header,
  .contact-panel__body {
    padding-right: 1.2rem;
    padding-left: 1.2rem;
  }

  .contact-panel__footer {
    padding-inline: 1.2rem;
  }

  .project-modal {
    padding: 0;
  }

  .project-modal__surface {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }

  .project-modal__media {
    min-height: 250px;
    padding: 1.2rem;
  }

  .project-modal__content {
    padding: 2rem 1.25rem;
  }
}

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

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