:root {
  --fondo: #ffffff;
  --vetro: 255, 255, 255;          /* the glass of the bar, as r, g, b */
  --inchiostro: #121316;
  --grigio: #6b6d75;
  --linea: rgba(18, 19, 22, 0.1);
  --segnaposto: #eef0f2;
  --segnaposto-forte: #e3e5e9;
  --tinta: rgba(18, 19, 22, 0.035);  /* the soft fill under a link */
  --accento: #2b59ff;
  --bianco: #ffffff;
}

* { box-sizing: border-box; margin: 0; }

html { background: var(--fondo); }

body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* ---------------------------------------------------------------- the bar
   It starts --lip pixels above the page, with the same height of glass on top: when the spring drops it in with a
   pixel of overshoot, what comes into view above is the bar itself, never a gap. */
.bar {
  --lip: 12px;
  --h: 60px;
  --g: 0;                            /* 0 transparent at the top, 1 glass: written by the script */
  position: fixed;
  left: 0;
  right: 0;
  top: calc(-1 * var(--lip));
  height: calc(var(--h) + var(--lip));
  padding-top: var(--lip);
  z-index: 10;
  will-change: transform;
}

.bar__glass {
  position: absolute;
  inset: 0;
  background: rgba(var(--vetro), 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 1px 1px rgba(18, 19, 22, 0.03),
    0 6px 14px -6px rgba(18, 19, 22, 0.08),
    0 18px 36px -18px rgba(18, 19, 22, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.6);
  opacity: var(--g);
  pointer-events: none;
}

/* the 1px edge: a grey hairline that draws from left to right, with a short glint of the accent riding its tip */
.bar__edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.bar__line {
  position: absolute;
  inset: 0;
  background: var(--linea);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.bar__glint {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, rgba(43, 89, 255, 0), var(--accento) 78%, rgba(43, 89, 255, 0));
  opacity: 0;
}

.bar__inner {
  position: relative;
  height: var(--h);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3.4vw, 32px);
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 20px);
}

/* the brand */
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  height: 36px;
  padding: 0 6px 0 2px;
  border-radius: 10px;
  margin-right: auto;
}

.brand__mark {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
}
.brand__mark rect { fill: var(--inchiostro); transition: fill 0.3s ease; }
.brand__mark path { stroke: var(--bianco); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.brand__name {
  font-size: 15.5px;
  font-weight: 660;
  font-stretch: 106%;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand__sub { font-weight: 440; color: var(--grigio); }

/* the links: a soft fill that blooms under the one you point at, the active one keeps a still fill */
.links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.link {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grigio);
  white-space: nowrap;
  transition: color 0.22s ease;
}

.link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--tinta);
  opacity: 0;
  transform: scale(0.86, 0.7);
  transition: opacity 0.2s ease, transform 0.42s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.link__txt { position: relative; display: inline-block; transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }

.link.is-active { color: var(--inchiostro); font-weight: 600; }
.link.is-active::before { opacity: 1; transform: none; background: rgba(18, 19, 22, 0.065); box-shadow: inset 0 0 0 1px rgba(18, 19, 22, 0.04); }

.link:active .link__txt { transform: translateY(0.5px) scale(0.97); }

/* the button */
.cta {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--inchiostro);
  color: var(--bianco);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1px 2px rgba(18, 19, 22, 0.2),
    0 4px 10px -4px rgba(18, 19, 22, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.cta__txt { position: relative; z-index: 1; }

.cta__shine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(0) skewX(-18deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

@media (hover: hover) {
  .link:not(.is-active):hover { color: var(--inchiostro); }
  .link:not(.is-active):hover::before { opacity: 1; transform: none; }
  .link:hover .link__txt { transform: translateY(-0.5px); }
  .brand:hover .brand__mark rect { fill: var(--accento); }
  .cta:hover { background: #1d1f24; box-shadow: 0 1px 2px rgba(18, 19, 22, 0.2), 0 8px 18px -6px rgba(43, 89, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
  .cta:hover .cta__shine { transform: translateX(340%) skewX(-18deg); }
}

.cta:focus-visible, .link:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--accento);
  outline-offset: 2px;
}

/* narrow screens: two links, and below 400 px the wordmark keeps only Northwind */
@media (max-width: 720px) {
  .link--wide { display: none; }
}
@media (max-width: 520px) {
  .bar { --h: 56px; }
  .brand__sub { display: none; }
  .link { padding: 7px 9px; font-size: 13.5px; }
  .cta { height: 34px; padding: 0 13px; font-size: 13.5px; }
  .bar__inner { gap: 6px; }
}
@media (max-width: 360px) {
  .brand__name { display: none; }
}

/* ---------------------------------------------------------------- the neutral text that scrolls under it */
.page {
  padding: calc(60px + clamp(28px, 9vh, 96px)) clamp(18px, 6vw, 72px) clamp(60px, 14vh, 140px);
}

.hint {
  position: fixed;
  left: 50%;
  bottom: clamp(12px, 3vh, 24px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(18, 19, 22, 0.06), 0 6px 16px -8px rgba(18, 19, 22, 0.2);
  font-size: 12px;
  font-weight: 550;
  color: var(--grigio);
  z-index: 5;
}
.hint svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.col {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.ln { display: block; width: var(--w, 100%); border-radius: 6px; background: var(--segnaposto); }
.ln--kicker { width: 84px; height: 10px; background: rgba(43, 89, 255, 0.14); margin-bottom: 18px; }
.ln--title { height: clamp(18px, min(4.2vw, 5vh), 30px); background: var(--segnaposto-forte); margin-bottom: 10px; border-radius: 8px; }
.ln--meta { width: 150px; height: 9px; margin: 12px 0 clamp(24px, 6vh, 44px); }
.ln--head { height: 16px; background: var(--segnaposto-forte); margin: clamp(14px, 4vh, 30px) 0 18px; }

.para { display: flex; flex-direction: column; gap: 9px; margin-bottom: clamp(18px, 4vh, 28px); }
.para span { display: block; width: var(--w); height: 9px; border-radius: 5px; background: var(--segnaposto); }

.fig {
  height: clamp(110px, min(36vw, 30vh), 260px);
  border-radius: 14px;
  background: linear-gradient(180deg, #f3f4f6, #eceef1);
  box-shadow: inset 0 0 0 1px rgba(18, 19, 22, 0.035);
  margin: 4px 0 clamp(20px, 5vh, 32px);
}
.fig--low { height: clamp(90px, min(26vw, 22vh), 190px); }
