@import "tokens.css";

:root{
  --insta-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='2.5' y='2.5' width='19' height='19' rx='5.5'/%3E%3Ccircle cx='12' cy='12' r='4.6'/%3E%3Ccircle cx='17.6' cy='6.4' r='1.3' fill='%23000' stroke='none'/%3E%3C/svg%3E");



  --step--1:clamp(.8rem,.76rem + .2vw,.9rem);
  --step-0:clamp(.95rem,.9rem + .25vw,1.06rem);
  --step-1:clamp(1.15rem,1rem + .6vw,1.45rem);
  --step-2:clamp(1.5rem,1.2rem + 1.3vw,2.2rem);
  --step-3:clamp(2.2rem,1.4rem + 3.4vw,4rem);
  --step-4:clamp(3rem,1rem + 9vw,8.5rem);

  --gap:clamp(1rem,.6rem + 1.6vw,2rem);
  --pad:clamp(1.25rem,.6rem + 3vw,4rem);
  --section:clamp(4.5rem,2.5rem + 7vw,9rem);

  --ease:cubic-bezier(.22,1,.36,1);
  --header-h:78px;
}


*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--surface-dark)}
body{
  margin:0;background:var(--surface-light);color:var(--ink);
  font-family:var(--font-body);font-size:var(--step-0);line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
body.is-locked{overflow:hidden}
h1,h2,h3,p,figure,blockquote{margin:0}
ul{margin:0;padding:0;list-style:none}
img,video{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
::selection{background:var(--accent);color:var(--surface-light)}

h1,h2,.brand,.marquee-item b,.product-name,.view-all,.client,.footer-logo,.footer-wordmark,.preloader-word{
  font-family:var(--font-display);font-weight:900;line-height:.92;
  letter-spacing:-.02em;text-transform:uppercase;
}

.media{width:100%;height:100%;object-fit:cover}
video::-webkit-media-controls,video::-webkit-media-controls-panel,
video::-webkit-media-controls-start-playback-button,video::-webkit-media-controls-play-button{display:none!important;-webkit-appearance:none}
video::-internal-media-controls-overlay-cast-button{display:none}

.skip-link{position:fixed;top:-100px;left:1rem;z-index:200;background:var(--accent);color:var(--on-accent);padding:.7rem 1.2rem;border-radius:var(--pill)}
.skip-link:focus{top:1rem}

/* ---------- preloader ---------- */
.preloader{
  position:fixed;inset:0;z-index:150;background:var(--surface-dark);color:var(--surface-light);
  display:grid;place-items:center;
}
.preloader-word{font-size:var(--step-4);opacity:.12}
.preloader-count{
  position:absolute;right:var(--pad);bottom:calc(var(--pad) - .3rem);
  font-family:var(--font-display);font-weight:700;font-size:var(--step-2);font-variant-numeric:tabular-nums;
}
.preloader-bar{position:absolute;left:0;bottom:0;height:4px;width:100%;background:var(--accent);transform:scaleX(0);transform-origin:0 50%}
html.is-loading{overflow:hidden}
html:not(.is-loading) .preloader{display:none}

/* ---------- header ---------- */
.site-header{
  position:fixed;inset:0 0 auto;z-index:90;height:var(--header-h);
  display:grid;grid-template-columns:auto 1fr auto auto auto;align-items:center;gap:clamp(.6rem,2vw,2rem);
  padding-inline:var(--pad);
  transition:background-color .4s var(--ease),box-shadow .4s var(--ease);
}
.site-header.is-stuck{background:var(--surface-dark);box-shadow:0 1px 0 rgba(0,0,0,.25)}
.brand{font-size:1.6rem;color:var(--accent)}
.nav{display:flex;justify-content:flex-end;gap:clamp(1rem,2.2vw,2.4rem)}
.nav-link{
  font-size:var(--step--1);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--surface-light);
  position:relative;padding-block:.35rem;
}
.nav-link::after{
  content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background:var(--accent);
  transform:scaleX(0);transform-origin:100% 50%;transition:transform .45s var(--ease);
}
.nav-link:hover::after,.nav-link.is-current::after{transform:scaleX(1);transform-origin:0 50%}
.nav-link.is-current{color:var(--accent)}

.cart-toggle{
  font-size:var(--step--1);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--surface-light);
  display:flex;align-items:center;gap:.5rem;
}
.cart-count{
  display:grid;place-items:center;min-width:22px;height:22px;padding-inline:.3rem;
  background:var(--accent);color:var(--on-accent);border-radius:var(--pill);font-size:.72rem;font-family:var(--font-body);
  transition:transform .35s var(--ease);
}
.cart-count.is-bumped{transform:scale(1.35)}

