:root {
  --ink: #10242a;
  --muted: #5c6c70;
  --paper: #ffffff;
  --page: #f4f6f5;

  --yellow: #f0ae22;
  --orange: #e57429;
  --red: #e13a31;
  --teal-light: #4db7b2;
  --teal: #229fa3;
  --deep: #146e82;
  --navy: #124651;
  --green: #86bf4a;

  --stripe-speed: 19s;
  --content-width: 1120px;
  --frame-height: 132px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

/* ---------------------------------------------------------
   STRIPE FRAME
   --------------------------------------------------------- */

.stripe-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: var(--frame-height);
  background: transparent;
  border: 0;
}

.stripe-frame::before {
  content: "";
  position: absolute;
  inset: -260px -360px;

  background:
    repeating-linear-gradient(
      120deg,
      var(--yellow) 0.6px,
      var(--yellow) 15.4px,
      #fff 16.6px,
      #fff 33.4px,
      var(--orange) 34.6px,
      var(--orange) 49.4px,
      #fff 50.6px,
      #fff 67.4px,
      var(--red) 68.6px,
      var(--red) 83.4px,
      #fff 84.6px,
      #fff 101.4px,
      var(--teal-light) 102.6px,
      var(--teal-light) 117.4px,
      #fff 118.6px,
      #fff 135.4px,
      var(--teal) 136.6px,
      var(--teal) 151.4px,
      #fff 152.6px,
      #fff 169.4px,
      var(--deep) 170.6px,
      var(--deep) 185.4px,
      #fff 186.6px,
      #fff 203.4px,
      var(--navy) 204.6px,
      var(--navy) 219.4px,
      #fff 220.6px,
      #fff 237.4px,
      var(--green) 238.6px,
      var(--green) 253.4px,
      #fff 254.6px,
      #fff 271.4px,
      var(--yellow) 272.6px
    );

  animation: stripes var(--stripe-speed) linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.stripe-frame--bottom::before {
  animation-direction: reverse;
  transform: scaleY(-1);
}

/* ---------------------------------------------------------
   ANIMAZIONE STRISCE
   --------------------------------------------------------- */

@keyframes stripes {
  from {
    transform: translate3d(
      calc(0px + var(--mouse-x, 0px)),
      var(--mouse-y, 0px),
      0
    );
  }

  to {
    transform: translate3d(
      calc(314.087px + var(--mouse-x, 0px)),
      var(--mouse-y, 0px),
      0
    );
  }
}

/* ---------------------------------------------------------
   PAGE CONTENT
   --------------------------------------------------------- */

.site-shell {
  width: min(100%, var(--content-width));
  margin: 40px auto;
  background: var(--paper);
  min-height: 980px;
}

.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;

  background: radial-gradient(
    circle 170px at var(--cursor-x, 50%) var(--cursor-y, 50%),
    rgba(34, 159, 163, .055),
    transparent 70%
  );

  opacity: .9;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px clamp(22px, 4vw, 52px);
  border-bottom: 1px solid rgba(16, 36, 42, .12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.04em;
  font-size: 1.05rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  padding: clamp(58px, 8vw, 100px) clamp(22px, 7vw, 78px) 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, .72fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: end;
}

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--teal);
  margin-bottom: 15px;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: .88;
  letter-spacing: -.07em;
  margin: 0;
  max-width: 760px;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
}

.hero-note {
  border-left: 3px solid var(--red);
  padding-left: 20px;
  color: var(--muted);
  max-width: 330px;
  font-size: .94rem;
}

.hero-note strong {
  display: block;
  color: var(--ink);
  margin-bottom: 5px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button--filled {
  background: var(--ink);
  color: #fff;
}

.section {
  padding: 0 clamp(22px, 7vw, 78px) 72px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(16, 36, 42, .15);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.section-heading span {
  color: var(--muted);
  font-size: .84rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 235px;
  padding: 24px;
  border: 1px solid rgba(16, 36, 42, .18);
  position: relative;
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: -52px;
  height: 34px;
  transform: rotate(-12deg);
  background: var(--accent);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 7px 7px 0 rgba(16, 36, 42, .10);
}

.card:nth-child(1) {
  --accent: var(--orange);
}

.card:nth-child(2) {
  --accent: var(--teal);
}

.card:nth-child(3) {
  --accent: var(--red);
}

.card-index {
  font-size: .75rem;
  font-weight: 850;
  color: var(--muted);
  margin-bottom: 64px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  letter-spacing: -.03em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.journal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(16, 36, 42, .15);
}

.journal article {
  padding: 28px 0;
}

.journal article + article {
  border-left: 1px solid rgba(16, 36, 42, .15);
  padding-left: 28px;
  margin-left: 28px;
}

.meta {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
  margin-bottom: 10px;
}

.journal h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  letter-spacing: -.03em;
}

.journal p {
  margin: 0;
  max-width: 500px;
  color: var(--muted);
}

footer {
  margin-top: 22px;
  padding: 22px clamp(22px, 7vw, 78px) 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(16, 36, 42, .15);
  color: var(--muted);
  font-size: .82rem;
}

/* ---------------------------------------------------------
   CURSOR TRAIL
   --------------------------------------------------------- */

.trail {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 30;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 800px) {
  :root {
    --frame-height: 100px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .hero-note {
    max-width: none;
  }

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

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

  .journal article + article {
    border-left: 0;
    border-top: 1px solid rgba(16, 36, 42, .15);
    padding-left: 0;
    margin-left: 0;
  }

  footer {
    flex-direction: column;
  }
}

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

  .stripe-frame::before {
    animation: none;
  }

  .site-shell::after {
    display: none;
  }

  .button,
  .card {
    transition: none;
  }
}