/*
  coffee-botanical styles. Posh botanical coffee house: cream, forest green, caramel,
  terracotta; elegant serif + giant condensed letters; realistic glass buttons.
  Mobile first: base styles are for phones, @media (min-width) adds bigger layouts.

  CHANGE THE LOOK HERE: these tokens control the whole site.
*/

:root {
  --cream: #f6f0e4;
  --cream-2: #eee5d5;
  --forest: #1f3a2e;
  --forest-2: #15281f;
  --moss: #4f8a5f;
  --sage: #a9b8a0;
  --caramel: #c58b4e;
  --caramel-light: #e3c49b;
  --terra: #b4653f;
  --espresso: #2b1d14;
  --ink: #1c1f1a;
  --line: rgba(31, 58, 46, 0.14);
  --line-light: rgba(246, 240, 228, 0.16);
  --open: #3fbf74;

  --f-serif: "Fraunces", Georgia, serif;
  --f-display: "Anton", "Impact", sans-serif;
  --f-sans: "DM Sans", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: max(18px, 4vw);
}

/* The diagonal split in the hero is animatable thanks to @property. */
@property --split { syntax: "<percentage>"; inherits: true; initial-value: 52%; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
.defs { position: absolute; }
.wide { width: 100%; padding: 0 var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.eyebrow { font-family: var(--f-sans); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--moss); margin-bottom: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 32px; border-radius: 999px;
  font-family: var(--f-sans); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.06em;
  transition: transform .4s var(--ease), box-shadow .4s, background-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-terra { background: var(--terra); color: var(--cream); border-radius: 6px; }
.btn-terra:hover { background: #a3562f; box-shadow: 0 14px 30px rgba(180, 101, 63, 0.35); }
.btn-cream { background: var(--cream); color: var(--forest); }
.btn-cream:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }

/* Styled placeholder until the real photo is added to images/ */
.ph {
  display: flex; align-items: flex-end;
  background:
    url("/plants/monstera.svg") no-repeat right -12% bottom -18% / 62%,
    radial-gradient(ellipse at 30% 20%, rgba(169, 200, 157, 0.28), transparent 60%),
    linear-gradient(140deg, #2f5d46, var(--forest) 55%, var(--forest-2));
}
.ph-label {
  margin: 18px; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, 0.25);
  font-family: var(--f-sans); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246, 240, 228, 0.8);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 18px; height: 72px; padding: 0 var(--gutter);
  background: rgba(21, 40, 31, 0.28);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-light);
  color: var(--cream);
  transition: background-color .4s;
}
.nav.is-scrolled { background: rgba(21, 40, 31, 0.72); }
.nav-mark img { width: 34px; height: 34px; }
.nav-links { display: none; gap: 38px; margin: 0 auto; height: 100%; }
.nav-links a {
  position: relative; display: flex; align-items: center; height: 100%;
  font-weight: 500; font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(246, 240, 228, 0.72); transition: color .3s;
}
/* Snippet 1: the active link gets a bar on TOP of the nav. */
.nav-links a::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--caramel-light);
  transform: scaleX(0); transition: transform .5s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--cream); }
.nav-links a.is-active::before { transform: scaleX(1); }
.nav-order {
  margin-left: auto; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em;
  background: rgba(246, 240, 228, 0.12); border: 1px solid rgba(246, 240, 228, 0.3);
  transition: background-color .3s;
}
.nav-order:hover { background: rgba(246, 240, 228, 0.22); }

/* ---------- Hero: diagonal split ---------- */

.hero {
  position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--forest-2);
  --split: 52%;
  transition: --split 1.2s var(--ease);
}
.hero.lean-left { --split: 62%; }
.hero.lean-right { --split: 42%; }
.hero-side { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-coffee { object-position: 28% 50%; } /* phones: keep the cup in view */
.hero-img-coffee.ph {
  background:
    url("/plants/coffee-branch.svg") no-repeat left -10% bottom 8% / 70%,
    radial-gradient(ellipse at 60% 30%, rgba(197, 139, 78, 0.35), transparent 60%),
    linear-gradient(150deg, #4a3020, var(--espresso) 55%, #160e08);
}
.hero-left-wrap { position: absolute; inset: 0; z-index: 2; filter: drop-shadow(18px 0 34px rgba(0, 0, 0, 0.4)); }
/* Phones: horizontal diagonal (coffee on top, garden below). */
.hero-left { clip-path: polygon(0 0, 100% 0, 100% calc(var(--split) - 8%), 0 calc(var(--split) + 8%)); }
.hero-left::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 40%); }

