/* industry.css - the industry pages (hotels, furniture makers) -------------------
   Loaded by those pages only, after site.css, whose tokens and components it
   leans on: .svc-crumbs, .svc-lead, .svc-list, .btn, the article and the end
   band are all the service pages' own.

   The page's one idea is the stage: the brick world stays pinned while the
   parts of the setup scroll past it, and whichever part is in the middle of
   the screen is the building the world is looking at.

     wide    two columns. Text left, world right, pinned under the nav for the
             whole height of the list.
     narrow  one column. The headline first, then the world pinned to the top
             of the screen with the parts passing under it.

   Same shape system as the rest of the site: square, 2px ink rules, hard
   offset shadows, nothing blurred. */

.ind-stage{display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);
  grid-template-areas:"hero world" "rail world";border-bottom:2px solid var(--ink);background:var(--paper)}

.ind-hero{grid-area:hero;min-height:calc(100vh - 68px);min-height:calc(100svh - 68px);
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(40px,5vw,72px) clamp(20px,4vw,56px)}
.ind-hero h1{font-size:clamp(38px,4.7vw,72px);font-weight:700;line-height:.98;letter-spacing:-.03em;
  max-width:12ch;text-wrap:balance}
.ind-hero .svc-lead{max-width:50ch}
.ind-hero .cta-row{margin-top:30px;display:flex;flex-wrap:wrap;gap:12px}

/* ---- the world ---- */
.ind-world{grid-area:world;position:sticky;top:68px;align-self:start;
  height:calc(100vh - 68px);height:calc(100svh - 68px);min-height:480px;
  border-left:2px solid var(--ink);overflow:hidden;background:var(--paper);
  -webkit-user-select:none;user-select:none}
.ind-canvas,.ind-still{position:absolute;inset:0;width:100%;height:100%;display:block}
.ind-still{object-fit:contain;padding:4% 3%}
/* the still is the picture until the scene has drawn itself once, and the
   whole picture where there is no WebGL */
.ind-canvas{opacity:0}
.ind-world.live .ind-canvas{opacity:1}
.ind-world.live .ind-still{visibility:hidden}

.ind-pins{position:absolute;inset:0;pointer-events:none}
.ind-pin{position:absolute;left:0;top:0;display:flex;align-items:center;gap:0;
  font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:700;line-height:1;color:var(--ink);
  background:none;border:0;padding:0;cursor:pointer;pointer-events:auto;
  opacity:0;transition:opacity .2s;will-change:transform}
.ind-world.built .ind-pin{opacity:1}
.ind-pin b{display:grid;place-items:center;width:26px;height:26px;background:var(--c);color:#fff;
  border:2px solid var(--ink);box-shadow:3px 3px 0 var(--ink);font-weight:700}
.ind-pin span{background:#fff;border:2px solid var(--ink);border-left:0;padding:6px 8px 6px 7px;
  box-shadow:3px 3px 0 var(--ink);white-space:nowrap}
.ind-pin[style*="--yellow"] b{color:var(--ink)}
.ind-pin::after{content:"";position:absolute;left:11px;top:100%;width:2px;height:var(--stem,14px);background:var(--ink)}
.ind-pin:hover b,.ind-pin:focus-visible b{transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--ink)}
.ind-world.has-sel .ind-pin:not(.on){opacity:.28}
.ind-world.has-sel .ind-pin:not(.on):hover{opacity:1}
.ind-pin.on b{outline:2px solid var(--ink);outline-offset:2px}

.ind-hint{position:absolute;left:16px;bottom:14px;font-family:'JetBrains Mono',monospace;font-size:12px;
  color:var(--gray);background:var(--paper);padding:4px 6px;pointer-events:none;opacity:0;transition:opacity .3s}
