:root {

  --bg: #0F1115;
  --bg-2: #16191F;
  --fg: #F2EAD9;
  --fg-soft: #9FA1A8;
  --hair: rgba(242,234,217,0.16);
  --hair-soft: rgba(242,234,217,0.08);
  --accent: #E8744F;
  --accent-2: #4FA8E8;
  --accent-2-soft: rgba(79,168,232,0.14);
  --section-dark-bg: #05070A;
  --on-dark: #F2EAD9;


  --font-sans: "Hanken Grotesk", "Söhne", "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;


  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 144px;


  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 56px);


  --t-mono: 11px;
  --t-mono-letter: 0.14em;

  --t-display: clamp(40px, 6.5vw, 96px);
  --t-h1: clamp(32px, 4.4vw, 64px);
  --t-h2: clamp(26px, 3.2vw, 44px);
  --t-h3: clamp(20px, 1.6vw, 24px);
  --t-body: clamp(15px, 1.05vw, 17px);
  --t-body-lg: clamp(17px, 1.25vw, 20px);
  --t-small: 13px;
}

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

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 180ms ease, color 180ms ease;
}
a:hover { opacity: 0.6; }

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  text-wrap: balance;
}

button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--t-mono-letter);
  text-transform: uppercase;
  font-weight: 400;
}

.hairline {
  border: 0;
  border-top: 1px solid var(--hair);
  margin: 0;
}

.fg-soft { color: var(--fg-soft); }
.bordeaux { color: var(--accent); }
.blue { color: var(--accent-2); }
.bg-blue-soft { background: var(--accent-2-soft); }

[data-en], [data-it] { display: inline; }
body[data-lang="it"] [data-en] { display: none; }
body[data-lang="en"] [data-it] { display: none; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(.2,.6,.2,1), transform 700ms cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hair-soft);
}
.site-header .container {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  height: 72px;
  gap: var(--s-6);
}
.brand {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  white-space: nowrap;
}
.brand .mark { white-space: nowrap; }
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  white-space: normal;
  max-width: 340px;
  line-height: 1.45;
}
@media (max-width: 1080px) {
  .brand-tagline { display: none; }
}
.brand-logo {
  display: block;
  width: 240px;
  height: 45px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 540px) {
  .brand-logo { width: 180px; height: 34px; }
}
.brand .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  transform: translateY(-2px);
}
.brand .mark { font-weight: 500; }
.brand .mark em { font-style: normal; font-weight: 400; color: var(--fg-soft); }

.nav-primary {
  display: flex;
  justify-content: center;
  gap: var(--s-7);
}
.nav-primary a {
  font-size: 14px;
  letter-spacing: -0.005em;
  position: relative;
  padding: 4px 0;
}
.nav-primary a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--fg);
}

.header-utils {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 4px;
  background: transparent;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--fg-soft);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.lang-switch button.is-active {
  background: var(--fg);
  color: var(--bg);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 9px 16px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  transition: background 200ms ease, color 200ms ease;
}
.cta-pill:hover {
  background: var(--fg);
  color: var(--bg);
  opacity: 1;
}
.cta-pill .arrow { transition: transform 200ms ease; }
.cta-pill:hover .arrow { transform: translateX(3px); }

.nav-toggle {
  display: none;
  color: var(--fg);
  background: transparent;
}
@media (max-width: 1080px) {
  .site-header .container { grid-template-columns: 1fr auto; height: 64px; }
  .nav-primary {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hair);
    padding: var(--s-5) var(--gutter) var(--s-6);
    flex-direction: column;
    gap: var(--s-4);
    justify-content: flex-start;
  }
  .nav-primary.is-open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--fg);
    border-radius: 999px;
    background: transparent;
    color: var(--fg);
  }
  .nav-toggle svg { display: block; }
  .nav-toggle svg path {
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
  }
}

