@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;500&family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600&family=Noto+Sans+JP:wght@300;400;500&family=Noto+Serif+JP:wght@300;400;500&display=swap");

:root {
  color-scheme: dark;
  --black: #070707;
  --white: #f4f2ed;
  --muted: rgba(244, 242, 237, 0.62);
  --line: rgba(244, 242, 237, 0.2);
  --red: #c50018;
  --pointer-x: 50vw;
  --pointer-y: 50vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--black);
  color: var(--white);
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 68px);
  mix-blend-mode: difference;
}

.brand {
  display: block;
  width: 92px;
  height: 42px;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: clamp(22px, 3vw, 54px);
  font: 500 11px/1 "DM Sans", sans-serif;
  letter-spacing: 0.19em;
}

.site-nav a {
  position: relative;
  padding-block: 10px;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  transition: transform 300ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.experience {
  position: relative;
}

.visual-stage {
  position: sticky;
  z-index: 0;
  top: 0;
  height: 100svh;
  margin-bottom: -100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(115, 12, 15, 0.12), transparent 37%),
    var(--black);
}

.hero-image {
  position: absolute;
  inset: 0 0 0 34%;
  z-index: 0;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(7, 7, 7, 0.78) 14%, rgba(7, 7, 7, 0.18) 40%, rgba(7, 7, 7, 0) 64%, rgba(7, 7, 7, 0.08) 100%),
    linear-gradient(0deg, rgba(7, 7, 7, 0.2), transparent 32%, rgba(7, 7, 7, 0.18)),
    url("./assets/hero-v1.png") 90% center / cover no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1200ms ease, transform 1800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.experience:has(.chapter-aroma.is-active) .hero-image {
  opacity: 0.92;
  transform: scale(1);
}

.chapter-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1200ms ease, transform 1800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.crema-image {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.08), rgba(7, 7, 7, 0.22) 46%, rgba(7, 7, 7, 0.58)),
    linear-gradient(0deg, rgba(7, 7, 7, 0.34), transparent 42%, rgba(7, 7, 7, 0.18)),
    url("./assets/home-crema-italia-bg-v1.png") center / cover no-repeat;
}

.five-image {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.68), rgba(7, 7, 7, 0.28) 50%, rgba(7, 7, 7, 0.08)),
    linear-gradient(0deg, rgba(7, 7, 7, 0.36), transparent 46%, rgba(7, 7, 7, 0.16)),
    url("./assets/home-five-italia-bg-v1.png") center / cover no-repeat;
}

.experience:has(.chapter-crema.is-active) .crema-image {
  opacity: 0.58;
  transform: scale(1);
}

.experience:has(.chapter-five.is-active) .five-image {
  opacity: 0.76;
  transform: scale(1);
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.experience:has(.chapter-roma.is-active) #particle-canvas {
  z-index: 1;
}

html.particle-footer-overlap .experience:has(.chapter-roma.is-active) #particle-canvas {
  z-index: 6;
}

.light-field {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 260px at var(--pointer-x) var(--pointer-y),
    rgba(235, 45, 46, 0.12),
    transparent 68%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: grain-shift 0.18s steps(2) infinite;
  pointer-events: none;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(3%, -2%); }
  50% { transform: translate(-2%, 4%); }
  75% { transform: translate(4%, 2%); }
  100% { transform: translate(-3%, -4%); }
}

.chapter {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 118svh;
  align-items: center;
  padding: 12vh clamp(22px, 8vw, 124px);
}

.chapter-aroma {
  min-height: 128svh;
}

.chapter-five {
  min-height: 150svh;
}

.chapter-roma {
  min-height: 138svh;
  align-items: end;
  overflow: hidden;
  padding-bottom: 13vh;
}

.chapter-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
  opacity: 0.2;
  transform: translateY(32px);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter.is-active .chapter-copy {
  opacity: 1;
  transform: translateY(0);
}

.chapter-copy-intro {
  width: min(88vw, 800px);
  margin-left: 0;
  text-align: left;
}

