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

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
blockquote,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

/* === TOKENS === */
:root {
  --color-bg: #EFEBE8;
  --color-accent-red: #FF5841;
  --color-accent-yel: #F4C500;
  --color-dark: #202020;
  --color-overlay-bg: #020108;
  --color-overlay-alpha: rgba(2, 1, 8, 0.64);
  --font-family: 'Neue Haas Grotesk Text Pro', 'Helvetica Neue', Arial, sans-serif;
  --space-unit: 8px;
  --space-2xs: calc(var(--space-unit) * 0.5);
  --space-xs: calc(var(--space-unit) * 1);
  --space-sm: calc(var(--space-unit) * 2);
  --space-md: calc(var(--space-unit) * 3);
  --space-lg: calc(var(--space-unit) * 4);
  --space-xl: calc(var(--space-unit) * 6);
  --space-2xl: calc(var(--space-unit) * 8);
  --space-3xl: calc(var(--space-unit) * 12);
  --line: 1px solid color-mix(in srgb, var(--color-dark), transparent 45%);
  --container: 1440px;
}

@font-face {
  font-family: 'Neue Haas Grotesk Text Pro';
  src: url('../assets/fonts/NeueHaasGroteskTextPro.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk Text Pro';
  src: url('../assets/fonts/NeueHaasGroteskTextPro_Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk Text Pro';
  src: url('../assets/fonts/NeueHaasGroteskTextPro_Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: 0;
}

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

.section-bg {
  background: var(--color-bg);
}

.section-red {
  background: var(--color-accent-red);
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-bg);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border-radius: 8px;
  padding: var(--space-sm) var(--space-md);
  font-weight: 500;
  line-height: 1;
  transition: transform 180ms ease, opacity 180ms ease;
  max-width: 320px;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  background: var(--color-dark);
  color: var(--color-bg);
}
.button-dark:hover {
  background:#020108a3;
  color:#fff;
}

.button img {
  width: 16px;
  height: 16px;
}

.button-people {
  justify-content: flex-start;
}

.avatar-pair {
  display: inline-flex;
  width: 54px;
  min-width: 54px;
}

.avatar-pair img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-bg);
}

.avatar-pair img + img {
  margin-left: -5px;
}

.availability {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1rem;
  font-weight: 400;
}

.availability span {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  /* dot color: swap to a lime/green if you want it identical to squareblack */
  background: #40FFA1;
  animation: dot-breathe 1.8s ease-in-out infinite;
}

/* two expanding "radar" rings, offset in time for a continuous ping */
.availability span::before,
.availability span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #40FFA1;
  animation: dot-ping 1.8s cubic-bezier(0, 0.55, 0.45, 1) infinite;
}

.availability span::after {
  animation-delay: 0.9s;
}

@keyframes dot-ping {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

@keyframes dot-breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  .availability span,
  .availability span::before,
  .availability span::after {
    animation: none;
  }
  .availability span::before {
    transform: scale(2.2);
    opacity: 0.35;
  }
}

/* === SITE HEADER === */
.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  height: 98px;
  padding-left: var(--space-xl);
  border-bottom: var(--line);
}

.brand {
  font-size: 1.75rem;
  font-weight: 700;
}

.site-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 0 var(--space-xl);
  background: var(--color-bg);
  font-weight: 700;
}

.lang-link {
  display: inline-flex !important;
  gap: var(--space-2xs);
  align-items: center;
  min-height: 44px;
}

/* === SECTION: #hero === */
.hero {
  max-width: var(--container);
  width: 100%;
  min-height: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  border-left: var(--line);
  border-right: var(--line);
  border-bottom: var(--line);
}

.hero > *,
.hero-stats > *,
.hero-stats span {
  min-width: 0;
}

.hero-copy {
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 160px var(--space-xl) var(--space-2xl);
}

.hero h1 {
  max-width: 760px;
  font-size: 4.75rem;
  line-height: 0.95;
  font-weight: 700;
}

.hero-copy > p {
  max-width: 560px;
  margin-top: var(--space-xl);
  font-size: 1.25rem;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.hero-media {
  display: grid;
  grid-template-rows: 1fr 112px;
  padding-top: 98px;
  border-left: var(--line);
}

.hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero slideshow: hard-cut photo sequence (no fade) */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.hero-slideshow img.is-active {
  opacity: 1;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--line);
}

