:root {
  --canvas: #ffffff;
  --surface-soft: #f5f5f7;
  --surface-card: #fafafc;
  --surface-strong: #ebebef;
  --surface-dark: #1d1d1f;
  --surface-dark-elevated: #2a2a2c;
  --hairline: #e0e0e0;
  --hairline-strong: rgba(0, 0, 0, 0.12);
  --ink: #1d1d1f;
  --body: #1d1d1f;
  --muted: #6e6e73;
  --muted-soft: #9a9a9a;
  --primary: #0066cc;
  --primary-active: #0071e3;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: #d2d2d7;
  --container: 1360px;
  --section-space: 80px;
  --header-height: 64px;
  --scene-progress: 0;
  --mouse-x: 0;
  --mouse-y: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.47;
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

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

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(18px);
}

.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.site-logo img {
  width: 82px;
  height: auto;
  object-fit: contain;
}

.site-logo span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

.scene {
  position: relative;
  overflow: clip;
}

.scene-light {
  background: var(--canvas);
}

.scene-hero {
  min-height: var(--scene-height);
  background: var(--surface-dark);
}

.scene-stage {
  position: sticky;
  top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  overflow: clip;
}

.layer {
  position: absolute;
  inset: 0;
}

.depth-0 {
  z-index: 0;
}

.depth-1 {
  z-index: 1;
}

.depth-2 {
  z-index: 2;
}

.depth-3 {
  z-index: 3;
}

.depth-4 {
  z-index: 4;
}

.depth-5 {
  z-index: 5;
}

.hero-stage {
  isolation: isolate;
}

.hero-background {
  background: var(--surface-dark);
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.9) contrast(1.05);
  opacity: 0.64;
  transform:
    scale(calc(1.08 + var(--scene-progress) * 0.08))
    translate3d(calc(var(--mouse-x) * -10px), calc(var(--mouse-y) * -8px), 0);
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 33, 41, 0.96) 0%, rgba(26, 33, 41, 0.76) 42%, rgba(26, 33, 41, 0.42) 100%),
    linear-gradient(180deg, rgba(26, 33, 41, 0.1) 0%, rgba(26, 33, 41, 0.72) 100%);
}

.hero-atmosphere::before,
.hero-atmosphere::after {
  content: "";
  position: absolute;
}

.hero-atmosphere::before {
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(28, 105, 212, 0), rgba(28, 105, 212, 0.18));
  transform: translate3d(calc(var(--scene-progress) * 36px), 0, 0);
}

.hero-atmosphere::after {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  transform: translate3d(calc(var(--scene-progress) * -80px), 0, 0);
}

.hero-content {
  display: flex;
  align-items: center;
}

.hero-content-inner {
  display: grid;
  grid-template-columns: minmax(0, 520px) auto;
  align-items: center;
  gap: 40px;
  padding: 88px 0 72px;
}

.hero-copy-block {
  max-width: 440px;
  position: relative;
  z-index: 6;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--on-dark-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

.scene-hero h1,
.portfolio-section h2,
.showcase-scene h2,
.about-section h2,
.site-footer h2 {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.07;
}

.scene-hero h1 {
  max-width: 11ch;
  color: var(--on-dark);
  font-size: 4.35rem;
}

.hero-copy {
  max-width: 36ch;
  margin: 20px 0 0;
  color: var(--on-dark-soft);
  font-size: 1.0625rem;
  line-height: 1.47;
}

.hero-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-active);
}

.button-primary:active,
.button-secondary:active,
.button-ghost-on-dark:active {
  transform: scale(0.95);
}

.button-ghost-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: var(--on-dark);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button-ghost-on-dark:hover,
.button-ghost-on-dark:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.hero-micro-proof {
  display: grid;
  gap: 10px;
  color: var(--on-dark-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-align: right;
  position: relative;
  z-index: 6;
}

.hero-micro-proof p {
  margin: 0;
}

.hero-object {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 8vw 11vh 0;
  pointer-events: none;
}

.hero-object-frame {
  width: min(42vw, 620px);
  background: rgba(250, 250, 250, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 14px;
  object-fit: cover;
  transform:
    translate3d(calc(var(--mouse-x) * 18px), calc(var(--scene-progress) * -44px + var(--mouse-y) * 14px), 0)
    rotate(calc(var(--mouse-x) * 1.2deg))
    scale(calc(0.96 + var(--scene-progress) * 0.08));
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.42));
  will-change: transform, opacity;
}

