/* Hero direction — split canvas, typography first. */
.home-page {
  --index-edge: clamp(24px, 4.5vw, 72px);
}

.home-page .site-header:not(.menu-open),
.home-page .site-header.on-light:not(.menu-open) {
  position: fixed;
  padding-inline: var(--index-edge);
  color: #111;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mix-blend-mode: normal;
}

/* The wordmark lives on white; the controls live on black. Keeping their
   colours explicit avoids browser compositing glitches on fixed elements. */
.home-page .site-header:not(.menu-open) .header-actions,
.home-page .site-header:not(.menu-open) .nav-links {
  color: #f8f8f5 !important;
}

.home-page .site-header:not(.menu-open) .nav-links a {
  background: none;
}

.home-page .site-header:not(.menu-open) .nav-links {
  position: absolute;
  grid-column: 1 / -1;
  justify-self: stretch;
  right: 31%;
  left: 33%;
  justify-content: space-between;
  gap: 0;
}

/* Due gruppi ancorati alla linea del 50%: Servizi e Demo restano sempre sul
   bianco, Pacchetti sempre sul nero, a qualsiasi larghezza e lingua. */
@media (min-width: 761px) {
  .home-page .site-header:not(.menu-open) .nav-links {
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    pointer-events: none;
  }

  .home-page .site-header:not(.menu-open) .nav-half {
    display: flex;
    gap: clamp(20px, 2.4vw, 34px);
    pointer-events: auto;
  }

  .home-page .site-header:not(.menu-open) .nav-half:first-child {
    justify-self: end;
    padding-right: clamp(40px, 5vw, 72px);
  }

  .home-page .site-header:not(.menu-open) .nav-half:last-child {
    justify-self: start;
    padding-left: clamp(40px, 5vw, 72px);
  }
}

/* Tra 761 e 1100px (tablet) lo spazio è poco: gruppi più vicini al centro,
   così i link non toccano logo e selettore lingua. */
@media (min-width: 761px) and (max-width: 1100px) {
  .home-page .site-header:not(.menu-open) .nav-half { gap: 18px; }
  .home-page .site-header:not(.menu-open) .nav-half:first-child { padding-right: 24px; }
  .home-page .site-header:not(.menu-open) .nav-half:last-child { padding-left: 24px; }
}

.home-page .site-header:not(.menu-open) .header-actions {
  grid-column: 3;
  justify-self: end;
}

.home-page .site-header:not(.menu-open) .nav-half:first-child a {
  color: #111 !important;
}

.home-page .site-header:not(.menu-open) .nav-half:last-child a {
  color: #f8f8f5 !important;
}

.home-page .footer-top {
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-page .site-header.on-light:not(.menu-open) .header-actions,
.home-page .site-header.on-light:not(.menu-open) .nav-links {
  color: #111 !important;
}

.home-page .site-header.on-light:not(.menu-open) .nav-links a {
  color: #111 !important;
}

.home-page .site-header.on-light:not(.menu-open) .lang-btn.active {
  color: #f8f8f5 !important;
  border-color: #111 !important;
  background: #111 !important;
}

.home-page .site-header:not(.menu-open) .brand-name,
.home-page .site-header:not(.menu-open) .brand-service,
.home-page .site-header:not(.menu-open) .nav-links,
.home-page .site-header:not(.menu-open) .nav-links a,
.home-page .site-header:not(.menu-open) .lang-btn,
.home-page .site-header:not(.menu-open) .nav-toggle,
.home-page .site-header:not(.menu-open) .header-cta {
  color: inherit !important;
}

.home-page .site-header:not(.menu-open) .lang-switch,
.home-page .site-header:not(.menu-open) .nav-toggle,
.home-page .site-header:not(.menu-open) .header-cta {
  border-color: currentColor !important;
  background: transparent !important;
  box-shadow: none !important;
}

.home-page .site-header:not(.menu-open) .lang-btn.active {
  color: #000 !important;
  background: #fff !important;
}

.home-page .hero {
  position: relative;
  display: block;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #111;
  background: linear-gradient(90deg, #f8f8f5 0 50%, #080808 50% 100%);
}

.home-page .hero-layout,
.home-page .hero-copy {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
}

.home-page .hero-copy {
  text-align: left;
}

.home-page .hero-brand-label,
.home-page .hero-text {
  display: none;
}

.home-page .hero h1 {
  position: absolute;
  inset: 0;
  max-width: none;
  margin: 0;
  color: inherit;
  font-family: "Instrument Sans", sans-serif;
  font-size: inherit;
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.075em;
  text-wrap: initial;
  pointer-events: none;
}

.home-page .hero-word {
  position: absolute;
  display: block;
  width: fit-content;
}

.home-page .hero-word-left {
  top: clamp(118px, 18vh, 190px);
  left: var(--index-edge);
  max-width: calc(50vw - 48px);
  color: #111;
  font-size: clamp(68px, 12vw, 184px);
}

.home-page .hero-word-right {
  right: var(--index-edge);
  bottom: clamp(98px, 14vh, 148px);
  max-width: calc(50vw - 48px);
  color: #f8f8f5;
  font-size: clamp(58px, 9vw, 138px);
  text-align: right;
}

.home-page .hero-bottom-row {
  position: absolute;
  left: var(--index-edge);
  bottom: clamp(28px, 4.5vh, 52px);
  display: block;
  width: min(420px, calc(50vw - 48px));
  max-width: none;
  margin: 0;
}

/* Una riga che dice cosa faccio, subito sopra i pulsanti, sul lato bianco. */
.home-page .hero-bottom-row .hero-text {
  display: block;
  max-width: 34ch;
  margin: 0 0 24px;
  color: #45423c;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.45;
  letter-spacing: -.01em;
}

.home-page .hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
}

.home-page .hero .primary-btn,
.home-page .hero .secondary-btn {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 0;
  font-family: "Instrument Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: none;
}

.home-page .hero .primary-btn {
  color: #f8f8f5;
  border-color: #111;
  background: #111;
}

.home-page .hero .secondary-btn {
  color: #111;
  border-color: rgba(17, 17, 17, .45);
  background: transparent;
}

.home-page .hero .primary-btn:hover {
  color: #111;
  border-color: #111;
  background: transparent;
  transform: none;
}

.home-page .hero .secondary-btn:hover {
  color: #f8f8f5;
  border-color: #111;
  background: #111;
  transform: none;
}

/* Services — a scroll-led editorial sequence, not a grid of generic cards. */
.home-page .services-section {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(520px, 1.18fr);
  gap: clamp(64px, 8vw, 132px);
  align-items: start;
  padding: clamp(112px, 13vw, 188px) var(--index-edge) clamp(120px, 15vw, 210px);
}

.home-page .services-section .section-heading {
  position: sticky;
  top: 108px;
  display: block;
  max-width: 590px;
  margin: 0;
}

.home-page .services-section .section-kicker {
  margin: 0 0 clamp(34px, 5vw, 72px);
  color: rgba(17, 17, 17, .5);
}

.home-page .services-section .section-heading h2 {
  max-width: 8.7ch;
  font-size: clamp(48px, 5.5vw, 86px);
  line-height: .91;
  letter-spacing: -.075em;
}

.home-page .services-section .section-heading > p:not(.section-kicker) {
  max-width: 470px;
  margin-top: clamp(28px, 3vw, 44px);
  color: rgba(17, 17, 17, .62);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
}

.home-page .services-list {
  width: 100%;
  max-width: none;
  margin: 0;
  border-top-color: rgba(17, 17, 17, .28);
}

.home-page .service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom-color: rgba(17, 17, 17, .28);
  outline: 0;
  cursor: default;
  transition: opacity .78s ease, transform .78s cubic-bezier(.2, .8, .2, 1), border-color .55s ease;
}

