/* Balance Kitchen Idea: the guest journey connected to hospitality operations. */
.balance-idea {
  --balance-ink: #f4f7fb;
  --balance-muted: #b9c6d5;
  --balance-subtle: #8fa2b9;
  --balance-card: rgba(11, 27, 49, 0.94);
  --balance-card-raised: rgba(16, 39, 65, 0.96);
  --balance-edge: rgba(181, 207, 223, 0.2);
  --balance-accent: #52d7c2;
  --balance-accent-strong: #0c9f89;
  --balance-warm: #f2b565;
  display: block;
  padding-top: clamp(46px, 7vw, 84px);
  padding-bottom: clamp(54px, 7vw, 92px);
  border-top: 1px solid var(--line);
  color: var(--balance-ink);
}

:root[data-theme="light"] .balance-idea {
  --balance-ink: #13283b;
  --balance-muted: #526675;
  --balance-subtle: #718391;
  --balance-card: rgba(255, 255, 255, 0.96);
  --balance-card-raised: #f7faf7;
  --balance-edge: rgba(30, 72, 65, 0.16);
  --balance-accent: #168f7d;
  --balance-accent-strong: #087565;
  --balance-warm: #bd762b;
}

.balance-idea-heading {
  position: relative;
  display: grid;
  min-height: 292px;
  align-content: center;
  justify-items: center;
  margin-bottom: 28px;
  padding: clamp(36px, 5vw, 66px) clamp(22px, 7vw, 96px);
  overflow: hidden;
  border: 1px solid var(--balance-edge);
  border-radius: 26px;
  background-image: linear-gradient(90deg, rgba(4, 19, 35, 0.91), rgba(4, 19, 35, 0.72) 48%, rgba(4, 19, 35, 0.28)), url("assets/balance-kitchen-header.webp");
  background-position: center 54%;
  background-size: cover;
  isolation: isolate;
  text-align: center;
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .balance-idea-heading {
  background-image: linear-gradient(90deg, rgba(250, 251, 246, 0.92), rgba(250, 251, 246, 0.84) 48%, rgba(250, 251, 246, 0.5)), url("assets/balance-kitchen-header.webp");
}

.balance-idea-heading::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at 50% 100%, rgba(39, 186, 156, 0.16), transparent 55%);
  pointer-events: none;
}

.balance-idea-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--balance-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.balance-idea-heading .eyebrow > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 15px currentColor;
}

.balance-idea-heading h2 {
  max-width: 900px;
  margin: 0;
  color: var(--balance-ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 66px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.balance-idea-heading h2 em {
  color: transparent;
  background: linear-gradient(100deg, var(--balance-accent), #f2c27e 88%);
  background-clip: text;
  font-style: normal;
  -webkit-background-clip: text;
}

.balance-idea-heading > p:not(.eyebrow) {
  max-width: 790px;
  margin: 18px 0 0;
  color: var(--balance-muted);
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.7;
}

.balance-partnership-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 23px;
  color: var(--balance-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.balance-partnership-line i {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--balance-accent), transparent);
}

.balance-journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.balance-journey-step {
  position: relative;
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--balance-edge);
  border-radius: 18px;
  background: var(--balance-card);
  box-shadow: 0 13px 38px rgba(3, 13, 28, 0.1);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.balance-journey-step:hover,
.balance-journey-step:focus-within {
  z-index: 2;
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--balance-accent) 56%, var(--balance-edge));
  box-shadow: 0 19px 42px rgba(3, 13, 28, 0.18);
}

.balance-journey-step:not(:last-child)::after {
  position: absolute;
  z-index: 3;
  top: 62px;
  right: -13px;
  width: 14px;
  color: var(--balance-accent);
  content: "›";
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 12px color-mix(in srgb, var(--balance-accent) 70%, transparent);
  animation: balance-journey-chevron 2.8s ease-in-out infinite;
}

.balance-journey-step:nth-child(2)::after { animation-delay: 120ms; }
.balance-journey-step:nth-child(3)::after { animation-delay: 240ms; }
.balance-journey-step:nth-child(4)::after { animation-delay: 360ms; }
.balance-journey-step:nth-child(5)::after { animation-delay: 480ms; }
.balance-journey-step:nth-child(6)::after { animation-delay: 600ms; }