.section {
  padding: var(--s-9) 0;
  position: relative;
}
.section--tight { padding: var(--s-7) 0; }
.section--alt   { background: var(--bg-2); }
.section--dark  {
  background: var(--section-dark-bg, var(--fg));
  color: var(--on-dark, var(--bg));
}
.section--dark .hairline { border-color: rgba(255,255,255,0.18); }
.section--dark .fg-soft { color: rgba(255,255,255,0.6); }
.section--dark .cta-pill { border-color: var(--on-dark, var(--bg)); color: var(--on-dark, var(--bg)); }
.section--dark .cta-pill:hover { background: var(--on-dark, var(--bg)); color: var(--section-dark-bg, var(--fg)); }
.section--dark .accent { color: var(--on-dark-accent, var(--accent)); }

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  align-items: baseline;
}
.section-head .eyebrow { padding-top: 6px; color: var(--accent-2); }
.section-head h2 { max-width: 22ch; }

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: var(--s-3); }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6) var(--s-7);
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; gap: var(--s-5); }
}

.ref-link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  color: var(--fg);
  transition: color 160ms ease, padding-left 200ms ease;
}
.ref-link:hover { color: var(--accent); padding-left: 6px; }
.ref-link .ref-name {
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.ref-link .ref-meta {
  font-size: 13px;
  line-height: 1.4;
  align-self: center;
}
@media (max-width: 540px) {
  .ref-link { grid-template-columns: 1fr; gap: var(--s-2); }
}

.hero {
  padding: clamp(80px, 12vw, 160px) 0 clamp(56px, 8vw, 120px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-6);
}
.hero-grid .eyebrow { padding-top: 10px; color: var(--accent-2); }
.hero h1 {
  font-size: var(--t-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
  max-width: 22ch;
}
.hero h1 .accent {
  color: var(--accent);
  font-weight: 400;
}
.hero .lede {
  margin-top: clamp(32px, 4vw, 56px);
  font-size: var(--t-body-lg);
  color: var(--fg-soft);
  max-width: 52ch;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-3); }
}

@media (max-width: 720px) {
  .section { padding: clamp(48px, 11vw, 72px) 0; }
  .section--tight { padding: clamp(40px, 8vw, 56px) 0; }
  .hero { padding: clamp(56px, 14vw, 96px) 0 clamp(40px, 8vw, 64px); }
  .site-footer { padding: clamp(56px, 11vw, 72px) 0 var(--s-6); }
}

@media (max-width: 720px) {
  .hero .container > div[style*="repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--s-4) var(--s-5);
  }
}

@media (max-width: 720px) {
  .hero-grid > .eyebrow,
  .editorial > .eyebrow,
  .section-head > .eyebrow {
    margin-bottom: var(--s-3);
  }
}

@media (max-width: 540px) {
  .site-header .container { gap: var(--s-3); }
  .header-utils { gap: var(--s-2); }
  .header-utils > .cta-pill {
    padding: 7px 12px;
    font-size: 12px;
  }
  .brand { font-size: 16px; }
  .lang-switch button { padding: 3px 8px; font-size: 10px; }
}

@media (max-width: 400px) {
  .header-utils > .cta-pill { display: none; }
}

@media (max-width: 480px) {
  h1, .hero h1 { letter-spacing: -0.02em; }
  .lede { font-size: 16px !important; line-height: 1.5; }
}

.hero h1 .w {
  display: inline-block;
  clip-path: inset(-0.05em -0.5em 0 -0.05em);
  vertical-align: bottom;
  line-height: 1.05;
  padding-bottom: 0.04em;
}
.hero h1 .w.is-done { clip-path: none; }

.hero h1 .w-i {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.hero h1.is-revealed .w-i {
  animation: wordRise 900ms cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--i,0) * 65ms + 180ms);
}
@keyframes wordRise {
  to { transform: translateY(0); }
}

.pulse-dot {
  display: inline-block;
  width: clamp(10px, 1vw, 14px);
  height: clamp(10px, 1vw, 14px);
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 0.18em;
  transform: translateY(-0.04em);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: translateY(-0.04em) scale(1); opacity: 1; }
  50%      { transform: translateY(-0.04em) scale(1.35); opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
}

a.under {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
a.under::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 350ms cubic-bezier(.2,.7,.2,1);
}
a.under:hover::after { right: 0; }

