*{margin:0;padding:0;box-sizing:border-box;}

body{
  font-family:'Cormorant Garamond',serif;
  background:#f1e3c6;
  color:#2d1e16;
  overflow-x:hidden;
}

h1,h2{font-family:'Cinzel',serif;}

/* NAVBAR */

.navbar{
  position:fixed;
  width:100%;
  top:0;
  display:flex;
  height: 100px;
  justify-content:space-between;
  align-items:center;
  padding:0 40px;
  background:rgba(241,227,198,0.95);
  backdrop-filter:blur(10px);
  z-index:2000;
}

.nav-left-desktop{
  display:flex;
  gap:30px;
}

.nav-left-desktop a{
  text-decoration:none;
  color:#2d1e16;
  font-weight:600;
}
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.navbar .logo img {
  height: clamp(60px, 6vw, 100px);
  width: auto;
  display: block;
}

.hamburger{
  width:28px;
  height:22px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  cursor:pointer;
}

.hamburger span{
  height:3px;
  background:#2d1e16;
}

/* SIDE MENU */

.side-menu{
  position:fixed;
  top:0;
  right:-100%;
  width:280px;
  height:100vh;
  background:#2d1e16;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:40px;
  transition:0.4s ease;
  z-index:1500;
}

.side-menu.active{
  right:0;
}

.side-menu a{
  color:white;
  text-decoration:none;
  font-size:22px;
}

.social{
  margin-top:40px;
  display:flex;
  gap:30px;
}

.social i{
  font-size:24px;
  color:white;
}

/* HERO */

.hero{
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  position:relative;
  overflow:hidden;
}

.hero-content{
  position:relative;
  z-index:5;
}

.reveal-text{
  font-size:60px;
  opacity:0;
  transform:translateY(40px);
  animation:reveal 1.2s forwards;
}

.reveal-sub{
  margin-top:15px;
  font-size:22px;
  opacity:0;
  transform:translateY(40px);
  animation:reveal 1.2s forwards 0.3s;
}

@keyframes reveal{
  to{opacity:1;transform:translateY(0);}
}

/* FALLING BEANS */

.beans-container{
  position:absolute;
  width:100%;
  height:100%;
  overflow:hidden;
  z-index:1;
}

.bean{
  position:absolute;
  width:15px;
  height:15px;
  background:#3b1f14;
  border-radius:50%;
  animation:fall linear infinite;
}

@keyframes fall{
  to{transform:translateY(110vh);}
}

.cut-section{
  height:200vh;
  position:relative;
}

.cut-sticky{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  background:#f1e3c6;
  overflow:hidden;
  z-index:10;
}

.cut-overlay{
  position:absolute;
  inset:0;
  background:black;
  z-index:1;
  transition:opacity 0.3s ease;
}

.cut-text{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:0.9;
  color:white;
  mix-blend-mode:screen;
  transform-origin:center;
  will-change:transform;
}

.cut-text .line1{
  font-size:clamp(80px,14vw,240px);
  font-weight:600;
}

.cut-text .line2{
  font-size:clamp(22px,3vw,40px);
  letter-spacing:4px;
  margin-top:10px;
}

/* STORY */

.scroll-section{height:200vh;}

.scroll-sticky{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  align-items:center;
  padding:0 10%;
}

.scroll-row{display:flex;gap:80px;width:100%;}

.scroll-section.reverse .scroll-row{
  flex-direction:row-reverse;
}

.scroll-image img{
  width:100%;
  max-width:500px;
  clip-path:inset(0 0 100% 0);
  transform:scale(1.2);
}

.scroll-title{
  position:relative;
  font-size:3vw;
}

.scroll-title .outline{
  color:transparent;
  -webkit-text-stroke:1px #2d1e16;
}

.scroll-title .fill{
  position:absolute;
  left:0;
  top:0;
  clip-path:inset(0 100% 0 0);
  color:#2d1e16;
}
.scroll-text{
  max-width:500px;
}

.scroll-paragraph{
  position:relative;
  margin-top:40px;
  font-size:18px;
  line-height:1.6;
  max-width:500px;
}

.scroll-paragraph .outline{
  color:transparent;
  -webkit-text-stroke:0.6px #2d1e16;
}

