/* The logo that tightens from the horizon: a warm white page, one hairline and a one-word name. Minimal: one ink, one
   accent (the line, once it sits under the name). */
:root {
  --ground: #f3f0e8;        /* the background */
  --ink: #141414;           /* the name and the horizon */
  --hint: #8c8679;          /* the small text */
  --accent: #e0462a;        /* the line under the finished logo */
  --shade: rgba(20, 20, 20, 0.07); /* the soft shadow under each letter as it lands */
  --elastic: cubic-bezier(0.34, 1.9, 0.45, 1);
  --screen: 100vh;
}
@supports (height: 100lvh) {
  :root { --screen: 100lvh; }
}

* { box-sizing: border-box; }
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--ground);
  color: var(--ink);
  font-family: 'Archivo Variable', 'Helvetica Neue', Arial, sans-serif;
  overflow: hidden;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.scena {
  position: relative;
  height: var(--screen);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4.5vh, 40px);
  padding: 56px 0 84px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

.marca {
  position: absolute;
  top: 22px;
  left: 24px;
  right: 24px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--hint);
}
.marca span:first-child {
  color: var(--ink);
  font-weight: 600;
}

/* the logo block spans the whole width: the letters start spread across it */
.logo {
  position: relative;
  width: 100%;
  font-size: clamp(44px, min(14vw, 17vh), 148px);
}
.parola {
  position: relative;
  height: 1em;
}
/* the outer span is moved by GSAP (x, centred with xPercent), the inner one carries the font axes and the squash */
.lettera {
  position: absolute;
  left: 50%;
  top: 0;
  line-height: 1;
  white-space: pre;
}
.lettera__segno {
  display: block;
  transform-origin: 50% var(--base, 80%);
  font-variation-settings: 'wdth' 125, 'wght' 200;
  will-change: transform;
}
/* a soft shadow on the horizon under every letter: it tightens with the letter and darkens as it lands */
.lettera__ombra {
  position: absolute;
  left: 8%;
  right: 8%;
  top: calc(var(--basepx, 0.8em) + 0.025em);
  height: 0.06em;
  border-radius: 50%;
  background: var(--shade);
  filter: blur(4px);
  opacity: 0;
}

.orizzonte {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--basepx, 0.8em) + 0.07em);
  height: 1px;
  background: var(--ink);
  transform-origin: 50% 50%;
  transform: scaleX(0);
}

.motto {
  margin: 0;
  font-size: clamp(13px, 1.6vw, 16px);
  font-variation-settings: 'wdth' 92, 'wght' 380;
  color: var(--hint);
  letter-spacing: 0.01em;
}

.pillola {
  position: absolute;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ground);
  font: 600 13px/1 'Archivo Variable', 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.pillola::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ink);
  transition: inset 0.6s var(--elastic);
}
.pillola__scritta {
  font-stretch: 86%;
  transition: font-stretch 0.6s var(--elastic);
}
.pillola__scritta::before {
  content: attr(data-testo);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-stretch: 100%;
}
@media (hover: hover) {
  .pillola:hover::before { inset: -2px -7px; }
  .pillola:hover .pillola__scritta { font-stretch: 100%; }
}
.pillola:active::before { inset: 2px 3px; }
.pillola:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 560px) {
  .marca { top: 16px; left: 16px; right: 16px; font-size: 11px; }
  .pillola { bottom: 14px; min-height: 34px; }
}
