/* ==========================================================================
   Tide & Ember - styles
   Warm, tactile, editorial. Paper, ink, sea-teal and ember.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4ebdd;
  --paper-2: #eadcc6;
  --paper-3: #e0cfb4;
  --salt: #fbf7f0;
  --ink: #1f1a17;
  --ink-soft: #4a403a;
  --tide: #0f3b40;
  --tide-2: #174c52;
  --tide-3: #266a6e;
  --foam: #cfe3dc;
  --ember: #d4571b;
  --ember-deep: #a63f0e;
  --ember-glow: #f08a4b;
  --arrow: #d8281c; /* arrows are always red */
  --arrow-on-dark: #ff5442;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --section-y: clamp(72px, 10vw, 132px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --grain-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .92  0 0 0 0 .8  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .2  0 0 0 0 .12  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { /* paper grain over everything, very light */
  content: "";
  position: fixed; inset: 0;
  background-image: var(--grain);
  opacity: .09;
  pointer-events: none;
  z-index: 90;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.coffees :focus-visible, .contact :focus-visible, .gallery :focus-visible, .site-footer :focus-visible { outline-color: var(--ember-glow); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 120;
  text-wrap: balance;
}
.display em, .hero__title em, .brand__name em, .draft__title em { font-style: italic; color: var(--ember-deep); font-weight: 350; }
.display--light { color: var(--salt); }
.display--light em { color: var(--ember-glow); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ember-deep); margin-bottom: 18px;
}
.eyebrow--light { color: var(--ember-glow); }
.eyebrow__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(212, 87, 27, .2); }