.ind-world.built .ind-hint{opacity:1}
.ind-world.turned .ind-hint{opacity:0}
.ind-tools{position:absolute;right:14px;bottom:14px;display:flex;gap:8px;opacity:0;transition:opacity .3s}
.ind-world.built .ind-tools{opacity:1}
.ind-tools button{width:36px;height:36px;display:grid;place-items:center;background:#fff;border:2px solid var(--ink);
  box-shadow:3px 3px 0 var(--ink);cursor:pointer;transition:transform .12s,box-shadow .12s}
.ind-tools button:hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--ink)}
.ind-tools button:active{transform:none;box-shadow:none}
.ind-tools svg{width:16px;height:16px;fill:var(--ink);shape-rendering:crispEdges}

/* ---- the parts ---- */
/* Each part's number is a two-stud brick in the part's colour. It waits one
   plate above its place and clicks down when its part is the one being read,
   the way the world beside it builds itself. (Until 13 Nov 2026 the parts hung
   on an 8px bar down the left edge; Emilio did not like it, rightly: a progress
   rail is a web convention, the brick is ours.) */
.ind-rail{grid-area:rail;padding:0 clamp(20px,4vw,56px) 16vh}
.ind-rail-h{font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--gray);padding-top:8px}
.ind-parts{list-style:none}
.ind-part{min-height:74vh;display:flex;flex-direction:column;justify-content:center;
  padding:40px 0;opacity:.34;transition:opacity .25s}
