.hero { min-height: auto; background: var(--ink); }
.hero-grid { min-height: min(73vh, 740px); grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 72px); }
.hero h1 { max-width: 14ch; font-size: clamp(3.1rem, 4.5vw, 5.5rem); line-height: 1.05; }
.hero h1 em { max-width: 13ch; }
.hero-copy { padding-block: 62px; }
.hero-copy > p { margin-top: 23px; }
.hero-actions { margin-top: 26px; }
.product-stage { height: clamp(400px, 40vw, 610px); isolation: isolate; }
.hero #fluid { inset: 0; z-index: -1; display: block; width: 100%; height: 100%; }
.hero #fluid[hidden] { display: none; }
.screen-hub { width: 87%; left: 4%; top: 11%; }
.screen-studio { width: 73%; right: 3%; bottom: 12%; }
.floating-screen { border-color: #54615d; }
.floating-screen:hover, .image-button:hover { border-color: var(--gold); }
.wide-statement { border-top: 1px solid var(--line); padding-block: clamp(48px, 5vw, 80px); }
.portfolio { padding-bottom: clamp(52px, 6vw, 84px); }
.portfolio .section-heading { margin-bottom: 42px; }
.portfolio .product { gap: clamp(24px, 4.5vw, 74px); margin-top: 0; padding: clamp(30px, 4vw, 58px) 0; }
.portfolio .product:last-child { padding-bottom: 0; }
.product .image-button, .product-studio .image-button { transform: none; }
.product .image-button:hover { transform: translateY(-3px); }
.product .image-hint { background: #0a0e12; }
.serve-case, .brief-section { background: #0e171c; }
.method-section { background: #101b21; }
.build-stage { border: 1px solid #344d50; background: #14252b; }
.build-experience { grid-template-columns: minmax(240px, .75fr) minmax(0, 1.3fr); gap: clamp(26px, 5vw, 68px); }
.build-steps { justify-content: center; gap: 10px; position: relative; }
.build-steps button {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 1px solid #3b4c4e;
  border-radius: 14px;
  background: #111e24;
  color: #d3dfdb;
  padding: 16px 18px;
  transform: none;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.build-steps button::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1px solid #8ca8a2;
  border-radius: 50%;
  transition: background .25s, border-color .25s, transform .25s;
}
.build-steps button:hover { border-color: #94aba5; background: #18292e; }
.build-steps button[aria-selected='true'] { background: #26302b; border-color: #c09f5b; color: #fae4b0; transform: translateX(5px); }
.build-steps button[aria-selected='true']::before { background: var(--gold); border-color: var(--gold); transform: scale(1.14); }
.build-steps button:active { transform: scale(.98); }
.build-explanation { position: relative; }
.chat-in { background: #20343f; }
.chat-out { background: #29362d; color: #edf1df; }
.capability-scene { min-height: 360px; }
.brief-intro .brief-email { display: table; margin-top: 12px; }

.serve-demo { overflow: hidden; border: 1px solid #53676a; border-radius: 18px; }
.serve-demo-bar, .serve-demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #14252b;
  padding: 15px clamp(16px, 3vw, 27px);
}
.serve-demo-bar strong { font-size: .96rem; }
.serve-demo-bar span, .serve-demo-footer > span { color: #c2d1ce; font-size: .81rem; }
.serve-demo-footer .text-button { margin: 0; flex-shrink: 0; }
.serve-demo-grid {
  display: grid;
  grid-template-columns: minmax(155px, .8fr) minmax(0, 1.55fr) minmax(230px, 1.13fr);
  color: #15292e;
  background: #f5f3ed;
}
.serve-demo-grid > div { min-width: 0; padding: clamp(15px, 2vw, 24px); }
.serve-demo-grid > div + div { border-left: 1px solid #dadbd3; }
.serve-demo-grid h3 { font-size: 1.03rem; margin-bottom: 18px; }
.serve-orders { background: #ebece4; }
.serve-orders button {
  width: 100%;
  display: block;
  padding: 11px 12px;
  margin-bottom: 8px;
  text-align: left;
  border: 1px solid #cbd0c6;
  background: #f8f7f2;
  color: #22383a;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.serve-orders button:hover { border-color: #526e64; }
.serve-orders button[aria-pressed='true'] { background: #dce9e1; border-color: #628e79; }
.serve-orders button:focus-visible { outline-color: #167064; outline-offset: 2px; }
.serve-orders button strong, .serve-orders button span { display: block; }
.serve-orders button strong { font-size: .86rem; }
.serve-orders button span { font-size: .73rem; color: #425a55; margin-top: 3px; }
.serve-conversation { background: #f0eee7; }
.serve-chat-in, .serve-chat-out { font-size: .88rem; padding: 12px 14px; border-radius: 12px; }
.serve-chat-in { background: #fff; margin-right: 12%; }
.serve-chat-out { background: #dce9dc; margin: 12px 0 0 12%; }
.serve-handoff { font-size: .79rem; color: #41574e; margin-top: 20px; border-top: 1px solid #c8d1c6; padding-top: 12px; }
.serve-ticket h3 { margin-bottom: 7px; }
#demo-ticket-meta { color: #43594e; font-size: .8rem; }
.serve-ticket ul { margin: 13px 0; padding: 0; list-style: none; }
.serve-ticket li, .serve-total { display: flex; justify-content: space-between; gap: 12px; }
.serve-ticket li { padding-block: 7px; border-bottom: 1px solid #dfdfd5; font-size: .79rem; }
.serve-ticket li strong, .serve-total strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.serve-total { font-size: 1.03rem; font-weight: 650; }
.demo-payment { margin-top: 12px; border-radius: 8px; padding: 9px 11px; background: #eee3c7; color: #514320; font-size: .77rem; }

.serve-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0 0 clamp(24px, 4vw, 48px);
  padding: 19px 0;
  border-block: 1px solid #33464b;
  color: #e3c985;
  font-size: .82rem;
}
.serve-workflow li { display: flex; align-items: center; gap: 13px; --delay: 0s; }
.serve-workflow li:nth-child(2) { --delay: 1.5s; }
.serve-workflow li:nth-child(3) { --delay: 3s; }
.serve-workflow li:nth-child(4) { --delay: 4.5s; }
.serve-workflow i { display: block; position: relative; min-width: 12px; height: 1px; flex: 1; background: #78633e; }
.serve-workflow i::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 7px;
  height: 5px;
  border-radius: 999px;
  background: #58e0d8;
  opacity: 0;
}
.serve-workflow.in-view i::after { animation: workflow-pulse 6.5s linear var(--delay) infinite; }
.serve-workflow.in-view span { animation: workflow-stage 6.5s ease-out var(--delay) infinite; }
@keyframes workflow-pulse {
  0% { left: 0; opacity: 0; }
  3%, 19% { opacity: 1; }
  23%, 100% { left: calc(100% - 7px); opacity: 0; }
}
@keyframes workflow-stage {
  0%, 21%, 100% { color: #e3c985; }
  7%, 14% { color: #6ff2e4; }
}
.motion-paused .serve-workflow.in-view i::after,
.motion-paused .serve-workflow.in-view span { animation: none; }

.serve-modules { margin-top: clamp(32px, 5vw, 57px); }
.serve-modules h3 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin-bottom: 21px; }
.serve-modules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.serve-modules details { border: 1px solid #3a5152; border-radius: 15px; background: #14242b; transition: border-color .2s, background .2s; }
.serve-modules details:hover { background: #192d34; border-color: #729291; }
.serve-modules details[open] { border-color: #a58b56; }
.serve-modules summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 16px clamp(14px, 2vw, 24px);
  border-radius: inherit;
  list-style: none;
  cursor: pointer;
  color: #f3dcaa;
  font-weight: 650;
  font-size: .96rem;
}
.serve-modules summary::-webkit-details-marker { display: none; }
.serve-modules summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-inline: 4px;
  flex: none;
  border: solid #70d6ca;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.serve-modules details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.serve-modules details p { padding: 0 clamp(14px, 2vw, 24px) 18px; font-size: .87rem; color: #c6d2ce; }
.serve-modules details[open] p { animation: serve-reveal .28s ease-out both; }
.delivery-hook { font-size: clamp(1.55rem, 3.4vw, 2.7rem); margin-bottom: 12px; }
.delivery-intro { color: var(--muted); max-width: 64ch; margin-bottom: 24px; }
.delivery-controls { display: grid; gap: 15px; padding: 16px clamp(16px, 3vw, 27px); border-top: 1px solid #40565a; background: #17282d; }
.delivery-controls[hidden], .delivery-art[hidden], .delivery-art img[hidden] { display: none; }
.delivery-progress { display: flex; flex-wrap: wrap; gap: 7px; }
.delivery-progress button { border: 1px solid #536a69; border-radius: 999px; padding: 7px 13px; background: #101b20; color: #d8e3dd; cursor: pointer; font-size: .78rem; transition: background .2s, border-color .2s; }
.delivery-progress button:hover { border-color: #e4c985; }
.delivery-progress button[aria-current='step'] { background: #dbbd78; color: #18221f; border-color: #dbbd78; font-weight: 650; }
.delivery-next { justify-self: start; min-height: 42px; padding: 8px 17px; cursor: pointer; }
.delivery-next::after { display: none; }
.serve-demo-footer { border-top: 1px solid #40565a; }
.delivery-art { display: grid; justify-items: start; gap: 5px; margin-top: 13px; background: #e5e9dd; color: #274138; padding: 13px; border: 1px solid #c2cec2; border-radius: 11px; font-size: .83rem; }
.delivery-art img { display: block; width: 110px; height: 110px; image-rendering: pixelated; }
.delivery-art span { font-size: .76rem; }

.delivery-view {
  display: grid;
  grid-template-columns: minmax(240px, .64fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(16px, 3vw, 34px);
  border-block: 1px solid #40565a;
  background: #122128;
  animation: serve-reveal .3s ease-out both;
}
.delivery-view[hidden] { display: none; }
@keyframes serve-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.comanda { border-radius: 12px; padding: clamp(16px, 2vw, 26px); background: #f5efdf; color: #17292c; }
.comanda header { padding-bottom: 12px; border-bottom: 1px dashed #918980; }
.comanda h4, .delivery-view-heading h4 { font-size: clamp(1.12rem, 2vw, 1.55rem); }
.comanda header p { font-size: .79rem; color: #495b55; }
.comanda ul { list-style: none; margin: 0 0 13px; padding: 10px 0; border-bottom: 1px dashed #918980; }
.comanda li { display: flex; gap: 10px; padding: 4px 0; font-size: .86rem; }
.comanda li b { color: #34574b; white-space: nowrap; }
.comanda-stamp { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #dee8d6; color: #285344; font-size: .77rem; font-weight: 700; }
.kitchen-preview { margin: 0; }
.kitchen-preview button { display: grid; width: 100%; overflow: hidden; padding: 0; border: 1px solid #556d6e; border-radius: 12px; background: #1b3138; color: #f0dbab; text-align: left; cursor: pointer; }
.kitchen-preview button:hover { border-color: #e1b969; }
.kitchen-preview img { display: block; width: 100%; height: auto; }
.kitchen-preview button > span { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: .78rem; }
.kitchen-preview figcaption, .delivery-view-heading p { margin-top: 9px; color: #bccdc9; font-size: .81rem; }
.delivery-view-heading .close-total { margin-top: 19px; color: #7be3cd; }
.close-total strong { font-size: 1.18rem; }
.order-log { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.order-log li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-left: 2px solid #698584; border-radius: 0 8px 8px 0; background: #1b3037; }
.order-log li[aria-current='step'] { border-color: #7be3cd; background: #223e38; color: #a8f0df; }
.order-log time { color: #c3d5d0; font-size: .74rem; font-variant-numeric: tabular-nums; }
.order-log strong { font-size: .86rem; }
.motion-paused .delivery-view,
.motion-paused .serve-modules details[open] p { animation: none; }

@media (min-width: 1550px) {
  .wrap, .header { width: min(1570px, calc(100% - 156px)); max-width: none; }
  .portfolio .product-copy { max-width: 465px; }
}

@media (max-width: 1000px) and (min-width: 801px) {
  .hero-grid { gap: 26px; }
  .hero h1 { font-size: clamp(2.75rem, 5vw, 3.6rem); }
  .product-stage { height: 360px; }
}

@media (max-width: 1050px) {
  .serve-demo-grid { grid-template-columns: minmax(140px, .8fr) minmax(0, 1.3fr) minmax(190px, 1fr); }
  .serve-demo-grid > div { padding: 15px; }
}

@media (max-width: 800px) {
  .hero-grid, .build-experience { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; gap: 0; }
  .hero h1 { font-size: clamp(2.85rem, 9vw, 4.3rem); }
  .hero-copy { padding-block: 38px 0; }
  .product-stage { height: clamp(245px, 72vw, 410px); margin-top: 8px; }
  .screen-hub { top: 12%; }
  .screen-studio { bottom: 15%; }
  .wide-statement { padding-block: 42px; }
  .build-steps button { padding: 11px 12px; gap: 9px; }
  .build-steps button[aria-selected='true'] { transform: none; }
  .serve-demo-grid { grid-template-columns: 1fr 1fr; }
  .serve-orders { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .serve-orders h3 { grid-column: 1 / -1; margin: 0 0 4px; }
  .serve-orders button { margin: 0; padding: 8px; }
  .serve-demo-grid > .serve-conversation { border-left: 0; }
  .serve-modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-view { grid-template-columns: minmax(195px, .76fr) minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .serve-demo-grid { grid-template-columns: 1fr; }
  .serve-demo-grid > div + div { border: 0; border-top: 1px solid #dadbd3; }
  .serve-demo-bar, .serve-demo-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .serve-orders button strong { font-size: .77rem; }
  .serve-orders button span { font-size: .7rem; }
  .serve-modules-grid { grid-template-columns: 1fr; }
  .serve-workflow { grid-template-columns: 1fr; gap: 0; }
  .serve-workflow li { align-items: flex-start; flex-direction: column; gap: 4px; }
  .serve-workflow i { width: 1px; min-width: 0; flex: none; height: 12px; margin: 0 0 4px 4px; }
  .serve-workflow i::after { top: 0; left: -1px; width: 3px; height: 5px; }
  .serve-workflow.in-view i::after { animation-name: workflow-pulse-vertical; }
  .delivery-view { grid-template-columns: 1fr; }
}

@keyframes workflow-pulse-vertical {
  0% { top: 0; opacity: 0; }
  3%, 19% { opacity: 1; }
  23%, 100% { top: calc(100% - 5px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .build-steps button, .product .image-button { transform: none !important; }
  .serve-workflow.in-view span, .serve-workflow.in-view i::after,
  .delivery-view, .serve-modules details[open] p { animation: none; }
}