.hero-object-image {
  width: 100%;
  height: auto;
}

.hero-companion {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-companion img {
  width: min(18vw, 280px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.24));
  will-change: transform, opacity;
}

.hero-companion-left {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 16vh 0 0 54vw;
  transform: translate3d(calc(var(--scene-progress) * -84px + var(--mouse-x) * -18px), calc(var(--scene-progress) * 20px + var(--mouse-y) * 10px), 0);
}

.hero-companion-right {
  justify-content: flex-end;
  align-items: flex-start;
  padding: 24vh 3vw 0 0;
  transform: translate3d(calc(var(--scene-progress) * 92px + var(--mouse-x) * 22px), calc(var(--scene-progress) * -24px + var(--mouse-y) * -8px), 0);
}

.hero-accent::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(42vw, 520px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  transform: translateX(-50%);
}

.headline-reveal {
  clip-path: inset(0);
  opacity: 1;
  transition: clip-path 0.9s ease, opacity 0.45s ease;
  will-change: clip-path, opacity, transform;
}

.headline-reveal.is-visible {
  clip-path: inset(0);
  opacity: 1;
}

[data-reveal] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.55s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

.js-motion .headline-reveal {
  clip-path: inset(0 0 0 100%);
  opacity: 0.001;
}

.js-motion [data-reveal] {
  opacity: 0.001;
  transform: translate3d(0, 34px, 0);
}

.js-motion .headline-reveal.is-visible,
.headline-reveal.is-visible {
  clip-path: inset(0);
  opacity: 1;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.float-loop {
  animation: floatLoop 10s ease-in-out infinite;
}

@keyframes floatLoop {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes marqueeRail {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes deckFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes chipFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

.capability-strip {
  padding: 40px 0 0;
  background: var(--canvas);
}

.strip-background {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(235, 235, 235, 0.16) 100%);
}

.strip-atmosphere::before {
  content: "";
  position: absolute;
  inset: auto auto 0 8%;
  width: 420px;
  height: 1px;
  background: linear-gradient(90deg, rgba(28, 105, 212, 0), rgba(28, 105, 212, 0.36), rgba(28, 105, 212, 0));
}

.capability-shell,
.showcase-shell,
.portfolio-shell,
.about-shell {
  position: relative;
  inset: auto;
  z-index: 4;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.capability-card {
  position: relative;
  overflow: clip;
  min-height: 132px;
  padding: 24px;
  border-top: 1px solid var(--hairline);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.capability-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(0, 102, 204, 0.22);
  border-radius: 50%;
  transform: scale(calc(0.8 + var(--scene-progress) * 0.18));
}

.scene-dark {
  background: var(--surface-dark);
  color: var(--on-dark);
}

.showcase-scene {
  min-height: 100svh;
  padding: 104px 0 112px;
  isolation: isolate;
}

.showcase-background {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(42, 42, 44, 0.98) 100%),
    #1d1d1f;
}

.showcase-background::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: url("../images/hero-right.jpg") center / cover no-repeat;
  opacity: 0.18;
  filter: saturate(0.72) contrast(1.08);
  transform:
    scale(calc(1.04 + var(--scene-progress) * 0.08))
    translate3d(calc(var(--mouse-x) * -12px), calc(var(--mouse-y) * -10px), 0);
}

.showcase-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 102, 204, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(29, 29, 31, 0.88), rgba(29, 29, 31, 0.54), rgba(29, 29, 31, 0.92));
}

.showcase-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 100%);
  background-size: 84px 84px;
  opacity: 0.12;
  transform: translate3d(calc(var(--scene-progress) * -24px), calc(var(--scene-progress) * -12px), 0);
}

.showcase-layout {
  display: grid;
  gap: 38px;
}

.showcase-heading {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(280px, 420px);
  justify-content: space-between;
  gap: 48px;
  align-items: end;
}

.showcase-heading h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--on-dark);
  font-size: clamp(2.75rem, 6vw, 5.4rem);
}

.showcase-lead {
  max-width: 36ch;
  margin: 0 0 6px;
  color: var(--on-dark-soft);
  font-size: 1.0625rem;
  line-height: 1.47;
}

