:root {
  --carbone: #181817;
  --calce: #f2efe7;
  --polvere: #b6b1a6;
  --petrolio: #1c4b4a;
  --terracotta: #b5502e;
  --header-height: 80px;
  --page-x: clamp(24px, 5vw, 80px);
  --content-max: 1760px;
  --editorial-gap: clamp(26px, 3.5vh, 44px);
  --home-lift: clamp(-48px, -4vh, -26px);
  --ease: cubic-bezier(.22, .72, .2, 1);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--calce);
}

body {
  margin: 0;
  color: var(--carbone);
  background: var(--calce);
  font-family: "Instrument Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--calce);
  background: var(--carbone);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 40;
  min-height: var(--header-height);
  padding: 0 var(--page-x);
  border-bottom: 1px solid rgba(24, 24, 23, .14);
  background: var(--calce);
  animation: header-in .8s .1s var(--ease) both;
}

.site-header__inner {
  width: min(100%, calc(var(--content-max) - (var(--page-x) * 2)));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-header__brand {
  width: 28px;
  display: grid;
  place-items: center;
}

.site-header__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header__status {
  margin: 0;
  font: 11px/1.3 "Fragment Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-header__status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
}

.home {
  padding: 0 var(--page-x);
}

.home__hero {
  width: min(100%, calc(var(--content-max) - (var(--page-x) * 2)));
  min-height: calc(100svh - var(--header-height) - 112px);
  margin-inline: auto;
  padding: clamp(54px, 7vh, 88px) 0 clamp(54px, 7vh, 80px);
}

.home__copy {
  min-height: calc(100svh - var(--header-height) - 112px - clamp(108px, 14vh, 168px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.home__brand,
.home__axis-row {
  transform: translateY(var(--home-lift));
}

.home__brand {
  width: min(442px, 37.7vw);
  margin: 0 0 var(--editorial-gap);
  overflow: hidden;
}

.home__brand-mask,
.claim-mask {
  display: block;
  overflow: hidden;
}

.home__brand img {
  display: block;
  width: 100%;
  height: auto;
  animation: wordmark-reveal 1.05s .18s var(--ease) both;
}

.home__axis-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 767px) 1fr;
  gap: clamp(20px, 3vw, 42px);
  margin: 0;
}

.home__axis {
  width: 100%;
  height: 2px;
  overflow: hidden;
}

.home__axis span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--petrolio);
  transform-origin: left center;
  animation: axis-reveal .72s .32s var(--ease) both;
}

.home__note {
  width: min(100%, 767px);
  margin-top: calc(var(--editorial-gap) + var(--home-lift));
  opacity: 0;
  animation: note-in .72s .58s var(--ease) forwards;
}

.home__note p {
  max-width: 660px;
  margin: 0;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.5;
  letter-spacing: -.012em;
}

.home__note a,
.footer-link {
  position: relative;
  display: inline-block;
}

.home__note a::after,
.footer-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s var(--ease);
}

.home__note a:hover::after,
.home__note a:focus-visible::after,
.footer-link:hover::after,
.footer-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-footer {
  width: min(calc(100% - (var(--page-x) * 2)), calc(var(--content-max) - (var(--page-x) * 2)));
  min-height: 112px;
  margin: 0 auto;
  padding: 34px 0 38px;
  border-top: 1px solid rgba(24, 24, 23, .14);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 70px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  font-size: 13px;
}

.footer-code {
  display: grid;
  gap: 7px;
  justify-items: end;
  color: rgba(24, 24, 23, .65);
  font: 10px/1.3 "Fragment Mono", monospace;
  text-transform: uppercase;
}

@keyframes header-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wordmark-reveal {
  from { transform: translateY(112%); }
  to { transform: translateY(0); }
}

@keyframes axis-reveal {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes note-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .home__brand { width: min(403px, 50.7vw); }
}

@media (max-width: 640px) {
  :root {
    --header-height: 72px;
    --editorial-gap: 26px;
    --home-lift: 0px;
  }

  .site-header,
  .site-header__inner { min-height: var(--header-height); }

  .site-header__brand { width: 24px; }
  .site-header__status { font-size: 9px; }

  .home__hero {
    min-height: calc(100svh - var(--header-height) - 146px);
    padding: 44px 0 54px;
  }

  .home__copy {
    min-height: calc(100svh - var(--header-height) - 244px);
    justify-content: center;
  }

  .home__brand,
  .home__axis-row { transform: none; }

  .home__brand {
    width: min(320px, 78vw);
    margin-bottom: 26px;
  }

  .home__axis-row {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 0;
  }

  .home__note p { font-size: 16px; }

  .site-footer {
    min-height: 146px;
    padding: 28px 0 30px;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-code {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