.ind-part.on{opacity:1}
.ind-tag{display:flex;align-items:center;gap:14px;font-family:'JetBrains Mono',monospace;font-size:12.5px;
  font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.ind-brick{position:relative;flex:none;display:grid;place-items:center;width:46px;height:28px;margin-top:10px;
  background:var(--c);color:#fff;border:2px solid var(--ink);box-shadow:3px 3px 0 var(--ink);
  font-style:normal;font-size:12px;font-weight:700;letter-spacing:0;
  transform:translateY(-12px);transition:transform .3s steps(4)}
.ind-brick::before,.ind-brick::after{content:"";position:absolute;top:-8px;width:8px;height:6px;
  background:var(--c);border:2px solid var(--ink);border-bottom:0}
.ind-brick::before{left:7px}
.ind-brick::after{right:7px}
.ind-part[style*="--yellow"] .ind-brick{color:var(--ink)}
.ind-part.on .ind-brick{transform:none;animation:ind-click .34s steps(1) .3s}
@keyframes ind-click{0%{transform:translateY(1px);box-shadow:2px 2px 0 var(--ink)}100%{transform:none}}
.ind-part h2{font-size:clamp(28px,3.1vw,46px);font-weight:700;line-height:1.04;letter-spacing:-.025em;
  margin-top:16px;max-width:16ch;text-wrap:balance}
.ind-part>p:not(.ind-tag){font-size:17px;line-height:1.65;color:#2f2d2a;margin-top:18px;max-width:46ch}
.ind-part .svc-list{margin-top:22px;max-width:46ch}
.ind-part .svc-list li::before{background:var(--c)}

/* ---- the systems map (hospitality) ----
   The four systems a property runs on, as four bricks: the website with its
   booking engine and the booking channels on either side of the property
   system, Odoo underneath as the plate they all stand on. systems-map.js draws
   the wires between them and sends bookings along them; without it the four
   bricks and the list under them still say everything. */
.ind-map{padding-block:clamp(64px,8vw,112px);border-bottom:2px solid var(--ink);background:var(--ice-2)}
.map-eyebrow{font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--gray)}
.ind-map h2{font-size:clamp(32px,4vw,58px);font-weight:700;line-height:1;letter-spacing:-.03em;margin-top:14px;
  max-width:18ch;text-wrap:balance}
.map-lead{font-size:18px;line-height:1.6;color:#2f2d2a;margin-top:20px;max-width:60ch}

/* the frame: everything inside it is ours to run */
.map{position:relative;margin-top:clamp(40px,5vw,64px);padding:clamp(44px,5vw,64px) clamp(14px,3vw,44px) clamp(28px,4vw,48px);
  background:
    repeating-linear-gradient(90deg,var(--ink) 0 8px,transparent 8px 16px) top left/100% 2px no-repeat,
    repeating-linear-gradient(90deg,var(--ink) 0 8px,transparent 8px 16px) bottom left/100% 2px no-repeat,
    repeating-linear-gradient(180deg,var(--ink) 0 8px,transparent 8px 16px) top left/2px 100% no-repeat,
    repeating-linear-gradient(180deg,var(--ink) 0 8px,transparent 8px 16px) top right/2px 100% no-repeat}
.map-tab{position:absolute;left:clamp(14px,3vw,44px);top:-15px;display:flex;align-items:center;gap:10px;
  background:var(--ink);color:#fff;font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:700;
  letter-spacing:.04em;text-transform:uppercase;padding:7px 12px 7px 9px;max-width:calc(100% - 28px)}
.map-tab img{width:14px;height:16px;flex:none;background:#fff;padding:1px}

.map-board{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr) minmax(0,1fr);
  grid-template-areas:"web pms ota" "odoo odoo odoo";column-gap:clamp(96px,9vw,132px);row-gap:92px;align-items:center}
.map-wires{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.map-wires path{fill:none;stroke:var(--ink);stroke-width:4;stroke-dasharray:4 6;opacity:.28;shape-rendering:crispEdges;
  transition:opacity .2s}
.map-wires path.hot{opacity:.9}

.map-node{position:relative;z-index:1;background:#fff;border:2px solid var(--ink);box-shadow:var(--hard);margin-top:10px}
/* studs along the top, in the brick's colour */
.map-node::before{content:"";position:absolute;left:12px;right:12px;top:-12px;height:10px;
  background:
    repeating-linear-gradient(90deg,var(--ink) 0 18px,transparent 18px 30px) top left/100% 2px no-repeat,
    repeating-linear-gradient(90deg,var(--ink) 0 2px,var(--c) 2px 16px,var(--ink) 16px 18px,transparent 18px 30px)}
/* whole studs only: the row ends on a stud, not on a sliver of one */
@supports (width:round(down,10px,3px)){.map-node::before{right:auto;width:calc(round(down,100% - 12px,30px) - 12px)}}
.map-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;background:var(--c);color:#fff;
  border-bottom:2px solid var(--ink);padding:10px 14px 11px}
.map-head h3{font-size:19px;font-weight:700;letter-spacing:-.01em;line-height:1.15}
.map-head p{font-family:'JetBrains Mono',monospace;font-size:11.5px;line-height:1.35;opacity:.92}
.map-ota .map-head{color:var(--ink)}
.map-body{padding:14px}
.map-node.pulse{animation:map-pulse .36s steps(2)}
@keyframes map-pulse{0%{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--ink)}100%{transform:none}}
.map-web{grid-area:web}.map-pms{grid-area:pms}.map-ota{grid-area:ota}.map-odoo{grid-area:odoo}

/* website: a small browser with one room in it */
.mb{border:2px solid var(--ink);background:var(--paper)}
.mb-bar{display:flex;align-items:center;gap:4px;padding:6px 7px;border-bottom:2px solid var(--ink);background:#fff}
.mb-bar i{width:7px;height:7px;background:var(--ink)}
.mb-bar i:nth-child(1){background:var(--red)}.mb-bar i:nth-child(2){background:var(--yellow)}.mb-bar i:nth-child(3){background:var(--green)}
.mb-bar span{flex:1;height:9px;margin-left:6px;background:var(--line)}
.mb-room{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;align-items:center;padding:10px}
.mb-pic{grid-row:span 2;width:44px;height:38px;background:
  linear-gradient(var(--yellow),var(--yellow)) 30px 6px/8px 8px no-repeat,
  linear-gradient(var(--ice),var(--ice)) 0 0/100% 60% no-repeat,
  linear-gradient(var(--blue),var(--blue)) 0 100%/100% 40% no-repeat;border:2px solid var(--ink)}
.mb-room b{font-size:14px;line-height:1.1}
.mb-left{font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--gray)}
.mb-left em{font-style:normal;font-weight:700;color:var(--ink)}
.mb-book{grid-column:1/-1;margin-top:6px;text-align:center;background:var(--red);color:#fff;border:2px solid var(--ink);
  box-shadow:2px 2px 0 var(--ink);font-family:'JetBrains Mono',monospace;font-size:11.5px;font-weight:700;padding:6px}
.mb-book.press{transform:translate(2px,2px);box-shadow:none}

/* channels: the logos */
.map-otas{list-style:none;display:grid;grid-template-columns:1fr 1fr;border:2px solid var(--ink);background:var(--ink);gap:2px}
.map-otas li{display:grid;place-items:center;height:58px;padding:8px 10px;background:#fff;transition:background .15s}
.map-otas img{display:block;max-width:100%;height:auto;max-height:24px;width:auto}
.map-otas li[data-ota="agoda"] img{max-height:36px}
.map-otas li[data-ota="airbnb"] img{max-height:26px}
.map-otas li.hot{background:var(--yellow)}

/* property system: which one, the rooms, the log */
.map-pick{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}
.map-pick>span{font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--gray)}
.map-pick button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:56px;padding:6px 8px;
  background:#fff;border:2px solid var(--line);cursor:pointer;font:700 10.5px 'JetBrains Mono',monospace;color:var(--ink);
  letter-spacing:.06em;transition:border-color .15s,box-shadow .15s,transform .15s}
.map-pick button img{display:block;max-width:100%;height:auto;max-height:18px;width:auto}
.map-pick button[aria-pressed="true"]{border-color:var(--ink);box-shadow:3px 3px 0 var(--ink);transform:translate(-1px,-1px)}
.map-pick button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.map-rooms{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;
  font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--gray)}