.showcase-marquee {
  overflow: clip;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.showcase-marquee-track {
  display: flex;
  width: max-content;
  gap: 36px;
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: marqueeRail 28s linear infinite;
}

.showcase-marquee span {
  white-space: nowrap;
}

.showcase-track {
  display: grid;
  grid-template-columns: 1.25fr 0.82fr 0.82fr;
  gap: 20px;
  align-items: stretch;
  perspective: 1200px;
}

.showcase-panel {
  --tilt-x: 0;
  --tilt-y: 0;
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: var(--surface-dark-elevated);
  transform:
    translate3d(0, calc(var(--scene-progress) * -18px), 0)
    rotateX(calc(var(--tilt-y) * -0.7deg))
    rotateY(calc(var(--tilt-x) * 0.7deg));
  transform-style: preserve-3d;
  transition: transform 0.5s ease, border-color 0.35s ease;
}

.showcase-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 42%, transparent 64%);
  opacity: 0;
  transform: translateX(-42%);
  transition: opacity 0.35s ease, transform 0.75s ease;
  pointer-events: none;
}

.showcase-panel:hover,
.showcase-panel:focus-within {
  border-color: rgba(255, 255, 255, 0.34);
}

.showcase-panel:hover::after,
.showcase-panel:focus-within::after {
  opacity: 1;
  transform: translateX(42%);
}

.showcase-panel.is-large {
  min-height: 520px;
}

.showcase-panel:nth-child(2) {
  margin-top: 56px;
}

.showcase-panel:nth-child(3) {
  margin-top: 108px;
}

.showcase-media {
  position: relative;
  overflow: clip;
  min-height: 260px;
  background: #f5f5f7;
}

.showcase-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.28));
  opacity: 0.72;
  pointer-events: none;
}

.showcase-panel img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transform:
    translate3d(0, calc(var(--scene-progress) * -12px), 0)
    scale(1.06);
  transition: transform 0.85s ease, filter 0.85s ease;
}

.showcase-panel:hover img {
  filter: saturate(1.08) contrast(1.08);
  transform: translate3d(0, 0, 0) scale(1.01);
}

.showcase-panel-copy {
  position: relative;
  z-index: 2;
  padding: 24px;
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(12px);
}

.showcase-panel-copy p {
  margin: 0 0 10px;
  color: var(--on-dark-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.showcase-panel-copy h3 {
  margin: 0;
  color: var(--on-dark);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.metric-value {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
}

.metric-label {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.portfolio-section,
.about-section {
  padding: var(--section-space) 0;
}

.portfolio-background {
  background: linear-gradient(180deg, transparent 0%, rgba(235, 235, 235, 0.24) 100%);
}

.portfolio-atmosphere::before {
  content: "";
  position: absolute;
  top: 0;
  right: 6%;
  width: 420px;
  height: 1px;
  background: linear-gradient(90deg, rgba(28, 105, 212, 0), rgba(28, 105, 212, 0.34), rgba(28, 105, 212, 0));
}

.about-background {
  background: var(--surface-soft);
}

.about-atmosphere::before {
  content: "";
  position: absolute;
  left: 10%;
  top: 20%;
  width: 460px;
  height: 1px;
  background: linear-gradient(90deg, rgba(28, 105, 212, 0), rgba(28, 105, 212, 0.34), rgba(28, 105, 212, 0));
}

.section-heading,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.portfolio-section h2,
.about-section h2 {
  max-width: 15ch;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-copy,
.about-copy p,
.site-footer p {
  margin: 20px 0 0;
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.55;
}

.project-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  margin-top: 40px;
  perspective: 1200px;
}

.portfolio-card {
  background: var(--canvas);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  overflow: clip;
}

.portfolio-card-link {
  display: block;
  height: 100%;
  padding: 12px;
  border-radius: 18px;
  transform-style: preserve-3d;
  transition: transform 0.45s ease, background 0.35s ease;
}

.portfolio-card-link:hover,
.portfolio-card-link:focus-visible {
  background: var(--surface-card);
  transform:
    translate3d(0, -8px, 0)
    rotateX(calc(var(--tilt-y, 0) * -0.55deg))
    rotateY(calc(var(--tilt-x, 0) * 0.55deg));
}

.portfolio-image-wrap {
  position: relative;
  overflow: clip;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
}

.portfolio-card img {
  width: 100%;
  height: auto;
  transition: transform 0.75s ease, filter 0.75s ease;
}

.portfolio-card-link:hover img,
.portfolio-card-link:focus-visible img {
  filter: saturate(1.08);
  transform: scale(1.045);
}

.portfolio-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.22)),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.36) 48%, transparent 72%);
  opacity: 0;
  transform: translateX(-32%);
  transition: opacity 0.35s ease, transform 0.7s ease;
  pointer-events: none;
}