.balance-stage-art {
  position: relative;
  display: grid;
  height: 136px;
  place-items: center;
  overflow: hidden;
  border-radius: 17px 17px 0 0;
  background: linear-gradient(145deg, #18394a, #102736);
  isolation: isolate;
}

.balance-stage-art::before,
.balance-stage-art::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.balance-stage-art::before {
  opacity: 0.84;
  background: radial-gradient(circle at 72% 26%, rgba(250, 221, 160, 0.42), transparent 35%);
  transition: transform 500ms ease, opacity 500ms ease;
}

.balance-journey-step:hover .balance-stage-art::before {
  opacity: 1;
  transform: scale(1.16);
}

.balance-stage-art::after {
  z-index: 3;
  background: linear-gradient(125deg, transparent 25%, rgba(255, 255, 255, 0.12) 47%, transparent 63%);
  transform: translateX(-120%);
  transition: transform 700ms ease;
}

.balance-journey-step:hover .balance-stage-art::after {
  transform: translateX(120%);
}

.balance-stage-marketing .balance-stage-art {
  background: linear-gradient(130deg, rgba(8, 31, 41, 0.22), rgba(7, 23, 34, 0.78)), url("assets/balance-kitchen-header.webp") 72% 50% / cover;
}

.balance-stage-promotions .balance-stage-art { background: linear-gradient(145deg, #563d37, #372832 65%, #1d2936); }
.balance-stage-commerce .balance-stage-art { background: linear-gradient(145deg, #264c42, #163a39 58%, #193344); }
.balance-stage-identity .balance-stage-art { background: linear-gradient(145deg, #264554, #1a3448 58%, #202c42); }
.balance-stage-production .balance-stage-art { background: linear-gradient(145deg, #513b2d, #3a3028 58%, #1d3541); }
.balance-stage-delivery .balance-stage-art { background: linear-gradient(145deg, #25484b, #1a3446 55%, #222b46); }
.balance-stage-inventory .balance-stage-art { background: linear-gradient(145deg, #3d4c32, #263c37 55%, #1d3440); }

.balance-stage-icon,
.stage-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(240, 253, 247, 0.58);
  border-radius: 50%;
  color: #f6fffc;
  background: rgba(5, 24, 35, 0.38);
  box-shadow: 0 0 24px rgba(104, 236, 208, 0.18);
  backdrop-filter: blur(8px);
}

.stage-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.stage-orbit {
  position: absolute;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(217, 255, 241, 0.36);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(67, 221, 191, 0.2), inset 0 0 20px rgba(67, 221, 191, 0.12);
  animation: balance-orbit-turn 16s linear infinite;
}

.stage-orbit::before,
.stage-orbit::after {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d7ffeb;
  box-shadow: 0 0 11px #73efcc;
  content: "";
}

.stage-orbit::before { top: 11px; left: 14px; }
.stage-orbit::after { right: 9px; bottom: 21px; }

.stage-art-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  text-transform: uppercase;
}

.offer-card,
.commerce-order,
.identity-card,
.production-ticket,
.stock-board {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  width: min(82%, 156px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  color: #f8fbf7;
  background: rgba(10, 26, 36, 0.76);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.19);
  backdrop-filter: blur(8px);
  transform: rotate(-3deg);
  transition: transform 350ms ease;
}

.balance-journey-step:hover .offer-card,
.balance-journey-step:hover .commerce-order,
.balance-journey-step:hover .identity-card,
.balance-journey-step:hover .production-ticket,
.balance-journey-step:hover .stock-board {
  transform: rotate(0deg) translateY(-3px);
}

.offer-card b,
.production-ticket > b,
.stock-board > b,
.commerce-order small {
  color: #a8f0dc;
  font-size: 7px;
  letter-spacing: 0.12em;
}

.offer-card strong {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.12;
}

.offer-card i {
  width: fit-content;
  margin-top: 2px;
  padding: 4px 7px;
  border-radius: 99px;
  color: #fff;
  background: #c17b52;
  font-size: 7px;
  font-style: normal;
}

.offer-spark {
  position: absolute;
  top: 17px;
  right: 24px;
  color: #ffe2a9;
  font-size: 20px;
  text-shadow: 0 0 13px rgba(255, 218, 142, 0.8);
  animation: balance-spark 2.2s ease-in-out infinite;
}

.commerce-dish {
  position: absolute;
  top: 22px;
  left: 16px;
  display: block;
  width: 76px;
  height: 76px;
  border: 5px solid rgba(246, 248, 232, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 38%, #9dbb62 0 13%, transparent 15%), radial-gradient(circle at 67% 37%, #d97840 0 14%, transparent 16%), radial-gradient(circle at 49% 65%, #f0c46d 0 17%, transparent 19%), radial-gradient(circle at 32% 69%, #773f2c 0 10%, transparent 12%), #e6cc8c;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22), inset 0 0 0 3px rgba(255, 255, 255, 0.45);
  transform: rotate(-8deg);
}

.commerce-order {
  position: absolute;
  right: 12px;
  bottom: 15px;
  width: 112px;
  padding: 9px;
  transform: rotate(3deg);
}

.commerce-order b { font-size: 8px; line-height: 1.2; }
.commerce-order em { color: #fff; font-size: 7px; font-style: normal; }
.commerce-order em span { color: #9fead7; }

.identity-card {
  width: 146px;
  min-height: 88px;
  padding: 12px 12px 10px 45px;
  transform: rotate(3deg);
}

.identity-avatar {
  position: absolute;
  top: 17px;
  left: 12px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #e5c39c 0 26%, transparent 28%), radial-gradient(ellipse at 50% 100%, #589284 0 45%, transparent 47%);
}

.identity-card b { font-size: 8px; }
.identity-card small { color: #c3d3d7; font-size: 7px; }

.identity-shield {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 17px;
  height: 20px;
  place-items: center;
  clip-path: polygon(50% 0, 95% 18%, 88% 66%, 50% 100%, 12% 66%, 5% 18%);
  color: #07352f;
  background: #90e3c7;
  font-size: 9px;
  font-weight: 800;
}

.production-ticket {
  width: min(86%, 168px);
  transform: rotate(2deg);
}

.production-ticket i,
.stock-board i {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ecf3ef;
  font-size: 7px;
  font-style: normal;
}

.production-ticket i span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f0c26e;
  box-shadow: 0 0 8px rgba(240, 194, 110, 0.7);
}

.production-ticket i:nth-of-type(2) span { background: #63dac2; box-shadow: 0 0 8px rgba(99, 218, 194, 0.68); }
.production-ticket i:nth-of-type(3) span { background: #a9d77c; box-shadow: 0 0 8px rgba(169, 215, 124, 0.65); }

.production-steam {
  position: absolute;
  top: 15px;
  right: 24px;
  color: #fff1d5;
  font-size: 21px;
  transform: rotate(-90deg);
  animation: balance-steam 2.6s ease-in-out infinite;
}

.delivery-route {
  position: relative;
  display: flex;
  width: 72%;
  align-items: center;
  justify-content: space-between;
  border-top: 2px dashed rgba(198, 244, 231, 0.7);
}

.delivery-route i,
.delivery-route b {
  position: relative;
  top: -4px;
  width: 7px;
  height: 7px;
  border: 1px solid #e8fff7;
  border-radius: 50%;
  background: #54d8b9;
  box-shadow: 0 0 11px rgba(84, 216, 185, 0.76);
}

.delivery-route b { color: #ffe0a5; background: #f3bc62; }

.delivery-pin {
  position: absolute;
  top: 26px;
  left: 50%;
  color: #ffdc9e;
  font-size: 35px;
  text-shadow: 0 0 16px rgba(255, 213, 143, 0.65);
  transform: translateX(-50%);
}

.stock-board { width: min(88%, 174px); transform: rotate(-2deg); }
.stock-board > b { margin-bottom: 2px; }

.stock-board i { justify-content: space-between; }

.stock-board i span {
  width: 45px;
  height: 4px;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(225, 240, 233, 0.18);
}

.stock-board i u {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ed896, #d7db83);
  text-decoration: none;
}

.stock-board i:nth-of-type(1) u { width: 78%; }
.stock-board i:nth-of-type(2) u { width: 54%; }
.stock-board i:nth-of-type(3) u { width: 88%; }

.balance-stage-copy { padding: 13px 13px 16px; }

.balance-stage-number {
  display: block;
  margin-bottom: 7px;
  color: var(--balance-accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.balance-stage-copy h3 {
  margin: 0;
  color: var(--balance-ink);
  font-family: var(--font-display);
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.balance-stage-copy p {
  margin: 8px 0 0;
  color: var(--balance-muted);
  font-size: 10px;
  line-height: 1.55;
}

.balance-operations-preview {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.8fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  margin-top: 24px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--balance-edge);
  border-radius: 22px;
  background: linear-gradient(120deg, var(--balance-card-raised), var(--balance-card));
  box-shadow: 0 15px 46px rgba(3, 13, 28, 0.1);
}

.balance-operations-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 11px;
  color: var(--balance-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.balance-operations-copy .eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.balance-operations-copy h3 {
  margin: 0;
  color: var(--balance-ink);
  font-family: var(--font-display);
  font-size: clamp(23px, 2.5vw, 32px);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.balance-operations-copy > p:last-child {
  max-width: 340px;
  margin: 11px 0 0;
  color: var(--balance-muted);
  font-size: 12px;
  line-height: 1.65;
}

.balance-operations-board {
  min-width: 0;
  padding: 17px 19px 13px;
  border: 1px solid var(--balance-edge);
  border-radius: 16px;
  background: color-mix(in srgb, var(--balance-card) 88%, var(--balance-accent) 4%);
}

.operations-board-top,
.operations-board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--balance-subtle);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.operations-board-top span,
.operations-board-foot span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.operations-board-top span i,
.operations-board-foot span:last-child i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--balance-accent);
  box-shadow: 0 0 9px var(--balance-accent);
}

.operations-board-top b { color: var(--balance-warm); font-size: 7px; }

.operations-board-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 21px 0;
}

.operations-board-flow > div {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 5px;
}

.operations-glyph {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--balance-accent) 40%, var(--balance-edge));
  border-radius: 9px;
  color: var(--balance-accent);
  background: color-mix(in srgb, var(--balance-accent) 10%, transparent);
  font-size: 13px;
}

.operations-board-flow b {
  overflow: hidden;
  color: var(--balance-ink);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-board-flow small {
  overflow: hidden;
  color: var(--balance-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-board-flow > i {
  color: var(--balance-accent);
  font-size: 15px;
  font-style: normal;
  animation: balance-flow-pulse 2.6s ease-in-out infinite;
}

.operations-board-flow > i:nth-of-type(2) { animation-delay: 350ms; }
.operations-board-flow > i:nth-of-type(3) { animation-delay: 700ms; }

.operations-board-foot {
  padding-top: 10px;
  border-top: 1px solid var(--balance-edge);
  letter-spacing: 0.08em;
}

@keyframes balance-orbit-turn { to { transform: rotate(360deg); } }
@keyframes balance-spark { 50% { opacity: 0.55; transform: scale(0.8) rotate(12deg); } }
@keyframes balance-steam { 50% { opacity: 0.45; transform: translateY(-4px) rotate(-90deg); } }
@keyframes balance-journey-chevron { 50% { opacity: 0.42; transform: translateX(2px); } }
@keyframes balance-flow-pulse { 50% { opacity: 0.38; text-shadow: 0 0 10px var(--balance-accent); } }

html.motion-ready .balance-idea:not(.is-visible) .balance-journey-step {
  opacity: 0;
  transform: translateY(14px);
}

html.motion-ready .balance-idea.is-visible .balance-journey-step {
  transition-delay: 0ms;
}

html.motion-ready .balance-idea.is-visible .balance-journey-step:nth-child(2) { transition-delay: 60ms; }
html.motion-ready .balance-idea.is-visible .balance-journey-step:nth-child(3) { transition-delay: 120ms; }
html.motion-ready .balance-idea.is-visible .balance-journey-step:nth-child(4) { transition-delay: 180ms; }
html.motion-ready .balance-idea.is-visible .balance-journey-step:nth-child(5) { transition-delay: 240ms; }
html.motion-ready .balance-idea.is-visible .balance-journey-step:nth-child(6) { transition-delay: 300ms; }
html.motion-ready .balance-idea.is-visible .balance-journey-step:nth-child(7) { transition-delay: 360ms; }

@media (max-width: 1180px) {
  .balance-journey { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .balance-journey-step:not(:last-child)::after { display: none; }
  .balance-stage-copy h3 { font-size: 16px; }
  .balance-stage-copy p { font-size: 11px; }
}

@media (max-width: 800px) {
  .balance-idea-heading { min-height: 270px; padding: 36px 25px; }
  .balance-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .balance-stage-art { height: 150px; }
  .balance-operations-preview { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 480px) {
  .balance-idea { padding-top: 38px; padding-bottom: 48px; }
  .balance-idea-heading { min-height: 310px; margin-bottom: 17px; padding: 31px 18px; border-radius: 19px; }
  .balance-idea-heading h2 { font-size: clamp(32px, 10vw, 43px); }
  .balance-idea-heading > p:not(.eyebrow) { font-size: 13px; }
  .balance-partnership-line { gap: 8px; font-size: 8px; }
  .balance-partnership-line i { width: 14px; }
  .balance-journey { gap: 9px; }
  .balance-stage-art { height: 122px; }
  .balance-stage-copy { padding: 11px 10px 13px; }
  .balance-stage-copy h3 { font-size: 14px; }
  .balance-stage-copy p { font-size: 10px; }
  .balance-operations-preview { margin-top: 16px; padding: 18px 15px; border-radius: 17px; }
  .balance-operations-board { padding: 14px 11px 11px; }
  .operations-board-flow { gap: 4px; }
  .operations-board-flow b { font-size: 8px; }
  .operations-board-flow small { font-size: 7px; white-space: normal; }
  .operations-board-top,
  .operations-board-foot { font-size: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .balance-stage-art::before,
  .balance-stage-art::after,
  .balance-journey-step,
  .stage-orbit,
  .offer-spark,
  .production-steam,
  .balance-journey-step::after,
  .operations-board-flow > i {
    animation: none !important;
    transition: none !important;
  }

  html.motion-ready .balance-idea.is-visible .balance-journey-step {
    opacity: 1;
    transform: none;
  }
}
