/* =========================================================
   FONTS
========================================================= */

@font-face {
  font-family: "Grapiso";
  src: url("assets/Grapiso.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Acumin";
  src: url("assets/Acumin Pro Condensed XTL.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
  --mint: #C8E3CF;
  --black: #111211;
  --white: #F6F6F1;

  --line-light: rgba(246, 246, 241, 0.22);
  --line-dark: rgba(17, 18, 17, 0.20);
}


/* =========================================================
   RESET
========================================================= */

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

html {
  width: 100%;

  scroll-behavior: smooth;

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

body {
  width: 100%;

  overflow-x: hidden;

  background: var(--black);
  color: var(--white);

  font-family:
    "Acumin",
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--mint);
  color: var(--black);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  width: 100%;

  height: 100svh;
  min-height: 650px;

  overflow: hidden;

  color: var(--white);

  background:
    radial-gradient(
      circle at 88% 3%,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(231, 244, 234, 0.92) 5%,
      rgba(200, 227, 207, 0.82) 13%,
      rgba(200, 227, 207, 0.34) 25%,
      rgba(200, 227, 207, 0.08) 37%,
      transparent 50%
    ),
    radial-gradient(
      circle at -5% 105%,
      rgba(200, 227, 207, 0.50) 0%,
      rgba(200, 227, 207, 0.16) 21%,
      transparent 43%
    ),
    var(--black);

  contain: paint;
}


/* =========================================================
   HEADER
========================================================= */

.header {
  position: absolute;

  top: 0;
  left: 0;

  z-index: 10;

  width: 100%;

  padding:
    max(20px, env(safe-area-inset-top))
    28px
    0;

  display: flex;

  justify-content: space-between;
  align-items: center;
}

.header-logo {
  width: 92px;
}

.header-logo img {
  width: 100%;

  filter: invert(1);
}

.header-status {
  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 11px;

  letter-spacing: 0.08em;
}

.status-dot {
  width: 7px;
  height: 7px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: var(--mint);
}


/* =========================================================
   HERO META
========================================================= */

.hero-meta {
  position: absolute;

  z-index: 3;

  top: 105px;
  left: 28px;

  display: flex;

  gap: 8px;

  font-size: 11px;

  letter-spacing: 0.08em;
}

.hero-divider {
  opacity: 0.4;
}


/* =========================================================
   HERO TYPOGRAPHY
========================================================= */

.hero-title-wrap {
  position: absolute;

  inset: 0;

  z-index: 2;

  display: flex;

  align-items: center;

  padding:
    90px
    28px
    80px;

  overflow: hidden;
}

.hero-title {
  width: 100%;

  font-family:
    "Grapiso",
    sans-serif;

  font-weight: normal;

  line-height: 0.70;

  letter-spacing: -0.045em;

  text-transform: uppercase;
}

.hero-line {
  display: block;

  width: fit-content;

  white-space: nowrap;

  opacity: 0;
}


/* =========================================================
   HERO INTRO
========================================================= */

.fonts-ready .hero-line {
  animation:
    heroReveal
    900ms
    cubic-bezier(.16, 1, .3, 1)
    forwards;
}

.fonts-ready .hero-line-2 {
  animation-delay: 110ms;
}

.fonts-ready .hero-line-3 {
  animation-delay: 220ms;
}

@keyframes heroReveal {

  from {
    opacity: 0;

    transform:
      translateY(45px)
      scale(1.035);

    filter: blur(9px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);

    filter: blur(0);
  }

}


/* =========================================================
   HERO TYPOGRAPHY — DESKTOP
========================================================= */

.hero-line-1 {
  font-size:
    clamp(
      6rem,
      11.7vw,
      13rem
    );
}

.hero-line-2 {
  margin-left: 20%;

  font-size:
    clamp(
      6rem,
      12.4vw,
      13.7rem
    );
}

.hero-line-3 {
  margin-left: 4%;

  font-size:
    clamp(
      5rem,
      10.6vw,
      12rem
    );
}


/* =========================================================
   HERO BOTTOM
========================================================= */

.hero-bottom {
  position: absolute;

  z-index: 4;

  left: 28px;
  right: 28px;
  bottom: 25px;

  padding-top: 14px;

  border-top:
    1px solid var(--line-light);

  display: flex;

  justify-content: space-between;
  align-items: flex-end;

  font-size: 13px;

  line-height: 1.1;
}

.scroll-hint {
  display: flex;

  align-items: center;

  gap: 12px;

  font-size: 10px;

  letter-spacing: 0.10em;
}

.scroll-arrow {
  display: inline-block;

  animation:
    arrow
    1.6s
    ease-in-out
    infinite;
}

@keyframes arrow {

  50% {
    transform: translateY(5px);
  }

}


/* =========================================================
   ABOUT
========================================================= */

.about {
  position: relative;

  width: 100%;

  padding:
    90px
    28px
    135px;

  background: var(--mint);

  color: var(--black);
}

.section-top {
  padding-top: 13px;

  border-top:
    1px solid var(--line-dark);

  display: flex;

  justify-content: space-between;

  font-size: 11px;

  letter-spacing: 0.08em;
}

.about-grid {
  margin-top: 100px;

  display: grid;

  grid-template-columns:
    minmax(120px, 0.25fr)
    1fr;

  gap: 40px;
}

.section-label {
  font-size: 11px;

  letter-spacing: 0.09em;
}

.about-right {
  max-width: 1120px;
}

.about-right h2 {
  max-width: 850px;

  font-family:
    "Grapiso",
    sans-serif;

  font-size:
    clamp(
      3rem,
      5vw,
      5.4rem
    );

  font-weight: normal;

  line-height: 0.93;

  letter-spacing: -0.04em;
}

.about-copy {
  max-width: 800px;

  margin-top: 90px;
  margin-left: auto;

  padding-top: 16px;

  border-top:
    1px solid var(--line-dark);

  display: grid;

  grid-template-columns:
    0.8fr
    1fr;

  gap: 60px;

  font-size: 21px;

  line-height: 1.06;
}

.about-lead {
  font-size: 26px;
}


/* =========================================================
   COMING SOON — DESKTOP
========================================================= */

.coming {
  position: relative;

  width: 100%;
  min-height: 100svh;

  padding:
    28px
    28px
    25px;

  overflow: hidden;

  display: grid;

  grid-template-rows:
    auto
    1fr
    auto;

  background:
    radial-gradient(
      circle at 100% 100%,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(200, 227, 207, 0.72) 8%,
      rgba(200, 227, 207, 0.25) 21%,
      rgba(200, 227, 207, 0.06) 34%,
      transparent 47%
    ),
    var(--black);

  color: var(--white);

  contain: paint;
}


/* TOP */

.coming-top {
  padding-top: 13px;

  border-top:
    1px solid var(--line-light);

  display: flex;

  justify-content: space-between;

  font-size: 10px;

  letter-spacing: 0.09em;
}


/* CENTER */

.coming-main {
  align-self: center;

  width: 100%;
  min-width: 0;
}


.coming-kicker {
  margin-bottom: 32px;

  font-size: 12px;

  letter-spacing: 0.07em;

  line-height: 1.05;
}


/*
  Prima era 18vw:
  troppo per Grapiso su desktop.
*/

.coming-title {
  width: 100%;

  max-width: 100%;

  font-family:
    "Grapiso",
    sans-serif;

  font-size:
    clamp(
      6rem,
      12vw,
      13rem
    );

  font-weight: normal;

  line-height: 0.68;

  letter-spacing: -0.045em;

  text-transform: uppercase;
}


.coming-title span {
  display: block;

  width: 100%;

  white-space: nowrap;
}


.coming-title span:first-child {
  margin: 0;

  text-align: left;
}


/*
  Niente più margin-left: 12%.
  Lo allineiamo a destra dentro
  la larghezza disponibile.
*/

.coming-title span:last-child {
  margin: 0;

  text-align: right;
}


/* =========================================================
   COMING BOTTOM — DESKTOP
========================================================= */

.coming-bottom {
  width: 100%;

  padding-top: 14px;

  border-top:
    1px solid var(--line-light);

  display: grid;

  grid-template-columns:
    0.7fr
    1.3fr;

  gap: 40px;

  align-items: end;

  font-size: 13px;

  line-height: 1.1;
}


.email {
  width: 100%;

  min-width: 0;

  min-height: 65px;

  padding:
    0 3px;

  border-bottom:
    1px solid var(--line-light);

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 12px;


  /*
  Anche desktop:
  email = Acumin, non Grapiso.
  */

  font-family:
    "Acumin",
    Arial,
    sans-serif;

  font-size:
    clamp(
      1.5rem,
      2.1vw,
      2.5rem
    );

  line-height: 1;

  letter-spacing: 0;

  white-space: nowrap;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    padding 0.25s ease;
}


.email span:first-child {
  min-width: 0;

  white-space: nowrap;
}


.email span:last-child {
  flex: 0 0 auto;

  font-size: 0.75em;
}


.email:hover {
  padding:
    0 15px;

  background: var(--mint);

  color: var(--black);
}
/* =========================================================
   SIMPLE REVEALS
========================================================= */

[data-reveal] {
  opacity: 0;

  transform:
    translateY(30px);

  transition:
    opacity
    700ms
    cubic-bezier(.16, 1, .3, 1),

    transform
    700ms
    cubic-bezier(.16, 1, .3, 1);
}

[data-reveal].visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {


  /* =======================================================
     HERO
  ======================================================= */

  .hero {
    height: 100svh;

    min-height: 600px;

    background:
      radial-gradient(
        circle at 108% 0%,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(231, 244, 234, 0.94) 6%,
        rgba(200, 227, 207, 0.80) 15%,
        rgba(200, 227, 207, 0.30) 30%,
        rgba(200, 227, 207, 0.07) 44%,
        transparent 58%
      ),
      radial-gradient(
        circle at -20% 105%,
        rgba(200, 227, 207, 0.40),
        rgba(200, 227, 207, 0.10) 25%,
        transparent 48%
      ),
      var(--black);
  }


  /* =======================================================
     HEADER
  ======================================================= */

  .header {
    padding:
      max(
        18px,
        env(safe-area-inset-top)
      )
      16px
      0;
  }

  .header-logo {
    width: 72px;
  }

  .header-status {
    font-size: 9px;

    gap: 8px;
  }

  .status-dot {
    width: 6px;
    height: 6px;
  }


  /* =======================================================
     HERO META
  ======================================================= */

  .hero-meta {
    top: 94px;

    left: 16px;
    right: 16px;

    display: flex;

    gap: 6px;

    font-size: 8px;

    line-height: 1;

    letter-spacing: 0.055em;

    white-space: nowrap;
  }


  /* =======================================================
     HERO TITLE
  ======================================================= */

  .hero-title-wrap {
    inset: 0;

    padding:
      105px
      16px
      95px;

    display: flex;

    align-items: center;

    overflow: hidden;
  }

  .hero-title {
    width: 100%;

    line-height: 0.74;

    letter-spacing: -0.045em;
  }

  .hero-line {
    display: block;

    width: max-content;

    max-width: 100%;

    white-space: nowrap;
  }

  .hero-line-1 {
    margin-left: 0;

    font-size: 14.8vw;
  }

  .hero-line-2 {
    margin-left: auto;
    margin-right: 0;

    font-size: 17.4vw;
  }

  .hero-line-3 {
    margin-left: 0;

    font-size: 12.7vw;
  }


  /* =======================================================
     HERO BOTTOM
  ======================================================= */

  .hero-bottom {
    left: 16px;
    right: 16px;

    bottom:
      max(
        18px,
        env(safe-area-inset-bottom)
      );

    font-size: 11px;
  }

  .hero-bottom p {
    max-width: 210px;
  }

  .scroll-hint {
    font-size: 8px;

    gap: 10px;
  }


  /* =======================================================
     ABOUT
  ======================================================= */

  .about {
    padding:
      64px
      16px
      90px;
  }

  .section-top {
    font-size: 9px;
  }

  .about-grid {
    margin-top: 65px;

    display: block;
  }

  .about-left {
    margin-bottom: 25px;
  }

  .section-label {
    font-size: 9px;
  }

  .about-right h2 {
    width: 100%;

    max-width: 345px;

    font-size:
      clamp(
        2.35rem,
        10.2vw,
        3.8rem
      );

    line-height: 0.96;

    letter-spacing: -0.035em;
  }

  .about-copy {
    width: 100%;

    margin-top: 60px;

    padding-top: 14px;

    display: block;

    font-size: 18px;

    line-height: 1.1;
  }

  .about-lead {
    margin-bottom: 27px;

    font-size: 23px;

    line-height: 1.05;
  }


  /* =======================================================
     COMING SOON
  ======================================================= */

  .coming {
    min-height: 100svh;

    padding:
      20px
      16px
      max(
        20px,
        env(safe-area-inset-bottom)
      );

    background:
      radial-gradient(
        circle at 110% 105%,
        rgba(255,255,255,.78) 0%,
        rgba(200,227,207,.66) 8%,
        rgba(200,227,207,.20) 23%,
        transparent 46%
      ),
      var(--black);
  }

  .coming-top {
    font-size: 8px;

    letter-spacing: 0.075em;
  }

  .coming-main {
    align-self: center;

    width: 100%;

    min-width: 0;
  }

  .coming-kicker {
    margin-bottom: 28px;

    font-size: 9px;

    line-height: 1.05;

    letter-spacing: 0.07em;
  }

  .coming-title {
    width: 100%;

    max-width: 100%;

    font-size: 16.5vw;

    line-height: 0.70;

    letter-spacing: -0.04em;

    overflow: visible;
  }

  .coming-title span {
    display: block;

    width: 100%;

    max-width: 100%;

    white-space: nowrap;
  }

  .coming-title span:first-child {
    margin: 0;

    padding: 0;

    text-align: left;
  }

  .coming-title span:last-child {
    margin: 0;

    padding: 0;

    font-size: 1em;

    text-align: right;
  }


  /* =======================================================
     COMING FOOTER
  ======================================================= */

  .coming-bottom {
    width: 100%;

    grid-template-columns: 1fr;

    gap: 24px;

    font-size: 11px;

    min-width: 0;
  }

  .coming-bottom > p {
    line-height: 1.1;
  }


  /*
  Email lunga:
  Acumin invece di Grapiso.
  */

  .email {
    width: 100%;

    min-width: 0;

    min-height: 56px;

    padding:
      0 2px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 6px;

    font-family:
      "Acumin",
      Arial,
      sans-serif;

    font-size:
      clamp(
        1rem,
        5vw,
        1.35rem
      );

    line-height: 1;

    letter-spacing: 0;

    white-space: nowrap;

    overflow: visible;
  }

  .email span:first-child {
    min-width: 0;

    white-space: nowrap;
  }

  .email span:last-child {
    flex: 0 0 auto;

    font-size: 0.75em;
  }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 370px) {

  .hero-line-1 {
    font-size: 14vw;
  }

  .hero-line-2 {
    font-size: 16.5vw;
  }

  .hero-line-3 {
    font-size: 12vw;
  }

  .coming-title {
    font-size: 15.5vw;
  }

  .email {
    font-size: 4.6vw;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;

    transition: none !important;

    scroll-behavior: auto !important;
  }

  .hero-line,
  [data-reveal] {
    opacity: 1;

    transform: none;

    filter: none;
  }

}