/* ==========================================================
   LA FACTORY 2027
   CHI SIAMO — PUNTO 230
   SIX ACTS / CINEMATIC EDITORIAL EXPERIENCE
   ========================================================== */

/* 01 — DESIGN SYSTEM */

:root {
  --bg: #080808;
  --bg-soft: #101010;
  --fg: #f3f1ec;
  --muted: #aaa6a0;
  --line: #292929;
  --red: #ff1717;
  --orange: #ff7a1a;
  --accent: #ff571c;
  --paper: #f0eee8;
  --pad: clamp(22px, 4vw, 68px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

em {
  color: var(--accent);
  font-style: normal;
}

::selection {
  background: var(--accent);
  color: #080808;
}

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

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1.7;
}

.section-index {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1.6;
}

.section-index span:last-child {
  color: #777;
  text-align: right;
}

/* Reveal: visible by default to prevent blank sections.
   JavaScript may still apply its existing visible class. */

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity .8s ease,
    transform .8s var(--ease);
}

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

/* 02 — HEADER */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition:
    background .3s,
    border-color .3s;
}

.site-header.scrolled {
  background: rgba(8, 8, 8, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: #252525;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}

.brand-mark {
  position: relative;
  width: 20px;
  height: 34px;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 8px;
  background: linear-gradient(var(--red), var(--orange));
  transition: transform .55s var(--ease);
}

.brand-mark::before {
  left: 1px;
  clip-path: polygon(0 0, 100% 16%, 100% 84%, 0 100%);
  transform-origin: right;
}

.brand-mark::after {
  right: 1px;
  clip-path: polygon(100% 0, 0 16%, 0 84%, 100% 100%);
  transform-origin: left;
}

.brand:hover .brand-mark::before {
  transform: translateX(-4px) rotateY(-24deg);
}

.brand:hover .brand-mark::after {
  transform: translateX(4px) rotateY(24deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.nav a {
  opacity: .68;
  transition: opacity .2s, color .2s;
}

.nav a:hover,
.nav a.active {
  opacity: 1;
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 8px 0;
  background: #fff;
  transition: transform .3s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* 03 — STORY PROGRESS */

.story-progress {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.story-progress-bar {
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(255, 87, 28, .6);
  transition: width .1s linear;
}

.story-indicator {
  position: fixed;
  z-index: 50;
  right: var(--pad);
  top: 50%;
  display: flex;
  align-items: baseline;
  gap: 7px;
  transform: translateY(-50%);
  pointer-events: none;
  mix-blend-mode: difference;
}

.story-indicator-label {
  margin-right: 18px;
  color: #999;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.story-indicator-number {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.05em;
}

.story-indicator-divider,
.story-indicator-total {
  color: #888;
  font-size: 11px;
  font-weight: 800;
}

/* 04 — ATTO 01 / MANIFESTO */

.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 760px;
  min-height: 100svh;
  padding: 150px var(--pad) 135px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(
    ellipse at 74% 44%,
    #2c130b 0%,
    #120b09 30%,
    #080808 70%
  );
}

.hero-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(8, 8, 8, .7),
      transparent 80%
    ),
    radial-gradient(
      ellipse at 80% 60%,
      rgba(255, 87, 28, .08),
      transparent 50%
    );
}

.origin-lines {
  position: absolute;
  z-index: -1;
  right: 7vw;
  top: 15%;
  width: min(39vw, 570px);
  height: 70%;
  opacity: .72;
  pointer-events: none;
  perspective: 900px;
}

.origin-lines i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9%;
  background: linear-gradient(
    180deg,
    var(--red),
    var(--orange)
  );
  box-shadow: 0 0 80px rgba(255, 87, 28, .12);
  transition:
    transform 1s var(--ease),
    opacity .6s;
}

.origin-lines i:nth-child(1) {
  left: 17%;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}

.origin-lines i:nth-child(2) {
  left: 39%;
  clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
}

.origin-lines i:nth-child(3) {
  right: 39%;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}

.origin-lines i:nth-child(4) {
  right: 17%;
  clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
}

.about-hero:hover .origin-lines i:nth-child(1) {
  transform: translateX(-25px) rotate(-3deg);
}

.about-hero:hover .origin-lines i:nth-child(2) {
  transform: translateX(-10px);
}

.about-hero:hover .origin-lines i:nth-child(3) {
  transform: translateX(10px);
}

.about-hero:hover .origin-lines i:nth-child(4) {
  transform: translateX(25px) rotate(3deg);
}

.about-hero-meta {
  position: absolute;
  top: 118px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #888;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(65px, 10.5vw, 172px);
  font-weight: 900;
  line-height: .83;
  letter-spacing: -.082em;
}

.hero-copy h1 em {
  display: inline-block;
  text-shadow: 0 0 80px rgba(255, 87, 28, .12);
}

.hero-statement {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-top: 58px;
}

.hero-statement-line {
  width: 65px;
  height: 1px;
  margin-top: 10px;
  flex-shrink: 0;
  background: var(--accent);
}

.hero-statement p {
  margin: 0;
  color: #d0cbc6;
  font-size: clamp(12px, 1.3vw, 18px);
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: .13em;
}

.hero-bottom {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  right: var(--pad);
  bottom: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #888;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.scroll {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  transition: color .2s;
}

.scroll:hover {
  color: var(--accent);
}

.scroll span {
  color: var(--accent);
  font-size: 24px;
  animation: arrow-down 1.8s ease-in-out infinite;
}

@keyframes arrow-down {
  50% {
    transform: translateY(7px);
  }
}

.hero-giant-word {
  position: absolute;
  z-index: -1;
  right: -2vw;
  bottom: -4vw;
  color: rgba(255, 255, 255, .025);
  font-size: 24vw;
  font-weight: 900;
  line-height: .75;
  letter-spacing: -.09em;
  white-space: nowrap;
  pointer-events: none;
}

/* 05 — ATTO 02 / LA NECESSITÀ */

.continue {
  position: relative;
  padding: clamp(80px, 9vw, 125px) var(--pad)
           clamp(85px, 9vw, 125px);
  background: var(--paper);
  color: #090909;
  overflow: hidden;
}

.continue .section-index {
  border-color: #cbc6be;
}

.continue-intro {
  padding: clamp(65px, 7vw, 95px) 0 40px;
}

.continue-intro .eyebrow {
  color: #df4817;
}

.continue-intro h2 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(55px, 9vw, 140px);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.075em;
}

.continue-lead {
  max-width: 650px;
  margin: 45px 0 0 auto;
  color: #555;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.7;
}

.continue-word {
  margin: 15px 0 50px;
  color: #d9d5cc;
  font-size: clamp(60px, 11vw, 175px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.085em;
  white-space: nowrap;
}

.continue-conclusion {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
  padding-top: 30px;
  border-top: 1px solid #c8c4bc;
}

.continue-conclusion > span {
  flex-shrink: 0;
  color: #777;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.continue-conclusion p {
  margin: 0;
  font-size: clamp(18px, 2.3vw, 32px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.03em;
}

/* 06 — ATTO 03 / LE ORIGINI */

.origin {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 760px;
  min-height: 90svh;
  padding: 140px var(--pad) 120px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(
    circle at 24% 50%,
    #32150b 0%,
    #130b09 32%,
    #080808 65%
  );
}

.origin-top {
  position: absolute;
  top: 110px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #888;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
}

.rome-mark {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 8%;
  width: min(42vw, 590px);
  height: min(72vh, 680px);
  transform: translateY(-50%);
  pointer-events: none;
}

.door {
  position: absolute;
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 22%;
  transform: translateX(-50%);
  background: linear-gradient(var(--red), var(--orange));
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
  transition: transform .9s var(--ease);
  box-shadow: 0 0 90px rgba(255, 87, 28, .15);
}

.pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  box-shadow: 0 0 120px 75px rgba(255, 80, 20, .2);
  transition: box-shadow .9s;
}

.origin:hover .door {
  transform: translateX(-50%) scaleX(.62);
}

.origin:hover .pulse {
  box-shadow: 0 0 180px 110px rgba(255, 80, 20, .28);
}

.origin-copy {
  position: relative;
  z-index: 2;
  width: min(70%, 1100px);
  margin-left: auto;
}

.origin-copy h2 {
  margin: 0;
  font-size: clamp(60px, 8vw, 130px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.075em;
}

.origin-bottom {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 55px;
  align-items: end;
  margin-top: 60px;
}

.origin-bottom p {
  max-width: 600px;
  margin: 0;
  color: #bbb;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}

.origin-bottom strong {
  color: var(--accent);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .12em;
}

.origin-background-word {
  position: absolute;
  z-index: -1;
  bottom: -3vw;
  left: -2vw;
  color: rgba(255, 255, 255, .025);
  font-size: 29vw;
  font-weight: 900;
  line-height: .75;
  letter-spacing: -.1em;
  pointer-events: none;
}

/* 07 — ATTO 04 / ECOSISTEMA */

.vision {
  position: relative;
  padding: clamp(85px, 9vw, 125px) var(--pad)
           clamp(95px, 10vw, 145px);
  background: #080808;
}

.vision-head {
  max-width: 1350px;
  padding-top: clamp(65px, 7vw, 105px);
}

.vision-head h2 {
  margin: 0;
  font-size: clamp(55px, 7.5vw, 125px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.075em;
}

.vision-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  max-width: 1100px;
  margin: 60px 0 85px auto;
}

.vision-copy p {
  margin: 0;
  color: #aaa;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}

.ecosystem-experience {
  border: 1px solid #343434;
  background: radial-gradient(
    circle at 25% 48%,
    #1c0f0b,
    #101010 45%,
    #0b0b0b 75%
  );
}

.ecosystem-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  border-bottom: 1px solid #343434;
  color: #999;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.ecosystem-heading span:first-child {
  color: var(--accent);
}

.ecosystem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 690px;
}

.ecosystem-stage {
  position: relative;
  min-width: 0;
  min-height: 630px;
  overflow: hidden;
  isolation: isolate;
  border-right: 1px solid #343434;
}

.ecosystem-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 87, 28, .13),
    transparent 52%
  );
  pointer-events: none;
}

