:root {
  --bg: #f5f5f5;
  --white: #ffffff;
  --black: #000000;
  --gray-text: #7b7b7b;
  --about-gray: #bcbcbc;
  --line: #cbcbcb;
  --dark: #2b2b2b;
  --dark-2: #1d1d1d;
  --accent: #d0f034;
  --projects-bg: #eeeeee;
  --max: 1920px;
  --pad: clamp(24px, 6.9vw, 132px);
  --header-offset: clamp(12px, 1.54vw, 30px);
  --header-gutter: clamp(24px, 3.07vw, 59px);
  --header-nav-gutter: clamp(12px, 1.56vw, 30px);
  --header-h: clamp(72px, 5.5vw, 96px);
  --header-stack: calc(var(--header-offset) + 65px);
  --font-serif: "Adamina", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
}

.page-loader__logo {
  width: clamp(120px, 12vw, 183px);
  height: auto;
  animation: page-loader-logo 1.8s ease-in-out infinite;
}

.page-loader__progress {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--gray-text);
}

@keyframes page-loader-logo {
  0%,
  100% {
    opacity: 0.82;
    transform: scale(0.985);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.page {
  width: min(100%, var(--max));
  margin: 0 auto;
  background: var(--bg);
}

.section-image img {
  width: 100%;
  height: auto;
}

/* Sticky header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  pointer-events: none;
  background: transparent;
}

.site-header__inner {
  position: relative;
  width: min(100%, var(--max));
  margin: var(--header-offset) auto 0;
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--header-nav-gutter) 0 var(--header-gutter);
}

.site-logo {
  position: fixed;
  left: var(--header-gutter);
  top: var(--header-offset);
  height: clamp(56px, 3.85vw, 74px);
  display: flex;
  align-items: center;
  pointer-events: auto;
  z-index: 1100;
  mix-blend-mode: difference;
}

.site-logo img {
  display: block;
  width: clamp(90px, 9.5vw, 183px);
  height: auto;
  /* Render as pure white so `mix-blend-mode: difference` flips it
     to black over light backgrounds and keeps it white over dark ones. */
  filter: brightness(0) invert(1);
  transition: opacity 0.25s ease;
}

.site-logo:hover img {
  opacity: 0.72;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.nav-toggle__line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin: 0;
  border-radius: 1px;
  background: var(--black);
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle__line:first-child {
  margin-top: -4px;
}

.nav-toggle__line:last-child {
  margin-top: 4px;
}

.site-header.is-nav-open .nav-toggle__line:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
  margin-top: 0;
}

.site-header.is-nav-open .nav-toggle__line:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
  margin-top: 0;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 48px;
  min-height: 65px;
  padding: 4px 48px;
  border-radius: 83px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  border: 0;
  box-shadow: none;
  pointer-events: auto;
  transition: background 0.3s ease;
}

.site-header.is-scrolled .nav-pill {
  background: rgba(255, 255, 255, 0.62);
}

.nav-pill a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.21;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.nav-pill a:hover {
  opacity: 0.65;
}

.nav-pill .nav-cta {
  padding: 11px 24px;
  border-radius: 40px;
  background: var(--accent);
  font-weight: 700;
}

.nav-pill .nav-cta:hover {
  opacity: 1;
}

/* Hero */
.hero {
  min-height: clamp(560px, 56.25vw, 1080px);
  padding: calc(var(--header-stack) + clamp(24px, 4vw, 60px)) var(--pad) clamp(40px, 8vw, 120px);
  background: var(--bg);
  display: flex;
  align-items: flex-end;
}

.hero-signature {
  width: 100%;
  max-width: 1776px;
  margin: 0 auto;
  height: auto;
}

/* About */
.about-scene {
  position: relative;
}

.about-pin {
  height: 100vh;
  height: 100dvh;
}

