.hero {
  --nav-h: 72px;
  --hero-gutter: var(--section-gutter, clamp(24px, 4vw, 40px));
  --display: 'Barlow Semi Condensed', 'Montserrat', 'Helvetica Neue', Helvetica,
    sans-serif;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.hero__photographer--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 22px var(--hero-gutter) 12px;
  position: relative;
  z-index: 30;
}

.hero__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #0a0a0a;
  position: relative;
  padding-top: 12px;
}

.hero__logo-mark {
  position: absolute;
  left: 14px;
  top: -5px;
  width: 22px;
  height: 14px;
}

.hero__logo-orb {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  top: 0;
}

.hero__logo-orb--a {
  left: 0;
  background: #0a0a0a;
  animation: orb-float 3s ease-in-out infinite;
}

.hero__logo-orb--b {
  left: 7px;
  background: #666666;
  opacity: 0.88;
  animation: orb-float 3s ease-in-out infinite 0.4s;
}

.hero__logo-word {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__logo-dot {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  margin-left: 0.04em;
  background: #0a0a0a;
  vertical-align: baseline;
  transform: translateY(0.06em);
}

.hero__nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hero__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero__links a {
  color: var(--nav);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  animation: nav-link-in 0.6s var(--ease-out-expo) both;
  animation-delay: calc(300ms + var(--i, 0) * 80ms);
}

.hero__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #0a0a0a;
  transition: width 0.35s var(--ease-out-expo);
}

.hero__links a:hover {
  color: #0a0a0a;
}

.hero__links a:hover::after {
  width: 100%;
}

.hero__mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 6px;
  letter-spacing: -0.01em;
  transition:
    transform 0.35s var(--ease-out-back),
    background 0.25s ease,
    box-shadow 0.35s ease;
  animation: nav-link-in 0.6s var(--ease-out-expo) 500ms both;
}

.hero__mail:hover {
  background: #222;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* ---------- Stage ---------- */
.hero__stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  width: 100%;
  padding: clamp(28px, 5vh, 56px) var(--hero-gutter) clamp(20px, 3vh, 36px);
}

.hero__intro {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: clamp(4px, 1vh, 12px);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 6;
  flex-shrink: 0;
  max-width: min(520px, 100%);
  width: 100%;
  padding-inline: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero__intro-role {
  font-weight: 600;
  color: #555;
}

.hero__seo-h1 {
  margin: 0 0 8px;
  max-width: min(720px, 100%);
  padding-inline: 8px;
  text-align: center;
  font-family: 'Barlow Semi Condensed', var(--display, var(--font));
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  position: relative;
  z-index: 8;
  flex-shrink: 0;
}

.hero__seo-value {
  margin: 0 0 6px;
  max-width: min(560px, 100%);
  padding-inline: 10px;
  text-align: center;
  font-size: clamp(0.88rem, 1.5vw, 1.02rem);
  line-height: 1.5;
  font-weight: 500;
  color: #555;
  position: relative;
  z-index: 8;
  flex-shrink: 0;
}

.hero__seo-services {
  margin: 0 0 clamp(6px, 1.2vh, 12px);
  max-width: min(640px, 100%);
  padding-inline: 10px;
  text-align: center;
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8a8a;
  position: relative;
  z-index: 8;
  flex-shrink: 0;
}

.hero__seo-tagline {
  margin: 0 0 clamp(6px, 1.2vh, 14px);
  max-width: min(540px, 100%);
  padding-inline: 8px;
  text-align: center;
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  line-height: 1.45;
  font-weight: 500;
  color: #8a8a8a;
  position: relative;
  z-index: 6;
  flex-shrink: 0;
}

.hero__wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: hero-wave 2.4s ease-in-out infinite;
  filter: brightness(0);
}

/* ---------- Composition ---------- */
.hero__compose {
  position: relative;
  flex: 1;
  width: min(1120px, 100%);
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  justify-items: center;
  z-index: 3;
  isolation: isolate;
}

.hero__solid,
.hero__outline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.8rem, 13.5vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0;
  width: 100%;
  max-width: 100%;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Solid "Full Stack" — above portrait (over hair) */