.button{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.85rem 1.9rem;border-radius:var(--pill);
  font-size:var(--step--1);font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  transition:transform .4s var(--ease),background-color .3s var(--ease),color .3s var(--ease);
  will-change:transform;
}
.button-accent{background:var(--accent);color:var(--on-accent)}
.button-mid{background:var(--surface-mid);color:var(--surface-light);border:var(--border)}
.button-mid:hover{transform:translateY(-3px) scale(1.03)}
.button-accent:hover{transform:translateY(-3px) scale(1.03)}
.button-accent:active{transform:translateY(0) scale(.98)}

.menu-toggle{display:none;flex-direction:column;align-items:center;justify-content:center;gap:5.5px;width:44px;height:44px}
.menu-toggle span{display:block;width:24px;height:2.5px;background:var(--surface-light);transition:transform .4s var(--ease),opacity .25s var(--ease)}
.menu-toggle[aria-expanded=true] span:first-child{transform:translateY(8px) rotate(45deg)}
.menu-toggle[aria-expanded=true] span:nth-child(2){opacity:0;transform:scaleX(.3)}
.menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-8px) rotate(-45deg)}

/* ---------- cart drawer ---------- */
.cart{
  position:fixed;top:0;right:0;z-index:110;height:100dvh;width:min(420px,100vw);
  background:var(--surface-light);border-left:var(--border);
  display:flex;flex-direction:column;padding:var(--pad);gap:1.2rem;
  transform:translateX(101%);transition:transform .55s var(--ease);
  visibility:hidden;
}
.cart.is-open{transform:none;visibility:visible}
.cart-head{display:flex;align-items:center;justify-content:space-between}
.cart-title{font-size:var(--step-2)}
.cart-close{font-size:2rem;line-height:1}
.cart-list{flex:1;overflow-y:auto;display:grid;gap:.9rem;align-content:start}
.cart-list li{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid rgba(0,0,0,.15);padding-bottom:.7rem}
.cart-list button{color:var(--accent);font-size:var(--step--1);text-transform:uppercase;letter-spacing:.06em}
.cart-empty{font-size:var(--step--1);opacity:.7}
.cart-subtotal{display:flex;justify-content:space-between;font-size:var(--step-1);margin-bottom:.9rem}
.cart-checkout{width:100%}
.scrim{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.5);opacity:0;transition:opacity .45s var(--ease)}
.scrim.is-open{opacity:1}

/* ---------- hero ---------- */
.hero{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  background:var(--surface-dark);color:var(--surface-light);position:relative;isolation:isolate;
}
.hero-copy{
  position:relative;
  display:grid;align-content:end;gap:clamp(1.5rem,3vw,2.6rem);
  padding:clamp(130px,26vw,370px) var(--pad) clamp(2.5rem,5.5vw,80px);
}
/* keeps the nav readable where it crosses the photograph */
.hero::before{
  content:"";position:absolute;inset:0 0 auto;height:180px;z-index:1;pointer-events:none;
  background:linear-gradient(to bottom,rgba(20,24,19,.55),rgba(20,24,19,0));
}
.hero-description{max-width:80%;font-size:clamp(1rem,1.85vw,26px);font-weight:600;line-height:1.45}
.hero-title{font-size:clamp(3.2rem,12vw,15rem);line-height:1.02;letter-spacing:-.03em}
.hero-cup{
  position:absolute;right:clamp(1rem,3.5vw,50px);bottom:clamp(2rem,4vw,60px);
  width:clamp(70px,10vw,142px);height:auto;color:var(--surface-light);opacity:.85;pointer-events:none;
}
.hero-media{position:relative;overflow:hidden;background:var(--surface-dark-2)}
.hero-media .media{position:absolute;inset:0;will-change:transform}
.hero-badge{
  position:absolute;left:0;bottom:clamp(1.5rem,4vw,3rem);z-index:2;
  background:var(--accent);color:var(--on-accent);padding:.6rem 1.4rem;
  font-size:var(--step--1);font-weight:600;letter-spacing:.1em;text-transform:uppercase;
}

