/* Concept B: Depachika Gift Counter
   Four brand colours plus white. Flavour photos are the only other colour. */
:root {
  --navy: #1B2A5E;
  --ink: #2A2422;
  --pink: #F2B8C6;
  --beige: #F5F0E4;
  --white: #FFFFFF;
  --ink-2: color-mix(in srgb, var(--ink) 80%, var(--beige));
  --line: rgba(27, 42, 94, .22);
  --line-strong: rgba(27, 42, 94, .5);
  --paper-shadow: 0 1px 2px rgba(27, 42, 94, .08), 0 22px 44px -22px rgba(27, 42, 94, .32);
  --display: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --text: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --rail: 112px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --head-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); scrollbar-color: var(--navy) var(--beige); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font: 400 16.5px/1.7 var(--text);
  caret-color: var(--navy);
  overflow-x: hidden;
}
/* washi fibre, very faint */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .42' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .106 0 0 0 0 .165 0 0 0 0 .369 0 0 0 .55 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
::selection { background: var(--pink); color: var(--navy); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--navy); border: 3px solid var(--beige); border-radius: 10px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3, p { margin: 0; }
p { text-wrap: pretty; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--beige); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* ---------- lanes bar + header ---------- */
.lanes-bar { background: var(--navy); color: var(--beige); font-size: 13.5px; line-height: 1.4; }
.lanes-bar__in { display: flex; gap: 12px 36px; justify-content: center; flex-wrap: wrap; padding-block: 9px; }
.lanes-bar p { display: flex; align-items: center; gap: 8px; }
.lanes-bar .ic { width: 17px; height: 17px; color: var(--pink); }
.lanes-bar strong { font-weight: 700; }

.site-head { position: sticky; top: 0; z-index: 40; background: var(--beige); border-bottom: 1px solid var(--line); }
.site-head__in { height: var(--head-h); display: flex; align-items: center; gap: 32px; }
.brand img { width: 178px; height: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 15px; letter-spacing: .02em; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 0; background: linear-gradient(var(--navy), var(--navy)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.nav a:hover { color: var(--navy); background-size: 100% 1px; }
.bag-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 15px/1 var(--text); color: var(--beige); background: var(--navy);
  border: 0; border-radius: 2px; padding: 0 12px 0 14px; height: 44px; cursor: pointer;
  transition: background-color .2s;
}
.bag-btn:hover { background: var(--ink); }
.bag-btn__count { min-width: 26px; height: 26px; padding: 0 7px; display: grid; place-items: center; background: var(--pink); color: var(--navy); border-radius: 13px; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bag-btn__count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---------- vertical titles + rail ---------- */
.rail { position: relative; }
.vtitle {
  font: 600 52px/1 var(--display);
  color: var(--navy);
  letter-spacing: .04em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  position: sticky; top: calc(var(--head-h) + 32px);
}
.vtitle--h1 { font-weight: 700; font-size: 60px; letter-spacing: .05em; color: var(--ink); }
.rail__seal { width: 34px; height: 34px; color: var(--navy); margin: 22px 0 0 13px; display: block; }

.sec {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line);
}
.sec__body { min-width: 0; }
.sec .rail { border-right: 1px solid var(--line); }
.sec .vtitle { padding-left: 6px; }
.lede { font-size: 19px; line-height: 1.65; max-width: 46ch; color: var(--ink); }
.sample-note { font-size: 13px; color: var(--ink-2); margin-top: 14px; letter-spacing: .01em; }

/* ---------- buttons + fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 500 15.5px/1.2 var(--text); letter-spacing: .03em; text-decoration: none;
  border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: var(--beige); }
.btn--primary:hover { background: var(--ink); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--beige); }
.btn--ghost-light { background: transparent; color: var(--beige); border-color: rgba(245, 240, 228, .6); }
.btn--ghost-light:hover { background: var(--beige); color: var(--navy); }
.btn--ghost-light:focus-visible { outline-color: var(--pink); }
.btn--full { width: 100%; }
.btn .ic { width: 18px; height: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 12.5px; font-weight: 700; letter-spacing: .03em; color: var(--navy); padding: 0; }
.opt { font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
select, input, textarea {
  font: 400 15.5px/1.3 var(--text); color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 2px;
  min-height: 46px; padding: 10px 12px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2A5E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") right 10px center / 18px no-repeat;
}
select:hover, input:hover, textarea:hover { border-color: var(--navy); }
select:focus-visible, input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--pink); }
input::placeholder, textarea::placeholder { color: var(--ink-2); opacity: 1; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field__err { font-size: 13px; color: var(--navy); font-weight: 700; min-height: 0; }
.field__err:empty { display: none; }
.field.is-bad input { border-color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; }

.lane-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--navy); background: var(--pink); padding: 4px 10px 4px 8px; border-radius: 2px; }
.lane-tag .ic { width: 16px; height: 16px; }

/* ---------- the counter (first viewport) ---------- */
.counter {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) minmax(380px, 420px);
  column-gap: clamp(24px, 3vw, 44px);
  padding-block: 28px 56px;
  align-items: start;
}
.counter .rail { padding-top: 4px; }
.counter .vtitle { position: static; }
.counter__stage { min-width: 0; padding-top: 4px; }
.counter__photo { margin: 0; overflow: hidden; height: clamp(360px, calc(100vh - 410px), 560px); background: var(--white); }
.counter__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.counter__edge { height: 7px; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--line-strong); margin-top: 6px; }
.counter__hook { font: 600 clamp(24px, 2.3vw, 33px)/1.32 var(--display); color: var(--navy); margin-top: 22px; max-width: 34ch; text-wrap: balance; letter-spacing: .01em; }
.counter__sub { margin-top: 14px; max-width: 56ch; color: var(--ink); }