.link { color: var(--ember-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 500; }
.link:hover { text-decoration-thickness: 2px; }
.contact .link, .coffees .link { color: var(--ember-glow); }

.arr { width: 1.15em; height: 1.15em; fill: none; stroke: var(--arrow); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--ember { background: var(--tide); color: var(--salt); box-shadow: 0 6px 0 rgba(15, 59, 64, .22); }
.btn--ember .arr { stroke: var(--arrow-on-dark); }
.btn--ember:hover { background: var(--tide-2); box-shadow: 0 8px 0 rgba(15, 59, 64, .22); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { border-color: rgba(251, 247, 240, .6); color: var(--salt); background: transparent; }
.btn--ghost-light:hover { background: var(--salt); color: var(--tide); }
.btn--small { min-height: 42px; padding: 8px 20px; font-size: .95rem; }
/* ember-coloured primary on dark sections */
.contact .btn--ember { background: var(--ember); color: #1a0d05; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.contact .btn--ember:hover { background: var(--ember-glow); }
.contact .btn--ember .arr { stroke: #7a0f08; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: rgba(31, 26, 23, .14); }
.site-header__inner { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: -.01em; font-variation-settings: "opsz" 48; }
.site-nav ul { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; padding: 6px 0; }
.site-nav a:not(.site-nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:not(.site-nav__cta):hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-nav__cta { background: var(--ink); color: var(--paper); padding: 10px 20px !important; border-radius: 999px; transition: background-color .25s, transform .25s var(--ease); }
.site-nav__cta:hover { background: var(--ember-deep); transform: translateY(-1px); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 16px;
    background: transparent; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600;
  }
  .nav-toggle__bars { display: grid; gap: 5px; width: 20px; }
  .nav-toggle__bars i { display: block; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--paper); border-bottom: 1px solid rgba(31, 26, 23, .18);
    padding: 12px var(--gutter) 28px; max-height: calc(100dvh - 72px); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li + li { border-top: 1px solid rgba(31, 26, 23, .12); }
  .site-nav a { display: block; padding: 16px 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
  .site-nav a:not(.site-nav__cta)::after { display: none; }
  .site-nav li:last-child { border: 0; padding-top: 16px; }
  .site-nav__cta { text-align: center; font-family: var(--sans) !important; font-size: 1.05rem !important; font-weight: 600 !important; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); overflow: clip; }
.hero__inner { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.5rem, 1.2rem + 7vw, 7.4rem); line-height: .94; letter-spacing: -.035em; font-variation-settings: "opsz" 144; margin-bottom: 28px; }
.hero__title .line { display: block; }
.hero__title .word { display: inline-block; }
.hero__lede { max-width: 33em; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--ink-soft); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 22px; border-top: 1px solid rgba(31, 26, 23, .2); font-size: .95rem; color: var(--ink-soft); }
.hero__facts strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); margin-right: 4px; }

.hero__figure { position: relative; }
.arch { position: relative; border-radius: 999px 999px 24px 24px; overflow: hidden; aspect-ratio: 3 / 4.2; background: var(--tide); box-shadow: 14px 14px 0 var(--ember), 0 30px 60px rgba(31, 26, 23, .25); }
.arch__img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 62%; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.stamp { position: absolute; width: clamp(104px, 14vw, 168px); left: -8%; bottom: 8%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.stamp__disc { fill: var(--paper); }
.stamp__ring { fill: none; stroke: var(--tide); stroke-width: 1.5; }
.stamp__text { font-family: var(--sans); font-size: 15.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; fill: var(--tide); transform-origin: 100px 100px; animation: spin 28s linear infinite; }
.stamp__sun { fill: var(--ember); }
.stamp__wave { fill: none; stroke: var(--tide); stroke-width: 4; stroke-linecap: round; }
.stamp__wave--soft { opacity: .5; }
.hero__caption { font-size: .85rem; color: var(--ink-soft); margin-top: 28px; max-width: 34ch; font-style: italic; font-family: var(--serif); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__figure { max-width: 440px; margin-inline: auto; width: 100%; }
  .arch { aspect-ratio: 4 / 5; box-shadow: 10px 10px 0 var(--ember), 0 20px 40px rgba(31, 26, 23, .22); margin-right: 10px; }
  .stamp { left: -6px; }
  .hero__facts { gap: 6px 22px; }
}

/* ---------- ticker ---------- */
.ticker { background: var(--ember); color: #1a0d05; overflow: hidden; border-block: 2px solid var(--ink); }
.ticker__track { display: flex; gap: 28px; width: max-content; padding: 14px 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); white-space: nowrap; animation: marquee 48s linear infinite; }
.ticker__track i { font-style: normal; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- story ---------- */
.story { background: var(--paper); }
.story__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story__figure { position: relative; transform: rotate(-1.6deg); background: var(--salt); padding: 14px 14px 18px; box-shadow: 0 24px 50px rgba(31, 26, 23, .22); }
.story__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
.story__figure figcaption { font-family: var(--serif); font-style: italic; font-size: .95rem; padding-top: 12px; color: var(--ink-soft); }
.story__figure::before { content: ""; position: absolute; width: 110px; height: 30px; top: -14px; left: 50%; margin-left: -55px; background: rgba(212, 87, 27, .55); transform: rotate(2deg); mix-blend-mode: multiply; }
.story__text { margin-top: 28px; display: grid; gap: 18px; max-width: 36em; color: var(--ink-soft); }
.dropcap::first-letter { font-family: var(--serif); float: left; font-size: 4.6em; line-height: .8; padding: 6px 10px 0 0; color: var(--ember-deep); font-weight: 500; }
.pull { margin-top: 36px; padding-left: 24px; border-left: 4px solid var(--ember); max-width: 30em; }
.pull p { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.25; font-variation-settings: "opsz" 72; }
.pull footer { margin-top: 12px; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 104px); border-block: 2px solid var(--ink); }
.stat { padding: 28px clamp(12px, 2vw, 28px); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.stat + .stat { border-left: 1px solid rgba(31, 26, 23, .25); }
.stat dt { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.stat dd { font-family: var(--serif); font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5rem); line-height: 1; font-weight: 400; letter-spacing: -.03em; color: var(--ember-deep); font-variation-settings: "opsz" 144; }
.stat .unit { font-size: .45em; letter-spacing: 0; color: var(--ink); }

@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__figure { max-width: 420px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(31, 26, 23, .25); }
}

/* ---------- section heads / waves ---------- */
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 46rem; }
.section-head--split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px 64px; align-items: end; max-width: none; }
.section-head__lede { color: var(--ink-soft); max-width: 34em; margin-top: 20px; }
.section-head--split .section-head__lede { margin-top: 0; }
.coffees .section-head__lede, .gallery .section-head__lede, .contact__lede { color: rgba(251, 247, 240, .82); }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

.wave { position: absolute; left: 0; width: 100%; height: clamp(28px, 4vw, 60px); top: calc(clamp(28px, 4vw, 60px) * -1 + 1px); fill: var(--tide); }

/* ---------- coffees ---------- */
.coffees { background: var(--tide); color: var(--salt); }
.coffees::after { content: ""; position: absolute; inset: 0; background-image: var(--grain-light); opacity: .07; pointer-events: none; }
.coffees > .container { position: relative; z-index: 1; }

.match { background: rgba(251, 247, 240, .06); border: 1px solid rgba(251, 247, 240, .22); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); display: grid; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.match__title { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.6rem; color: var(--ember-glow); }
.match__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.match__group legend { padding: 0; font-weight: 600; margin-bottom: 12px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { pointer-events: none; display: inline-flex; align-items: center; min-height: 46px; padding: 9px 20px; border: 1.5px solid rgba(251, 247, 240, .5); border-radius: 999px; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.choice:hover span { border-color: var(--salt); transform: translateY(-1px); }
.choice input:checked + span { background: var(--salt); color: var(--tide); border-color: var(--salt); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--ember-glow); outline-offset: 3px; }
.match__result { min-height: 1.6em; color: var(--foam); }
.match__result strong { color: var(--ember-glow); }
.match__result button { background: none; border: 0; padding: 0; color: var(--ember-glow); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

.tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--ember) transparent; }
.tab { flex: 1 0 auto; min-width: 150px; display: grid; gap: 2px; text-align: left; padding: 14px 18px; background: transparent; border: 1.5px solid rgba(251, 247, 240, .3); border-radius: 14px; color: var(--salt); scroll-snap-align: start; transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.tab:hover { border-color: var(--salt); transform: translateY(-2px); }
.tab[aria-selected="true"] { background: var(--salt); color: var(--tide); border-color: var(--salt); }
.tab__no { font-size: .75rem; letter-spacing: .14em; font-weight: 600; opacity: .7; }
.tab__name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.tab__tag { font-size: .85rem; opacity: .8; }
.tab.is-match::after { content: "Suggested"; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ember-glow); margin-top: 4px; }
.tab[aria-selected="true"].is-match::after { color: var(--ember-deep); }

.panel {
  --c-bg: #d6e6df; --c-ink: #0f3b40; --c-accent: #2c7a78; --c-soft: rgba(15, 59, 64, .12);
  margin-top: 8px;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  background: var(--c-bg); color: var(--c-ink); border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
  animation: panel-in .55s var(--ease);
  transition: background-color .5s, color .5s;
}
.panel[data-coffee="driftwood"] { --c-bg: #ecd4a6; --c-ink: #3a2410; --c-accent: #b4691a; --c-soft: rgba(58, 36, 16, .13); }
.panel[data-coffee="salt-marsh"] { --c-bg: #e3c3a2; --c-ink: #35190a; --c-accent: #8d4620; --c-soft: rgba(53, 25, 10, .13); }
.panel[data-coffee="night-tide"] { --c-bg: #2b2220; --c-ink: #f4ebdd; --c-accent: #ff8a4c; --c-soft: rgba(244, 235, 221, .16); }
.panel[data-coffee="low-tide"] { --c-bg: #f5cba6; --c-ink: #3b1708; --c-accent: #c2461c; --c-soft: rgba(59, 23, 8, .13); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.panel__figure { position: relative; min-height: 100%; overflow: hidden; }
.panel__figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.panel__body { padding: clamp(24px, 4vw, 52px); display: grid; gap: 14px; align-content: start; }
.panel__badge { justify-self: start; background: var(--c-ink); color: var(--c-bg); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.panel__name { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: 1; letter-spacing: -.025em; font-variation-settings: "opsz" 144; }
.panel__origin { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--c-accent); }
.panel[data-coffee="harbour-light"] .panel__origin { color: #1d5d5a; }
.panel[data-coffee="driftwood"] .panel__origin { color: #8a4f0c; }
.panel[data-coffee="salt-marsh"] .panel__origin { color: #7a3a14; }
.panel[data-coffee="low-tide"] .panel__origin { color: #a63a14; }
.panel__desc { max-width: 38em; opacity: .92; }
.notes { display: flex; flex-wrap: wrap; gap: 8px; }
.notes li { border: 1.5px solid currentColor; border-radius: 999px; padding: 4px 14px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }

.meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 8px; }
.meters div { display: grid; grid-template-columns: 5.6em 1fr; align-items: center; gap: 10px; }
.meters dt { font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.meter { display: flex; gap: 4px; }
.meter i { flex: 1; height: 8px; border-radius: 4px; background: var(--c-soft); transition: background-color .4s; }
.meter i.on { background: var(--c-ink); }
.panel[data-coffee="night-tide"] .meter i.on { background: var(--c-accent); }

.recipe { margin-top: 12px; padding: 18px 20px; border-radius: 16px; background: var(--c-soft); }
.recipe__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.recipe__title { font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; border: 1.5px solid currentColor; }
.seg button { border: 0; background: transparent; color: inherit; padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; min-height: 36px; transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--c-ink); color: var(--c-bg); font-weight: 600; }
.recipe__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.recipe__grid div { display: grid; gap: 2px; }
.recipe__grid dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; opacity: .75; }
.recipe__grid dd { font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; }
.recipe__hint { margin-top: 12px; font-size: .9rem; opacity: .88; }

.note { max-width: 46em; margin-top: 32px; font-size: .92rem; color: var(--ink-soft); }
.note--light { color: rgba(251, 247, 240, .75); }

@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; }
  .panel__figure { min-height: 0; aspect-ratio: 16 / 11; }
  .tab { min-width: 140px; }
  .recipe__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .meters { grid-template-columns: 1fr; }
  .seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; border-radius: 16px; }
  .seg button { padding: 6px 2px; font-size: .8rem; }
  .eyebrow { letter-spacing: .1em; font-size: .72rem; }
  .shot__cap { font-size: .85rem !important; padding: 24px 10px 10px !important; }
}

/* ---------- process ---------- */
.process { background: var(--paper-2); }
.curve { width: 100%; margin-bottom: clamp(32px, 5vw, 64px); overflow: visible; }
.curve__bg { fill: none; stroke: rgba(31, 26, 23, .22); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.curve__fg { fill: none; stroke: var(--ember); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, .05)); transition: stroke-dashoffset .9s var(--ease); }
.curve__marks circle { fill: var(--paper-2); stroke: rgba(31, 26, 23, .4); stroke-width: 2.5; transition: fill .4s, stroke .4s, r .4s; }
.curve__marks circle.on { fill: var(--ember); stroke: var(--ink); }

.process__layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.process__stage { position: sticky; top: 104px; }
.process__frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100dvh - 140px); margin-inline: auto; border-radius: 200px 200px 22px 22px; overflow: hidden; background: var(--ink); box-shadow: 12px 12px 0 var(--ember); }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.stage-img.is-active { opacity: 1; transform: none; }
.steps { display: grid; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-block: 40px; max-width: 34em; opacity: .4; transition: opacity .5s; }
.step.is-active { opacity: 1; }
.step__fig { display: none; }
.step__no { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--ember-deep); }
.step__no span { font-family: var(--sans); font-style: normal; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-left: 8px; color: var(--ink-soft); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.02em; font-variation-settings: "opsz" 120; }
.step p:not(.step__no):not(.step__meta) { color: var(--ink-soft); }
.step__meta { align-self: flex-start; margin-top: 6px; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-top: 2px solid var(--ember); padding-top: 8px; }