/* ---------- marquees ---------- */
.marquee{overflow:hidden;display:flex}
.marquee-track{display:flex;align-items:center;flex:none;will-change:transform}
.marquee-copy{display:flex;align-items:center;flex:none;gap:var(--marquee-gap,clamp(2rem,5vw,6rem));padding-right:var(--marquee-gap,clamp(2rem,5vw,6rem))}
.marquee-track.is-running{animation:marquee-x var(--marquee-duration,40s) linear infinite}
@keyframes marquee-x{to{transform:translate3d(-50%,0,0)}}
.marquee-band{background:var(--surface-light);padding-block:clamp(2.5rem,5vw,6rem);border-block:var(--border)}
.marquee-item{display:flex;align-items:center;gap:clamp(1rem,2.5vw,2rem);flex:none}
.marquee-item img{width:clamp(110px,12vw,190px);height:clamp(74px,8vw,126px);object-fit:cover;border:var(--border)}
.marquee-item b{font-size:clamp(2.4rem,6vw,5rem);font-weight:900}

/* ---------- about ---------- */
.about{
  background:var(--surface-light);text-align:center;position:relative;
  padding:var(--section) var(--pad) calc(var(--section) + 2rem);
  display:grid;justify-items:center;gap:clamp(2rem,4vw,3.5rem);
}
.about-title{font-size:var(--step-4);color:var(--surface-dark);max-width:min(100%,19ch)}
.about-media{
  width:min(100%,1240px);aspect-ratio:16/9;border:var(--border);overflow:hidden;background:var(--surface-dark-2);
  transform:scale(.62);will-change:transform;
}
.about-description{max-width:56ch;font-size:var(--step-1);font-weight:500;color:var(--surface-dark)}
.about-machine{position:absolute;left:clamp(.5rem,3vw,4rem);bottom:clamp(1rem,4vw,4rem);width:clamp(90px,10vw,170px);height:auto;color:var(--surface-mid);opacity:.55;pointer-events:none}

/* ---------- sections ---------- */
.section{padding:var(--section) var(--pad)}
.section-head{display:grid;gap:1rem;margin-bottom:clamp(2rem,4vw,3.5rem);max-width:64ch}
.section-title{font-size:var(--step-3);color:var(--surface-dark)}
.section-lead{font-size:var(--step-1);font-weight:500;color:var(--surface-mid)}

/* ---------- menu grid ---------- */
.menu{background:var(--surface-light)}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(1.2rem,2.5vw,2.5rem)}
.product{position:relative}
.product-link{display:grid;gap:.7rem}
.product-frame{display:block;border:var(--border);overflow:hidden;aspect-ratio:1;background:var(--surface-tint)}
.product-frame img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease);will-change:transform}
.product-link:hover .product-frame img{transform:scale(1.08)}
.product-info{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}
.product-name{color:var(--accent);font-size:var(--step-1)}
.product-price{font-size:var(--step--1);font-weight:600;text-align:right}
.product-price s{display:block;opacity:.55;font-weight:400}
.product-add{
  position:absolute;top:.8rem;right:.8rem;
  background:var(--surface-dark);color:var(--surface-light);border:var(--border);
  padding:.45rem 1.1rem;border-radius:var(--pill);
  font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  opacity:0;transform:translateY(-6px);transition:opacity .35s var(--ease),transform .35s var(--ease),background-color .3s;
}
.product:hover .product-add,.product-add:focus-visible{opacity:1;transform:none}
.product-add:hover{background:var(--accent);color:var(--on-accent)}
.product-all{display:grid;place-items:center}
.view-all{
  display:grid;place-items:center;text-align:center;
  width:min(100%,240px);aspect-ratio:1;border-radius:50%;
  background:var(--surface-dark);color:var(--surface-light);font-size:var(--step-1);
  transition:transform .5s var(--ease),background-color .4s var(--ease);will-change:transform;
}
.view-all:hover{transform:scale(1.06);background:var(--accent);color:var(--on-accent)}