.home-page .service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #080808;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .65s cubic-bezier(.76, 0, .24, 1);
}

.home-page .service-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 13px 24px;
  align-content: center;
  min-height: clamp(164px, 15vw, 210px);
  padding: 30px clamp(22px, 3vw, 42px);
}

.home-page .service-num {
  grid-row: 1 / 3;
  align-self: start;
  padding-top: .65em;
  color: rgba(17, 17, 17, .48);
  transition: color .45s ease;
}

.home-page .service-card h3 {
  grid-column: 2;
  max-width: none;
  color: #111;
  font-size: clamp(38px, 4.5vw, 70px);
  line-height: .92;
  letter-spacing: -.07em;
  transition: color .45s ease, transform .65s cubic-bezier(.16, 1, .3, 1);
}

.home-page .service-card p {
  grid-column: 2;
  max-width: 560px;
  color: rgba(17, 17, 17, .58);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  transform: translateY(4px);
  transition: color .45s ease, opacity .45s ease, transform .65s cubic-bezier(.16, 1, .3, 1);
}

.home-page .service-card:is(.is-service-active, :hover, :focus-visible) {
  border-color: #080808;
}

.home-page .service-card:is(.is-service-active, :hover, :focus-visible)::before {
  transform: scaleY(1);
  transform-origin: top;
}

.home-page .service-card:is(.is-service-active, :hover, :focus-visible) .service-num {
  color: rgba(248, 248, 245, .52);
}

.home-page .service-card:is(.is-service-active, :hover, :focus-visible) h3 {
  color: #f8f8f5;
  transform: translateX(10px);
}

.home-page .service-card:is(.is-service-active, :hover, :focus-visible) p {
  color: rgba(248, 248, 245, .72);
  transform: translate(10px, 0);
}

@media (max-width: 1020px) {
  .home-page .services-section {
    display: block;
  }

  .home-page .services-section .section-heading {
    position: static;
    max-width: 760px;
    margin-bottom: 72px;
  }
}