.ecosystem-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 87, 28, .2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit-one {
  width: 34%;
  aspect-ratio: 1;
}

.orbit-two {
  width: 60%;
  aspect-ratio: 1;
  border-style: dashed;
  animation: ecosystem-spin 70s linear infinite;
}

.orbit-three {
  width: 84%;
  aspect-ratio: 1;
  border-color: rgba(255, 87, 28, .12);
}

@keyframes ecosystem-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.ecosystem-center {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(145px, 17vw, 225px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: #0d0d0d;
  box-shadow: 0 0 100px rgba(255, 87, 28, .12);
}

.ecosystem-center span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}

.ecosystem-center strong {
  margin-top: 4px;
  font-size: clamp(21px, 2.3vw, 32px);
  font-weight: 900;
  letter-spacing: -.06em;
}

.ecosystem-center small {
  margin-top: 10px;
  color: #999;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.ecosystem-node {
  position: absolute;
  z-index: 2;
  width: 15px;
  height: 15px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #101010;
  box-shadow: 0 0 28px rgba(255, 87, 28, .3);
  transition:
    transform .4s var(--ease),
    background .4s,
    box-shadow .4s;
}

.node-train {
  top: 15%;
  left: 49%;
}

.node-create {
  top: 34%;
  left: 83%;
}

