/* ITisWORKATION — L2 / Dynamic Edition */

:root {
  --cobalto: #1E40AF;
  --cobalto-deep: #0B1F66;
  --cobalto-ink: #06123F;
  --calce: #F7F4ED;
  --cotto: #E84F1B;
  --tufo: #CFA378;
  --azzurro: #4FB0D9;
  --corallo: #E08566;
  --basalto: #0A0A0A;
  --bianco: #FFFFFF;

  --font-display: 'Fraunces', 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --pad-x: clamp(20px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--cobalto-ink); color: var(--calce); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: none; color: inherit; }
::selection { background: var(--cotto); color: var(--calce); }

/* ========= Custom cursor ========= */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  mix-blend-mode: difference;
}
.cursor {
  width: 36px; height: 36px; border: 1.5px solid var(--calce); border-radius: 50%;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--calce); border-radius: 50%;
}
.cursor.is-hover { width: 80px; height: 80px; background: var(--cotto); border-color: var(--cotto); }
.cursor.is-hover + .cursor-dot { opacity: 0; }
@media (hover: none), (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
  a, button { cursor: pointer; }
}

/* ========= Type ========= */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--tufo);
}
.huge {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(64px, 14vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--calce);
}
.huge em { font-style: italic; color: var(--cotto); }
.huge .outline {
  -webkit-text-stroke: 1.5px var(--calce);
  color: transparent;
  font-style: italic;
}
h2.big {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--calce);
}
h2.big em { font-style: italic; color: var(--cotto); }
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: rgba(247,244,237,0.78);
  max-width: 52ch;
}

/* ========= Header ========= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--pad-x);
  mix-blend-mode: difference;
}
.nav__logo { height: 28px; }
.nav__logo img { height: 100%; filter: brightness(0) invert(1); }
.nav__links {
  display: flex; gap: 32px; align-items: center;
  font-size: 13px; letter-spacing: 0.02em;
}
.nav__links a { position: relative; color: var(--calce); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--cotto); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  border: 1px solid var(--calce); padding: 10px 18px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.nav__cta:hover { background: var(--cotto); border-color: var(--cotto); }
@media (max-width: 800px) { .nav__links a:not(.nav__cta):not(:last-child) { display: none; } }

/* ========= Hero ========= */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  filter: brightness(0.45) saturate(1.1) contrast(1.05);
  transform: scale(1.05);
  transition: transform 8s var(--ease);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero.loaded .hero__bg { transform: scale(1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 80% at 20% 100%, rgba(6,18,63,.85), transparent 60%),
              linear-gradient(180deg, rgba(6,18,63,.45) 0%, rgba(6,18,63,.2) 40%, rgba(6,18,63,.9) 100%);
}
.hero__top, .hero__main, .hero__bottom { position: relative; z-index: 2; }
.hero__top {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 120px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(247,244,237,0.7);
}
.hero__main {
  flex: 1; display: flex; align-items: center; padding: 40px 0;
}
.hero__title { text-align: left; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span {
  display: inline-block; transform: translateY(110%);
  animation: slideUp 1.1s var(--ease) forwards;
}
.hero__title .line:nth-child(2) span { animation-delay: .12s; }
.hero__title .line:nth-child(3) span { animation-delay: .24s; }
@keyframes slideUp { to { transform: translateY(0); } }

.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding-bottom: 48px; flex-wrap: wrap;
}
.hero__meta { font-size: 13px; letter-spacing: 0.04em; color: rgba(247,244,237,0.75); max-width: 340px; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px; background: var(--cotto); color: var(--calce);
  border-radius: 999px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform .4s var(--ease), background .4s var(--ease);
  font-weight: 500;
}
.hero__cta:hover { transform: translateX(6px); background: var(--calce); color: var(--cobalto-ink); }
.hero__cta .arrow { transition: transform .4s var(--ease); }
.hero__cta:hover .arrow { transform: translateX(4px); }

