/* Calmio concept site. Brand: Helvetica-style bold wordmark, cream #ece7dc and brown #4a2820 (from calmio.ie),
   matcha and latte from their cans. Radius rule: buttons and pills fully round, photos and panels 20px. */

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ece7dc;
  --bg-deep: #e3dccd;
  --ink: #4a2820;
  --ink-soft: rgb(74 40 32 / 0.74);
  --line: rgb(74 40 32 / 0.16);
  --on-ink: #f3efe7;
  --open: #5f7a2e;
  --matcha: #bccaa0;
  --latte: #dcc4a1;
  --cans-ink: #3a2018;
  --photo-ink: #f3efe7;
  --radius: 20px;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #21140f;
    --bg-deep: #2a1a13;
    --ink: #ece7dc;
    --ink-soft: rgb(236 231 220 / 0.72);
    --line: rgb(236 231 220 / 0.14);
    --on-ink: #3a2018;
    --open: #b7cc85;
    --matcha: #34402a;
    --latte: #42301f;
    --cans-ink: #f0ebe1;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

h2 {
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--solid { background: var(--ink); color: var(--on-ink); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-ink); }

/* ---------- Header ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30;
  height: var(--nav-h);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.nav.is-solid { background: color-mix(in srgb, var(--bg) 88%, transparent); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__inner {
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 28px;
}
.nav__logo { display: block; width: 104px; color: var(--ink); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.nav__logo svg { display: block; width: 100%; height: auto; fill: currentColor; }
.nav.show-logo .nav__logo { opacity: 1; transform: none; pointer-events: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.status {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 16px 0 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.status.is-open .status__dot { background: var(--open); box-shadow: 0 0 0 0 color-mix(in srgb, var(--open) 50%, transparent); }
.motion .status.is-open .status__dot { animation: pulse 2.6s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--open) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--open) 0%, transparent); }
}

.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; padding: 0; cursor: pointer; place-items: center; }
.burger svg { width: 24px; height: 24px; fill: currentColor; }

.panel {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 29;
  background: var(--bg); padding: 24px var(--pad) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.panel[hidden] { display: none; }
.panel nav { display: grid; }
.panel nav a { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.25; text-decoration: none; }
.panel__foot { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav__inner { gap: 12px; }
  .nav__links { display: none; }
  .status { margin-left: auto; height: 34px; font-size: 13px; padding: 0 12px 0 11px; }
  .burger { display: grid; margin-right: -8px; }
  .nav__logo { width: 88px; }
}
@media (max-width: 380px) { .status { display: none; } .burger { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: calc(var(--nav-h) + 8px) var(--pad) clamp(24px, 3vw, 40px);
}
.hero__mark { color: var(--ink); line-height: 0; }
.hero__mark svg { display: block; width: 100%; height: auto; fill: currentColor; overflow: hidden; }
.hero__mark path { transform-box: fill-box; }
.motion .hero__mark path { transform: translateY(105%); animation: rise 1.25s var(--ease) forwards; animation-delay: calc(0.12s + var(--i) * 0.07s); }
@keyframes rise { to { transform: none; } }

.hero__row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
  margin-top: clamp(20px, 3vw, 40px);
}
.hero__lead { font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.hero__sub { margin-top: 18px; max-width: 34ch; font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-soft); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-deep); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.motion .hero__copy > * { opacity: 0; transform: translateY(18px); animation: fade-up 1s var(--ease) forwards; }
.motion .hero__copy > :nth-child(1) { animation-delay: 0.55s; }
.motion .hero__copy > :nth-child(2) { animation-delay: 0.65s; }
.motion .hero__copy > :nth-child(3) { animation-delay: 0.75s; }
.motion .hero__media { clip-path: inset(100% 0 0 0 round var(--radius)); animation: unveil 1.4s var(--ease) 0.45s forwards; }
.motion .hero__media img { transform: scale(1.12); animation: settle 2s var(--ease) 0.45s forwards; }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round var(--radius)); } }
@keyframes settle { to { transform: none; } }

@media (min-width: 861px) {
  /* the wordmark takes its natural height and the photo fills whatever is left of the first screen */
  .hero { min-height: 100dvh; display: grid; grid-template-rows: auto minmax(320px, 1fr); }
  .hero__row { align-items: stretch; }
  .hero__copy { align-self: end; }
  .hero__media { aspect-ratio: auto; height: 100%; }
}
@media (max-width: 860px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4 / 3; }
}

