:root {
  --bg-dark: #0A0A0A;
  --sidebar: #1C1A15;
  --bg-light: #FCFBF8;
  --ink: #1A1A1A;
  --accent: #3E5C3A;
  --gray: #8A8A8A;
  --sidebar-w: 300px;
  --fs-0: 15px;
  --fs-1: 18px;
  --fs-2: 24px;
  --fs-3: 34px;
  --font-display: "Marcellus", serif;
  --font-body: "Cormorant Garamond", serif;
  --font-jp: "Noto Serif JP", serif;
  --lh-body: 1.6;
  --section-gap: clamp(120px, 15vh, 200px);
  --page-gutter: clamp(24px, 4vw, 72px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* No CSS smooth scrolling: Lenis drives the smoothing and the two fight
   over anchor jumps (the native animation gets cancelled mid-flight). */
html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg-light);
  color: var(--ink);
  font: 300 var(--fs-0)/var(--lh-body) var(--font-body);
  text-rendering: optimizeLegibility;
}

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

p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  max-width: 13em;
  font-size: clamp(var(--fs-2), 5vw, var(--fs-3));
}

h3 {
  font-size: var(--fs-1);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.label {
  color: var(--gray);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Side menu ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.38), rgba(10, 10, 10, 0.22));
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  /* Hide instantly: a fade-out would linger over the hero film while
     upward scrolling uncovers it. The fade-in lives on the shown state. */
  transition: none;
}

@media (min-width: 901px) {
  body.past-hero .sidebar {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.6s ease;
  }

  /* Higher specificity than the later base .brand-logo--light rule,
     which would otherwise win the cascade and hide the light logo. */
  .sidebar__brand .brand-logo--light {
    display: block;
  }

  .sidebar__brand .brand-logo--dark {
    display: none;
  }
}

.sidebar__brand {
  display: block;
  width: min(100%, 200px);
}

.brand-logo {
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.brand-logo--light {
  display: none;
}

.sidebar__nav {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.3;
}

.nav-block {
  position: relative;
}

.nav-block__title {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-light);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease;
}

.nav-block__title:hover {
  opacity: 0.65;
}