.hero-logo { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: 15%; text-align: center; color: var(--cream); }
.hero-logo img { width: min(78vw, 560px); margin: 0 auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45)); }
.hero-est { margin-top: 14px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(246, 240, 228, 0.85); }

.hero-right::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 50%); }
.hero-box {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 120px;
  display: flex; flex-direction: column; padding: 16px 24px;
  border: 2px solid rgba(246, 240, 228, 0.9); color: var(--cream);
  font-family: var(--f-display); font-size: clamp(2rem, 7vw, 4.4rem); line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-box-sub {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 88px; color: rgba(246, 240, 228, 0.85);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero-open {
  position: absolute; z-index: 4; left: 50%; bottom: 24px; translate: -50% 0;
  display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  font-size: 0.78rem; color: var(--cream);
  background: rgba(21, 40, 31, 0.35); border: 1px solid rgba(246, 240, 228, 0.22);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.hero-open > span:last-child { display: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.dot.is-open { background: var(--open); box-shadow: 0 0 0 4px rgba(63, 191, 116, 0.25); }
.dot.is-closed { background: var(--terra); }
.hero-scroll { display: none; }

/* Plants: placed with transform, swaying with the separate `rotate` property. */
.plant { position: absolute; pointer-events: none; z-index: 3; animation: sway 8s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sway { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
.plant-hero-a { width: 190px; left: -50px; bottom: -70px; transform: rotate(16deg); }
.plant-hero-b { width: 150px; right: -36px; top: 58px; transform: rotate(196deg); transform-origin: 50% 0; animation-duration: 10s; }

/* ---------- Coffee in the garden ---------- */

.garden {
  position: relative; overflow: hidden; text-align: center; padding: 120px var(--gutter) 130px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(169, 184, 160, 0.22), transparent 70%), var(--cream);
}
.fill-words {
  display: flex; align-items: center; justify-content: center; gap: 1.6vw; margin: 6px 0 36px;
  font-family: var(--f-display); font-weight: 400; font-size: 16vw; line-height: 0.86; text-transform: uppercase;
  position: relative; z-index: 2;
}
/* Snippet 2: letters filled with moving imagery (leaf pattern, or a photo via photos.css). */
.fill-word {
  background: url("/leaf-pattern.svg") 0 0 / 34vw repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: drift 50s linear infinite;
}
.fill-words.has-photo .fill-word { animation-name: pan; animation-duration: 24s; animation-direction: alternate; animation-timing-function: ease-in-out; }
@keyframes drift { to { background-position: 34vw -34vw; } }
@keyframes pan { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.fill-small {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.17em; letter-spacing: 0.14em; line-height: 1; color: var(--forest);
  display: flex; gap: 0.3em;
}
.garden-text {
  position: relative; z-index: 2; max-width: 34ch; margin: 0 auto;
  font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 2.4vw, 2.1rem); line-height: 1.4; color: var(--forest);
}
.plant-g1 { width: 120px; left: 2%; top: 6%; z-index: 1; }
.plant-g2 { width: 170px; right: -40px; bottom: -40px; transform: rotate(-24deg); z-index: 1; animation-duration: 9s; }
.plant-g3 { width: 200px; left: -30px; bottom: 6%; transform: rotate(-14deg); z-index: 1; animation-duration: 11s; transform-origin: 0 50%; }
.plant-g4 { width: 120px; right: 4%; top: 4%; transform: rotate(14deg); z-index: 1; animation-duration: 7s; }

/* ---------- Big cards ---------- */

.pour { padding: 110px 0 120px; background: var(--cream-2); }
.section-head { margin-bottom: 44px; }
.section-title {
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.5rem, 6vw, 5.6rem); line-height: 1.02;
  letter-spacing: -0.02em; color: var(--forest); max-width: 16ch;
}
.cards { display: grid; gap: 16px; }
.card {
  position: relative; isolation: isolate; overflow: hidden; min-height: 420px; border-radius: 28px;
  background: var(--forest); color: var(--cream);
  box-shadow: 0 30px 60px -30px rgba(21, 40, 31, 0.5);
}
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.card:hover .card-img { transform: scale(1.08); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 26, 20, 0.88), rgba(14, 26, 20, 0.2) 55%, transparent 80%); }
.card-body { position: absolute; left: 26px; right: 26px; bottom: 24px; }
.card-kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--caramel-light); margin-bottom: 8px; }
.card h3 { font-family: var(--f-serif); font-weight: 450; font-size: clamp(1.7rem, 2.6vw, 2.7rem); line-height: 1.04; letter-spacing: -0.01em; }
.card-text { margin-top: 10px; max-width: 44ch; font-size: 0.98rem; color: rgba(246, 240, 228, 0.86); }
.card-arrow {
  position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(246, 240, 228, 0.16); border: 1px solid rgba(246, 240, 228, 0.35); color: var(--cream);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .6s var(--ease), background-color .3s;
}
.card:hover .card-arrow { transform: rotate(-45deg); background: var(--cream); color: var(--forest); }

