/* HNF home: sections after the hero, with the owner picks baked in (rows, шевица on, dark night, own search section). Base styles (header, hero, phone, drawer) are in mix-base.css. */

.lg { display: inline-flex; }
.orn { display: block; }

.hnf-logo .lg .hnf-mark { width: 1.6em; height: 1.6em; }
.trim { line-height: 0; }
.trim .mot { width: 100%; height: auto; --mot-b: var(--ink); }
.hd .trim { margin-top: -2px; }

.mono { font-family: var(--font-mono); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-h h2 { margin: 0; font: 800 clamp(40px, 4.6vw, 64px)/1 var(--font-display); letter-spacing: -.045em; }
.sec-h .mono { font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; }
.lab { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- need box ---------- */
.need { display: grid; gap: 14px; }
.need-l { font: 650 26px/1.15 var(--font-display); letter-spacing: -.03em; }
.need-row { display: flex; gap: 10px; }
.need-row input { flex: 1; min-width: 0; min-height: 60px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--raised); font: 400 18px/1 var(--font-sans); color: var(--ink); }
.need-row input:focus { outline: none; border-color: var(--ink); }
.need-go { display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 24px; border: 0; border-radius: 16px; background: var(--ink); color: var(--paper); font: 500 17px/1 var(--font-sans); cursor: pointer; }
.need-go svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease); }
.need-go:hover svg { transform: translateX(3px); }
.need-err { margin: 0; color: var(--danger); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nchip { min-height: 40px; padding: 0 14px; border: 1px solid var(--aida); border-radius: var(--radius-pill); background: transparent; font: 400 14px/1 var(--font-sans); color: var(--ink-soft); cursor: pointer; }
.nchip:hover { border-color: var(--ink); color: var(--ink); }
.need-out:empty { display: none; }
.nres { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); animation: fadein 300ms var(--ease); }
.nres .mono { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .04em; color: var(--ink-faint); }
.nres .mono::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.nres b { display: block; margin-top: 6px; font: 700 24px/1.1 var(--font-display); letter-spacing: -.03em; }
.nres p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- products ---------- */
.prods { padding: 96px 0; border-top: 1px solid var(--line); }
.ix { display: flex; align-items: center; gap: 8px; font: 500 11.5px/1.2 var(--font-mono); color: var(--ink-faint); letter-spacing: .03em; }
.ix i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); flex: none; }
.ix span { margin-left: 6px; color: var(--ink-soft); }
.live { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 14.5px/1.2 var(--font-sans); text-decoration: none; cursor: pointer; text-align: left; }
.live svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur-fast) var(--ease); }
.live { color: var(--ink-soft); font-family: var(--font-mono); font-size: 12.5px; }
.live:hover { color: var(--ink); }