.scroll-hint {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(247,244,237,0.6);
}
.scroll-hint .bar {
  display: block; width: 1px; height: 40px; background: var(--calce);
  animation: scrollPulse 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========= Marquee ========= */
.marquee {
  background: var(--cotto); color: var(--calce);
  border-top: 1px solid var(--cotto); border-bottom: 1px solid var(--cotto);
  overflow: hidden; padding: 22px 0;
  position: relative; z-index: 3;
}
.marquee__track {
  display: flex; gap: 60px; white-space: nowrap;
  animation: scroll-x 28s linear infinite;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(28px, 5vw, 60px); line-height: 1;
}
.marquee__track span.dot { color: rgba(247,244,237,0.5); margin: 0 8px; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========= Manifesto ========= */
.manifesto {
  padding: clamp(100px, 14vw, 200px) var(--pad-x);
  position: relative;
}
.manifesto__inner { max-width: 1280px; margin: 0 auto; }
.manifesto__head {
  display: flex; gap: 60px; align-items: flex-start; flex-wrap: wrap;
  margin-bottom: 80px;
}
.manifesto__head .eyebrow { flex: 0 0 auto; padding-top: 14px; }
.manifesto p.statement {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 4vw, 56px); line-height: 1.15;
  color: var(--calce); letter-spacing: -0.015em;
  max-width: 22ch;
}
.manifesto p.statement em { color: var(--cotto); font-style: italic; }

.gap-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  border-top: 1px solid rgba(247,244,237,0.15);
  padding-top: 60px;
}
.gap-row .num {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(80px, 14vw, 200px); line-height: 0.9;
  color: var(--cotto); letter-spacing: -0.04em;
}
.gap-row .num.muted { color: rgba(247,244,237,0.25); -webkit-text-stroke: 1px rgba(247,244,237,0.4); }
.gap-row p { color: rgba(247,244,237,0.75); margin-top: 16px; max-width: 28ch; }
@media (max-width: 720px) { .gap-row { grid-template-columns: 1fr; gap: 40px; } }

/* ========= Pillars (exploratory hover panels) ========= */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--cobalto-ink);
  border-top: 1px solid rgba(247,244,237,0.08);
}
.pillar {
  position: relative;
  border-right: 1px solid rgba(247,244,237,0.08);
  padding: 36px 36px 56px;
  display: flex; flex-direction: column;
}
.pillar:last-child { border-right: none; }
.pillar__bg {
  display: block; overflow: hidden;
  aspect-ratio: 3 / 4; width: 100%;
  margin-bottom: 40px;
  border-radius: 4px;
}
.pillar__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
  display: block;
  transform: scale(1.04);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.pillar:hover .pillar__bg img { transform: scale(1); opacity: 0.92; }
.pillar__num {
  font-family: var(--font-display); font-style: italic; font-size: 14px;
  color: var(--tufo); letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.pillar__title {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(40px, 5.5vw, 80px); line-height: 0.95;
  color: var(--calce); letter-spacing: -0.025em;
}
.pillar__tagline {
  font-size: 14px; color: rgba(247,244,237,0.7);
  margin-top: 16px; max-width: 24ch;
}
.pillar__cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: auto;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cotto);
}
.pillar__cta .arrow { transition: transform .4s var(--ease); }
.pillar:hover .pillar__cta .arrow { transform: translateX(8px); }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid rgba(247,244,237,0.08); padding: 32px 24px 48px; }
  .pillar__bg { aspect-ratio: 4 / 5; margin-bottom: 28px; }
  .pillar__cta { margin-top: 28px; }
}

/* ========= Gallery scroll ========= */
.gallery {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--cobalto-ink);
}
.gallery__head {
  padding: 0 var(--pad-x); max-width: 1280px; margin: 0 auto 60px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
}
.gallery__track {
  display: flex; gap: 24px; padding: 0 var(--pad-x);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item {
  flex: 0 0 clamp(280px, 38vw, 520px);
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
  filter: saturate(0.95) brightness(0.9);
}
.gallery__item:hover img { transform: scale(1.06); filter: saturate(1.1) brightness(1); }
.gallery__cap {
  position: absolute; left: 20px; bottom: 20px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--calce); z-index: 2;
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6,18,63,0.7));
  z-index: 1;
}

