:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #111419;
  --surface-2: #171b21;
  --text: #f4f6f8;
  --muted: #969da8;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --blue: #5f7cff;
  --blue-deep: #3d56d8;
  --signal: #c8ff4d;
  --purple: #c793ff;
  --header: rgba(11, 13, 16, 0.78);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  --shell: min(1240px, calc(100vw - 56px));
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f0f2f5;
  --surface: #ffffff;
  --surface-2: #e7eaf0;
  --text: #111318;
  --muted: #626975;
  --line: rgba(17, 19, 24, 0.12);
  --line-strong: rgba(17, 19, 24, 0.25);
  --blue: #3e59ef;
  --blue-deep: #2d46ca;
  --signal: #a8db22;
  --purple: #8d4dce;
  --header: rgba(240, 242, 245, 0.8);
  --shadow: 0 28px 76px rgba(37, 43, 54, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 220ms ease, color 220ms ease;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--signal);
  color: #0b0d10;
}

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

button {
  color: inherit;
  font: inherit;
}

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

svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--signal);
  color: #0b0d10;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one {
  top: -210px;
  left: -180px;
  background: var(--blue);
}

.ambient-two {
  right: -260px;
  top: 65vh;
  background: var(--purple);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1240px, calc(100vw - 32px));
  min-height: 64px;
  padding: 9px 10px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--header);
  backdrop-filter: blur(20px) saturate(150%);
  transition: box-shadow 180ms ease, border-color 180ms ease, background-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-strong);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--text);
  color: var(--bg);
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.brand-name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.desktop-nav a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

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

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

.theme-toggle,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.moon-icon {
  display: none;
}

html[data-theme="light"] .sun-icon {
  display: none;
}

html[data-theme="light"] .moon-icon {
  display: block;
}

.header-contact {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.header-contact:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
}

.menu-toggle,
.mobile-panel {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.65fr);
  grid-template-rows: 1fr auto;
  gap: 18px;
  min-height: 100svh;
  padding-block: 124px 42px;
}

.hero-copy {
  display: flex;
  min-height: 650px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 4.4vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--surface);
  background-size: 56px 56px;
  box-shadow: var(--shadow);
}

.eyebrow,
.section-index,
.project-labels,
.console-bar,
.console-status,
.hero-rail,
.project-number,
.service-card > span,
.tech-card > span,
.article-row time,
.article-row div > span {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
}

.eyebrow span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span:first-child::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--signal) 14%, transparent);
  content: "";
}

.hero h1 {
  margin: clamp(56px, 8vw, 100px) 0;
  font-size: clamp(64px, 8.8vw, 132px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--text);
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 500px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.hero-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

.button-primary {
  background: var(--signal);
  color: #0b0d10;
  transition: gap 180ms ease, transform 180ms ease;
}

.button-primary:hover {
  gap: 34px;
  transform: translateY(-3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease;
}

.text-link:hover {
  border-color: var(--text);
  color: var(--text);
}

.hero-console {
  align-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0f1116;
  color: #e8ebf1;
  box-shadow: var(--shadow);
}

.console-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #7f8794;
}

.console-bar > span:last-child {
  justify-self: end;
}

.console-dots {
  display: flex;
  gap: 5px;
}

.console-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #424855;
}

.console-dots i:first-child {
  background: #ff6c61;
}

.console-dots i:nth-child(2) {
  background: #ffc04c;
}

.console-dots i:last-child {
  background: #68d27b;
}

.console-body {
  padding: clamp(28px, 3.4vw, 46px) 22px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.95;
  white-space: nowrap;
}

.console-body p {
  margin: 0;
}

.console-body .indent {
  padding-left: 18px;
}

.code-purple {
  color: #c792ea;
}

.code-blue {
  color: #82aaff;
}

.code-green {
  color: #c3e88d;
}

.console-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #949ba6;
}

.console-status span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.console-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
}

.hero-rail {
  grid-column: 1 / -1;
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-around;
  gap: 18px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.hero-rail i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}

.section {
  padding-block: clamp(94px, 12vw, 170px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: 64px;
  margin-bottom: clamp(46px, 7vw, 82px);
}

.section-index {
  margin: 0 0 24px;
  color: var(--blue);
}

.section-heading h2,
.about-sticky h2,
.stack-heading h2 {
  margin: 0;
  font-size: clamp(46px, 7vw, 94px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.section-heading > p,
.stack-heading > p,
.about-content > p:not(.about-lead) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.project-list {
  border-top: 1px solid var(--line-strong);
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 80px;
  gap: 24px;
  min-height: 280px;
  padding: 36px 20px 36px 0;
  border-bottom: 1px solid var(--line-strong);
  isolation: isolate;
}

.project::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--surface);
  opacity: 0;
  transform: scaleY(0.82);
  transform-origin: center;
  transition: opacity 280ms ease, transform 360ms var(--ease);
  content: "";
}

.project:hover::before,
.project:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.project-number {
  padding-top: 8px;
  color: var(--muted);
}

.project-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.55fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 56px;
}