.about {
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.about-copy {
  padding: clamp(48px, 7vw, 120px) clamp(32px, 6vw, 116px);
  border-right: 1px solid var(--line);
  min-height: 0;
  overflow: hidden;
}

.about-copy h2 {
  margin: 0 0 clamp(48px, 5vw, 80px);
  font-family: var(--font-serif);
  font-size: clamp(32px, 2.1vw, 40px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.12em;
}

.about-text {
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
}

.about-paragraph {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.25vw, 24px);
  line-height: 1.45;
}

.about-char {
  color: #bcbcbc;
}

.about-char.is-revealed {
  color: #000000;
}

.about-photo {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  align-self: stretch;
}

.about-photo img {
  position: absolute;
  right: 0;
  bottom: 0;
  /* The about scene is pinned to the very top of the viewport, so leave room
     for the fixed header/nav; otherwise the portrait's head sits behind it. */
  height: calc(100% - var(--header-stack) - clamp(8px, 1vw, 20px));
  width: auto;
  max-width: 130%;
  object-fit: contain;
  object-position: bottom right;
}

/* Services */
.services {
  padding: clamp(48px, 7vw, 120px) 0 clamp(64px, 8vw, 140px);
  background: var(--bg);
}

.services-head {
  max-width: 887px;
  margin-bottom: clamp(32px, 4vw, 64px);
  padding: 0 var(--pad);
}

.services-head h2 {
  margin: 0 0 23px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 4.7vw, 90px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.services-head p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 0.93;
  color: var(--gray-text);
}

.flowing-menu {
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}

.flowing-menu__item {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.flowing-menu__link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 100px;
  width: 100%;
  padding: 0 var(--pad);
  text-decoration: none;
  color: var(--black);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.flowing-menu__item.is-active .flowing-menu__link {
  opacity: 0;
  visibility: hidden;
}

.flowing-menu__label {
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.5vw, 48px);
  line-height: 1.1;
}

.flowing-menu__marquee {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  background: var(--black);
  clip-path: inset(50% 0 50% 0);
  transition: clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path;
}

.flowing-menu__item.is-active .flowing-menu__marquee {
  clip-path: inset(0 0 0 0);
}

.flowing-menu__marquee-inner-wrap {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.flowing-menu__marquee-inner {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  will-change: transform;
}

.flowing-menu__part {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.flowing-menu__part span {
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.5vw, 48px);
  line-height: 1;
  color: var(--white);
  padding: 0 clamp(16px, 2vw, 32px);
}

.flowing-menu__img {
  flex-shrink: 0;
  width: clamp(180px, 14vw, 273px);
  height: clamp(44px, 3.5vw, 67px);
  margin: 0 clamp(16px, 2vw, 32px);
  border-radius: 999px;
  background-size: cover;
  background-position: center;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(208, 240, 52, 0.2);
  color: #6a7a00;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-plus {
  margin-left: auto;
  width: 47px;
  height: 47px;
  position: relative;
}

.icon-plus::before,
.icon-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.icon-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Stats */
.stats-scene {
  position: relative;
}

.stats-pin {
  height: 100vh;
  height: 100dvh;
}

.stats {
  position: relative;
  height: 100vh;
  height: 100dvh;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}

.stats-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px var(--pad) 0;
  margin: 0;
  pointer-events: none;
}

.stats-head h2 {
  margin: 0 0 clamp(24px, 3vw, 48px);
  font-family: var(--font-serif);
  font-size: clamp(42px, 6.25vw, 120px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.stats-number {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(80px, 15.6vw, 300px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #8dd4ff 0%, #ff0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-grid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  width: 100%;
  padding-bottom: clamp(24px, 3vw, 48px);
}

.stats-row {
  width: 100%;
  overflow: hidden;
}

.stats-row__track {
  overflow: hidden;
  width: 100%;
}

.stats-row__inner {
  display: flex;
  gap: clamp(16px, 2.3vw, 45px);
  width: max-content;
  will-change: transform;
}

.stats-row img {
  flex: 0 0 clamp(240px, 28vw, 536px);
  width: clamp(240px, 28vw, 536px);
  aspect-ratio: 536 / 301;
  object-fit: cover;
  border-radius: 8px;
}

.home-work-link {
  flex: 0 0 clamp(240px, 28vw, 536px);
  width: clamp(240px, 28vw, 536px);
  aspect-ratio: 536 / 301;
  overflow: hidden;
  border-radius: 8px;
}

.home-work-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.home-work-link:hover img {
  filter: brightness(0.88);
}

/* Projects */
.projects {
  padding: clamp(48px, 7vw, 120px) var(--pad) clamp(64px, 8vw, 140px);
  background: var(--projects-bg);
  text-align: center;
}

.projects-head h2 {
  margin: 0 0 23px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 4.7vw, 90px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.projects-head p {
  margin: 0 0 clamp(32px, 4vw, 72px);
  font-size: 16px;
  color: var(--gray-text);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  gap: clamp(12px, 1.2vw, 24px);
  max-width: 889px;
  margin: 0 auto clamp(32px, 4vw, 72px);
}

.projects-left {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: clamp(8px, 0.8vw, 12px);
}

.projects-left img,
.projects-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px;
}

.projects-main {
  min-height: 100%;
}

.more-info {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 22px;
  border-radius: 35px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.more-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
}

/* Logos */
.logos {
  padding: clamp(32px, 3.4vw, 60px) var(--pad);
  background: var(--dark-2);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 40px) clamp(24px, 3vw, 50px);
  max-width: 1350px;
  margin: 0 auto;
}

.logo-grid img {
  width: 100%;
  max-height: 37px;
  object-fit: contain;
  margin: 0 auto;
}

/* Vibe Coding */
.vibe {
  padding: clamp(48px, 5vw, 80px) 0 clamp(40px, 4vw, 72px);
  background: var(--bg);
}

.vibe-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.vibe-head {
  max-width: 168px;
  margin-bottom: clamp(24px, 3vw, 48px);
}

.vibe-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.35vw, 45px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.vibe-head p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 0.93;
  color: var(--gray-text);
}

.vibe-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 5.5vw, 88px);
  width: 100%;
}

