/* Karam Kitchen — v3 restaurant. Warm paper, brick red, Young Serif + Karla. */
:root {
  --paper: #f4efe6; --card: #fbf8f2; --ink: #1a1512; --muted: #6b615a; --line: rgba(26,21,18,.13);
  --brick: #b7412a; --brick-dark: #8f2f1e; --olive: #3f5a36;
  --fd: "Young Serif", Georgia, serif; --fb: "Karla", "Helvetica Neue", Arial, sans-serif;
  --hdr: 66px; --wrap: 1200px; --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body { font-family: var(--fb); background: var(--paper); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--fd); font-weight: 400; line-height: 1.05; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--brick); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 6px; font-weight: 700; font-size: .92rem; background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); transition: background .2s, color .2s, transform .15s; }
.btn:hover { background: var(--brick); border-color: var(--brick); color: #fff; transform: translateY(-1px); }
.btn--brick { background: var(--brick); border-color: var(--brick); color: #fff; } .btn--brick:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
.btn--ghost { background: transparent; color: var(--ink); } .btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--wide { width: 100%; }
.site-banner { background: var(--ink); color: #d9d0c2; text-align: center; padding: .55rem 1rem; font-size: .8rem; }
.site-banner a { color: #fff; text-decoration: underline; }

/* header */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(244,239,230,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--ink); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 22px; }
.hdr__logo { font-family: var(--fd); font-size: 1.45rem; white-space: nowrap; }
.hdr__nav { display: flex; gap: 22px; margin-left: 14px; }
.hdr__nav a { font-weight: 700; font-size: .9rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.hdr__nav a.is-current, .hdr__nav a:hover { border-color: var(--brick); }
.hdr__sp { flex: 1; }
.open-pill { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(63,90,54,.12); color: var(--olive); white-space: nowrap; }
.open-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }
.open-pill.closed { background: rgba(26,21,18,.08); color: var(--muted); } .open-pill.closed i { background: var(--muted); }
.hdr__order { font-weight: 700; font-size: .9rem; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 6px; white-space: nowrap; }
.hdr__order b { color: var(--brick); }
.hdr__menu { display: none; font-weight: 700; }
.mnav { display: none; position: fixed; inset: var(--hdr) 0 0; background: var(--paper); z-index: 55; padding: 30px var(--gutter); flex-direction: column; gap: 18px; }
.mnav a { font-family: var(--fd); font-size: 1.9rem; }
.mnav.on { display: flex; }
@media (max-width: 900px) { .hdr__nav, .hdr .open-pill { display: none; } .hdr__menu { display: inline-block; } .hdr__logo { font-size: 1.25rem; } .hdr__order { padding: 8px 10px; font-size: .82rem; } }

/* home hero: split (the "classic" opening; other layouts in "Opening layouts" at the end) */
.hero__classic { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(36px, 6vw, 90px); }
.hero__classic h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); margin: 14px 0 18px; max-width: 12ch; }
.hero__sub { font-size: 1.1rem; color: var(--muted); max-width: 46ch; margin-bottom: 26px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__status { margin-top: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.hero__pics { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.hero__pics img { width: 100%; object-fit: cover; border-radius: 10px; }
.hero__pics img:first-child { aspect-ratio: 4 / 5; }
.hero__pics img:last-child { aspect-ratio: 4 / 5; margin-bottom: 48px; }
.stamp { position: absolute; left: -18px; bottom: 22px; width: 104px; height: 104px; border-radius: 50%; background: var(--brick); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--fd); font-size: .82rem; line-height: 1.15; transform: rotate(-12deg); box-shadow: 0 14px 30px rgba(183,65,42,.35); padding: 12px; }
@media (max-width: 860px) { .hero__classic { grid-template-columns: 1fr; } .hero__pics img:last-child { margin-bottom: 28px; } .stamp { width: 88px; height: 88px; font-size: .72rem; left: 0; } }

/* specials */
.specials { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--card); }
.specials__in { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 44px); align-items: center; padding-block: 18px; }
.specials__tag { font-family: var(--fd); font-size: 1.3rem; padding-right: clamp(18px, 3vw, 44px); border-right: 1.5px solid var(--ink); }
.specials__tag small { display: block; font-family: var(--fb); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); font-weight: 700; }
.specials__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.special { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.special b { font-weight: 700; } .special small { display: block; color: var(--muted); font-weight: 400; }
.special span { font-family: var(--fd); white-space: nowrap; }
@media (max-width: 800px) { .specials__in { grid-template-columns: 1fr; } .specials__tag { border-right: 0; border-bottom: 1.5px solid var(--ink); padding: 0 0 10px; } .specials__list { grid-template-columns: 1fr; } }

/* sections */
.sec { padding-block: clamp(50px, 7vw, 100px); }
.sec__head { margin-bottom: clamp(22px, 3vw, 40px); }
.sec__head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-top: 10px; max-width: 18ch; }
.sec__head p { color: var(--muted); margin-top: 8px; }
.sig { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.sig a { display: block; }
.sig img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.sig b { display: block; margin-top: 10px; font-family: var(--fd); font-weight: 400; font-size: 1.1rem; }
.sig span { color: var(--muted); font-size: .9rem; }
.sig em { font-style: normal; float: right; font-family: var(--fd); }
@media (max-width: 800px) { .sig { grid-template-columns: repeat(2, 1fr); } }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; background: var(--ink); color: var(--paper); border-radius: 16px; overflow: hidden; }
.story img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.story div { padding: clamp(28px, 5vw, 72px); }
.story .kicker { color: #e9a08c; }
.story h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 12px 0 16px; }
.story p { color: #cfc4b4; max-width: 44ch; font-size: 1.04rem; }
.story .btn { margin-top: 24px; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.story .btn:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } .story img { min-height: 260px; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps div { padding: 22px; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; counter-increment: s; }
.steps div::before { content: counter(s, decimal-leading-zero); font-family: var(--fd); color: var(--brick); font-size: 1.4rem; display: block; margin-bottom: 8px; }
.steps b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .94rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.find { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.find img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.find h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 10px 0 18px; }
.hours { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-variant-numeric: tabular-nums; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 700; color: var(--brick); }
.hours td.closed { color: var(--muted); }
.find__btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 800px) { .find { grid-template-columns: 1fr; } }

/* menu page */
.menu-page { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); padding-block: clamp(30px, 4vw, 56px) clamp(56px, 8vw, 110px); }
.menu-page__head { grid-column: 1 / -1; padding-bottom: 20px; border-bottom: 1.5px solid var(--ink); display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.menu-page__head h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.menu-page__head p { color: var(--muted); }
.mindex { position: sticky; top: calc(var(--hdr) + 20px); align-self: start; }
.mindex a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--muted); }
.mindex a small { font-family: var(--fd); color: var(--brick); margin-right: 10px; font-weight: 400; }
.mindex a.is-active, .mindex a:hover { color: var(--ink); }
.mindex__note { margin-top: 18px; font-size: .82rem; color: var(--muted); }
.mchips { display: none; gap: 8px; overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--hdr); background: var(--paper); padding: 10px 0; z-index: 40; margin-bottom: 10px; }
.mchips::-webkit-scrollbar { display: none; }
.mchips a { flex: none; font-weight: 700; font-size: .82rem; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; }
.msec { padding-top: 26px; margin-bottom: 26px; }
.msec__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.msec__head small { font-family: var(--fd); color: var(--brick); font-size: 1rem; }
.msec__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.msec__desc { color: var(--muted); margin-bottom: 14px; }
.dish { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 0 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.dish > * { min-width: 0; }
.dish__photo { grid-row: 1 / span 2; align-self: center; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.dish--nophoto .dish__photo { display: none; }
.dish--nophoto .dish__name, .dish--nophoto .dish__desc { grid-column: 1 / 3; }
.dish__name { grid-column: 2; font-weight: 700; font-size: 1.04rem; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dish__lead { flex: 1; min-width: 20px; border-bottom: 2px dotted var(--line); transform: translateY(-5px); }
.dish__price { grid-column: 3; font-family: var(--fd); font-size: 1.08rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish__desc { grid-column: 2; color: var(--muted); font-size: .9rem; }
.dish__add { grid-column: 4; grid-row: 1 / span 2; align-self: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 1.2rem; line-height: 1; display: grid; place-items: center; transition: background .2s, color .2s; }
.dish__add:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
.dish.is-off { opacity: .55; } .dish.is-off .dish__add { display: none; } .dish.is-off .dish__price { text-decoration: line-through; }
.tag { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: rgba(26,21,18,.08); color: var(--muted); }
.tag--v { background: rgba(63,90,54,.14); color: var(--olive); } .tag--spicy { background: rgba(183,65,42,.14); color: var(--brick); } .tag--popular { background: var(--ink); color: var(--paper); }
.tag--off { background: var(--brick); color: #fff; }
@media (max-width: 800px) { .menu-page { grid-template-columns: minmax(0, 1fr); } .menu-page > div { min-width: 0; } .dish__name { font-size: .98rem; } .dish__lead { min-width: 10px; } .mindex { display: none; } .mchips { display: flex; } .dish__photo { width: 54px; height: 54px; } }

/* book */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); padding-block: clamp(30px, 4vw, 56px) clamp(56px, 8vw, 110px); align-items: start; }
.book h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 10px 0 12px; }
.book__sub { color: var(--muted); margin-bottom: 26px; max-width: 44ch; }
.book img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: clamp(16px, 2.5vw, 28px); }
.form label { display: grid; gap: 5px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--ink); }
.form .full { grid-column: 1 / -1; }
.form .note { font-size: .82rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
@media (max-width: 800px) { .book { grid-template-columns: 1fr; } .book img { aspect-ratio: 16 / 10; order: -1; } .form { grid-template-columns: 1fr; } }

/* about */
.page { padding-block: clamp(30px, 4vw, 56px) clamp(56px, 8vw, 110px); }
.about__intro h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); max-width: 16ch; margin: 10px 0 28px; }
.about__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; margin-bottom: clamp(28px, 4vw, 56px); }
.about__row p { color: var(--muted); font-size: 1.06rem; margin-bottom: 16px; max-width: 48ch; }
.about__row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.about__wide { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 12px; margin-bottom: clamp(28px, 4vw, 56px); }
@media (max-width: 800px) { .about__row { grid-template-columns: 1fr; } .about__row--rev img { order: 2; } .about__wide { aspect-ratio: 4 / 3; } }
.info { margin-top: clamp(30px, 5vw, 60px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info div { padding: 20px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); }
.info h3 { font-family: var(--fb); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--brick); margin-bottom: 8px; }
.info p { color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .info { grid-template-columns: 1fr; } }

