@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Great+Vibes&display=swap");

:root {
  --espresso: #2d1408;
  --roast: #512a16;
  --cacao: #6f472f;
  --latte: #c8a88a;
  --cream: #f2e7dc;
  --paper: #f7f1e8;
  --sand: #eadbcc;
  --ink: #392315;
  --ink-soft: #6c5545;
  --line: rgba(85, 54, 35, 0.2);
  --shadow-soft: 0 14px 34px rgba(44, 24, 12, 0.18);
  --shadow-deep: 0 24px 52px rgba(30, 14, 7, 0.35);
  --radius-lg: 1.8rem;
  --radius-md: 1.15rem;
  --container: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Cormorant Garamond", serif;
  color: var(--ink);
  line-height: 1.55;
  background: linear-gradient(180deg, #f3e8dc 0%, #ebdbc8 42%, #e4d0bb 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90rem 40rem at 0% 0%, rgba(110, 70, 45, 0.24), transparent 66%),
    radial-gradient(90rem 55rem at 100% 8%, rgba(93, 57, 35, 0.16), transparent 68%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 30%);
  pointer-events: none;
}

main {
  position: relative;
  padding: 3.2rem 1rem 4.2rem;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(248, 239, 230, 0.72), rgba(236, 220, 203, 0.72)),
    url("media/web/beans-1600.jpg") center / cover no-repeat;
  opacity: 0.11;
  mix-blend-mode: multiply;
  pointer-events: none;
}

main > * {
  position: relative;
  z-index: 1;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(61, 38, 24, 0.2) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  overflow: hidden;
  isolation: isolate;
  background: #170b06;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 2400ms ease;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(92vmin, 54rem);
  aspect-ratio: 1 / 1;
  max-width: 100%;
  max-height: 92vmin;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 0.9vmin, 0.7rem);
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 204, 175, 0.24);
  background: linear-gradient(145deg, rgba(52, 29, 17, 0.78), rgba(19, 11, 7, 0.84));
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(4px);
  padding: clamp(0.9rem, 2.2vmin, 1.8rem) clamp(0.8rem, 2vmin, 1.25rem);
  overflow: hidden;
}

.video-intro .hero__content {
  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
  transition: opacity 1600ms ease, transform 1600ms ease;
}

.video-intro .hero.hero--revealed .hero__shade {
  opacity: 1;
}

.video-intro .hero.hero--revealed .hero__content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero__kicker {
  margin: 0;
  font-size: clamp(0.82rem, 1.85vmin, 1.2rem);
  letter-spacing: clamp(0.22em, 0.62vmin, 0.5em);
  text-transform: uppercase;
  color: rgba(244, 227, 210, 0.95);
}

.hero__logo {
  display: block;
  width: clamp(16rem, 62%, 36rem);
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 1.2rem;
  margin: clamp(0.3rem, 1.1vmin, 0.9rem) auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero__title {
  margin: 0;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(1.75rem, 5.1vmin, 4rem);
  font-weight: 600;
  color: #f7efe5;
}

.hero__title span {
  display: block;
  font-family: "Great Vibes", cursive;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: clamp(2.5rem, 7.2vmin, 5.8rem);
  margin-top: -0.37em;
  color: #fff7ef;
}

.hero__subtitle {
  margin: clamp(0.2rem, 0.7vmin, 0.45rem) 0 0;
  font-size: clamp(1.25rem, 3.1vmin, 2rem);
  color: #f0dfcf;
}

.hero__lede {
  margin: clamp(0.3rem, 1vmin, 0.55rem) auto 0;
  max-width: 28ch;
  font-size: clamp(1rem, 2.25vmin, 1.5rem);
  line-height: 1.35;
  color: rgba(250, 241, 231, 0.86);
}

.hero__cta {
  display: inline-block;
  margin-top: clamp(0.45rem, 1.2vmin, 0.95rem);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(0.75rem, 1.6vmin, 1rem);
  padding: clamp(0.58rem, 1.5vmin, 0.9rem) clamp(1rem, 2.6vmin, 1.6rem);
  border-radius: 999px;
  border: 1px solid rgba(239, 215, 191, 0.45);
  background: linear-gradient(180deg, rgba(230, 198, 169, 0.18), rgba(230, 198, 169, 0.05));
  color: #f7ebde;
  transition: transform 260ms ease, background-color 260ms ease, border-color 260ms ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(245, 226, 206, 0.75);
  background: linear-gradient(180deg, rgba(234, 204, 175, 0.27), rgba(234, 204, 175, 0.12));
}

.section {
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: 2.8rem;
}

.story__card {
  position: relative;
  overflow: hidden;
  padding: 2.55rem 1.15rem 2.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(106, 72, 47, 0.24);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.44), transparent 45%),
    var(--paper);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.story__script {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.2rem, 14vw, 5.3rem);
  line-height: 0.9;
  color: var(--roast);
}