/* ---------- Curved moving text + gift cards ---------- */

.gift { position: relative; overflow: hidden; padding: 90px 0 110px; background: var(--cream); }
.curve { position: absolute; left: -95%; top: 2%; width: 290%; height: auto; z-index: 1; pointer-events: none; }
.curve text { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 60px; fill: var(--forest); }
.gift-grid { position: relative; z-index: 2; display: grid; gap: 40px; padding: 0 var(--gutter); }
.gift-photo { position: relative; z-index: 3; width: min(100%, 520px); aspect-ratio: 1 / 1.04; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(21, 40, 31, 0.55); margin-top: 120px; }
.gift-img { width: 100%; height: 100%; object-fit: cover; }
.gift-copy { position: relative; z-index: 2; max-width: 520px; }
.gift-title { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.015em; color: var(--forest); margin-bottom: 18px; }
.gift-copy p { color: rgba(28, 31, 26, 0.78); font-size: 1.08rem; margin-bottom: 30px; max-width: 42ch; }

/* ---------- Footer ---------- */

.footer { position: relative; overflow: hidden; padding: 100px 0 36px; background: var(--forest); color: var(--cream); }
.plant-f1 { width: 520px; right: -120px; top: -80px; opacity: 0.1; transform: rotate(-30deg); z-index: 0; }
.footer .wide { position: relative; z-index: 1; }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: 54px; margin-bottom: 60px; border-bottom: 1px solid var(--line-light);
}
.footer-tag { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.05; }
.footer-grid { display: grid; gap: 52px; }
.footer-col h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-family: var(--f-serif); font-weight: 450; font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
.footer-col h3 .icon { color: var(--caramel-light); width: 0.85em; height: 0.85em; }
.footer-hours { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.footer-hours th, .footer-hours td { padding: 10px 0; border-bottom: 1px solid var(--line-light); text-align: left; font-weight: 400; }
.footer-hours th { color: rgba(246, 240, 228, 0.7); }
.footer-hours td { text-align: right; font-variant-numeric: tabular-nums; }
.footer-hours tr.is-today th, .footer-hours tr.is-today td { color: var(--caramel-light); font-weight: 600; }
.footer-status { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 0.95rem; }
.footer-address { font-style: normal; font-family: var(--f-serif); font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.45; }
.footer-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--caramel-light); font-weight: 600; letter-spacing: 0.06em; }
.footer-perks { display: grid; gap: 10px; margin-top: 26px; color: rgba(246, 240, 228, 0.8); }
.footer-perks li { display: flex; align-items: center; gap: 10px; }
.footer-perks .icon { color: var(--sage); }
.footer-contact { display: grid; gap: 16px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.1rem, 1.4vw, 1.35rem); transition: color .3s; }
.footer-contact a:hover { color: var(--caramel-light); }
.footer-contact .icon { color: var(--caramel-light); }
/* Giant name filled with a photo, edge to edge (leaf pattern until a photo exists). */
.footer-name { display: block; margin-top: 80px; text-align: center; line-height: 0.84; }
.footer-name span {
  display: block; white-space: nowrap;
  font-family: var(--f-display); font-size: 19vw; letter-spacing: 0.01em;
  background: url("/leaf-pattern.svg") 0 0 / 30vw repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: drift 50s linear infinite;
  transition: transform .9s var(--ease);
}
.footer-name.has-photo span { animation: pan 26s ease-in-out infinite alternate; }
.footer-name:hover span { transform: translateY(-6px); }
.footer-name-sub { margin-top: 14px; text-align: center; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(246, 240, 228, 0.7); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 8px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-light);
  font-size: 0.85rem; color: rgba(246, 240, 228, 0.7);
}
.footer-bottom a { color: var(--caramel-light); }

/* ---------- Floating glass buttons ---------- */