.hero__solid {
  position: relative;
  z-index: 3;
  color: #0b0b0b;
  grid-area: 1 / 1;
  align-self: start;
  pointer-events: none;
}

.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(40deg);
  transform-origin: center bottom;
  animation: word-rise 0.9s var(--ease-out-expo) forwards;
  pointer-events: auto;
}

/* Outlined "Webdeveloper" — behind portrait */
.hero__outline.hero__photographer {
  position: relative;
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 1px #0b0b0b;
  paint-order: stroke fill;
  grid-area: 1 / 1;
  align-self: start;
  padding-top: 0.9em;
  pointer-events: none;
  user-select: none;
  margin: 0;
}

.hero__web-trigger-text {
  display: inline-block;
  pointer-events: auto;
  cursor: pointer;
  transition: -webkit-text-stroke-color 0.35s ease, filter 0.35s ease;
}

.hero__outline.hero__photographer.is-visible {
  animation: outline-draw 1.2s var(--ease-out-expo) 0.3s both;
}

.hero.is-web-shoot .hero__web-trigger-text {
  -webkit-text-stroke-color: #111;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.18));
  transition:
    -webkit-text-stroke-color 0.45s var(--ease-out-expo),
    filter 0.45s var(--ease-out-expo);
}

/* Spider web — dot at center, strand extends right */
.hero__web-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  --web-top: 52%;
  --web-size: min(440px, 38vw);
  --web-line-w: min(36vw, 360px);
  --web-max-opacity: 1;
}

.hero__web-burst {
  position: absolute;
  left: var(--hero-gutter);
  top: var(--web-top);
  width: var(--web-size);
  aspect-ratio: 1;
  transform: translateY(-50%) scale(0.04);
  transform-origin: center center;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  overflow: visible;
  transition:
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.95s;
}

.hero__web-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.8) brightness(1.12);
  opacity: 0.95;
}

.hero__web-shot-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: 0;
  border-radius: 50%;
  background: #0a0a0a;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: 3;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.08s;
}

.hero__web-shot-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--web-line-w);
  height: 1.5px;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    #0a0a0a 0%,
    rgba(10, 10, 10, 0.6) 70%,
    transparent 100%
  );
  opacity: 0;
  z-index: 2;
  border-radius: 2px;
  transition:
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.12s;
}

/* One continuous motion on hover */
.hero.is-web-shoot .hero__web-shot-line {
  transform: translateY(-50%) scaleX(1);
  opacity: 0.8;
  transition-delay: 0.12s;
}

.hero.is-web-shoot .hero__web-shot-node {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition-delay: 0.08s;
}

.hero.is-web-shoot .hero__web-burst {
  visibility: visible;
  transform: translateY(-50%) scale(1);
  opacity: var(--web-max-opacity);
  transition:
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}

.hero:not(.is-web-shoot) .hero__web-shot-line {
  transform: translateY(-50%) scaleX(0);
  opacity: 0;
  transition-delay: 0s, 0.08s;
}

.hero:not(.is-web-shoot) .hero__web-shot-node {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition-delay: 0s;
}

.hero:not(.is-web-shoot) .hero__web-burst {
  transform: translateY(-50%) scale(0.04);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.7s;
}

.hero__d {
  position: relative;
  display: inline-block;
}

.hero__d-btn {
  position: absolute;
  left: 48%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: clamp(22px, 2.5vw, 36px);
  height: clamp(22px, 2.5vw, 36px);
  border-radius: 50%;
  background: #0a0a0a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, background 0.2s ease;
}

.hero__d-btn svg {
  width: 58%;
  height: 58%;
  display: block;
}

.hero__d-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #222;
}

/* Portrait — above Webdeveloper outline, below Full Stack solid */
.hero__portrait-wrap {
  position: absolute;
  left: 50%;
  top: clamp(37px, 15vh, 100px);
  width: min(420px, 40vw);
  z-index: 2;
  pointer-events: none;
  will-change: transform, clip-path;
  overflow: hidden;
  grid-area: 1 / 1;
  justify-self: center;
}