.scroll-paragraph .fill{
  position:absolute;
  left:0;
  top:0;
  color:#2d1e16;
  clip-path:inset(0 100% 0 0);
}

@media (max-width:900px){
  .scroll-paragraph{
    font-size:16px;
  }
}
/* RESPONSIVE */

@media (max-width:900px){

  .nav-left-desktop{display:none;}

  .scroll-row{
    flex-direction:column;
    text-align:center;
  }

  .scroll-section.reverse .scroll-row{
    flex-direction:column;
  }

  .scroll-title{
    font-size:26px;
  }

}

/* ===============================
   FINAL CINEMATIC POUR
================================= */

.final-pour-section {
  height: 200vh;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  
}

.final-pour-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.final-title {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 700;
  position: relative;
  margin-bottom: 60px;
}

.final-title .outline {
  color: transparent;
  -webkit-text-stroke: 1px #fff;
}

.final-title .fill {
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  clip-path: inset(0 100% 0 0);
}

.cup-wrapper {
  position: relative;
  width: 260px;
  height: 350px;
}

.coffee-stream {
  position: absolute;
  top: -160px;
  left: 50%;
  width: 14px;
  height: 160px;
  background: linear-gradient(#3b2416, #1a0f08);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  border-radius: 10px;
}

.cup {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 240px;
  border: 4px solid #fff;
  border-radius: 0 0 140px 140px;
  overflow: hidden;
}

/* Espresso liquid */
.coffee-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(
    to top,
    #1a0f08 0%,
    #2b170d 40%,
    #3b2416 100%
  );
  transition: height 0.1s linear;
}

/* Crema sits on top of coffee */
.crema-layer {
  position: absolute;
  width: 100%;
  height: 18px;
  background: linear-gradient(
    to top,
    #a8652c 0%,
    #d49b5a 60%,
    #f2c078 100%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Espresso reflection on surface */
.espresso-reflection {
  position: absolute;
  width: 60%;
  height: 12px;
  left: 20%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0)
  );
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
}

/* Glass reflection */
.cup::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 15%;
  width: 20%;
  height: 60%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.25),
    rgba(255,255,255,0.05)
  );
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
}

.steam {
  position: absolute;
  top: -40px;
  left: 40%;
  width: 8px;
  height: 40px;
  background: radial-gradient(white, transparent);
  border-radius: 50%;
  animation: steamRise 3s infinite ease-in-out;
  opacity: 0;
}

.steam2 {
  left: 55%;
  animation-delay: 1.2s;
}

@keyframes steamRise {
  0% { transform: translateY(0); opacity: 0; }
  50% { opacity: 0.4; }
  100% { transform: translateY(-40px); opacity: 0; }
}

/* Responsive */

@media (max-width: 768px) {
  .cup-wrapper {
    width: 180px;
    height: 260px;
  }

  .cup {
    height: 180px;
  }

  .coffee-stream {
    height: 120px;
    top: -120px;
  }
}

/* MACHINE SECTION BASE */
.machine-section{
  height:200vh;
  background:#f1e3c6;
}