.nav-block__links {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-block__links a {
  font-size: 12px;
  color: var(--ink);
  transition: opacity 0.25s ease;
}

.nav-block__links a:hover {
  opacity: 0.6;
}

.sidebar__address {
  position: absolute;
  left: 36px;
  bottom: 40px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: rgba(43, 43, 43, 0.5);
}

/* ---------- Mobile top bar ---------- */
.topbar {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}

.hero__video,
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__video {
  object-fit: cover;
}

.hero__fallback {
  display: none;
}

.hero__fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.loaded .hero__video,
body.loaded .hero__fallback {
  opacity: 1;
}

.hero__wordmark {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(42vw, 480px);
  opacity: 0;
  transition: opacity 0.9s ease;
}

/* Logo fades in shortly after the photo. */
body.loaded .hero__wordmark {
  opacity: 1;
  transition: opacity 0.9s ease 0.5s;
}

.hero__wordmark img {
  width: 100%;
  filter:
    drop-shadow(0 2px 20px rgba(0, 0, 0, 0.45))
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
  user-select: none;
  -webkit-user-drag: none;
}

.hero__scroll,
.hero__language {
  position: absolute;
  z-index: 1;
  color: var(--bg-light);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.hero__scroll {
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  text-transform: lowercase;
}

.hero__language {
  top: 32px;
  right: 40px;
  font-family: var(--font-jp);
}

.hero__caption {
  position: absolute;
  left: var(--page-gutter);
  bottom: 40px;
  z-index: 5;
  max-width: 26em;
  padding-left: var(--sidebar-w);
  color: rgba(43, 43, 43, 0.85);
  font-size: clamp(16px, 1.6vw, 20px);
  font-family: var(--font-display);
}

/* ---------- Content ---------- */
.canvas {
  position: relative;
  z-index: 10;
  margin-left: var(--sidebar-w);
  margin-top: 100vh;
  background: var(--bg-light);
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }

  .hero__fallback {
    display: block;
    transition: none;
  }
}

.canvas__body {
  padding: 0 var(--page-gutter);
}

.canvas__body > section {
  padding-top: var(--section-gap);
}

.canvas__body > section:last-of-type {
  padding-bottom: var(--section-gap);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto var(--section-gap);
  text-align: center;
}

.section-heading .label {
  display: block;
  margin-bottom: 16px;
}

.section-heading h2 {
  max-width: none;
  margin: 0 auto;
}

/* ---------- Since 1887 ---------- */
.since-1887__header h2,
.daily-cup__header h2 {
  max-width: 12em;
  font-family: var(--font-body);
  letter-spacing: 0.2em;
}

.mei {
  justify-self: center;
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0.45em;
  white-space: nowrap;
}

.since-1887__poem {
  max-width: 24rem;
  margin: clamp(72px, 10vw, 132px) auto;
}

.since-1887__poem p {
  font-family: var(--font-body);
  font-size: clamp(var(--fs-1), 2.2vw, var(--fs-2));
  line-height: 3;
}

.since-1887__poem p + p {
  margin-top: 1rem;
}

/* ---------- Daily cup ---------- */
.daily-cup__intro {
  max-width: 40rem;
  margin: clamp(48px, 7vw, 88px) auto 0;
  font-family: var(--font-body);
  font-size: clamp(var(--fs-1), 2.2vw, var(--fs-2));
  line-height: var(--lh-body);
  text-align: center;
}

.daily-cup__table {
  width: 100%;
  max-width: 760px;
  margin: clamp(48px, 7vw, 88px) auto 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.daily-cup__table tr > *:first-child {
  width: 24%;
}

.daily-cup__table th,
.daily-cup__table td {
  padding: clamp(18px, 3vw, 28px) clamp(12px, 2.4vw, 28px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
  text-align: left;
  vertical-align: top;
}

.daily-cup__table thead th {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-1);
  letter-spacing: 0.1em;
}

.daily-cup__table tbody th {
  color: var(--gray);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daily-cup__table td {
  font-family: var(--font-body);
  font-size: clamp(var(--fs-0), 2vw, var(--fs-1));
  line-height: var(--lh-body);
}

.daily-cup__cta {
  margin-top: clamp(48px, 7vw, 88px);
  text-align: center;
}

.daily-cup__closing {
  font-family: var(--font-body);
  font-size: clamp(var(--fs-1), 2.2vw, var(--fs-2));
  line-height: var(--lh-body);
}

.since-1887__figures {
  align-items: start;
}

.since-1887 figcaption {
  margin-top: 12px;
  color: var(--gray);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.accent-divider {
  width: 100%;
  height: 1px;
  margin: clamp(72px, 10vw, 132px) auto 0;
  border: 0;
  background: var(--accent);
}

/* ---------- Editorial split ---------- */
.editorial--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.editorial--reverse .editorial__copy {
  order: 2;
}

.editorial__copy .label {
  display: block;
  margin-bottom: 20px;
}

.editorial__copy h2 {
  margin-bottom: 24px;
}

.editorial__copy p + p,
.editorial__copy blockquote {
  margin-top: 20px;
}

.editorial__copy blockquote p {
  font-family: var(--font-display);
  font-size: var(--fs-1);
  line-height: 1.4;
}

.editorial__copy cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.editorial__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- Sets ---------- */
.sets__intro {
  margin-bottom: var(--section-gap);
}

.sets__list {
  display: grid;
  gap: var(--section-gap);
}

.set-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  min-height: calc(100vh - var(--section-gap));
  min-height: calc(100svh - var(--section-gap));
  max-width: 1200px;
  margin: 0 auto;
}

.set-card__image img {
  width: 100%;
  max-height: min(72vh, 760px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.set-card__copy h3 {
  font-size: var(--fs-1);
  line-height: var(--lh-body);
}

.set-card__authority,
.set-card__price {
  margin-top: 12px;
}

.set-card__authority {
  letter-spacing: 0.02em;
}

.set-card__price {
  color: #1A1A1A;
  font-size: var(--fs-0);
}

.set-card__request,
.daily-cup__request {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: border-color 0.25s ease;
}

.set-card__request:hover,
.daily-cup__request:hover {
  border-bottom-color: var(--accent);
}

.sets__tax-note {
  margin: var(--section-gap) auto 0;
  text-align: center;
  color: var(--gray);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ---------- The Way ---------- */
.the-way__header {
  margin-bottom: clamp(48px, 7vw, 88px);
}

.the-way__divider {
  width: 100%;
  height: 1px;
  margin: 0 auto clamp(72px, 10vw, 132px);
  border: 0;
  background: var(--accent);
}

.the-way__lead {
  max-width: 24rem;
  margin: 0 auto clamp(48px, 6vw, 96px);
  text-align: center;
  font-size: var(--fs-1);
}

.the-way__body {
  align-items: start;
}

.the-way__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.the-way__steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.16);
}

.the-way__steps li:first-child {
  padding-top: 0;
}

.the-way__number {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-1);
}

.the-way__steps p {
  font-size: clamp(var(--fs-1), 2.2vw, var(--fs-2));
  line-height: 1.4;
}

/* ---------- Enquire form ---------- */
.enquire__form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.enquire__form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.7);
}

.enquire__form input,
.enquire__form select,
.enquire__form textarea {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(43, 43, 43, 0.3);
  background: transparent;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.enquire__form select option {
  color: var(--ink);
}

.enquire__form input:focus,
.enquire__form select:focus,
.enquire__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.enquire__qualification,
.enquire__submit {
  grid-column: 1 / -1;
}

.enquire__submit {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.enquire__submit p {
  font-size: 12px;
  color: rgba(43, 43, 43, 0.5);
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.25em;
  line-height: 1.4;
  text-transform: uppercase;
  transition: background 0.3s ease-out, color 0.3s ease-out;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg-light);
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 60px 0 0;
  margin-top: var(--section-gap);
  border-top: 1px solid rgba(43, 43, 43, 0.12);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.site-footer__logo {
  width: 96px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .canvas {
    margin-left: 0;
    padding-top: 64px; /* clear the fixed top bar */
  }

  .hero__wordmark {
    width: min(84vw, 520px);
    max-width: calc(100vw - 32px);
    margin-inline: auto;
  }

  /* Full-screen centred menu overlay. Hidden by default. */
  .sidebar {
    width: 100%;
    height: 100vh;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 40;
  }

  .sidebar__brand {
    display: none;
  }

  .sidebar__nav {
    margin: 0;
    align-items: center;
    text-align: center;
    gap: 26px;
    font-size: 15px;
  }

  .topbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 45;
    justify-content: space-between;
    align-items: center;
    padding: 16px var(--page-gutter);
    background: var(--bg-light);
    opacity: 0;
    pointer-events: none;
    transition: none;
  }

  body.past-hero .topbar {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.4s ease;
  }

  .topbar__brand {
    display: block;
    width: 92px;
  }

  .topbar__brand img {
    width: 100%;
    user-select: none;
    -webkit-user-drag: none;
  }

  .topbar__toggle {
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 6px 4px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
  }

  /* Open the full-screen menu overlay. */
  body.nav-open .sidebar {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .sidebar .nav-block__title {
    color: var(--ink);
    text-shadow: none;
  }

  /* Toggle label swaps Menu <-> Close with the overlay state. */
  .topbar__toggle-close {
    display: none;
  }

  body.nav-open .topbar__toggle-open {
    display: none;
  }

  body.nav-open .topbar__toggle-close {
    display: inline;
  }

  .editorial--split,
  .set-card {
    grid-template-columns: 1fr;
  }

  .editorial--reverse .editorial__copy {
    order: 0;
  }

  .set-card__image img {
    height: min(56svh, 520px);
    aspect-ratio: auto;
  }

  .enquire__form {
    grid-template-columns: 1fr;
  }

  .daily-cup__table th,
  .daily-cup__table td {
    padding: 16px 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    will-change: opacity, transform;
  }
}