/* ========= Numbers strip ========= */
.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(247,244,237,0.12);
  border-bottom: 1px solid rgba(247,244,237,0.12);
}
.numbers__cell {
  padding: 60px 32px; text-align: left;
  border-right: 1px solid rgba(247,244,237,0.12);
}
.numbers__cell:last-child { border-right: none; }
.numbers__cell .n {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(48px, 7vw, 96px); line-height: 1;
  color: var(--cotto); letter-spacing: -0.03em;
}
.numbers__cell .l { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247,244,237,0.65); margin-top: 12px; }
@media (max-width: 720px) {
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers__cell:nth-child(2n) { border-right: none; }
  .numbers__cell:nth-child(-n+2) { border-bottom: 1px solid rgba(247,244,237,0.12); }
}

/* ========= CTA ========= */
.cta {
  padding: clamp(100px, 14vw, 180px) var(--pad-x);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(232,79,27,0.18), transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.cta h2.big { margin-bottom: 40px; }
.cta__btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 22px 36px; background: var(--cotto); color: var(--calce);
  border-radius: 999px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.cta__btn:hover { transform: scale(1.04); background: var(--calce); color: var(--cobalto-ink); }
.cta__small { margin-top: 24px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247,244,237,0.5); }

/* ========= Footer ========= */
.foot {
  padding: 80px var(--pad-x) 40px;
  border-top: 1px solid rgba(247,244,237,0.12);
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  font-size: 13px;
}
.foot h4 { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tufo); margin-bottom: 16px; }
.foot a { color: rgba(247,244,237,0.7); display: block; padding: 4px 0; transition: color .3s; }
.foot a:hover { color: var(--cotto); }
.foot__logo img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.foot__brand p { color: rgba(247,244,237,0.6); max-width: 36ch; }
.foot__bottom {
  grid-column: 1 / -1;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(247,244,237,0.1);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,244,237,0.45);
}
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* ========= Reveal on scroll ========= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

/* ========= Page header (inner pages) ========= */
.page-hero {
  min-height: 70vh; padding: 160px var(--pad-x) 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,18,63,0.4), rgba(6,18,63,0.9));
  z-index: 1;
}
.page-hero__inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; width: 100%; }
.page-hero .huge { font-size: clamp(56px, 11vw, 160px); }

/* ========= Inner content ========= */
.section { padding: clamp(80px, 12vw, 160px) var(--pad-x); }
.section__inner { max-width: 1280px; margin: 0 auto; }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split img { border-radius: 4px; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(32px, 5vw, 64px); line-height: 1; color: var(--calce);
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.split p { color: rgba(247,244,237,0.78); margin-bottom: 16px; }

/* ========= Tags ========= */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
  padding: 8px 14px; border: 1px solid rgba(247,244,237,0.25); border-radius: 999px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247,244,237,0.8);
  transition: background .3s, color .3s, border-color .3s;
}
.tag:hover { background: var(--cotto); border-color: var(--cotto); color: var(--calce); }

/* ========= Card grid ========= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.cards--steps { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .cards--steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards--steps { grid-template-columns: 1fr; } }
.card {
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 4/5;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover img { transform: scale(1.06); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,18,63,0.9)); }
.card__body {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2;
}
.card h4 {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 28px; line-height: 1; color: var(--calce); margin-bottom: 8px;
}
.card p { font-size: 13px; color: rgba(247,244,237,0.8); }

/* ========= Util ========= */
.text-cotto { color: var(--cotto); }
.text-tufo { color: var(--tufo); }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }


/* ============================================
   CTA FORM — CUSTOM (POST to MailerLite endpoint)
   ============================================ */

/* Accessibility helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cta__lead {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: rgba(247, 244, 237, 0.75);
  max-width: 540px;
  margin: 24px auto 40px;
}

.cta__form {
  max-width: 480px;
  margin: 0 auto 24px;
  text-align: left;
}

.cta__form[hidden] {
  display: none;
}

.cta__form-row {
  margin-bottom: 20px;
}

.cta__form-input {
  background: rgba(247, 244, 237, 0.06);
  border: 1px solid rgba(247, 244, 237, 0.2);
  color: var(--calce);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 18px 22px;
  border-radius: 4px;
  width: 100%;
  box-shadow: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.cta__form-input:focus {
  outline: none;
  border-color: var(--cotto);
  background: rgba(247, 244, 237, 0.1);
}

.cta__form-input::placeholder {
  color: rgba(247, 244, 237, 0.45);
}

.cta__form-input:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 94, 94, 0.5);
}

/* GDPR consent */
.cta__form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(247, 244, 237, 0.6);
  margin: 0 0 28px;
  cursor: pointer;
  user-select: none;
}