.hero-stats article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
}

.hero-stats article + article {
  border-left: var(--line);
}

.hero-stats strong {
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
}

.hero-stats span {
  max-width: 140px;
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
}

/* === SECTION: #about === */
.about {
  max-width: var(--container);
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(520px, 760px) 1fr;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-3xl) var(--space-xl);
  border-left: var(--line);
  border-right: var(--line);
  border-bottom: var(--line);
}

.profile {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 700;
}

.profile img {
  width: 183px;
  height: 267px;
  object-fit: cover;
  margin-bottom: var(--space-sm);
}

.profile-right {
  justify-self: end;
}

.about-statement {
  text-align: center;
  font-size: 2.8rem;
  line-height: 1.1;
}

.about-statement strong,
.about-statement span {
  display: inline;
}



/* === SECTION: #latest-works === */
.latest-works {
  max-width: var(--container);
  margin: 0 auto;
  border-left: var(--line);
  border-right: var(--line);
  border-bottom: var(--line);
}

.works-bar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  font-size: 0.6875rem;
  font-weight: 700;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

}

.work-card {
  position: relative;
  min-height: 602px;
  overflow: hidden;
  background: var(--color-dark);
}

.work-wide {
  grid-column: 1 / -1;
  min-height: 594px;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.work-card:hover img {
  transform: scale(1.02);
}

.work-meta {
  position: absolute;
  inset: auto var(--space-lg) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--space-md);
  color: var(--color-bg);
}

.work-meta h3 {
  font-size: 2.25rem;
  font-weight: 400;
}

.work-meta p {
  max-width: 130px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.05;
}

/* === SECTION: #built-for-you === */
.built {
  max-width: var(--container);
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: var(--line);
  border-right: var(--line);
  border-bottom: var(--line);
}

.built-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-xl);
  border-right: var(--line);
}

.built h2,
.footer h2 {
  max-width: 620px;
  font-size: 3.6rem;
  line-height: 0.95;
  font-weight: 400;
}