@media (max-width: 860px) {
  .process__layout { grid-template-columns: 1fr; }
  .process__stage { display: none; }
  .step { min-height: 0; opacity: 1; padding-block: 28px; margin-inline: auto; width: 100%; }
  .step + .step { border-top: 1px solid rgba(31, 26, 23, .2); }
  .step__fig { display: block; margin-bottom: 8px; }
  .step__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 120px 120px 16px 16px; }
  .curve { max-height: 90px; }
}

/* ---------- gallery ---------- */
.gallery { background: var(--ink); color: var(--salt); }
.gallery::before { content: ""; position: absolute; inset: 0; background-image: var(--grain-light); opacity: .07; pointer-events: none; }
.gallery > .container { position: relative; }
.masonry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 22vw, 270px); grid-auto-flow: dense; gap: clamp(12px, 1.6vw, 20px); }
.masonry li { min-height: 0; }
.masonry .tall { grid-row: span 2; }
.masonry .wide { grid-column: span 2; }
.shot { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--ink-soft); border-radius: 10px; overflow: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, .4); transition: transform .4s var(--ease), box-shadow .4s; text-align: left; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; color: #fff; font-family: var(--serif); font-style: italic; font-size: 1.05rem; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.shot:hover, .shot:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(0, 0, 0, .5); }
.shot:hover img { transform: scale(1.04); }
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }
@media (max-width: 860px) { .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } }
@media (hover: none) { .shot__cap { opacity: 1; transform: none; font-size: .95rem; padding-top: 28px; } }

