:root {
  --cream: #F7F3EC;
  --oat: #EFE8DC;
  --paper: #FFFDF9;
  --line: #E2D9CA;
  --ink: #1A1714;
  --muted: #5E5447;
  --soft: #CFC4B2;
  --display: 'Jost', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.invert { filter: invert(1); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; border-radius: 999px; padding: 17px 32px; border: 1px solid var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #3A3029; color: var(--cream); }
.btn-outline { background: transparent; color: var(--ink); padding: 13px 24px; font-size: 12px; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.is-loading .loader { opacity: 1; visibility: visible; transition: none; }
.is-loading { overflow: hidden; }
.loader-cup { position: relative; width: 180px; height: 195px; }
.loader-cup img { position: absolute; left: 0; top: 66px; width: 180px; }
.loader-cup svg { position: absolute; left: 0; top: 0; width: 180px; height: 178px; }
.steam { fill: none; stroke: #141210; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 120 120; animation: steam 2.2s ease-in-out infinite; }
.s2 { animation-delay: .45s; }
@keyframes steam {
  0% { stroke-dashoffset: 120; opacity: 0; }
  15% { opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  85%, 100% { stroke-dashoffset: -120; opacity: 0; }
}
.loader-text { font-family: var(--display); font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--muted); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1320px; margin: 0 auto; height: var(--header-h); padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon { height: 52px; width: auto; }
.brand-word { height: 38px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 44px; font-family: var(--display); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; }
.main-nav a:not(.btn) { text-decoration: none; padding: 10px 0; border-bottom: 1.5px solid transparent; }
.main-nav a.active { border-bottom-color: var(--ink); }
.nav-cta { margin-left: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 64px 24px 96px; }
.hero-watermark { position: absolute; inset: 0; background: url(img/watermark.webp) center / cover no-repeat; opacity: .28; }
.hero-watermark::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 34% 40% at 50% 46%, var(--cream) 55%, rgba(247,243,236,0) 100%); }
.hero-cup { position: absolute; right: 0; bottom: 0; width: clamp(220px, 32vw, 470px); }
.hero-beans-left { position: absolute; left: 0; top: 40%; width: clamp(90px, 14vw, 200px); }
.hero-beans-right { position: absolute; right: 0; top: 0; width: clamp(90px, 14vw, 200px); }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.hero-logo { width: clamp(230px, 27vw, 380px); height: auto; }
.tagline { font-family: var(--display); font-weight: 500; font-size: clamp(15px, 1.4vw, 19px); letter-spacing: 0.44em; text-transform: uppercase; margin-top: 4px; padding-left: .44em; }

/* Sections */
.section { padding: 112px 0; position: relative; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 56px; }
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.section h2 { font-size: clamp(34px, 4vw, 46px); line-height: 1.15; }
.lead { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 540px; }

/* Pillars */
.pillars { background: var(--oat); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.pillar { display: flex; flex-direction: column; gap: 10px; }
.pillar-num { font-family: var(--display); font-size: 12px; letter-spacing: 0.3em; color: var(--muted); }
.pillar h2 { font-size: 22px; font-weight: 500; }
.pillar p:last-child { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* Blends */
.blend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.blend-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.blend-soon { background: transparent; border-style: dashed; border-color: #BFB29D; }
.bag-stage { display: flex; justify-content: center; padding: 22px 0; background: var(--oat); border-radius: 14px; }
.blend-soon .bag-stage { background: transparent; }
.blend-soon .bag { opacity: .6; }
.blend-body { display: flex; flex-direction: column; gap: 10px; }
.blend-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.blend-title h3 { font-size: 26px; font-weight: 500; }
.blend-body p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.pill { font-family: var(--display); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; border: 1px solid var(--ink); border-radius: 999px; padding: 6px 12px; }
.text-link { font-family: var(--display); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; padding: 12px 0; margin-top: 4px; align-self: flex-start; }

/* Bag mockups */
.bag { width: 170px; height: 230px; border-radius: 6px 6px 14px 14px; display: flex; flex-direction: column; align-items: center; overflow: hidden; box-shadow: 0 18px 30px rgba(40,28,18,.16), inset -18px 0 24px rgba(0,0,0,.04); }
.bag-seal { width: 100%; height: 16px; flex: none; }
.bag-mono { width: 86px; margin-top: 30px; }
.bag-word { width: 92px; margin-top: 14px; }
.bag-label { margin-top: 14px; font-family: var(--display); font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; }
.bag-cream { background: #F4EEE3; }
.bag-cream .bag-seal { background: repeating-linear-gradient(90deg, #DDD3C2 0 6px, #E8E0D2 6px 12px); }
.bag-dark { background: #221C17; }
.bag-dark .bag-seal { background: repeating-linear-gradient(90deg, #2E2620 0 6px, #3A3029 6px 12px); }
.bag-dark .bag-label { color: var(--cream); }
.bag-kraft { background: #C3A377; }
.bag-kraft .bag-seal { background: repeating-linear-gradient(90deg, #B08F63 0 6px, #BB9B6F 6px 12px); }
.bag-sm { width: 120px; height: 168px; }
.bag-sm .bag-seal { height: 12px; }
.bag-sm .bag-mono { width: 62px; margin-top: 24px; }
.bag-sm .bag-word { width: 66px; margin-top: 10px; }
.tilt-l { transform: rotate(-4deg); }
.tilt-r { transform: rotate(3deg) translateY(10px); }

/* About */
.about { overflow: hidden; }
.about-watermark { position: absolute; right: -60px; top: 80px; width: 420px; opacity: .07; pointer-events: none; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px; align-items: start; position: relative; }
.about-intro { display: flex; flex-direction: column; gap: 18px; }
.about-points { display: flex; flex-direction: column; gap: 30px; }
.point { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.point h3 { font-size: 20px; font-weight: 500; }
.point p { font-size: 15px; line-height: 1.75; color: var(--muted); }

/* Gallery */
.gallery { background: var(--oat); border-top: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shot { margin: 0; border-radius: 18px; overflow: hidden; background: var(--cream); aspect-ratio: 9 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.shot-wide img { object-position: 50% 80%; }
.shot:last-child img { object-position: 62% 60%; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .shot-wide { aspect-ratio: 4 / 3; }
}

/* Enquiries */
.email-block { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.email-link { font-family: var(--display); font-size: 22px; overflow-wrap: anywhere; }
.enquiry-form { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.enquiry-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 14px 16px; border: 1px solid var(--soft); border-radius: 10px; background: var(--cream); color: var(--ink); width: 100%; }
.enquiry-form textarea { resize: vertical; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.enquiry-form .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--soft); padding: 64px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.footer-logo { width: 120px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; font-family: var(--display); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.footer-nav a { color: var(--cream); text-decoration: none; padding: 10px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #3A3029; font-size: 13px; }
.footer-bottom a { color: var(--soft); }

/* Tablet & phone */
@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .header-inner { padding: 0 20px; }
  .brand-icon { height: 42px; }
  .brand-word { height: 30px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 24px 28px; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 0; }
  .nav-cta { margin: 12px 0 0; }
}
@media (max-width: 640px) {
  .hero { align-items: flex-start; padding-top: 72px; padding-bottom: 220px; }
  .hero-cup { width: 210px; }
  .hero-beans-left { top: auto; bottom: 120px; width: 80px; }
  .hero-beans-right { width: 80px; }
  .hero-watermark { background-size: 190% auto; background-position: center top; background-repeat: repeat-y; }
  .hero-watermark::after { background: radial-gradient(ellipse 60% 34% at 50% 30%, var(--cream) 50%, rgba(247,243,236,0) 100%); }
  .tagline { letter-spacing: 0.3em; padding-left: .3em; }
  .section { padding: 80px 0; }
  .enquiry-form { padding: 24px; }
  .about-watermark { width: 260px; right: -80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .steam { animation: none; stroke-dasharray: none; }
  .loader-text { animation: none; opacity: 1; }
}
