/* ===== Zrnko — collage cut-out coffee roastery ===== */
:root {
  --ink: #1a2230;
  --ink-soft: #2c3850;
  --sand: #efe4c9;
  --sand-deep: #e2d3a9;
  --paper: #faf4e6;
  --coral: #e85d3f;
  --coral-deep: #c84a30;
  --cream: #fbf7ee;
  --line: rgba(26, 34, 48, 0.16);
  --shadow: 0 18px 34px -16px rgba(26, 34, 48, 0.45);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", Menlo, monospace;
  --radius: 2px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 1px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  left: -9999px;
}

/* honeypot */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

/* ===== grain overlay ===== */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  mix-blend-mode: multiply;
}

/* ===== header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark { width: 44px; height: 44px; flex-shrink: 0; }
.logo-word { width: 148px; height: 31px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 2px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 12px;
  min-height: 44px;
}
.cart-link .icon { width: 20px; height: 20px; }
.cart-count {
  background: var(--coral);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: transform 0.25s cubic-bezier(.3,1.6,.6,1);
}
.cart-count.bump { transform: scale(1.4); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.menu-toggle .icon { width: 22px; height: 22px; }

/* ===== footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding: 56px 0 28px;
  margin-top: 90px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(239, 228, 201, 0.22);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .logo-word { filter: invert(1) brightness(2); width: 140px; height: 29px; }
.footer-brand p { color: rgba(239, 228, 201, 0.75); max-width: 300px; font-size: 0.92rem; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(239, 228, 201, 0.85); font-size: 0.92rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.newsletter-form { display: flex; gap: 0; margin-top: 4px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 140px;
  padding: 11px 12px;
  border: 2px solid var(--sand);
  background: transparent;
  color: var(--sand);
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.9rem;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(239,228,201,0.55); }
.newsletter-form button {
  border: 2px solid var(--coral);
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  padding: 0 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  min-height: 44px;
}
.footer-col .form-status { font-size: 0.82rem; margin-top: 8px; min-height: 1.2em; color: var(--sand); }
.footer-col .form-status.ok { color: #bfe3cc; }
.footer-col .form-status.err { color: #f3b9a8; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.85rem;
  color: rgba(239, 228, 201, 0.6);
}
.footer-bottom a { text-decoration: underline; }

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  padding: 13px 26px;
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  background: transparent;
  color: var(--ink);
  isolation: isolate;
  z-index: 0;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: var(--ink);
  transition: left 0.3s ease;
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--cream); }

.btn-primary {
  background: var(--coral);
  border-color: var(--coral-deep);
  color: #fff;
}
.btn-primary::before { background: var(--coral-deep); }
.btn-primary:hover, .btn-primary:focus-visible { color: #fff; }

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.btn-dark::before { background: var(--coral); }

.btn-ghost-light {
  border-color: var(--sand);
  color: var(--sand);
}
.btn-ghost-light::before { background: var(--sand); }
.btn-ghost-light:hover, .btn-ghost-light:focus-visible { color: var(--ink); }

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ===== reveal ===== */
.reveal { opacity: 1; transform: none; }
.reveal.js-hidden { opacity: 0; transform: translateY(26px); }
.reveal.in-view {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1), clip-path 0.7s cubic-bezier(.2,.8,.2,1);
}
.reveal.js-hidden.in-view { }

/* ===== hero ===== */
.hero {
  position: relative;
  padding: 56px 0 90px;
  background: var(--sand);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 6px 12px;
  border-radius: 20px;
  transform: rotate(-2deg);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--coral);
  position: relative;
}
.hero-lede { font-size: 1.1rem; max-width: 480px; color: var(--ink-soft); }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  min-height: 420px;
}
.hero-photo-wrap {
  position: absolute;
  top: 6%;
  right: 4%;
  width: 62%;
  border: 10px solid var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
  clip-path: polygon(2% 4%, 96% 0%, 100% 92%, 6% 100%, 0% 50%);
}
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero-tape {
  position: absolute;
  top: -18px; left: 20px;
  width: 90px; height: 34px;
  z-index: 3;
}
.hero-route {
  position: absolute;
  left: -4%;
  bottom: -6%;
  width: 78%;
  z-index: 2;
}
.hero-badge {
  position: absolute;
  left: 2%;
  top: 4%;
  width: 118px;
  z-index: 4;
}

/* ===== inner page header ===== */
.page-head {
  background: var(--sand);
  padding: 52px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 720px; }
