:root {
  --bg: #f7f5f2;
  --bg-2: #f0ece7;
  --panel: #ffffff;
  --ink: #171717;
  --muted: #5f5a55;
  --dim: #8a847c;
  --orange: #f15922;
  --orange-2: #d94a18;
  --line: rgba(23, 23, 23, 0.1);
  --radius: 8px;
  --header: 70px;
  --content: 1120px;
  --font: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 10px);
  background: #121212;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  min-height: 100%;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  color: var(--orange-2);
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

p:last-child {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--orange);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.container {
  width: min(var(--content), calc(100% - 2.4rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  background: #121212;
  border-bottom: 0;
  box-shadow: none;
  overflow: visible;
}

.site-header.is-scrolled {
  background: #0e0e0e;
  box-shadow: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--content), calc(100% - 2.4rem));
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  line-height: 0;
}

.logo:hover {
  opacity: 0.85;
  color: inherit;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  margin-left: auto;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:not(.nav-cta):hover {
  color: #fff;
}

.site-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 0.52rem 1.05rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--orange-2);
  color: #fff !important;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.35rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
}

.lang-switch button:hover {
  color: #fff;
}

.lang-switch button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 60;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4.5px auto;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.4);
  border: 0;
  padding: 0;
  cursor: pointer;
}

body.nav-open .nav-backdrop {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #121212 0%, rgba(18, 18, 18, 0.42) 16%, rgba(23, 23, 23, 0.38) 50%, rgba(23, 23, 23, 0.68) 76%, rgba(247, 245, 242, 0.9) 94%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.68) 0%, rgba(10, 10, 10, 0.32) 52%, transparent 76%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 38rem);
  padding: 0 0 clamp(5.75rem, 12vh, 7.5rem);
}

.eyebrow {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hero .eyebrow,
.hero-pair-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.05rem;
  color: #ffb089;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 34rem;
  line-height: 1.4;
}

.hero-new {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.hero-slides {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide h1,
.hero-second {
  margin: 0 0 1.15rem;
  font-size: clamp(2.05rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: #fff;
}

.hero-lead {
  margin: 0 0 1.55rem;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-slide-nav {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.hero-slide-dot {
  width: 2rem;
  height: 4px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-slide-dot.is-active {
  background: var(--orange);
}

.hero-slide-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hero-slide-dot.is-active:hover {
  background: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-2);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

/* Sections */
.section {
  padding: 5rem 0;
}

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

.section-heading {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-heading h2,
.about-copy h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.section-lead {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Progetto completo — storia reale */
.project-story {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.project-story-copy h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  margin-bottom: 1rem;
  max-width: 16ch;
}

.project-story-copy p {
  max-width: 34rem;
}

.project-story-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Pipeline — passi del progetto */
.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.35rem;
}

.pipeline-step {
  padding-top: 0.85rem;
  border-top: 2px solid var(--orange);
}

.pipeline-num {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pipeline-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.pipeline-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 10px);
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
}

.about-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

.skills {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.about-copy .btn {
  margin-top: 1.35rem;
}

/* Principles — open, no boxes */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.principle {
  border-left: 2px solid var(--orange);
  padding: 0.1rem 0 0.1rem 1.1rem;
}

.principle strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.principle p {
  margin: 0;
  font-size: 0.95rem;
}

/* Featured product — open split, no card */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.featured img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
}

.featured-body h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin-bottom: 0.85rem;
}

.featured-body .btn {
  margin-top: 1.15rem;
}

/* Apps — elenco uniforme foto + testo */
.apps-label {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.apps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.app {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.app img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.app-copy {
  padding-top: 0;
  min-width: 0;
}

.app h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.app p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  max-width: 38rem;
}

/* Sectors carousel — auto, centrato, cliccabile */
.sectors-block {
  max-width: var(--content);
}

.sectors-heading {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 28rem;
}

.sectors-heading h2 {
  margin-bottom: 0.55rem;
}

.sectors-lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--dim);
}

.sectors-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.sectors {
  --sector-w: 400px;
  position: relative;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: max(0px, calc(50% - (var(--sector-w) / 2)));
  padding: 1.15rem max(0px, calc(50% - (var(--sector-w) / 2))) 0.35rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sectors::-webkit-scrollbar {
  display: none;
}

.sector {
  flex: 0 0 var(--sector-w);
  width: var(--sector-w);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  opacity: 0.38;
  transform: scale(0.88);
  transition: opacity 0.45s ease, transform 0.45s ease;
  cursor: pointer;
  outline: none;
}

.sector.is-active {
  opacity: 1;
  transform: scale(1);
  cursor: default;
}

.sector:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 6px;
  border-radius: 10px;
}

.sector img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.95rem;
  pointer-events: none;
}

.sector-sicurezza {
  object-position: 50% 20%;
}

.sector h3 {
  margin: 0 0 0.4rem;
  font-size: 1.18rem;
  font-weight: 600;
  text-align: center;
}

.sector p {
  margin: 0 auto;
  max-width: 30ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) {
  .sectors {
    --sector-w: min(400px, 82vw);
  }

  .sector img {
    height: 200px;
  }
}

/* Contact */
.section-contact {
  background: var(--bg-2);
}

.contact {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
}

.contact-panel,
.contact-form {
  background: #fff;
  border-radius: 14px;
  padding: 1.6rem 1.5rem 1.45rem;
}

.contact-panel h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  margin: 0 0 1.15rem;
  max-width: 18ch;
  line-height: 1.25;
}

.contact-info {
  margin: 0 0 1.25rem;
}

.contact-intro {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 28rem;
}

.contact-info > p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  margin: 0;
}

.contact-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-links a:hover {
  color: var(--orange);
}

.map-wrap {
  margin: 0 0 1.1rem;
  overflow: hidden;
  border-radius: 10px;
  line-height: 0;
  background: #ece8e3;
}

.map-wrap iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.legal {
  color: var(--dim);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

.legal a {
  color: inherit;
}

.legal a:hover {
  color: var(--orange);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  scroll-margin-top: calc(var(--header) + 16px);
  position: relative;
}

.contact-form h3 {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
}

.contact-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 23, 23, 0.12);
  background: var(--bg);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(241, 89, 34, 0.3);
  border-color: var(--orange);
  background: #fff;
}

