:root {
  --mist: #e8ebe1;
  --sage: #d9ded1;
  --ink: #1f3028;
  --brown: #6b543b;
  --paper: #f4efe7;
  --muted: rgba(31, 48, 40, 0.62);
  --line: rgba(31, 48, 40, 0.16);
  --line-light: rgba(244, 239, 231, 0.22);
  --serif: "Cormorant Garamond", "Didot", "Bodoni 72", "Times New Roman", serif;
  --cn-serif: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(232, 235, 225, 0.96), rgba(244, 239, 231, 0.98) 58%, #203127 84%),
    var(--mist);
  font-family: var(--cn-serif);
  font-weight: 300;
  letter-spacing: 0.08em;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: url("assets/paper-texture.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  mix-blend-mode: multiply;
  pointer-events: none;
}

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

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

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

.page-grain {
  display: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(22px, 5vw, 72px);
  color: rgba(31, 48, 40, 0.58);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(31, 48, 40, 0.18);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.09em;
}

.site-nav a {
  opacity: 0.74;
  transition: opacity 0.3s ease;
}

.site-nav a:hover {
  opacity: 1;
}

.section-panel {
  position: relative;
  min-height: 100vh;
  padding: clamp(86px, 10vw, 138px) clamp(22px, 6vw, 92px);
}

.eyebrow,
.section-number {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
}

.opening {
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 54% 55%, rgba(244, 239, 231, 0.95), rgba(232, 235, 225, 0.32) 38%, transparent 64%),
    linear-gradient(135deg, rgba(232, 235, 225, 0.98), rgba(244, 239, 231, 0.92));
}

.leaf-shadow {
  position: absolute;
  z-index: 0;
  width: min(60vw, 760px);
  opacity: 0.12;
  pointer-events: none;
}

.leaf-shadow-a {
  top: 2vh;
  left: -18vw;
  transform: rotate(-11deg);
}

.opening-title {
  position: absolute;
  top: 18vh;
  left: 50%;
  z-index: 1;
  width: min(92vw, 1320px);
  transform: translateX(-50%);
  text-align: center;
}

.opening-title h1 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(82px, 16vw, 218px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.015em;
  color: rgba(31, 48, 40, 0.92);
}

.hero-subtitle {
  margin-top: 26px;
  color: rgba(31, 48, 40, 0.56);
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: 0.34em;
}

.hero-image-wrap {
  position: relative;
  z-index: 2;
  width: min(56vw, 720px);
  min-width: 340px;
  margin-top: 18vh;
}

.hero-product {
  width: 100%;
  filter: drop-shadow(0 48px 62px rgba(31, 48, 40, 0.2));
}

.annotation {
  position: absolute;
  z-index: 3;
  color: rgba(31, 48, 40, 0.48);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.annotation::before {
  position: absolute;
  top: 50%;
  width: clamp(70px, 10vw, 160px);
  height: 1px;
  content: "";
  background: rgba(31, 48, 40, 0.2);
}

.annotation-oil {
  top: 53%;
  left: 13%;
}

.annotation-oil::before,
.annotation-fiber::before {
  right: calc(100% + 16px);
}

.annotation-crack {
  right: 12%;
  top: 46%;
}

.annotation-crack::before {
  left: calc(100% + 16px);
}

.annotation-fiber {
  right: 18%;
  bottom: 18%;
}

.time-section {
  display: grid;
  grid-template-columns: 0.95fr 0.22fr 0.74fr;
  grid-template-rows: auto 1fr;
  gap: clamp(18px, 4vw, 58px);
  align-items: center;
  background: linear-gradient(180deg, rgba(244, 239, 231, 0.98), rgba(232, 235, 225, 0.92));
  overflow: hidden;
}

.time-shadow {
  right: -18vw;
  bottom: -12vh;
  transform: rotate(148deg);
  opacity: 0.08;
}

.time-image {
  grid-row: 1 / span 2;
  overflow: hidden;
  align-self: stretch;
  min-height: 62vh;
}

.time-image img {
  width: 100%;
  height: 112%;
  object-fit: cover;
}

.time-copy {
  grid-column: 3;
  align-self: end;
  max-width: 570px;
}

.time-copy h2,
.scent-heading h2,
.texture-heading h2,
.atmosphere-copy h2,
.archive-head h2 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.cn-lead {
  max-width: 520px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 2;
  letter-spacing: 0.12em;
}

.time-lines {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start;
  border-top: 1px solid var(--line);
}

.time-lines div {
  padding: 24px 30px 0 0;
}

.time-lines span {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--brown);
}