.portfolio-card-link:hover .portfolio-image-wrap::after,
.portfolio-card-link:focus-visible .portfolio-image-wrap::after {
  opacity: 1;
  transform: translateX(26%);
}

.portfolio-hover-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-card-link:hover .portfolio-hover-label,
.portfolio-card-link:focus-visible .portfolio-hover-label {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.portfolio-card-link:hover .card-link-label,
.portfolio-card-link:focus-visible .card-link-label {
  letter-spacing: 1.8px;
}

.portfolio-card-body {
  padding: 22px 8px 6px;
}

.portfolio-category {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.portfolio-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.portfolio-summary {
  margin: 14px 0 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
}

.card-link-label {
  margin: 20px 0 0;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

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

.about-copy p:first-child {
  margin-top: 0;
}

.process-layout {
  align-items: start;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  margin-bottom: 14px;
}

.process-intro {
  display: grid;
  gap: 24px;
  align-content: start;
  position: relative;
  z-index: 2;
}

.process-visual {
  --tilt-x: 0;
  --tilt-y: 0;
  position: relative;
  min-height: 460px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.process-visual::before {
  content: "";
  position: absolute;
  inset: 42px 8% 48px;
  border-radius: 40px;
  background: rgba(0, 102, 204, 0.12);
  filter: blur(42px);
  transform: translate3d(calc(var(--mouse-x) * 14px), calc(var(--mouse-y) * 10px), 0);
}

.process-browser {
  position: absolute;
  overflow: clip;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  filter: drop-shadow(3px 5px 30px rgba(0, 0, 0, 0.18));
  transform-style: preserve-3d;
  animation: deckFloat 8s ease-in-out infinite;
}

.process-browser::before {
  content: "";
  display: block;
  height: 24px;
  margin: -2px -2px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background:
    radial-gradient(circle, #ff5f57 0 4px, transparent 5px) 12px 50% / 14px 14px no-repeat,
    radial-gradient(circle, #ffbd2e 0 4px, transparent 5px) 32px 50% / 14px 14px no-repeat,
    radial-gradient(circle, #28c840 0 4px, transparent 5px) 52px 50% / 14px 14px no-repeat;
}

.process-browser img {
  width: 100%;
  border-radius: 12px;
}

.process-browser-main {
  right: 0;
  top: 36px;
  z-index: 3;
  width: min(74%, 620px);
  transform:
    translate3d(calc(var(--mouse-x) * 18px), calc(var(--mouse-y) * 12px), 70px)
    rotateX(calc(var(--tilt-y) * -0.5deg))
    rotateY(calc(var(--tilt-x) * 0.5deg));
}

.process-browser-mid {
  left: 0;
  top: 120px;
  z-index: 2;
  width: min(52%, 440px);
  opacity: 0.92;
  transform:
    translate3d(calc(var(--mouse-x) * -12px), calc(var(--mouse-y) * 8px), 30px)
    rotate(-6deg);
  animation-delay: -2s;
}

.process-browser-back {
  right: 14%;
  bottom: 0;
  z-index: 1;
  width: min(48%, 420px);
  opacity: 0.82;
  transform:
    translate3d(calc(var(--mouse-x) * 8px), calc(var(--mouse-y) * -8px), 0)
    rotate(6deg);
  animation-delay: -4s;
}

.process-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  animation: chipFloat 7s ease-in-out infinite;
}

.process-chip-one {
  left: 9%;
  top: 34px;
}

.process-chip-two {
  right: 8%;
  top: 244px;
  background: var(--primary);
  animation-delay: -2s;
}

.process-chip-three {
  left: 18%;
  bottom: 32px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  animation-delay: -4s;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid rgba(0, 102, 204, 0.36);
  border-radius: 999px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.process-card {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 24px;
  overflow: clip;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: var(--canvas);
  transition: transform 0.45s ease, border-color 0.35s ease, background 0.35s ease;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.process-card:hover,
.process-card:focus-within {
  border-color: rgba(0, 102, 204, 0.28);
  background: #fff;
  transform:
    translate3d(0, -8px, 0)
    rotateX(calc(var(--tilt-y, 0) * -0.45deg))
    rotateY(calc(var(--tilt-x, 0) * 0.45deg));
}

.process-card:hover::before,
.process-card:focus-within::before {
  transform: scaleX(1);
}

.process-card-number {
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.process-card h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.process-card p {
  margin: 0;
}

.process-card-visual {
  position: relative;
  height: 118px;
  overflow: clip;
  border-radius: 14px;
  background: var(--surface-soft);
}

.process-card-visual::before,
.process-card-visual::after,
.process-card-visual span {
  content: "";
  position: absolute;
  display: block;
  border-radius: 999px;
}

.process-card-visual::before {
  inset: 14px auto auto 14px;
  width: 48%;
  height: 10px;
  background: var(--ink);
}

.process-card-visual::after {
  right: 14px;
  bottom: 14px;
  width: 34%;
  height: 30px;
  background: var(--primary);
}

.process-card-visual span {
  background: rgba(0, 0, 0, 0.12);
}

.process-card-visual span:nth-child(1) {
  left: 14px;
  bottom: 20px;
  width: 40%;
  height: 28px;
  border-radius: 12px;
}

.process-card-visual span:nth-child(2) {
  left: 14px;
  top: 44px;
  width: 72%;
  height: 9px;
}

.process-card-visual span:nth-child(3) {
  left: 14px;
  top: 62px;
  width: 58%;
  height: 9px;
}

.process-card-visual-copy::after {
  width: 18%;
}

.process-card-visual-copy span:nth-child(1) {
  width: 76%;
}

.process-card-visual-cta::before {
  width: 32%;
}

.process-card-visual-cta span:nth-child(1) {
  width: 30%;
}

.process-card-visual-cta span:nth-child(2) {
  width: 48%;
}

.site-footer {
  padding: 0 0 56px;
  background: var(--surface-soft);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) auto;
  gap: 32px;
  align-items: end;
  padding: 40px;
  border-radius: 24px;
  background: var(--surface-dark);
  color: var(--on-dark);
}

.footer-eyebrow {
  margin: 0 0 12px;
  color: var(--on-dark-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer h2 {
  max-width: 17ch;
  color: var(--on-dark);
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.site-footer p:not(.footer-eyebrow):not(.footer-note) {
  max-width: 58ch;
  color: var(--on-dark-soft);
}

.footer-action {
  display: grid;
  gap: 18px;
  justify-items: end;
}

.footer-note {
  max-width: 34ch;
  margin: 0;
  color: var(--on-dark-soft);
  font-size: 0.8125rem;
  text-align: right;
}

.perf-lite .float-loop {
  animation: none !important;
}

.perf-lite .showcase-marquee-track,
.perf-lite .process-browser,
.perf-lite .process-chip {
  animation: none !important;
}

.perf-lite .hero-companion-left,
.perf-lite .hero-companion-right,
.perf-lite .hero-object-image,
.perf-lite .hero-background,
.perf-lite .hero-atmosphere::before,
.perf-lite .hero-atmosphere::after,
.perf-lite .showcase-background::before,
.perf-lite .showcase-atmosphere::before {
  transform: none !important;
}

@media (max-width: 1024px) {
  .hero-content-inner,
  .showcase-heading,
  .section-heading,
  .about-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy-block,
  .scene-hero h1,
  .portfolio-section h2,
  .about-section h2 {
    max-width: none;
  }

  .hero-micro-proof {
    text-align: left;
    grid-auto-flow: column;
    justify-content: start;
  }

  .hero-object-frame {
    width: min(58vw, 620px);
    transform: translate3d(4vw, calc(var(--scene-progress) * -22px), 0) scale(calc(0.96 + var(--scene-progress) * 0.04));
  }

  .hero-companion img {
    width: min(20vw, 180px);
  }

  .capability-grid,
  .portfolio-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-track {
    grid-template-columns: 1fr;
  }

  .showcase-panel:nth-child(2),
  .showcase-panel:nth-child(3) {
    margin-top: 0;
  }

  .showcase-panel,
  .showcase-panel.is-large {
    min-height: 420px;
  }

  .process-visual {
    min-height: 420px;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .site-nav {
    display: none;
  }

  .scene-stage {
    top: var(--header-height);
    min-height: calc(100svh - var(--header-height));
  }

  .hero-content-inner {
    padding: 48px 0 32px;
    gap: 22px;
  }

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

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

  .scene-hero h1 {
    font-size: 3rem;
    max-width: 10ch;
  }

  .hero-object {
    padding: 0 12px 46px;
    align-items: flex-end;
    justify-content: center;
  }

  .hero-object-frame {
    width: min(86vw, 420px);
    padding: 8px;
    transform: translate3d(0, calc(var(--scene-progress) * -14px), 0) scale(calc(0.95 + var(--scene-progress) * 0.03));
  }

  .hero-companion-left {
    padding: 18vh 0 0 4vw;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero-companion-right {
    padding: 0 4vw 28vh 0;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .hero-companion img {
    width: min(24vw, 118px);
  }

  .capability-grid,
  .portfolio-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-section,
  .about-section,
  .showcase-scene {
    padding: 56px 0;
  }

  .showcase-heading h2 {
    font-size: 2.35rem;
  }

  .showcase-lead {
    max-width: none;
  }

  .showcase-marquee-track {
    gap: 24px;
    animation-duration: 36s;
  }

  .showcase-panel,
  .showcase-panel.is-large {
    min-height: 360px;
  }

  .portfolio-card-link {
    padding: 10px;
  }

  .process-visual {
    min-height: 330px;
  }

  .process-browser-main {
    width: 82%;
    top: 26px;
  }

  .process-browser-mid {
    width: 56%;
    top: 104px;
  }

  .process-browser-back {
    width: 52%;
    right: 6%;
  }

  .process-chip {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .process-chip-one {
    left: 0;
    top: 0;
  }

  .process-chip-two {
    right: 0;
    top: 186px;
  }

  .process-chip-three {
    left: 4%;
    bottom: 8px;
  }

  .process-card {
    min-height: 290px;
  }
}

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

  .float-loop {
    animation: none !important;
  }

  .showcase-marquee-track,
  .process-browser,
  .process-chip {
    animation: none !important;
  }

  .depth-0,
  .depth-1,
  .depth-2,
  .depth-3,
  .depth-4,
  .depth-5,
  .hero-object-image,
  .hero-object-frame,
  .hero-companion-left,
  .hero-companion-right,
  .showcase-panel,
  .showcase-panel img,
  .showcase-background::before,
  .showcase-atmosphere::before,
  .portfolio-card-link,
  .process-card,
  .process-browser,
  .process-chip {
    transform: none !important;
    filter: none !important;
    translate: none !important;
  }

  [data-reveal],
  .headline-reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: inset(0) !important;
  }
}

/* Visual revamp: compact, photography-first portfolio presentation. */
.hero-redesign,
.portfolio-highlight-section,
.process-proof-section {
  isolation: isolate;
}

.hero-redesign {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 72px 0 64px;
  overflow: hidden;
  background: var(--surface-soft);
}

.hero-redesign-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 84% 22%, rgba(0, 102, 204, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.hero-redesign-background::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent);
  transform: translateY(-50%);
}

.hero-redesign-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.hero-redesign-copy {
  max-width: 560px;
}

.hero-redesign-copy .eyebrow {
  color: var(--muted);
}

.hero-redesign h1,
.portfolio-highlight-section h2,
.process-proof-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero-redesign h1 {
  max-width: 18ch;
  font-size: clamp(3.1rem, 5.2vw, 5.35rem);
}

.hero-redesign-copy p:not(.eyebrow) {
  max-width: 43ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.47;
}

.button-secondary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button-secondary-pill:hover,
.button-secondary-pill:focus-visible {
  background: var(--primary);
  color: var(--on-primary);
}

.button-secondary-pill:active {
  transform: scale(0.95);
}

.hero-redesign-visual {
  --tilt-x: 0;
  --tilt-y: 0;
  position: relative;
  min-height: clamp(460px, 54vw, 680px);
  perspective: 1200px;
}

.hero-redesign-visual::before {
  content: "";
  position: absolute;
  inset: 10% 5% 12% 10%;
  border-radius: 42px;
  background: rgba(0, 102, 204, 0.14);
  filter: blur(48px);
  transform: translate3d(calc(var(--mouse-x) * 12px), calc(var(--mouse-y) * 8px), 0);
}

.hero-redesign-visual-photo {
  position: absolute;
  inset: 0 0 9% 13%;
  overflow: hidden;
  border-radius: 18px;
  background: #d9d9de;
}

.hero-redesign-visual-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.hero-redesign-visual-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.96) contrast(1.04);
  transform:
    scale(calc(1.01 + var(--scene-progress) * 0.025))
    translate3d(calc(var(--mouse-x) * -8px), calc(var(--mouse-y) * -6px), 0);
}

.hero-project-preview {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(62vw, 680px);
  max-width: 86%;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(3px 5px 30px rgba(0, 0, 0, 0.22));
  transform:
    translate3d(calc(var(--mouse-x) * 14px), calc(var(--mouse-y) * 10px), 0)
    rotate(calc(var(--mouse-x) * 0.8deg));
  transition: transform 0.3s ease;
  will-change: transform;
}

.hero-project-preview img {
  width: 100%;
  border-radius: 12px;
}

.hero-visual-note {
  position: absolute;
  top: 30px;
  right: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 300px;
}

.hero-visual-note span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  backdrop-filter: blur(14px);
}

.portfolio-highlight-section {
  padding: 56px 0 60px;
  overflow: hidden;
  background: var(--surface-dark);
}

.portfolio-highlight-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(29, 29, 31, 0.9), rgba(42, 42, 44, 0.72)),
    url("../images/hero-right.jpg") center / cover no-repeat;
  opacity: 0.92;
}

.portfolio-highlight-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 100%);
  background-size: 88px 88px;
  opacity: 0.07;
  transform: translate3d(calc(var(--scene-progress) * -18px), calc(var(--scene-progress) * -10px), 0);
}

.portfolio-highlight-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
}

.portfolio-highlight-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 40px;
  align-items: end;
}

.portfolio-highlight-heading h2 {
  max-width: 18ch;
  color: var(--on-dark);
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  line-height: 1.08;
}

.portfolio-highlight-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--on-dark-soft);
  font-size: 1.0625rem;
  line-height: 1.47;
}

.portfolio-highlight-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  perspective: 1200px;
}