.machine-sticky{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

/* MACHINE */
.machine{
  position:relative;
  width:220px;
  height:300px;
}

/* HOPPER */
.hopper{
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:120px;
  height:100px;
  border:4px solid #2d1e16;
  border-radius:10px 10px 0 0;
  overflow:hidden;
}

/* BEANS FLOW */
.beans-flow{
  position:absolute;
  top:-120px;
  left:50%;
  transform:translateX(-50%);
  width:12px;
  height:120px;
  background:#3b1f14;
  border-radius:8px;
  transform-origin:top;
  scale:1 0;
}

/* =========================
   LEVER MACHINE SECTION
========================= */

.lever-machine-section{
  height:220vh;
  background:#f1e3c6;
  
}
 
.machine-sticky{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

/* MACHINE */
.lever-machine{
  position:relative;
  width:260px;
  height:360px;
}

/* MACHINE BODY */
.machine-body{
  position:absolute;
  bottom:0;
  width:260px;
  height:230px;
  border:6px solid #2d1e16;
  border-radius:20px;
}

/* LEVER ARM */
.lever{
  position:absolute;
  top:0;
  left:50%;
  width:6px;
  height:160px;
  background:#2d1e16;
  transform-origin:top center;
  transform:translateX(-50%) rotate(-45deg);
}

.lever-handle{
  position:absolute;
  bottom:-12px;
  left:50%;
  transform:translateX(-50%);
  width:30px;
  height:30px;
  background:#3b1f14;
  border-radius:50%;
}

/* PRESSURE GAUGE */
.gauge{
  position:absolute;
  bottom:160px;
  left:50%;
  transform:translateX(-50%);
  width:70px;
  height:70px;
  border:4px solid #2d1e16;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}

.needle{
  width:3px;
  height:28px;
  background:#2d1e16;
  transform-origin:bottom center;
  transform:rotate(-90deg);
}

/* SPOUT */
.spout{
  position:absolute;
  top:140px;
  left:50%;
  transform:translateX(-50%) scaleY(0);
  transform-origin:top;
  width:8px;
  height:110px;
  background:linear-gradient(to bottom,#4a2a1e,#2d1e16);
  border-radius:8px;
}

/* CUP */
.cup-small{
  position:absolute;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  width:110px;
  height:75px;
  border:4px solid #2d1e16;
  border-radius:0 0 60px 60px;
  overflow:hidden;
}

.espresso-fill{
  position:absolute;
  bottom:0;
  width:100%;
  height:0%;
  background:linear-gradient(to top,#3b1f14,#5a3424);
  overflow:hidden;
}

/* CREMA */
.crema{
  position:absolute;
  top:0;
  width:100%;
  height:14px;
  background:linear-gradient(to bottom,#c98a42,#a8612d);
  opacity:0;
}

/* TITLE */
.machine-title{
  position:relative;
  margin-top:60px;
  font-size:32px;
}

.machine-title .outline{
  color:transparent;
  -webkit-text-stroke:1px #2d1e16;
}

.machine-title .fill{
  position:absolute;
  left:0;
  top:0;
  color:#2d1e16;
  clip-path:inset(0 100% 0 0);
}

/* MOBILE */
@media (max-width:768px){

  .lever-machine{
    width:200px;
    height:300px;
  }

  .machine-body{
    width:200px;
    height:180px;
  }

  .cup-small{
    width:90px;
    height:60px;
  }

  .machine-title{
    font-size:22px;
    text-align:center;
  }
}

/* ===============================
   CTA SECTION
================================= */

.cta-section {
  height: 120vh;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.cta-inner {
  max-width: 800px;
}

.cta-title {
  font-size: clamp(28px, 4vw, 60px);
  font-weight: 700;
  position: relative;
  margin-bottom: 30px;
}

.cta-title .outline {
  color: transparent;
  -webkit-text-stroke: 1px #fff;
}

.cta-title .fill {
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  clip-path: inset(0 100% 0 0);
}

.cta-sub {
  font-size: 18px;
  opacity: 0;
  transform: translateY(30px);
  margin-bottom: 40px;
  transition: all 0.6s ease;
}

.cta-link {
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #fff;
  padding-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.cta-link .arrow {
  display: inline-block;
  animation: arrowBounce 2s infinite;
}

@keyframes arrowBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Active reveal */
.cta-section.active .cta-sub,
.cta-section.active .cta-link {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  .cta-section {
    height: 100vh;
  }
}

.final-pour-section {
  background: linear-gradient(
    to bottom,
    #111 0%,
    #0e0e0e 40%,
    #070707 100%
  );
}

/* ======================================================
   ABOUT PAGE
====================================================== */

/* BANNER */

.about-banner{
  height:100vh;
  background:url('../images/about.png') center/cover no-repeat;
  position:relative;
  margin-top:100px;
}


.banner-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.5);
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ===================================
   ABOUT LETTER REVEAL
=================================== */

.about-hero-title {
  font-size: clamp(40px, 8vw, 90px);
  color: white;
  letter-spacing: 6px;
  display: inline-block;
  overflow: hidden;
}

.about-hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}

.reveal-title{
  position:relative;
  font-size:clamp(40px,8vw,90px);
}

.reveal-title .outline{
  color:transparent;
  -webkit-text-stroke:1px #fff;
}

.reveal-title .fill{
  position:absolute;
  top:0;
  left:0;
  color:#fff;
  clip-path:inset(0 100% 0 0);
}

/* STORY */

.about-story{
  padding:120px 10%;
  display:flex;
  gap:80px;
  align-items:center;
  flex-wrap:wrap;
}

.about-story img{
  max-width:500px;
  width:100%;
  border-radius:16px;
}

.about-story-text{
  max-width:500px;
}

.specialties-horizontal {
  position: relative;
  background: #111;
  color: white;
  
}

.specialties-header {
  position: sticky;
  top: 0;
  padding: 120px 0 80px;
  background: #111;
  text-align: center;
  
}

/* TITLE */
.reveal-title {
  position: relative;
  font-size: clamp(28px, 4vw, 60px);
}

.reveal-title .base {
  color: #333;
}

.reveal-title .fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  overflow: hidden;
  white-space: nowrap;
  color: white;
}

/* HORIZONTAL WRAPPER */


.horizontal-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.horizontal-track {
  display: flex;
  gap: 120px;
  padding: 220px 30vw 120px; /* top | sides | bottom */
}

/* REAL CARDS */
.drink-card {
  min-width: 400px;
  height: 520px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  transition: transform 0.4s ease;
}

.drink-card:hover {
  transform: translateY(-20px);
}

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 0.3s ease-out;
}

.card-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 2;
}

/* Background images */
[data-drink="cappuccino"] .card-bg {
  background-image: url("../images/capuccino.png");
}
[data-drink="espresso"] .card-bg {
  background-image: url("../images/espresso.png");
}
[data-drink="macchiato"] .card-bg {
  background-image: url("../images/machiato.png");
}
[data-drink="latte"] .card-bg {
  background-image: url("../images/lattemachiato.png");
}
/* MODAL */
.drink-modal {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.8);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.4s ease;
}

.drink-modal.active {
  opacity:1;
  pointer-events:auto;
}

.modal-content {
  background:#fff;
  width:100%;
  max-width:500px;
  border-radius:30px 30px 0 0;
  padding:40px;
  transform:translateY(100%);
  transition:transform 0.5s cubic-bezier(.22,1,.36,1);
}

.drink-modal.active .modal-content {
  transform:translateY(0);
}

/* CUP */
.cup {
  width:120px;
  height:160px;
  margin:0 auto 30px;
  border:4px solid #333;
  border-radius:0 0 60px 60px;
  overflow:hidden;
  position:relative;
}

.coffee {
  position:absolute;
  bottom:0;
  width:100%;
  height:0%;
  background:#4b2e2e;
  transition:height 1s ease;
}

.milk {
  position:absolute;
  bottom:0;
  width:100%;
  height:0%;
  background:#f5f5f5;
  transition:height 1s ease;
}

.crema {
  position:absolute;
  top:0;
  height:20px;
  width:100%;
  background:#c69c6d;
  opacity:0;
  transition:opacity 0.6s ease;
}

/* GAUGE */
.gauge {
  width:80px;
  height:80px;
  border:4px solid #333;
  border-radius:50%;
  margin:20px auto;
  position:relative;
}

.needle {
  position:absolute;
  width:2px;
  height:30px;
  background:red;
  left:50%;
  bottom:50%;
  transform-origin:bottom;
  transform:rotate(-90deg);
  transition:transform 1s ease;
}

/* FOLLOW SECTION */
.follow-section {
  position: relative;
  padding: 160px 0;
  background: #0f0f0f;
  color: white;
  overflow: hidden;
  text-align: center;
}

.follow-wrapper {
  position: relative;
  max-width: 1200px;
  margin: auto;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 120px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 120px;
  color: white;
  text-decoration: none;
  transition: transform 0.4s ease;
}

.social span {
  font-size: 18px;
  margin-top: 20px;
}

.social:hover {
  transform: scale(1.1);
}

/* Floating images */
.float-img {
  position: absolute;
  width: 200px;
  opacity: 0.15;
  border-radius: 20px;
  will-change: transform;
  transform: translate3d(0,0,0);
  pointer-events: none;
  z-index: 1;
}

.img1 { top: 10%; left: 10%; }
.img2 { bottom: 15%; right: 15%; }
.img3 { top: 40%; right: 5%; }

/* MOBILE */
@media (max-width: 768px) {
  .social {
    font-size: 80px;
  }

  .float-img {
    width: 120px;
  }

  .social-icons {
    gap: 60px;
  }
}