.node-produce {
  top: 77%;
  left: 74%;
}

.node-connect {
  top: 77%;
  left: 22%;
}

.node-tv {
  top: 34%;
  left: 15%;
}

.ecosystem-stage[data-active="train"] .node-train,
.ecosystem-stage[data-active="create"] .node-create,
.ecosystem-stage[data-active="produce"] .node-produce,
.ecosystem-stage[data-active="connect"] .node-connect,
.ecosystem-stage[data-active="tv"] .node-tv {
  background: var(--accent);
  transform: scale(1.65);
  box-shadow: 0 0 45px rgba(255, 87, 28, .7);
}

.ecosystem-controls {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.ecosystem-button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 75px;
  padding: 18px 28px;
  border: 0;
  border-bottom: 1px solid #343434;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .3s, color .3s;
}

.ecosystem-button:hover {
  background: #1a1a1a;
}

.ecosystem-button.active {
  background: var(--accent);
  color: #080808;
}

.ecosystem-button > span {
  color: #888;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.ecosystem-button strong {
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 900;
  letter-spacing: -.05em;
}

.ecosystem-button small {
  color: #888;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: right;
}

.ecosystem-button.active > span,
.ecosystem-button.active small {
  color: rgba(8, 8, 8, .7);
}

.ecosystem-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 42px 30px;
}