.form-note {
  font-size: 0.8rem;
  color: var(--dim);
  margin: 0;
}

.form-note.is-error {
  color: #b42318;
}

.contact-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem 0 max(1.8rem, env(safe-area-inset-bottom, 0px));
  background: #121212;
  /* Evita lo “spazio bianco” sotto il footer in overscroll su mobile */
  box-shadow: 0 50vh 0 50vh #121212;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 28px;
  width: auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .about,
  .principles,
  .featured,
  .contact,
  .project-story,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .project-story-copy h2 {
    max-width: none;
  }

  .pipeline {
    gap: 1.35rem;
  }

  .pipeline-step {
    padding-top: 1rem;
  }

  .project-story-photo {
    height: 260px;
    order: -1;
  }

  .about-photo {
    height: 280px;
  }

  .featured img {
    height: 240px;
  }

  .contact-panel,
  .contact-form {
    padding: 1.35rem 1.2rem 1.25rem;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--content), calc(100% - 2rem));
  }

  .logo img {
    height: 30px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    left: auto;
    right: 0;
    z-index: 55;
    width: max-content;
    min-width: 9.5rem;
    margin: 0;
    padding: 0.35rem;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.55rem 0.7rem;
    border-bottom: 0;
    border-radius: 7px;
    font-size: 0.9rem;
  }

  .site-nav a:not(.nav-cta):hover,
  .site-nav a:not(.nav-cta):active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    width: auto;
    align-self: stretch;
    text-align: center;
    margin-top: 0.2rem;
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
  }

  .lang-switch {
    margin: 0.35rem 0 0;
    padding: 0.45rem 0.15rem 0.1rem;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: center;
  }

  .lang-switch button {
    font-size: 0.82rem;
    padding: 0.4rem 0.55rem;
  }

  .hero {
    min-height: min(78vh, 620px);
    align-items: center;
    justify-content: center;
    padding-inline: 1.25rem;
  }

  .hero-photo {
    object-position: center 42%;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(18, 18, 18, 0.55) 0%, rgba(18, 18, 18, 0.35) 28%, rgba(23, 23, 23, 0.45) 58%, rgba(247, 245, 242, 0.88) 92%, var(--bg) 100%),
      linear-gradient(90deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.22) 50%, rgba(10, 10, 10, 0.4) 100%);
  }

  .hero > .hero-inner {
    width: 100%;
    max-width: 19.5rem;
    margin-inline: auto;
    padding: 0;
    text-align: left;
  }

  .hero .eyebrow,
  .hero-pair-label {
    justify-content: flex-start;
  }

  .hero-slide h1,
  .hero-second {
    max-width: 12ch;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(1.65rem, 5.8vw, 2.05rem);
    line-height: 1.22;
  }

  .hero-lead {
    font-size: 0.95rem;
    max-width: 26ch;
    margin-left: 0;
    margin-right: 0;
  }

  .hero .btn {
    width: auto;
    min-width: 0;
    padding: 0.65rem 1.2rem;
  }

  .hero-slide-nav {
    display: none;
  }

  .app {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.1rem 0;
  }

  .app img {
    width: 96px;
    height: 72px;
  }

  .app h3 {
    font-size: 1.02rem;
  }

  .app p {
    font-size: 0.9rem;
  }

  .sectors {
    --sector-w: min(320px, 78vw);
  }

  .sector img {
    height: 180px;
  }

  .map-wrap iframe {
    height: 200px;
  }

  .contact-links {
    flex-direction: column;
    gap: 0.55rem;
  }

  .contact-links a {
    font-size: 1.02rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section-contact {
    padding-bottom: 2.4rem;
  }

  .site-footer {
    padding-top: 1.15rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 420px) {
  .container {
    width: min(var(--content), calc(100% - 2.4rem));
  }

  .hero {
    min-height: min(74vh, 560px);
    padding-inline: 1.4rem;
  }

  .hero > .hero-inner {
    max-width: 17.5rem;
  }

  .hero-slide h1,
  .hero-second {
    max-width: 11ch;
    font-size: clamp(1.55rem, 6.2vw, 1.9rem);
  }

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

  .app img {
    width: 100%;
    height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}