@media (max-width: 760px) {
  .home-page {
    --index-edge: 20px;
  }

  .home-page .site-header:not(.menu-open),
  .home-page .site-header.on-light:not(.menu-open) {
    padding-inline: var(--index-edge);
  }

  .home-page .site-header:not(.menu-open) .header-actions {
    grid-column: 2;
  }

  .home-page .hero-word-left {
    top: 122px;
    left: var(--index-edge);
    max-width: calc(50vw - 30px);
    /* "mavero" è largo circa 3,4 volte la dimensione del font: così resta
       tutto sul lato bianco anche sui telefoni più stretti. */
    font-size: clamp(38px, 12.2vw, 82px);
  }

  .home-page .hero-word-right {
    right: var(--index-edge);
    bottom: 112px;
    max-width: calc(50vw - 30px);
    font-size: clamp(43px, 11.5vw, 64px);
    line-height: .88;
  }

  .home-page .hero-bottom-row {
    left: var(--index-edge);
    bottom: 24px;
    width: calc(50vw - 30px);
  }

  .home-page .hero-bottom-row .hero-text {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.42;
  }

  .home-page .hero-actions {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .home-page .hero .primary-btn,
  .home-page .hero .secondary-btn {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 8px;
  }

  .home-page .services-section {
    display: block;
    padding: 96px var(--index-edge) 118px;
  }

  .home-page .services-section .section-heading {
    position: static;
    max-width: none;
    margin-bottom: 58px;
  }

  .home-page .services-section .section-kicker {
    margin-bottom: 30px;
  }

  .home-page .services-section .section-heading h2 {
    max-width: 9ch;
    font-size: clamp(44px, 13vw, 64px);
  }

  .home-page .service-card-body {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px 12px;
    min-height: 158px;
    padding: 25px 16px;
  }

  .home-page .service-card h3 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .home-page .service-card p {
    font-size: 15px;
  }
}

/* The changing service name keeps the stronger scale of the right side. */
.home-page .service-card h3 {
  font-size: clamp(64px, 7.4vw, 112px);
  line-height: .88;
  letter-spacing: -.075em;
}

@media (max-width: 900px) {
  .home-page .service-card h3 {
    font-size: clamp(58px, 17vw, 88px);
  }
}

/* Editorial refinement — the process changes rhythm instead of repeating the
   split service chapter. The composition becomes a paced, asymmetric index. */
html body.home-page .process-section {
  padding: clamp(118px, 14vw, 190px) var(--index-edge) clamp(130px, 16vw, 220px);
  color: #111;
  background: var(--editorial-paper, #f7f6f2);
}

html body.home-page .process-container {
  display: block;
  width: 100%;
}

html body.home-page .process-header {
  position: static;
  display: grid;
  grid-template-columns: minmax(140px, 2fr) minmax(360px, 7fr) 1fr;
  gap: clamp(28px, 4vw, 72px);
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  color: #111;
  background: transparent;
}

html body.home-page .process-kicker {
  grid-column: 1;
  align-self: start;
  color: rgba(17, 17, 17, .48);
}

html body.home-page .process-title {
  grid-column: 2;
  grid-row: 1;
  max-width: 12ch;
  color: #111;
}

html body.home-page .process-layout {
  width: 100%;
  margin-top: clamp(86px, 11vw, 154px);
  background: transparent;
}

html body.home-page .process-steps {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 clamp(12px, 1.6vw, 26px);
  background: transparent;
}

html body.home-page .process-card,
html body.home-page .process-card:not(:first-child),
html body.home-page .process-card:nth-child(2),
html body.home-page .process-card:nth-child(3),
html body.home-page .process-card:nth-child(4) {
  display: grid;
  grid-template-columns: 46px minmax(150px, .8fr) minmax(240px, 1.2fr);
  gap: clamp(18px, 2.6vw, 44px);
  align-items: baseline;
  min-height: 0;
  padding: clamp(27px, 3vw, 42px) 0;
  border-top: 1px solid rgba(17, 17, 17, .24);
  border-bottom: 0;
  color: #111;
  background: transparent;
}

html body.home-page .process-card:nth-child(1) { grid-column: 1 / 11; }
html body.home-page .process-card:nth-child(2) { grid-column: 3 / 13; }
html body.home-page .process-card:nth-child(3) { grid-column: 2 / 12; }
html body.home-page .process-card:nth-child(4) { grid-column: 4 / 13; }

html body.home-page .process-card::after { display: none; }

html body.home-page .process-number {
  grid-column: 1;
  grid-row: 1;
  color: rgba(17, 17, 17, .42);
}

html body.home-page .process-card-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #111;
  font-size: clamp(26px, 2.7vw, 42px);
  font-weight: 450;
  letter-spacing: -.045em;
  transition: transform .65s cubic-bezier(.16, 1, .3, 1);
}

html body.home-page .process-card-text {
  grid-column: 3;
  grid-row: 1;
  max-width: 36ch;
  color: rgba(17, 17, 17, .62);
  font-size: clamp(15px, 1.25vw, 18px);
}

html body.home-page .process-card:hover { background: transparent; }
html body.home-page .process-card:hover .process-card-title { transform: translateX(8px); }

/* A single photographic pause gives the homepage a material, architectural
   register without turning it into a stock-image gallery. */
.home-page .studio-visual {
  padding: clamp(80px, 10vw, 142px) var(--index-edge);
  color: #111;
  background: #f8f8f5;
}

.home-page .studio-visual-figure {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(240px, 3fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin: 0;
}

.home-page .studio-visual-media {
  height: min(72svh, 780px);
  overflow: hidden;
  background: #d8d3c7;
}

.home-page .studio-visual-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.045);
  transition: transform 1.6s cubic-bezier(.22, 1, .36, 1);
}

.home-page .studio-visual-figure.active .studio-visual-media img { transform: scale(1); }

.home-page .studio-visual-caption {
  display: grid;
  gap: 24px;
  padding-bottom: 4px;
}