.page-head p { max-width: 560px; font-size: 1.05rem; color: var(--ink-soft); }
.page-head .hero-tag { margin-bottom: 16px; }

/* ===== category filter pills ===== */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-row button {
  border: 2px solid var(--ink);
  background: transparent;
  padding: 9px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.88rem;
  min-height: 44px;
}
.filter-row button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

/* ===== section scaffolding ===== */
section { padding: 70px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-deep);
  display: block;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

.divider { width: 100%; height: 36px; display: block; }
.divider path { fill: var(--sand); }
.divider.flip { transform: rotate(180deg); }
.divider.c-paper path { fill: var(--paper); }
.divider.c-ink path { fill: var(--ink); }
.divider.c-cream path { fill: var(--cream); }

.bean-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* ===== collage marquee / about-strip ===== */
.collage-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.collage-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}
.collage-card:nth-child(2) { transform: rotate(-1.4deg); }
.collage-card:nth-child(3) { transform: rotate(1.2deg); }
.collage-card .icon { width: 34px; height: 34px; color: var(--coral); margin-bottom: 12px; }
.collage-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.collage-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ===== product strip (home preview) ===== */
.strip-wrap { position: relative; }
.product-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.product-strip::-webkit-scrollbar { height: 8px; }
.product-strip::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 8px; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}

.product-card {
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-6px); }
.product-card .thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .tag {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--coral);
  color: #fff;
  padding: 4px 9px;
  border-radius: 12px;
}
.product-card .body { padding: 16px 18px 20px; }
.product-card h3 { font-size: 1.08rem; margin-bottom: 4px; }
.product-card .origin { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 10px; }
.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.price { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; }
.product-card a.card-link { position: absolute; inset: 0; z-index: 1; }
.product-card .add-btn { position: relative; z-index: 2; }

/* ===== flavor compass (signature feature) ===== */
.compass-panel {
  background: var(--ink);
  color: var(--sand);
  border-radius: 4px;
  padding: 44px clamp(20px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.compass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.compass-controls label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  margin-top: 22px;
}
.compass-controls label:first-child { margin-top: 0; }
.compass-controls input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
  height: 28px;
}
.compass-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: rgba(239,228,201,0.6);
  font-family: var(--font-mono);
}
.compass-method { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.compass-method button {
  border: 1.5px solid rgba(239,228,201,0.5);
  background: transparent;
  color: var(--sand);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  min-height: 40px;
}
.compass-method button[aria-pressed="true"] {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
.compass-result {
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  align-items: center;
}
.compass-result .needle-wrap { width: 86px; height: 86px; flex-shrink: 0; }
.compass-result-thumb { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sand); flex-shrink: 0; }
#compassNeedle { transform-origin: 50px 50px; transition: transform 0.5s cubic-bezier(.3,1.3,.4,1); }
.compass-result-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.compass-result-info p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 10px; }
.compass-match-pct { font-family: var(--font-mono); font-weight: 700; color: var(--coral-deep); }

/* ===== timeline / process ===== */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-item { position: relative; padding-top: 50px; }
.process-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sand-deep);
  position: absolute;
  top: -4px; left: 0;
}
.process-item h3 { font-size: 1.05rem; }
.process-item p { font-size: 0.9rem; color: var(--ink-soft); }

/* ===== badge seals row ===== */
.seal-row { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; justify-content: center; }
.seal { width: 112px; height: 112px; }

/* ===== quote / about blocks ===== */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split-block.reverse .media { order: 2; }
.media { position: relative; }
.media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 8px solid var(--paper);
  box-shadow: var(--shadow);
}
.media.tilt-l img { transform: rotate(-2deg); }
.media.tilt-r img { transform: rotate(2deg); }
.media .corner-tape { position: absolute; top: -16px; right: 18px; width: 70px; height: 28px; }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 36px 18px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--coral);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding-bottom: 20px; color: var(--ink-soft); max-width: 640px; }