.highlight-card {
  --tilt-x: 0;
  --tilt-y: 0;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: var(--surface-dark-elevated);
  transform:
    translate3d(0, calc(var(--scene-progress) * -8px), 0)
    rotateX(calc(var(--tilt-y, 0) * -0.5deg))
    rotateY(calc(var(--tilt-x, 0) * 0.5deg));
  transition: transform 0.45s ease, border-color 0.35s ease;
}

.highlight-card-featured {
  min-height: 320px;
}

.highlight-card a {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
}

.highlight-card-media {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  background: var(--surface-soft);
}

.highlight-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.24)),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.26) 46%, transparent 70%);
  opacity: 0;
  transform: translateX(-28%);
  transition: opacity 0.35s ease, transform 0.7s ease;
  pointer-events: none;
}

.highlight-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.01);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.highlight-card:hover,
.highlight-card:focus-within {
  border-color: rgba(255, 255, 255, 0.34);
  transform:
    translate3d(0, -6px, 0)
    rotateX(calc(var(--tilt-y, 0) * -0.5deg))
    rotateY(calc(var(--tilt-x, 0) * 0.5deg));
}

.highlight-card:hover img,
.highlight-card:focus-within img {
  filter: saturate(1.08);
  transform: scale(1.01);
}

.highlight-card:hover .highlight-card-media::after,
.highlight-card:focus-within .highlight-card-media::after {
  opacity: 1;
  transform: translateX(24%);
}