.built-cta {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.built-cta > p {
  font-size: 1.125rem;
}

.feature-list article {
  min-height: 144px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: var(--line);
}

.feature-list article:last-child {
  border-bottom: 0;
}

.feature-list h3 {
  font-size: 2rem;
  line-height: 1;
  font-weight: 400;
}

.feature-list p {
  max-width: 640px;
  font-size: 1.0625rem;
}

/* === SECTION: #steps === */
.steps {
  max-width: var(--container);
  margin: 0 auto;
  border-left: var(--line);
  border-right: var(--line);
  border-bottom: var(--line);
}

.steps-intro {
  min-height: 292px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: flex-end;
  gap: var(--space-2xl);
  padding: var(--space-3xl) var(--space-xl);
  border-bottom: var(--line);
}

.steps-intro h2,
.experience-intro h2 {
  max-width: 560px;
  font-size: 3.25rem;
  line-height: 0.92;
  font-weight: 400;
}

.steps-intro p,
.experience-intro p {
  max-width: 520px;
  font-size: 1rem;
}

.step-row {
  min-height: 500px;
  display: grid;
  grid-template-columns: 1.05fr 0.75fr 1.35fr;
  grid-template-rows: 1fr auto;
  border-bottom: var(--line);
}

.step-row:last-child {
  border-bottom: 0;
}

.step-row > * {
  padding: var(--space-lg);
}

.step-kicker {
  color: var(--color-accent-red);
  font-size: 0.75rem;
  font-weight: 700;
}

.step-row h3 {
  grid-column: 1;
  grid-row: 2;

  font-size: 2rem;
  line-height: 0.95;
  font-weight: 400;
}

.step-row img {
  grid-column: 2;
  grid-row: 1 / 3;
  place-self: center;
  width: 180px;
  height: 180px;
  border-left: var(--line);
  border-right: var(--line);
  padding: 0;
}

.step-row > p:last-child {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  max-width: 520px;
}

/* === SECTION: #experience === */
.experience {
  max-width: var(--container);
  margin: 0 auto;
  border-left: var(--line);
  border-right: var(--line);
  border-bottom: var(--line);
}

.experience-intro {
  min-height: 420px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: flex-end;
  gap: var(--space-2xl);
  padding: var(--space-3xl) var(--space-xl);
  border-bottom: 1px solid color-mix(in srgb, var(--color-bg), transparent 82%);
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.comparison article {
  padding: var(--space-lg) var(--space-xl);
}

.comparison-red {
  background: var(--color-accent-red);
  color: var(--color-dark);
}

.comparison h3 {
  margin-bottom: var(--space-lg);
  color: var(--color-accent-red);
  font-size: 0.75rem;
}

.comparison-red h3 {
  color: var(--color-dark);
}

.comparison li {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid color-mix(in srgb, currentColor, transparent 78%);
  font-size: 1rem;
}

.comparison li::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: currentColor;
}

.comparison-muted {
  color: color-mix(in srgb, var(--color-bg), transparent 45%);
}

/* === SECTION: #reviews === */
.reviews {
  max-width: var(--container);
  margin: 0 auto;
  border-left: var(--line);
  border-right: var(--line);
  border-bottom: var(--line);
  padding: 175px 0;
}

.reviews > h2 {
  min-height: 260px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  line-height: 1;
  font-weight: 400;
  text-align: center;
  border-bottom: var(--line);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-grid article {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-xl);
  border-right: var(--line);
  border-bottom:var(--line);
}

.review-grid article:last-child {
  border-right: 0;
}

.review-author,
.review-role {
  color: var(--color-accent-red);
  font-size: 0.75rem;
}

.review-role {
  margin-bottom: auto;
}

blockquote {
  max-width: 390px;
  font-size: 2rem;
  line-height: 0.95;
}

/* === SECTION: #footer === */
.footer {
  max-width: var(--container);
  margin: 0 auto;
  border-left: var(--line);
  border-right: var(--line);
  border-bottom: var(--line);
}

.footer-cta {
  min-height: 460px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: flex-end;
  gap: var(--space-xl);
  padding: var(--space-3xl) var(--space-xl);
  border-bottom: var(--line);
}

.footer-cta > div {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.footer-bottom {
  min-height: 236px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.footer-bottom > div:first-child,
.footer-email,
.footer-links {
  padding: var(--space-xl);
}

.footer-bottom > div:first-child {
  grid-row: span 2;
  border-right: var(--line);
}

.footer-bottom h3 {
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.footer-bottom p {
  margin-bottom: var(--space-xs);
  font-size: 0.75rem;
}

.footer-email {
  display: flex;
  align-items: center;
  border-bottom: var(--line);
  font-size: 2.5rem;
  font-weight: 700;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-content: center;
  gap: var(--space-xs) var(--space-3xl);
  font-size: 0.875rem;
}



/* === SECTION: work detail === */
.work-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 768px) {
  .site-header {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-accent-red);
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: var(--space-sm);
    padding: 0;
    background: transparent;
  }

  .hero,
  .built,
  .comparison,
  .review-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    min-height: 620px;
    padding: var(--space-xl) var(--space-md);
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-copy > p {
    font-size: 1.05rem;
  }

  .hero-media {
    grid-template-rows: minmax(420px, 62vh) auto;
    padding-top: 0;
    border-left: 0;
    border-top: var(--line);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats article + article {
    border-left: 0;
    border-top: var(--line);
  }

  .about {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: var(--space-2xl) var(--space-md);
  }

  .profile,
  .profile-right {
    justify-self: start;
  }

  .about-statement {
    text-align: left;
    font-size: 2rem;
  }

  .works-grid,
  .steps-intro,
  .experience-intro,
  .footer-cta {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-wide {
    min-height: 430px;
  }

  .work-meta {
    grid-template-columns: 1fr;
  }

  .built-left {
    min-height: 360px;
    border-right: 0;
    border-bottom: var(--line);
    padding: var(--space-xl) var(--space-md);
  }

  .built h2,
  .footer h2,
  .steps-intro h2,
  .experience-intro h2,
  .reviews > h2 {
    font-size: 2.6rem;
  }

  .feature-list article {
    padding: var(--space-lg) var(--space-md);
  }

  .step-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .step-row > *,
  .step-row h3,
  .step-row img,
  .step-row > p:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .step-row img {
    width: 160px;
    height: 160px;
    margin: var(--space-xl) 0;
    border: 0;
  }

  .experience-intro,
  .steps-intro,
  .footer-cta {
    min-height: 0;
    padding: var(--space-2xl) var(--space-md);
  }

  .comparison article,
  .review-grid article {
    padding: var(--space-lg) var(--space-md);
  }

  .review-grid article {
    min-height: 320px;
    border-right: 0;
    border-bottom: var(--line);
  }

  blockquote {
    font-size: 1.75rem;
  }

  .footer-bottom > div:first-child {
    grid-row: auto;
    border-right: 0;
    border-bottom: var(--line);
  }

  .footer-bottom > *,
  .footer-links {
    min-width: 0;
  }

  .footer-email {
    font-size: 1.9rem;
    word-break: break-word;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* === FIGMA CORRECTIONS: SECOND PASS === */
:root {
  --space-xl: calc(var(--space-unit) * 5);
}

.site-header {
  position: relative;
  height: 98px;
  padding-left: var(--space-xl);
}

.hero-copy {
  min-height: calc(760px - 98px);
  padding: var(--space-xl);
}

.hero-media {
  padding-top: 0;
}

.profile h2 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.profile p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.works-bar h2,
.works-bar p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.work-meta h3 {
  text-align: left;
}

.steps {
  border-top: 0;
}

.steps-intro {
  border-bottom: var(--line);
}

.step-row {
  grid-template-columns: minmax(0, 34%) minmax(0, 24%) minmax(0, 42%);
  grid-template-rows: minmax(120px, 1fr) minmax(160px, auto);
  border-bottom: 0;
}

.step-row + .step-row {
  border-top: var(--line);
}

.step-row > * {
  min-width: 0;
}

.step-row > * + * {
  border-left: 0;
}

.step-row > h3,
.step-row > img,
.step-row > p:last-child {
  border-left: var(--line);
}

.step-kicker {
  grid-column: 1;
  grid-row: 1;
  padding:10px 0;
}

.step-row h3 {
  grid-column: 1;
  grid-row: 2;
  border-left: 0;
}

.step-row img {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 265px;
  height: 265px;
  padding: var(--space-lg);
  object-fit: contain;
}

.step-row > p:last-child {
  grid-column: 3;
  grid-row: 1 / 3;
}
.reviews {
  padding:0 0 120px 0;
}

@media (max-width: 768px) {
  :root {
    --space-xl: calc(var(--space-unit) * 3);
  }

  .site-header {
    height: auto;
    padding: var(--space-md);
  }

  .hero-copy {
    min-height: 560px;
    padding: var(--space-xl) var(--space-md);
  }

  .step-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .step-row > h3,
  .step-row > img,
  .step-row > p:last-child {
    border-left: 0;
  }

  .step-row > * + * {
    border-top: var(--line);
  }

  .step-row img {
    width: 220px;
    height: 220px;
    padding: var(--space-md);
  }
}

/* === FIGMA CORRECTIONS: FIRST PASS === */
.site-header,
.hero,
.about,
.latest-works,
.built,
.steps,
.experience,
.reviews,
.footer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.site-header {
  border-bottom: 0;
}

.brand {
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.site-nav {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.site-header .button {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.button {
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.hero {
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
}

.hero h1 {
  font-size: 60px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy > p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.hero-stats strong {
  font-size: 60px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.hero-stats span {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.profile img {
  aspect-ratio: 0.69;
  height: auto;
}

.profile {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.about-statement {
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}
.about-statement strong {
  font-weight: 500;
}



.works-bar {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.work-meta h3 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.work-meta p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.built h2,
.footer h2 {
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.built-cta > p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.feature-list h3 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.feature-list p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.steps-intro h2,
.experience-intro h2,
.reviews > h2 {
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.steps-intro p,
.experience-intro p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.step-kicker,
.comparison h3,
.review-author,
.review-role {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.step-row {
  border-bottom: 0;
}

.step-row + .step-row {
  border-top: var(--line);
}

.step-row > * + * {
  border-left: var(--line);
}

.step-row img {
  width: 265px;
  height: 265px;
  border-left: 0;
  border-right: 0;
}

.step-row h3 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.step-row > p:last-child {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.comparison li {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

blockquote {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.footer-cta p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.footer-bottom h3 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.footer-bottom p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.footer-email {
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.footer-links {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .brand {
    font-size: 26px;
  }

  .site-nav {
    font-size: 17px;
  }

  .site-header .button {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 40px;
  }

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

  .hero-copy > p,
  .built-cta > p,
  .feature-list p,
  .steps-intro p,
  .experience-intro p,
  .step-row > p:last-child,
  .comparison li,
  .footer-cta p {
    font-size: 18px;
  }

  .hero-stats strong {
    font-size: 48px;
  }

  .hero-stats span {
    font-size: 16px;
  }

  .profile {
    font-size: 14px;
  }

  .about-statement {
    font-size: 32px;
    text-align: left;
  }

  .works-bar,
  .work-meta p,
  .step-kicker,
  .comparison h3,
  .review-author,
  .review-role,
  .footer-bottom p {
    font-size: 13px;
  }

  .work-meta h3 {
    font-size: 32px;
    text-align: left;
  }

  .built h2,
  .footer h2,
  .steps-intro h2,
  .experience-intro h2,
  .reviews > h2 {
    font-size: 38px;
  }

  .feature-list h3,
  .step-row h3,
  blockquote {
    font-size: 28px;
  }
  blockquote {
  font-size: 22px;
}

  .step-row > * + * {
    border-left: 0;
    border-top: var(--line);
  }

  .step-row img {
    width: 220px;
    height: 220px;
  }

  .footer-bottom h3 {
    font-size: 26px;
  }

  .footer-email {
    font-size: 32px;
  }

  .footer-links {
    font-size: 16px;
  }
}

/* === FINAL OVERRIDES === */
.work-meta h3 {
  text-align: left;
}

@media (max-width: 768px) {
  .step-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .step-kicker,
  .step-row h3,
  .step-row img,
  .step-row > p:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .step-row > h3,
  .step-row > img,
  .step-row > p:last-child {
    border-left: 0;
  }

  .step-row > * + * {
    border-top: var(--line);
  }

  .step-row img {
    width: 220px;
    height: 220px;
    object-fit: contain;
  }
}

/* === STRUCTURE CORRECTIONS === */
.site-nav {
  justify-content: flex-end;
}

.hero {
  min-height: 80vh;
}

.hero-copy {
  min-height: 662px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-text-block > p {
  max-width: 560px;
  margin-top: 28px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy > p {
  margin-top: 0;
}

.cta-stack {
  margin-top: 0;
}

.hero-media {
  position: relative;
  min-height: 662px;
  display: block;
  overflow: hidden;
}

.hero-media > img {
  position: absolute;
  inset: 0 0 112px;
  width: 100%;
  height: calc(100% - 112px);
  object-fit: cover;
  z-index: 0;
}

.hero-stats {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 112px;
  background: var(--color-accent-red);
}

.step-row {
  display: grid;
  grid-template-columns: minmax(0, 33%) minmax(0, 24%) minmax(0, 43%);
  grid-template-rows: auto;
  min-height: 500px;
  border: 0;
}

.step-row + .step-row {
  border-top: var(--line);
}

.step-cell {
  min-width: 0;
  padding: var(--space-xl);
}

.step-cell + .step-cell {
  border-left: var(--line);
}

.step-heading {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.step-visual {
  display: grid;
  place-items: center;
}

.step-description {
  display: flex;
  align-items: flex-end;
}

.step-row h3,
.step-row img,
.step-row > p:last-child,
.step-row > h3,
.step-row > img {
  grid-column: auto;
  grid-row: auto;
  border-left: 0;
  padding: 0;
}

.step-row img {
  width: 265px;
  height: 265px;
  object-fit: contain;
}

.step-description p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .hero-copy,
  .hero-media {
    min-height: 0;
  }

  .hero-copy {
    min-height: 560px;
  }

  .hero-media {
    min-height: 540px;
  }

  .hero-media > img {
    inset: 0 0 150px;
    height: calc(100% - 150px);
  }

  .hero-stats {
    min-height: 150px;
  }

  .step-row {
    grid-template-columns: 1fr;
  }

  .step-cell {
    padding: var(--space-md);
  }

  .step-cell + .step-cell {
    border-left: 0;
    border-top: var(--line);
  }

  .step-row img {
    width: 220px;
    height: 220px;
  }
}

/* === FINAL STRUCTURE OVERRIDES === */
.hero-copy {
  justify-content: space-between;
}

.hero-text-block > p {
  margin-top: 28px;
}

.cta-stack {
  margin-top: 0;
}

/* === SPACING CORRECTIONS === */
.site-header {
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  padding-left: 0;
  background: linear-gradient(to right, var(--color-accent-red) 0 55%, var(--color-bg) 55% 100%);
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: var(--space-xl);
}

.site-nav {
  padding: 0 var(--space-xl);
}

.hero-copy {
  min-height: calc(760px - 98px);
  justify-content: flex-start;
  padding: 30px var(--space-xl) 35px;
}

.hero-copy > p {
  margin-top: 35px;
}

.cta-stack {
  margin-top: 175px;
}

.hero-media {
  grid-template-rows: 1fr auto;
}

.hero-stats article {
  padding: 25px;
}

.profile {
  gap: 4px;
}

.profile img {
  margin-bottom: 11px;
}

.profile h2,
.profile p {
  margin: 0;
}

.work-meta {
  inset: auto var(--space-xl) var(--space-xl);
}

.work-meta p {
  max-width: 160px;
}

.feature-list article {
  gap: 15px;
}

.steps-intro,
.experience-intro,
.footer-cta {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.steps-intro p,
.experience-intro p,
.footer-cta > div {
  justify-self: end;
  text-align: left;
}

.step-row {
  grid-template-columns: minmax(0, 33%) minmax(0, 24%) minmax(0, 43%);
}

.step-row > * {
  padding: var(--space-xl);
}

.comparison h3 {
  margin-bottom: 53px;
}


blockquote {
  max-width: none;
}

.footer-email {
  padding-top: 55px;
  padding-bottom: 61px;
}

.footer-bottom p:first-of-type {
  margin-bottom: 15px;
}

.footer-links {
  gap: 5px 112px;
}

.brand img,
.footer-brand img {
  width: 134px;
  height: auto;
}

.footer-brand {
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .site-header {
    grid-template-columns: 1fr;
    background: var(--color-accent-red);
  }

  .brand {
    padding-left: 0;
  }

  .hero-copy {
    min-height: 560px;
    padding: 30px var(--space-md) 35px;
  }

  .cta-stack {
    margin-top: 80px;
  }

  .work-meta {
    inset: auto var(--space-md) var(--space-md);
  }

  .steps-intro,
  .experience-intro,
  .footer-cta {
    grid-template-columns: 1fr;
  }

  .steps-intro p,
  .experience-intro p,
  .footer-cta > div {
    justify-self: start;
  }

  .step-row {
    grid-template-columns: 1fr;
  }

  .step-row > * {
    padding: var(--space-md);
  }

  .reviews > h2 {
    padding: 40px var(--space-md) 40px;
  }

  .footer-email {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .footer-links {
    gap: var(--space-sm);
  }
}

/* === ABSOLUTE FINAL HERO OVERRIDES === */
.hero-copy {
  justify-content: space-between;
}

.cta-stack {
  margin-top: 0;
}

@media (max-width: 768px) {
  .hero-copy {
    justify-content: space-between;
  }
}

/* === SECTION: work detail final layout === */
.work-detail-main {
  background: var(--color-bg);
}

.work-detail-main + .footer {
  margin-top: 80px;
}

.work-detail-hero {
  position: sticky;
  top: 0;
  display: block;
  /* Full height minus the in-flow header, so the hero and its bottom
   * meta always fit within the first viewport. --header-h is the
   * header's real measured height (set by main.js) — it differs between
   * desktop and mobile, so it can't be a single hardcoded pixel value.
   * 98px is only the pre-JS / no-JS fallback (matches the desktop header). */
  height: calc(100vh - var(--header-h, 98px));
  min-height: calc(100vh - var(--header-h, 98px));
  overflow: hidden;
  background: var(--color-dark);
  z-index: 0;
}

@media (max-width: 768px) {
  .work-detail-hero {
  position: sticky;
  height: calc(100vh - var(--header-h, 200px));
  min-height: calc(100vh - var(--header-h, 200px));
}
}


.work-detail-hero > img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.work-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-overlay-bg);
  opacity: 0.18;
  pointer-events: none;
}

.work-detail-hero-meta {
  z-index: 1;
}

.work-detail-hero-meta h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
}

.work-detail-hero-meta p {
  max-width: 160px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Sections after the hero sit above it and scroll over the pinned hero. */
.work-detail-steps,
.work-detail-gallery,
.work-project-nav {
  position: relative;
  z-index: 1;
}

.work-detail-steps {
  display: grid;
  border-top: var(--line);
  border-bottom: var(--line);
  box-shadow: 0 -24px 48px -24px rgba(32, 32, 32, 0.28);
}

.work-detail-step {
  display: grid;
  grid-template-columns: 33% 67%;
  min-height: 300px;
  border-bottom: var(--line);
}

.work-detail-step:last-child {
  border-bottom: 0;
}

.work-detail-step > * {
  padding: 40px;
}

.work-detail-step > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: var(--line);
}

.work-detail-step > p {
  align-self: end;
  padding-left: 34%;
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.work-detail-step h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.work-detail-step .step-kicker {
  margin-bottom: 0;
}

.work-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.work-detail-gallery-wide {
  grid-column: 1 / -1;
}

.work-detail-gallery-item {
  min-height: 520px;
  background: var(--color-dark);
}

.work-detail-gallery-wide {
  min-height: 680px;
}

.work-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-project-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--line);
  border-bottom: var(--line);
}

.work-project-nav a {
  
  aspect-ratio: 3 / 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--color-dark);
  text-decoration: none;
}

.work-project-nav a:first-child {
  border-right: var(--line);
}

.work-project-nav span {
  color: var(--color-accent-red);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.work-project-nav strong {
  max-width: 620px;
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.work-project-nav a:hover strong,
.work-project-nav a:focus-visible strong {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .work-detail-main + .footer {
    margin-top: 80px;
  }

  /* .work-detail-hero height is handled by the base rule via --header-h,
   * which already accounts for the mobile header's different height. */

  .work-detail-hero-meta {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .work-detail-hero-meta h1 {
    font-size: 36px;
  }

  .work-detail-step,
  .work-project-nav,
  .work-detail-gallery {
    grid-template-columns: 1fr;
  }

  .work-detail-step > * {
    padding: 32px 24px;
  }

  .work-detail-step > div,
  .work-project-nav a:first-child {
    border-right: 0;
  }

  .work-detail-step > div {
    border-bottom: var(--line);
  }

  .work-detail-gallery-wide {
    grid-column: auto;
  }

  .work-detail-step > p {
    padding-left: 24px;
    font-size: 18px;
  }

  .work-detail-step .step-kicker {
    margin-bottom: 32px;
  }

  .work-detail-gallery-item {
    min-height: 360px;
  }

  .work-project-nav a {
    
    padding: 32px 24px;
  }

  .work-project-nav a + a {
    border-top: var(--line);
  }

  .work-project-nav strong {
    font-size: 36px;
  }
}

/* ============================================================
 * SCROLL EFFECTS (GSAP + Lenis) — added layer
 * ============================================================ */

/* --- Smooth scrolling (Lenis) --- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* --- Custom cursor on #latest-works ("Vedi Progetto") --- */
.work-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(255, 88, 65, 0.8);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .latest-works.has-cursor .work-card {
    cursor: none;
  }
}

/* --- Stack cards on #steps (enerblock-style) --- */
@media (min-width: 1024px) {
  .steps.steps-stack {
    position: relative;
    overflow: visible;
  }

  .steps.steps-stack .step-row {
    position: sticky;
    background: var(--color-bg);
    border-top: var(--line);
    border-bottom: 0;
    will-change: transform;
  }
}

/* --- Reviews horizontal slider (autoplay + drag/swipe) --- */
.review-grid {
  display: block;
  width: 100%;
  overflow: hidden;
  border-bottom: var(--line);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.review-grid.is-dragging {
  cursor: grabbing;
}

.review-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* Every slide (originals AND clones) must be identical so the loop is
 * seamless — keep a uniform width and right separator on all of them. */
.review-track article,
.review-track article:last-child {
  flex: 0 0 auto;
  width: min(420px, 82vw);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-xl);
  border-right: var(--line);
  border-bottom: 0;
}

@media (max-width: 768px) {
  .review-track article,
  .review-track article:last-child {
    width: min(360px, 82vw);
    min-height: 360px;
    padding: var(--space-lg) var(--space-md);
  }
}

/* --- Mobile header: logo (left) + CTA (right) only, single row --- */
@media (max-width: 768px) {
  .site-header {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    height: auto;
    padding: 20px;
    background: var(--color-accent-red);
  }

  .brand {
    padding-left: 0;
  }

  .site-nav {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
    gap: 0;
    background: transparent;
  }

  /* Hide the navigation links and the language switch — keep only the CTA. */
  .site-nav > a:not(.button) {
    display: none;
  }
  .lang-link {
    display: inline-flex !important;
    padding: 8px 0 8px 8px;
  }
  }

/* --- Hero CTA moved inside .hero-text-block: restore spacing/typography.
 * The button and availability pill are now direct children alongside the
 * h1/subline, so they need their own gap instead of relying on the old
 * .cta-stack wrapper. */
.hero-text-block > .button {
  margin-top: var(--space-xl);
}

.hero-text-block > p.availability {
  margin-top: var(--space-sm);
  max-width: none;
  font-size: 1rem;
}

/* --- Mobile #about: statement on top, the two profiles on one row below.
 * Done purely with grid placement so the desktop 3-column layout (which
 * relies on the source order profile-left / statement / profile-right)
 * stays untouched — no HTML restructuring needed. */
@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-xl) var(--space-md);
  }

  .about-statement {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .profile-left {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .profile-right {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  /* Keep both portraits inside their half-width columns. */
  .about .profile img {
    width: 100%;
    max-width: 183px;
    height: auto;
  }
}

/* --- Mobile hero-media: swap the order of the slideshow and the stats,
 * so the stats block sits ABOVE the photo sequence. The desktop version
 * keeps the slideshow filling the area with the stats overlaid, so this
 * only converts the two into a stacked, reordered flex column on mobile. */
@media (max-width: 768px) {
  .hero-media {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-stats {
    position: static;
    order: -1;
  }

  .hero-slideshow {
    order: 0;
    height: auto;
    min-height: 390px;
    flex: 1 1 auto;
  }
}

/* --- Homepage: pinned full-height hero, sections slide over it (zerocircle
 * style). #id specificity beats the layered .hero overrides. Header is
 * in-flow (98px), so the hero is one viewport minus the header. --- */
#hero.hero {
  position: sticky;
  top: 0;
  height: calc(100vh - 98px);
  min-height: calc(100vh - 98px);
  z-index: 0;
}

#about,
#latest-works,
#built-for-you,
#steps,
#experience,
#reviews {
  position: relative;
  z-index: 1;
}

/* Soft shadow on the first section as it scrolls over the pinned hero. */
#about {
  box-shadow: 0 -24px 48px -24px rgba(32, 32, 32, 0.28);
}

/* On mobile the hero holds more stacked content than one viewport can show,
 * so the overlap would cover it before it's fully read. Disable the pinned
 * hero / overlap entirely below 768px — sections just flow normally. */
@media (max-width: 768px) {
  #hero.hero {
    position: static;
    height: auto;
    min-height: 0;
    z-index: auto;
  }

  #about,
  #latest-works,
  #built-for-you,
  #steps,
  #experience,
  #reviews {
    position: static;
    z-index: auto;
  }

  #about {
    box-shadow: none;
  }
}