.plist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.prow { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.15fr) minmax(0, 1fr) 190px; gap: 28px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.prow::before { content: ""; position: absolute; inset: 0 -20px; border-radius: 18px; background: var(--tint); opacity: 0; transition: opacity 220ms var(--ease); z-index: -1; }
.prow:hover::before { opacity: 1; }
.plist { position: relative; z-index: 0; }
.rn { font: 500 13px/1 var(--font-mono); color: var(--ink-faint); }
.rname h3 a { color: inherit; text-decoration: none; }
.rname h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.rname h3 { margin: 8px 0 0; font: 750 clamp(34px, 3.6vw, 54px)/1 var(--font-display); letter-spacing: -.045em; }
.prow p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.45; }
.racts { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.rgo { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.rgo svg { width: 22px; height: 22px; }
.prow:hover .rgo, .rgo:hover { background: var(--ink); color: var(--paper); }

/* ---------- Ema at night: the one dark moment ---------- */
.night { padding: 104px 0; background: var(--night); color: var(--night-ink); transition: background 400ms var(--ease), color 400ms var(--ease); }
.night-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.night .lab { color: var(--ema); }
.clock { margin: 18px 0 8px; font: 800 clamp(96px, 11vw, 168px)/.9 var(--font-display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.night h2 { margin: 0; font: 750 clamp(32px, 3.4vw, 48px)/1.05 var(--font-display); letter-spacing: -.04em; }
.night .sub { margin: 14px 0 0; max-width: 28em; color: var(--night-soft); font-size: 17px; }
.facts { list-style: none; margin: 34px 0 0; padding: 0; max-width: 460px; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--night-line); font-size: 15px; }
.facts .k { font: 500 12px/1.4 var(--font-mono); color: var(--night-soft); letter-spacing: .03em; }
.facts .v { text-align: right; }
.facts em { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(84,228,224,.16); color: var(--ema); font: 500 10.5px/1.4 var(--font-mono); }
.tscript { border-radius: 26px; padding: 20px; background: var(--night-raised); border: 1px solid var(--night-line); }
.tscript-h { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--night-line); }
.tscript-h b { display: block; font: 600 16px/1.2 var(--font-sans); }
.tscript-h .mono { font-size: 11.5px; color: var(--night-soft); }
.nlines { list-style: none; margin: 0; padding: 16px 0 6px; display: grid; gap: 10px; }
.nl { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: start; }
.nl .ts { padding-top: 12px; font: 500 11px/1 var(--font-mono); color: var(--night-soft); }
.nl > div { justify-self: start; max-width: 88%; padding: 10px 14px 11px; border-radius: 16px; background: rgba(255,255,255,.07); font-size: 15px; line-height: 1.4; }
.nl--ema > div { justify-self: end; background: var(--ema); color: var(--ema-ink); border-bottom-right-radius: 5px; }
.nl--caller > div { border-bottom-left-radius: 5px; }
.nl small { display: block; margin-bottom: 3px; font: 500 9.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.saved { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: rgba(84,228,224,.12); color: var(--ema); font: 500 14px/1.3 var(--font-sans); }
.saved svg { width: 18px; height: 18px; flex: none; }
.tp { display: block; height: 2px; margin: 0 0 2px; border-radius: 2px; background: var(--night-line); overflow: hidden; }
.tp i { display: block; width: 100%; height: 100%; background: var(--ema); transition: width 520ms var(--ease); }

/* ---------- not on the list (search box as its own section) ---------- */
.ask { padding: 96px 0; border-bottom: 1px solid var(--line); }
.ask-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.ask h2 { margin: 0; font: 800 clamp(44px, 5vw, 72px)/.98 var(--font-display); letter-spacing: -.045em; }
.ask h2 span { display: block; font-weight: 300; }
.ask-star { width: 120px; margin-top: 34px; }

/* ---------- how, about ---------- */
.how { padding: 96px 0 72px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.steps li { padding: 22px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.hmark { width: 44px; margin-bottom: 18px; }
.steps .mono { font-size: 12px; color: var(--thread); letter-spacing: .06em; }
.steps h3 { margin: 12px 0 8px; font: 700 30px/1.05 var(--font-display); letter-spacing: -.035em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.about { padding: 40px 0 104px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.about .big { margin: 16px 0 0; max-width: 20em; font: 500 clamp(28px, 3.1vw, 44px)/1.12 var(--font-display); letter-spacing: -.035em; }
.about .aside { margin: 20px 0 0; font: 500 13px/1.4 var(--font-mono); color: var(--ink-faint); }
.about-star { width: min(220px, 100%); justify-self: end; }

/* ---------- closer + footer ---------- */
.closer { padding: 112px 0; background: var(--linen); }
.closer h2 { margin: 0; font: 800 clamp(56px, 8.4vw, 128px)/.92 var(--font-display); letter-spacing: -.055em; }
.closer p { margin: 22px 0 32px; max-width: 26em; font-size: 19px; color: var(--ink-soft); }
.closer .talk { min-height: 58px; padding: 0 26px 0 18px; font-size: 17px; }
.ft2 { padding-bottom: 120px; }
.ft2 .trim { margin-bottom: 8px; }
.word { margin: 56px 0 0; font: 800 clamp(32px, 9.6vw, 148px)/.9 var(--font-display); letter-spacing: -.06em; white-space: nowrap; }
.word .wh { color: var(--aida); }
.word .ch { display: inline-block; }
.word i { display: inline-block; width: .5em; height: .12em; margin-left: .06em; background: var(--thread); animation: hnf-blink 1.1s steps(1) infinite; }
.ft-legal { flex: 1 1 260px; text-wrap: pretty; }
.ft-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font: 500 11.5px/1.4 var(--font-mono); color: var(--ink-faint); }


/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .prow { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .racts { justify-content: flex-start; }
  .prow p { grid-column: 2 / 3; grid-row: 2; }
  .racts { grid-row: 1 / 3; grid-column: 3; }
  .night-grid, .ask-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 900px) {
  .hd nav a { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; }
  .about-star { justify-self: start; width: 140px; }
}
@media (max-width: 560px) {
  .need-l { font-size: 22px; }
  .need-row { flex-direction: column; }
  .need-go { justify-content: center; }
  .prods, .ask, .how { padding: 72px 0; }
  .prow { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; padding: 22px 0; }
  .prow::before { inset: 0 -10px; }
  .rgo { width: 48px; height: 48px; }
  .racts .live { display: none; }
  .night { padding: 72px 0; }
  .nl { grid-template-columns: 1fr; gap: 4px; }
  .nl .ts { padding-top: 0; }
  .nl--ema .ts { justify-self: end; }
  .closer { padding: 80px 0; }
  .word { margin-top: 40px; }
}
/* ---------- product pages (#/<id>) ---------- */
.pp-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 0 14px; color: var(--ink-soft); text-decoration: none; font: 500 14px/1 var(--font-sans); }
.pp-back svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.pp-back:hover { color: var(--ink); }
.pp-back:hover svg { transform: translateX(-3px); }
.pp-h1 .nw { white-space: nowrap; }
.pp .h2 { text-wrap: balance; }
.pp-dot { display: inline-block; width: .15em; height: .15em; margin-left: .05em; border-radius: 50%; background: var(--dot); }
.pp-facts { padding: 88px 0; border-top: 1px solid var(--line); }
.pfacts { margin: 0; border-top: 2px solid var(--ink); }
.pfacts > div { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pfacts dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.pfacts dd { margin: 0; font: 650 clamp(24px, 2.6vw, 36px)/1.15 var(--font-display); letter-spacing: -.03em; }
.pfacts em { font-style: normal; margin-left: 8px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--ema-tint); color: var(--ema-ink); font: 500 11px/1.4 var(--font-mono); vertical-align: middle; }

.modes { padding: 0 0 96px; }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mlist li { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 210px; padding: 24px; border-radius: 24px; background: var(--linen); }
.mlist .mic { width: 48px; height: 48px; margin-bottom: auto; display: grid; place-items: center; border-radius: 14px; background: var(--raised); }
.mlist .mic svg { width: 24px; height: 24px; }
.mlist b { margin-top: 28px; font: 750 28px/1.05 var(--font-display); letter-spacing: -.035em; }
.mlist .mono { font-size: 12px; color: var(--ink-faint); }
.mlist .hot { background: var(--byteai-tint); }
.mchip { position: absolute; top: 24px; right: 24px; padding: 7px 10px; border-radius: 8px; background: var(--ink); color: var(--paper); font: 600 12px/1 var(--font-mono); }

.pp-next { padding: 0 0 96px; }
.nx { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 30px; border-top: 2px solid var(--ink); color: var(--ink); text-decoration: none; }
.nx .mono { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.nx b { display: inline-flex; align-items: center; gap: .2em; font: 800 clamp(44px, 7vw, 112px)/.95 var(--font-display); letter-spacing: -.05em; }
.nx svg { width: .55em; height: .55em; flex: none; transition: transform 300ms var(--ease); }
.nx:hover svg { transform: translateX(.1em); }

/* the sample log on the events, video and anything-else pages */
.logw { position: relative; display: grid; place-items: center; min-height: 600px; }
.log-orn { position: absolute; right: 0; top: 24px; width: 190px; }
.log { position: relative; z-index: 1; width: min(520px, 100%); padding: 22px; border-radius: 26px; background: var(--raised); border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(22,24,29,.35); }
.log-h { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; }
.log-h .mono { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--thread); }
.log-h b { font: 700 20px/1.2 var(--font-display); letter-spacing: -.02em; }
.log .tp { background: var(--line); margin-bottom: 6px; }
.log .tp i { background: var(--thread); }
.log-l { list-style: none; margin: 0; padding: 0; }
.log-l li { display: grid; grid-template-columns: 48px minmax(0, 1fr) 22px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.35; }
.log-l .lt { font: 500 11.5px/1 var(--font-mono); color: var(--ink-faint); }
.log-l .lk { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--success); color: #fff; }
.log-l .lk svg { width: 13px; height: 13px; }
.log-p { margin: 16px 0 2px; font: 700 18px/1.25 var(--font-display); letter-spacing: -.02em; }

/* Ema speaks Bulgarian: the one highlighted fact */
.facts mark, .pfacts mark { padding: 1px 8px 2px; border-radius: 8px; background: var(--ema); color: var(--ema-ink); font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* the trailer (home, after the hero; the same clip on the video page). Letterbox bars carry the words, so no title
 * covers a face or the food. Sizes follow the player's own width (container units), not the window. */
.promo-s { padding: 8px 0 96px; }
.promo { margin: 0; container-type: inline-size; }
.pv { --bar: 7cqw; position: relative; aspect-ratio: 100 / 70.25; border-radius: 28px; overflow: hidden; background: #0C0B0A; box-shadow: 0 40px 80px -50px rgba(22,24,29,.55); }
.pv-v { position: absolute; left: 0; top: var(--bar); display: block; width: 100%; height: 56.25cqw; object-fit: cover; }
.pv-tag { position: absolute; top: calc(var(--bar) + 1.4cqw); left: 1.6cqw; padding: 5px 9px; border-radius: 7px; background: rgba(20,17,13,.55); color: #fff; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pv-snd { position: absolute; right: 2.4cqw; bottom: calc((var(--bar) - 44px) / 2); z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 13px; border: 0; border-radius: var(--radius-pill); background: rgba(252,252,250,.94); color: var(--ink); font: 500 13.5px/1 var(--font-sans); cursor: pointer; }
.pv-snd svg { width: 18px; height: 18px; }
.pv-snd[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pv-side { display: grid; align-items: center; min-height: 600px; }
@keyframes capin { from { opacity: 0; transform: translateY(8px); } }

.tv { position: absolute; inset: 0; pointer-events: none; }
.tv > * { position: absolute; margin: 0; opacity: 0; transition: opacity 200ms ease; }
.tv > .on { opacity: 1; }
/* the black cards: trailer type in the middle of the picture */
.tv-card, .tv-sting { left: 6cqw; right: 6cqw; top: var(--bar); height: 56.25cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqw; text-align: center; color: #F6F1E8; }
.tv-card p, .tv-sting p { margin: 0; font: 800 4.2cqw/1.08 var(--font-display); letter-spacing: -.03em; text-wrap: balance; transform: scale(1.12); filter: blur(6px); transition: transform 200ms ease, filter 200ms ease, opacity 300ms ease; }
.tv-card.on p:first-child, .tv-sting.on p:first-child, .tv-card .l2.done, .tv-sting .l2.done { transform: none; filter: none; transition: transform 1100ms cubic-bezier(.19, 1, .22, 1), filter 500ms ease, opacity 300ms ease; }
.tv-card .l2, .tv-sting .l2 { opacity: 0; }
.tv-card .l2.done, .tv-sting .l2.done { opacity: 1; }
.tv-card.on p:first-child { animation: tvflick 2.6s steps(1) 1; }
@keyframes tvflick { 0%, 100% { opacity: 1; } 6% { opacity: .35; } 9% { opacity: 1; } 52% { opacity: .55; } 54% { opacity: 1; } }
.tv-sting p:first-child { font-size: 3cqw; color: rgba(246,241,232,.7); }
.tv-sting .l2 { font-size: 3.4cqw; color: var(--ema); }
.tv-sting .l2 b { font-weight: 800; }
/* the bottom bar: incoming call, chips and subtitles */
.tv-chip { left: 2.4cqw; bottom: 0; height: var(--bar); display: flex; align-items: center; max-width: 70%; }
.tv-chip span { display: inline-flex; align-items: center; gap: .6em; padding: .6em 1.05em; border-radius: var(--radius-pill); background: rgba(252,252,250,.96); color: var(--ink); font: 600 max(12px, 1.4cqw)/1.2 var(--font-sans); transform: translateY(35%); transition: transform 600ms cubic-bezier(.19, 1, .22, 1); }
.tv-chip.on span { transform: none; }
.tv-chip i { flex: none; width: .6em; height: .6em; border-radius: 50%; background: #13A39C; box-shadow: 0 0 0 .26em rgba(84,228,224,.35); }
.tv-chip--ring span { background: var(--thread); color: #fff; }
.tv-chip--ring i { background: #fff; box-shadow: none; }
.tv-chip--ring.on i { animation: tvring 700ms ease-out infinite; }
@keyframes tvring { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.75); } 100% { box-shadow: 0 0 0 .9em rgba(255,255,255,0); } }
.tv-chip--ring.on span { animation: tvshake 260ms linear infinite; }
@keyframes tvshake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px) rotate(-1deg); } 75% { transform: translateX(2px) rotate(1deg); } }
.tv-sub { left: 4cqw; right: 16cqw; bottom: 0; height: var(--bar); display: flex; align-items: center; justify-content: center; text-align: center; }
.tv-sub span { color: #F6F1E8; font: 600 max(13px, 1.75cqw)/1.25 var(--font-sans); text-wrap: balance; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.tv-sub b { color: var(--byteai); font-weight: 700; }
/* Ема's call screen, over the right side of the frame */
.tv-call { right: 3cqw; top: calc(var(--bar) + 3cqw); width: 27cqw; padding: 1.3cqw; border-radius: 1.8cqw; background: rgba(6,18,20,.94); color: #E8F7F6; font: 500 1.22cqw/1.32 var(--font-sans); box-shadow: 0 2cqw 4cqw -1.5cqw rgba(0,0,0,.7); transform: translateY(1.5cqw) scale(.97); transition: opacity 200ms ease, transform 700ms cubic-bezier(.19, 1, .22, 1); }
.tv-call.on { transform: none; }
.tc-h { display: flex; align-items: center; gap: .8cqw; margin-bottom: 1cqw; }
.tc-h i { width: 2.4cqw; height: 2.4cqw; border-radius: .7cqw; background: var(--ema); box-shadow: 0 0 0 .4cqw rgba(84,228,224,.25); }
.tc-h b { font-weight: 700; }
.tc-h span { margin-left: auto; color: var(--ema); font: 500 .9em/1 var(--font-mono); }
.tc-l { margin: .6cqw 0 0; padding: .6cqw .9cqw; border-radius: 1cqw; opacity: 0; transform: translateY(.6cqw); transition: opacity 250ms ease, transform 500ms cubic-bezier(.19, 1, .22, 1); }
.tc-l--ema { background: var(--ema); color: var(--ema-ink); border-top-left-radius: .3cqw; margin-right: 2.5cqw; }
.tc-l--guest { background: rgba(255,255,255,.1); margin-left: 4cqw; border-top-right-radius: .3cqw; }
.tc-l.done { opacity: 1; transform: none; }
/* the kitchen ticket prints down from the top bar */
.tv-ticket { right: 4cqw; top: var(--bar); width: 21cqw; padding: 1.3cqw 1.4cqw 1.6cqw; background: #FBF8F1; color: var(--ink); font: 500 1.15cqw/1.3 var(--font-mono); box-shadow: 0 1.5cqw 3cqw -1.2cqw rgba(0,0,0,.6); clip-path: inset(0 0 100% 0); transition: clip-path 200ms ease, opacity 200ms ease; -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - .6cqw) no-repeat, radial-gradient(circle at .5cqw 0, transparent .45cqw, #000 .5cqw) bottom / 1cqw .6cqw repeat-x; mask: linear-gradient(#000, #000) top / 100% calc(100% - .6cqw) no-repeat, radial-gradient(circle at .5cqw 0, transparent .45cqw, #000 .5cqw) bottom / 1cqw .6cqw repeat-x; }
.tv-ticket.on { clip-path: inset(0 0 0 0); transition: clip-path 1400ms steps(14), opacity 200ms ease; }
.tv-ticket small { display: block; color: var(--thread); font-weight: 600; margin-bottom: .5cqw; }
.tv-ticket b { font-weight: 600; }
/* the hotel app: a big, readable phone screen on the right half while the guest orders */
.tv-app { right: 6cqw; top: calc(var(--bar) + 3cqw); width: 30cqw; padding: 1.5cqw; border-radius: 2.2cqw; background: rgba(252,252,250,.98); color: var(--ink); font: 500 1.35cqw/1.3 var(--font-sans); box-shadow: 0 2cqw 4cqw -1.5cqw rgba(0,0,0,.65); transform: translateY(1.5cqw) scale(.97); transition: opacity 200ms ease, transform 700ms cubic-bezier(.19, 1, .22, 1); }
.tv-app.on { transform: none; }
.ta-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1cqw; padding-bottom: .8cqw; margin-bottom: 1cqw; border-bottom: 1px solid var(--line); }
.ta-h b { font-weight: 700; }
.ta-h span { color: var(--ink-faint); font: 500 .9em/1 var(--font-mono); }
.ta-me { width: fit-content; max-width: 88%; margin: 0 0 1cqw auto; padding: .65cqw 1cqw; border-radius: 1.1cqw 1.1cqw .3cqw 1.1cqw; background: var(--ink); color: var(--paper); }
.ta-ai { margin: 0 0 .5cqw; color: var(--ink-faint); font-size: .92em; }
.ta-sug { display: grid; gap: .5cqw; margin: 0 0 1cqw; padding: 0; list-style: none; }
.ta-sug li { display: flex; justify-content: space-between; align-items: center; gap: 1cqw; padding: .65cqw .9cqw; border-radius: .9cqw; background: var(--byteai-tint); }
.ta-sug em { font-style: normal; color: #A35A12; font: 500 .85em/1 var(--font-mono); }
.ta-go { margin: 0; padding: .8cqw; border-radius: var(--radius-pill); background: var(--byteai); color: #fff; font-weight: 700; text-align: center; }
.ta-me, .ta-ai, .ta-sug li, .ta-go { opacity: 0; transform: translateY(.6cqw); transition: opacity 250ms ease, transform 500ms cubic-bezier(.19, 1, .22, 1); }
.ta-me.done, .ta-ai.done, .ta-sug li.done, .ta-go.done { opacity: 1; transform: none; }
.tv-steps { left: 2.4cqw; right: 18cqw; bottom: 0; height: var(--bar); display: flex; align-items: center; gap: 1.2cqw; padding: 0; list-style: none; color: rgba(246,241,232,.42); font: 600 max(11px, 1.35cqw)/1 var(--font-sans); }
.tv-steps li { display: flex; align-items: center; gap: .55em; white-space: nowrap; transition: color 300ms ease; }
.tv-steps li + li::before { content: ""; width: 2.6cqw; height: 2px; margin-right: .65em; border-radius: 2px; background: currentColor; opacity: .55; }
.tv-steps i { flex: none; width: .78em; height: .78em; border: 2px solid currentColor; border-radius: 50%; transition: background 300ms ease, border-color 300ms ease, transform 400ms cubic-bezier(.34, 1.56, .64, 1); }
.tv-steps li.done { color: #F6F1E8; }
.tv-steps li.done i { border-color: var(--byteai); background: var(--byteai); transform: scale(1.15); }
/* the end title */
.tv-end { left: 0; right: 0; top: var(--bar); height: 56.25cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #F6F1E8; }
.tv-t { margin: 0; font: 800 9cqw/1 var(--font-display); letter-spacing: -.05em; transform: scale(1.1); filter: blur(6px); transition: transform 200ms ease, filter 200ms ease; }
.tv-end.on .tv-t { transform: none; filter: none; transition: transform 1100ms cubic-bezier(.19, 1, .22, 1), filter 500ms ease; animation: tvflick 2.4s steps(1) 1; }
.tv-s { margin: 1.6cqw 0 0; font: 600 2cqw/1.3 var(--font-sans); opacity: 0; transition: opacity 300ms ease; }
.tv-end.on .tv-s { opacity: 1; transition: opacity 600ms ease 1000ms; }
.tv-by { margin: 2.2cqw 0 0; font: 500 1.2cqw/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; opacity: 0; }
.tv-end.on .tv-by { opacity: .6; transition: opacity 600ms ease 1600ms; }

/* small players (phones, narrow columns): taller bars, bigger words; the call and the app grow to stay readable */
@container (max-width: 620px) {
  .pv { --bar: 18cqw; aspect-ratio: 100 / 92.25; }
  .tv-card p, .tv-sting p { font-size: 6.6cqw; }
  .tv-sting p:first-child { font-size: 5cqw; }
  .tv-sting .l2 { font-size: 5.6cqw; }
  .tv-chip { max-width: 80%; }
  .tv-sub { right: 15cqw; }
  .tv-sub span { font-size: max(12px, 3.4cqw); }
  .tv-call { width: 50cqw; font-size: 2.5cqw; padding: 2cqw; border-radius: 3cqw; top: calc(var(--bar) + 1.5cqw); }
  .tc-h i { width: 4cqw; height: 4cqw; }
  .tc-l { padding: 1cqw 1.4cqw; }
  .tv-ticket { width: 42cqw; font-size: 2.6cqw; padding: 2cqw; }
  .tv-app { width: 54cqw; right: 3cqw; top: calc(var(--bar) + 1cqw); font-size: 2.5cqw; padding: 2cqw; border-radius: 3cqw; }
  .ta-ai, .ta-sug em { display: none; }
  .tv-steps { gap: 2.4cqw; font-size: max(11px, 3.1cqw); }
  .tv-steps li + li::before { display: none; }
  .tv-t { font-size: 15cqw; }
  .tv-s { margin-top: 2.6cqw; font-size: 4cqw; }
  .tv-by { font-size: 2.6cqw; }
  .pv-tag { font-size: 9.5px; padding: 4px 7px; }
}
@media (max-width: 900px) { .pv-side { min-height: 0; padding: 8px 0 32px; } }
@media (max-width: 560px) {
  .promo-s { padding-bottom: 72px; }
  .pv { border-radius: 18px; }
  .pv-snd { min-height: 40px; padding: 0 11px; bottom: calc((var(--bar) - 40px) / 2); }
  .pv-snd span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tv > *, .tv-card p, .tv-sting p, .tv-chip span, .tv-steps i, .tv-call, .tc-l, .tv-ticket, .tv-app, .ta-me, .ta-ai, .ta-sug li, .ta-go, .tv-t, .tv-s, .tv-by { transition: none !important; animation: none !important; }
}

/* ---------- header: a menu button on phones and tablets, the header stays in reach ---------- */
.hd nav a { position: relative; }
.hd nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--thread); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease); }
.hd nav a:hover::after, .hd nav a[aria-current]::after { transform: scaleX(1); }
.hd nav a[aria-current] { color: var(--ink); }
.mnu-b { display: none; align-items: center; gap: 9px; min-height: 44px; padding: 0 17px 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--raised); color: var(--ink); font: 500 15px/1 var(--font-sans); cursor: pointer; transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.mnu-b:hover { border-color: var(--ink-faint); }
.mnu-b:active { transform: scale(.96); }
.mnu-i { display: grid; gap: 5px; width: 18px; }
.mnu-i i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.mnu-i i + i { width: 12px; }
.mnu-x svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .hd { position: sticky; top: 0; z-index: 30; background: var(--paper); }
  .hd nav .lang { display: none; }
  .hd .mnu-b { display: inline-flex; }
  #what, #how, #about, #ask, #ema, #promo { scroll-margin-top: 84px; }
}

/* ---------- the phone menu ---------- */
html.menu-open { overflow: hidden; }
.mnu { position: fixed; inset: 0; z-index: 58; display: flex; flex-direction: column; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.mnu.off { pointer-events: none; }
.mnu-top { position: sticky; top: 0; z-index: 1; flex: none; background: var(--paper); }
.mnu-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 76px; }
.mnu-top .trim { margin-top: -2px; }
.mnu .hnf-logo { font-size: 19px; }
.mnu .mnu-b { display: inline-flex; }
.mnu-body { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; padding-top: 22px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.mnu-k { margin: 0 0 6px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.mnu-list { margin: 0; padding: 0; list-style: none; }
.mnu-list a { display: grid; grid-template-columns: 10px minmax(0, 1fr) 20px; align-items: center; gap: 16px; min-height: 70px; padding: 10px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mnu-list a > i { width: 10px; height: 10px; border-radius: 50%; }
.mnu-list b { display: block; font: 700 23px/1.1 var(--font-display); letter-spacing: -.025em; }
.mnu-list small { display: block; margin-top: 4px; font: 400 14px/1.3 var(--font-sans); color: var(--ink-faint); }
.mnu-list svg { width: 20px; height: 20px; color: var(--ink-faint); transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.mnu-list a:hover svg, .mnu-list a:active svg { transform: translateX(4px); color: var(--ink); }
.mnu-list a[aria-current="page"] b { text-decoration: underline 2px var(--thread); text-underline-offset: 6px; }
.mnu-more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.mnu-more a { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--raised); color: var(--ink); font: 500 15px/1 var(--font-sans); text-decoration: none; }
.mnu-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 28px; }
.mnu-foot .lang button { min-width: 46px; min-height: 44px; }
.mnu-foot .talk { flex: 1; justify-content: center; min-height: 54px; font-size: 16px; }
@media (max-width: 560px) {
  .mnu-top .wrap { height: 64px; }
  .mnu .hnf-logo { font-size: 16px; }
  .mnu .hnf-logo__word { display: none; }
}
html.mo .mnu { opacity: 0; transition: opacity 220ms var(--ease); }
html.mo .mnu.on { opacity: 1; }
html.mo .mnu-list li, html.mo .mnu-more, html.mo .mnu-foot { opacity: 0; transform: translateY(18px); }
html.mo .mnu.on .mnu-list li, html.mo .mnu.on .mnu-more, html.mo .mnu.on .mnu-foot { opacity: 1; transform: none; transition: opacity 500ms ease calc(70ms + var(--i) * 45ms), transform 900ms cubic-bezier(.19, 1, .22, 1) calc(70ms + var(--i) * 45ms); }
html.mo .mnu-list a > i { transform: scale(0); }
html.mo .mnu.on .mnu-list a > i { transform: scale(1); transition: transform 500ms cubic-bezier(.34, 1.56, .64, 1) calc(260ms + var(--i) * 45ms); }

/* ---------- the caption under the phone (below 1240 px, where the side notes do not fit): a live line you can read ---------- */
@media (max-width: 1239px) {
  .caption b { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 9px; font: 500 12px/1.2 var(--font-mono); color: var(--ink-soft); }
  .caption b::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--thread); box-shadow: 0 0 0 3px var(--thread-tint); }
  .caption b:empty { display: none; }
  .caption span { display: block; width: max-content; max-width: calc(100% - 32px); margin: 0 auto; padding: 11px 18px; border-radius: 16px; background: var(--ink); color: var(--paper); font: 600 15px/1.3 var(--font-sans); text-wrap: balance; box-shadow: 0 14px 30px -18px rgba(22,24,29,.6); }
  .caption span:empty { display: none; }
  .caption span.swap { animation: capin 420ms var(--ease); }
}

/* ---------- footer: "human" keeps coming back, "not" steps out, then it is gone again ---------- */
.word .wnot { display: inline-block; max-width: 1.9em; padding-right: .24em; }
@media (prefers-reduced-motion: no-preference) {
  html.mo .word.in .wh .ch { animation: hnf-human 9s cubic-bezier(.19, 1, .22, 1) calc(3800ms + var(--i) * 70ms) infinite; }
  html.mo .word.in .wnot { animation: hnf-not 9s cubic-bezier(.65, 0, .35, 1) 3800ms infinite; }
  html.mo .word.in .wnot .ch { animation: hnf-notch 9s cubic-bezier(.19, 1, .22, 1) calc(3800ms + (var(--i) - 5) * 60ms) infinite; }
}
@keyframes hnf-human { 0%, 34% { color: var(--aida); transform: none; } 38% { color: var(--ink); transform: translateY(-.08em); } 42%, 74% { color: var(--ink); transform: none; } 82%, 100% { color: var(--aida); transform: none; } }
@keyframes hnf-not { 0%, 32% { max-width: 1.9em; padding-right: .24em; } 40%, 75% { max-width: 0; padding-right: 0; } 82%, 100% { max-width: 1.9em; padding-right: .24em; } }
@keyframes hnf-notch { 0%, 27% { opacity: 1; transform: none; } 33% { opacity: 0; transform: translateY(.45em) rotate(10deg); } 34%, 76% { opacity: 0; transform: translateY(-.45em); } 83%, 100% { opacity: 1; transform: none; } }

/* the search result links to its page */
.nres-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

/* ---------- 404 ---------- */
.nf { padding: 32px 0 120px; }
.nf-code { margin: 0; font: 800 clamp(150px, 26vw, 380px)/.85 var(--font-display); letter-spacing: -.06em; color: var(--ink); white-space: nowrap; }
.nf-h { margin: 22px 0 0; font: 800 clamp(40px, 5vw, 72px)/1 var(--font-display); letter-spacing: -.045em; }
.nf-h span { display: block; font-weight: 300; }
.nf-box { width: min(720px, 100%); margin-top: 40px; }
.nf-home { margin-top: 18px; padding: 0; }

@media (max-width: 1080px) {
  .mlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .logw { min-height: 0; padding: 24px 0 40px; }
  .log-orn { width: 120px; top: -6px; }
}
@media (max-width: 560px) {
  .pp-facts { padding: 64px 0; }
  .pfacts > div { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .modes, .pp-next { padding-bottom: 72px; }
  .mlist { gap: 10px; }
  .mlist li { min-height: 168px; padding: 18px; border-radius: 20px; }
  .mlist b { margin-top: 20px; font-size: 22px; }
  .mchip { top: 18px; right: 18px; }
  .log { padding: 18px; }
  .log-l li { grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 10px; font-size: 14px; }
  .nf { padding-bottom: 80px; }
}

/* ---------- motion (html.mo is set by JS only when motion is allowed) ---------- */
html.mo .rv.in { transition: opacity 900ms ease, transform 1600ms cubic-bezier(.19, 1, .22, 1); transition-delay: calc(var(--i, 0) * 90ms); }
html.mo .rv:not(.in) { opacity: 0; transform: translateY(56px); }
html.mo .night { clip-path: inset(0 var(--nx, 0px) round var(--nr, 0px)); }
html.mo .tscript.arm .nl.on, html.mo .tscript.arm .saved.on { transition: opacity 360ms ease, transform 900ms cubic-bezier(.19, 1, .22, 1); }
html.mo .tscript.arm .nl:not(.on), html.mo .tscript.arm .saved:not(.on) { opacity: 0; transform: translateY(14px); }
html.mo .tscript.arm .tp i { width: 0; }
html.mo .log.arm li.on, html.mo .log.arm .log-p.on { transition: opacity 360ms ease, transform 900ms cubic-bezier(.19, 1, .22, 1); }
html.mo .log.arm li:not(.on), html.mo .log.arm .log-p:not(.on) { opacity: 0; transform: translateY(12px); }
html.mo .log.arm .tp i { width: 0; }
html.mo .word.in .ch { transition: transform 1400ms cubic-bezier(.19, 1, .22, 1) calc(var(--i) * 45ms), opacity 700ms ease calc(var(--i) * 45ms), color 900ms ease calc(1500ms + var(--i) * 110ms); }
html.mo .word:not(.in) .ch { opacity: 0; transform: translateY(.55em); }
html.mo .word:not(.in) .wh .ch { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .word i { animation: none; } }

/* ---------- smooth scrolling (owner 2026-11-22): every endless loop pauses while it is off screen (JS sets .zz), so a
   scroll frame only moves pixels; in-page links glide unless the visitor asked for less motion ---------- */
.zz, .zz *, .zz *::before, .zz *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
