/* Scene 6, fares: three landscape boarding passes laid on the warm dark table, slightly overlapping,
   First Class on top; "Fares" in the opposite corner, what every fare includes in the other. */

.sc--fares {
  color: var(--bone);
  /* the warm dark thins out at the bottom, so the close arrives through it */
  background: linear-gradient(180deg, var(--cocoa) 0%, var(--cocoa) calc(100% - min(60svh, 560px)), rgba(28, 21, 18, .7) calc(100% - min(30svh, 280px)), rgba(28, 21, 18, 0) 100%);
  padding: clamp(64px, 9svh, 110px) var(--gut) clamp(240px, 36svh, 400px);
}

/* ---------- the table: a diagonal of three passes, the headline and the inclusions in the corners it leaves ---------- */
.f-table {
  --tilt-b: -2.2deg; --tilt-f: .8deg; --tilt-a: -1.4deg;
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start;
  max-width: 1640px; margin: 0 auto;
}
.f-head { grid-column: 3 / 5; grid-row: 1; justify-self: end; display: grid; justify-items: end; text-align: right; padding-left: clamp(20px, 3vw, 60px); }
.f-hl { font-size: clamp(84px, 10.4vw, 210px); font-weight: 480; font-stretch: 125%; line-height: .8; letter-spacing: -.05em; margin: -.02em -.04em 0 0; }
.f-sw { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: clamp(22px, 3svh, 36px); }
.f-sub { max-width: 36ch; margin-top: 14px; font-size: var(--t-cap); font-stretch: 108%; line-height: 1.45; color: var(--bone-2); }

.seg { display: inline-flex; padding: 4px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--hair); }
.seg__b {
  appearance: none; border: 0; margin: 0; padding: 0 14px; height: 34px; border-radius: 99px; background: transparent; color: var(--bone-2); cursor: pointer;
  font: 500 13px/1 var(--f-wide); font-stretch: 112%; letter-spacing: .01em; white-space: nowrap; transition: background .35s, color .35s;
}
.seg__b:hover { color: var(--bone); }
.seg__b[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.seg__x { opacity: .7; }

.pass[data-fare="boarding"] { grid-column: 1 / 3; grid-row: 1; margin-top: clamp(8px, 2svh, 24px); }
.pass[data-fare="first"] { grid-column: 2 / 4; grid-row: 2; z-index: 3; margin-top: -22px; }
.pass[data-fare="autopilot"] { grid-column: 3 / 5; grid-row: 3; z-index: 2; margin-top: -22px; }
.f-inc { grid-column: 1 / 3; grid-row: 3; align-self: center; padding: 30px clamp(28px, 4vw, 80px) 0 0; }

/* ---------- a pass: the main part, a vertical tear, the stub with the button ---------- */
.pass {
  --paper: #fbf5ea; --notch: 12px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 32%; container-type: inline-size;
  color: var(--ink-w); filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .42)) drop-shadow(0 4px 6px rgba(0, 0, 0, .22));
}
/* without the camera the passes rest at their tilt; with it, the deal leaves them there */
html:not(.motion) .pass[data-fare="boarding"] { rotate: var(--tilt-b); }
html:not(.motion) .pass[data-fare="first"] { rotate: var(--tilt-f); }
html:not(.motion) .pass[data-fare="autopilot"] { rotate: var(--tilt-a); }
.pass__main, .pass__stub { position: relative; background: var(--paper); }
.pass__main { display: flex; flex-direction: column; padding: 3.4cqw 3.6cqw 3.2cqw 4cqw; border-radius: 1.6cqw 0 0 1.6cqw; }
.pass__stub { display: flex; flex-direction: column; justify-content: space-between; gap: 2.4cqw; padding: 3.4cqw 3.2cqw 3.2cqw 3.6cqw; border-radius: 0 1.6cqw 1.6cqw 0; }
/* the tear: a dashed line between two notches punched clean through the paper (masks, so a pass laid over
   another shows the one beneath through its notches) */