.highlight-action-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.highlight-card:hover .highlight-action-label,
.highlight-card:focus-within .highlight-action-label {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.highlight-card-copy {
  padding: 16px 18px 18px;
  background: rgba(29, 29, 31, 0.94);
}

.highlight-card-copy p {
  margin: 0 0 8px;
  color: var(--on-dark-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlight-card-copy h3 {
  margin: 0;
  color: var(--on-dark);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.portfolio-section {
  padding: 58px 0 64px;
}

.portfolio-section .section-heading {
  grid-template-columns: minmax(0, 0.78fr) auto;
  gap: 40px;
  align-items: end;
}

.portfolio-section h2 {
  max-width: 17ch;
  font-size: clamp(2.1rem, 3.6vw, 3.75rem);
  line-height: 1.08;
}

.portfolio-section .section-copy {
  max-width: 54ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.47;
}

.portfolio-section .project-count {
  min-width: 170px;
  display: grid;
  gap: 2px;
  justify-items: end;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: var(--surface-card);
  text-align: right;
  letter-spacing: 0;
  text-transform: none;
}

.portfolio-section .project-count strong {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.portfolio-section .project-count span {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portfolio-grid {
  gap: 20px;
  margin-top: 28px;
}

.portfolio-card-link {
  padding: 10px;
}

.portfolio-image-wrap {
  aspect-ratio: 16 / 10;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portfolio-card-body {
  padding: 16px 4px 4px;
}

.portfolio-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.process-proof-section {
  padding: 56px 0 48px;
  background: var(--surface-soft);
}

.process-proof-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
  gap: 44px;
  align-items: center;
}

.process-proof-heading h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 3.3vw, 3.15rem);
  line-height: 1.08;
}

.process-proof-heading p:not(.eyebrow) {
  max-width: 48ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.47;
}

.process-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-proof-card {
  --tilt-x: 0;
  --tilt-y: 0;
  min-height: 196px;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: var(--canvas);
  transition: transform 0.45s ease, border-color 0.35s ease;
}

.process-proof-card:hover,
.process-proof-card:focus-within {
  border-color: rgba(0, 102, 204, 0.28);
  transform:
    translate3d(0, -6px, 0)
    rotateX(calc(var(--tilt-y, 0) * -0.45deg))
    rotateY(calc(var(--tilt-x, 0) * 0.45deg));
}

.process-proof-mini {
  position: relative;
  height: 62px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-soft);
}

.process-proof-mini::before,
.process-proof-mini::after,
.process-proof-mini span {
  content: "";
  position: absolute;
  display: block;
  border-radius: 999px;
}

.process-proof-mini::before {
  left: 12px;
  top: 12px;
  width: 44%;
  height: 8px;
  background: var(--ink);
}

.process-proof-mini::after {
  right: 12px;
  bottom: 12px;
  width: 30%;
  height: 20px;
  border-radius: 10px;
  background: var(--primary);
}

.process-proof-mini span {
  left: 12px;
  background: rgba(0, 0, 0, 0.12);
}

.process-proof-mini span:nth-child(1) {
  top: 30px;
  width: 68%;
  height: 7px;
}

.process-proof-mini span:nth-child(2) {
  top: 44px;
  width: 48%;
  height: 7px;
}

.process-proof-mini span:nth-child(3) {
  right: 12px;
  left: auto;
  top: 12px;
  width: 18%;
  height: 8px;
}

.process-proof-mini-copy span:nth-child(1) {
  width: 78%;
}

.process-proof-mini-copy::after {
  width: 18%;
}

.process-proof-mini-cta::before {
  width: 30%;
}

.process-proof-mini-cta span:nth-child(2) {
  width: 36%;
}

.process-proof-number {
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.process-proof-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.process-proof-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 1024px) {
  .hero-redesign-grid,
  .portfolio-highlight-heading,
  .portfolio-highlight-grid,
  .portfolio-section .section-heading,
  .footer-layout,
  .process-proof-layout {
    grid-template-columns: 1fr;
  }

  .hero-redesign-copy,
  .hero-redesign h1,
  .portfolio-highlight-heading h2,
  .portfolio-section h2,
  .process-proof-heading h2 {
    max-width: none;
  }

  .portfolio-section .project-count {
    width: fit-content;
    justify-items: start;
    text-align: left;
  }

  .footer-action {
    justify-items: start;
  }

  .footer-note {
    text-align: left;
  }

  .hero-redesign-visual {
    min-height: 520px;
  }

  .portfolio-highlight-grid,
  .process-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlight-card-featured {
    min-height: 360px;
  }
}

@media (max-width: 767px) {
  .hero-redesign {
    padding: 48px 0 52px;
  }

  .hero-redesign h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-redesign-copy p:not(.eyebrow),
  .portfolio-highlight-heading p:not(.eyebrow),
  .process-proof-heading p:not(.eyebrow) {
    font-size: 1rem;
  }

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

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

  .hero-redesign-visual {
    min-height: 360px;
  }

  .hero-redesign-visual-photo {
    inset: 0 0 12% 0;
  }

  .hero-project-preview {
    width: 88%;
    max-width: none;
    padding: 8px;
  }

  .hero-visual-note {
    top: 12px;
    right: 12px;
  }

  .portfolio-highlight-section,
  .process-proof-section,
  .portfolio-section {
    padding: 52px 0;
  }

  .site-footer {
    padding-bottom: 32px;
  }

  .footer-layout {
    padding: 28px;
    border-radius: 18px;
  }

  .portfolio-highlight-heading h2,
  .portfolio-section h2,
  .process-proof-heading h2 {
    font-size: 2.25rem;
  }

  .portfolio-section .project-count {
    width: 100%;
  }

  .portfolio-highlight-grid,
  .process-proof-grid {
    grid-template-columns: 1fr;
  }

  .highlight-card,
  .highlight-card-featured {
    min-height: 300px;
  }

  .process-proof-card {
    min-height: 0;
  }

  .footer-action .button-primary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-redesign-visual-photo img,
  .hero-project-preview,
  .portfolio-highlight-bg::after,
  .highlight-card,
  .highlight-card img,
  .portfolio-card-link,
  .process-proof-card {
    transform: none !important;
    filter: none !important;
  }
}