.hero__portrait-wrap.reveal,
.hero__portrait-wrap.is-visible {
  z-index: 2;
}

.hero__portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.04);
  transform: translateY(20px);
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.4) 75%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.4) 75%,
    transparent 100%
  );
}

.hero__portrait-wrap.is-visible .hero__portrait {
  transform: translateY(0);
  animation: portrait-rise 1.3s var(--ease-out-expo) both, portrait-breathe 5s ease-in-out infinite 1.4s;
}

.hero__meta {
  position: relative;
  z-index: 5;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: clamp(16px, 2.5vh, 32px);
}

.hero__location {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.hero__clients {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  opacity: 0.9;
}

.hero__client-svg {
  height: 28px;
  width: auto;
  display: block;
}

.hero__client--laravel .hero__client-svg {
  width: min(112px, 18vw);
}
.hero__client--node .hero__client-svg {
  width: min(84px, 14vw);
}
.hero__client--electron .hero__client-svg {
  width: min(108px, 17vw);
}
.hero__client--php .hero__client-svg {
  width: min(62px, 12vw);
}
.hero__client--html .hero__client-svg {
  width: min(88px, 15vw);
}

.hero__client {
  animation: logo-float 3.6s ease-in-out infinite;
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;
}

.hero__client:hover,
.hero__client:focus-visible {
  animation-play-state: paused;
  transform: translateY(-7px) scale(1.08);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.12));
}

.hero__client-svg path,
.hero__client-svg text,
.hero__client-svg circle {
  transition: fill 0.35s ease;
}

.hero__client-svg ellipse {
  transition: stroke 0.35s ease;
}

.hero__client:hover .hero__client-svg path,
.hero__client:hover .hero__client-svg text,
.hero__client:hover .hero__client-svg circle,
.hero__client:focus-visible .hero__client-svg path,
.hero__client:focus-visible .hero__client-svg text,
.hero__client:focus-visible .hero__client-svg circle {
  fill: #0a0a0a;
}

.hero__client:hover .hero__client-svg ellipse,
.hero__client:focus-visible .hero__client-svg ellipse {
  stroke: #0a0a0a;
}

.hero__client:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 4px;
  border-radius: 4px;
}

.hero__client:hover .logo-icon--laravel,
.hero__client:focus-visible .logo-icon--laravel {
  animation: logo-laravel-hover 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__client:hover .logo-icon--node,
.hero__client:focus-visible .logo-icon--node {
  animation: logo-node-spin 1.4s linear infinite;
}

.hero__client:hover .logo-orbit--a,
.hero__client:focus-visible .logo-orbit--a {
  animation-duration: 1.1s;
}

.hero__client:hover .logo-orbit--b,
.hero__client:focus-visible .logo-orbit--b {
  animation-duration: 1.4s;
}

.hero__client:hover .logo-orbit--c,
.hero__client:focus-visible .logo-orbit--c {
  animation-duration: 1.8s;
}

.hero__client:hover .logo-nucleus,
.hero__client:focus-visible .logo-nucleus {
  animation: logo-nucleus-hover 0.45s ease-in-out infinite alternate;
}

.hero__client:hover .logo-php-ring,
.hero__client:focus-visible .logo-php-ring {
  animation: logo-php-hover 0.7s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.hero__client:hover .logo-icon--html,
.hero__client:focus-visible .logo-icon--html {
  animation: logo-html-hover 0.5s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.hero__client--laravel { animation-delay: 0s; }
.hero__client--node { animation-delay: 0.35s; }
.hero__client--electron { animation-delay: 0.7s; }
.hero__client--php { animation-delay: 1.05s; }
.hero__client--html { animation-delay: 1.4s; }

.logo-icon--laravel {
  transform-origin: 12px 13px;
  animation: logo-laravel-tilt 2.8s ease-in-out infinite;
}

.logo-icon--node {
  transform-box: fill-box;
  transform-origin: center;
  animation: logo-node-spin 8s linear infinite;
}

.logo-orbit--a {
  transform-origin: 0 0;
  animation: logo-orbit-spin 4.5s linear infinite;
}

.logo-orbit--b {
  transform-origin: 0 0;
  animation: logo-orbit-spin-60 4.5s linear infinite;
}

.logo-orbit--c {
  transform-origin: 0 0;
  animation: logo-orbit-spin-120 6s linear infinite;
}

.logo-nucleus {
  transform-origin: 0 0;
  animation: logo-nucleus-pulse 1.8s ease-in-out infinite;
}

.logo-php-ring {
  transform-origin: 25px 14px;
  animation: logo-php-pulse 2.4s ease-in-out infinite;
}

.logo-php-text {
  animation: logo-php-glow 2.4s ease-in-out infinite;
}

.logo-icon--html {
  transform-origin: 16px 14px;
  animation: logo-html-nudge 1.8s ease-in-out infinite;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes logo-laravel-tilt {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-1.5px);
    opacity: 0.7;
  }
}

@keyframes logo-node-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes logo-orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes logo-orbit-spin-60 {
  from {
    transform: rotate(60deg);
  }
  to {
    transform: rotate(420deg);
  }
}

@keyframes logo-orbit-spin-120 {
  from {
    transform: rotate(120deg);
  }
  to {
    transform: rotate(480deg);
  }
}

@keyframes logo-nucleus-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

@keyframes logo-php-pulse {
  0%,
  100% {
    transform: scale(1);
    stroke-width: 1.4;
  }
  50% {
    transform: scale(1.06);
    stroke-width: 1.8;
  }
}

@keyframes logo-php-glow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@keyframes logo-html-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(2.5px);
  }
}