.cta__form-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--cotto);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.cta__form-consent a {
  color: var(--cotto);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta__form-consent a:hover {
  color: #ff5e2a;
}

/* Submit button */
.cta__form-btn {
  background: var(--cotto);
  color: var(--calce);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 20px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cta__form-btn:hover:not(:disabled) {
  background: #ff5e2a;
  transform: translateY(-2px);
}

.cta__form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cta__form-btn .arrow {
  transition: transform 0.3s var(--ease);
}

.cta__form-btn:hover:not(:disabled) .arrow {
  transform: translateX(4px);
}

.cta__form-btn.is-loading .arrow {
  display: none;
}

.cta__form-btn.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--calce);
  border-top-color: transparent;
  border-radius: 50%;
  animation: cta-spin 0.8s linear infinite;
}

@keyframes cta-spin {
  to { transform: rotate(360deg); }
}

/* Error message */
.cta__form-error {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(255, 94, 94, 0.08);
  border: 1px solid rgba(255, 94, 94, 0.3);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: #ff8a8a;
  text-align: left;
}

.cta__form-error a {
  color: #ff8a8a;
  text-decoration: underline;
}

/* Success state */
.cta__form-success {
  max-width: 480px;
  margin: 0 auto 24px;
  padding: 32px 36px;
  background: rgba(232, 79, 27, 0.08);
  border: 1px solid rgba(232, 79, 27, 0.3);
  border-radius: 4px;
  font-family: var(--font-body);
  text-align: center;
  animation: cta-fadein 0.4s var(--ease);
}

@keyframes cta-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cta__form-success strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 32px;
  line-height: 1.1;
  color: var(--cotto);
  margin-bottom: 12px;
}

.cta__form-success p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(247, 244, 237, 0.8);
  margin: 0;
}

.cta__form-success em {
  font-style: normal;
  color: var(--cotto);
}

/* Footer micro-copy */
.cta__alt {
  margin-top: 40px;
  font-size: 14px;
  color: rgba(247, 244, 237, 0.5);
  font-family: var(--font-body);
}

.cta__alt a {
  color: var(--cotto);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta__alt a:hover {
  color: #ff5e2a;
}

/* Mobile */
@media (max-width: 768px) {
  .cta__form,
  .cta__form-success {
    max-width: 100%;
  }
  .cta__form-input {
    font-size: 16px; /* prevent iOS zoom */
    padding: 16px 18px;
  }
  .cta__form-success {
    padding: 24px 20px;
  }
  .cta__form-success strong {
    font-size: 26px;
  }
}

/* ============================================
   JOIN PAGE — Layout
   ============================================ */

.section__inner--narrow {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.section--muted {
  background: rgba(247, 244, 237, 0.03);
}

.nav__cta--active {
  background: var(--cotto);
  color: var(--calce);
  border-color: var(--cotto);
}

/* ============================================
   JOIN PAGE — Form wrapper
   ============================================ */

.join-form-wrap {
  background: rgba(247, 244, 237, 0.04);
  border: 1px solid rgba(247, 244, 237, 0.08);
  padding: 48px 44px;
  border-radius: 8px;
  margin-top: 56px;
  text-align: left;
}

.join-form-wrap[hidden] {
  display: none;
}

/* ============================================
   JOIN PAGE — Form fields
   ============================================ */

.join-form__field {
  margin-bottom: 32px;
  border: none;
  padding: 0;
}

.join-form__field--radio {
  margin-bottom: 36px;
}

.join-form__label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--tufo);
  margin-bottom: 12px;
}

.join-form__label .req {
  color: var(--cotto);
  margin-left: 2px;
}

.join-form__input,
.join-form__select {
  background: rgba(247, 244, 237, 0.06);
  border: 1px solid rgba(247, 244, 237, 0.2);
  color: var(--calce);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 16px 20px;
  border-radius: 4px;
  width: 100%;
  box-shadow: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.join-form__input:focus,
.join-form__select:focus {
  outline: none;
  border-color: var(--cotto);
  background: rgba(247, 244, 237, 0.1);
}

.join-form__input::placeholder {
  color: rgba(247, 244, 237, 0.4);
}

.join-form__input:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 94, 94, 0.5);
}

