:root {
  --ink: #0b0d0c;
  --ink-soft: #171a18;
  --paper: #f2f3ed;
  --paper-strong: #ffffff;
  --muted: #646b65;
  --line: rgba(11, 13, 12, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --acid: #c8ff26;
  --acid-dark: #a9df0b;
  --blue: #526dff;
  --lavender: #bda4f5;
  --radius: 28px;
  --shadow: 0 35px 90px rgba(24, 29, 25, 0.12);
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--acid) var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

.arrow-image {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  object-fit: contain;
}

.arrow-image--light {
  filter: brightness(0) invert(1);
}

.arrow-image--right {
  transform: rotate(45deg);
}

.arrow-image--down {
  transform: rotate(135deg);
}

.arrow-image--left {
  transform: rotate(225deg);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--acid);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.shell {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 16px;
  left: 16px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--acid);
  padding: 11px 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-grid {
  position: fixed;
  z-index: -2;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(to right, rgba(11, 13, 12, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 13, 12, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

.pointer-glow {
  position: fixed;
  z-index: -1;
  top: var(--pointer-y, 25%);
  left: var(--pointer-x, 75%);
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0.19;
  background: radial-gradient(circle, var(--acid), transparent 68%);
  filter: blur(34px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: rgba(242, 243, 237, 0.82);
  backdrop-filter: blur(18px);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(11, 13, 12, 0.06);
}

.header-inner {
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  font-size: 13px;
  letter-spacing: -0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  background: var(--blue);
}

.hero {
  position: relative;
  min-height: 900px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(410px, 0.82fr);
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
  padding-top: 126px;
  padding-bottom: 110px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  padding: 9px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #68c838;
  box-shadow: 0 0 0 5px rgba(104, 200, 56, 0.13);
  animation: statusPulse 2.4s ease-in-out infinite;
}

@keyframes statusPulse {
  50% {
    box-shadow: 0 0 0 9px rgba(104, 200, 56, 0.04);
  }
}

.hero-kicker,
.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-kicker {
  margin-top: 62px;
}

.hero h1 {
  max-width: 720px;
  margin: 24px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(68px, 7.5vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.hero-lead {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  background: var(--acid);
  color: var(--ink);
}

.button--primary:hover {
  background: var(--blue);
  color: white;
}

.button--primary:hover .arrow-image {
  filter: brightness(0) invert(1);
}

.button--ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.button--ghost:hover {
  background: white;
}

.button--dark {
  background: var(--ink);
  color: white;
}

.button--dark:hover {
  background: var(--blue);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 570px;
  margin: 58px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.hero-facts div {
  background: rgba(255, 255, 255, 0.55);
  padding: 17px 19px;
}

.hero-facts dt {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 505px);
  padding: 28px;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 0.88;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(11, 13, 12, 0.09);
  border-radius: 46% 46% 28px 28px;
  background: white;
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 13, 12, 0.13), transparent 32%);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-visual:hover .portrait-frame img {
  transform: scale(1.035);
}

.portrait-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(11, 13, 12, 0.17);
  border-radius: 50%;
  pointer-events: none;
}

.portrait-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acid);
}

.portrait-orbit--one {
  inset: -4% -17% 18% 9%;
  animation: orbitSpin 14s linear infinite;
}

.portrait-orbit--two {
  inset: 38% 9% -10% -12%;
  animation: orbitSpin 19s linear infinite reverse;
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

.portrait-label {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 72px;
  min-width: 190px;
  border-radius: 16px 0 0 16px;
  background: var(--acid);
  padding: 16px 22px;
  box-shadow: 0 20px 50px rgba(11, 13, 12, 0.14);
}

.portrait-label span,
.portrait-label small {
  display: block;
}

.portrait-label span {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.portrait-label small {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portrait-index {
  position: absolute;
  top: 0;
  right: 26px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-scroll span {
  width: 64px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.hero-scroll span::after {
  content: "";
  display: block;
  width: 50%;
  height: 100%;
  background: var(--blue);
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  50% {
    transform: translateX(100%);
  }
}

.works-section {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: white;
  padding: 132px 0 150px;
}

.works-section::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -130px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.12;
  filter: blur(80px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 72px;
}

.section-heading h2,
.about-intro h2,
.contact-inner h2 {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.section-heading > p {
  max-width: 480px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 17px;
}

.project-carousel {
  position: relative;
  outline: none;
  touch-action: pan-y;
}

.project-carousel:focus-visible {
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 0 0 3px var(--blue);
}

.carousel-viewport {
  overflow: hidden;
  margin: -12px 0 -20px;
  padding: 12px 0 20px;
}

.project-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.project-card {
  display: grid;
  width: 100%;
  flex: 0 0 100%;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--ink-soft);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(200, 255, 38, 0.45);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.project-media {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background: #050706;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 72%, rgba(11, 13, 12, 0.65));
  pointer-events: none;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(0.94);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .project-media img {
  transform: scale(0.98);
}

.project-number,
.project-access {
  position: absolute;
  z-index: 2;
  top: 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-number {
  left: 22px;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  background: var(--acid);
  color: var(--ink);
}

.project-access {
  right: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(11, 13, 12, 0.72);
  padding: 9px 13px;
  backdrop-filter: blur(12px);
}

.project-access--public {
  background: var(--acid);
  color: var(--ink);
}

.project-body {
  display: flex;
  flex-direction: column;
  padding: 42px 40px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta span {
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-body h3 {
  margin: 28px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.2vw, 62px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-body > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.project-points {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.project-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.project-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding-top: 38px;
}

.project-actions .button--dark {
  background: white;
  color: var(--ink);
}

.project-actions .button--dark:hover {
  background: var(--acid);
}

.private-note {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 700;
}

.code-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
  text-underline-offset: 5px;
  transition: color 0.2s ease;
}

.code-link:hover {
  color: var(--acid);
}

.project-card--tasklist {
  background: #1a1524;
}

.project-card--tasklist .project-media {
  background: #15121d;
}

.project-card--tasklist:hover {
  border-color: rgba(189, 164, 245, 0.55);
}

.project-card--tasklist .project-points li::before,
.project-card--tasklist .project-number,
.project-card--tasklist .project-access--public {
  background: var(--lavender);
}

.carousel-arrow {
  position: absolute;
  z-index: 6;
  top: calc(50% - 34px);
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(245, 245, 239, 0.94);
  color: var(--ink);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.25);
  font-size: 20px;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
  backdrop-filter: blur(14px);
}

.carousel-arrow:hover {
  transform: scale(1.08);
  border-color: var(--acid);
  background: var(--acid);
}

.carousel-arrow:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.carousel-arrow--prev {
  left: -24px;
}

.carousel-arrow--next {
  right: -24px;
}

.carousel-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 34px;
}

.carousel-status p {
  display: flex;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.carousel-status [data-carousel-current] {
  color: var(--acid);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  padding: 0;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.carousel-dot.is-active {
  width: 48px;
  background: var(--acid);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.about-section {
  padding-top: 140px;
  padding-bottom: 150px;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
  gap: 70px;
  align-items: end;
}

.about-intro .eyebrow {
  grid-column: 1 / -1;
}

.about-intro h2 {
  margin: 0;
}

.about-intro h2 span {
  color: var(--blue);
}

.about-intro > p:last-child {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 18px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 84px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.capability {
  position: relative;
  min-height: 285px;
  background: rgba(255, 255, 255, 0.6);
  padding: 34px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.capability:hover {
  background: var(--ink);
  color: white;
}

.capability > span {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.capability h3 {
  margin: 88px 0 14px;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.capability p {
  margin: 0;
  color: var(--muted);
}

.capability:hover p {
  color: rgba(255, 255, 255, 0.6);
}

.contact-section {
  background: var(--blue);
  color: white;
  padding: 125px 0;
}

.contact-section .eyebrow {
  color: var(--acid);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  align-items: end;
  gap: 80px;
}

.contact-inner h2 span {
  color: var(--acid);
}

.contact-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding-left: 40px;
}

.contact-panel > p {
  max-width: 450px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-primary {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  border-bottom: 2px solid var(--acid);
  padding-bottom: 7px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-primary:hover {
  color: var(--acid);
}

.contact-links {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.contact-links a {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.contact-links a:hover {
  background: var(--acid);
  color: var(--ink);
}

.site-footer {
  background: var(--ink);
  color: white;
  padding: 34px 0;
}

.site-footer .shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.site-footer .brand-mark {
  background: var(--acid);
  color: var(--ink);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p:last-child {
  justify-self: end;
}

.case-dialog {
  width: min(1080px, calc(100% - 36px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.35);
}

.case-dialog::backdrop {
  background: rgba(4, 6, 5, 0.82);
  backdrop-filter: blur(10px);
}

.dialog-close {
  position: sticky;
  z-index: 3;
  top: 18px;
  float: right;
  width: 46px;
  height: 46px;
  margin: 18px 18px -64px 0;
  border: 0;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dialog-media {
  aspect-ratio: 1.9;
  overflow: hidden;
  background: var(--ink);
}

.dialog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-content {
  padding: 42px 48px 48px;
}

.dialog-content h2 {
  margin: 15px 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.dialog-content > p:last-of-type {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.dialog-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.dialog-features span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 800;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal--delay {
  transition-delay: 0.14s;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.74fr);
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(62px, 8vw, 90px);
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .carousel-arrow--prev {
    left: 14px;
  }

  .carousel-arrow--next {
    right: 14px;
  }

  .project-media {
    min-height: auto;
    aspect-ratio: 1.82;
  }

  .project-media::after {
    background: linear-gradient(to top, rgba(11, 13, 12, 0.4), transparent 45%);
  }

  .project-body {
    min-height: 440px;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 36px, 680px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 150px;
    padding-bottom: 110px;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 520px);
    margin-top: 20px;
  }

  .hero-scroll {
    display: none;
  }

  .section-heading,
  .about-intro,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-intro .eyebrow {
    grid-column: auto;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability {
    min-height: 230px;
  }

  .capability h3 {
    margin-top: 52px;
  }

  .contact-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 0;
    padding-top: 34px;
    padding-left: 0;
  }

  .site-footer .shell {
    grid-template-columns: 1fr auto;
  }

  .site-footer p:first-of-type {
    display: none;
  }
}

@media (max-width: 540px) {
  .shell {
    width: min(100% - 26px, 480px);
  }

  .site-header {
    background: rgba(242, 243, 237, 0.92);
  }

  .header-inner {
    height: 72px;
  }

  .brand > span:last-child {
    display: none;
  }

  .header-cta {
    gap: 10px;
  }

  .hero {
    padding-top: 124px;
    padding-bottom: 84px;
  }

  .hero-kicker {
    margin-top: 46px;
  }

  .hero h1 {
    font-size: clamp(55px, 18.5vw, 78px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    margin-top: 42px;
  }

  .hero-facts div {
    padding: 13px 10px;
  }

  .hero-facts dd {
    font-size: 11px;
  }

  .hero-visual {
    padding: 16px;
  }

  .portrait-label {
    right: 8px;
    bottom: 50px;
    min-width: 160px;
    padding: 13px 17px;
  }

  .works-section,
  .about-section {
    padding-top: 92px;
    padding-bottom: 100px;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .section-heading h2,
  .about-intro h2,
  .contact-inner h2 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .project-media {
    aspect-ratio: 1.35;
  }

  .project-body {
    min-height: 0;
    padding: 30px 22px;
  }

  .project-body h3 {
    font-size: 42px;
  }

  .project-actions {
    display: grid;
    justify-items: stretch;
  }

  .carousel-arrow {
    top: 128px;
    width: 44px;
    height: 44px;
  }

  .carousel-arrow--prev {
    left: 10px;
  }

  .carousel-arrow--next {
    right: 10px;
  }

  .carousel-status {
    margin-top: 26px;
  }

  .private-note,
  .code-link {
    text-align: center;
  }

  .capability {
    padding: 26px;
  }

  .contact-section {
    padding: 90px 0;
  }

  .contact-primary {
    font-size: 20px;
  }

  .site-footer .shell {
    grid-template-columns: 1fr auto;
  }

  .dialog-content {
    padding: 30px 22px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