/* ---------- Space (scroll reveal of the room) ---------- */
.space { position: relative; }
.space__pin { position: relative; height: 100dvh; min-height: 560px; overflow: hidden; }
.space__media { position: absolute; inset: 0; }
.space__media img { width: 100%; height: 100%; object-fit: cover; }
.space__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(24 13 9 / 0) 40%, rgb(24 13 9 / 0.68) 100%); }
.space__copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(32px, 6vw, 72px);
  color: var(--photo-ink);
}
.space__copy h2 { max-width: 12ch; }
.space__copy p { margin-top: 16px; max-width: 40ch; font-size: clamp(17px, 1.4vw, 20px); opacity: 0.92; }
.js-space .space__media { clip-path: inset(12% 10% 12% 10% round var(--radius)); }
.js-space .space__copy { opacity: 0; transform: translateY(32px); }
@media (max-width: 860px) {
  .js-space .space__media { clip-path: inset(18% 16px 18% 16px round var(--radius)); }
}

/* ---------- Craft (bean to cup, pans sideways on desktop) ---------- */
.craft { position: relative; }
.craft__pin { min-height: 100dvh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 24px) 0 40px; }
.craft__track {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 72px); width: max-content;
  padding: 0 var(--pad) 0 max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
}
.craft__intro { width: clamp(300px, 30vw, 440px); flex: none; }
.craft__intro p { margin-top: 20px; max-width: 30ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); }
.craft__steps { display: flex; gap: clamp(20px, 2.4vw, 40px); }
.step { width: clamp(260px, 25vw, 380px); flex: none; }
.step:nth-child(even) { transform: translateY(48px); }
.step__pic { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-deep); max-height: 62dvh; }
.step__pic img { width: 100%; height: 100%; object-fit: cover; }
.step h3 { margin-top: 20px; font-size: clamp(22px, 1.9vw, 28px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.step p { margin-top: 8px; max-width: 32ch; color: var(--ink-soft); }

@media (max-width: 860px) {
  .craft__pin { display: block; min-height: 0; padding: 88px 0 40px; }
  .craft__track { display: block; width: auto; padding: 0; }
  .craft__intro { width: auto; padding: 0 var(--pad); }
  .craft__steps {
    margin-top: 32px; padding: 0 var(--pad) 8px; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .craft__steps::-webkit-scrollbar { display: none; }
  .step { width: 76vw; scroll-snap-align: start; }
  .step:nth-child(even) { transform: none; }
}

/* ---------- Menu ---------- */
.menu { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 11vw, 150px); }
.menu__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.menu__media {
  position: sticky; top: calc(var(--nav-h) + 24px);
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-deep);
}
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.menu__media img.is-on { opacity: 1; transform: none; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tabs button {
  height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 15px;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.tabs button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }

.items[hidden] { display: none; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); margin-top: 36px; border-top: 1.5px solid var(--ink); }
.item { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.item h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.item__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.item p { grid-column: 1 / -1; margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; }
.motion .items.is-in .item { animation: fade-up 0.7s var(--ease) both; animation-delay: calc(var(--n, 0) * 0.05s); opacity: 0; transform: translateY(12px); }
.menu__note { margin-top: 24px; font-size: 14px; color: var(--ink-soft); }

@media (max-width: 860px) {
  .menu__grid { grid-template-columns: 1fr; }
  .menu__media { position: relative; top: 0; aspect-ratio: 4 / 3; order: 2; }
  .menu__body { display: contents; }
  .menu__body > h2 { order: 0; }
  .tabs { order: 1; margin-top: 0; }
  .items, .menu__note { order: 3; }
  .items { margin-top: 0; }
  .menu__grid { gap: 20px; }
}
@media (max-width: 560px) {
  .items { grid-template-columns: 1fr; }
}

/* ---------- Cans ---------- */
.cans {
  --cans-bg: var(--matcha);
  background: var(--cans-bg); color: var(--cans-ink);
  transition: background-color 0.9s var(--ease);
  overflow: hidden;
}
.cans[data-flavour="latte"] { --cans-bg: var(--latte); }
.cans__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; min-height: min(92dvh, 860px); padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.cans__copy p { margin-top: 20px; max-width: 34ch; font-size: clamp(17px, 1.4vw, 20px); opacity: 0.86; }
.cans h2 { color: inherit; }
.switch { display: inline-flex; gap: 4px; padding: 5px; margin-top: 32px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; }
.switch button { height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; font-size: 15px; transition: background-color 0.35s, color 0.35s; }
.switch button[aria-pressed="true"] { background: var(--cans-ink); color: var(--cans-bg); }

.cans__stage { position: relative; height: clamp(480px, 72vh, 720px); }
.can {
  position: absolute; bottom: 7%; left: 50%; width: 33%;
  transition: transform 1s var(--ease), filter 1s var(--ease);
  z-index: 1;
}
.can--matcha { transform: translateX(-112%) scale(0.8); }
.can--latte { transform: translateX(12%) scale(0.8); }
.can.is-front { z-index: 2; }
.can--matcha.is-front { transform: translateX(-62%) scale(1); }
.can--latte.is-front { transform: translateX(-38%) scale(1); }
.can:not(.is-front) { filter: saturate(0.85) brightness(0.96); }
.can img { width: 100%; filter: drop-shadow(0 30px 30px rgb(40 22 14 / 0.22)); }
.motion .can__float { animation: float 7s ease-in-out infinite; }
.motion .can--latte .can__float { animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(1.2deg); } }
.cans__shadow { position: absolute; left: 50%; bottom: 3%; width: 54%; height: 7%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgb(40 22 14 / 0.22), transparent); }