.map-meter{display:flex;gap:3px}
.map-meter i{width:12px;height:12px;border:2px solid var(--ink);background:#fff}
.map-meter i.on{background:var(--red)}
.map-log{list-style:none;margin-top:12px;border-top:2px solid var(--ink);padding-top:8px;display:grid;gap:5px;
  font-family:'JetBrains Mono',monospace;font-size:11.5px;line-height:1.35;min-height:calc(3 * 1.35em + 10px)}
.map-log li{display:flex;gap:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-log li b{flex:none;min-width:5ch;color:#fff;background:var(--ink);padding:0 4px;font-size:10.5px;line-height:1.5}
.map-log li.new{animation:map-in .3s steps(3)}
@keyframes map-in{0%{transform:translateX(-8px);opacity:0}100%{transform:none;opacity:1}}

/* Odoo: the plate under everything */
.map-odoo .map-head{align-items:center}
.map-odoo .map-head img{width:74px;height:auto;display:block}
.map-odoo-body{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap}
.map-apps{list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.map-apps li{font-family:'JetBrains Mono',monospace;font-size:11.5px;font-weight:700;padding:6px 9px;
  border:2px solid var(--ink);background:#fff;transition:background .15s,color .15s}
.map-apps li.hot{background:var(--purple);color:#fff;box-shadow:2px 2px 0 var(--ink)}
.map-say{font-family:'JetBrains Mono',monospace;font-size:12px;color:var(--ink);min-height:1.4em;display:flex;align-items:center;gap:8px}
.map-say::before{content:"";width:10px;height:10px;background:var(--green);border:2px solid var(--ink);flex:none}
.map-say:empty::before{display:none}

/* wire labels and parcels, placed by systems-map.js */
.map-label{position:absolute;z-index:2;left:0;top:0;display:flex;align-items:center;gap:5px;white-space:nowrap;
  font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:700;color:var(--ink);
  background:var(--ice-2);padding:2px 4px;pointer-events:none}
.map-label svg{width:10px;height:10px;fill:currentColor;shape-rendering:crispEdges;flex:none}
.map-parcel{position:absolute;z-index:3;left:0;top:0;width:16px;height:12px;margin:-6px 0 0 -8px;
  background:var(--c);border:2px solid var(--ink);pointer-events:none}
.map-parcel::before{content:"";position:absolute;left:3px;top:-6px;width:6px;height:4px;background:var(--c);
  border:2px solid var(--ink);border-bottom:0}

/* what that means, said plainly */
.map-we{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(18px,2.4vw,36px);margin-top:clamp(36px,4vw,56px)}
.map-we li{border-top:2px solid var(--ink);padding-top:14px}
.map-we b{display:flex;align-items:center;gap:10px;font-size:18px;line-height:1.2}
.map-we b::before{content:"";width:14px;height:14px;background:var(--c);border:2px solid var(--ink);flex:none}
.map-we p{font-size:15.5px;line-height:1.6;color:#2f2d2a;margin-top:8px}
.map-fine{font-family:'JetBrains Mono',monospace;font-size:11px;line-height:1.5;color:var(--gray);margin-top:32px;max-width:90ch}

/* the bricks sit side by side only where the property system has room for
   its log; below that they stack, the property system centred */
@media (max-width:1179px){
  .map-board{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"web ota" "pms pms" "odoo odoo";
    column-gap:14px;row-gap:84px;align-items:stretch}
  .map-pms{max-width:520px;width:100%;justify-self:center}
  .map-we{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media (max-width:599px){
  .map-head{padding:8px 10px 9px}
  .map-head h3{font-size:16px}
  .map-head p{font-size:10.5px}
  .map-body{padding:10px}
  .map-web .map-head p,.map-ota .map-head p{display:none}
  .mb-room{grid-template-columns:1fr;padding:8px}
  .mb-pic{grid-row:auto;width:100%;height:30px}
  .map-otas li{height:44px;padding:6px}
  .map-otas img{max-height:16px}
  .map-otas li[data-ota="agoda"] img{max-height:26px}
  .map-otas li[data-ota="airbnb"] img{max-height:18px}
  .map-we{grid-template-columns:minmax(0,1fr)}
  .map-tab{font-size:10.5px}
}

/* ---- the film ---- */
.ind-film{padding-block:clamp(56px,7vw,96px);border-bottom:2px solid var(--ink);background:var(--ice-2)}
.ind-film h2{font-size:clamp(26px,2.8vw,38px);font-weight:700;letter-spacing:-.02em}
.ind-video{display:block;width:100%;max-width:1100px;height:auto;margin-top:28px;
  border:2px solid var(--ink);box-shadow:var(--hard);background:var(--paper)}

@media (max-width:1023px){
  .ind-stage{grid-template-columns:minmax(0,1fr);grid-template-areas:"hero" "world" "rail"}
  .ind-hero{min-height:0;padding-block:36px 30px}
  .ind-hero h1{max-width:14ch}
  .ind-world{top:68px;height:46vh;height:46svh;min-height:280px;border-left:0;border-block:2px solid var(--ink);z-index:4}
  .ind-rail{padding-bottom:36px}
  .ind-rail-h{padding-top:26px}
  .ind-part{min-height:0;padding:30px 0 34px;opacity:1}
  .ind-pin span{display:none}
  .ind-pin b{width:24px;height:24px}
  .ind-hint{left:10px;bottom:8px;font-size:11px}
  .ind-tools{right:8px;bottom:8px}
  .ind-tools button{width:32px;height:32px}
}
@media (prefers-reduced-motion: reduce){
  .ind-part,.ind-pin,.ind-hint,.ind-tools,.ind-brick{transition:none}
  .ind-part.on .ind-brick,.map-node.pulse,.map-log li.new{animation:none}
}