.time-lines p {
  margin-top: 12px;
  color: rgba(31, 48, 40, 0.66);
  font-size: 14px;
}

.scent-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(360px, 0.82fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: center;
  overflow: hidden;
  background: var(--paper);
}

.scent-smoke {
  position: absolute;
  right: -12vw;
  top: 3vh;
  width: min(54vw, 620px);
  opacity: 0.1;
  pointer-events: none;
}

.scent-heading {
  align-self: start;
  padding-top: 8vh;
}

.scent-file {
  position: relative;
  display: grid;
  gap: clamp(38px, 7vh, 74px);
  padding-left: clamp(36px, 6vw, 74px);
}

.scent-axis {
  position: absolute;
  top: 2px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: var(--line);
}

.scent-file article {
  position: relative;
}

.scent-file article::before {
  position: absolute;
  top: 8px;
  left: calc(clamp(36px, 6vw, 74px) * -1);
  width: 18px;
  height: 1px;
  content: "";
  background: var(--line);
}

.scent-file span {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--brown);
}

.scent-file h3 {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 300;
  letter-spacing: 0.18em;
}

.scent-file p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.9;
  letter-spacing: 0.1em;
}

.texture-section {
  min-height: 112vh;
  background: linear-gradient(180deg, var(--paper), rgba(217, 222, 209, 0.7));
}

.texture-heading {
  max-width: 620px;
}

.texture-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.18fr 0.66fr;
  grid-template-rows: 0.34fr 0.42fr;
  gap: clamp(18px, 3vw, 42px);
  min-height: 72vh;
  margin-top: clamp(38px, 6vw, 80px);
}

.texture-collage figure {
  position: relative;
  overflow: hidden;
}

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

.texture-large {
  grid-row: 1 / span 2;
  min-height: 62vh;
}

.texture-small-a {
  grid-column: 3;
  min-height: 260px;
}

.texture-small-b {
  grid-column: 2 / span 2;
  grid-row: 2;
  justify-self: end;
  width: 62%;
  min-height: 240px;
  background: rgba(232, 235, 225, 0.58);
}

.texture-small-b img {
  object-fit: contain;
  padding: 8%;
}

.texture-collage figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 360px;
  padding: 18px 20px;
  color: rgba(244, 239, 231, 0.84);
  background: linear-gradient(90deg, rgba(31, 48, 40, 0.58), transparent);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.texture-small-b figcaption {
  color: rgba(31, 48, 40, 0.72);
  background: transparent;
}

.texture-collage figcaption span {
  margin-right: 12px;
  font-family: var(--serif);
  color: var(--brown);
}

.collage-line {
  position: absolute;
  z-index: 2;
  height: 1px;
  background: var(--line);
}

.line-a {
  top: 29%;
  left: 56%;
  width: 18%;
}

.line-b {
  right: 14%;
  bottom: 32%;
  width: 24%;
}

.atmosphere {
  position: relative;
  display: grid;
  min-height: 104vh;
  overflow: hidden;
  place-items: center;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(217, 222, 209, 0.82) 0%, rgba(31, 48, 40, 0.98) 20%, #17261f 100%);
}

.atmosphere-bg {
  position: absolute;
  inset: -8vh 0;
  background-size: cover;
  background-position: center;
  opacity: 0.64;
  will-change: transform;
}