/* ===== forms ===== */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { background: #fff; }
.field-error { color: var(--coral-deep); font-size: 0.82rem; margin-top: 6px; min-height: 1.1em; }
.field input:invalid[data-touched="true"] { border-color: var(--coral-deep); }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }
.form-status { margin-top: 16px; font-weight: 700; min-height: 1.4em; }
.form-status.ok { color: #2f7a4a; }
.form-status.err { color: var(--coral-deep); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; min-height: auto; accent-color: var(--coral); margin-top: 3px; }

/* ===== product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.product-detail .gallery img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 10px solid var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.product-detail .meta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0; }
.meta-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid var(--ink);
  padding: 6px 12px;
  border-radius: 16px;
}
.notes-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 22px; }
.note-chip { background: var(--sand); padding: 5px 12px; border-radius: 16px; font-size: 0.82rem; }
.qty-row { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.qty-control { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius); }
.qty-control button { width: 44px; height: 44px; background: none; border: none; font-size: 1.2rem; font-weight: 700; }
.qty-control input { width: 46px; text-align: center; border: none; background: none; font-weight: 700; min-height: 44px; }

/* ===== cart page ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 8px; border-bottom: 2px solid var(--ink); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-info { display: flex; gap: 14px; align-items: center; }
.cart-item-info img { width: 64px; height: 64px; object-fit: cover; border: 2px solid var(--paper); box-shadow: var(--shadow); }
.remove-btn { background: none; border: none; color: var(--coral-deep); font-weight: 700; text-decoration: underline; min-height: 44px; padding: 0 6px; }
.cart-summary { background: var(--paper); border: 1px solid var(--line); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 98px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; }
.summary-row.total { font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.empty-cart { text-align: center; padding: 60px 20px; }
.checkout-section { margin-top: 70px; padding-top: 50px; border-top: 2px dashed var(--line); }
.delivery-options { display: grid; gap: 12px; margin-bottom: 22px; }
.delivery-option { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.delivery-option input { margin-top: 3px; accent-color: var(--coral); }
.delivery-option strong { display: block; }
.delivery-option span { font-size: 0.85rem; color: var(--ink-soft); }

/* ===== legal pages ===== */
.legal-content { max-width: 720px; }
.legal-content h2 { font-size: 1.4rem; margin-top: 36px; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--coral-deep); }

/* ===== 404 ===== */
.notfound { text-align: center; padding: 110px 0 120px; }
.notfound svg { width: min(360px, 80vw); height: auto; margin: 0 auto 30px; }
.notfound h1 { font-size: clamp(2.4rem, 7vw, 4rem); }

/* ===== hero route / pin-drop animation ===== */
.route-line {
  stroke-dasharray: 6 7;
  stroke-dashoffset: 300;
  animation: routeDraw 2.4s 0.2s ease forwards;
}
.route-pin {
  transform-origin: center;
  opacity: 0;
  animation: pinDrop 0.6s 2s cubic-bezier(.3,1.6,.5,1) forwards;
}
@keyframes routeDraw { to { stroke-dashoffset: 0; } }
@keyframes pinDrop {
  0% { opacity: 0; transform: translateY(-26px) scale(0.6); }
  60% { opacity: 1; transform: translateY(4px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .route-line { animation: none; stroke-dashoffset: 0; }
  .route-pin { animation: none; opacity: 1; transform: none; }
}

/* ===== continuous subtle element: floating steam ===== */
.steam-float {
  position: absolute;
  width: 60px;
  animation: steamDrift 7s ease-in-out infinite;
}
@keyframes steamDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
  50% { transform: translateY(-14px) rotate(2deg); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .steam-float { animation: none; }
}

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 900;
  background: var(--ink);
  color: var(--sand);
  border: 2px solid var(--coral);
  border-radius: 4px;
  box-shadow: var(--shadow);
  animation: cookieIn 0.4s ease;
}
.cookie-banner.closing { animation: cookieOut 0.25s ease forwards; }
@keyframes cookieIn { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes cookieOut { to { transform: translateY(30px); opacity: 0; } }
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.cookie-banner-inner p { margin: 0; font-size: 0.9rem; max-width: 560px; }
.cookie-banner-inner a { text-decoration: underline; color: var(--sand); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== mobile nav ===== */
@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    top: 78px;
    right: 0;
    bottom: 0;
    width: min(78vw, 320px);
    background: var(--paper);
    border-left: 2px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 28px 24px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
    z-index: 400;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a { padding: 12px 4px; width: 100%; }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; order: -1; }
  .collage-strip { grid-template-columns: repeat(2, 1fr); }
  .split-block, .split-block.reverse { grid-template-columns: 1fr; }
  .split-block.reverse .media { order: 0; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .compass-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .collage-strip { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table td { display: block; border-bottom: none; padding: 6px 4px; }
  .cart-table tr { display: block; border-bottom: 1px solid var(--line); padding: 14px 0; }
}