.project-labels {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.project-labels span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.project h3 {
  align-self: center;
  margin: 20px 0;
  font-size: clamp(48px, 6.2vw, 86px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.06em;
  transition: color 180ms ease, transform 260ms var(--ease);
}

.project:hover h3,
.project:focus-visible h3 {
  color: var(--blue);
  transform: translateX(10px);
}

.project-main > p {
  align-self: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 16px;
}

.project ul {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project li {
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.project-arrow,
.article-arrow {
  align-self: center;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 22px;
  transition: background 180ms ease, color 180ms ease, transform 260ms var(--ease);
}

.project:hover .project-arrow,
.project:focus-visible .project-arrow,
.article-row:hover .article-arrow,
.article-row:focus-visible .article-arrow {
  background: var(--signal);
  color: #0b0d10;
  transform: rotate(45deg);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(60px, 10vw, 140px);
  border-top: 1px solid var(--line);
}

.about-sticky {
  position: sticky;
  top: 118px;
  align-self: start;
}

.about-sticky h2 {
  max-width: 650px;
  font-size: clamp(44px, 5.6vw, 76px);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-lead {
  margin: 0;
  font-size: clamp(27px, 3.5vw, 46px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.04em;
}

.principles {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.principle {
  display: grid;
  grid-template-columns: 48px minmax(0, 0.7fr) minmax(230px, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 98px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.principle > span {
  color: var(--blue);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.principle h3,
.principle p {
  margin: 0;
}

.principle h3 {
  font-size: 17px;
}

.principle p {
  color: var(--muted);
  font-size: 14px;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform 300ms var(--ease), border-color 180ms ease;
}

.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-8px);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: auto;
  border-radius: 18px;
  background: var(--blue);
  color: #fff;
}

.service-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.service-card > span {
  margin-top: 54px;
  color: var(--muted);
}

.service-card h3 {
  margin: 14px 0 12px;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.stack {
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(52px, 10vw, 140px);
}

.stack-heading {
  align-self: start;
}

.stack-heading h2 {
  margin-bottom: 28px;
  font-size: clamp(48px, 6vw, 80px);
}

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

.tech-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  transition: background 180ms ease, border-color 180ms ease, transform 240ms var(--ease);
}

.tech-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.tech-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

html[data-theme="light"] .tech-card img.icon-adaptive {
  padding: 5px;
  border-radius: 8px;
  background: #111318;
}

.tech-card h3,
.tech-card p {
  margin: 0;
}

.tech-card h3 {
  font-size: 16px;
}

.tech-card p {
  color: var(--muted);
  font-size: 13px;
}

.tech-card > span {
  color: var(--muted);
}

.writing {
  border-top: 1px solid var(--line);
}

.article-list {
  border-top: 1px solid var(--line-strong);
}

.article-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 30px;
  min-height: 150px;
  border-bottom: 1px solid var(--line-strong);
}

.article-row time,
.article-row div > span {
  color: var(--muted);
}

.article-row h3 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  transition: color 180ms ease, transform 260ms var(--ease);
}

.article-row:hover h3,
.article-row:focus-visible h3 {
  color: var(--blue);
  transform: translateX(8px);
}

.article-arrow {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

.contact {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}

.contact-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000);
}

.contact-inner {
  position: relative;
}

.contact .section-index {
  color: var(--signal);
}

.contact h2 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(58px, 10.6vw, 150px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.contact-inner > p:not(.section-index) {
  max-width: 560px;
  margin: 42px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
}

.contact-email {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding-block: 28px;
  border-block: 1px solid rgba(255, 255, 255, 0.38);
  font-size: clamp(30px, 6vw, 80px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.contact-email span:first-child {
  overflow-wrap: anywhere;
}

.contact-email span:last-child {
  transition: transform 260ms var(--ease);
}

.contact-email:hover span:last-child {
  transform: translate(8px, -8px);
}

.contact-actions {
  display: flex;
  min-height: 70px;
  align-items: end;
  gap: 18px;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.copy-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.copy-status {
  color: var(--signal);
  font-size: 14px;
  font-weight: 700;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 118px;
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.footer-brand span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.social-links {
  display: flex;
  gap: 22px;
}

.social-links a {
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.social-links a:hover {
  border-color: var(--text);
  color: var(--text);
}

.footer > p {
  justify-self: end;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

@media (max-width: 1060px) {
  :root {
    --shell: min(100% - 40px, 920px);
  }

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

  .hero-copy {
    min-height: 670px;
  }

  .hero-console {
    width: min(100%, 620px);
    justify-self: end;
  }

  .project-main {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr);
  }

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

  .about-sticky {
    position: static;
  }

  .about-sticky h2 {
    max-width: 770px;
  }

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

  .stack-heading {
    max-width: 720px;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

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

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

  .menu-toggle span {
    position: absolute;
    width: 17px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .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-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: block;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 220ms var(--ease);
  }

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

  .mobile-panel nav {
    display: grid;
  }

  .mobile-panel a {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
    font-weight: 700;
  }

  .mobile-panel a:last-child {
    border: 0;
  }

  .mobile-panel a span {
    color: var(--blue);
    font-family: "DM Mono", monospace;
    font-size: 12px;
  }

  .hero-intro {
    grid-template-columns: 1fr;
  }

  .hero-links {
    justify-content: space-between;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading > p {
    max-width: 560px;
  }

  .project {
    grid-template-columns: 54px minmax(0, 1fr) 50px;
  }

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

  .project-main > p {
    margin-top: 0;
  }

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

  .service-card {
    min-height: 340px;
  }

  .service-card > span {
    margin-top: 40px;
  }

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

  .social-links {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-bottom: 28px;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 28px);
    --radius: 18px;
  }

  .site-header {
    top: 8px;
    width: calc(100vw - 16px);
    min-height: 58px;
    border-radius: 15px;
  }

  .brand-mark,
  .theme-toggle,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    gap: 12px;
    padding-block: 92px 20px;
  }

  .hero-copy {
    min-height: 600px;
    padding: 24px 20px;
    background-size: 42px 42px;
  }

  .eyebrow {
    align-items: flex-start;
  }

  .eyebrow span:last-child {
    max-width: 100px;
    text-align: right;
  }

  .hero h1 {
    margin: 70px 0 62px;
    font-size: clamp(52px, 16.4vw, 82px);
    line-height: 0.88;
    letter-spacing: -0.07em;
  }

  .hero-intro > p {
    font-size: 16px;
  }

  .hero-links {
    flex-wrap: wrap;
  }

  .hero-console {
    width: 100%;
  }

  .console-bar {
    grid-template-columns: auto 1fr auto;
    gap: 18px;
  }

  .console-bar > span:nth-child(2) {
    justify-self: center;
  }

  .console-body {
    overflow-x: auto;
    padding: 28px 18px;
    font-size: 12px;
  }

  .console-status {
    font-size: 12px;
  }

  .hero-rail {
    justify-content: flex-start;
    padding-inline: 8px;
  }

  .section {
    padding-block: 92px;
  }

  .section-heading h2,
  .about-sticky h2,
  .stack-heading h2 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .project {
    grid-template-columns: 1fr auto;
    min-height: 0;
    padding: 30px 4px;
  }

  .project-number {
    grid-column: 1;
    grid-row: 1;
  }

  .project-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .project-arrow {
    grid-column: 2;
    grid-row: 1;
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .project-labels {
    flex-wrap: wrap;
  }

  .project h3 {
    margin: 26px 0 20px;
    font-size: clamp(44px, 14vw, 64px);
  }

  .project-main > p {
    margin-bottom: 26px;
  }

  .about {
    gap: 56px;
  }

  .about-lead {
    font-size: 27px;
  }

  .principle {
    grid-template-columns: 38px 1fr;
  }

  .principle p {
    grid-column: 2;
  }

  .service-card {
    min-height: 330px;
  }

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

  .tech-card {
    min-height: 86px;
  }

  .article-row {
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 154px;
    padding-block: 22px;
  }

  .article-row time {
    grid-column: 1;
    grid-row: 1;
  }

  .article-row div {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .article-arrow {
    grid-column: 2;
    grid-row: 1;
    width: 40px;
    height: 40px;
  }

  .article-row h3 {
    font-size: 25px;
  }

  .contact h2 {
    font-size: clamp(55px, 18vw, 88px);
  }

  .contact-email {
    grid-template-columns: minmax(0, 1fr) 30px;
    font-size: clamp(27px, 9.6vw, 42px);
  }

  .footer {
    grid-template-columns: 1fr;
    padding-block: 32px;
  }

  .footer > p {
    justify-self: start;
  }

  .social-links {
    grid-column: 1;
    grid-row: auto;
    flex-wrap: wrap;
    padding: 0;
  }
}

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

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

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