@import url("../arsenal/motif-window.css");
/* site\assets\css\pages\industries.css: Industries We Specialize In (src\pages\industries.mjs). Places and sizes its
   parts; the climb (.ip-climb), the blueprint (.ip-blue), the bands, frames, footage, doors, picker and inner close are
   design\components.css's; the header is the arsenal's motif-window (imported above, never edited). */

/* ---------- hero: the three pictures through the three rising bars; the headline and both doors ---------- */
.hub-mw__act { display: grid; justify-items: start; gap: 1rem; }
.hub-mw__act .cta { align-items: flex-start; }
.motif-window .hub-mw__stop { top: calc(var(--header-h, 72px) + 14px); right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); }
@container motif-window (width < 760px) {
  .hub-mw__act { gap: .75rem; width: 100%; }
  .hub-mw__act .btn { width: 100%; }
}

/* ---------- every: the climb through six fields; the ten fields as chips that jump to their rows ---------- */
.hub-down { transform: rotate(90deg); }

/* ---------- fields: ten rows, a framed photo with its scene in glass, the field beside it ---------- */
.hf-list { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); margin: 0; padding: 0; list-style: none; }
.hf { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); align-items: center; scroll-margin-top: calc(var(--header-h, 72px) + 24px); }
.hf__media { height: var(--hf-h, 480px); }
.hf__footage { inset: -1px; }
.hf__footage > img, .hf__footage > video { object-position: var(--pos, 50% 50%); }
.hf__stop { z-index: 6; }
.hf__stop--left { right: auto; left: 16px; }
.hf__body { display: grid; justify-items: start; gap: 1rem; min-width: 0; }
.hf__title { display: flex; align-items: center; gap: .8rem; font-size: clamp(1.35rem, 1.1rem + .7vw, 1.65rem); }
.hf__icon { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--c-brand-light); color: var(--c-brand-dark); }
.hf__icon svg { width: 24px; height: 24px; }
.hf__types { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.hf__type { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border: 1px solid var(--c-line); border-radius: 999px; font-family: var(--font-ui); font-size: var(--fs-small); font-weight: 600; line-height: 1.35; color: var(--c-ink-soft); }
.hf__type--link { border-color: var(--c-brand); color: var(--c-brand-text); text-decoration: none; }
.hf__type--link:hover { background: var(--c-brand-light); }
.hf__type-arrow { flex: none; width: 14px; height: 14px; }
@media (min-width: 1000px) {
  .hf { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); column-gap: clamp(2.5rem, 1rem + 3vw, 4rem); }
  .hf--flip { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
  .hf--flip .hf__media { order: 2; }
  /* the med spa's row runs the full width: review-ask's phone needs a tall box, and the client's face keeps clear of it
     only in a wide frame; its words under it */
  #f-specialized { grid-template-columns: minmax(0, 1fr); }
  #f-specialized .hf__media { order: 0; }
  #f-specialized .hf__body { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 2rem; }
}

/* each row's scene, on the side clear of faces (from 760 px; the phone keeps the strip below) */
@media (min-width: 760px) {
  #f-exterior .hf__stage { top: 6%; right: 3%; width: min(300px, 44%); }
  #f-interior .hf__stage { top: 8%; left: 3%; width: min(330px, 44%); }
  #f-legal .hf__stage { bottom: 5%; left: 3%; width: min(310px, 42%); }
  #f-financial .hf__stage { bottom: 5%; right: 3%; width: min(280px, 40%); }
  /* the frame a little lower and the photo held at its top, so the rating sits over the cabinets above her head */
  #f-medical { --hf-h: 420px; }
  #f-medical .hf__stage { top: 4%; right: 3%; width: min(280px, 38%); }
  /* review-ask's phone needs about 580 px of height to keep its words 13 px: this row's frame is taller */
  #f-specialized { --hf-h: 660px; }
  /* review-ask's link reads at 13 px from 360 wide (its note) */
  #f-specialized .hf__stage { top: 2%; bottom: 2%; left: 1.5%; width: min(360px, 46%); }
  #f-landscaping { --hf-h: 540px; }
  #f-landscaping .hf__stage { top: 3%; bottom: 3%; left: 2%; width: min(400px, 52%); }
  #f-lifestyle .hf__stage { top: 4%; bottom: 4%; left: 3%; width: min(340px, 46%); }
  #f-catering .hf__stage { top: 6%; left: 3%; width: min(340px, 46%); }
  #f-specialty .hf__stage { top: 6%; left: 3%; width: min(340px, 46%); }
}
@media (max-width: 759px) {
  /* the phone: the photo's strip (the faces in --peek), the scene standing under it and on it for at least half its
     height (--over); values per row in src\pages\industries.mjs (m) */
  .hf__media { height: auto; padding-top: var(--peek); }
  .hf__footage { inset: -1px -1px auto; height: calc(var(--peek) + var(--over) + 1px); }
  .hf__footage > img, .hf__footage > video { object-position: var(--pos-m, 50% 50%); }
  .hf .hf__stage { position: relative; inset: auto; width: auto; height: auto; min-height: var(--stage-m, 240px); }
  .hf__stop, .hf__stop--left { top: calc(var(--peek) - 52px); right: 12px; left: auto; }
  #f-exterior { --stage-m: 220px; }
  #f-interior { --stage-m: 340px; }
  #f-legal { --stage-m: 280px; }
  #f-financial { --stage-m: 220px; }
  #f-medical { --stage-m: 280px; }
  /* the phone's review screen edge to edge, so its link reads at 13 px (the scene is 380 wide at full size) */
  #f-specialized { --stage-m: 720px; }
  #f-specialized .hf__media { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  #f-landscaping { --stage-m: 490px; }
  #f-lifestyle { --stage-m: 300px; }
  #f-catering { --stage-m: 380px; }
  #f-specialty { --stage-m: 320px; }
}

/* ---------- buyers: three-buyers on the paper ---------- */
.hub-buyers__pic { position: relative; height: 460px; }
.hub-buyers__scene { height: 100%; }
.hub-buyers__stop { top: -10px; right: -6px; }
@media (max-width: 759px) {
  .hub-buyers__pic { height: auto; min-height: 800px; }
  .hub-buyers__scene { height: auto; }
}

/* ---------- plan: the owner at the left at dusk; the photo drawn wider and set left so his face clears the plan ---------- */
@media (min-width: 1200px) {
  .hub-plan .ip-blue__footage { left: -14%; }
  .hub-plan .ip-blue__stage { width: clamp(560px, 42%, 640px); }
}

/* ---------- anyway: the florist at the right; the chat's phone in glass over the flowers at the left ---------- */
.hub-any__in { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: center; }
.hub-any__media { position: relative; height: 560px; }
.hub-any__footage { inset: -1px; }
.hub-any__footage > img { object-position: 70% 30%; }
.hub-any__stop { z-index: 6; }
/* 310 wide: the chat's phone is 428 high above 300 px, room for every message */
.hub-any .hub-any__stage { top: 50%; left: 5%; width: 310px; translate: 0 -50%; }
.hub-any__words { display: grid; justify-items: start; gap: 1.2rem; }
.hub-any__words .head { margin-bottom: 0; }
@media (min-width: 1000px) {
  .hub-any__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
@media (max-width: 759px) {
  .hub-any__media { height: auto; padding-top: 240px; }
  .hub-any__footage { inset: -1px -1px auto; height: 500px; }
  .hub-any__footage > img { object-position: 78% 0%; }
  .hub-any .hub-any__stage { position: relative; inset: auto; translate: none; width: min(300px, 88%); margin-inline: auto; min-height: 440px; }
  .hub-any__stop { top: 188px; }
}

/* ---------- close: the photo set in from the left, so the owner and her new client sit clear of the words; the week
   low at the right, over his sweater ---------- */
@media (min-width: 1180px) {
  .hub-close__footage { left: 30%; }
  .hub-close__footage::after { background: linear-gradient(90deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 55%, transparent) 12%, transparent 32%); }
  .iclose > .sw-close__stage { bottom: 5%; width: 280px; }
}
@media (min-width: 900px) and (max-width: 1179px) {
  .hub-close__footage { left: 30%; }
  .hub-close__footage::after { background: linear-gradient(90deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 50%, transparent) 16%, transparent 40%); }
  .iclose > .sw-close__stage { display: none; }
}