/* ---------- served ---------- */
.served{
  background:var(--surface-dark);color:var(--surface-light);
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;
  gap:0 clamp(2rem,5vw,6rem);padding-bottom:clamp(2rem,4vw,4rem);
}
.served-media{aspect-ratio:4/3;overflow:hidden;background:var(--surface-dark-2)}
.served-copy{display:grid;gap:1.5rem;padding:var(--section) var(--pad) var(--section) 0;max-width:52ch}
.served-title{font-size:var(--step-3)}
.served-copy p{font-weight:500}
.served-copy .button{justify-self:start}
.clients{grid-column:1/-1;border-top:1px solid rgba(234,218,197,.25);padding-top:clamp(1.5rem,3vw,2.5rem);margin-inline:var(--pad)}
.client{font-size:clamp(1.1rem,2vw,1.6rem);opacity:.75;white-space:nowrap;font-weight:700;letter-spacing:.02em}

/* ---------- testimonials ---------- */
.testimonials{background:var(--surface-mid);color:var(--surface-light)}
.testimonial-head{text-align:center;display:grid;gap:1rem;justify-items:center;margin-bottom:clamp(2.5rem,5vw,4rem)}
.testimonial-title{font-size:var(--step-4)}
.testimonial-lead{color:var(--accent-soft);font-weight:600;font-size:var(--step-1);max-width:44ch}
.testimonial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.2rem,3vw,3.5rem);align-items:start}
.testimonial-col{display:grid;gap:clamp(1.2rem,3vw,3.5rem);position:sticky;top:calc(var(--header-h) + 1.5rem)}
.testimonial-col-mid{margin-top:clamp(2rem,10vw,10rem)}
.quote{background:var(--surface-light);color:var(--ink);border:var(--border);padding:clamp(1.2rem,2.2vw,1.9rem);display:grid;gap:.9rem}
.quote header{display:flex;align-items:center;gap:1rem}
.quote header img{width:50px;height:50px;border-radius:50%;border:var(--border);object-fit:cover}
.quote header span{display:grid}
.quote header b{font-size:var(--step-0);font-weight:700}
.stars{color:var(--accent);font-size:.8rem;letter-spacing:.12em}
.quote p{font-size:var(--step--1);line-height:1.55}
.product-note{font-size:var(--step--1);opacity:.65;text-align:right}
.quote-monogram{
  display:grid;place-items:center;flex:none;width:50px;height:50px;border-radius:50%;
  border:var(--border);background:var(--surface-mid);color:var(--surface-light);
  font-family:var(--font-display);font-size:1rem;font-weight:700;letter-spacing:.02em;
}
.quote-tag{
  justify-self:start;font-size:.68rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  padding:.25rem .6rem;border:1px solid currentColor;opacity:.55;
}
.footer-credit{margin-top:.9rem;font-size:.78rem;opacity:.6;max-width:34ch}

/* ---------- instagram ---------- */
.instagram{background:var(--surface-light);overflow:hidden}
.instagram .marquee{--marquee-gap:0}
.insta{
  flex:none;height:clamp(280px,42vw,600px);aspect-ratio:1;overflow:hidden;position:relative;
  background:var(--surface-tint);border:var(--border);border-right:0;
}
.insta img,.insta video{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease);will-change:transform}
.insta:hover img,.insta:hover video{transform:scale(1.07)}
.insta::before,.insta::after{content:"";position:absolute;opacity:0;transition:opacity .45s var(--ease)}
.insta::before{inset:0;background:rgba(0,0,0,.35)}
.insta::after{
  inset:50% auto auto 50%;width:clamp(34px,5vw,60px);aspect-ratio:1;translate:-50% -50%;
  background:var(--surface-light);
  -webkit-mask:var(--insta-glyph) center/contain no-repeat;mask:var(--insta-glyph) center/contain no-repeat;
}
.insta:hover::before,.insta:hover::after{opacity:1}