.chapter-copy-intro h1 {
  font-family: "Bodoni Moda", "Noto Serif JP", serif;
  font-weight: 400;
  font-size: clamp(52px, 6.4vw, 94px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.origin {
  margin: 0 0 16px;
  color: var(--muted);
  font: 500 10px/1 "DM Sans", sans-serif;
  letter-spacing: 0.28em;
}

h1,
h2 {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  letter-spacing: -0.065em;
}

h1 {
  font-size: clamp(86px, 17vw, 250px);
  line-height: 0.78;
}

h2 {
  font-size: clamp(58px, 9.6vw, 148px);
  line-height: 0.87;
}

.statement {
  margin: 22px 0 0;
  font-family: "Noto Serif JP", serif;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 300;
  letter-spacing: 0.2em;
}

.hero-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 34px;
}

.secondary-action {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  color: var(--white);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.secondary-action::after {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: right;
  transition: transform 300ms ease;
}

.secondary-action:hover::after,
.secondary-action:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.secondary-action:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 5px;
}

.chapter-copy > p:not(.origin, .statement) {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.08em;
}

.chapter-copy-right {
  width: min(100%, 980px);
  justify-self: end;
  text-align: right;
}

.chapter-copy-right h2 {
  font-size: clamp(58px, 8.4vw, 126px);
}

.chapter-copy-five {
  align-self: center;
  width: min(100%, 840px);
}

.chapter-copy-five h2 {
  font-size: clamp(54px, 8vw, 118px);
}

.flavor-selector {
  display: grid;
  grid-template-columns: minmax(185px, 0.6fr) minmax(260px, 1fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: end;
  margin-top: clamp(52px, 7vw, 90px);
}

.flavor-list {
  border-top: 1px solid var(--line);
}

.flavor {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 15px 2px;
  background: transparent;
  color: rgba(244, 242, 237, 0.42);
  cursor: pointer;
  font: 500 12px/1 "DM Sans", sans-serif;
  letter-spacing: 0.18em;
  text-align: left;
  transition: color 250ms ease, padding-left 300ms ease;
}

.flavor:hover,
.flavor:focus-visible,
.flavor.is-selected {
  padding-left: 13px;
  color: var(--white);
}

.flavor:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 4px;
}

.flavor-mark {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.flavor-green { color: #65a166; background: currentColor; }
.flavor-gold { color: #d6a553; background: currentColor; }
.flavor-red { color: #d5172e; background: currentColor; }
.flavor-silver { color: #c7c8c9; background: currentColor; }
.flavor-brown { color: #8e5b39; background: currentColor; }

.flavor-detail {
  min-height: 125px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--white);
}

.flavor-detail p {
  margin: 0;
}

#flavor-name {
  font: 500 clamp(30px, 4vw, 58px)/1 "DM Sans", sans-serif;
  letter-spacing: -0.04em;
}

#flavor-note {
  max-width: 430px;
  margin-top: 18px;
  color: var(--muted);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.06em;
}

.chapter-copy-final {
  display: grid;
  width: min(100%, 760px);
  max-width: 760px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "description"
    "action";
  align-items: end;
}

.chapter-copy-final h2 {
  grid-area: title;
  font-size: clamp(70px, 6.4vw, 94px);
}

.chapter-copy-final > p {
  grid-area: description;
}

.primary-action {
  grid-area: action;
  justify-self: start;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  border: 1px solid var(--white);
  padding: 0 30px;
  background: var(--white);
  color: var(--black);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 250ms ease, color 250ms ease;
}

.chapter-copy-final .primary-action {
  margin-top: 28px;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--red);
  color: var(--white);
}

.primary-action:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.wall-reveal {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.96) 4%, rgba(7, 7, 7, 0.7) 45%, rgba(7, 7, 7, 0.22)),
    linear-gradient(0deg, var(--black), transparent 35%, rgba(7, 7, 7, 0.72)),
    url("./assets/capsule-wall.jpg") center / cover no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1200ms ease, transform 1800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.experience:has(.chapter-roma.is-active) .wall-reveal {
  opacity: 0.72;
  transform: scale(1);
}

.chapter-rail {
  position: fixed;
  z-index: 8;
  top: 50%;
  right: clamp(18px, 2.5vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(-50%);
  font: 500 9px/1 "DM Sans", sans-serif;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.chapter-rail span {
  color: rgba(244, 242, 237, 0.24);
  transition: color 350ms ease;
}

.chapter-rail span.is-current {
  color: var(--white);
}

.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 45px clamp(22px, 8vw, 124px);
  background: var(--black);
}

.site-footer img {
  width: 112px;
  height: auto;
}

.site-footer p {
  color: var(--muted);
  font: 500 9px/1 "DM Sans", sans-serif;
  letter-spacing: 0.22em;
}

@media (max-width: 760px) {
  .site-header {
    padding: 16px 18px;
  }

  .brand {
    width: 72px;
    height: 34px;
  }

  .site-nav {
    gap: 18px;
    font-size: 9px;
  }

  .chapter {
    min-height: 116svh;
    align-items: end;
    padding: 18vh 22px 14vh;
  }

  .chapter-aroma {
    min-height: 124svh;
    align-items: center;
  }

  .chapter-crema {
    align-items: start;
    padding-top: 28vh;
  }

  .crema-image {
    background-position: 30% center;
  }

  .five-image {
    background-position: 72% center;
  }

  .chapter-five {
    min-height: 168svh;
    align-items: center;
    padding-top: 26vh;
  }

  .chapter-roma {
    min-height: 145svh;
    padding-bottom: 12vh;
  }

  h1 {
    font-size: clamp(76px, 25vw, 116px);
  }

  h2 {
    font-size: clamp(48px, 14vw, 74px);
    line-height: 0.9;
  }

  .chapter-copy-intro {
    width: 100%;
    text-align: left;
  }

  .chapter-copy-intro h1 {
    line-height: 1;
    font-size: clamp(40px, 10.8vw, 56px);
  }

  .hero-image {
    inset: 0;
    background-position: 64% center;
    opacity: 0;
  }

  .experience:has(.chapter-aroma.is-active) .hero-image {
    opacity: 0.62;
  }

  .origin {
    margin-bottom: 14px;
    font-size: 8px;
  }

  .statement {
    margin-top: 18px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 25px;
    align-items: flex-start;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    min-height: 48px;
  }

  .hero-actions .primary-action {
    width: auto;
    padding-inline: 24px;
  }

  .chapter-copy-right {
    width: 100%;
    justify-self: start;
    text-align: left;
  }

  .chapter-copy-right h2 {
    font-size: clamp(44px, 12.4vw, 62px);
  }

  .chapter-copy > p:not(.origin, .statement) {
    margin-top: 22px;
    font-size: 13px;
  }

  .chapter-copy-five h2,
  .chapter-copy-final h2 {
    font-size: clamp(50px, 15vw, 76px);
  }

  .chapter-copy-final {
    display: block;
  }

  .flavor-selector {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 45px;
  }

  .flavor {
    padding-block: 13px;
    font-size: 10px;
  }

  .flavor-detail {
    min-height: 112px;
  }

  #flavor-name {
    font-size: 34px;
  }

  #flavor-note {
    font-size: 12px;
  }

  .primary-action {
    width: 100%;
    justify-content: center;
    padding-inline: 14px;
    font-size: 12px;
  }

  .chapter-copy-final .primary-action {
    margin-top: 0;
  }

  .wall-reveal {
    background-position: 62% center;
  }

  .chapter-rail {
    top: auto;
    right: 18px;
    bottom: 18px;
    flex-direction: row;
    gap: 13px;
    transform: none;
    font-size: 7px;
    writing-mode: horizontal-tb;
  }

  .site-footer {
    min-height: 140px;
    padding: 35px 22px;
  }

  .site-footer img {
    width: 82px;
  }

  .site-footer p {
    max-width: 120px;
    line-height: 1.5;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .grain,
  .light-field {
    display: none;
  }

  .chapter-copy {
    opacity: 1;
    transform: none;
  }
}