/* Select arrow custom */
.join-form__select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23E84F1B' d='M6 7.5L0 1.5 1.5 0 6 4.5 10.5 0 12 1.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px 8px;
  padding-right: 48px;
  cursor: pointer;
}

.join-form__select option {
  background: #0a1845; /* fallback cobalto per dropdown nativo */
  color: var(--calce);
}

/* Radio buttons */
.join-form__radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(247, 244, 237, 0.03);
  border: 1px solid rgba(247, 244, 237, 0.12);
  border-radius: 4px;
  margin-bottom: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--calce);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.join-form__radio:hover {
  border-color: rgba(232, 79, 27, 0.4);
  background: rgba(247, 244, 237, 0.06);
}

.join-form__radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cotto);
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.join-form__radio:has(input[type="radio"]:checked) {
  border-color: var(--cotto);
  background: rgba(232, 79, 27, 0.06);
}

/* GDPR consent */
.join-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(247, 244, 237, 0.65);
  margin: 32px 0 28px;
  cursor: pointer;
  user-select: none;
}

.join-form__consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--cotto);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.join-form__consent a {
  color: var(--cotto);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.join-form__consent a:hover {
  color: #ff5e2a;
}

/* Submit button */
.join-form__btn {
  background: var(--cotto);
  color: var(--calce);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 22px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.join-form__btn:hover:not(:disabled) {
  background: #ff5e2a;
  transform: translateY(-2px);
}

.join-form__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.join-form__btn .arrow {
  transition: transform 0.3s var(--ease);
}

.join-form__btn:hover:not(:disabled) .arrow {
  transform: translateX(4px);
}

.join-form__btn.is-loading .arrow {
  display: none;
}

.join-form__btn.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--calce);
  border-top-color: transparent;
  border-radius: 50%;
  animation: cta-spin 0.8s linear infinite;
}

/* Error message */
.join-form__error {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(255, 94, 94, 0.08);
  border: 1px solid rgba(255, 94, 94, 0.3);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: #ff8a8a;
  text-align: left;
}

.join-form__error a {
  color: #ff8a8a;
  text-decoration: underline;
}

/* Reassurance note below form */
.join-form__note {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(247, 244, 237, 0.5);
  text-align: center;
}

/* ============================================
   JOIN PAGE — FAQ
   ============================================ */

.faq-grid {
  display: grid;
  gap: 48px;
  text-align: left;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 26px;
  color: var(--calce);
  margin-bottom: 12px;
  line-height: 1.2;
}

.faq-item p {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(247, 244, 237, 0.7);
  line-height: 1.65;
  margin: 0;
}

/* ============================================
   JOIN PAGE — Mobile
   ============================================ */

@media (max-width: 768px) {
  .join-form-wrap {
    padding: 28px 20px;
    margin-top: 40px;
  }
  .join-form__input,
  .join-form__select,
  .join-form__radio {
    font-size: 16px; /* prevent iOS zoom */
  }
  .join-form__field {
    margin-bottom: 24px;
  }
  .faq-grid {
    gap: 36px;
  }
  .faq-item h3 {
    font-size: 22px;
  }
}

.join-form__input--other {
  margin-top: 12px;
  animation: cta-fadein 0.3s var(--ease);
}

.join-form__input--other[hidden] {
  display: none;
}

/* ============================================
   JOIN CONFIRMATION PAGE
   ============================================ */

.confirm {
  min-height: 80vh;
  padding: 140px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm__inner {
  max-width: 640px;
  text-align: center;
}

.confirm__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--calce);
  margin: 0;
}

.confirm__title em {
  font-style: italic;
  color: var(--cotto);
}

.confirm__lead {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  color: rgba(247, 244, 237, 0.85);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Callout box — 3-step inbox guide */
.confirm__callout {
  background: rgba(247, 244, 237, 0.04);
  border: 1px solid rgba(247, 244, 237, 0.08);
  border-radius: 8px;
  padding: 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.confirm__callout-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.confirm__callout-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 300;
  color: var(--cotto);
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}

.confirm__callout-row h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--tufo);
  margin: 0 0 8px 0;
}

.confirm__callout-row p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(247, 244, 237, 0.75);
  margin: 0;
}