/* pickup slip */
.slip { position: relative; margin: 0; }
.slip::before { /* pink tissue under the slip */
  content: ""; position: absolute; inset: 14px -10px -12px 12px;
  background: var(--pink); transform: rotate(1.6deg); border-radius: 2px;
}
.slip__paper {
  position: relative; background: var(--white);
  padding: 22px 24px 20px; box-shadow: var(--paper-shadow);
  border-top: 6px solid var(--navy);
}
.slip__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong); }
.slip__title { font: 700 26px/1.1 var(--display); color: var(--navy); letter-spacing: .03em; }
.slip__item { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding-top: 16px; align-items: start; }
.slip__swatch { aspect-ratio: 1; border-radius: 2px; }
.slip__swatch img { width: 100%; height: 100%; object-fit: cover; }
.slip__choose { display: flex; flex-direction: column; gap: 12px; }
.seg__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg__opt { position: relative; }
.seg__opt input, .size-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.seg__opt > span, .size-opt span.size-opt__box {
  display: flex; flex-direction: column; gap: 1px;
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 7px 10px;
  font-size: 13.5px; line-height: 1.3; color: var(--ink); background: var(--white);
  transition: background-color .2s, color .2s, border-color .2s;
}
.seg__opt b, .size-opt b { font-weight: 700; font-size: 14px; }
.seg__opt .price, .size-opt .price { font-variant-numeric: tabular-nums; }
.seg__opt input:checked + span, .size-opt input:checked + span.size-opt__box { background: var(--navy); border-color: var(--navy); color: var(--beige); }
.seg__opt input:hover + span, .size-opt input:hover + span.size-opt__box { border-color: var(--navy); }
.seg__opt input:focus-visible + span, .size-opt input:focus-visible + span.size-opt__box { box-shadow: 0 0 0 3px var(--pink); border-color: var(--navy); }

.slip__row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 106px; gap: 8px; margin-top: 16px; }
.slip__row select { padding-right: 28px; padding-left: 10px; background-position: right 6px center; }
.stepper { display: grid; grid-template-columns: 32px 1fr 32px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--white); height: 46px; }
.stepper:focus-within { border-color: var(--navy); }
.stepper input { border: 0; min-height: 0; height: 44px; padding: 0; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.stepper input:focus-visible { box-shadow: none; outline: 2px solid var(--navy); outline-offset: -2px; }
.stepper__b { border: 0; background: none; color: var(--navy); display: grid; place-items: center; cursor: pointer; padding: 0; }
.stepper__b:hover { background: var(--beige); }
.stepper__b .ic { width: 16px; height: 16px; }
.slip__note { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.slip__note .ic { width: 15px; height: 15px; color: var(--navy); }
.slip__total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.slip__total output { font: 700 24px/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.slip .sample-note { margin-top: 8px; text-align: center; }
.slip__stamps { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); min-height: 52px; }
.slip__empty { font-size: 13.5px; color: var(--ink-2); }
.stamps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stamps li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.3; }
.stamps li .qty { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 700; }
.stamp { width: 26px; height: 26px; flex: none; color: var(--navy); }
.stamps li:nth-child(2n) .stamp { transform: rotate(-9deg); }
.stamps li:nth-child(2n+1) .stamp { transform: rotate(7deg); }
.stamps li.fresh .stamp { animation: stamp .55s var(--ease) both; }
@keyframes stamp { 0% { transform: scale(1.9) rotate(-18deg); opacity: 0; } 55% { transform: scale(.92) rotate(6deg); opacity: 1; } 100% { transform: scale(1) rotate(7deg); opacity: 1; } }
.stamps .more { background: none; border: 0; padding: 2px 0; font: 500 13.5px var(--text); color: var(--navy); text-decoration: underline; text-underline-offset: .22em; cursor: pointer; align-self: flex-start; }
.slip__addr { font-style: normal; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); margin-top: 14px; }