.ecosystem-detail-index {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.ecosystem-detail h3 {
  margin: 22px 0;
  font-size: clamp(35px, 4vw, 64px);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.065em;
}

.ecosystem-detail p {
  max-width: 500px;
  margin: 0 0 35px;
  color: #aaa;
  font-size: 15px;
  line-height: 1.7;
}

.ecosystem-detail a {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin-top: auto;
  padding-bottom: 10px;
  border-bottom: 1px solid #777;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  transition: color .25s, border-color .25s;
}

.ecosystem-detail a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.ecosystem-detail a span {
  color: var(--accent);
  font-size: 20px;
}

.ecosystem-footnote {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 30px;
  border-top: 1px solid #343434;
  color: #777;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.6;
}

/* 08 — ATTO 05 / FONDAZIONE */

.founder,
.founder-compact {
  position: relative;
  min-height: 0;
  padding: clamp(80px, 9vw, 120px) var(--pad);
  background: var(--paper);
  color: #090909;
  overflow: hidden;
}

.founder .section-index {
  border-color: #c9c5bc;
}

.founder .eyebrow {
  color: #e84410;
}

.founder-index {
  display: none;
}

.founder-layout,
.founder-compact .founder-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(35px, 6vw, 100px);
  padding: clamp(55px, 6vw, 85px) 0 0;
  min-height: 0;
}

.founder-title h2,
.founder-compact .founder-title h2 {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 80px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.075em;
  overflow-wrap: normal;
}

.founder-copy,
.founder-compact .founder-copy {
  max-width: 560px;
}

.founder-copy p {
  margin: 0 0 20px;
  color: #555;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
}

.founder-copy p strong {
  color: #090909;
  font-weight: 800;
}

.founder-copy .founder-credit,
.founder-compact .founder-credit {
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid #c9c5bc;
  color: #d94715;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.9;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.founder-credit span {
  margin: 0 8px;
  color: #999;
}

/* 09 — CTA DEL FINALE */

.closing-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 25px;
  margin: 30px 0 50px;
}

.closing-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 250px;
  padding-bottom: 13px;
  border-bottom: 1px solid #777;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  transition: color .25s, border-color .25s;
}

.closing-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.closing-links a span {
  color: var(--accent);
  font-size: 23px;
  transition: transform .3s;
}

.closing-links a:hover span {
  transform: translate(4px, -4px);
}

/* 10 — FOOTER */

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 35px var(--pad);
  border-top: 1px solid var(--line);
  background: #080808;
  color: #888;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

/* 11 — LAPTOP E TABLET */