.vibe-screens-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}

.vibe-screens-track {
  --vibe-screen-width: clamp(136px, 13vw, 248px);
  display: flex;
  align-items: flex-end;
  gap: clamp(28px, 3.2vw, 56px);
  width: max-content;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.vibe-screens-track.is-instant {
  transition: none;
}

.vibe-screen {
  flex: 0 0 var(--vibe-screen-width);
  width: var(--vibe-screen-width);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: var(--vibe-opacity, 0.2);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.vibe-screen img {
  display: block;
  width: 100%;
  aspect-ratio: 291 / 630;
  object-fit: cover;
  object-position: top center;
  border-radius: clamp(15px, 1.45vw, 22px);
  background: var(--white);
  pointer-events: none;
}

.vibe-screen.is-active {
  cursor: default;
}

.vibe-screen:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 6px;
  border-radius: clamp(15px, 1.45vw, 22px);
}

.vibe-dock {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 48px);
  min-height: clamp(64px, 6vw, 88px);
  margin-top: clamp(8px, 1vw, 16px);
  padding: clamp(12px, 1.4vw, 20px) 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  outline: none;
}

.vibe-dock:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

.vibe-dock__item {
  --dock-scale: 1;
  width: clamp(44px, 4vw, 64px);
  height: clamp(44px, 4vw, 64px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: scale(var(--dock-scale));
  transform-origin: center center;
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.18s ease;
  will-change: transform;
}

.vibe-dock__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

.vibe-dock__item.is-active img {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.vibe-dock__item:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
  border-radius: 12px;
}

.vibe-dock.is-idle .vibe-dock__item {
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s ease;
}

/* Footer */
.site-footer {
  padding: clamp(16px, 1.5vw, 29px) clamp(16px, 1.2vw, 23px) clamp(20px, 1.7vw, 32px);
  background: var(--bg);
}

.site-footer__card {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 3.4vw, 70px) clamp(28px, 3.6vw, 74px);
  border-radius: 20px;
  background: #1d1d1d;
  color: var(--white);
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 2.8vw, 48px);
}

.site-footer__top h2 {
  margin: 0;
  max-width: 360px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.7vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.site-footer__cta {
  flex-shrink: 0;
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer__cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.site-footer__divider {
  height: 1px;
  margin-bottom: clamp(24px, 2.8vw, 48px);
  background: #313131;
}

.site-footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
}

.site-footer__brand {
  max-width: 280px;
}

.site-footer__signature {
  width: clamp(90px, 8vw, 115px);
  height: auto;
  margin-bottom: clamp(20px, 2vw, 32px);
  filter: brightness(0) invert(1);
}

.site-footer__brand p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.45;
  color: #9e9e9e;
}

