:root {
  --bg: #ffffff;
  --ink: #161616;
  --muted: #6b6b6b;
  --line: #d9d9d9;
  --panel: #f0f0f0;
  --active: #767676;
  --body: #3a3a3a;
  --h1: clamp(1.25rem, 5.6vw, 3.125rem);
  --select: #e2e2e2;
  --sans: "Geist", system-ui, sans-serif;
  --wrap: 77.5rem;
  --gutter: clamp(1rem, 5vw, 4rem);
  --inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  --space: clamp(3rem, 7vw, 6rem);
}

:root:lang(it) {
  --h1: clamp(1.125rem, 4.9vw, 3.125rem);
}

html {
  font-size: clamp(100%, 0.536vw + 51.8%, 137.5%);
  scroll-padding-bottom: 5rem;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--select);
}

.tile[aria-expanded="true"] ::selection {
  background: #4a4a4a;
  color: var(--bg);
}

:focus-visible {
  outline: 0.125rem solid var(--ink);
  outline-offset: 0.25rem;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: var(--bg);
}
::-webkit-scrollbar-track {
  background: linear-gradient(
    90deg,
    transparent 4px,
    var(--line) 4px 5px,
    transparent 5px
  );
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    90deg,
    transparent 4px,
    var(--ink) 4px 6px,
    transparent 6px
  );
}
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  background: linear-gradient(
    90deg,
    transparent 3px,
    var(--ink) 3px 7px,
    transparent 7px
  );
}
::-webkit-scrollbar-corner {
  background: var(--bg);
}
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--ink) transparent;
  }
}

.hero {
  padding: clamp(2rem, 6vw, 5.5rem) var(--gutter) var(--space);
}
.card {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
}

.lang {
  display: flex;
  gap: 0.25rem;
  margin-right: -0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.lang a {
  padding: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.lang a:hover,
.lang a[aria-current] {
  color: var(--ink);
}
.lang a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 1px;
}
.card > .lang {
  position: absolute;
  top: -0.5rem;
  right: 0;
}

.logo {
  width: max(4rem, calc(var(--h1) * 2.2));
  height: auto;
  display: block;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
h1 {
  font-size: var(--h1);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.pitch {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: max(2rem, calc(var(--h1) * 1.25));
}
.claim {
  font-size: max(1.125rem, calc(var(--h1) * 0.5));
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lead {
  color: var(--body);
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}

.section {
  padding: 0 var(--gutter) var(--space);
}
.section .inner {
  max-width: var(--wrap);
  margin: 0 auto;
}
.section h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 1rem;
}
.tiles h3 {
  font: inherit;
}
.tile {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 11.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  text-align: left;
  font: inherit;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: inherit;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.tile:hover {
  border-color: var(--ink);
}
.tile[aria-expanded="true"] {
  background: var(--active);
  border-color: var(--active);
  color: var(--bg);
}
.tile[aria-expanded="true"] .icon {
  filter: brightness(0) invert(1);
}
.tile .icon {
  width: auto;
  height: 3rem;
  flex: none;
  object-fit: contain;
}
.tile .label {
  margin-top: auto;
  padding-right: 2rem;
}
.tile .toggle {
  position: absolute;
  right: 1.5rem;
  bottom: 1.625rem;
  width: 0.875rem;
  height: 0.875rem;
}
.tile .toggle::before,
.tile .toggle::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.375rem;
  width: 0.875rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s;
}
.tile .toggle::after {
  transform: rotate(90deg);
}
.tile[aria-expanded="true"] .toggle::after {
  transform: rotate(0);
}

.panel {
  grid-column: 1 / -1;
  background: var(--panel);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.panel ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem clamp(1.5rem, 3vw, 2.5rem);
}
.panel h4 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.375rem;
}
.panel p {
  font-size: 0.9375rem;
  color: var(--muted);
}
.panel:not([hidden]) {
  animation: reveal 0.3s ease-out;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.person .inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(1.75rem, 7vw, 7.5rem);
  align-items: center;
}
.person img {
  display: block;
  width: 100%;
  height: auto;
}
.bio p {
  max-width: 52ch;
  margin-bottom: 1rem;
  color: var(--body);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  text-wrap: pretty;
}

.registers {
  margin-top: 2rem;
}
.registers p {
  margin-bottom: 0.25rem;
  color: var(--muted);
}
.registers ul {
  list-style: none;
  color: var(--body);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}
.registers li {
  position: relative;
  padding-left: 1.125em;
}
.registers li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.3em;
  height: 0.3em;
  border-radius: 50%;
  background: currentColor;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 3rem;
  padding: 1rem var(--inline);
  background: var(--panel);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--body);
  position: sticky;
  bottom: calc(var(--more, 0px) * var(--fold, 0) * -1);
  z-index: 10;
}
footer address,
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  font-style: normal;
}
footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 1px;
}

@media (max-width: 1100px) {
  .panel ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  footer {
    --fold: 1;
    display: block;
    padding-block: 0;
  }
  footer address {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    column-gap: 1rem;
  }
  footer address a:not(.map) {
    padding-block: 0.875rem;
    font-size: 1.0625rem;
    color: var(--ink);
  }
  footer .map {
    grid-column: 1 / -1;
    padding-top: 0.875rem;
    border-top: 1px solid var(--line);
  }
  footer nav {
    gap: 0.25rem 1.5rem;
    padding: 0.5rem 0 1.25rem;
  }
  .pitch,
  .person .inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.5rem;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .person img {
    max-width: 27.5rem;
  }
  .pitch {
    row-gap: 1rem;
  }
}
@media (max-width: 600px) {
  .tiles {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
  .tile {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    min-height: 0;
    padding: 1rem;
  }
  .tile .icon {
    width: 2.5rem;
    height: 2.25rem;
  }
  .tile .label {
    margin-top: 0;
  }
  .tile .toggle {
    bottom: auto;
    top: calc(50% - 0.4375rem);
    right: 1.125rem;
  }
  .panel ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}