@media (max-width: 860px) {
  .cans__grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .cans__stage { height: 440px; }
  .can { width: 34%; }
}

/* ---------- Story ---------- */
.story { padding: clamp(80px, 12vw, 160px) 0; }
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story__copy p { margin-top: 20px; max-width: 38ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); }
.link { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-weight: 600; text-decoration: none; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size 0.45s var(--ease); }
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.link svg { width: 20px; height: 20px; fill: currentColor; }
.story__photos { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 521 / 478; object-fit: cover; background: var(--bg-deep); }
.photo figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.photo--a { grid-column: 1 / 9; grid-row: 1; max-width: 520px; }
.photo--b { grid-column: 6 / 13; grid-row: 1; margin-top: 46%; position: relative; z-index: 1; max-width: 420px; justify-self: end; width: 100%; }
.photo--b img { box-shadow: 0 0 0 8px var(--bg); }
@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
  .photo--a { grid-column: 1 / 11; }
  .photo--b { grid-column: 5 / 13; margin-top: 52%; }
  .photo figcaption { display: none; }
}

/* ---------- Visit ---------- */
.visit { padding: 0 0 clamp(80px, 11vw, 150px); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: stretch; border-top: 1.5px solid var(--ink); padding-top: clamp(48px, 6vw, 80px); }
.visit__addr { display: flex; gap: 12px; margin-top: 32px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.visit__addr svg { width: 24px; height: 24px; fill: currentColor; flex: none; margin-top: 2px; }
.hours { margin-top: 28px; display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--ink-soft); }
.hours dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.hours .is-today dt, .hours .is-today dd { color: var(--ink); font-weight: 700; }
.hours .is-today dt::after { content: ", today"; font-weight: 500; color: var(--ink-soft); }
.visit__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }
.icon-btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow 0.3s, transform 0.4s var(--ease); }
.icon-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.visit__map { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--bg-deep); }
.visit__map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.35) sepia(0.12); }
@media (prefers-color-scheme: dark) { .visit__map iframe { filter: invert(0.9) hue-rotate(180deg) grayscale(0.4) sepia(0.15); } }
@media (max-width: 860px) {
  .visit__grid { grid-template-columns: 1fr; }
  .visit__map, .visit__map iframe { min-height: 340px; }
}

/* ---------- Footer ---------- */
.foot { padding: 0 0 40px; }
.foot__inner { display: grid; justify-items: center; text-align: center; gap: 24px; border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 96px); }
.badge { width: clamp(132px, 14vw, 176px); aspect-ratio: 1; border-radius: 50%; background: #4a2820; color: #ece7dc; display: grid; place-items: center; }
.badge svg { width: 66%; height: auto; fill: currentColor; }
.motion .badge { animation: breathe-soft 8s ease-in-out infinite; }
@keyframes breathe-soft { 0%, 100% { transform: scale(0.97); } 50% { transform: scale(1.03); } }
@media (prefers-color-scheme: dark) { .badge { box-shadow: 0 0 0 1px var(--line); } }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.foot__links a { text-decoration: none; font-weight: 500; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__credit { margin-top: 24px; font-size: 13px; color: var(--ink-soft); }
.foot__credit a { font-weight: 600; }

/* ---------- Reveal on scroll ---------- */
.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.motion .reveal.is-in { opacity: 1; transform: none; }

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