.lightbox { border: 0; padding: 0; background: transparent; color: var(--salt); width: 100%; max-width: none; max-height: none; height: 100%; }
.lightbox::backdrop { background: rgba(14, 10, 8, .94); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 20px var(--gutter) 24px; gap: 16px; }
.lightbox__close { justify-self: end; background: var(--salt); color: var(--ink); border: 0; padding: 10px 22px; border-radius: 999px; font-weight: 600; min-height: 44px; }
.lightbox__fig { display: grid; grid-template-rows: 1fr auto; min-height: 0; gap: 14px; justify-items: center; }
.lightbox__fig img { max-width: 100%; max-height: 100%; min-height: 0; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox__fig figcaption { font-family: var(--serif); font-style: italic; font-size: 1.15rem; text-align: center; }
.lightbox__count { font-family: var(--sans); font-style: normal; font-size: .85rem; opacity: .7; margin-left: 10px; }
.lightbox__nav { display: flex; justify-content: center; gap: 16px; }
.lightbox__btn { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(251, 247, 240, .6); background: transparent; display: grid; place-items: center; transition: background-color .2s; }
.lightbox__btn .arr { stroke: var(--arrow-on-dark); width: 26px; height: 26px; }
.lightbox__btn:hover { background: rgba(251, 247, 240, .14); }
.lightbox:focus-visible, .lightbox button:focus-visible { outline-color: var(--ember-glow); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 112px; display: grid; gap: 18px; justify-items: start; }
.faq__head .eyebrow { margin-bottom: 0; }
.qa { border-top: 1px solid rgba(31, 26, 23, .3); }
.qa:last-child { border-bottom: 1px solid rgba(31, 26, 23, .3); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); line-height: 1.2; font-variation-settings: "opsz" 60; min-height: 44px; transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform .35s var(--ease), background-color .25s; }
.qa summary:hover { color: var(--ember-deep); }
.qa[open] summary::after { transform: rotate(45deg); background-color: var(--ember); border-color: var(--ember); }
.qa__a { padding: 0 56px 26px 0; color: var(--ink-soft); max-width: 40em; animation: qa-in .4s var(--ease); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .qa__a { padding-right: 0; }
}