.atmosphere-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(244, 239, 231, 0.08), transparent 32%),
    linear-gradient(90deg, rgba(14, 29, 23, 0.78), rgba(14, 29, 23, 0.24), rgba(14, 29, 23, 0.82));
}

.atmosphere-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
  text-align: center;
}

.atmosphere-copy .section-number {
  color: rgba(244, 239, 231, 0.58);
}

.atmosphere-copy p:last-child {
  margin-top: 28px;
  color: rgba(244, 239, 231, 0.76);
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 2;
}

.archive-section {
  min-height: 100vh;
  color: rgba(244, 239, 231, 0.86);
  background: #1f3028;
}

.archive-head {
  max-width: 760px;
  margin-bottom: clamp(54px, 8vw, 104px);
}

.archive-head .section-number,
.archive-grid dt span {
  color: rgba(198, 169, 128, 0.8);
}

.archive-head p {
  margin-top: 24px;
  color: rgba(244, 239, 231, 0.52);
  font-size: 14px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.archive-grid div {
  min-height: 220px;
  padding: 28px clamp(16px, 2.5vw, 34px);
  border-right: 1px solid var(--line-light);
}

.archive-grid div:last-child {
  border-right: 0;
}

.archive-grid dt {
  color: rgba(244, 239, 231, 0.58);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.archive-grid dt span {
  display: block;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 12px;
}

.archive-grid dd {
  margin-top: 46px;
  color: rgba(244, 239, 231, 0.82);
  font-size: 15px;
  line-height: 1.9;
}

.archive-foot {
  margin-top: clamp(42px, 6vw, 72px);
  color: rgba(244, 239, 231, 0.46);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .opening-title.reveal {
  transform: translate(-50%, 24px);
}

.js .opening-title.reveal.is-visible {
  transform: translate(-50%, 0);
}

.float-slow {
  animation: floatSlow 8s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0) rotate(-0.8deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.8deg);
  }
}

@media (max-width: 980px) {
  .site-nav {
    gap: 18px;
  }

  .section-panel {
    padding: 84px 22px;
  }

  .opening-title {
    top: 16vh;
  }

  .hero-image-wrap {
    width: min(82vw, 600px);
    min-width: 0;
    margin-top: 20vh;
  }

  .annotation {
    display: none;
  }

  .time-section,
  .scent-section,
  .texture-collage,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .time-image,
  .time-copy,
  .time-lines,
  .texture-large,
  .texture-small-a,
  .texture-small-b {
    grid-column: auto;
    grid-row: auto;
  }

  .time-image {
    min-height: 44vh;
  }

  .time-lines {
    grid-template-columns: repeat(3, 1fr);
  }

  .scent-heading {
    padding-top: 0;
  }

  .texture-collage {
    min-height: auto;
  }

  .texture-large,
  .texture-small-a,
  .texture-small-b {
    width: 100%;
    min-height: 280px;
  }

  .collage-line {
    display: none;
  }

  .archive-grid div {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .archive-grid div:last-child {
    border-bottom: 0;
  }

  .archive-grid dd {
    margin-top: 24px;
  }
}

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

  .site-nav a:nth-child(n+3) {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .opening-title h1 {
    font-size: clamp(36px, 10.2vw, 42px);
  }

  .opening-title {
    top: 15vh;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 12px;
  }

  .hero-image-wrap {
    width: 82vw;
    margin-top: 18vh;
  }

  .time-copy h2,
  .scent-heading h2,
  .texture-heading h2,
  .atmosphere-copy h2,
  .archive-head h2 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .time-lines {
    grid-template-columns: 1fr;
  }

  .time-lines div {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .scent-file {
    padding-left: 34px;
  }

  .scent-file article::before {
    left: -34px;
  }

  .texture-collage figcaption {
    position: static;
    max-width: none;
    color: rgba(31, 48, 40, 0.7);
    background: transparent;
    padding: 16px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