.home-page .studio-visual-caption span,
.home-page .studio-visual-caption small {
  color: rgba(17, 17, 17, .48);
  font-size: 11px;
  font-style: normal;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-page .studio-visual-caption p {
  max-width: 16ch;
  margin: clamp(20px, 4vw, 56px) 0;
  font-size: clamp(28px, 3.1vw, 46px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

/* The archive is deliberately irregular: three projects, three proportions. */
.home-page .work-section .concept-heading {
  display: grid;
  grid-template-columns: 1.4fr 5fr 2fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.home-page .work-section .concept-heading .section-kicker { grid-column: 1; }
.home-page .work-section .concept-heading h2 { grid-column: 2; max-width: 13ch; }
.home-page .work-section .concept-heading > p:not(.section-kicker) {
  grid-column: 3;
  align-self: end;
  max-width: 29ch;
}

.home-page .demo-screens {
  display: flex;
  flex-direction: column;
  gap: clamp(110px, 15vw, 230px);
  margin-top: clamp(92px, 12vw, 170px);
}

.home-page .demo-screen { width: 100%; }
.home-page .demo-screen:nth-child(1) { width: 86%; align-self: flex-start; }
.home-page .demo-screen:nth-child(2) { width: 64%; align-self: flex-end; }
.home-page .demo-screen:nth-child(3) { width: 76%; margin-left: 9%; }

.home-page .demo-screen-link {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 10;
  border: 0;
}

.home-page .demo-screen:nth-child(2) .demo-screen-link { aspect-ratio: 4 / 5; }
.home-page .demo-screen:nth-child(2) .demo-screen-link img { object-position: 50% 18%; }
.home-page .demo-screen:nth-child(3) .demo-screen-link { aspect-ratio: 3 / 2; }

.home-page .demo-screen-caption {
  grid-template-columns: 38px minmax(180px, .85fr) minmax(220px, 1.15fr);
}

/* Hero actions behave like editorial links, while preserving both routes. */
.home-page .hero-actions {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  width: auto;
}

.home-page .hero .primary-btn,
.home-page .hero .secondary-btn {
  position: relative;
  width: auto;
  min-height: 0;
  padding: 8px 24px 8px 0;
  border: 0;
  color: #111;
  background: transparent;
}

.home-page .hero .primary-btn::after,
.home-page .hero .secondary-btn::after {
  position: absolute;
  right: 1px;
  content: "\2192";
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.home-page .hero :is(.primary-btn, .secondary-btn):hover {
  color: #111;
  background: transparent;
}

.home-page .hero :is(.primary-btn, .secondary-btn):hover::after { transform: translateX(5px); }
.home-page .contact-text .title-accent { font-style: normal; }

@media (max-width: 900px) {
  html body.home-page .process-section { padding-block: 104px 126px; }
  html body.home-page .process-header { grid-template-columns: 1fr; gap: 48px; }
  html body.home-page .process-title { grid-column: 1; grid-row: 2; max-width: 11ch; }
  html body.home-page .process-layout { margin-top: 76px; }
  html body.home-page .process-steps { display: block; }
  html body.home-page .process-card,
  html body.home-page .process-card:not(:first-child),
  html body.home-page .process-card:nth-child(2),
  html body.home-page .process-card:nth-child(3),
  html body.home-page .process-card:nth-child(4) {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px 14px;
    width: 100%;
    min-height: 0;
    padding: 27px 0 !important;
  }
  html body.home-page .process-card-title { grid-column: 2; }
  html body.home-page .process-card-text { grid-column: 2; grid-row: 2; }

  .home-page .studio-visual-figure { grid-template-columns: 1fr; }
  .home-page .studio-visual-media { height: min(66svh, 680px); }
  .home-page .studio-visual-caption { grid-template-columns: 1fr 1fr; }
  .home-page .studio-visual-caption p { grid-column: 1 / -1; max-width: 17ch; }

  .home-page .work-section .concept-heading { grid-template-columns: 1fr; }
  .home-page .work-section .concept-heading :is(.section-kicker, h2, p) { grid-column: 1; }
  .home-page .demo-screen:nth-child(1),
  .home-page .demo-screen:nth-child(2),
  .home-page .demo-screen:nth-child(3) { width: 100%; margin-left: 0; }
  .home-page .demo-screen:nth-child(2) .demo-screen-link { aspect-ratio: 16 / 11; }
}

@media (max-width: 760px) {
  .home-page .hero-actions { display: grid; gap: 6px; }
  .home-page .hero .primary-btn,
  .home-page .hero .secondary-btn { min-height: 0; padding: 6px 18px 6px 0; }

  .home-page .studio-visual { padding-block: 72px 94px; }
  .home-page .studio-visual-media { height: 58svh; }
  .home-page .studio-visual-caption { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .home-page .studio-visual-caption p { grid-column: 1; margin: 20px 0; }

  .home-page .demo-screens { gap: 96px; margin-top: 72px; }
  .home-page .demo-screen-link,
  .home-page .demo-screen:nth-child(2) .demo-screen-link,
  .home-page .demo-screen:nth-child(3) .demo-screen-link {
    height: min(calc((100vw - 2 * var(--index-edge)) * 2.164), 80svh);
    aspect-ratio: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .studio-visual-media img,
  .home-page .process-card-title,
  .home-page .hero :is(.primary-btn, .secondary-btn)::after { transition: none; }
}

/* Immersive services chapter: one stable statement, four full-height scenes. */
.home-page .services-section {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 0;
  align-items: start;
  padding: 0;
  background: linear-gradient(90deg, #f8f8f5 0 50%, #080808 50% 100%);
}

.home-page .services-section .section-heading {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  grid-column: 1;
  align-items: start;
  width: 100%;
  max-width: none;
  height: 100svh;
  margin: 0;
  padding: clamp(94px, 13vh, 138px) clamp(38px, 5vw, 76px) clamp(58px, 8vh, 92px) var(--index-edge);
  background: #f8f8f5;
}

.home-page .services-section .section-kicker {
  grid-row: 1;
  grid-column: 1;
  margin: 0;
}

.home-page .services-section .section-heading h2 {
  grid-row: 2;
  grid-column: 1;
  align-self: center;
  max-width: 10.5ch;
  font-size: clamp(46px, 4.25vw, 66px);
  line-height: .96;
  letter-spacing: -.06em;
}

.home-page .services-section .section-heading > p:not(.section-kicker) {
  grid-row: 3;
  grid-column: 1;
  align-self: end;
  max-width: 430px;
  margin: 0;
}

.home-page .services-list {
  grid-column: 2;
  width: 100%;
  margin: 0;
  border: 0;
  background: #080808;
}

.home-page .service-card,
.home-page .service-card.reveal-left,
.home-page .service-card.reveal-right,
.home-page .service-card.reveal-left.active,
.home-page .service-card.reveal-right.active {
  position: relative;
  min-height: 100svh;
  border: 0;
  border-bottom: 1px solid rgba(248, 248, 245, .14);
  background: #080808;
  opacity: 1;
  transform: none;
}

.home-page .service-card::before {
  display: none;
}

.home-page .service-card::after {
  content: "";
  position: absolute;
  right: var(--index-edge);
  bottom: clamp(45px, 6vh, 72px);
  left: clamp(38px, 5vw, 76px);
  height: 1px;
  background: linear-gradient(90deg, #f8f8f5 0 var(--service-progress), rgba(248, 248, 245, .22) var(--service-progress) 100%);
}

.home-page .service-card:nth-child(1) { --service-progress: 25%; }
.home-page .service-card:nth-child(2) { --service-progress: 50%; }
.home-page .service-card:nth-child(3) { --service-progress: 75%; }
.home-page .service-card:nth-child(4) { --service-progress: 100%; }

.home-page .service-card-body {
  display: grid;
  grid-template: auto 1fr auto / 1fr;
  gap: 0;
  align-items: start;
  width: 100%;
  min-height: 100svh;
  padding: clamp(94px, 13vh, 138px) var(--index-edge) clamp(94px, 14vh, 148px) clamp(38px, 5vw, 76px);
  opacity: .2;
  filter: blur(4px);
  transform: translateY(34px);
  transition: opacity .7s ease, filter .85s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
}

.home-page .service-num {
  grid-row: 1;
  padding: 0;
  color: rgba(248, 248, 245, .58);
}

.home-page .service-num::after {
  content: " / 04";
}

.home-page .service-card h3 {
  grid-row: 2;
  grid-column: 1;
  align-self: center;
  color: #f8f8f5;
  font-size: clamp(64px, 7.4vw, 112px);
  line-height: .88;
  letter-spacing: -.075em;
  transform: none;
}

.home-page .service-card p {
  grid-row: 3;
  grid-column: 1;
  align-self: end;
  max-width: 34ch;
  color: rgba(248, 248, 245, .68);
  font-size: clamp(16px, 1.35vw, 19px);
  transform: none;
}

.home-page .service-card:is(.is-service-active, :hover, :focus-visible) .service-card-body {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.home-page .service-card:is(.is-service-active, :hover, :focus-visible) h3,
.home-page .service-card:is(.is-service-active, :hover, :focus-visible) p {
  color: inherit;
  transform: none;
}

.home-page .service-card:is(.is-service-active, :hover, :focus-visible) h3 {
  color: #f8f8f5;
}

.home-page .service-card:is(.is-service-active, :hover, :focus-visible) p {
  color: rgba(248, 248, 245, .68);
}

/* Navbar contrast follows the same split/dark rhythm while scrolling. */
.home-page .site-header.on-split:not(.menu-open) .brand,
.home-page .site-header.on-split:not(.menu-open) .nav-half:first-child a {
  color: #111 !important;
}

.home-page .site-header.on-split:not(.menu-open) .header-actions,
.home-page .site-header.on-split:not(.menu-open) .nav-half:last-child a {
  color: #f8f8f5 !important;
}

.home-page .site-header.on-split:not(.menu-open) .lang-btn.active {
  color: #111 !important;
  border-color: #f8f8f5 !important;
  background: #f8f8f5 !important;
}

.home-page .site-header.on-dark:not(.menu-open),
.home-page .site-header.on-dark:not(.menu-open) .brand,
.home-page .site-header.on-dark:not(.menu-open) .header-actions,
.home-page .site-header.on-dark:not(.menu-open) .nav-links a {
  color: #f8f8f5 !important;
}

.home-page .site-header.on-dark:not(.menu-open) .lang-btn.active {
  color: #111 !important;
  border-color: #f8f8f5 !important;
  background: #f8f8f5 !important;
}

@media (max-width: 900px) {
  .home-page .services-section {
    display: block;
    background: #f8f8f5;
  }

  .home-page .services-section .section-heading {
    position: relative;
    height: auto;
    min-height: 78svh;
    padding: 92px var(--index-edge) 68px;
  }

  .home-page .services-section .section-heading h2 {
    margin-block: 70px;
  }

  .home-page .services-list {
    width: 100%;
  }

  .home-page .service-card,
  .home-page .service-card.reveal-left,
  .home-page .service-card.reveal-right,
  .home-page .service-card-body {
    min-height: 78svh;
  }

  .home-page .service-card-body {
    padding: 72px var(--index-edge) 104px;
  }

  .home-page .service-card::after {
    right: var(--index-edge);
    bottom: 52px;
    left: var(--index-edge);
  }

  .home-page .service-card h3 {
    font-size: clamp(58px, 17vw, 88px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-word { transform: none !important; }
  .home-page .service-card,
  .home-page .service-card::before,
  .home-page .service-card h3,
  .home-page .service-card p { transition: none !important; }
}

/* One typographic system: every section follows the same edges as the hero.
   The oversized scale remains exclusive to “mavero / studio web”. */
.home-page .work-section,
.home-page .process-section,
.home-page .faq-section,
.home-page .contact-section {
  padding-right: var(--index-edge);
  padding-left: var(--index-edge);
}

.home-page .work-section .concept-heading,
.home-page .faq-section .section-heading,
.home-page .process-container,
.home-page .contact-content-col {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.home-page .faq-list {
  width: 100%;
  max-width: none;
}

.home-page .work-section .concept-heading h2,
.home-page .faq-section .section-heading h2 {
  font-size: clamp(42px, 4.5vw, 70px);
  line-height: .98;
  letter-spacing: -.055em;
}

.home-page .services-section .section-heading h2 {
  max-width: 10.5ch;
  font-size: clamp(44px, 4.25vw, 66px);
  line-height: .96;
  letter-spacing: -.06em;
}

.home-page .service-card h3 {
  font-size: clamp(36px, 4vw, 62px);
}

.home-page .process-title,
.home-page .contact-text h2 {
  max-width: 11ch;
  font-family: var(--font-sans);
  font-size: clamp(42px, 4.5vw, 70px);
  line-height: .98;
  letter-spacing: -.055em;
}

.home-page .contact-content-col {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  padding-right: 0;
  padding-left: 0;
}

@media (max-width: 760px) {
  .home-page .contact-content-col {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 760px) {
  .home-page .work-section .concept-heading h2,
.home-page .faq-section .section-heading h2,
.home-page .services-section .section-heading h2,
.home-page .process-title,
.home-page .contact-text h2 {
    max-width: 10.5ch;
    font-size: clamp(38px, 11vw, 50px);
    line-height: 1;
    letter-spacing: -.045em;
  }
}

/* Final service scale: important, but quieter than the hero typography. */
.home-page .service-card h3 {
  font-size: clamp(52px, 5.6vw, 86px);
  line-height: .92;
  letter-spacing: -.065em;
}

@media (max-width: 900px) {
  .home-page .service-card h3 {
    font-size: clamp(46px, 13.5vw, 72px);
  }
}

/* Scala tipografica delle sezioni (hero esclusa, resta volutamente enorme).
   Obiettivo: titoli sezione > titoli interni > testo, anche su mobile, e
   nessun testo sotto i 12px. Prefisso "html body" solo per stare sopra ai
   livelli precedenti senza usare !important. */
html body.home-page :is(
  .services-section .section-heading h2,
  .work-section .concept-heading h2,
  .packages-section .section-heading h2,
  .faq-section .section-heading h2,
  .process-title,
  .contact-text h2
) {
  font-size: clamp(34px, 4vw, 58px);
}

html body.home-page .service-card h3 { font-size: clamp(30px, 3.9vw, 56px); }

html body.home-page .process-card-title { font-size: clamp(26px, 2.5vw, 36px); }
html body.home-page .faq-list summary { font-size: clamp(19px, 1.7vw, 24px); }
html body.home-page .contact-form :is(input, textarea) { font-size: clamp(19px, 1.55vw, 22px); }

html body.home-page :is(.package-label, .process-kicker, .process-number, .concept-num, .footer-col-title) { font-size: 12px; }
html body.home-page :is(.package-fit, .footer-desc, .footer-links a, .footer-bottom p, .footer-col-links a) { font-size: 14px; }

@media (max-width: 760px) {
  /* Il titolo FAQ andava su 5 righe: con la nuova scala c'è spazio per 3. */
  html body.home-page .faq-section .section-heading h2 { max-width: 14ch; }
}

/* Hero su tablet e mobile (verticale): "mavero" e "studio web" si avvicinano
   al centro dello schermo invece di stare uno in alto e uno in basso.
   Le percentuali sono sull'altezza della hero; la coppia resta sopra
   il blocco testo + pulsanti anche sui telefoni più bassi. Desktop invariato. */
@media (max-width: 1024px) and (orientation: portrait) {
  .home-page .hero-word-left {
    top: auto;
    bottom: 56%;
  }

  .home-page .hero-word-right {
    top: calc(44% + 14px);
    bottom: auto;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  .home-page .hero-word-left { bottom: 60%; }
  .home-page .hero-word-right { top: calc(40% + 12px); }
}

/* Telefoni bassi (es. iPhone SE): la coppia sale un po' per lasciare aria
   sopra il testo e i pulsanti. */
@media (max-width: 760px) and (max-height: 700px) and (orientation: portrait) {
  .home-page .hero-word-left { bottom: 64%; }
  .home-page .hero-word-right { top: calc(36% + 10px); }
}

/* Processo ora sta subito sopra Demo: stesso nero per entrambe (prima erano
   due neri appena diversi, che accostati sembravano un errore) e una riga
   sottile allineata ai margini a segnare il passaggio. */
.home-page .process-section { background: var(--bureau-ink, #050607); }

.home-page .work-section::before {
  position: absolute;
  top: 0;
  right: var(--index-edge);
  left: var(--index-edge);
  height: 1px;
  content: "";
  background: rgba(248, 248, 245, .14);
}

/* Header desktop: un'unica navigazione testuale, raccolta a destra. */
@media (min-width: 761px) {
  .home-page .site-header:not(.menu-open) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(18px, 2vw, 32px);
  }

  .home-page .site-header:not(.menu-open) .nav-links {
    position: static;
    grid-column: 2;
    justify-self: end;
    display: flex;
    width: auto;
    gap: clamp(18px, 2vw, 28px);
    pointer-events: auto;
  }

  .home-page .site-header:not(.menu-open) .nav-half {
    display: flex;
    gap: clamp(18px, 2vw, 28px);
    padding: 0;
  }

  .home-page .site-header:not(.menu-open) .nav-half:first-child,
  .home-page .site-header:not(.menu-open) .nav-half:last-child {
    justify-self: auto;
    padding: 0;
  }

  .home-page .site-header:not(.menu-open) .header-actions {
    grid-column: 3;
    gap: clamp(18px, 2vw, 28px);
  }

  .home-page .site-header:not(.menu-open) .lang-switch {
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
  }

  .home-page .site-header:not(.menu-open) .lang-btn,
  .home-page .site-header:not(.menu-open) .header-cta {
    position: relative;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 8px 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    color: inherit !important;
    background: transparent !important;
    box-shadow: none;
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: .018em;
    transform: none;
  }

  .home-page .site-header:not(.menu-open) .lang-btn {
    opacity: .55;
  }

  .home-page .site-header:not(.menu-open) .lang-btn.active,
  .home-page .site-header.on-light:not(.menu-open) .lang-btn.active,
  .home-page .site-header.on-split:not(.menu-open) .lang-btn.active,
  .home-page .site-header.on-dark:not(.menu-open) .lang-btn.active,
  .home-page .site-header:not(.menu-open) .lang-btn:hover,
  .home-page .site-header:not(.menu-open) .lang-btn:focus-visible {
    color: inherit !important;
    background: transparent !important;
    opacity: 1;
  }

  .home-page .site-header:not(.menu-open) .lang-btn::after,
  .home-page .site-header:not(.menu-open) .header-cta::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    content: "";
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
  }

  .home-page .site-header:not(.menu-open) .lang-btn.active::after,
  .home-page .site-header:not(.menu-open) .lang-btn:hover::after,
  .home-page .site-header:not(.menu-open) .lang-btn:focus-visible::after,
  .home-page .site-header:not(.menu-open) .header-cta:hover::after,
  .home-page .site-header:not(.menu-open) .header-cta:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .home-page .site-header.on-split:not(.menu-open) .nav-links a,
  .home-page .site-header.on-split:not(.menu-open) .header-actions {
    color: #f8f8f5 !important;
  }

  .home-page .site-header:not(.on-light):not(.menu-open) .nav-links a,
  .home-page .site-header:not(.on-light):not(.menu-open) .header-actions {
    color: #f8f8f5 !important;
  }

  .home-page .site-header.on-light:not(.menu-open) .nav-links a,
  .home-page .site-header.on-light:not(.menu-open) .header-actions {
    color: #111 !important;
  }
}

/* Demo come schermi: ogni demo è uno screenshot vero del sito (su mobile in
   formato telefono). Al clic lo screenshot si allarga fino a riempire la
   finestra e poi si apre la demo, che parte già ferma sulla copertina. */
.home-page .work-section { overflow: clip; }

.home-page .demo-screens {
  display: grid;
  gap: clamp(72px, 9vw, 140px);
  margin-top: clamp(56px, 7vw, 96px);
}

.home-page .demo-screen-link {
  position: relative;
  display: block;
  width: 100%;
  /* Proporzione 16:10 a tutta larghezza, ma mai più alto dell'86% dello
     schermo: se serve si taglia il fondo dello screenshot, non la larghezza. */
  height: min(calc((100vw - 2 * var(--index-edge, 24px)) * .625), 86svh);
  overflow: hidden;
  background: #151515;
  border: 1px solid rgba(248, 248, 245, .12);
  cursor: pointer;
}

.home-page .demo-screen-link picture,
.home-page .demo-screen-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-page .demo-screen-link img {
  object-fit: cover;
  object-position: top center;
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1), filter .6s ease;
}

.home-page .demo-screen-link:is(:hover, :focus-visible) img { transform: scale(1.015); }
.home-page .demo-screen-link:focus-visible { outline: 1px solid rgba(248, 248, 245, .6); outline-offset: 6px; }

.home-page .demo-screen-enter {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  padding: 13px 18px;
  color: #f8f8f5;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(5, 6, 7, .78);
  border: 1px solid rgba(248, 248, 245, .2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}

.home-page .demo-screen-link:is(:hover, :focus-visible) .demo-screen-enter { opacity: 1; transform: none; }

@media (hover: none) {
  .home-page .demo-screen-enter { opacity: 1; transform: none; }
}

.home-page .demo-screen-caption {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px 24px;
  align-items: baseline;
  padding-top: 24px;
}

.home-page .demo-screen-num {
  color: rgba(248, 248, 245, .42);
  font-size: 12px;
  letter-spacing: .08em;
}

.home-page .demo-screen-title strong {
  display: block;
  color: #f8f8f5;
  font-size: clamp(28px, 2.7vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.home-page .demo-screen-title span {
  display: block;
  margin-top: 8px;
  color: rgba(248, 248, 245, .5);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-page .demo-screen-try {
  max-width: 44ch;
  margin: 0;
  color: rgba(248, 248, 245, .66);
  font-size: 15px;
  line-height: 1.5;
}

.home-page .demo-screen-try em {
  margin-right: 8px;
  color: rgba(248, 248, 245, .4);
  font-size: 12px;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-page .demo-note {
  margin-top: clamp(40px, 5vw, 64px);
  color: rgba(248, 248, 245, .42);
  font-size: 13px;
}

@media (max-width: 760px) {
  .home-page .demo-screen-link {
    height: min(calc((100vw - 2 * var(--index-edge, 20px)) * 2.164), 82svh);
  }

  .home-page .demo-screen-caption {
    grid-template-columns: 32px minmax(0, 1fr);
    padding-top: 20px;
  }

  .home-page .demo-screen-try {
    grid-column: 2;
    font-size: 14px;
  }
}

/* Transizione d'ingresso: una copia dello screenshot, fissa sopra la pagina,
   passa dalla posizione della card a tutta la finestra. */
.demo-zoom {
  position: fixed;
  top: var(--y);
  left: var(--x);
  z-index: 10000;
  width: var(--w);
  height: var(--h);
  overflow: hidden;
  background: #050607;
  pointer-events: none;
  transition:
    top .8s cubic-bezier(.76, 0, .24, 1),
    left .8s cubic-bezier(.76, 0, .24, 1),
    width .8s cubic-bezier(.76, 0, .24, 1),
    height .8s cubic-bezier(.76, 0, .24, 1);
}

.demo-zoom img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.demo-zoom.is-open {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

.demo-leaving .site-header {
  opacity: 0;
  transition: opacity .3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .demo-screen-link img,
  .home-page .demo-screen-enter { transition: none; }
}

@media not all {
/* Legacy split-process treatment retained only as historical reference.
   The active process direction is the asymmetric editorial index above. */
/* Servizi e Processo condividono lo stesso capitolo a due metà. Titolo e
   descrizione delle singole fasi restano vicini, come un unico blocco. */
.home-page .service-card-body {
  grid-template: auto 1fr auto auto / 1fr;
}

.home-page .service-card h3 {
  grid-row: 3;
  align-self: end;
  margin: 0 0 clamp(12px, 1.5vw, 20px);
}

.home-page .service-card p {
  grid-row: 4;
  align-self: start;
}

.home-page .process-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: #f8f8f5;
  background: linear-gradient(90deg, #f8f8f5 0 50%, #080808 50% 100%);
}

.home-page .process-container {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
}

.home-page .process-header {
  position: sticky;
  top: 0;
  grid-column: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  align-items: start;
  width: 100%;
  height: 100svh;
  margin: 0;
  padding: clamp(94px, 13vh, 138px) clamp(38px, 5vw, 76px) clamp(58px, 8vh, 92px) var(--index-edge);
  color: #111;
  background: #f8f8f5;
}

.home-page .process-kicker {
  grid-row: 1;
  grid-column: 1;
  margin: 0;
  color: rgba(17, 17, 17, .5);
}

.home-page .process-title {
  grid-row: 2;
  grid-column: 1;
  align-self: center;
  max-width: 10.5ch;
  margin: 0;
  color: #111;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .96;
  letter-spacing: -.06em;
}

.home-page .process-layout {
  grid-column: 2;
  width: 100%;
  margin: 0;
  background: #080808;
}

.home-page .process-steps {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  background: #080808;
}

.home-page .process-card,
.home-page .process-card:not(:first-child),
.home-page .process-card:nth-child(2),
.home-page .process-card:nth-child(3),
.home-page .process-card:nth-child(4) {
  position: relative;
  display: grid;
  grid-template: auto 1fr auto auto / 1fr;
  width: 100%;
  min-height: 100svh;
  padding: clamp(94px, 13vh, 138px) var(--index-edge) clamp(94px, 14vh, 148px) clamp(38px, 5vw, 76px);
  border: 0;
  border-bottom: 1px solid rgba(248, 248, 245, .14);
  color: #f8f8f5;
  background: #080808;
}

.home-page .process-card::after {
  position: absolute;
  right: var(--index-edge);
  bottom: clamp(45px, 6vh, 72px);
  left: clamp(38px, 5vw, 76px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, #f8f8f5 0 var(--process-progress), rgba(248, 248, 245, .22) var(--process-progress) 100%);
}

.home-page .process-card:nth-child(1) { --process-progress: 25%; }
.home-page .process-card:nth-child(2) { --process-progress: 50%; }
.home-page .process-card:nth-child(3) { --process-progress: 75%; }
.home-page .process-card:nth-child(4) { --process-progress: 100%; }

.home-page .process-number {
  grid-row: 1;
  margin: 0;
  color: rgba(248, 248, 245, .58);
}

.home-page .process-number::after {
  content: " / 04";
}

.home-page .process-card-title {
  grid-row: 3;
  align-self: end;
  margin: 0 0 clamp(12px, 1.5vw, 20px);
  color: #f8f8f5;
  font-size: clamp(30px, 3.9vw, 56px);
  line-height: .92;
  letter-spacing: -.065em;
}

.home-page .process-card-text {
  grid-row: 4;
  align-self: start;
  max-width: 34ch;
  margin: 0;
  color: rgba(248, 248, 245, .68);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
}

.home-page .process-card:hover {
  background: #080808;
}

@media (max-width: 900px) {
  .home-page .process-section {
    background: #f8f8f5;
  }

  .home-page .process-container {
    display: block;
  }

  .home-page .process-header {
    position: relative;
    height: auto;
    min-height: 78svh;
    padding: 92px var(--index-edge) 68px;
  }

  .home-page .process-title {
    align-self: center;
    max-width: 10.5ch;
  }

  .home-page .process-layout {
    width: 100%;
  }

  .home-page .process-card,
  .home-page .process-card:not(:first-child),
  .home-page .process-card:nth-child(2),
  .home-page .process-card:nth-child(3),
  .home-page .process-card:nth-child(4) {
    min-height: 78svh;
    padding: 72px var(--index-edge) 104px !important;
  }

  .home-page .process-card::after {
    right: var(--index-edge);
    bottom: 52px;
    left: var(--index-edge);
  }

  .home-page .process-card-title {
    font-size: clamp(30px, 11vw, 48px);
  }
}
}

/* Final cascade: keep the new rhythm after the legacy demo rules. */
html body.home-page .process-section { background: var(--editorial-paper, #f7f6f2); }

.home-page .demo-screens {
  display: flex;
  flex-direction: column;
  gap: clamp(110px, 15vw, 230px);
  margin-top: clamp(92px, 12vw, 170px);
}

.home-page .demo-screen { width: 100%; }
.home-page .demo-screen:nth-child(1) { width: 86%; align-self: flex-start; }
.home-page .demo-screen:nth-child(2) { width: 64%; align-self: flex-end; }
.home-page .demo-screen:nth-child(3) { width: 76%; margin-left: 9%; }

.home-page .demo-screen-link {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 10;
  border: 0;
}

.home-page .demo-screen:nth-child(2) .demo-screen-link { aspect-ratio: 4 / 5; }
.home-page .demo-screen:nth-child(2) .demo-screen-link img { object-position: 50% 18%; }
.home-page .demo-screen:nth-child(3) .demo-screen-link { aspect-ratio: 3 / 2; }

@media (max-width: 900px) {
  .home-page .demo-screen:nth-child(1),
  .home-page .demo-screen:nth-child(2),
  .home-page .demo-screen:nth-child(3) { width: 100%; margin-left: 0; }
  .home-page .demo-screen:nth-child(2) .demo-screen-link { aspect-ratio: 16 / 11; }
}

@media (max-width: 760px) {
  .home-page .demo-screens { gap: 96px; margin-top: 72px; }
  .home-page .demo-screen-link,
  .home-page .demo-screen:nth-child(2) .demo-screen-link,
  .home-page .demo-screen:nth-child(3) .demo-screen-link {
    height: min(calc((100vw - 2 * var(--index-edge)) * 2.164), 80svh);
    aspect-ratio: auto;
  }
}

@media (max-width: 760px) {
  .home-page .site-header:not(.menu-open) .header-actions { gap: 16px; }
  .home-page .site-header:not(.menu-open) .lang-switch,
  .home-page .site-header:not(.menu-open) .nav-toggle {
    width: auto;
    height: auto;
    min-height: 0;
    padding: 7px 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
  }
  .home-page .site-header:not(.menu-open) .lang-switch { gap: 12px; }
  .home-page .site-header:not(.menu-open) .lang-btn {
    position: relative;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 7px 0;
    border: 0 !important;
    border-radius: 0;
    color: inherit !important;
    background: transparent !important;
    opacity: .48;
  }
  .home-page .site-header:not(.menu-open) .lang-btn.active {
    color: inherit !important;
    background: transparent !important;
    opacity: 1;
  }
  .home-page .site-header:not(.menu-open) .lang-btn.active::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    content: "";
    background: currentColor;
  }
  .home-page .site-header:not(.menu-open) .nav-toggle {
    color: inherit !important;
    font-size: 12px;
    letter-spacing: .02em;
  }
}