/* ---------- contact ---------- */
.contact { background: var(--tide); color: var(--salt); }
.contact::after { content: ""; position: absolute; inset: 0; background-image: var(--grain-light); opacity: .07; pointer-events: none; }
.contact > .container { position: relative; z-index: 1; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact__lede { max-width: 30em; margin-top: 22px; }
.contact__figure { margin-top: 36px; border-radius: 200px 200px 20px 20px; overflow: hidden; max-width: 340px; box-shadow: 12px 12px 0 var(--ember); }
.contact__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.contact__card { background: var(--paper); color: var(--ink); border-radius: 26px; padding: clamp(22px, 4vw, 44px); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.draft { display: grid; gap: 18px; }
.draft__title { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.draft__honest { background: var(--paper-2); border-left: 4px solid var(--ember); padding: 14px 16px; border-radius: 4px 12px 12px 4px; font-size: .95rem; color: var(--ink-soft); }
.draft__honest strong { color: var(--ink); }
.field { display: grid; gap: 6px; min-width: 0; }
.field--row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid rgba(31, 26, 23, .55); border-radius: 12px; background: var(--salt); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--tide); box-shadow: 0 0 0 3px rgba(212, 87, 27, .45); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__err { color: #a3190f; font-weight: 600; font-size: .9rem; }
.draft__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .draft__actions .btn--ghost-light { border-color: var(--ink); color: var(--ink); }
.contact .draft__actions .btn--ghost-light:hover { background: var(--ink); color: var(--paper); }
.contact .contact__card .btn--ember { background: var(--tide); color: var(--salt); }
.contact .contact__card .btn--ember:hover { background: var(--tide-2); }
.contact .contact__card .btn--ember .arr { stroke: var(--arrow-on-dark); }
.contact .contact__card .link { color: var(--ember-deep); }
.contact .contact__card :focus-visible { outline-color: var(--ember); }
.draft__status { min-height: 1.5em; font-weight: 600; color: var(--tide-2); }
.contact__facts { display: grid; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(31, 26, 23, .25); }
.contact__facts div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; }
.contact__facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink-soft); padding-top: 3px; }
.contact__facts dd { overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__figure { max-width: 300px; }
  .contact__figure { display: none; }
}
@media (max-width: 560px) {
  .field--row { grid-template-columns: 1fr; }
  .contact__facts div { grid-template-columns: 1fr; gap: 2px; }
  .draft__actions .btn { width: 100%; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(251, 247, 240, .8); padding-block: 56px; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.brand--footer { color: var(--salt); margin-bottom: 18px; }
.brand--footer .brand__name em { color: var(--ember-glow); }
.site-footer__small { max-width: 34em; font-size: .92rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; }
.site-footer__links a { text-decoration: none; padding: 6px 0; display: inline-block; }
.site-footer__links a:hover { color: var(--ember-glow); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__links { justify-content: flex-start; }
}

/* ---------- reveal + hero load animation (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .story__figure.reveal { transform: translateY(26px) rotate(-1.6deg); }
.js .story__figure.reveal.in { transform: rotate(-1.6deg); }
.js .hero__title .word { opacity: 0; transform: translateY(.6em); animation: word-in .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
.js .hero__lede, .js .hero__actions, .js .hero__facts, .js .eyebrow--hero { opacity: 0; animation: fade-up .9s var(--ease) forwards; }
.js .hero__lede { animation-delay: .6s; }
.js .hero__actions { animation-delay: .72s; }
.js .hero__facts { animation-delay: .84s; }
.js .hero .arch { clip-path: inset(100% 0 0 0 round 999px 999px 24px 24px); animation: arch-up 1.3s var(--ease) .15s forwards; }
@keyframes word-in { to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes arch-up { to { clip-path: inset(0 0 0 0 round 999px 999px 24px 24px); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker__track { animation: none !important; transform: none !important; flex-wrap: wrap; width: auto; white-space: normal; padding-inline: var(--gutter); }
  .stamp__text { animation: none !important; }
  .js .reveal, .js .hero__title .word, .js .hero__lede, .js .hero__actions, .js .hero__facts { opacity: 1 !important; transform: none !important; }
  .js .story__figure.reveal { transform: rotate(-1.6deg) !important; }
  .js .hero .arch { clip-path: none !important; }
  .arch__img { transform: none !important; height: 100%; }
}

/* ---------- credits page ---------- */
.credits { max-width: 52rem; }
.credits__lede { margin: 24px 0 40px; color: var(--ink-soft); }
.credits__list { display: grid; gap: 0; }
.credits__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 12px 0; border-top: 1px solid rgba(31, 26, 23, .2); }
.credits__list li:last-child { border-bottom: 1px solid rgba(31, 26, 23, .2); }
.credits__list a { color: var(--ember-deep); font-weight: 500; }
.credits__list span { color: var(--ink-soft); }