@media (max-width: 1100px) {
  .story-indicator {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(65px, 11vw, 135px);
  }

  .origin-copy {
    width: 78%;
  }

  .origin-bottom {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ecosystem-layout {
    grid-template-columns: 1fr;
  }

  .ecosystem-stage {
    min-height: 520px;
    border-right: 0;
    border-bottom: 1px solid #343434;
  }

  .ecosystem-center {
    width: 200px;
  }

  .ecosystem-center strong {
    font-size: 29px;
  }

  .founder-layout,
  .founder-compact .founder-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .founder-copy {
    max-width: 720px;
  }
}

/* 12 — MOBILE NAV */

@media (max-width: 1000px) {
  html {
    scroll-padding-top: 68px;
  }

  .site-header {
    height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 68px 0 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 25px var(--pad) 50px;
    overflow-y: auto;
    background: #080808;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 18px 0;
    border-bottom: 1px solid #262626;
    font-size: 25px;
    opacity: 1;
  }
}

/* 13 — SMARTPHONE */

@media (max-width: 650px) {
  .eyebrow {
    font-size: 10px;
  }

  .section-index {
    font-size: 9px;
  }

  .section-index span:last-child {
    max-width: 50%;
  }

  .about-hero {
    min-height: 700px;
    padding: 160px var(--pad) 120px;
  }

  .about-hero-meta {
    top: 105px;
    font-size: 9px;
  }

  .about-hero-meta span:last-child {
    max-width: 150px;
    text-align: right;
  }

  .origin-lines {
    width: 76vw;
    height: 52%;
    top: 20%;
    right: -28vw;
    opacity: .38;
  }

  .hero-copy h1 {
    font-size: clamp(49px, 12vw, 80px);
    line-height: .88;
  }

  .hero-statement {
    gap: 15px;
    margin-top: 42px;
  }

  .hero-statement-line {
    width: 30px;
  }

  .hero-statement p {
    font-size: 11px;
  }

  .hero-bottom {
    bottom: 30px;
    font-size: 9px;
  }

  .hero-bottom > span {
    max-width: 130px;
    line-height: 1.6;
  }

  .scroll {
    gap: 9px;
    text-align: right;
  }

  .hero-giant-word {
    bottom: 16%;
    font-size: 29vw;
  }

  .continue,
  .vision,
  .founder,
  .founder-compact {
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .continue-intro {
    padding: 65px 0 25px;
  }

  .continue-intro h2 {
    font-size: clamp(44px, 11vw, 72px);
  }

  .continue-lead {
    margin-top: 32px;
    font-size: 16px;
  }

  .continue-word {
    margin: 10px 0 35px;
    font-size: 12vw;
  }

  .continue-conclusion {
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
  }

  .continue-conclusion p {
    font-size: 21px;
  }

  .origin {
    min-height: 760px;
    padding: 160px var(--pad) 100px;
    align-items: flex-end;
  }

  .origin-top {
    top: 105px;
    font-size: 9px;
  }

  .rome-mark {
    top: 30%;
    left: 0;
    width: 90vw;
    height: 46vh;
    opacity: .35;
  }

  .origin-copy {
    width: 100%;
    margin: 0;
  }

  .origin-copy h2 {
    font-size: clamp(49px, 11vw, 78px);
  }

  .origin-bottom {
    margin-top: 45px;
  }

  .origin-bottom p {
    font-size: 16px;
  }

  .origin-bottom strong {
    font-size: 11px;
  }

  .origin-background-word {
    bottom: 24%;
    font-size: 38vw;
  }

  .vision-head {
    padding-top: 65px;
  }

  .vision-head h2 {
    font-size: clamp(40px, 9.5vw, 68px);
  }

  .vision-copy {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0 60px;
  }

  .vision-copy p {
    font-size: 16px;
  }

  .ecosystem-heading {
    padding: 20px;
    font-size: 9px;
  }

  .ecosystem-heading span:last-child {
    max-width: 45%;
    text-align: right;
  }

  .ecosystem-stage {
    min-height: 360px;
  }

  .ecosystem-center {
    width: 145px;
  }

  .ecosystem-center span {
    font-size: 10px;
  }

  .ecosystem-center strong {
    font-size: 21px;
  }

  .ecosystem-center small {
    font-size: 8px;
  }

  .ecosystem-node {
    width: 12px;
    height: 12px;
  }

  .ecosystem-button {
    grid-template-columns: 25px minmax(0, 1fr);
    min-height: 72px;
    padding: 16px 20px;
    gap: 10px;
  }

  .ecosystem-button strong {
    font-size: 24px;
  }

  .ecosystem-button small {
    grid-column: 2;
    text-align: left;
  }

  .ecosystem-detail {
    padding: 35px 22px;
  }

  .ecosystem-detail h3 {
    font-size: 42px;
  }

  .ecosystem-footnote {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    font-size: 9px;
  }

  .founder-layout,
  .founder-compact .founder-layout {
    padding: 55px 0 0;
    gap: 30px;
  }

  .founder-title h2,
  .founder-compact .founder-title h2 {
    font-size: clamp(40px, 9vw, 65px);
  }

  .founder-copy p {
    font-size: 16px;
  }

  .founder-copy .founder-credit {
    font-size: 10px;
  }

  .closing-links {
    flex-direction: column;
    gap: 25px;
  }

  .closing-links a {
    width: 100%;
    min-width: 0;
  }

  footer {
    font-size: 9px;
  }
}

/* 14 — SMALL SMARTPHONES */

@media (max-width: 380px) {
  .hero-copy h1 {
    font-size: 11.5vw;
  }

  .about-hero-meta {
    font-size: 8px;
  }

  .hero-statement p {
    font-size: 10px;
  }

  .continue-intro h2,
  .origin-copy h2,
  .vision-head h2 {
    font-size: 10vw;
  }

  .founder-title h2,
  .founder-compact .founder-title h2 {
    font-size: 9vw;
  }

  .ecosystem-stage {
    min-height: 310px;
  }

  .ecosystem-center {
    width: 125px;
  }

  .ecosystem-center strong {
    font-size: 19px;
  }

  .ecosystem-detail h3 {
    font-size: 35px;
  }
}

/* 15 — TOUCH */

@media (pointer: coarse) {
  .about-hero:hover .origin-lines i {
    transform: none;
  }

  .origin:hover .door {
    transform: translateX(-50%);
  }
}

/* 16 — ACCESSIBILITY */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .001ms !important;
  }

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

/* ==========================================================
   END — CHI SIAMO / PUNTO 230

   Rebirth styling is maintained separately in:
   /chi-siamo-rebirth.css
   ========================================================== */