.site-footer__links {
  display: flex;
  gap: clamp(24px, 4vw, 72px);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 72px;
}

.site-footer__col h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--white);
}

.site-footer__col a {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.2;
  color: #9e9e9e;
  transition: color 0.2s ease;
}

.site-footer__col a:hover {
  color: var(--white);
}

@media (max-width: 960px) {
  .about-inner {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .about-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: clamp(32px, 6vw, 48px) clamp(20px, 5vw, 32px);
  }

  .about-copy h2 {
    margin-bottom: clamp(24px, 5vw, 40px);
  }

  .about-photo {
    min-height: clamp(240px, 38vw, 360px);
    max-height: 42vh;
  }

  .about-photo img {
    right: 50%;
    transform: translateX(50%);
    max-width: 100%;
    object-position: bottom center;
  }

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

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

  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__links {
    flex-wrap: wrap;
    gap: 24px 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --header-stack: 64px;
    --pad: clamp(16px, 4.5vw, 24px);
    --header-offset: 0px;
    --header-gutter: clamp(16px, 4.5vw, 24px);
    --header-nav-gutter: clamp(16px, 4.5vw, 24px);
  }

  .site-header__inner {
    margin-top: 0;
    min-height: var(--header-h);
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .site-logo {
    top: 0;
    left: var(--header-gutter);
    height: var(--header-h);
  }

  .site-logo img {
    width: clamp(72px, 22vw, 110px);
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-pill {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: var(--header-nav-gutter);
    right: var(--header-nav-gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
    max-width: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    pointer-events: none;
  }

  .site-header.is-nav-open .nav-pill {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-pill a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
  }

  .nav-pill .nav-cta {
    margin-top: 4px;
    text-align: center;
  }

  .hero {
    min-height: clamp(420px, 85vw, 560px);
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 32px;
  }

  .services-head h2 {
    font-size: clamp(32px, 9vw, 48px);
  }

  .flowing-menu__link {
    min-height: 72px;
    gap: 10px;
    padding: 0 var(--pad);
  }

  .flowing-menu__label {
    font-size: clamp(22px, 6vw, 32px);
  }

  .flowing-menu__part span {
    font-size: clamp(22px, 6vw, 32px);
  }

  .flowing-menu__img {
    width: clamp(120px, 36vw, 180px);
    height: clamp(30px, 9vw, 44px);
  }

  .icon-plus {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .stats-head {
    padding-top: clamp(48px, 14vw, 72px);
  }

  .stats-head h2 {
    font-size: clamp(28px, 8.5vw, 48px);
    margin-bottom: clamp(12px, 4vw, 24px);
  }

  .stats-number {
    font-size: clamp(56px, 22vw, 120px);
  }

  .stats-row img {
    flex: 0 0 clamp(160px, 52vw, 280px);
    width: clamp(160px, 52vw, 280px);
  }

  .stats-grid {
    gap: clamp(10px, 3vw, 16px);
    padding-bottom: clamp(16px, 4vw, 24px);
  }

  .projects-head h2 {
    font-size: clamp(32px, 9vw, 48px);
  }

  .projects-left {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .badge {
    font-size: 10px;
    padding: 4px 8px;
  }

  .about-copy {
    padding: 32px 20px;
  }

  .about-copy h2 {
    margin-bottom: 32px;
  }

  .about-paragraph {
    font-size: 16px;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }

  .logo-grid img {
    max-height: 28px;
  }

  .vibe-screens-track {
    --vibe-screen-width: min(48vw, 200px);
    gap: clamp(20px, 5vw, 36px);
  }

  .vibe-dock {
    gap: clamp(16px, 4.5vw, 28px);
    max-width: calc(100% - 2 * var(--pad));
  }

  .site-footer__card {
    padding: 24px 20px;
  }

  .site-footer__links {
    width: 100%;
    justify-content: space-between;
  }
}

body.is-nav-open {
  overflow: hidden;
}

@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;
  }
}