.float-dock {
  position: fixed; z-index: 90; left: 50%; bottom: 18px; translate: -50% 0;
  display: flex; gap: 14px; pointer-events: none;
}
.float-btn {
  position: relative; display: flex; align-items: center; gap: 12px; pointer-events: auto;
  /* Hidden state: sunk into the page (small, blurred). .dock-on lifts them out. */
  opacity: 0; transform: translateY(46px) scale(0.35); filter: blur(10px);
  transition: opacity .7s var(--ease), transform 1s var(--spring), filter .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.float-dock.dock-on .float-btn { opacity: 1; transform: none; filter: none; }
.float-glass {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  color: var(--forest);
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.14) 55%, rgba(255, 255, 255, 0.3));
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.06); backdrop-filter: blur(14px) saturate(180%) brightness(1.06);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -12px 20px rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 20px 40px rgba(16, 32, 24, 0.32),
    0 4px 10px rgba(16, 32, 24, 0.2);
  transition: transform .5s var(--spring);
}
/* Specular highlight, like light on a glass bead. */
.float-glass::after {
  content: ""; position: absolute; left: 16%; top: 9%; width: 46%; height: 26%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.85), transparent 70%); transform: rotate(-28deg); pointer-events: none;
}
/* A ring spreads out once, as if the button just broke the surface. */
.float-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.7); opacity: 0; pointer-events: none;
}
.float-dock.dock-on .float-glass::before { animation: surface 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
@keyframes surface { from { opacity: 0.9; transform: scale(0.7); } to { opacity: 0; transform: scale(2.1); } }
.float-glass .icon { width: 26px; height: 26px; stroke-width: 1.8; position: relative; z-index: 1; }
.float-btn:hover .float-glass { transform: scale(1.08); }
/* Chromium: real refraction (the page bends through the glass). */
.refract .float-glass { -webkit-backdrop-filter: url(#glass-lens) saturate(170%) brightness(1.1); backdrop-filter: url(#glass-lens) saturate(170%) brightness(1.1); }
.float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Glass cursor (desktop only; added by main.js) ---------- */

.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor-dot, .cursor-bead { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--forest); box-shadow: 0 0 0 1.5px rgba(246, 240, 228, 0.7); }
/* The bead: same glass recipe as the floating buttons. */
.cursor-bead {
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08) 58%, rgba(255, 255, 255, 0.22));
  -webkit-backdrop-filter: blur(6px) saturate(170%) brightness(1.06); backdrop-filter: blur(6px) saturate(170%) brightness(1.06);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.5),
              0 0 0 1px rgba(31, 58, 46, 0.22), 0 12px 26px rgba(16, 32, 24, 0.28);
  transition: opacity .3s, width .45s var(--spring), height .45s var(--spring), margin .45s var(--spring), background-color .3s;
}
.refract .cursor-bead { -webkit-backdrop-filter: url(#cursor-lens) saturate(170%) brightness(1.1); backdrop-filter: url(#cursor-lens) saturate(170%) brightness(1.1); }
.cursor-bead span { font-family: var(--f-sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest); opacity: 0; transition: opacity .2s; }
.cursor-visible .cursor-dot, .cursor-visible .cursor-bead { opacity: 1; }
.cursor-bead.is-link { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
.cursor-bead.has-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background-color: rgba(246, 240, 228, 0.55); }
.cursor-bead.has-label span { opacity: 1; }
.cursor-bead.is-down { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
/* The refraction map is sized for 52px; when the bead grows, use frosted glass instead. */
.refract .cursor-bead.is-link, .refract .cursor-bead.has-label { -webkit-backdrop-filter: blur(8px) saturate(170%); backdrop-filter: blur(8px) saturate(170%); }

/* ---------- 404 ---------- */

.page-404 { background: var(--cream); }
.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 24px; }
.not-found img { width: 140px; animation: sway 6s ease-in-out infinite; transform-origin: 50% 100%; }
.not-found p { color: rgba(28, 31, 26, 0.7); }

/* ---------- Scroll reveals + split letters (only with JS, see js-flag.js) ---------- */

.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 100ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .fill-words.reveal { transform: scale(0.92); }
.js .fill-words.reveal.is-visible { transform: none; }
[data-split] .char-mask { display: inline-block; overflow: hidden; vertical-align: top; white-space: nowrap; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .char { display: inline-block; }
.js [data-split] .char { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--ci, 0) * 22ms); }
.js .is-visible[data-split] .char { transform: none; }

/* Hero intro */
.js .hero-left-wrap { transform: translateX(-60%); opacity: 0; transition: transform 1.6s var(--ease), opacity 1s; }
.js .hero-right .hero-img { transform: scale(1.18); transition: transform 2.4s var(--ease); }
.js .hero-logo, .js .hero-box, .js .hero-box-sub, .js .hero-open { opacity: 0; translate: 0 22px; transition: opacity 1s var(--ease) .9s, translate 1s var(--ease) .9s; }
.js .hero-open { translate: -50% 22px; }
.js.is-loaded .hero-left-wrap { transform: none; opacity: 1; }
.js.is-loaded .hero-right .hero-img { transform: none; }
.js.is-loaded .hero-logo, .js.is-loaded .hero-box, .js.is-loaded .hero-box-sub { opacity: 1; translate: 0 0; }
.js.is-loaded .hero-open { opacity: 1; translate: -50% 0; }

/* ---------- Phones: plants stay at the edges so they never cover text ---------- */

@media (max-width: 719px) {
  .plant-hero-a { width: 130px; left: -46px; bottom: -40px; opacity: 0.9; }
  .plant-hero-b { width: 110px; right: -40px; top: 64px; }
  .garden { padding-bottom: 170px; }
  .plant-g1, .plant-g3 { display: none; }
  .plant-g2 { width: 140px; right: -30px; bottom: -36px; }
  .plant-g4 { width: 90px; right: -18px; top: 2%; opacity: 0.6; }
}

/* ---------- Tablet ---------- */

@media (min-width: 720px) {
  .hero-open > span:last-child { display: inline; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-banner { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
  .nav { height: 78px; }
  .nav-links { display: flex; }

  /* Snippet 1: vertical diagonal, coffee left / garden right. */
  .hero-left { clip-path: polygon(0 0, calc(var(--split) + 9%) 0, calc(var(--split) - 9%) 100%, 0 100%); }
  .hero-left::after { background: radial-gradient(ellipse 45% 40% at 22% 24%, rgba(0, 0, 0, 0.5), transparent 70%), linear-gradient(100deg, rgba(0, 0, 0, 0.3), transparent 50%); }
  /* The coffee photo only needs to fill the coffee side: keeps the cup centred there. */
  .hero-left .hero-img { width: 74%; object-position: 40% 50%; } /* cup centred in the coffee side */
  .hero-logo { left: 6vw; right: auto; top: 16%; width: min(30vw, 520px); text-align: left; }
  .hero-logo img { width: 100%; margin: 0; }
  .hero-box { bottom: 16vh; right: 6vw; padding: 22px 34px; }
  .hero-box-sub { bottom: calc(16vh - 34px); right: 6vw; }
  .hero-scroll { display: block; position: absolute; z-index: 4; right: 3vw; bottom: 30px; width: 24px; height: 38px; border: 1.5px solid rgba(246, 240, 228, 0.7); border-radius: 12px; }
  .hero-scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--cream); animation: scroll-dot 1.8s ease-in-out infinite; }
  .plant-hero-a { width: 300px; left: -70px; bottom: -110px; }
  .plant-hero-b { width: 230px; right: -50px; top: 70px; }

  .fill-words { font-size: min(16vw, 17rem); }
  .plant-g1 { width: 200px; left: 4%; top: 8%; }
  .plant-g2 { width: 300px; right: -60px; bottom: -60px; }
  .plant-g3 { width: 340px; left: -50px; bottom: 4%; }
  .plant-g4 { width: 200px; right: 6%; top: 6%; }

  .cards { grid-template-columns: repeat(10, 1fr); grid-auto-rows: 330px; gap: 18px; }
  .card { min-height: 0; }
  .card-tall { grid-column: span 4; grid-row: span 2; }
  .card-wide { grid-column: span 6; }
  .card-small { grid-column: span 3; }
  .card-banner { grid-column: 1 / -1; }
  /* Desktop: the description slides in on hover. */
  .card-text { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .8s var(--ease), opacity .6s, margin .6s; margin-top: 0; }
  .card:hover .card-text, .card:focus-within .card-text { max-height: 8em; opacity: 1; margin-top: 10px; }
  .card-banner .card-body { left: 40px; bottom: 36px; }

  .gift { padding: 120px 0 150px; }
  .curve { left: -4%; width: 108%; top: 10%; }
  .gift-grid { grid-template-columns: 1fr 1fr; align-items: end; gap: 7vw; padding: 0 8vw; }
  .gift-photo { margin-top: 0; justify-self: end; }
  .gift-copy { padding-top: 260px; }

  .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 4vw; }

  .float-dock { left: auto; right: 28px; bottom: 28px; translate: none; flex-direction: column; align-items: flex-end; }
  .float-btn { flex-direction: row-reverse; }
  .float-glass { width: 68px; height: 68px; }
  /* Desktop: a glass label slides out on hover. */
  .float-label {
    position: static; width: auto; height: auto; overflow: visible; clip: auto;
    padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.88rem; color: var(--forest);
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 12px 30px rgba(16, 32, 24, 0.25);
    opacity: 0; transform: translateX(12px); transition: opacity .35s, transform .5s var(--ease);
  }
  .float-btn:hover .float-label, .float-btn:focus-visible .float-label { opacity: 1; transform: none; }
}

@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
