:root {
  --bg: #090d18;
  --bg-soft: #11182b;
  --surface: rgba(18, 26, 45, 0.72);
  --surface-2: rgba(20, 31, 56, 0.85);
  --text: #eafff1;
  --muted: #9fd8b6;
  --line: rgba(120, 190, 150, 0.24);
  --primary: #39ff88;
  --secondary: #0f9d58;
  --accent: #8affc1;
  --danger: #ff6f91;
  --radius: 18px;
  --max: 1180px;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(900px 620px at 10% -10%, rgba(57, 255, 136, 0.14), transparent 62%),
              radial-gradient(920px 700px at 95% 5%, rgba(15, 157, 88, 0.18), transparent 58%),
              var(--bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

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

/* Motion paused: by the header toggle, or by default for prefers-reduced-motion
   (js/motion-init.js). Everything stops in place (WCAG 2.2.2). */
html[data-motion="off"],
html[data-motion="off"] body {
  scroll-behavior: auto;
}

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation-play-state: paused !important;
}

html[data-motion="off"] .cursor {
  animation: none;
}

html[data-motion="off"] .exp-track {
  transition: none;
}

#bgParticles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

.container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section {
  padding: 56px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 24, 0.72);
  backdrop-filter: blur(11px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.brand-orb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 24px rgba(57, 255, 136, 0.8);
}

.nav-links {
  display: inline-flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(57, 255, 136, 0.12);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.social-icon {
  width: 16px;
  height: 16px;
  display: block;
  background-color: var(--text);
  -webkit-mask-image: var(--icon-src);
  mask-image: var(--icon-src);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.2s ease;
}

.icon-github { --icon-src: url('assets/icons/github.svg'); }
.icon-linkedin { --icon-src: url('assets/icons/linkedin.svg'); }
.icon-upwork { --icon-src: url('assets/icons/upwork.svg'); }
.icon-googledrive { --icon-src: url('assets/icons/googledrive.svg'); }

.social-links a:hover .social-icon {
  background-color: var(--primary);
}

.motion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.motion-btn:hover {
  border-color: var(--primary);
}

/* Pause bars; a play triangle once motion is paused. */
.motion-icon {
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.motion-btn[aria-pressed="true"] .motion-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

.social-links .resume-link {
  width: auto;
  padding: 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: rgba(10, 15, 28, 0.95);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(159, 176, 216, 0.16);
  color: var(--muted);
}

.mobile-nav .social-icon {
  background-color: var(--muted);
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 650;
  padding: 0.8rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 16px 32px rgba(57, 255, 136, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: auto;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 1;
}

.hero-float-icons {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.section-float-icons {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.float-icon {
  position: absolute;
  width: clamp(36px, 4.2vw, 60px);
  height: clamp(36px, 4.2vw, 60px);
  opacity: 0.16;
  animation: floatIcon ease-in-out infinite;
}

.float-icon.is-faint {
  opacity: 0.1;
}

.float-icon-1 { top: 10%; left: 2%; animation-duration: 8s; }
.float-icon-2 { top: 20%; left: 44%; animation-duration: 10s; animation-delay: -2s; }
.float-icon-3 { top: 68%; left: 3%; animation-duration: 9s; animation-delay: -4.5s; }
.float-icon-4 { top: 6%; left: 94%; animation-duration: 11s; animation-delay: -1.2s; }
.float-icon-5 { top: 78%; left: 46%; animation-duration: 8.5s; animation-delay: -3s; }
.float-icon-6 { top: 42%; left: 96%; animation-duration: 10.5s; animation-delay: -5.5s; }
.float-icon-7 { top: 8%; left: 3%; animation-duration: 9s; }
.float-icon-8 { top: 70%; left: 92%; animation-duration: 10s; animation-delay: -3s; }
.float-icon-9 { top: 55%; left: 5%; animation-duration: 8.5s; animation-delay: -5s; }
.float-icon-10 { top: 12%; left: 92%; animation-duration: 9.5s; animation-delay: -1.5s; }
.float-icon-11 { top: 65%; left: 4%; animation-duration: 8s; animation-delay: -4s; }
.float-icon-12 { top: 20%; left: 6%; animation-duration: 11s; animation-delay: -2.5s; }
.float-icon-13 { top: 15%; left: 4%; animation-duration: 9s; animation-delay: -2s; }
.float-icon-14 { top: 68%; left: 90%; animation-duration: 10s; animation-delay: -4s; }
.float-icon-15 { top: 20%; left: 92%; animation-duration: 8.5s; animation-delay: -1s; }

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(4deg);
  }
}

.eyebrow,
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  margin: 0.75rem 0 1rem;
}

.gradient {
  background: linear-gradient(95deg, var(--primary), #7dffb0 50%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy,
.section-head p,
.project-card p,
.testimonial-card p,
.contact-copy {
  color: var(--muted);
}

.type-wrap {
  margin: 1rem 0 1.4rem;
  font-size: 1rem;
  color: #c4ffd9;
}

.type-label {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.35rem;
}

.cursor {
  display: inline-block;
  width: 1ch;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-ctas.center {
  justify-content: center;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.proof-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
}

.proof-card h3 {
  font-size: 1.5rem;
}

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

.skills-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.profile-card,
.exp-card,
.project-card,
.testimonial-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* js/tilt-cards.js turns the whole card; perspective lives in its transform. */
.tilt-card {
  position: relative;
}

.tilt-card.is-tilting {
  will-change: transform;
}

.tilt-glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(138, 255, 193, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tilt-card.is-tilting .tilt-glare {
  opacity: 1;
}

/* Image skeleton: the shimmer sits behind the image, so it shows until the
   image paints over it. js/main.js stops it once the image has loaded. */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(138, 255, 193, 0.09) 50%, rgba(255, 255, 255, 0.03) 70%) 0 0 / 220% 100%,
              var(--bg-soft);
  animation: shimmer 1.4s linear infinite;
}

.media-frame.is-loaded {
  animation: none;
  background: var(--bg-soft);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.glow-border {
  position: relative;
  overflow: hidden;
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: conic-gradient(from 180deg,
    rgba(57, 255, 136, 0.0),
    rgba(57, 255, 136, 0.35),
    rgba(15, 157, 88, 0.25),
    rgba(40, 243, 191, 0.25),
    rgba(57, 255, 136, 0.0));
  filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.glow-border:hover::before {
  opacity: 0.8;
}

.profile-card {
  padding: 0.9rem;
  max-width: 340px;
  margin-inline: auto;
}

.profile-image-wrap {
  position: relative;
}

.profile-frame {
  width: min(100%, 260px);
  margin: 0 auto;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
}

.status-pill {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  font-size: 0.78rem;
  background: rgba(10, 20, 37, 0.78);
  border: 1px solid rgba(40, 243, 191, 0.45);
  color: #baffec;
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
}

.profile-meta {
  padding: 0.8rem 0.2rem 0.2rem;
}

.profile-meta p {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.exp-slider {
  margin-top: 1rem;
  background: rgba(17, 24, 43, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.exp-track {
  display: flex;
  transition: transform 0.5s ease;
}

.exp-card {
  min-width: 100%;
  padding: 1rem;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.exp-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0 0.75rem 0.75rem;
}

.slider-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.section-head {
  margin-bottom: 1.1rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3.1vw, 2.45rem);
  margin-top: 0.3rem;
}

.section-head p {
  margin: 0.6rem 0 0;
  max-width: 62ch;
  line-height: 1.6;
}

.project-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* Featured work: flagship case studies */
.case-study {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
  padding: clamp(1rem, 2.4vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.case-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
}

.case-study.is-reversed .case-media {
  order: 2;
}

/* Screenshots sit in a light browser frame whose URL bar shows the real domain. */
.browser {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 30px;
  padding: 0 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}

.browser-dots {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 26px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 13px 0 0 #febc2e, 26px 0 0 #28c840;
}

.browser-url {
  flex: 1;
  min-width: 0;
  max-width: 22rem;
  padding: 0.12rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser .media-frame {
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.case-media {
  box-shadow: var(--shadow);
}

.case-intro {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.case-intro h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.case-summary {
  margin: 0;
  line-height: 1.7;
  font-size: 1.05rem;
}

.case-facts {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.case-facts div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.case-facts dt {
  padding-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-facts dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.case-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.case-detail h4 {
  margin-bottom: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.stack-layer {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px dashed rgba(120, 190, 150, 0.16);
}

.stack-layer:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.stack-layer h5 {
  margin: 0;
  padding-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.stack-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.55rem;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.stack-item:hover {
  border-color: rgba(57, 255, 136, 0.45);
  background: rgba(57, 255, 136, 0.06);
}

.stack-item img {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.stack-item span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stack-item strong {
  font-size: 0.88rem;
  font-weight: 650;
}

.stack-item small {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
}

/* Silo tenancy diagram (inline SVG, styled here so the CSP needs no inline styles) */
.silo-diagram {
  margin: 0 0 1rem;
}

.silo-diagram svg {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

.silo-diagram figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.dg-box {
  fill: rgba(255, 255, 255, 0.03);
  stroke: var(--line);
  stroke-width: 1;
}

.dg-head {
  fill: rgba(57, 255, 136, 0.08);
}

.dg-accent {
  fill: rgba(57, 255, 136, 0.1);
  stroke: var(--primary);
}

.dg-text,
.dg-sub {
  font-family: Inter, system-ui, sans-serif;
  text-anchor: middle;
}

.dg-text {
  fill: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.dg-sub {
  fill: var(--muted);
  font-size: 11.5px;
}

.dg-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  animation: dgFlow 1.2s linear infinite;
}

@keyframes dgFlow {
  to {
    stroke-dashoffset: -18;
  }
}

.practice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.practice-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d7ffe6;
}

.practice-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.95rem;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.practice-list cite {
  font-style: normal;
  font-size: 0.68rem;
  white-space: nowrap;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.pipeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0 1.05rem 2.6rem;
  counter-increment: step;
}

.pipeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 700 0.78rem "Space Grotesk", Inter, sans-serif;
  color: var(--bg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(57, 255, 136, 0.35);
}

.pipeline li::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.9rem;
  bottom: 0.1rem;
  width: 2px;
  background: linear-gradient(var(--primary), rgba(57, 255, 136, 0.1));
}

.pipeline li:last-child {
  padding-bottom: 0;
}

.pipeline li:last-child::after {
  display: none;
}

.pipeline strong {
  padding-top: 0.2rem;
  font-size: 0.95rem;
}

.pipeline span {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Featured work: the rest, as equal cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card .browser {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.1rem 1.15rem 1.25rem;
}

.project-body h3 {
  font-size: 1.2rem;
}

.project-body p:not(.project-kicker) {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.project-body .proof-link {
  margin-top: auto;
  padding-top: 0.3rem;
}

.chip-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  color: #c2ffd9;
}

.chip-row img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

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

.testimonial-card {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Brand band across the top of each testimonial: the client's logo carries
   their name (it's the img alt), on a dark or light plate to suit the logo. */
.proof-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin: -1.4rem -1.4rem 0;
  padding: 0 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}

.proof-brand img {
  display: block;
  width: auto;
  max-height: 72px;
}

.proof-brand.is-light {
  background: #eef2ef;
}

.proof-brand.is-text {
  justify-content: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
}

.proof-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #cfffe0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

/* Long quotes are capped to the length of the others so every card lines up;
   the toggle shows the rest. Only capped when JS can uncap it. */
html.js .proof-quote.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 11;
  line-clamp: 11;
  overflow: hidden;
}

.quote-toggle {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.quote-toggle:hover {
  text-decoration: underline;
}

html:not(.js) .quote-toggle {
  display: none;
}

.proof-industry {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.proof-project {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.proof-tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.proof-tags li {
  font-size: 0.72rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #c2ffd9;
  background: rgba(255, 255, 255, 0.03);
}

.proof-quote {
  margin: 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
  color: #d7ffe6;
  font-size: 0.94rem;
  line-height: 1.6;
  font-style: italic;
}

.proof-link {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.proof-link:hover {
  text-decoration: underline;
}

.stack-banner {
  padding: 22px 0;
}

.logo-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}

/* Two identical sets; sliding by half the track loops seamlessly. */
.logo-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.logo-set {
  list-style: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding: 1.4rem 1.3rem;
}

.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track {
  animation-play-state: paused;
}

html[data-motion="off"] .logo-marquee {
  overflow-x: auto;
}

.tech-icon {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tech-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.tech-icon small {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

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

.contact-card {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(57, 255, 136, 0.1), rgba(15, 157, 88, 0.1));
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2.3rem;
  color: var(--muted);
  text-align: center;
}

/* Only hidden when JS is running to reveal it again (html.js is set before
   first paint by js/motion-init.js), and never while motion is paused. */
html.js:not([data-motion="off"]) .reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

html.js:not([data-motion="off"]) .reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-right {
    display: contents;
  }

  .hero-right .profile-card {
    order: -1;
    max-width: 100%;
  }

  .profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .profile-image-wrap {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .profile-frame {
    width: 118px;
  }

  .status-pill {
    position: static;
    white-space: nowrap;
    font-size: 0.68rem;
  }

  .profile-meta {
    padding: 0;
    flex: 1;
    min-width: 0;
  }

  .profile-meta h2 {
    font-size: 1.2rem;
  }

  .hero-right .exp-slider {
    order: 1;
  }

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

  .testimonial-grid > .testimonial-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.6rem);
    margin: 0 auto;
  }

}

@media (max-width: 900px) {
  .case-top,
  .case-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-study.is-reversed .case-media {
    order: 0;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .social-links {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .section {
    padding: 44px 0;
  }

  .proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .testimonial-grid > .testimonial-card:last-child:nth-child(odd) {
    max-width: 100%;
  }

  .motion-btn {
    margin-left: auto;
  }

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

  .stack-layer,
  .case-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }

  .stack-layer h5 {
    padding-top: 0;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
