/* robotkitchen.us homepage, desktop only (2026-11-17, IJen).
   Everything that changes layout lives inside min-width: 900px, so phones
   and small tablets render exactly as before. Below 900px the only rule
   here hides the meditating robot on phones. */
.rk-zen { display: none; }

@media (min-width: 900px) {
  /* A. Smaller overall: rem-based type, spacing, orbit and cards shrink
     together; the content column is narrower too. */
  html { font-size: 87.5%; }
  :root { --max: 1040px; }
  .site-header { padding-top: 0.85rem; padding-bottom: 0.85rem; }

  /* B2. Capabilities: heading, lead and the picked service on the left,
     the atom orbit on the right. The orbit-system box spans both columns
     as a subgrid so its card can sit under the heading while the stage
     stays in the right column. */
  #capabilities > .section-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
  #capabilities > .section-inner > .section-head {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 2;
  }
  #capabilities .orbit-system {
    grid-column: 1 / -1;
    grid-row: 1 / 4;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    margin: 0;
    pointer-events: none;
  }
  #capabilities .orbit-stage {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    pointer-events: auto;
  }
  #capabilities .orbit-card {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    max-width: 26rem;
    margin: 0;
    transform: none;
    box-shadow: none;
    background: rgba(12, 12, 12, 0.7);
  }
  #capabilities .orbit-card.is-visible { pointer-events: auto; }
  #capabilities .orbit-card-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.85rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(10, 186, 181, 0.55);
    border-radius: 999px;
    color: #9ff7ef;
  }
  #capabilities .orbit-card-link:hover,
  #capabilities .orbit-card-link:focus-visible {
    background: rgba(10, 186, 181, 0.14);
    border-color: #9ff7ef;
  }
  #capabilities .orbit-shop-note {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    margin: 1.4rem 0 0;
    position: relative;
    z-index: 2;
  }
  #capabilities .ba-band {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    position: relative;
    z-index: 2;
  }

  /* B3. Work: every category is one row of cards; no carousel arrows,
     no floating Quote pill (quotes go through Ask me). */
  .work-group-head .section-quote { display: none; }
  .work-group .work-carousel,
  .work-group[data-work-group="retail"] .work-carousel,
  .work-group[data-work-group="life-assistant"] .work-carousel {
    padding: 0;
    max-width: none;
    margin: 0;
    overflow: visible;
  }
  .work-group .work-grid,
  .work-group[data-work-group="retail"] .work-grid,
  .work-group[data-work-group="life-assistant"] .work-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem;
    overflow: visible !important;
    scroll-snap-type: none;
    max-width: none;
    margin: 0;
    padding: 0.15rem 0 0.4rem;
  }
  .work-group .work-grid > .work-card,
  .work-group[data-work-group="life-assistant"] .work-grid > .work-card {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
  }
  .work-group .work-carousel-nav,
  .work-group .work-dots { display: none !important; }
  .work-group[data-work-group="life-assistant"] { overflow: visible; }
  .work-group { margin-top: 2.4rem; }

  /* A. Meditating robot, left of the Skill Booking board. No triangle frame. */
  #skills {
    display: grid;
    grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
    column-gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: center;
  }
  #skills > .work-group-head { grid-column: 1 / -1; }
  #skills > .rk-zen {
    display: block;
    grid-column: 1;
    width: 100%;
    margin-bottom: 4rem;
  }
  #skills > .plaza-sign {
    grid-column: 2;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .rk-zen-svg { display: block; width: 100%; height: auto; overflow: visible; }
  .rk-zen .zen-bot {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: rk-zen-float 6s ease-in-out infinite;
  }
  .rk-zen .zen-core,
  .rk-zen .zen-bulb,
  .rk-zen .zen-heart { animation: rk-zen-breath 6s ease-in-out infinite; }
  @keyframes rk-zen-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
  }
  @keyframes rk-zen-breath {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
  }

  /* C. A few plain facts on the left, How we work on the right.
     Source order stays process then trust so phones stay stacked as before. */
  .process-trust-band > .trust { order: 1; }
  .process-trust-band > .process { order: 2; }


  /* Character cards: one even row of three. Hidden on phones (the pie
     stays in the markup and is shown below 900px). */
  .work-group[data-work-group="bots"] .bots-single { display: none; }
  .work-group[data-work-group="bots"] .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .work-shot.bot-shot {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: #111;
    border-bottom: 1px solid var(--line);
    padding: 1.15rem 0.95rem 1.1rem;
    box-sizing: border-box;
  }
  .bot-shape {
    position: relative;
    width: min(86%, 16.5rem);
    aspect-ratio: 1;
  }
  .bot-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .bot-shape--circle {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 3px #9277C9, 0 0 22px rgba(146, 119, 201, 0.45);
  }
  .bot-shape--circle img { object-position: center 40%; }
  .bot-shape--square {
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 0 0 3px #5FA84A, 0 0 22px rgba(95, 168, 74, 0.4);
  }
  .bot-shape--square img { object-position: center 42%; }
  .bot-shape--triangle::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #1EA8C6;
    clip-path: polygon(50% 1.5%, 98.5% 96.5%, 1.5% 96.5%);
    z-index: 0;
  }
  .bot-shape--triangle img {
    position: relative;
    z-index: 1;
    clip-path: polygon(50% 4.4%, 95.2% 94.4%, 4.8% 94.4%);
    object-position: center 38%;
  }
}

@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  .rk-zen .zen-bot,
  .rk-zen .zen-core,
  .rk-zen .zen-bulb,
  .rk-zen .zen-heart { animation: none; }
}

/* Logo, desktop only (2026-11-18, IJen photo): icon without the baked-in
   "ROBOT KITCHEN" text, white lowercase "robot kitchen" to its right, and no
   domain line under it. Phones keep the original logo (the <picture> source
   for the icon only matches at 900px+, and .hero-wordmark stays hidden). */
.hero-wordmark { display: none; }
@media (min-width: 900px) {
  .site-header .brand-name { text-transform: lowercase; color: #fff; letter-spacing: 0.01em; }
  .site-header .brand .logo-pulse .eye-glow,
  .hero-mark .logo-pulse .eye-glow { left: 65.74%; top: 48.46%; width: 4.32%; height: 4.32%; }
  .hero-mark { flex-direction: row; align-items: center; justify-content: center; gap: 1.5rem; }
  .hero-mark .logo-pulse { width: min(240px, 18vw); height: min(240px, 18vw); flex: none; }
  .hero-mark .hero-locator { display: none; }
  .hero-mark .hero-wordmark {
    display: block;
    color: #fff;
    font-size: clamp(1.9rem, 2.6vw, 2.6rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
  }
}