/* ---------- the noshi band (signature) ---------- */
.wraptarget { position: relative; overflow: visible; }
.wraptarget > img { position: relative; z-index: 0; }
.band {
  position: absolute; left: -6px; right: -6px; top: 56%; z-index: 2;
  height: 32px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: var(--beige);
  font: 500 12.5px/1 var(--text); letter-spacing: .08em; white-space: nowrap;
  box-shadow: inset 0 3px 0 -2px rgba(245, 240, 228, .55), inset 0 -3px 0 -2px rgba(245, 240, 228, .55), 0 6px 14px -8px rgba(27, 42, 94, .6);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .5s var(--ease);
  pointer-events: none;
}
.band::before, .band::after { /* folds where the band turns behind the item */
  content: ""; position: absolute; top: 100%; width: 6px; height: 5px; background: var(--ink);
}
.band::before { left: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.band::after { right: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.band .ic { width: 14px; height: 14px; stroke: none; color: var(--pink); }
.is-wrapped > .band { clip-path: inset(0 0 0 0); }
.band.play { animation: wrapband .9s var(--ease) both; }
@keyframes wrapband {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
.wraptarget.squeeze > img { animation: squeeze .7s var(--ease); }
@keyframes squeeze { 0% { transform: scale(1); } 35% { transform: scale(.965); } 100% { transform: scale(1); } }

/* ---------- flavour case ---------- */
.case-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px; align-items: center; margin-bottom: 44px; }
.case-intro__fig { margin: 0; }
.case-intro__fig img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.case-intro__fig figcaption { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.case {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--white);
  border-top: 8px solid var(--navy);
  box-shadow: var(--paper-shadow);
}
.tray { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); }
.tray:first-child { border-left: 0; }
.tray__img { aspect-ratio: 1 / 1.08; background: var(--beige); }
.tray__img img { width: 100%; height: 100%; object-fit: cover; }
.tray__tag { padding: 16px 14px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; border-top: 1px solid var(--line); }
.tray__name { font: 600 19px/1.25 var(--display); color: var(--navy); min-height: 2.5em; letter-spacing: .01em; }
.tray__adds { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.add {
  display: flex; align-items: center; gap: 8px; width: 100%;
  min-height: 40px; padding: 0 10px; border-radius: 2px;
  background: var(--white); border: 1px solid var(--line-strong); color: var(--ink);
  font: 400 13.5px/1.2 var(--text); cursor: pointer; text-align: left;
  transition: background-color .2s, color .2s, border-color .2s;
}
.add b { font-weight: 700; }
.add .price { margin-left: auto; font-variant-numeric: tabular-nums; }
.add .ic { width: 16px; height: 16px; color: var(--navy); }
.add:hover { background: var(--navy); color: var(--beige); border-color: var(--navy); }
.add:hover .ic { color: var(--pink); }
.case + .sample-note { margin-top: 16px; }

/* ---------- cakes ---------- */
.cakes { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cakes__fig { margin: 0; }
.cakes__swatch { aspect-ratio: 4 / 3; }
.cakes__swatch img { width: 100%; height: 100%; object-fit: cover; }
.cakes__swatch .band { top: 44%; height: 40px; font-size: 13.5px; }
.cakes__fig figcaption { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.cakes__form { display: flex; flex-direction: column; gap: 22px; padding-top: 4px; }
.cakes__form .lede { margin-bottom: 4px; }
.sizes__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.size-opt { position: relative; }
.size-opt span.size-opt__box { padding: 16px 18px; gap: 6px; }
.size-opt .size-opt__in { font: 600 30px/1 var(--display); color: inherit; }
.size-opt .price { font-size: 15px; }
.cakes__form .btn { align-self: flex-start; }
.cakes__form .slip__note { margin-top: -6px; }
.cakes__form .sample-note { margin-top: -10px; }

/* ---------- catering on pink tissue ---------- */
.tissue {
  background: var(--pink);
  position: relative;
}
.tissue::before { /* soft tissue creases */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    linear-gradient(104deg, transparent 0 31%, rgba(255, 255, 255, .45) 31.2% 31.4%, transparent 31.6%),
    linear-gradient(77deg, transparent 0 68%, rgba(255, 255, 255, .4) 68.15% 68.3%, transparent 68.5%);
}
.tissue .sec { border-top: 0; position: relative; }
.tissue .rail { border-right-color: rgba(27, 42, 94, .3); }
.cater { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cater__copy { display: flex; flex-direction: column; gap: 16px; color: var(--navy); max-width: 40ch; }
.cater__big { font: 600 clamp(28px, 2.8vw, 40px)/1.25 var(--display); text-wrap: balance; }
.cater__form { background: var(--white); padding: clamp(22px, 2.6vw, 34px); box-shadow: var(--paper-shadow); border-top: 6px solid var(--navy); display: flex; flex-direction: column; gap: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.grid2__wide { grid-column: 1 / -1; }
.cater__form .btn { align-self: flex-start; }
.cater__done { font: 600 18px/1.5 var(--display); color: var(--navy); padding: 14px 16px; background: var(--beige); border-left: 1px solid var(--navy); }

/* ---------- gifts ---------- */
.gifts { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: 36px; align-items: stretch; }
.envelopes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.env { display: flex; flex-direction: column; gap: 14px; }
.env__paper {
  position: relative; aspect-ratio: 3 / 4; background: var(--white); box-shadow: var(--paper-shadow);
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 18px;
}
.env__noshi { /* the vertical noshi strip of a gift envelope */
  position: absolute; top: 0; bottom: 0; left: 14%; width: 26%;
  background: var(--navy); color: var(--beige);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 18px; gap: 12px;
}
.env__noshi .ic { width: 22px; height: 22px; stroke: none; color: var(--pink); }
.env__noshi span { writing-mode: vertical-rl; font: 600 15px/1 var(--display); letter-spacing: .14em; }
.env__amt { font: 700 clamp(24px, 2.4vw, 36px)/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.env .band { top: 72%; }
.env .add { justify-content: center; }
.env .add .price { margin-left: 0; }
.gcard {
  background: var(--navy) url(/shared/img/brand/gelato-lab-pattern-navy.svg) 0 0 / 120px auto;
  color: var(--beige); padding: clamp(24px, 2.6vw, 34px);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  box-shadow: var(--paper-shadow);
}
.gcard__mon { width: 46px; height: 46px; color: var(--pink); }
.gcard__title { font: 700 30px/1.15 var(--display); letter-spacing: .02em; }
.gcard__valid { font: 600 17px/1.4 var(--display); color: var(--pink); }
.gcard .btn { margin-top: auto; }

/* ---------- supplies, delivery lane ---------- */
.rail--delivery .vtitle { color: var(--ink); }
.deliv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; padding: 24px 26px; background: var(--navy); color: var(--beige); }
.deliv__ic { width: 44px; height: 44px; fill: none; stroke: var(--pink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.deliv__title { font: 700 clamp(26px, 2.4vw, 34px)/1.15 var(--display); margin-bottom: 8px; }
.deliv p:not(.deliv__title) { max-width: 66ch; }
.ledger { margin-top: 36px; background: var(--white); box-shadow: var(--paper-shadow); }
.ledger__cat { font: 600 18px/1.3 var(--display); color: var(--navy); padding: 18px 22px 10px; border-top: 1px solid var(--line); background: var(--white); }
.ledger__cat:first-child { border-top: 0; }
.ledger__row {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) 160px 92px 132px;
  align-items: center; gap: 16px; padding: 12px 22px; border-top: 1px solid var(--line);
}
.ledger__code { position: relative; font: 500 13.5px/1 var(--text); letter-spacing: .03em; color: var(--ink-2); font-variant-numeric: tabular-nums; height: 30px; display: flex; align-items: center; }
.ledger__code .band { left: -6px; right: -2px; top: 0; height: 30px; font-size: 12px; letter-spacing: .06em; }
.ledger__name { font-weight: 500; }
.ledger__size { font-size: 14px; color: var(--ink-2); }
.ledger__price { font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; }
.ledger .add { justify-content: center; }

/* ---------- in store ---------- */
.store { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.board { background: var(--white); padding: clamp(24px, 3vw, 40px); box-shadow: var(--paper-shadow); outline: 1px solid var(--navy); outline-offset: -10px; }
.board__title { font: 700 26px/1.2 var(--display); color: var(--navy); text-align: center; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.board__sub { font: 600 17px/1.3 var(--display); color: var(--navy); margin: 22px 0 4px; }
.board__list { list-style: none; margin: 0; padding: 0; }
.board__list li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; }
.board__list li .what { font: 600 22px/1.2 var(--display); color: var(--ink); }
.board__list li .note { font-size: 14px; color: var(--ink-2); }
.board__list li .lead { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); min-width: 20px; }
.board__list li .p { font: 700 22px/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.board__list--sm li { padding: 6px 0; }
.board__list--sm li .what { font: 400 16px/1.3 var(--text); }
.board__list--sm li .p { font-size: 17px; }
.store__copy { display: flex; flex-direction: column; gap: 14px; max-width: 42ch; }
.store__big { font: 600 clamp(28px, 2.8vw, 40px)/1.25 var(--display); color: var(--navy); }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.visit__fig { margin: 0; }
.visit__fig img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; object-position: 40% 60%; }
.visit__info { display: flex; flex-direction: column; gap: 14px; }
.visit__name { font: 700 clamp(32px, 3.2vw, 46px)/1.1 var(--display); color: var(--navy); }
.visit__info address { font-style: normal; font-size: 19px; line-height: 1.6; }
.visit__hours { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.visit__hours .ic { color: var(--navy); }
.visit__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.visit__lanes { font-size: 14.5px; color: var(--ink-2); max-width: 44ch; margin-top: 6px; }

/* ---------- footer ---------- */
.foot { background: var(--navy) url(/shared/img/brand/gelato-lab-pattern-navy.svg) 0 0 / 160px auto; color: var(--beige); padding-block: 72px 36px; }
.foot__in { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 48px; }
.foot__logo { width: 150px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 15px; }
.foot__h { font: 600 18px/1.3 var(--display); color: var(--pink); margin-bottom: 10px; }
.foot a { color: var(--beige); }
.foot a:focus-visible { outline-color: var(--pink); }
.foot nav { display: flex; flex-direction: column; gap: 4px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot__fine { grid-column: 1 / -1; font-size: 13px; padding-top: 24px; border-top: 1px solid rgba(245, 240, 228, .25); }

/* ---------- bag drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(42, 36, 34, .42); z-index: 60; opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.bag {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(460px, 100vw); background: var(--beige);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 50px -20px rgba(27, 42, 94, .45);
  transform: translateX(104%); transition: transform .45s var(--ease);
}
.bag.on { transform: none; }
.bag__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); border-top: 6px solid var(--navy); }
.bag__title { font: 700 26px/1.1 var(--display); color: var(--navy); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--white); color: var(--navy); border-radius: 2px; cursor: pointer; }
.icon-btn:hover { border-color: var(--navy); }
.bag__body { flex: 1; overflow-y: auto; padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
.bag__mixed { font-size: 14px; line-height: 1.5; background: var(--pink); color: var(--navy); padding: 12px 14px; }
.bag__mixed strong { font-weight: 700; }
.grp { background: var(--white); box-shadow: var(--paper-shadow); }
.grp__head { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.grp__title { display: flex; align-items: center; gap: 8px; font: 700 19px/1.25 var(--display); color: var(--navy); }
.grp__title .ic { width: 19px; height: 19px; }
.grp__meta { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.grp__when { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 8px; margin-top: 8px; }
.grp__when select { min-height: 40px; padding-block: 6px; font-size: 14.5px; }
.grp--pickup .grp__head { border-top: 4px solid var(--navy); }
.grp--delivery .grp__head { border-top: 4px solid var(--ink); }
.grp--delivery .grp__title { color: var(--ink); }
.line { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: center; }
.line:first-of-type { border-top: 0; }
.line__thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 2px; background: var(--beige); }
.line__thumb--mark { display: grid; place-items: center; color: var(--navy); }
.line__thumb--mark svg { width: 26px; height: 26px; }
.line__name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.line__detail { font-size: 13px; color: var(--ink-2); }
.line__ctl { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.mini-step { display: inline-grid; grid-template-columns: 30px 28px 30px; border: 1px solid var(--line-strong); border-radius: 2px; height: 32px; align-items: center; }
.mini-step button { border: 0; background: none; height: 30px; display: grid; place-items: center; color: var(--navy); cursor: pointer; padding: 0; }
.mini-step button:hover { background: var(--beige); }
.mini-step .ic { width: 14px; height: 14px; }
.mini-step span { text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.rm { border: 0; background: none; padding: 4px 0; font: 400 13px var(--text); color: var(--navy); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.line__price { font-weight: 700; font-variant-numeric: tabular-nums; align-self: start; padding-top: 1px; }
.bag__empty { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 8px 0; }
.bag__empty p:first-child { font: 600 22px/1.3 var(--display); color: var(--navy); }
.bag__empty .links { display: flex; flex-wrap: wrap; gap: 8px; }
.bag__foot { padding: 16px 22px 20px; border-top: 1px solid var(--line); background: var(--white); }
.bag__sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.bag__sub output { font: 700 26px/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.bag__foot .sample-note { margin: 6px 0 14px; }
.bag__msg { margin-top: 12px; font-size: 14px; line-height: 1.5; padding: 10px 12px; background: var(--pink); color: var(--navy); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .counter { grid-template-columns: 88px minmax(0, 1fr) minmax(360px, 390px); }
  .vtitle--h1 { font-size: 50px; }
  .case { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tray:nth-child(4) { border-left: 0; }
  .tray:nth-child(n+4) { border-top: 1px solid var(--line); }
  .ledger__row { grid-template-columns: 120px minmax(0, 1fr) 130px 84px 120px; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --rail: 0px; --head-h: 64px; }
  .counter { grid-template-columns: minmax(0, 1fr); row-gap: 28px; padding-top: 22px; }
  .sec { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .rail { border-right: 0 !important; display: flex; align-items: center; gap: 14px; }
  .vtitle { writing-mode: horizontal-tb; position: static; font-size: 38px; line-height: 1.15; white-space: normal; letter-spacing: .02em; padding-left: 0 !important; }
  .vtitle--h1 { font-size: 40px; }
  .rail__seal { margin: 0; width: 28px; height: 28px; flex: none; order: -1; }
  .counter__photo { height: auto; aspect-ratio: 16 / 10; }
  .slip { max-width: 560px; }
  .case-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cakes, .cater, .store, .visit, .gifts { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .nav { gap: 20px; }
}
@media (max-width: 760px) {
  .site-head__in { height: auto; flex-wrap: wrap; row-gap: 4px; column-gap: 12px; padding-block: 10px 6px; }
  .brand img { width: 140px; }
  .bag-btn { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 8px; font-size: 14.5px; }
  .nav a { padding: 6px 0; }
  html { scroll-padding-top: 120px; }
  .vtitle { font-size: 32px; }
  .vtitle--h1 { font-size: 36px; }
  .lede { font-size: 17.5px; }
  .case { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tray:nth-child(n) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .tray:nth-child(2n+1) { border-left: 0; }
  .tray:nth-child(-n+2) { border-top: 0; }
  .tray__tag { padding: 12px 10px 12px; }
  .tray__name { font-size: 17px; }
  .add { padding: 0 8px; font-size: 13px; gap: 6px; }
  .envelopes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .env__paper { padding: 10px; }
  .env__noshi { left: 12%; width: 32%; padding-top: 10px; }
  .env__noshi span { font-size: 12.5px; }
  .env .add .ic { display: none; }
  .env__amt { font-size: 21px; }
  .env__noshi { width: 26%; left: 10%; }
  .env__noshi .ic { width: 16px; height: 16px; }
  .ledger__cat { padding: 16px 16px 8px; }
  .ledger__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "size size" "code add"; gap: 6px 12px; padding: 14px 16px; }
  .ledger__name { grid-area: name; }
  .ledger__size { grid-area: size; }
  .ledger__price { grid-area: price; }
  .ledger__code { grid-area: code; }
  .ledger__row .add { grid-area: add; width: auto; min-width: 108px; }
  .deliv { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 12px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .board__list li .what { font-size: 19px; }
  .board__list li .p { font-size: 19px; }
}
@media (max-width: 420px) {
  .slip__paper { padding: 18px 16px 18px; }
  .slip__item { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .slip__row { grid-template-columns: 104px minmax(0, 1fr); }
  .slip__row .field--time { grid-column: 1 / -1; }
  .seg__opts { grid-template-columns: minmax(0, 1fr); }
  .slip::before { inset: 12px -4px -10px 8px; }
  .foot__cols { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