/* footer */
.ftr { border-top: 1.5px solid var(--ink); padding: clamp(32px, 5vw, 56px) 0 26px; }
.ftr__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.ftr h4 { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--brick); margin-bottom: 10px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .94rem; color: var(--muted); }
.ftr__brand { font-family: var(--fd); font-size: 1.5rem; margin-bottom: 6px; }
.ftr__bot { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.ftr__bot a { color: var(--ink); font-weight: 700; }
@media (max-width: 800px) { .ftr__cols { grid-template-columns: 1fr 1fr; } }

/* order tray */
.tray-veil { position: fixed; inset: 0; background: rgba(26,21,18,.4); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s; }
.tray { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 81; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
body.tray-open .tray { transform: none; } body.tray-open .tray-veil { opacity: 1; pointer-events: auto; }
.tray__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1.5px solid var(--ink); }
.tray__head h3 { font-size: 1.5rem; } .tray__head button { font-size: 1.5rem; }
.tray__list { flex: 1; overflow: auto; padding: 6px 22px; }
.tray__item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.tray__item b { font-weight: 700; } .tray__item small { display: block; color: var(--muted); }
.tray__qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 6px; margin-top: 6px; }
.tray__qty button { width: 30px; height: 28px; } .tray__qty span { width: 26px; text-align: center; font-weight: 700; }
.tray__rm { font-size: .72rem; font-weight: 700; color: var(--brick); margin-left: 12px; }
.tray__empty { color: var(--muted); padding: 40px 0; text-align: center; }
.tray__foot { padding: 16px 22px 22px; border-top: 1.5px solid var(--ink); background: var(--card); }
.tray__mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.tray__mode button { padding: 10px; border: 1.5px solid var(--line); border-radius: 6px; font-weight: 700; font-size: .9rem; }
.tray__mode button.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.tray__tot { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1.05rem; } .tray__tot b { font-family: var(--fd); }
.tray__note { font-size: .78rem; color: var(--muted); margin-top: 8px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 8px; font-size: .88rem; font-weight: 700; z-index: 90; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* WhatsApp demo sheet + pills */
.wa-demo { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.45); display: grid; place-items: end center; padding: 16px; opacity: 0; transition: opacity .25s; }
.wa-demo.on { opacity: 1; }
.wa-demo__card { width: min(440px, 100%); background: #efe7dd; border-radius: 18px; padding: 14px; transform: translateY(20px); transition: transform .3s cubic-bezier(.2,.8,.2,1); font-family: -apple-system, "Segoe UI", Roboto, sans-serif; color: #111; }
.wa-demo.on .wa-demo__card { transform: none; }
.wa-demo__head { display: flex; align-items: center; gap: 8px; background: #075e54; color: #fff; margin: -14px -14px 12px; padding: 12px 14px; border-radius: 18px 18px 0 0; font-size: .95rem; }
.wa-demo__dot { width: 28px; height: 28px; border-radius: 50%; background: #25d366; flex: none; }
.wa-demo__tag { margin-left: auto; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.2); padding: 3px 7px; border-radius: 4px; }
.wa-demo__head button { color: #fff; font-size: 1.4rem; line-height: 1; margin-left: 4px; }
.wa-demo__note { font-size: .8rem; color: #555; margin: 0 0 10px; }
.wa-demo__bubble { background: #dcf8c6; border-radius: 10px 0 10px 10px; padding: 10px 12px; margin-left: 40px; font-size: .92rem; white-space: pre-line; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.wa-demo__bubble i { display: block; font-style: normal; font-size: .66rem; color: #777; text-align: right; margin-top: 4px; }
.wa-demo__foot { font-size: .72rem; color: #777; margin: 12px 0 0; text-align: center; }
.demo-pills { position: fixed; left: 14px; bottom: 14px; z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.demo-pill--edit { background: var(--brick); color: #fff; border-color: var(--brick); }
.demo-pill--reset { font-size: .7rem; }
.is-preview .demo-pills, .is-preview .site-banner { display: none !important; }

/* ===========================================================================
 * Opening layouts — ported by hand from sitekit template/styles.css (2026-10-24).
 * The kit's tokens map onto this site's own; "classic" is .hero__classic above.
 * ========================================================================= */
:root {
  --hero-font: var(--fd);
  --hero-accent: var(--brick);   /* hero.accent overrides it from the editor   */
  --hero-on: #ffffff;            /* text on --hero-accent (site.js flips it)  */
  --hero-radius: 10px;           /* ONE radius for every hero photo (= the site's photo radius) */
  --hero-ease: cubic-bezier(.35, 0, 0, 1);
  --hero-top: calc(100svh - var(--hdr));
}
/* the opening's button lives in the header (home only) for every layout but classic */
.hdr__cta { flex: none; font-weight: 700; font-size: .9rem; white-space: nowrap; padding: 9px 16px; border-radius: 6px;
  background: var(--brick); color: #fff; border: 1.5px solid var(--brick); transition: background .2s, border-color .2s; }
.hdr__cta:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
.hdr__cta[hidden] { display: none; }
@media (max-width: 900px) { .hdr__cta { font-size: .82rem; padding: 8px 12px; } }
.hdr__nav a { white-space: nowrap; }
/* mid widths: the header gives the open/closed pill's room to the opening's button (the pill is on /find-us) */
@media (max-width: 1240px) { html[data-hero]:not([data-hero="classic"]) .hdr .open-pill { display: none; } }
/* phones: one slot for the opening's button and "Your order": the button while the order is empty */
@media (max-width: 560px) {
  html[data-hero]:not([data-hero="classic"]) .hdr__in { gap: 12px; }
  html[data-hero]:not([data-hero="classic"]) .hdr__logo { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  html[data-hero]:not([data-hero="classic"]) body.cart-empty .hdr__order,
  html[data-hero]:not([data-hero="classic"]) body:not(.cart-empty) .hdr__cta { display: none; }
}
@media (max-width: 380px) {
  html[data-hero]:not([data-hero="classic"]) .hdr__in { gap: 10px; }
  html[data-hero]:not([data-hero="classic"]) .hdr__logo { font-size: 1.06rem; }
  html[data-hero]:not([data-hero="classic"]) .hdr__cta { font-size: .78rem; padding: 7px 9px; }
}
@media (max-width: 350px) {   /* the editor's phone preview is ~340 px wide */
  html[data-hero]:not([data-hero="classic"]) .hdr__in { gap: 8px; }
  html[data-hero]:not([data-hero="classic"]) .hdr__logo { font-size: .98rem; }
  html[data-hero]:not([data-hero="classic"]) .hdr__menu { font-size: .9rem; }
}
/* ===========================================================================
 * Hero layouts — .hero[data-layout] (content.hero.layout; built by site.js).
 * Phone first; desktop from 721px. Motion: [data-in] + --d, released by
 * html.is-ready; the hidden "before" state exists ONLY under
 * prefers-reduced-motion: no-preference, so reduced motion = all visible.
 * Rules carried from the archetypes: one radius + one treatment for every
 * hero photo, line height ~.9, no gradients, no glows.
 * ========================================================================= */
html[data-accent-light] { --hero-on: var(--ink); }
.hero:not([data-layout="classic"]) {
  max-width: none; padding: 0; margin: 0; text-align: left; position: relative;
  overflow-x: clip; color: var(--ink);
}
.hero__stage { position: relative; }
.hero__stage h1 { font-family: var(--hero-font); font-weight: 400; color: inherit; margin: 0; }   /* the display face has one weight */

/* one photo frame for every layout: the radius and the treatment live here */
.hp { position: relative; display: block; overflow: hidden; border-radius: var(--hero-radius);
      background: color-mix(in srgb, var(--ink) 9%, var(--paper)); }
.hp img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; max-width: none; }
.hp--cut { overflow: visible; background: none; border-radius: 0; }
.hp--cut img { height: auto; object-fit: contain; }
.hero[data-treatment="mono"] .hp:not(.hp--cut) img { filter: grayscale(1) contrast(1.06); }
.hero[data-treatment="blur"] .hp:not(.hp--cut) img { filter: blur(3px) saturate(.9); scale: 1.08; }
.hero[data-treatment="duotone"] .hp:not(.hp--cut) { background: var(--hero-accent); isolation: isolate; }
.hero[data-treatment="duotone"] .hp:not(.hp--cut) img { filter: grayscale(1) contrast(1.12); mix-blend-mode: multiply; }
.hero[data-treatment="duotone"] .hp:not(.hp--cut)::after {
  content: ""; position: absolute; inset: 0; background: var(--ink); mix-blend-mode: lighten; pointer-events: none;
}

/* load sequence */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-in] {
    transition: opacity .7s var(--hero-ease) var(--d, 0s), transform 1.1s var(--hero-ease) var(--d, 0s);
  }
  html:not(.is-ready) .hero [data-in], .hero [data-in].is-wait {
    opacity: 0; transform: var(--from); transition: none;
  }
  .hero [data-in="up"]   { --from: translateY(28px); }
  .hero [data-in="rise"] { --from: translateY(40px); }
  .hero [data-in="drop"] { --from: translateY(-64px) rotate(-15deg); }
  .hero [data-in="pop"]  { --from: scale(.9); }
  .hero [data-in="l"]    { --from: translateX(30%); }
  .hero [data-in="r"]    { --from: translateX(-30%); }
  .hero [data-in="ch"]   { --from: translateY(115%); }
  .hero .sp__obj[data-in] { --from: scale(.5); }
}

/* --- Split: the headline breaks around one product ------------------------- */
.hero__stage--split {
  min-height: min(var(--hero-top), 640px); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 22px; padding: 40px 16px 56px; text-align: center;
}
.sp__h {
  font-size: 14.5vw; line-height: .9; letter-spacing: -.03em;
  display: flex; flex-direction: column; align-items: center; gap: .14em;
}
.sp__l { display: block; flex: none; }
.sp__obj { display: block; flex: none; width: 2.6em; aspect-ratio: 1; }
.sp__obj .hp:not(.hp--cut) { width: 100%; height: 100%; background: var(--hero-accent); }
.sp__obj.is-cut { width: 3.4em; aspect-ratio: auto; }
.sp__sub { max-width: 34ch; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) and (max-width: 720px) {
  .hero .sp__l1 { --from: translateY(.6em); }
  .hero .sp__l2 { --from: translateY(-.6em); }
}
@media (min-width: 721px) {
  .hero__stage--split { min-height: min(var(--hero-top), 820px); padding: 64px 32px 80px; gap: 30px; }
  .sp__h { flex-direction: row; flex-wrap: nowrap; justify-content: center; font-size: var(--fit, clamp(3rem, 8.2vw, 9rem)); gap: .2em; max-width: 100%; white-space: nowrap; }
  .sp__obj { width: 1.4em; }
  .sp__obj.is-cut { width: 2.3em; }
  .sp__sub { font-size: 1.15rem; }
}

/* --- Full-bleed: giant type, one photo off the bottom, a cut-out on the seam --- */
.hero__stage--fullbleed { padding: 26px 16px 0; }
.fb__type { position: relative; --fs: var(--fit, 16vw); font-size: var(--fs); }
.fb__h { font-size: 1em; line-height: .9; letter-spacing: -.035em; }
.fb__l { display: block; }
.fb__l > span { display: inline-block; white-space: nowrap; }
.fb__l2 { text-align: right; }
.fb__sub { font-size: 1rem; line-height: 1.45; color: var(--muted); max-width: min(30ch, 60%); margin-top: 16px; }
.fb__seam { position: relative; height: 0; z-index: 3; margin-top: var(--fb-room, 0px); }   /* --fb-room: site.js clearCut() */
.fb__photo { margin-top: 26px; }
.fb__photo .hp { height: 72svh; }
.fb__photo .hp img { object-position: 50% 50%; }
.fb__obj { position: absolute; right: 3%; top: 26px; width: 36vw; translate: 0 -46%; pointer-events: none; }
.fb__obj .hp { rotate: -6deg; }
@media (min-width: 721px) {
  .hero__stage--fullbleed { padding: 34px 24px 0; }
  .fb__type { --fs: var(--fit, 11.2vw); }
  .fb__l2 { padding-left: calc(26% + 32px); }
  .fb__sub { position: absolute; left: 0; top: calc(var(--fs) * .9); width: 26%; max-width: 34ch; margin-top: 14px; font-size: 1.02rem; }
  .fb__photo { margin-top: 30px; }
  .fb__photo .hp { height: 80vh; min-height: 420px; }
  .fb__obj { right: auto; left: 7%; top: 30px; width: clamp(140px, 15vw, 260px); translate: 0 -42%; }
}

/* --- Orbit: photos at clock positions around a clear oval -------------------- */
.hero__stage--orbit {
  min-height: var(--hero-top); display: grid; grid-template-columns: 1fr 1fr;
  grid-template-areas: "a b" "m m" "c d"; align-items: center; column-gap: 14px; row-gap: 26px;
  padding: 28px 16px 40px;
}
.ob__mid { grid-area: m; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ob__h { font-size: 11vw; line-height: .92; letter-spacing: -.03em; }
.ob__sub { max-width: 32ch; color: var(--muted); line-height: 1.5; }
.ob__slot { position: relative; z-index: 1; }
.ob__ph { aspect-ratio: 1 / var(--ar, 1); }
.ob__slot[data-i="0"] { grid-area: a; width: 80%; justify-self: start; align-self: end; }
.ob__slot[data-i="1"] { grid-area: b; width: 64%; justify-self: end; align-self: start; }
.ob__slot[data-i="2"] { grid-area: c; width: 64%; justify-self: center; align-self: start; }
.ob__slot[data-i="3"] { grid-area: d; width: 80%; justify-self: end; align-self: end; }
.ob__slot.ob__more { display: none; }   /* phones keep the first four: two above, two below */
@media (min-width: 721px) {
  .hero__stage--orbit { display: grid; grid-template: 1fr / 1fr; grid-template-areas: none; place-items: center; min-height: max(640px, var(--hero-top)); padding: 40px 0; }
  .ob__mid { grid-area: auto; max-width: min(42vw, 640px); gap: 20px; }
  .ob__h { font-size: clamp(2.4rem, 5.2vw, 5.8rem); }
  .ob__sub { font-size: 1.08rem; }
  .ob__slot, .ob__slot[data-i], .ob__slot.ob__more {
    display: block; grid-area: auto; position: absolute; left: var(--x); top: var(--y); align-self: auto; justify-self: auto;
    width: clamp(120px, calc(var(--w) * 1vw), 240px); translate: -50% -50%;
  }
  .ob__slot.ob__pair { z-index: 2; }
  .ob__par {
    translate: calc(var(--px, 0) * var(--z, 1) * -16px) calc(var(--py, 0) * var(--z, 1) * -12px);
    transition: translate 1.4s cubic-bezier(.2, .7, .2, 1);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .ob__ph { animation: ob-drift calc(7s + var(--i, 0) * .9s) ease-in-out calc(var(--i, 0) * -1.7s) infinite alternate; }
}
@keyframes ob-drift { from { transform: translate(-3px, 4px); } to { transform: translate(4px, -5px); } }

/* --- Gallery: a curved wall of work around the headline ---------------------- */
.hero__stage--gallery {
  min-height: min(var(--hero-top), 720px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 24px 0 40px;
}
.ga__mid { position: relative; z-index: 2; text-align: center; padding: 0 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ga__h { font-size: 12vw; line-height: .92; letter-spacing: -.03em; }
.ga__sub { max-width: 32ch; color: var(--muted); line-height: 1.5; }
.ga__wall {
  --wall: 190vw; --gap: 1.4vw;
  flex: none; width: var(--wall); display: flex; align-items: center; justify-content: center; gap: var(--gap);
}
.ga__pn { flex: none; width: calc(var(--wf) * (var(--wall) - (var(--k) - 1) * var(--gap))); }
.ga__ph { aspect-ratio: 4 / 5; transform: perspective(700px) rotateY(calc(var(--t) * -34deg)); }
.ga__wall--top { align-items: flex-end; }
.ga__wall--bot { align-items: flex-start; }
/* site fix: on phones the two walls + headline are shorter than a screen; centring them in one left blank
   bands above and below, so the stage just wraps them */
@media (max-width: 720px) { .hero__stage--gallery { min-height: 0; padding: 26px 0 40px; } }
@media (min-width: 721px) {
  .hero__stage--gallery { min-height: var(--hero-top); gap: 0; padding: 56px 0 48px; justify-content: center; }
  .ga__h { font-size: clamp(2.8rem, 6.4vw, 7.4rem); }
  .ga__sub { font-size: 1.1rem; }
  .ga__mid { max-width: 46vw; }
  .ga__wall { --wall: 146vw; --gap: .7vw; margin-top: -6vw; }
  .ga__ph { aspect-ratio: 3 / 4; transform: perspective(900px) rotateY(calc(var(--t) * -46deg)); }
}

/* --- Wordmark: the name fills a flat colour, a fan of cards over it ---------- */
html[data-hero="wordmark"] .hdr { background: var(--hero-accent); color: var(--hero-on); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-hero="wordmark"] .hdr__logo,
html[data-hero="wordmark"] .hdr__nav a, html[data-hero="wordmark"] .hdr__menu,
html[data-hero="wordmark"] .hdr__order, html[data-hero="wordmark"] .hdr__bag, html[data-hero="wordmark"] .hdr__order b { color: inherit; border-color: currentColor; }
html[data-hero="wordmark"] .hdr__cta { background: var(--hero-on); color: var(--hero-accent); border-color: var(--hero-on); }
.hero__stage--wordmark {
  --u: 2vw;
  min-height: min(var(--hero-top), 740px); background: var(--hero-accent); color: var(--hero-on);
  display: flex; flex-direction: column; padding: 8px 16px 22px; overflow: hidden;
}
.wm__mark { font-size: var(--fit, 24vw); line-height: .8; letter-spacing: -.04em; text-transform: uppercase; padding-top: .1em; }
@media (min-width: 721px) { .wm__mark { text-align: center; } }
.wm__line { display: block; clip-path: inset(-40% -5% -.06em -5%); }
.wm__in { display: inline-block; white-space: nowrap; }
.wm__ch { display: inline-block; }
.wm__fan { position: relative; flex: none; height: calc(42 * var(--u)); display: flex; align-items: center; justify-content: center; margin-top: -9vw; }
.wm__card { position: absolute; width: calc(20 * var(--u)); }
.wm__face {
  translate: calc(var(--fxm) * var(--u)) calc(var(--fy) * var(--u)); rotate: var(--fr); scale: var(--fs);
}
.wm__ph { aspect-ratio: 4 / 5.4; background: color-mix(in srgb, var(--hero-on) 18%, var(--hero-accent)); }
.wm__foot { position: relative; z-index: 20; margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.wm__sub { max-width: 24ch; font-size: .98rem; line-height: 1.4; }
.wm__cta { flex: none; background: var(--hero-on); color: var(--hero-accent); padding: 12px 22px; }
@media (min-width: 721px) {
  .hero__stage--wordmark { --u: min(.78vw, 1.3vh); padding: 14px 24px 26px; }
  .hero__stage--wordmark { min-height: var(--hero-top); }
  .wm__fan { flex: 1; height: auto; min-height: calc(36 * var(--u)); margin-top: -16vh; }
  .wm__face { translate: calc(var(--fx) * var(--u)) calc(var(--fy) * var(--u)); }
  .wm__sub { font-size: 1.05rem; max-width: 30ch; }
}
/* E-66 entrance: one stacked card rises (stagger from the END), then the hand opens from the
   CENTRE with one soft overshoot. Nothing fades; the "before" state exists only with motion on. */
@media (prefers-reduced-motion: no-preference) {
  .wm__card { transition: transform .8s cubic-bezier(.33, 1, .68, 1) var(--dr, 0s); }
  .wm__face {
    transition: translate 1.2s cubic-bezier(.34, 1.36, .64, 1) var(--df, 0s),
                rotate 1.2s cubic-bezier(.34, 1.36, .64, 1) var(--df, 0s),
                scale 1.2s cubic-bezier(.34, 1.36, .64, 1) var(--df, 0s);
  }
  html:not(.is-ready) .wm__card { transform: translateY(calc(10 * var(--u))); transition: none; }
  html:not(.is-ready) .wm__face { translate: 0 0; rotate: 0deg; scale: 1; transition: none; }
}

