/* =====================================================================
   TIDEKIND — Maine Kelp Thins storefront
   The fold is built on a 1536 x 1024 reference grid (the mockup).
   1rem = 16px at a 1536px-wide viewport, so every fold measurement is
   simply (mockup px / 16) rem and the whole fold scales with the window.
   ===================================================================== */

:root {
  --paper:   #fcf3dd;
  --paper-2: #f8efdc;
  --card:    #fcf4e5;
  --navy:    #0b2a4b;
  --navy-2:  #153a5e;
  --navy-3:  #163a5e;
  --link:    #0f4a7a;
  --red:     #d1331c;
  --yellow:  #f0b123;
  --gold:    #e0a11e;
  --teal:    #6fa39a;
  --ink:     #172433;
  --blue:    #1e57a3;
  --f-display: "Anton", "Oswald", Impact, "Arial Narrow", sans-serif;
  --f-cond:    "Oswald", "Arial Narrow", sans-serif;
  --f-body:    "Figtree", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(.2,.8,.2,1);
}

html { font-size: calc(100vw / 96); scroll-behavior: smooth; }
@media (min-width: 1900px) { html { font-size: 19.8px; } }
@media (max-width: 900px)  { html { font-size: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  background-image: linear-gradient(180deg, #fcf2d9 0%, #fdf5df 60%, #f9efdb 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.logo-squiggle use, .hero-squiggle use, .reviews-squiggle use { stroke-width: inherit; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }

/* paper grain over the whole page */
.paper {
  pointer-events: none; position: fixed; inset: 0; z-index: 50;
  opacity: .09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 260px 260px;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.header-shell { position: relative; width: 96rem; max-width: 100%; margin: 0 auto; height: 8rem; z-index: 20; }
body.home .header-shell { height: 0; }
.site-header { position: absolute; top: 0; left: 0; width: 96rem; height: 8rem; z-index: 20; }
.nav-link[aria-current="page"] { position: relative; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.15rem; height: 2px; background: var(--red); }
.menu-all { border-top: 1.5px solid rgba(11,42,75,.18); margin-top: .3rem; padding-top: .6rem !important; color: var(--link) !important; }
.cart-buoy.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1) rotate(0deg); } 35% { transform: scale(1.09) rotate(-3deg); } 70% { transform: scale(.98) rotate(2deg); } 100% { transform: scale(1) rotate(0deg); } }
.logo { position: absolute; left: 2.5rem; top: 1.25rem; display: block; text-decoration: none; }
.logo img { display: block; width: 15.75rem; height: auto; }
/* the footer still sets the wordmark in type - it sits on navy, not paper */
.logo-word {
  display: block; font-family: var(--f-display); font-size: 4.56rem; line-height: 1;
  letter-spacing: .015em; color: var(--navy);
}

.nav { position: absolute; left: 30.35rem; top: 2.28rem; display: flex; gap: 0; align-items: center; }
.nav-link {
  font-family: var(--f-cond); font-weight: 600; font-size: 1.09rem; letter-spacing: .073em;
  color: var(--navy); text-decoration: none; background: none; border: 0; padding: .4rem 0;
  display: inline-flex; align-items: center; gap: .45rem;
}
.nav-item { position: relative; }
.nav > .nav-link:nth-child(2) { margin-left: 3.1rem; }
.nav > .nav-link:nth-child(3) { margin-left: 3.9rem; }
.nav > .nav-link:nth-child(4) { margin-left: 3.8rem; }
.chev { width: .8rem; height: .55rem; }
.menu {
  position: absolute; left: -1rem; top: 2.6rem; min-width: 12.5rem; padding: .5rem;
  background: var(--card); border: 2px solid var(--navy); border-radius: .5rem;
  box-shadow: 0 .8rem 2rem rgba(11,42,75,.18); display: none; flex-direction: column;
}
.nav-item.open .menu { display: flex; }
.menu a {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: .3rem;
  font-family: var(--f-cond); font-weight: 600; letter-spacing: .04em; font-size: 1rem; text-decoration: none; color: var(--navy);
}
.menu a:hover { background: rgba(11,42,75,.08); }
.menu i { width: .8rem; height: .8rem; border-radius: 50%; background: var(--c); }

.cart-buoy {
  position: absolute; left: 84.4rem; top: 0; width: 11.4rem; height: 13.9rem;
  background: none; border: 0; padding: 0;
  transform-origin: 60% 0; animation: sway 6s ease-in-out infinite;
}
.cart-buoy img { width: 100%; height: 100%; object-fit: contain; }
.buoy-text {
  position: absolute; left: 1.8125rem; top: 4.5rem; width: 7rem; text-align: center;
  font-family: var(--f-cond); font-weight: 700; color: var(--navy); line-height: 1; pointer-events: none;
}
.buoy-label { display: block; font-size: 2.13rem; letter-spacing: .0em; color: #c33a1e; transform: translateX(6px) scaleX(.75); }
.buoy-count { display: block; font-family: var(--f-cond); font-weight: 700; font-size: 2.115rem; margin-top: .43rem; letter-spacing: -.005em; }


@keyframes sway { 0%,100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }

/* ------------------------------------------------------------------ */
/* The fold                                                            */
/* ------------------------------------------------------------------ */
.fold {
  position: relative; width: 96rem; height: 64rem; margin: 0 auto; overflow: hidden;
}

.hero-copy { position: absolute; left: 2.5rem; top: 8.25rem; width: 42rem; z-index: 5; }
/* The headline is lifted from the artwork: hand-drawn face, its tilt, the
   letterpress speckle and the brush rule under it. No web font carries that. */
.hero-title { margin: 0; line-height: 0; }
.hero-title img { display: block; width: 33.125rem; height: auto; }
.hero-sub {
  margin: -.025rem 0 0 2.0625rem; font-family: var(--f-body); font-weight: 700; font-size: 1.412rem;
  line-height: 1.345; color: var(--navy); letter-spacing: -.005em;
}
.btn-cta {
  display: inline-flex; align-items: center; gap: .7rem;
  position: relative; margin: 1.965rem 0 0 2.125rem; padding: 0 1.6rem; height: 3.06rem; min-width: 16.75rem; justify-content: center;
  color: var(--navy); text-decoration: none; background: none;
  font-family: var(--f-cond); font-weight: 700; font-size: 1.06rem; letter-spacing: .085em;
  border: 0; transition: transform .25s var(--ease-out);
}
.btn-cta > * { position: relative; z-index: 1; }
.btn-cta::before {
  content: ""; position: absolute; inset: 0; background: var(--yellow); border-radius: .2rem;
  filter: url(#rough); transition: background .25s;
}
.btn-cta:hover { transform: translateY(-2px); }
.btn-cta:hover::before { background: #f5bb2b; }
.btn-cta .ico { width: 1.25em; height: 1.25em; }

/* scene: three plates, so a hovering pouch never drags the set with it.
   background (1) the kelp, salt and water  ->  bags (2) hovering  ->  props (3)
   the lime, the chilli, a kelp ribbon and the maple leaf, which stay put.
   Every measurement is scene px / 16, on the 1016 x 604.8 hero box. */
.hero-scene { position: absolute; left: 32.5rem; top: 5.94rem; width: 63.5rem; height: 37.8rem; z-index: 2; }
.scene-base { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.bags  { position: absolute; inset: 0; z-index: 2; }
.props { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.bag { position: absolute; display: block; transform: rotate(var(--tilt)); transition: transform .45s var(--ease-out); }
.bag img { display: block; width: 100%; height: auto; filter: drop-shadow(0 .7rem .6rem rgba(10,30,50,.26)); will-change: transform; }
/* percentages of the scene box, so one set of numbers works at every width */
/* Spaced so no pouch ever crops its neighbour. The wordmark runs nearly the full
   width of these packs, so even a small overlap eats a letter. */
.bag-blue   { --tilt: -8.5deg; left:  6.90%; top: 27.30%; width: 27.00%; }
.bag-red    { --tilt: -1.5deg; left: 35.15%; top: 26.60%; width: 25.60%; }
.bag-yellow { --tilt:  6.5deg; left: 62.80%; top: 28.10%; width: 25.60%; }
.bag-blue   img { animation: floatA 6.4s ease-in-out infinite; transform-origin: 50% 85%; }
.bag-red    img { animation: floatB 7.6s ease-in-out -2.3s infinite; transform-origin: 50% 85%; }
.bag-yellow img { animation: floatC 8.4s ease-in-out -4.7s infinite; transform-origin: 50% 85%; }
.bag.lift { transform: rotate(var(--tilt)) translateY(-.5rem) scale(1.025); }
.bag.lift img { filter: drop-shadow(0 1.1rem .9rem rgba(10,30,50,.32)); }

@keyframes floatA {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(0, -.62rem, 0) rotate(-.65deg); }
}
@keyframes floatB {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  46%      { transform: translate3d(.1rem, -.86rem, 0) rotate(.5deg); }
}
@keyframes floatC {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  56%      { transform: translate3d(-.12rem, -.7rem, 0) rotate(-.45deg); }
}

/* Each prop gets a fixed box and is contained inside it, so swapping in a
   variant with a different aspect - a lime wheel for a wedge, a narrow kelp
   blade for a curl - keeps the same footprint. */
.prop {
  position: absolute; background-repeat: no-repeat; background-position: center;
  background-size: contain; filter: drop-shadow(0 .3rem .35rem rgba(10,30,50,.24));
}

/* Where each prop sits, and which variant it uses. One rule per piece, so any
   piece can take any variant independently - lime from set a, chilli from b.
   Variant prefixes: a = fg-, b = fgb-, c = fgc-, d = fgd-, e = fge-, f = fgf-,
   g = fgg-. The layout editor at /layout.html writes these rules for you. */
.prop-kelp  { left:  4.65%; top: 75.50%; width:  9.80%; height: 20.48%; transform: rotate(-3.5deg);
              background-image: url("../assets/fgb-kelp-frond.webp"); }
.prop-lime  { left: 31.70%; top: 27.30%; width: 11.40%; height: 13.70%; transform: rotate(90.0deg);
              background-image: url("../assets/fgc-lime.webp"); }
.prop-chili { left: 53.90%; top: 74.80%; width:  8.73%; height: 22.70%; transform: rotate(21.5deg);
              background-image: url("../assets/fge-chili.webp"); }
.prop-leaf  { left: 76.70%; top: 82.00%; width: 11.00%; height: 20.00%; transform: rotate(26.5deg);
              background-image: url("../assets/fg-maple-leaf.webp"); }

.wave-band { position: absolute; left: 0; top: 38.375rem; width: 96rem; height: 10.875rem; z-index: 3; pointer-events: none; }

/* flavor wheel: the dial lifted straight out of the artwork, spun on click */
.flavor-wheel { position: absolute; left: 41.75rem; top: 39.25rem; width: 12.3125rem; height: 12.3125rem; z-index: 6; }
.wheel-face {
  width: 100%; height: 100%; border-radius: 50%;
  filter: drop-shadow(0 .3rem .7rem rgba(11,42,75,.22));
  transition: transform .75s var(--ease-out);
}
.wheel-hit { position: absolute; inset: 0; border-radius: 50%; background: none; border: 0; }
.wheel-hit:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.flavor-wheel:hover .wheel-face { filter: drop-shadow(0 .45rem .9rem rgba(11,42,75,.3)); }

/* story */
.story { position: absolute; left: 0; top: 0; width: 26rem; height: 64rem; z-index: 4; }
.kelp-left { position: absolute; left: .625rem; top: 46.75rem; width: 8rem; height: 15.4375rem; animation: sway 8s ease-in-out infinite; transform-origin: 50% 100%; }
.story-title {
  position: absolute; left: 8.72rem; top: 47.37rem; margin: 0;
  font-family: var(--f-cond); font-weight: 700; font-size: 1.553rem; line-height: 1.461; color: var(--navy); letter-spacing: .012em;
}
.story-text {
  position: absolute; left: 8.83rem; top: 52.87rem; width: 17.6rem; margin: 0;
  font-family: var(--f-body); font-weight: 500; font-size: .885rem; line-height: 1.42; color: var(--ink);
}
.story-link {
  position: absolute; left: 8.83rem; top: 59.03rem; text-decoration: none;
  font-family: var(--f-cond); font-weight: 600; font-size: .976rem; letter-spacing: .055em; color: var(--link);
  display: inline-flex; align-items: center; gap: .5rem;
}
.story-link .ico { width: 1.2em; height: 1.2em; }

.map { position: absolute; left: 20.3rem; top: 48.4rem; width: 28.75rem; z-index: 3; }

/* reviews */
.reviews { position: absolute; left: 50.8125rem; top: 47.5rem; width: 38.6rem; height: 12rem; z-index: 4; }
.reviews-title {
  position: absolute; left: 7.0625rem; top: 1rem; margin: 0;
  font-family: var(--f-cond); font-weight: 700; font-size: 1.229rem; letter-spacing: .03em; color: var(--navy);
}
.reviews-squiggle { position: absolute; left: 6.99rem; top: 3.3125rem; display: block; width: 13.7rem; height: .375rem; color: var(--navy); stroke-width: 2.1px; }
/* The reviews are invented, so the page has to say so next to them - the footer
   notice is twelve screens down and discloses nothing here. Absolutely
   positioned in the gap between the squiggle and the cards, so the measured
   hero does not move. It sat right of the heading first and the seagull
   illustration ran straight through it. */
.reviews-note {
  position: absolute; left: 0; top: 3.78rem; width: 24rem; margin: 0;
  font-family: var(--f-body); font-size: .6rem; font-style: italic;
  line-height: 1.3; color: #5b6b7a; white-space: nowrap;
}
.review-cards { position: absolute; left: 0; top: 4.625rem; list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
.review {
  width: 12rem; height: 9.875rem; padding: 1.25rem 1.2rem 1.56rem; background: var(--card); border-radius: .5rem;
  box-shadow: 0 .35rem .75rem rgba(11,42,75,.11), 0 0 0 1px rgba(11,42,75,.045);
  display: flex; flex-direction: column;
}
.stars { display: flex; gap: 0; color: var(--red); }
.stars svg { width: 1.4rem; height: 1.4rem; margin-right: -.18rem; }
.review p { margin: .72rem 0 0; font-family: var(--f-body); font-weight: 500; font-size: .82rem; line-height: 1.62; color: var(--navy-3); }
.review cite { margin-top: auto; font-style: normal; font-family: var(--f-cond); font-weight: 600; font-size: .68rem; letter-spacing: .07em; color: #2b5f93; }

.seagull { position: absolute; left: 84.4rem; top: 49.1rem; width: 11.6rem; z-index: 3; }

/* ------------------------------------------------------------------ */
/* Sections below the fold                                             */
/* ------------------------------------------------------------------ */
.wrap { width: min(86rem, 100% - 3rem); margin: 0 auto; }
.section { padding: 6rem 0; position: relative; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.eyebrow { margin: 0 0 .6rem; font-family: var(--f-cond); font-weight: 600; font-size: .9rem; letter-spacing: .14em; color: var(--red); }
.display { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 3.6rem; line-height: .95; color: var(--navy); letter-spacing: .005em; }
.squig { display: block; width: 12rem; height: .8rem; margin: .9rem 0 0; color: var(--navy); }
.lede { margin: 1.4rem 0 0; font-size: 1.1rem; line-height: 1.55; color: var(--ink); max-width: 38rem; }
.section-head.light .eyebrow { color: var(--yellow); }
.section-head.light .display, .section-head.light .squig { color: var(--paper); }

/* shop */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.product {
  position: relative; background: var(--card); border-radius: .8rem; padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: 0 .2rem .7rem rgba(11,42,75,.10), 0 0 0 1px rgba(11,42,75,.06);
  display: flex; flex-direction: column; gap: .5rem; overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(11,42,75,.16), 0 0 0 1px rgba(11,42,75,.06); }
.product::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: .5rem; background: var(--c); }
.product-media { height: 16rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-media img { height: 100%; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 .8rem .8rem rgba(11,42,75,.18)); animation: float 6s ease-in-out infinite; }
.product:nth-child(2) .product-media img { animation-delay: -2s; }
.product:nth-child(3) .product-media img { animation-delay: -4s; }
.product-media .pack { height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.product-media .pack img { height: 76%; width: auto; margin: 0 -1.9rem; }
.product-media .pack img:nth-child(2) { height: 90%; position: relative; z-index: 1; animation-delay: -3s; }
.product h3 a { color: inherit; text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }
.product h3 { margin: .4rem 0 0; font-family: var(--f-cond); font-weight: 700; font-size: 1.45rem; letter-spacing: .03em; color: var(--navy); }
.product .tag { margin: 0; font-size: .95rem; color: var(--ink); line-height: 1.4; min-height: 2.7rem; }
.product .price { font-family: var(--f-cond); font-weight: 600; font-size: 1.15rem; color: var(--navy); margin-top: .3rem; }
.product .price small { font-weight: 500; font-size: .8rem; color: #5b6b7a; margin-left: .3rem; }
.product .actions { display: flex; gap: .6rem; margin-top: .6rem; }
.btn-navy {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--navy); color: var(--paper); border: 0; border-radius: .35rem; padding: 0 1.3rem; height: 3rem;
  font-family: var(--f-cond); font-weight: 700; letter-spacing: .07em; font-size: .95rem; text-decoration: none;
  transition: background .2s, transform .25s var(--ease-out);
}
.btn-navy:hover { background: var(--navy-3); transform: translateY(-1px); }
.btn-navy.wide, .btn-cta.wide { width: 100%; }
.btn-ghost {
  background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: .35rem; padding: 0 1rem; height: 3rem;
  font-family: var(--f-cond); font-weight: 600; letter-spacing: .06em; font-size: .9rem;
}
.btn-ghost:hover { background: rgba(11,42,75,.07); }
.ship-note { margin: 2rem 0 0; text-align: center; color: var(--ink); font-size: 1rem; }

/* our kelp */
.kelp { background: var(--navy-2); color: var(--paper); }
.kelp::before, .kelp::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3rem; background: var(--navy-2);
}
.kelp::before { top: -2.9rem; clip-path: polygon(0 100%, 10% 55%, 22% 85%, 35% 40%, 48% 80%, 60% 35%, 72% 75%, 85% 45%, 100% 70%, 100% 100%); }
.kelp::after  { bottom: -2.9rem; clip-path: polygon(0 0, 100% 0, 100% 30%, 88% 65%, 74% 20%, 62% 60%, 50% 25%, 38% 70%, 26% 30%, 12% 60%, 0 40%); }
.kelp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.kelp-num { font-family: var(--f-display); font-size: 3rem; color: var(--yellow); line-height: 1; }
.kelp-grid h3 { margin: .8rem 0 .5rem; font-family: var(--f-cond); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; }
.kelp-grid p { margin: 0; line-height: 1.55; color: #d9e4ee; font-size: 1rem; }
.stats { list-style: none; margin: 3.5rem 0 0; padding: 2rem 0 0; border-top: 2px solid rgba(251,242,220,.2); display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.stats strong { display: block; font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--yellow); }
.stats span { display: block; margin-top: .3rem; font-family: var(--f-cond); letter-spacing: .06em; font-size: .9rem; color: #d9e4ee; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: start; }
.about-copy p { line-height: 1.6; font-size: 1.05rem; margin: 1.2rem 0 0; }
.about-copy .sig { font-family: var(--f-cond); font-weight: 600; letter-spacing: .05em; color: var(--navy); }
.timeline { list-style: none; margin: .5rem 0 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--teal); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.2rem; line-height: 1.5; }
.timeline li::before { content: ""; position: absolute; left: -1.95rem; top: .45rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--paper); }
.timeline span { display: block; font-family: var(--f-cond); font-weight: 600; font-size: .8rem; letter-spacing: .12em; color: var(--red); }
.timeline b { display: block; font-family: var(--f-cond); font-weight: 700; font-size: 1.25rem; color: var(--navy); letter-spacing: .02em; }

/* find us */
.stockists { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem 2rem; }
.stockists li { padding: 1.2rem 0; border-top: 2px solid rgba(11,42,75,.15); }
.stockists b { display: block; font-family: var(--f-cond); font-weight: 700; font-size: 1.3rem; letter-spacing: .03em; color: var(--navy); }
.stockists span { display: block; margin-top: .3rem; line-height: 1.5; color: var(--ink); }
.newsletter { margin: 3.5rem auto 0; max-width: 34rem; text-align: center; }
.newsletter label { display: block; font-family: var(--f-cond); font-weight: 700; font-size: 1.5rem; letter-spacing: .03em; color: var(--navy); }
.newsletter .row { display: flex; gap: .6rem; margin-top: 1rem; }
.newsletter input, .co-form input {
  flex: 1; height: 3rem; border: 2px solid var(--navy); border-radius: .35rem; background: #fff; padding: 0 1rem; font: inherit; font-size: 1rem; color: var(--ink);
}
.newsletter input:focus, .co-form input:focus { outline: 3px solid rgba(240,177,35,.6); outline-offset: 1px; }
.tiny { font-size: .85rem; color: #5b6b7a; margin: .8rem 0 0; }

/* footer */
.site-footer { background: var(--navy); color: var(--paper); padding: 4rem 0 2rem; margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.foot-brand .logo-word { color: var(--paper); font-size: 2.6rem; }
.foot-brand { position: relative; }
.foot-squig { position: static !important; display: block; color: var(--yellow); width: 11rem; height: .55rem; margin: .1rem 0 .8rem; stroke-width: 2.4px; }
.foot-brand p { max-width: 22rem; line-height: 1.5; color: #d9e4ee; }
.site-footer h4 { margin: 0 0 .8rem; font-family: var(--f-cond); font-weight: 700; letter-spacing: .12em; font-size: .9rem; color: var(--yellow); }
.site-footer a { display: block; text-decoration: none; color: #d9e4ee; padding: .25rem 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(251,242,220,.2); font-size: .85rem; color: #b8c7d6; }

/* ------------------------------------------------------------------ */
/* Mini sticky bar                                                     */
/* ------------------------------------------------------------------ */
.minibar {
  position: fixed; top: 0; left: 0; right: 0; height: 3.6rem; z-index: 60;
  display: flex; align-items: center; gap: 1.5rem; padding: 0 2rem;
  background: rgba(251,242,220,.92); backdrop-filter: blur(8px); border-bottom: 2px solid var(--navy);
  transform: translateY(-110%); transition: transform .35s var(--ease-out);
}
.minibar.show { transform: none; }
.minibar-logo { font-family: var(--f-display); font-size: 1.6rem; color: var(--navy); text-decoration: none; margin-right: auto; }
.minibar-link { font-family: var(--f-cond); font-weight: 600; letter-spacing: .06em; color: var(--navy); text-decoration: none; }
.minibar-cart { background: var(--navy); color: var(--paper); border: 0; border-radius: .3rem; padding: .45rem .9rem; font-family: var(--f-cond); font-weight: 700; letter-spacing: .06em; }
.minibar-cart span { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; margin-left: .4rem; border-radius: 50%; background: var(--yellow); color: var(--navy); font-size: .8rem; }

/* ------------------------------------------------------------------ */
/* Cart drawer                                                         */
/* ------------------------------------------------------------------ */
.scrim { position: fixed; inset: 0; background: rgba(11,42,75,.45); z-index: 70; opacity: 0; transition: opacity .3s; }
.scrim.show { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(28rem, 100%); z-index: 80;
  background: var(--paper); border-left: 3px solid var(--navy); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .4s var(--ease-out); box-shadow: -1rem 0 3rem rgba(11,42,75,.25);
}
.cart.show { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem 1rem; border-bottom: 2px solid rgba(11,42,75,.12); }
.cart-head h2 { margin: 0; font-family: var(--f-display); font-size: 1.8rem; color: var(--navy); letter-spacing: .01em; }
.cart-head h2 span { font-family: var(--f-cond); font-weight: 500; font-size: .9rem; color: #5b6b7a; margin-left: .5rem; letter-spacing: .04em; }
.x { background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--navy); padding: .2rem .5rem; }
.ship-bar { padding: 1rem 1.5rem 0; }
.ship-track { height: .55rem; border-radius: 1rem; background: rgba(11,42,75,.12); overflow: hidden; }
.ship-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--yellow)); transition: width .5s var(--ease-out); }
.ship-bar p { margin: .5rem 0 0; font-size: .85rem; color: var(--ink); }
.cart-lines { list-style: none; margin: 0; padding: .5rem 1.5rem; overflow: auto; flex: 1; }
.line { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(11,42,75,.12); }
.line img { width: 4.2rem; height: 5.4rem; object-fit: contain; filter: drop-shadow(0 .3rem .4rem rgba(11,42,75,.2)); }
.line b { display: block; font-family: var(--f-cond); font-weight: 700; font-size: 1.05rem; color: var(--navy); letter-spacing: .02em; }
.line small { display: block; color: #5b6b7a; font-size: .8rem; margin-top: .1rem; }
.line .qty { margin-top: .5rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--navy); border-radius: .35rem; overflow: hidden; }
.qty button { width: 2rem; height: 2rem; background: none; border: 0; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.qty button:hover { background: rgba(11,42,75,.08); }
.qty output { min-width: 2rem; text-align: center; font-family: var(--f-cond); font-weight: 600; }
.line .amt { font-family: var(--f-cond); font-weight: 600; color: var(--navy); text-align: right; }
.line .rm { display: block; margin-top: .4rem; background: none; border: 0; font-size: .75rem; color: #8a5a4a; text-decoration: underline; padding: 0; }
.cart-empty { padding: 3rem 1.5rem; text-align: center; }
.cart-empty p { font-family: var(--f-cond); font-size: 1.3rem; color: var(--navy); }
.cart-foot { padding: 1rem 1.5rem 1.5rem; border-top: 2px solid rgba(11,42,75,.12); background: var(--card); }
.cart-foot .row { display: flex; justify-content: space-between; font-family: var(--f-cond); font-size: 1.15rem; color: var(--navy); }
.cart-foot .tiny { margin: .3rem 0 .9rem; }

/* ------------------------------------------------------------------ */
/* Modals                                                              */
/* ------------------------------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1.5rem; background: rgba(11,42,75,.5); opacity: 0; transition: opacity .25s; }
.modal.show { opacity: 1; }
.modal-card {
  position: relative; width: min(58rem, 100%); max-height: calc(100vh - 3rem); overflow: auto;
  background: var(--paper); border: 3px solid var(--navy); border-radius: 1rem;
  display: grid; grid-template-columns: 1fr 1.2fr; transform: translateY(1rem) scale(.98); transition: transform .3s var(--ease-out);
}
.modal.show .modal-card { transform: none; }
.modal-card .x { position: absolute; right: .6rem; top: .4rem; z-index: 2; }
.modal-media { background: var(--c, var(--card)); display: grid; place-items: center; padding: 2.5rem; }
.modal-media img { width: 100%; max-height: 26rem; object-fit: contain; filter: drop-shadow(0 1.2rem 1.2rem rgba(0,0,0,.28)); animation: float 6s ease-in-out infinite; }
.modal-body { padding: 2.2rem 2.2rem 2rem; }
.modal-body h2 { margin: 0; font-family: var(--f-display); font-size: 2.8rem; line-height: 1; color: var(--navy); }
.modal-tag { margin: .5rem 0 0; font-family: var(--f-cond); font-weight: 600; font-size: 1.1rem; color: var(--red); letter-spacing: .02em; }
.modal-desc { line-height: 1.55; margin: 1rem 0 0; }
.modal-ingr { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.modal-ingr li { font-family: var(--f-cond); font-size: .8rem; letter-spacing: .06em; padding: .3rem .6rem; border: 1.5px solid var(--navy); border-radius: 2rem; color: var(--navy); }
.sizes { display: flex; gap: .6rem; margin: 1.4rem 0 0; }
.sizes label { flex: 1; border: 2px solid var(--navy); border-radius: .5rem; padding: .7rem .9rem; cursor: pointer; display: block; }
.sizes label:has(:checked) { background: var(--navy); color: var(--paper); }
.sizes input { position: absolute; opacity: 0; pointer-events: none; }
.sizes b { display: block; font-family: var(--f-cond); font-weight: 700; letter-spacing: .04em; }
.sizes small { display: block; font-size: .8rem; opacity: .85; }
.buy-row { display: flex; gap: .8rem; margin-top: 1.4rem; align-items: center; }
.buy-row .btn-cta { margin: 0; flex: 1; justify-content: center; }

.modal-card.checkout { display: block; width: min(40rem, 100%); padding: 2.2rem; }
.co-form h2, .co-done h2 { margin: 0 0 1.2rem; font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--navy); }
.co-form label { display: block; font-family: var(--f-cond); font-weight: 600; font-size: .85rem; letter-spacing: .06em; color: var(--navy); margin-top: .9rem; }
.co-form input { display: block; width: 100%; margin-top: .3rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .8rem; }
.co-summary { margin: 1.4rem 0; padding: 1rem 1.2rem; background: var(--card); border-radius: .5rem; font-family: var(--f-cond); }
.co-summary div { display: flex; justify-content: space-between; padding: .2rem 0; }
.co-summary .total { border-top: 2px solid var(--navy); margin-top: .5rem; padding-top: .5rem; font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.co-form .btn-cta { margin: 0; justify-content: center; }
.co-done p { line-height: 1.6; }

.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 2rem); z-index: 100; opacity: 0; pointer-events: none;
  background: var(--navy); color: var(--paper); padding: .8rem 1.3rem; border-radius: .5rem; font-family: var(--f-cond); letter-spacing: .04em;
  transition: opacity .3s, transform .3s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(1.2rem); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* entrance */
.hero-copy > * { animation: rise .9s var(--ease-out) both; }
.hero-copy > *:nth-child(2) { animation-delay: .1s; }
.hero-copy > *:nth-child(3) { animation-delay: .2s; }
.hero-copy > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }

html.still *, html.still *::before, html.still *::after { animation: none !important; transition: none !important; }
html.still .reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ */
/* Mobile: the fold reflows into a stack                                */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .site-header { position: relative; left: 0; transform: none; width: auto; height: auto; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; }
  .logo, .nav, .cart-buoy { position: static; }
  .logo-word { font-size: 2.2rem; }
  .logo-squiggle { width: 9.5rem; }
  .nav { display: none; }
  .cart-buoy { width: 4.6rem; height: 5.6rem; }
  .buoy-text { left: .95rem; top: 2.05rem; width: 2.5rem; }
  .buoy-label { font-size: .45rem; }
  .buoy-count { font-size: .95rem; margin-top: .05rem; }

  .fold { width: auto; height: auto; overflow: visible; display: flex; flex-direction: column; padding: 0 0 2rem; }
  /* flex items refuse to shrink below their content, and the headline art is
     530px wide - without min-width:0 it forces the fold open */
  .fold > * { position: static !important; left: auto !important; top: auto !important; right: auto !important; width: auto !important; height: auto !important; min-width: 0; }
  .hero-copy { padding: 1rem 1.2rem 0; order: 1; }
  .crunch { font-size: 5.2rem; }
  .coast { font-size: 4.8rem; }
  .hero-squiggle { width: 12rem; }
  .hero-sub { font-size: 1.15rem; }
  .hero-scene { order: 2; position: relative !important; margin: 1rem 0 0; aspect-ratio: 1016 / 605; width: 100% !important; }
  .scene-base { position: absolute; }
  .bags { position: absolute; }
  .bag { position: absolute; }
  .wave-band { display: none; }
  .flavor-wheel { order: 3; width: 12.5rem !important; height: 12.5rem !important; margin: -1rem auto 0; position: relative !important; }
  .story { order: 4; padding: 2rem 1.2rem 0; display: grid; grid-template-columns: 4rem 1fr; gap: 0 1rem; }
  .kelp-left { width: 4rem !important; grid-row: 1 / 4; }
  .story-title { font-size: 1.5rem; }
  .story-text { width: auto !important; margin-top: .8rem; }
  .story-link { margin-top: 1rem; }
  .map { order: 5; width: 80% !important; margin: 1rem auto 0; }
  .reviews { order: 6; padding: 2rem 1.2rem 0; }
  .reviews-title { padding: 0; }
  .reviews-squiggle { left: 0; }
  .review-cards { flex-direction: column; }
  .reviews-note { position: static; width: auto; margin: .5rem 0 0; white-space: normal; }
  .review { width: auto; height: auto; }
  .seagull { order: 7; width: 8rem !important; margin: 1rem 1.2rem 0 auto; }

  .section { padding: 3.5rem 0; }
  .display { font-size: 2.6rem; }
  .product-grid, .kelp-grid, .stats, .stockists, .about-grid, .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-media { padding: 1.5rem; }
  .modal-media img { max-height: 16rem; }
  .foot-base { flex-direction: column; }
  .minibar { display: none; }
}

/* ==================================================================== */
/* Inner pages                                                          */
/* ==================================================================== */
.page-head { position: relative; padding: 3.5rem 0 2.5rem; overflow: hidden; }
.page-head .display { font-size: 5rem; line-height: .92; }
.page-head .lede { max-width: 36rem; }
.head-kelp, .head-gull {
  position: absolute; right: 4%; bottom: -1rem; width: 9rem; pointer-events: none;
  animation: sway 9s ease-in-out infinite; transform-origin: 50% 100%;
}
.head-gull { width: 11rem; bottom: -1.5rem; animation: none; }

.crumbs { width: min(86rem, 100% - 3rem); margin: 1.4rem auto 0; font-family: var(--f-cond); font-size: .95rem; letter-spacing: .04em; color: #5b6b7a; }
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 .4rem; opacity: .5; }
.crumbs b { color: var(--navy); }

.display.small { font-size: 2.9rem; }
.band-strip { line-height: 0; margin: 1rem 0; }
.band-strip img { width: 100%; height: 5rem; object-fit: cover; object-position: center; }

/* shop extras */
.shop-section { padding-top: 1rem; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.why-grid li { border-top: 3px solid var(--navy); padding-top: 1rem; line-height: 1.5; }
.why-num { display: block; font-family: var(--f-display); font-size: 3.2rem; line-height: 1; color: var(--red); }
.why-grid b { display: block; font-family: var(--f-cond); font-weight: 700; letter-spacing: .04em; font-size: 1.2rem; color: var(--navy); margin: .3rem 0 .2rem; }

/* product page */
.pd { padding: 1.5rem 0 3rem; }
.pd-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: start; }
.pd-media { position: sticky; top: 5rem; display: grid; place-items: center; min-height: 30rem; border-radius: 1.2rem; background: var(--card); overflow: hidden; }
.pd-glow { position: absolute; inset: 0; background: radial-gradient(58% 52% at 50% 44%, var(--c, #1e57a3), transparent 74%); opacity: .3; }
.pd-media img { position: relative; width: auto; height: 88%; max-width: 70%; filter: drop-shadow(0 1.6rem 1.4rem rgba(10,30,50,.3)); animation: float 7s ease-in-out infinite; }
.pd-media.is-pack img { height: 76%; }
.pd-body .display { font-size: 4.2rem; }
.pd-tag { font-family: var(--f-cond); font-weight: 600; font-size: 1.35rem; color: var(--red); margin: 1rem 0 0; letter-spacing: .01em; }
.pd-rating { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; font-size: .9rem; color: #5b6b7a; }
.pd-rating .stars { display: inline-flex; color: var(--red); }
.pd-rating svg { width: 1.05rem; height: 1.05rem; }
.pd-desc { line-height: 1.62; margin: 1.1rem 0 0; font-size: 1.05rem; }
.pd-perks { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.4rem 0 0; padding: 0; font-family: var(--f-cond); font-size: .95rem; letter-spacing: .03em; color: var(--navy); }
.pd-perks li::before { content: "+"; color: var(--red); margin-right: .4rem; font-weight: 700; }
.pd-fold { border-top: 2px solid rgba(11,42,75,.14); margin-top: 1.4rem; padding-top: .9rem; }
.pd-fold summary { font-family: var(--f-cond); font-weight: 700; letter-spacing: .05em; font-size: 1.05rem; color: var(--navy); cursor: pointer; }
.pd-fold p { line-height: 1.6; margin: .8rem 0 0; }
.nutri { width: 100%; border-collapse: collapse; margin-top: .8rem; }
.nutri th, .nutri td { text-align: left; padding: .45rem 0; border-bottom: 1px solid rgba(11,42,75,.12); font-weight: 500; }
.nutri th { font-family: var(--f-cond); font-weight: 600; letter-spacing: .03em; color: var(--navy); }
.nutri td { text-align: right; }
.pd-more { padding-top: 1rem; }
.modal-more { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-family: var(--f-cond); letter-spacing: .05em; color: var(--link); text-decoration: none; }

/* our kelp / about extras */
.map-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center; }
.map-grid p { line-height: 1.62; margin: 1.2rem 0 0; }
.map-art { width: 100%; }
.ticks { list-style: none; margin: 1.2rem 0 1.8rem; padding: 0; }
.ticks li { padding-left: 1.6rem; position: relative; line-height: 1.5; margin-top: .5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--teal); }
.about-copy .drop::first-letter { float: left; font-family: var(--f-display); font-size: 3.6rem; line-height: .8; margin: .25rem .6rem 0 0; color: var(--red); }
.review-cards.big { position: static; flex-wrap: wrap; margin-top: 2rem; }
.review-cards.big .review { width: calc(33.333% - .7rem); height: auto; min-height: 11rem; }

/* find us */
.faq-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: 3.5rem; align-items: start; }
.faq details { border-top: 2px solid rgba(11,42,75,.14); padding: 1rem 0; }
.faq summary { font-family: var(--f-cond); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; color: var(--navy); cursor: pointer; }
.faq p { line-height: 1.6; margin: .7rem 0 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.addr { line-height: 1.6; margin: 1.2rem 0 0; }
.addr b { font-family: var(--f-cond); letter-spacing: .05em; color: var(--navy); }
.contact .newsletter { margin: 0; text-align: left; max-width: none; }

/* checkout page */
.co-page { padding-top: 1.5rem; }
.co-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: start; }
.card-pane { background: var(--card); border-radius: 1rem; padding: 2rem; box-shadow: 0 .3rem 1rem rgba(11,42,75,.09), 0 0 0 1px rgba(11,42,75,.05); }
.co-side h2 { margin: 0 0 1rem; font-family: var(--f-display); font-size: 1.7rem; color: var(--navy); }
.co-lines { list-style: none; margin: 0; padding: 0; }
.co-lines li { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid rgba(11,42,75,.12); }
.co-lines img { width: 3.4rem; height: 4.4rem; object-fit: contain; }
.co-lines b { display: block; font-family: var(--f-cond); font-weight: 700; color: var(--navy); }
.co-lines small { color: #5b6b7a; }
.co-lines .none { display: block; color: #5b6b7a; padding: 1rem 0; }
.ship-opts { border: 0; padding: 0; margin: 1.4rem 0 1.6rem; }
.ship-opts legend { font-family: var(--f-cond); font-weight: 600; font-size: .85rem; letter-spacing: .06em; color: var(--navy); padding: 0; }
.ship-opts { display: flex; flex-wrap: wrap; gap: .7rem; }
.ship-opts legend { width: 100%; }
.ship-opts label { flex: 1 1 12rem; border: 2px solid var(--navy); border-radius: .5rem; padding: .7rem .9rem; cursor: pointer; }

.ship-opts label:has(:checked) { background: var(--navy); color: var(--paper); }
.ship-opts input { position: absolute; opacity: 0; pointer-events: none; }
.ship-opts b { display: block; font-family: var(--f-cond); letter-spacing: .03em; }
.ship-opts small { display: block; opacity: .8; }
.co-back { display: inline-block; margin-top: 1.2rem; color: var(--link); font-family: var(--f-cond); letter-spacing: .04em; text-decoration: none; }
.co-done { max-width: 44rem; margin: 0 auto; text-align: center; }
.co-done p { line-height: 1.6; margin: 1.2rem 0 1.6rem; }
.co-done .squig { margin: .9rem auto 0; }
.co-form button[type="submit"]:disabled { opacity: .45; pointer-events: none; }
.co-form .btn-cta { margin-top: 0; }

@media (max-width: 900px) {
  .page-head .display { font-size: 3rem; }
  .display.small { font-size: 2.1rem; }
  .why-grid, .pd-grid, .map-grid, .faq-grid, .contact-grid, .co-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pd-body .display { font-size: 2.8rem; }
  .pd-media { min-height: 20rem; }
  .review-cards.big .review { width: 100%; }
  .head-kelp, .head-gull { display: none; }
  .band-strip img { height: 2.5rem; }
  .ship-opts label { width: 100%; }
  .ship-opts label + label { margin-left: 0; }
}

/* hidden must win over the layout display values above */
[hidden] { display: none !important; }

/* the buoy is a hero-scale element: scale it down on inner pages */
body:not(.home) .cart-buoy { left: 87.6rem; width: 8.4rem; height: 10.25rem; }
body:not(.home) .buoy-text { left: 1.34rem; top: 3.33rem; width: 5.17rem; }
body:not(.home) .buoy-label { font-size: 1.574rem; transform: translateX(4px) scaleX(.75); }
body:not(.home) .buoy-count { font-size: 1.563rem; margin-top: .32rem; }
body:not(.home) .page-head + .section, body:not(.home) .crumbs + .pd { padding-top: 1.5rem; }
.btn-cta::before { filter: none; border-radius: .28rem; }
body.home .hero-copy .btn-cta::before { filter: url(#rough); }

/* ==================================================================== */
/* Mobile: the fold is absolutely positioned on desktop, so unwind it    */
/* ==================================================================== */
@media (max-width: 900px) {
  html { font-size: 16px; }
  body { background-image: linear-gradient(180deg, #fcf2d9 0%, #fdf5df 60%, #f9efdb 100%); }

  .header-shell, body.home .header-shell { position: static; width: auto; height: auto; }
  .site-header { position: static; width: auto; height: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem .4rem; }
  .logo { position: static; left: auto; top: auto; }
  .logo img { width: 10.4rem; }
  .logo-word { font-size: 2.35rem; }
  .logo-squiggle { position: static !important; display: block; width: 7.9rem; height: .35rem; margin: .05rem 0 0; }
  .nav { display: none; }
  .cart-buoy { position: relative !important; left: auto !important; top: auto !important; flex: none; width: 3.7rem !important; height: 4.5rem !important; }
  .buoy-text { left: .6rem !important; top: 1.46rem !important; width: 2.3rem !important; }
  .buoy-label { font-size: .7rem !important; transform: translateX(2px) scaleX(.75) !important; }
  .buoy-count { font-size: .7rem !important; margin-top: .14rem !important; }

  .fold { width: auto; height: auto; overflow: visible; display: flex; flex-direction: column; padding: 0 0 1.5rem; }
  /* flex items refuse to shrink below their content, and the headline art is
     530px wide - without min-width:0 it forces the fold open */
  .fold > * { position: static !important; left: auto !important; top: auto !important; right: auto !important; width: auto !important; height: auto !important; min-width: 0; }

  .hero-copy { order: 1; width: auto !important; max-width: 100%; padding: .4rem 1.1rem 0; }
  .hero-title { width: auto !important; }
  .hero-title img { width: 100% !important; }
  .hero-sub { font-size: 1.06rem; margin: .35rem 0 0 .3rem !important; }
  .btn-cta { margin: 1.1rem 0 0 .3rem !important; height: 3rem; min-width: 15rem; font-size: 1rem; }

  .hero-scene { order: 2; position: relative !important; left: 0 !important; top: 0 !important; width: 100% !important; aspect-ratio: 1016 / 605; margin-top: .6rem; }
  .scene-base { position: absolute !important; }
  .props, .prop { position: absolute !important; }
  .bags, .bag { position: absolute !important; }
  .wave-band { display: none; }

  .flavor-wheel { order: 3; position: relative !important; left: 0 !important; top: 0 !important; width: 11rem !important; height: 11rem !important; margin: -1.2rem auto 0; }
  .wheel-face, .wheel-hit { position: absolute !important; inset: 0; }

  .story { order: 4; display: grid !important; grid-template-columns: 3.6rem 1fr; gap: 0 1rem; padding: 1.9rem 1.1rem 0; }
  .kelp-left { position: static !important; width: 3.6rem !important; grid-row: 1 / 4; align-self: start; margin-top: .3rem; }
  .story-title, .story-text, .story-link { position: static !important; width: auto !important; }
  .story-title { font-size: 1.45rem; }
  .story-text { font-size: .95rem; margin-top: .7rem !important; }

  .story-link { display: inline-flex; margin-top: .9rem !important; }

  .map { order: 5; position: static !important; width: 86% !important; margin: 1.1rem auto 0; }

  .reviews { order: 6; padding: 1.7rem 1.1rem 0; }
  .reviews-title, .reviews-squiggle, .review-cards { position: static !important; }
  .reviews-title { padding-left: 0 !important; font-size: 1.25rem; }
  .reviews-squiggle { width: 9rem !important; height: .4rem !important; margin: .35rem 0 0 !important; }
  .review-cards { flex-direction: column; gap: .8rem; margin-top: 1.1rem !important; }
  .review { width: auto !important; height: auto !important; }


  .seagull { order: 7; position: static !important; width: 6.6rem !important; margin: 1.2rem 1.1rem 0 auto; display: block; }

  .minibar { display: none; }
  .cart { width: 100%; border-left: 0; }
  .modal-card { grid-template-columns: 1fr; max-height: calc(100vh - 2rem); }
  .toast { left: 1rem; right: 1rem; transform: translateY(2rem); text-align: center; }
  .toast.show { transform: none; }
  .product-grid { gap: 1rem; }
  .foot-grid { gap: 1.6rem; }
  .page-head { padding: 1.5rem 0 1.5rem; }
  .crumbs { margin-top: .8rem; }
}

@media (max-width: 560px) {
  .hero-sub { font-size: .98rem; }
  .page-head .display { font-size: 2.4rem; }
  .display.small { font-size: 1.8rem; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* Small print that has to be readable, not hidden: the demo and sample-content
   notices. Same colour as body copy, one step down in size. */
.fine {
  margin: -.35rem 0 1.1rem; font-size: .82rem; letter-spacing: .01em;
  color: #5b6b7a; font-style: italic;
}
.addr em { font-style: italic; color: #5b6b7a; }
.foot-base b { color: inherit; }

/* spacing utility - a class rather than a style attribute, so the CSP does not
   need to widen for one margin */
.mt { margin-top: 1.2rem; }
