/* Section 6, "How we work": Boarding passes. Each step is a pass. The list item is a still hit
   area and the pass inside it moves, so the hover never flickers when the pass lifts away from
   the pointer. Hover lifts the pass, tilts the stub on its perforation and runs a scan line over
   the barcode. */
@font-face { font-family: "IBM Plex Mono"; src: url(brandfonts/IBMPlexMono-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
.hw { --px: clamp(24px, 7vw, 120px); position: relative; isolation: isolate; overflow-x: clip; background: var(--bg); color: var(--ink); padding: clamp(110px, calc(var(--vh, 1vh) * 16), 180px) var(--px) clamp(110px, calc(var(--vh, 1vh) * 16), 170px); }
.hw[data-tone="dark"] { --bg: #17110E; --ink: #F1E9DE; --muted: #B3A392; --accent: #CDA85F; --accent-text: #CDA85F; --rule: rgba(205,168,95,.22); --line: rgba(241,233,222,.12); --panel: #201915; --grid: rgba(205,168,95,.07); }
.hw[data-tone="light"] { --bg: #FAFAF8; --ink: #17110E; --muted: #5F5A55; --accent: #A9853D; --accent-text: #7A5A16; --rule: rgba(23,17,14,.14); --line: rgba(23,17,14,.1); --panel: #FFFFFF; --grid: rgba(23,17,14,.055); }
.hw::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 100%); }
.hw-wrap { max-width: 1400px; margin: 0 auto; }
.hw h2 { margin: 0 0 clamp(36px, calc(var(--vh, 1vh) * 7), 70px); font: 700 clamp(2.4rem, 5vw, 4.6rem)/1.02 var(--serif); letter-spacing: -0.03em; max-width: 12em; }
.hw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hw-s { position: relative; display: flex; flex-direction: column; gap: 8px; }
.hw-n { font: 700 clamp(2.2rem, 3.4vw, 3.2rem)/1 var(--serif); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.hw-s h3 { margin: 0; font: 700 clamp(1.4rem, 2vw, 1.8rem)/1.15 var(--serif); }
.hw-s p { margin: 0; }
.hw-d { color: var(--muted); }
.hw-get { margin-top: 6px !important; padding-top: 12px; border-top: 1px dashed var(--rule); font: 600 .8rem/1.35 "IBM Plex Mono", monospace; color: var(--accent-text); }
.hw-get > span:first-child { display: block; font-size: .75rem; opacity: .75; margin-bottom: 2px; }
.hw-vis { display: none; }
.hw-foot { margin-top: clamp(40px, calc(var(--vh, 1vh) * 7), 70px); display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.hw-promise { margin: 0; font: 700 clamp(1.15rem, 1.6vw, 1.45rem)/1.35 var(--serif); max-width: 30em; }
.hw[data-tone="light"] .btn-gold { border: 1px solid #B08D45; } .hw[data-tone="light"] .btn-gold::before { background: #17110E; }
@media (hover: hover) { .hw[data-tone="light"] .btn-gold:hover { color: #CDA85F; } }

/* ---------- Boarding passes ---------- */
.hw[data-h="h3"] .hw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hw[data-h="h3"] .hw-s { display: block; }
.bp { position: relative; display: grid; grid-template-columns: auto 1fr minmax(170px, 34%); grid-template-areas: "n t g" "n d g"; column-gap: 20px; row-gap: 6px; align-items: start; height: 100%;
  padding: 26px 0 26px 26px; color: #17110E; background: #FAFAF8; border-radius: 16px; box-shadow: 0 16px 36px rgba(0,0,0,.3);
  opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease) var(--dl, 0s), transform .5s var(--ease), box-shadow .5s var(--ease); }
.hw-s:nth-child(2) .bp { --dl: .08s; } .hw-s:nth-child(3) .bp { --dl: .16s; } .hw-s:nth-child(4) .bp { --dl: .24s; }
.hw.in .bp { opacity: 1; transform: none; }
.bp .hw-n { grid-area: n; color: #7A5A16; font-size: clamp(2.6rem, 4vw, 3.6rem); transition: color .4s var(--ease), transform .5s var(--ease); }
.bp h3 { grid-area: t; } .bp .hw-d { grid-area: d; color: #5F5A55; }
.bp .hw-get { grid-area: g; position: relative; align-self: stretch; margin: -26px 0 -26px !important; padding: 26px 22px; border-top: 0; border-left: 2px dashed rgba(23,17,14,.25);
  color: #7A5A16; background: #F3EEE4; border-radius: 0 16px 16px 0; display: flex; flex-direction: column; gap: 4px; transform-origin: 0 0;
  transition: transform .6s cubic-bezier(.3, 1.4, .5, 1), background-color .4s var(--ease); }
.bp .hw-get::before, .bp .hw-get::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.bp .hw-get::before { top: -11px; } .bp .hw-get::after { bottom: -11px; }
.bp-code { position: relative; display: flex; gap: 2px; height: 34px; margin-top: auto; overflow: hidden; } .bp-code i { background: #17110E; opacity: .85; }
.bp-code::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: linear-gradient(90deg, transparent, rgba(205,168,95,.9), transparent); opacity: 0; }
.bp-gate { font-size: .66rem; color: #5F5A55; transition: color .4s var(--ease); }
@media (hover: hover) {
  .hw.in .hw-s:hover .bp { transform: translateY(-8px); box-shadow: 0 28px 56px rgba(0,0,0,.42); transition-delay: 0s; }
  .hw-s:hover .bp .hw-n { color: #A9853D; transform: translateX(3px); }
  .hw-s:hover .bp .hw-get { transform: rotate(4deg) translate(4px, 2px); background: #EFE6D3; }
  .hw-s:hover .bp-code::after { opacity: 1; animation: bpScan 1.1s var(--ease) infinite; }
  .hw-s:hover .bp-gate { color: #7A5A16; }
}
@keyframes bpScan { from { left: -30%; } to { left: 100%; } }
@media (max-width: 860px) {
  .hw .hw-steps, .hw[data-h="h3"] .hw-steps { grid-template-columns: 1fr; }
  .bp { grid-template-columns: auto 1fr; grid-template-areas: "n t" "n d" "g g"; padding: 22px; }
  .bp .hw-get { margin: 14px -22px -22px !important; border-left: 0; border-top: 2px dashed rgba(23,17,14,.25); border-radius: 0 0 16px 16px; }
  .bp .hw-get::before, .bp .hw-get::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hw *, .hw *::before, .hw *::after { animation: none !important; transition: none !important; } .bp { opacity: 1; transform: none; } }
.hw-fx:empty { display: none; }