.story__intro {
  margin: 0.45rem 0 0;
  font-size: clamp(1.3rem, 5.3vw, 1.95rem);
  color: rgba(95, 69, 52, 0.88);
}

.story__name {
  margin: 0.9rem 0 1.2rem;
  font-size: clamp(1.85rem, 7vw, 2.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cacao);
}

.story__body p {
  max-width: 31ch;
  margin: 0 auto 0.7rem;
  font-size: clamp(1.2rem, 4.6vw, 1.6rem);
  color: var(--ink-soft);
}

.story__rooted {
  margin: 1.4rem 0 0;
  font-size: clamp(1.8rem, 6.8vw, 2.5rem);
  font-weight: 700;
  color: var(--roast);
}

.branch {
  position: absolute;
  width: 8.8rem;
  height: 8.8rem;
  color: rgba(113, 74, 47, 0.3);
}

.branch--tl {
  top: -1.8rem;
  left: -1.8rem;
}

.branch--br {
  bottom: -1.8rem;
  right: -1.8rem;
  transform: rotate(180deg);
}

.branch path,
.branch ellipse,
.branch circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.craft__grid {
  display: grid;
  gap: 1rem;
}

.craft__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: #ccb39c;
}

.craft__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.craft__text {
  border-radius: var(--radius-md);
  border: 1px solid rgba(110, 76, 50, 0.22);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.35), rgba(246, 236, 224, 0.85));
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.2rem;
}

.section__kicker {
  margin: 0;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(89, 59, 40, 0.72);
}

.craft__text h2 {
  margin: 0.72rem 0 0;
  font-size: clamp(2rem, 7vw, 3.35rem);
  line-height: 0.97;
  color: var(--roast);
}

.craft__text p {
  margin: 1rem 0 0;
  font-size: clamp(1.2rem, 4.6vw, 1.58rem);
  max-width: 36ch;
  color: var(--ink-soft);
}

.craft__points {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.craft__points li {
  width: fit-content;
  max-width: 100%;
  padding: 0.52rem 0.85rem;
  border-radius: 999px;
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  letter-spacing: 0.01em;
  color: #4c3120;
  background: rgba(108, 68, 42, 0.11);
  border: 1px solid rgba(110, 72, 46, 0.24);
}

.gallery__header {
  text-align: center;
  margin-bottom: 1rem;
}

.gallery__header h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  line-height: 0.93;
  color: var(--roast);
}

.gallery__grid {
  display: grid;
  gap: 0.85rem;
}

.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: var(--sand);
}

.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 800ms ease, filter 500ms ease;
}

.gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f9f0e5;
  background: linear-gradient(180deg, transparent, rgba(18, 10, 5, 0.78));
}

.gallery__item:hover img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.footer {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem 3.5rem;
  color: #4d3322;
}

.footer img {
  width: 4.5rem;
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 0.55rem;
  border: 1px solid rgba(95, 62, 40, 0.26);
}

.footer p {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(74, 48, 32, 0.8);
}

.has-motion .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.has-motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 900ms ease, transform 900ms ease;
}

.has-motion .reveal[data-delay="1"].is-visible {
  transition-delay: 100ms;
}

.has-motion .reveal[data-delay="2"].is-visible {
  transition-delay: 220ms;
}

.has-motion .reveal[data-delay="3"].is-visible {
  transition-delay: 320ms;
}

@media (min-width: 760px) {
  .hero {
    padding: 2rem;
  }

  .section {
    margin-bottom: 4rem;
  }

  .story__card {
    padding: 3.6rem 3rem 3.2rem;
  }

  .branch {
    width: 11rem;
    height: 11rem;
  }

  .craft__grid {
    gap: 1.2rem;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .gallery__item:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 1040px) {
  .section {
    margin-bottom: 5rem;
  }

  .story__card {
    padding: 4rem 5.6rem 3.6rem;
  }

  .craft__grid {
    grid-template-columns: 1.03fr 0.97fr;
    gap: 1.35rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery__item:first-child {
    grid-column: auto;
  }
}

@media (max-height: 740px) {
  .hero {
    padding: 0.7rem;
  }

  .hero__content {
    width: min(96vmin, 96vw);
    max-height: 96vmin;
    overflow: auto;
  }
}

@media (max-height: 620px) {
  .hero__title {
    font-size: clamp(1.45rem, 4.2vmin, 3rem);
  }

  .hero__title span {
    font-size: clamp(2rem, 6vmin, 4.5rem);
  }

  .hero__subtitle {
    font-size: clamp(1.05rem, 2.5vmin, 1.45rem);
  }

  .hero__lede {
    font-size: clamp(0.9rem, 1.9vmin, 1.2rem);
  }
}

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

  .gallery__item img {
    transition: none;
  }

  .has-motion .reveal,
  .has-motion .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