.confirm__callout-row em {
  font-style: normal;
  color: var(--cotto);
}

/* Spam troubleshoot — softer accent */
.confirm__spam {
  padding: 20px 28px;
  background: rgba(232, 79, 27, 0.06);
  border-left: 3px solid var(--cotto);
  border-radius: 4px;
  text-align: left;
}

.confirm__spam p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247, 244, 237, 0.7);
  margin: 0;
}

.confirm__spam strong {
  color: var(--calce);
  font-weight: 500;
}

.confirm__spam em {
  font-style: normal;
  color: var(--cotto);
}

/* Return links — soft exit */
.confirm__return {
  padding-top: 32px;
  border-top: 1px solid rgba(247, 244, 237, 0.08);
}

.confirm__return p {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(247, 244, 237, 0.5);
  margin: 0 0 16px 0;
}

.confirm__return-links {
  font-family: var(--font-body);
  font-size: 15px;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.confirm__return-links a {
  color: var(--cotto);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.confirm__return-links a:hover {
  color: #ff5e2a;
}

.confirm__return-dot {
  color: rgba(247, 244, 237, 0.3);
}

/* Mobile */
@media (max-width: 768px) {
  .confirm {
    padding: 100px 20px 60px;
  }
  .confirm__callout {
    padding: 28px 20px;
    gap: 24px;
  }
  .confirm__callout-row {
    gap: 16px;
  }
  .confirm__callout-num {
    font-size: 22px;
    min-width: 32px;
  }
  .confirm__spam {
    padding: 16px 20px;
  }
}

/* ============================================
   LEGAL NOTICE PAGE
   ============================================ */

.legal {
  padding: 140px 24px 80px;
}

.legal__inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 24px 0 64px;
  color: var(--calce);
}

.legal__title em {
  color: var(--cotto);
}

.legal__section {
  margin-bottom: 48px;
}

.legal__section h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--calce);
  margin-bottom: 16px;
}

.legal__section p {
  font-family: var(--font-body);
  color: rgba(247, 244, 237, 0.8);
  line-height: 1.7;
  margin: 0 0 12px 0;
}

.legal__section p strong {
  color: var(--calce);
  font-weight: 500;
}

.legal__section p em {
  color: rgba(247, 244, 237, 0.6);
  font-style: italic;
}

.legal__section a,
.legal__link {
  color: var(--cotto);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.legal__section a:hover,
.legal__link:hover {
  color: #ff5e2a;
}

.legal__updated {
  font-style: italic;
  color: rgba(247, 244, 237, 0.4);
  font-size: 14px;
  margin-top: 80px;
  font-family: var(--font-body);
}

@media (max-width: 768px) {
  .legal {
    padding: 100px 20px 60px;
  }
  .legal__section {
    margin-bottom: 36px;
  }
  .legal__section h2 {
    font-size: 22px;
  }
}


/* ============================================
   FOOTER COMPLIANCE + COOKIE NOTICE
   ============================================ */

.foot__legal {
  grid-column: 1 / -1;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(247, 244, 237, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.foot__disclaimer {
  font-size: 13px;
  color: rgba(247, 244, 237, 0.5);
  line-height: 1.5;
  max-width: 680px;
  font-family: var(--font-body);
  margin: 0;
}

/* Cookie notice — micro-disclosure trasparente */
.foot__cookie-notice {
  font-size: 12px;
  color: rgba(247, 244, 237, 0.45);
  line-height: 1.5;
  max-width: 680px;
  font-family: var(--font-body);
  margin: 0;
}

.foot__cookie-notice a {
  color: rgba(247, 244, 237, 0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.foot__cookie-notice a:hover {
  color: var(--cotto);
}

.foot__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-body);
  font-size: 13px;
  margin-top: 4px;
}

.foot__links a {
  color: rgba(247, 244, 237, 0.7);
  text-decoration: none;
  transition: color 0.2s var(--ease);
  cursor: pointer;
}

.foot__links a:hover {
  color: var(--cotto);
}

.foot__links .dot {
  color: rgba(247, 244, 237, 0.3);
}

@media (max-width: 768px) {
  .foot__legal {
    margin-top: 40px;
    padding-top: 24px;
  }
  .foot__disclaimer,
  .foot__cookie-notice {
    font-size: 12px;
  }
}