.pass__stub::before { content: ""; position: absolute; left: 0; top: calc(var(--notch) + 8px); bottom: calc(var(--notch) + 8px); border-left: 1.5px dashed rgba(29, 21, 17, .28); }
.pass__main {
  -webkit-mask: radial-gradient(circle at 100% 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at 100% 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at 100% 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at 100% 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
}
.pass__stub {
  -webkit-mask: radial-gradient(circle at 0 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at 0 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at 0 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at 0 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
}

.pass__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; font-family: var(--f-mono); font-size: max(9.5px, 1.5cqw); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pass__top .o42 { --o42-ink: var(--ink-3); }
.bar {
  flex: none; width: 12cqw; height: 4.2cqw;
  background: repeating-linear-gradient(90deg, var(--ink-w) 0 2px, #0000 2px 3px, var(--ink-w) 3px 4px, #0000 4px 7px, var(--ink-w) 7px 10px, #0000 10px 11px, var(--ink-w) 11px 12px, #0000 12px 15px, var(--ink-w) 15px 16px, #0000 16px 17px, var(--ink-w) 17px 20px, #0000 20px 22px);
}
.pass__mid { display: flex; justify-content: space-between; align-items: flex-end; gap: 3cqw; margin-top: 1.2cqw; }
.pass__id { min-width: 0; }
.pass__route { display: flex; align-items: center; gap: 2cqw; font-size: max(12.5px, 2cqw); font-weight: 560; font-stretch: 112%; letter-spacing: -.005em; white-space: nowrap; }
.pass__route span { display: grid; gap: .3em; }
.pass__route i { font-style: normal; font-family: var(--f-mono); font-size: max(9px, 1.35cqw); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pass__plane { flex: none; width: max(13px, 2.2cqw); height: auto; margin-top: 1.1em; color: var(--ink-3); }
.pass__name { margin: 3.6cqw 0 0; font-size: max(24px, 5cqw); font-weight: 560; font-stretch: 125%; line-height: .95; letter-spacing: -.035em; white-space: nowrap; }
.pass__fare { flex: none; display: grid; justify-items: end; text-align: right; }
.pass__price { display: grid; justify-items: end; }
.pass__price b { font-size: max(34px, 9cqw); font-weight: 480; font-stretch: 112%; letter-spacing: -.045em; line-height: .9; font-variant-numeric: tabular-nums; }
.pass__price span { margin-top: .8em; font-family: var(--f-mono); font-size: max(9.5px, 1.45cqw); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.pass__note { max-width: 24ch; margin-top: .7em; font-size: max(11px, 1.6cqw); font-stretch: 106%; line-height: 1.3; color: var(--ink-3); }
.pass__f { display: flex; flex-wrap: wrap; gap: 1.4cqw 4cqw; margin: auto 0 0; padding-top: 2.4cqw; border-top: 1px solid var(--hair-ink); }
.pass__mid + .pass__f { margin-top: 3.4cqw; }
.pass__f div { display: grid; gap: .4em; }
.pass__f dt, .pass__stub-f dt { font-family: var(--f-mono); font-size: max(9px, 1.3cqw); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pass__f dd { margin: 0; font-size: max(12px, 1.9cqw); font-weight: 520; font-stretch: 104%; line-height: 1.2; white-space: nowrap; }
.pass__stamp {
  position: absolute; right: 18cqw; top: 2.6cqw; padding: .7cqw 1.3cqw; border: 1.5px solid #b8431f; border-radius: 3px; color: #b8431f;
  font-family: var(--f-mono); font-size: max(9px, 1.35cqw); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; rotate: -6deg; mix-blend-mode: multiply;
}

.pass__stub-n { font-size: max(15px, 2.7cqw); font-weight: 560; font-stretch: 118%; line-height: 1; letter-spacing: -.02em; }
.pass__stub-f { display: flex; justify-content: space-between; gap: 1.6cqw; margin: 0; }
.pass__stub-f div { display: grid; gap: .4em; }
.pass__stub-f dd { margin: 0; font-family: var(--f-mono); font-size: max(12px, 1.9cqw); font-weight: 500; }
.pass__go {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 5px 5px 5px 16px; border-radius: 99px;
  background: var(--ink-w); color: var(--cream); text-decoration: none; font-size: max(13px, 1.8cqw); font-weight: 600; font-stretch: 106%; letter-spacing: -.005em; line-height: 1.1; white-space: nowrap;
  transition: background .3s;
}
.pass__go svg { flex: none; box-sizing: content-box; padding: 10px; border-radius: 50%; background: var(--cream); color: var(--ink-w); transition: transform .5s var(--ease-out); }
.pass__go:hover { background: #000; }
.pass__go:hover svg { transform: rotate(45deg); }
.pass__go:active { background: #3a2c24; }
.pass__go:focus-visible { outline-color: #b8431f; }
.pass--most { --paper: #fffaf1; }

/* ---------- what every fare carries ---------- */
.f-inc .cap__k, .f-vs .cap__k { color: var(--dusk); margin-bottom: 16px; }
.f-inc__l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.f-inc__l li { padding: 11px 0; border-top: 1px solid var(--hair); font-size: clamp(14px, 1.05vw, 17px); font-weight: 500; font-stretch: 106%; }
.f-app { display: flex; align-items: center; gap: 16px; margin-top: 26px; max-width: 46ch; font-size: var(--t-cap); font-stretch: 106%; line-height: 1.45; color: var(--bone-2); }
.f-app__i { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(160deg, #1e2230, #12161f); box-shadow: inset 0 0 0 1px rgba(243, 235, 223, .12), 0 8px 18px rgba(0, 0, 0, .35); }
.f-app__i i { font: italic 400 20px/1 var(--f-agency); color: #f3ebdf; }
/* the second add-on: the agency's website, by 42LAB */
.f-app + .f-app { margin-top: 14px; }
.f-app__i--web { color: #f3ebdf; }
.f-app__a {
  display: inline-flex; align-items: center; gap: .45em; color: var(--dusk); text-decoration: none; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease-out);
}
.f-app__a:hover { background-size: 0 1px; background-position: 100% 100%; }
.f-app__a svg { flex: none; transition: transform .45s var(--ease-out); }
.f-app__a:hover svg { transform: translate(2px, -2px); }

/* ---------- the honest comparison: the line at display scale, the table beside it ---------- */
.f-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); align-items: end; max-width: 1640px; margin: clamp(80px, 12svh, 140px) auto 0; }
.vs__line { font-size: clamp(28px, 3.2vw, 58px); font-weight: 520; font-stretch: 118%; line-height: 1.02; letter-spacing: -.03em; color: var(--bone); text-wrap: balance; max-width: 18ch; }
.vs__line .o42 { --o42-ink: var(--bone); }
.vs { width: 100%; border-collapse: collapse; font-size: clamp(13px, .98vw, 16px); }
.vs th, .vs td { padding: 10px 0; border-top: 1px solid var(--hair); text-align: left; vertical-align: baseline; font-weight: 400; }
.vs thead th { border-top: 0; padding-top: 0; font-family: var(--f-mono); font-size: var(--t-lab); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-3); }
.vs tbody th { color: var(--bone-2); padding-right: 16px; }
.vs td { padding-right: 16px; color: var(--bone-3); }
.vs td:last-child { color: var(--dusk); font-weight: 520; padding-right: 0; }
.vs .o42 { --o42-ink: var(--bone-3); }

/* ---------- narrower screens: the passes stack, still overlapping a little, the stub drops below the tear ---------- */
@media (max-width: 1100px) {
  .f-table { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .f-head { grid-column: 1; grid-row: auto; justify-self: start; justify-items: start; text-align: left; padding: 0; margin-bottom: 40px; }
  .f-sw { justify-content: flex-start; }
  .pass[data-fare] { grid-column: 1; grid-row: auto; }
  .pass[data-fare="boarding"] { margin-top: 0; }
  .pass[data-fare="first"] { margin-top: -18px; }
  .pass[data-fare="autopilot"] { margin-top: -18px; }
  .f-inc { grid-column: 1; grid-row: auto; padding: 64px 0 0; }
  .f-vs { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
}
@media (max-width: 600px) {
  .f-table { --tilt-b: -1.4deg; --tilt-f: 1deg; --tilt-a: -1.1deg; }
  .pass { grid-template-columns: minmax(0, 1fr); }
  .pass__main { padding: 20px 20px 18px 22px; border-radius: 14px 14px 0 0; }
  .pass__mid { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 10px; }
  .pass__fare { justify-items: start; text-align: left; }
  .pass__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
  .pass__price span { margin-top: 0; }
  .pass__name { margin-top: 16px; }
  .pass__mid + .pass__f { margin-top: 14px; padding-top: 12px; }
  .pass__f { gap: 10px 22px; }
  .pass__stamp { right: 20px; top: 46px; }
  .bar { width: 64px; height: 24px; }
  .pass__stub { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; padding: 18px 20px 20px 22px; border-radius: 0 0 14px 14px; }
  .pass__stub-n { display: none; }
  .pass__stub-f { justify-content: flex-start; gap: 18px; }
  .pass__go { padding-left: 14px; }
  .pass__stub::before { left: calc(var(--notch) + 8px); right: calc(var(--notch) + 8px); top: 0; bottom: auto; border-left: 0; border-top: 1.5px dashed rgba(29, 21, 17, .28); }
  .pass__main {
    -webkit-mask: radial-gradient(circle at 0 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
                  radial-gradient(circle at 100% 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
            mask: radial-gradient(circle at 0 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
                  radial-gradient(circle at 100% 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
  }
  .pass__stub {
    -webkit-mask: radial-gradient(circle at 0 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
                  radial-gradient(circle at 100% 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
            mask: radial-gradient(circle at 0 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
                  radial-gradient(circle at 100% 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
  }
  .f-inc__l { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .seg__b { padding: 0 11px; font-size: 12.5px; }
}
