.hero { position: relative; isolation: isolate; overflow: hidden; background: #091b13; color: var(--paper); }
.hero-scenes, .hero-scenes::after, .hero-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scenes { z-index: -1; }
.hero-scenes::after {
  content: "";
  background: linear-gradient(90deg, rgb(7 12 11 / 83%), rgb(7 12 11 / 62%) 28%, transparent 68%),
              linear-gradient(0deg, rgb(4 9 8 / 78%), transparent 24%);
}
.hero-image { object-fit: cover; object-position: 68% 33%; }
.hero-image[hidden], .hero-rail[hidden] { display: none; }
.hero-layout { width: min(calc(100% - var(--gutter) * 2), 1630px); min-height: clamp(510px, 44vw, 706px); display: flex; flex-direction: column; }
.hero-intro { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: clamp(34px, 4vw, 70px) 22px; }
.hero h1 { margin: 0; font: 400 clamp(86px, 9.5vw, 163px)/.94 Anton, Impact, sans-serif; letter-spacing: -.035em; text-transform: uppercase; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span:last-child { color: var(--green); }
.hero-copy { max-width: 37ch; margin-top: 24px; font-size: clamp(15px, 1.12vw, 19px); line-height: 1.48; font-weight: 500; text-wrap: pretty; }
.hero-stats { display: inline-flex; align-items: center; max-width: 100%; margin-top: 18px; min-height: 44px; padding: 9px 12px; border: 1px solid #84948a; border-radius: 5px; color: #fff; background: rgb(9 19 14 / 86%); font: 500 14px/1.25 "DM Sans", Arial, sans-serif; }
.hero-stats:hover { background: #0d281b; border-color: var(--green); }
.hero-stats strong { font-weight: 800; }
.hero-credentials, .hero-numbers, .seller-tier, .seller-rating { display: inline-flex; align-items: center; white-space: nowrap; }
.hero-credentials, .hero-numbers { gap: 9px; }
.fiverr-type { font-size: 19px; font-weight: 900; letter-spacing: -.09em; line-height: 1; }
.fiverr-type span, .seller-tier svg, .seller-rating svg { color: #62e49b; }
.seller-tier { gap: 4px; font-weight: 700; }
.seller-tier svg { width: 22px; height: 11px; }
.hero-numbers { margin-left: 9px; }
.hero-numbers > span { border-left: 1px solid #77887d; padding-left: 9px; }
.seller-rating { gap: 4px; }
.seller-rating svg { width: 13px; height: 13px; }
.stats-arrow { width: 15px; height: 15px; flex: none; }
.hero-rail { display: flex; align-items: center; gap: 19px; min-height: 76px; padding-bottom: 17px; }
.hero-caption { display: flex; align-items: center; gap: 15px; font-size: 13px; font-weight: 550; }
.hero-count { font: 500 11px/1.2 ui-monospace, monospace; color: #cdd7cf; white-space: nowrap; }
.hero-count b { color: #70e9a8; font-weight: 600; }
.hero-timer { flex: 1; height: 3px; overflow: hidden; background: rgb(239 245 236 / 35%); }
.hero-timer span { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }
.hero-controls { display: flex; gap: 9px; }
.hero-controls button { display: grid; place-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid #c9cec3; background: rgb(4 10 7 / 28%); color: var(--paper); cursor: pointer; font: 22px/1 Arial, sans-serif; }
.hero-controls button:hover { background: #155f3c; border-color: #a4e9bc; }
.rotation-toggle::before { content: ""; width: 10px; height: 12px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.rotation-toggle.is-paused::before { width: 0; height: 0; margin-left: 2px; border: solid transparent; border-width: 6px 0 6px 9px; border-left-color: currentColor; }
@media (max-width: 700px) {
  .hero-layout { min-height: clamp(520px, 116vw, 640px); }
  .hero-intro { justify-content: flex-end; padding-block: 125px 18px; }
  .hero h1 { font-size: clamp(58px, 14.6vw, 100px); }
  .hero-image { object-position: 72% 31%; }
  .hero-wordpress { object-position: 84% 31%; }
  .hero-vibe { object-position: 81% 31%; }
  .order-qualifier { display: none; }
  .hero-scenes::after { background: linear-gradient(0deg, rgb(4 12 9 / 96%) 1%, rgb(4 12 9 / 78%) 35%, transparent 79%), linear-gradient(90deg, rgb(5 12 10 / 24%), transparent 78%); }
  .hero-copy { margin-top: 15px; max-width: 34ch; font-size: 14px; }
  .hero-stats { margin-top: 13px; padding: 7px 9px; font-size: 12px; }
  .hero-rail { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; min-height: 62px; padding-bottom: 14px; }
  .hero-timer { grid-column: 1 / -1; grid-row: 2; }
  .hero-caption { gap: 8px; font-size: 12px; }
  .hero-controls { gap: 5px; }
  .hero-controls button { width: 40px; height: 40px; }
}
@media (max-width: 450px) {
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-numbers { margin: 0; }
  .hero-numbers > span:first-child { border: 0; padding: 0; }
}

.portfolio-banner {
  --portfolio-glow: radial-gradient(ellipse 47% 65% at center, #fff 26%, rgb(255 255 255 / 96%) 51%, rgb(255 255 255 / 65%) 73%, transparent);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--forest);
  background: var(--paper) url("assets/hero/portfolio.webp") center / cover no-repeat;
}
.portfolio-banner::before, .portfolio-wall {
  position: absolute;
  inset: 0;
}
.portfolio-banner::before {
  content: "";
  z-index: -1;
  pointer-events: none;
  background: var(--portfolio-glow), linear-gradient(0deg, var(--paper), transparent 21%, transparent 90%, rgb(250 249 244 / 75%));
}
.portfolio-wall {
  z-index: -2;
  visibility: hidden;
  background: var(--paper);
  perspective: 1700px;
  perspective-origin: 50% 40%;
}
.portfolio-wall.is-ready { visibility: visible; }
.portfolio-plane {
  --gap: 22px;
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--gap);
  width: max(150%, 1700px);
  height: 210%;
  transform: translate(-50%, -50%) rotateX(36deg) rotateZ(-20deg);
}
.portfolio-track {
  align-self: start;
  animation: portfolio-drift 70s linear infinite paused;
  animation-delay: var(--offset);
}
.portfolio-track:nth-child(even) {
  animation-direction: reverse;
  animation-duration: 82.6s;
}
.portfolio-wall.is-running .portfolio-track { animation-play-state: running; }
.portfolio-banner:focus-within .portfolio-track { animation-play-state: paused; }
@media (hover: hover) {
  .portfolio-wall.is-running .portfolio-track:hover { animation-play-state: paused; }
}
.portfolio-tiles { display: grid; gap: var(--gap); padding-bottom: var(--gap); }
.portfolio-tiles img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgb(11 61 53 / 6%), 0 24px 40px -22px rgb(6 41 37 / 45%);
}
@keyframes portfolio-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.portfolio-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(490px, 40vw, 655px);
  padding-block: clamp(54px, 5vw, 90px);
  text-align: center;
  pointer-events: none;
}
.portfolio-intro > * { pointer-events: auto; }
.portfolio-kicker { margin-bottom: 14px; color: #086b47; font-size: 12px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.portfolio-intro h2 { font: 720 clamp(78px, 8.1vw, 143px)/.96 "DM Sans", sans-serif; letter-spacing: -.08em; text-transform: none; }
.portfolio-intro em { font: italic 400 1.06em/.9 Georgia, serif; letter-spacing: -.07em; color: #09754e; }
@media (prefers-reduced-motion: no-preference) {
  #portfolio-title { position: relative; }
  .portfolio-echo[hidden] {
    display: block; position: absolute; inset: 0; pointer-events: none; user-select: none;
    color: var(--green); opacity: 0; text-shadow: none;
    animation: portfolio-title-slice 7s steps(1, end) -4s infinite;
  }
  .portfolio-echo em { color: inherit; }
  @keyframes portfolio-title-slice {
    0%, 73%, 77%, 100% { opacity: 0; }
    74% { opacity: 1; clip-path: inset(22% 0 62%); transform: translateX(.055em); }
    75.5% { opacity: 1; clip-path: inset(67% 0 19%); transform: translateX(-.042em); }
  }
}
.portfolio-copy { max-width: 42ch; margin-top: 22px; font-size: clamp(16px, 1.2vw, 20px); line-height: 1.45; text-wrap: balance; }
.portfolio-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px; margin-top: 22px; }
.portfolio-projects { min-height: 46px; padding: 12px 21px; color: var(--forest); background: #fff; border: 1px solid #52896c; font-size: 15px; }
.portfolio-projects:hover { background: #e3f6e9; }
.portfolio-review { min-height: 46px; padding: 13px 21px; background: var(--forest); color: white; font-size: 15px; }
.portfolio-review:hover { background: #12623c; }
@media (max-width: 700px) {
  .portfolio-banner {
    --portfolio-glow: radial-gradient(ellipse 77% 55% at center, #fff 28%, rgb(255 255 255 / 96%) 56%, rgb(255 255 255 / 58%) 79%, transparent);
  }
  .portfolio-plane {
    --gap: 14px;
    width: max(260%, 1360px);
    transform: translate(-50%, -50%) rotateX(30deg) rotateZ(-16deg);
  }
  .portfolio-intro { min-height: 455px; }
  .portfolio-intro h2 { font-size: clamp(64px, 15vw, 95px); }
  .portfolio-copy { max-width: 30ch; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-wall { display: none; }
  .portfolio-track { animation: none; }
}

@media (max-width: 540px) {
  .portfolio-actions { gap: 6px; }
  .portfolio-actions .button { min-height: 44px; font-size: 13px; padding: 9px 11px; gap: 6px; }
}
@media (max-width: 440px) {
  .portfolio-actions { display: grid; grid-template-columns: 1fr 1.22fr; width: 100%; }
  .portfolio-actions .button { height: 100%; white-space: normal; padding-inline: 7px; }
}
