/* Homepage swappable block: headline + Three doors ("A · Through the door").
 * Replace this file together with the BLOCK in public/index.html and js/home-hero.js.
 * Depends on lr.css tokens and the resets at the top of home.css. */
.hero .lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: end; padding: 6px 0 32px; }
.hero h1 { font: 700 clamp(50px, 7vw, 102px)/.9 var(--display); letter-spacing: -.045em; }
.hero .pos { font: 700 33px/1.08 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.hero .sub { font-size: 18px; color: var(--muted); margin-top: 12px; text-wrap: balance; max-width: 22em; }

.hero .door { scroll-margin-top: 120px; }
.hero .doors { display: flex; gap: 12px; height: clamp(404px, 100vh - 388px, 506px); }
.hero .door { position: relative; flex: 1 1 0; min-width: 0; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; padding: 12px; background: var(--coral); }
.hero .tapped .door { transition: flex-grow .55s var(--ease); }
.hero .door[data-g="country"] { background: var(--sky); }
.hero .door[data-g="product"] { background: var(--yellow); }
.hero .door.open { flex-grow: 2.2; }
.page-home .hero .door h2 { font-size: clamp(28px, 2.7vw, 39px); line-height: 1; padding: 16px 16px 0; position: relative; z-index: 2; text-wrap: wrap; }
.hero .door h2 button { text-align: left; font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; }
.hero .door:not(.open) h2 button { max-width: 6.2em; }
.hero .door:not(.open) h2 button::after { content: ""; position: absolute; inset: 0; height: 506px; z-index: 3; }
.hero .door :focus-visible { outline-color: var(--ink); border-radius: 8px; }
.hero .door:not(.open):has(:focus-visible) { outline: 3px solid var(--navy); outline-offset: -8px; }

.hero .in { position: absolute; left: 28px; bottom: 104px; width: 302px; z-index: 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .2s, transform .2s, visibility .2s; }
.hero .open .in { opacity: 1; visibility: visible; transform: none; transition: opacity .4s .25s, transform .5s .25s, visibility .4s; }
.hero .steps li { padding: 8px 0; border-top: 1.5px solid rgba(23, 19, 15, .28); font-size: 15.5px; line-height: 1.3; }
.hero .steps b { display: block; font-weight: 600; }

.hero .art { position: absolute; right: 6px; bottom: 0; width: 288px; clip-path: inset(-900px -900px 0); }
.hero .tapped .art { transition: width .55s var(--ease), right .55s var(--ease), bottom .45s; }
.hero .open .art { width: 318px; right: 12px; bottom: 84px; }
.hero .door[data-g="country"].open .art { right: 26px; }
.hero .sc { display: block; width: 100%; height: auto; overflow: visible; }
.hero .fly { color: var(--navy); transition: transform .5s var(--ease); }
.hero .door:hover .fly { transform: translate(4px, -6px); }
.hero .win, .hero .jet { fill: var(--ink); }
.hero [data-g="product"] .fly, .hero [data-g="product"] .jet { color: #ff5a36; fill: #ff5a36; }
.hero [data-g="product"] .win { fill: var(--navy); }

.hero .foot { margin-top: auto; position: relative; height: 72px; z-index: 2; pointer-events: none; }
.hero .door:not(.open) .foot { position: absolute; left: 28px; top: 128px; margin: 0; }
.hero .opn { position: absolute; left: 0; top: 0; transition: opacity .2s; }
.hero .opn i { width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background .2s; }
.hero .opn .arrow, .hero .bar .arrow { width: 22px; height: 22px; }
.hero .door:hover .opn i { background: var(--navy); }
.hero .open .opn { opacity: 0; }
.hero .bar { pointer-events: auto; position: absolute; inset: 0; border-radius: 20px; background: var(--ink); color: #fff; text-decoration: none; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 24px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.page-home main .hero .bar { color: #fff; }
.hero .open .bar { opacity: 1; visibility: visible; transition: opacity .35s .2s, visibility .35s; }
.hero .bar > span { font: 500 24px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.hero .bar b { display: flex; align-items: center; gap: 12px; height: 56px; border-radius: 14px; background: #fff; color: var(--ink); padding: 0 22px; font: 700 21px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; transition: background .2s; }
.hero .bar:hover b { background: var(--yellow); }
.hero .bar:hover .arrow { transform: translateX(4px); }
.hero .bar:focus-visible { outline: 3px solid #fff; outline-offset: -5px; border-radius: 20px; }

.hero .pf { margin-top: 18px; font-size: 16px; }
.hero .stick { display: none; }

@media (max-width: 1100px) and (min-width: 901px) {
  .hero .lead { align-items: center; }
  .hero .in { width: 284px; }
  .hero .art { width: 210px; }
  .hero .open .art { width: 186px; }
  .hero .bar > span { font-size: 19px; white-space: normal; line-height: 1.05; max-width: 8em; }
  .hero .bar b { padding: 0 16px; font-size: 19px; }
}
@media (min-width: 901px) and (max-height: 800px) {
  .hero .lead { padding: 0 0 18px; }
  .hero h1 { font-size: clamp(50px, 6.2vw, 82px); }
  .hero .pos { font-size: 29px; }
  .hero .doors { height: clamp(404px, 100vh - 286px, 506px); }
}
@media (max-width: 900px) {
  .hero .lead { grid-template-columns: 1fr; gap: 14px; padding: 8px 0 18px; }
  .hero .pos { font-size: 29px; }
  .hero .doors { flex-direction: column; height: auto; }
  .hero .door { flex: none; }
  .hero .door:not(.open) { min-height: 150px; }
  .page-home .hero .door h2 { font-size: 30px; padding: 10px 10px 0; }
  .hero .door:not(.open) h2 button::after { height: 150px; }
  .hero .door.open h2 button { max-width: 5.4em; }
  .hero .in { position: static; width: auto; display: none; padding: 4px 10px 8px; margin-top: 12px; order: 4; }
  .hero .open .in { display: block; }
  .hero .art, .hero .door[data-g].open .art { position: absolute; right: 12px; top: 12px; bottom: auto; width: 176px; }
  .hero .door:not(.open) .art { top: auto; bottom: 0; right: 8px; width: 184px; }
  .hero .foot { height: 68px; margin-top: 50px; order: 3; }
  .hero .door:not(.open) .foot { left: 22px; top: auto; bottom: 14px; height: 38px; width: 38px; }
  .hero .opn i { width: 38px; height: 38px; }
  .hero .opn .arrow { width: 18px; height: 18px; }
  .hero .bar { padding: 0 7px 0 18px; }
  .hero .bar > span { font-size: 19px; line-height: 1.05; white-space: normal; max-width: 6.4em; }
  .hero .bar b { height: 54px; padding: 0 16px; font-size: 19px; gap: 8px; }
  .hero .pf { margin-top: 16px; }
  .page-home { padding-bottom: 78px; }
  .hero .stick { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 253, 249, .95); border-top: 1px solid var(--line); transform: translateY(110%); visibility: hidden; transition: transform .3s, visibility .3s; }
  .hero .stick.on { transform: none; visibility: visible; }
  .page-home .hero .stick .button { width: 100%; min-height: 56px; font: 700 19px/1 var(--display); color: #fff; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .hero .bar > span { max-width: none; }
}
.page-home :is(h1, h2, h3, .pos, .bar, .button, blockquote) { word-spacing: .05em; }
