/* Preview only: preserve the broad office composition and gently follow the city camera. */
@layer sections {
  .office-scene {
    position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: clip;
  }
  .office-scene__image {
    position: absolute; width: min(69vw,1120px); max-width: none; height: auto;
    right: -30px; top: var(--office-top,96px);
    transform: translate3d(var(--office-x,0px),var(--office-y,0px),0);
    -webkit-mask-image: linear-gradient(90deg,transparent,#000 28%),linear-gradient(180deg,transparent 8%,#000 16%,#000 95%,transparent);
    mask-image: linear-gradient(90deg,transparent,#000 28%),linear-gradient(180deg,transparent 8%,#000 16%,#000 95%,transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .office-scene--summit .office-scene__image { top: var(--office-top,24px); }
  @media (min-width:901px) {
    .office-preview .hero__grid { min-height: calc(min(46vw,746.667px) + 96px); }
    .office-preview #appliqloud { padding-bottom: 3rem; }
    .office-preview .summit { min-height: 0; align-content: start; padding-block: 3rem; }
  }
  .office-preview .hero__veil {
    background: linear-gradient(90deg,rgb(5 7 15 / .93),rgb(5 7 15 / .73) 33%,rgb(5 7 15 / .15) 59%,transparent 75%),
      linear-gradient(180deg,rgb(5 7 15 / .3),transparent 22%,transparent 74%,var(--bg));
  }
  .office-preview .summit__veil {
    background: linear-gradient(90deg,rgb(5 7 15 / .94),rgb(5 7 15 / .75) 34%,rgb(5 7 15 / .12) 65%,transparent),
      linear-gradient(180deg,var(--bg),transparent 18%,transparent 85%,var(--bg));
  }
}
@layer utilities {
  @media (max-width:900px) {
    .office-scene { position: relative; grid-row: 2; height: clamp(280px,62vw,460px); z-index: 0; margin-top: -1rem; -webkit-mask-image: none; mask-image: none; }
    .office-scene__image { width: min(100%,760px); right: 0; top: auto; bottom: 0; height: 100%; object-fit: cover; object-position: 60% center; -webkit-mask-image: linear-gradient(0deg,transparent,#000 10%,#000 94%,transparent); mask-image: linear-gradient(0deg,transparent,#000 10%,#000 94%,transparent); transform: none; }
    .office-preview .hero > .hero__grid { grid-row: 1; }
    .office-preview .hero > .proof { grid-row: 3; }
    .office-scene--summit { margin-top: 1.5rem; }
    .office-scene--summit .office-scene__image { top: auto; bottom: 0; }
  }
  @media print { .office-scene { display: none; } }
}

@layer sections {
  .office-art { aspect-ratio: 3 / 2; filter: sepia(.075) saturate(1.045); }
  .office-art__still, .office-art__motion { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
  .office-art__still { display: block; }
  .office-art__motion { position: absolute; inset: 0; }
  .office-art__motion[hidden] { display: none; }
  .office-art.is-animated .office-art__still { visibility: hidden; }
}

@layer sections {
  .office-preview .prod { background: radial-gradient(ellipse at 90% 100%,rgb(213 156 84 / .10),transparent 58%),var(--panel,#0a1020); }
  .companion { display: grid; grid-template-columns: 96px minmax(240px,1.2fr) minmax(250px,1fr); align-items: center; gap: 1.5rem; padding-left: 1.8rem; margin-top: 2.5rem; overflow: hidden; border: 1px solid rgb(220 178 110 / .22); border-radius: 28px; background: radial-gradient(ellipse at 20% 70%,rgb(224 156 69 / .09),transparent 65%),linear-gradient(130deg,#0b1a22,#08121e 68%); }
  .companion__scene { position: relative; width: 96px; height: 96px; align-self: center; overflow: hidden; border-radius: 50%; border: 1px solid rgb(231 188 130 / .28); }
  .companion__scene img { width: 200%; height: 250%; max-width: none; position: absolute; left: 50%; top: 50%; transform: translate(-48%,-36%); object-fit: cover; }
  .companion__copy { padding-block: 1.8rem; }
  .companion__eyebrow { color: #e7bc82; font: 600 .68rem/1.4 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; margin-bottom: .6rem; }
  .companion h3 { font: 650 clamp(1.45rem,2.1vw,1.85rem)/1.16 var(--font-display); letter-spacing: -.02em; margin-bottom: .9rem; color: var(--text); }
  .companion__copy > p:not(.companion__eyebrow) { color: var(--text-2); font-size: .95rem; line-height: 1.65; max-width: 37ch; }
  .companion__contact { display: inline-flex; align-items: center; gap: .7rem; color: var(--aqua); margin-top: 1rem; min-height: 44px; font-weight: 600; }
  .companion__options { display: grid; gap: .5rem; padding: 1.6rem 1.6rem 1.6rem 0; }
  .companion__options p { font: 600 1rem/1.4 var(--font-display); margin-bottom: .35rem; }
  .companion__options a { display: flex; justify-content: space-between; align-items: center; gap: .7rem; min-height: 44px; padding: .7rem .85rem; border: 1px solid rgb(126 224 255 / .17); border-radius: 12px; background: rgb(126 224 255 / .035); font-size: .82rem; color: var(--text-2); transition: background .2s,border-color .2s; }
  .companion__options a:hover { background: rgb(126 224 255 / .09); border-color: rgb(126 224 255 / .4); color: var(--text); }
  .companion__options .ic { flex-shrink: 0; color: var(--aqua); }
}
@layer utilities {
  @media(max-width:1050px) {
    .companion { grid-template-columns: 80px 1fr; gap: 1.25rem; padding-left: 1.5rem; }
    .companion__scene { width: 80px; height: 80px; grid-row: 1; align-self: start; margin-top: 1.6rem; }
    .companion__copy { padding: 1.5rem 1.5rem 0 0; }
    .companion__options { grid-column: 2; padding: 0 1.5rem 1.5rem 0; }
  }
  @media(max-width:600px) {
    .companion { grid-template-columns: 52px 1fr; gap: .85rem; padding: 1.4rem; }
    .companion__scene { width: 52px; height: 52px; margin: 0; }
    .companion__copy { padding: 0; }
    .companion__options { grid-column: 1 / -1; padding: .5rem 0 0; }
  }
}


/* A small, discoverable companion gives the closing city its own moment. */
@layer sections {
  .office-preview .summit__grid { grid-template-columns: minmax(0,660px) minmax(200px,1fr); align-items: end; gap: 2.5rem; }
  .summit-discovery { position: relative; width: min(100%,300px); justify-self: end; padding-bottom: 72px; }
  .discovery-pup { display: block; position: relative; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 22px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .discovery-pup::before { content: ""; position: absolute; width: 84%; height: 12%; bottom: 7%; left: 8%; background: radial-gradient(ellipse,rgb(227 168 91 / .18),transparent 70%); }
  .discovery-pup__pose { position: absolute; inset: 0; background: url("../assets/img/bix/sleep-wake-v1.webp") 0 0 / 200% 100% no-repeat; transform-origin: 50% 88%; transition: opacity .35s,transform .5s var(--ease-spring); pointer-events: none; }
  .discovery-pup__pose--awake { background-position: 100% 0; opacity: 0; transform: translateY(8px) scale(.96); }
  .discovery-pup.is-awake .discovery-pup__pose--asleep { opacity: 0; animation: none; }
  .discovery-pup.is-awake .discovery-pup__pose--awake { opacity: 1; transform: none; }
  .discovery-pup.is-awake { cursor: default; }
  .summit-discovery.is-visible .discovery-pup:not(.is-awake) .discovery-pup__pose--asleep { animation: puppyBreathe 4s ease-in-out infinite; }
  .discovery-pup__zzz { position: absolute; left: 40%; top: 34%; color: #94dae0; font: 600 .85rem/1 var(--font-mono); pointer-events: none; }
  .discovery-pup__zzz i { font-style: normal; display: inline-block; }
  .discovery-pup__zzz i:nth-child(2) { font-size: .8em; translate: 3px -8px; }
  .discovery-pup__zzz i:nth-child(3) { font-size: .65em; translate: 5px -15px; }
  .summit-discovery.is-visible .discovery-pup__zzz { animation: zz 3s ease-in-out infinite; }
  .discovery-pup__hint { position: absolute; bottom: -5px; left: 50%; translate: -50% 0; width: max-content; max-width: 110%; color: var(--text-3); font-size: .75rem; line-height: 1.5; }
  .discovery-pup:hover .discovery-pup__hint,.discovery-pup:focus-visible .discovery-pup__hint { color: #e7bc82; }
  .discovery-pup.is-awake .discovery-pup__zzz,.discovery-pup.is-awake .discovery-pup__hint { display: none; }
  .summit-discovery__hello { position: absolute; bottom: 0; left: 50%; translate: -50% 0; display: grid; grid-template-columns: auto auto; align-items: center; gap: .25rem .85rem; width: max-content; max-width: 100%; padding: .75rem .9rem; border: 1px solid rgb(231 188 130 / .25); border-radius: 14px; background: rgb(8 18 27 / .92); box-shadow: 0 8px 30px rgb(0 0 0 / .18); }
  .summit-discovery__hello[hidden] { display: none; }
  .summit-discovery__hello img { width: 88px; height: auto; grid-row: span 2; }
  .summit-discovery__hello p { color: #e7bc82; font-size: .75rem; white-space: nowrap; }
  .summit-discovery__hello span { font-size: .62rem; color: var(--text-2); white-space: nowrap; }
  .summit-discovery__hello b { color: var(--aqua); margin-left: .3rem; }
  @keyframes puppyBreathe { 50% { transform: scaleY(1.012); } }
}
@layer utilities {
  @media(max-width:900px) {
    .office-preview .summit__grid { grid-template-columns: minmax(0,1fr); gap: .75rem; }
    .summit-discovery { width: 240px; justify-self: center; padding-bottom: 72px; }
  }
  @media print { .summit-discovery { display: none; } }
}

/* The returning greeting fits the same compact companion card. */
@layer sections {
  .summit-discovery__hello p { white-space: normal; max-width: 130px; line-height: 1.4; }
  .summit-discovery.is-returning .summit-discovery__hello { border-color: rgb(231 188 130 / .55); }
}

@layer sections { .summit-discovery__hello span { white-space: normal; line-height: 1.4; } }

/* Warm office light and a small foreground terrace, scoped to this preview. */
@layer sections {
  .office-art::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
    background:
      radial-gradient(ellipse 30% 7% at 35% 86%,rgb(255 184 100 / .52),transparent 100%),
      radial-gradient(ellipse 13% 5% at 84% 88%,rgb(255 190 118 / .30),transparent 100%),
      radial-gradient(ellipse 5% 12% at 59% 29%,rgb(255 194 121 / .36),transparent 100%),
      radial-gradient(ellipse 3% 10% at 35% 37%,rgb(255 194 121 / .25),transparent 100%),
      radial-gradient(ellipse 2% 23% at 81% 43%,rgb(255 185 110 / .26),transparent 100%);
  }
  .summit__reassurance { margin-top: .9rem; color: #d0b99a; font-size: .86rem; line-height: 1.5; }
  .summit-discovery { --terrace-reach: max(var(--gutter),calc((100vw - var(--maxw))/2)); }
  .discovery-pup { isolation: isolate; }
  .discovery-pup__terrace { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
  .terrace__rail {
    position: absolute; left: -13%; right: calc(-1 * var(--terrace-reach)); top: 62%; height: 22%;
    border-top: 3px solid #597173; border-bottom: 1px solid rgb(137 180 178 / .25);
    background: repeating-linear-gradient(90deg,transparent 0 61px,rgb(62 96 102 / .7) 61px 64px);
    box-shadow: 0 -1px 0 rgb(231 188 130 / .30);
  }
  .terrace__floor {
    position: absolute; left: -20%; right: calc(-1 * var(--terrace-reach)); top: 80%; height: 27%;
    clip-path: polygon(7% 0,100% 0,100% 100%,0 100%);
    background:
      radial-gradient(ellipse at 50% 30%,rgb(244 184 103 / .24),transparent 75%),
      repeating-linear-gradient(174deg,transparent 0 18px,rgb(17 12 10 / .40) 19px 20px),
      linear-gradient(170deg,#463528,#76513a 72%,#906244);
    box-shadow: inset 0 1px 0 rgb(250 215 162 / .20);
  }
  .terrace__face {
    position: absolute; left: -20%; right: calc(-1 * var(--terrace-reach)); top: 107%; height: 55%;
    border-top: 2px solid #c6985e;
    background: linear-gradient(180deg,#493329 0,#182329 16%,#0a141d 62%,transparent);
    box-shadow: 0 -6px 18px -8px rgb(255 186 98 / .6);
  }
  .discovery-pup::before {
    width: 86%; height: 10%; bottom: 7%; left: 7%; z-index: -1;
    background: radial-gradient(ellipse,rgb(20 12 8 / .64),transparent 70%);
  }
  .discovery-pup__hint {
    bottom: -5px; padding: .25rem .65rem; border-radius: 999px;
    color: #e5c69d; background: rgb(18 20 23 / .72);
  }
  .summit-discovery__hello { z-index: 1; }
}
@layer utilities {
  @media(max-width:900px) {
    .summit-discovery { --terrace-reach: calc((100vw - 240px)/2); }
    .terrace__rail { border-top-width: 2px; }
  }
}


/* A single small companion follows GHI Work Process in the local preview. */
@layer sections {
  .board.has-process-companion .token { visibility: hidden; }
  .process-pup { pointer-events: none; }
  .process-pup__shadow { fill: rgb(126 224 255 / .14); }
}


@layer sections {
  .process-paw-trail { fill: #e8bd83; pointer-events: none; }
  .process.is-pinned .stage.is-active.is-companion-arrival {
    animation: companionArrival 1s ease-out both;
  }
  .process__companion-note {
    position: absolute; top: 100%; inset-inline: 0; margin: .25rem auto 0;
    max-width: 30rem; padding-inline: 1rem; text-align: center;
    color: #e5c59a; font-size: .9rem; line-height: 1.5;
    opacity: 0; translate: 0 4px; transition: opacity .3s ease, translate .3s ease;
  }
  .process__companion-note.is-visible { opacity: 1; translate: 0; }
  @keyframes companionArrival {
    0%, 100% { border-color: rgb(126 224 255 / .3); box-shadow: 0 0 0 transparent; }
    35% { border-color: rgb(235 188 124 / .7); box-shadow: 0 0 26px -7px rgb(224 170 98 / .28), inset 0 0 35px -15px rgb(224 170 98 / .14); }
  }
}

@layer utilities {
  @media (max-width: 720px) and (max-height: 740px) {
    .process.is-pinned .process__pin { padding-bottom: 120px; }
    .process.is-pinned .process__inner { gap: .65rem; }
    .process.is-pinned .sh__title { font-size: 1.75rem; margin-top: .4rem; }
    .process.is-pinned .process__status { margin-top: .65rem; padding-block: .4rem; }
    .process.is-pinned .stage { padding: .7rem .85rem; }
    .process.is-pinned .stage__title { font-size: 1rem; }
    .process.is-pinned .stage__short { font-size: .9rem; line-height: 1.4; }
    .process.is-pinned .board { width: min(100%, 330px); margin-inline: auto; }
    .process.is-pinned .process__companion-note { padding-inline: 0; }
  }
  /* Landscape tablets (e.g. 1024×768): stacked in one column, the pinned section is taller than
     the screen and its title was cut off; side by side, as on desktop, it fits. */
  @media (min-width: 721px) and (max-width: 1100px) and (orientation: landscape) {
    .process__inner { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
    .process.is-pinned .process__inner { gap: 1.6rem; }
  }
}