@keyframes logo-laravel-hover {
  0% {
    transform: translateY(0) skewX(0deg);
  }
  50% {
    transform: translateY(-2px) skewX(-6deg);
  }
  100% {
    transform: translateY(0) skewX(0deg);
  }
}

@keyframes logo-nucleus-hover {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.35);
  }
}

@keyframes logo-php-hover {
  from {
    transform: scale(1);
    stroke-width: 1.4;
  }
  to {
    transform: scale(1.12);
    stroke-width: 2;
  }
}

@keyframes logo-html-hover {
  from {
    transform: translateX(0) rotate(0deg);
  }
  to {
    transform: translateX(4px) rotate(8deg);
  }
}

/* ---------- CTAs ---------- */
.hero__ctas {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 214px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  perspective: 700px;
  transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__cta-ink {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__cta-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.hero__cta-char {
  display: inline-block;
  transform-origin: 50% 70%;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease;
  transition-delay: calc(var(--i, 0) * 28ms);
}

.hero__cta-char--space {
  width: 0.28em;
}

.hero__cta--fill {
  background: #0a0a0a;
  color: #fff;
  border: 1.5px solid #0a0a0a;
}

.hero__cta--fill .hero__cta-ink {
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__cta--fill:hover,
.hero__cta--fill:focus-visible {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.hero__cta--fill:hover .hero__cta-ink,
.hero__cta--fill:focus-visible .hero__cta-ink {
  transform: scaleX(1);
}

.hero__cta--fill:hover .hero__cta-char,
.hero__cta--fill:focus-visible .hero__cta-char {
  color: #0a0a0a;
  transform: translateY(-3px) rotateY(360deg);
}

.hero__cta--ghost {
  background: #fff;
  color: #0a0a0a;
  border: 1.5px solid #0a0a0a;
}

.hero__cta--ghost .hero__cta-ink {
  background: #0a0a0a;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__cta--ghost:hover,
.hero__cta--ghost:focus-visible {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
}

.hero__cta--ghost:hover .hero__cta-ink,
.hero__cta--ghost:focus-visible .hero__cta-ink {
  transform: scaleY(1);
}

.hero__cta--ghost:hover .hero__cta-char,
.hero__cta--ghost:focus-visible .hero__cta-char {
  color: #fff;
  transform: translateY(-4px);
}

/* AI robot — now wrapped by .ai-chat-host in ai-chat.css */
.hero__robot-lottie {
  width: 100%;
  aspect-ratio: 682 / 902;
  display: block;
  pointer-events: none;
}

@keyframes robot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Keyframes ---------- */
@keyframes word-rise {
  from {
    opacity: 0;
    transform: translateY(60px) rotateX(40deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes outline-draw {
  from {
    letter-spacing: 0.08em;
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    letter-spacing: -0.02em;
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes portrait-rise {
  from {
    transform: translateY(40px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes portrait-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes nav-link-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-wave {
  0%,
  60%,
  100% {
    transform: rotate(0deg);
  }
  70% {
    transform: rotate(14deg);
  }
  80% {
    transform: rotate(-8deg);
  }
  90% {
    transform: rotate(10deg);
  }
}

/* ---------- Responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__word,
  .hero__links a,
  .hero__mail,
  .hero__logo-orb,
  .hero__portrait-wrap.is-visible .hero__portrait,
  .ai-chat-host.is-visible .hero__robot-lottie {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero.is-web-shoot .hero__web-burst {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .hero__client,
  .logo-icon--laravel,
  .logo-icon--node,
  .logo-orbit--a,
  .logo-orbit--b,
  .logo-orbit--c,
  .logo-nucleus,
  .logo-php-ring,
  .logo-php-text,
  .logo-icon--html {
    animation: none !important;
  }

  .hero__cta-ink,
  .hero__cta-char {
    transition: none !important;
  }

  .hero__cta--fill:hover .hero__cta-char,
  .hero__cta--fill:focus-visible .hero__cta-char,
  .hero__client:hover,
  .hero__client:focus-visible {
    transform: none;
    filter: none;
  }
}

/* ---------- Responsive: 1900 → 420 ---------- */
@media (max-width: 1900px) {
  .hero__compose {
    max-width: min(1080px, 100%);
  }
}

@media (max-width: 1600px) {
  .hero__client-svg {
    height: 26px;
  }
}

@media (max-width: 1400px) {
  .hero__nav {
    padding: 20px var(--hero-gutter) 10px;
  }

  .hero__links {
    gap: 14px;
  }

  .hero__links a {
    font-size: 0.82rem;
  }

  .hero__cta {
    min-width: 196px;
  }
}

@media (max-width: 1200px) {
  .hero__links a {
    font-size: 0.9rem;
  }

  .hero__mail {
    font-size: 0.88rem;
  }

  .hero__clients {
    gap: clamp(14px, 2vw, 28px);
  }

  .hero__portrait-wrap {
    width: min(380px, 38vw);
  }
}

@media (max-width: 984px) {
  .hero__nav {
    padding: 16px var(--hero-gutter) 0;
  }

  .hero__nav-right {
    gap: 14px;
  }

  .hero__links {
    gap: 12px;
  }

  .hero__links a {
    font-size: 0.82rem;
  }

  .hero__solid,
  .hero__outline {
    font-size: clamp(3rem, 11vw, 5.8rem);
  }

  .hero__compose {
    min-height: 0;
  }

  .hero__portrait-wrap {
    width: min(290px, 46vw);
    top: clamp(20px, 4vh, 40px);
  }

  .hero__meta {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: clamp(12px, 2vh, 24px);
  }

  .hero__clients {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
  }

  .hero__web-fx {
    --web-top: 50%;
    --web-size: min(260px, 40vw);
    --web-line-w: min(26vw, 220px);
  }

  .hero__ctas {
    justify-content: center;
  }
}

@media (max-width: 763px) {
  .hero__links {
    display: none;
  }

  .hero__web-fx {
    z-index: 2;
    --web-top: 48%;
    --web-size: min(200px, 44vw);
    --web-line-w: min(22vw, 88px);
  }

  .hero__compose {
    z-index: 3;
  }

  .hero__portrait-wrap {
    top: clamp(18px, 3.5vh, 36px);
    z-index: 2;
  }

  .hero__web-shot-line,
  .hero__web-shot-node {
    z-index: 0;
  }

  .hero__cta {
    min-width: min(100%, 280px);
  }
}

@media (max-width: 640px) {
  .hero__mail {
    display: none;
  }

  .hero__intro {
    font-size: 0.92rem;
    max-width: 280px;
  }

  .hero__outline.hero__photographer {
    -webkit-text-stroke-width: 1px;
    padding-top: 0.82em;
  }

  .hero__web-fx {
    --web-top: 46%;
    --web-size: min(160px, 50vw);
    --web-line-w: min(20vw, 72px);
  }

  .hero__web-shot-line {
    height: 1px;
  }

  .hero__web-shot-node {
    width: 5px;
    height: 5px;
  }

  .hero__web-burst,
  .hero.is-web-shoot .hero__web-burst {
    transition-duration: 0.82s, 0.55s, 0s;
  }

  .hero__cta {
    min-width: 100%;
  }

  .hero__ctas {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 420px) {
  .hero__web-fx {
    --web-top: 44%;
    --web-size: min(130px, 52vw);
    --web-line-w: min(18vw, 64px);
  }

  .hero__portrait-wrap {
    top: clamp(14px, 3vh, 28px);
    width: min(250px, 62vw);
  }

  .hero__solid,
  .hero__outline {
    font-size: clamp(2.2rem, 14vw, 3.2rem);
  }

  .hero__intro {
    font-size: 0.84rem;
    line-height: 1.45;
    max-width: 100%;
  }

  .hero__location {
    font-size: 0.86rem;
  }

  .hero__cta-text {
    white-space: normal;
    text-align: center;
  }

  .hero__cta {
    min-width: 0;
    width: 100%;
    padding: 12px 14px;
    font-size: 0.88rem;
  }
}

/* Ultra-small / watch-class viewports */
@media (max-width: 320px) {
  .hero {
    height: auto;
    min-height: 100dvh;
  }

  .hero__nav {
    padding: 10px var(--hero-gutter) 0;
  }

  .hero__logo-word {
    font-size: 1.15rem;
  }

  .hero__logo-mark {
    left: 10px;
    top: -2px;
    transform: scale(0.85);
    transform-origin: left top;
  }

  .hero__stage {
    padding: 10px var(--hero-gutter) 14px;
    gap: 8px;
  }

  .hero__intro {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .hero__seo-tagline {
    font-size: 0.62rem;
    margin-bottom: 6px;
  }

  .hero__solid,
  .hero__outline {
    font-size: clamp(1.55rem, 16vw, 2.2rem);
    letter-spacing: -0.03em;
  }

  .hero__outline.hero__photographer {
    padding-top: 0.75em;
  }

  .hero__compose {
    flex: 0 1 auto;
    min-height: 120px;
  }

  .hero__portrait-wrap {
    width: min(130px, 58vw);
    top: clamp(8px, 2vh, 16px);
  }

  .hero__web-fx {
    --web-size: min(90px, 48vw);
    --web-line-w: min(16vw, 48px);
  }

  .hero__meta {
    gap: 8px;
    margin-bottom: 0;
  }

  .hero__location {
    font-size: 0.72rem;
  }

  .hero__clients {
    gap: 8px 10px;
  }

  .hero__client-svg {
    height: 14px;
  }

  .hero__ctas {
    max-width: none;
    gap: 8px;
  }

  .hero__cta {
    padding: 10px 12px;
    font-size: 0.78rem;
    border-radius: 4px;
  }
}

@media (max-width: 220px) {
  :root {
    --section-gutter: 8px;
  }

  .hero__nav {
    padding: 8px 6px 0;
  }

  .hero__logo-word {
    font-size: 0.95rem;
  }

  .hero__stage {
    padding: 8px 6px 10px;
  }

  .hero__intro {
    font-size: 0.62rem;
    letter-spacing: 0;
  }

  .hero__solid,
  .hero__outline {
    font-size: clamp(1.15rem, 18vw, 1.55rem);
  }

  .hero__portrait-wrap,
  .hero__web-fx,
  .ai-chat-host {
    display: none;
  }

  .hero__compose {
    min-height: 72px;
  }

  .hero__clients {
    display: none;
  }

  .hero__cta {
    padding: 8px 10px;
    font-size: 0.68rem;
  }
}