/* ---------- footer ---------- */
.site-footer{background:var(--surface-dark);color:var(--surface-light);padding:var(--section) var(--pad) 0;overflow:hidden}
.footer-grid{display:grid;grid-template-columns:1.4fr minmax(0,1fr) minmax(0,1fr) 1.2fr;gap:clamp(1.8rem,4vw,4rem)}
.footer-logo{font-size:2.4rem;color:var(--accent);margin-bottom:1rem}
.footer-brand p{font-size:var(--step--1);max-width:32ch}
.footer-hours-title{font-size:var(--step-1);margin:1.8rem 0 .6rem}
.footer-hours{opacity:.85}
.footer-nav,.footer-contact{display:grid;gap:.55rem;align-content:start;font-style:normal;font-size:var(--step--1)}
.footer-nav h2,.footer-contact h2{
  font-family:var(--font-display);font-size:var(--step--1);font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--accent);margin-bottom:.4rem;
}
.footer-nav a,.footer-contact a{opacity:.85;transition:opacity .3s,transform .35s var(--ease);width:fit-content}
.footer-nav a:hover,.footer-contact a:hover{opacity:1;transform:translateX(4px)}
.footer-social{display:flex;gap:1rem;margin-top:.6rem}
.footer-wordmark{
  font-size:clamp(6rem,25vw,26rem);line-height:.78;color:var(--surface-light);text-align:center;
  margin-top:clamp(1.5rem,4vw,3rem);margin-bottom:calc(-.22em);letter-spacing:-.04em;
}

/* ---------- reveal states ---------- */
[data-reveal],.about-title,.section-title,.served-title,.testimonial-title{opacity:1}
html.js [data-reveal]{opacity:0;transform:translateY(28px)}
html.js .split-line{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.06em}
html.js .split-line>span{display:block;will-change:transform}

/* ---------- ?flat: collapse viewport-sized blocks for full-page captures ------ */
html.flat .hero{min-height:0}
html.flat .hero-copy{padding-block:8rem 4rem}
html.flat .hero-media{aspect-ratio:4/5}
html.flat .testimonial-col{position:static}
html.flat .about-media{transform:none}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .footer-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media (max-width:900px){
  :root{
  --insta-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='2.5' y='2.5' width='19' height='19' rx='5.5'/%3E%3Ccircle cx='12' cy='12' r='4.6'/%3E%3Ccircle cx='17.6' cy='6.4' r='1.3' fill='%23000' stroke='none'/%3E%3C/svg%3E");
--header-h:66px}
  .site-header{grid-template-columns:1fr auto auto}
  .header-cta{display:none}
  .menu-toggle{display:flex}
  .nav{
    position:fixed;inset:0;z-index:-1;background:var(--surface-dark);
    flex-direction:column;justify-content:center;align-items:center;gap:1.6rem;
    clip-path:circle(0% at 92% 6%);transition:clip-path .7s var(--ease);
  }
  .nav.is-open{clip-path:circle(140% at 92% 6%)}
  .nav-link{font-size:var(--step-2);font-weight:900;font-family:var(--font-display)}
  /* the split survives on phones, exactly as the template does */
  .hero-copy{padding:calc(var(--header-h) + 30px) 1rem .75rem;gap:.9rem}
  .hero-description{max-width:100%;font-size:16px;line-height:1.45}
  .hero-title{font-size:clamp(2rem,11.6vw,4.4rem)}
  .hero-cup,.hero-badge{display:none}
  .hero::before{height:110px}
  .menu-toggle{background:var(--surface-light);border:var(--border);width:50px;height:50px}
  .menu-toggle span{background:var(--surface-dark)}
  .served{grid-template-columns:1fr}
  .served-media{aspect-ratio:16/10}
  .served-copy{padding:clamp(2.5rem,7vw,4rem) var(--pad)}
  .testimonial-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .testimonial-col{position:static}
  .testimonial-col-mid{margin-top:0}
}
@media (max-width:640px){
  .product-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .view-all{width:100%}
  .product-add{opacity:1;transform:none;padding:.4rem .9rem}
  .testimonial-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .marquee-item img{border-width:2px}
  .quote header img{border-width:2px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  html.js [data-reveal]{opacity:1;transform:none}
  .about-media{transform:none}
}
