/* Guester Axis · /founding-hotels/ page sheet. Builds on axis.css (tokens, .wrap,
   .button, .button-ghost, .text-link, .section-label, .lede, .rule, .sr-only,
   [data-reveal]). Owns the fh-* classes founding.js drives: the countdown
   (rolling digits, progress track, closed state) and the application form.
   Rules: no font-size below var(--fs-micro); control borders 3:1 on white
   (--line-strong); interactive targets at least 44px on small viewports. */

.gax-founding-main{--fh-error:#b3261e}
.fh-link{color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-strong);transition:text-decoration-color .2s}
.fh-link:hover{text-decoration-color:var(--ink)}

/* ---------- program: copy left, countdown right ---------- */
.fh-program{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:48px 64px;align-items:start;padding-top:64px;padding-bottom:96px}
.fh-program--closed{grid-template-columns:1fr}
.fh-hero{min-width:0}
.fh-h1{font-size:clamp(2.25rem,1.25rem + 2.4vw,3.4rem);letter-spacing:-.035em;line-height:1.06;max-width:20ch}
.fh-lede{margin-top:24px;max-width:50ch}
.fh-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px}

/* The countdown panel: a white card on the hairline. Digits are Satoshi
   Medium at 44px with tabular figures, one 1ch window per digit. */
.fh-countdown{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:32px;margin-top:14px}
.fh-cd__label{color:var(--muted);font-size:15px}
.fh-cd__units{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px}
.fh-cd__unit{display:grid;gap:10px;justify-items:start;min-width:0}
.fh-cd__num{display:inline-flex;color:var(--ink);font-size:44px;font-weight:500;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.fh-cd__unit-label{color:var(--muted);font-size:var(--fs-small);font-weight:500}
.fh-d{display:inline-block;position:relative;width:1ch;height:1em;overflow:hidden;vertical-align:top}
.fh-d__v{display:block;height:1em;line-height:1;text-align:center}
.fh-cd__track{height:1px;margin-top:28px;background:var(--line);overflow:hidden}
.fh-cd__fill{height:100%;background:var(--ink);transform:scaleX(0);transform-origin:left center}
.fh-cd__note{color:var(--muted);font-size:var(--fs-control);margin-top:14px}

/* The panel after the deadline, written by the script. */
.fh-closed__heading{font-size:clamp(1.375rem,1.2rem + .8vw,1.75rem);font-weight:500;letter-spacing:-.03em;line-height:1.1}
.fh-closed__body{color:var(--muted);font-size:15px;line-height:1.55;margin-top:8px;max-width:52ch}

/* No script: the server digits stand, but minutes and seconds would be
   frozen at the cache time, so only days and hours show. */
html:not(.js-motion) .fh-cd__unit--live{display:none}
html:not(.js-motion) .fh-cd__units{grid-template-columns:repeat(2,minmax(0,1fr))}

/* ---------- apply: aside left, form right ---------- */
.fh-apply{padding-bottom:112px;scroll-margin-top:24px}
.fh-apply__grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:48px 64px;align-items:start;padding-top:56px}
.fh-apply__aside .fh-h2{font-size:clamp(1.5rem,1.25rem + 1vw,2rem);line-height:1.15;letter-spacing:-.03em}
.fh-apply__aside .fh-h2+.fh-list{margin-top:8px}
.fh-apply__aside .fh-list+.fh-h2{margin-top:44px}
.fh-apply__aside .fh-h2+.fh-aside__text{margin-top:12px}
.fh-aside__text{font-size:16px;line-height:1.55;color:var(--muted-strong);padding-bottom:16px;border-bottom:1px solid var(--line)}
.fh-list{list-style:none;display:grid}
.fh-list li{display:flex;gap:16px;align-items:baseline;padding:16px 0;border-bottom:1px solid var(--line);font-size:16px;line-height:1.55;color:var(--muted-strong)}
.fh-aside__note{color:var(--muted);font-size:15px;line-height:1.55;margin-top:24px;max-width:40ch}
.fh-aside__note+.fh-aside__note{margin-top:8px}

/* The form: a white panel on the hairline; controls carry the 3:1 border. */
.fh-form{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:40px;min-width:0}
.fh-form__head{margin-bottom:28px}
.fh-form__head .fh-h2{font-size:clamp(1.5rem,1.25rem + 1vw,2rem);line-height:1.15;letter-spacing:-.03em}
.fh-form__sub{color:var(--muted);font-size:15px;line-height:1.55;margin-top:10px;max-width:44ch}
html.fh-is-closed .fh-form__sub{display:none}
.fh-fields{border:0;margin:0;padding:0;min-width:0;display:grid;gap:20px}
.fh-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.fh-field{display:grid;gap:8px;min-width:0}
.fh-label{font-size:14px;font-weight:500}
.fh-input,.fh-select{appearance:none;-webkit-appearance:none;width:100%;min-height:52px;padding:12px 16px;background:var(--paper);border:1px solid var(--line-strong);border-radius:var(--radius-control);color:var(--ink);font-size:16px;line-height:1.3;transition:border-color .2s}
.fh-input::placeholder{color:var(--muted);opacity:1}
.fh-input:hover,.fh-select:hover{border-color:var(--muted-strong)}
.fh-input:focus-visible,.fh-select:focus-visible{outline:2px solid #111;outline-offset:2px;border-color:var(--ink);box-shadow:none}
.fh-input[aria-invalid="true"],.fh-select[aria-invalid="true"]{border-color:var(--fh-error)}
.fh-select-wrap{display:block;position:relative}
.fh-select{cursor:pointer;padding-right:44px}
.fh-select:has(option[value=""]:checked){color:var(--muted)}
.fh-select option{color:var(--ink)}
.fh-select-wrap::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;border-right:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink);transform:translateY(-70%) rotate(45deg);pointer-events:none}
.fh-error{color:var(--fh-error);font-size:var(--fs-control);line-height:1.4}
.fh-summary{padding:12px 16px;border:1px solid var(--line-strong);border-left:3px solid var(--ink);border-radius:var(--radius-control);background:var(--surface);color:var(--ink);font-size:14px;line-height:1.5;margin-bottom:20px}
.fh-summary:focus{outline:2px solid #111;outline-offset:2px}

/* Consent: a custom box, the native input stays for keyboard and AT. */
.fh-field--consent{margin-top:4px}
.fh-check{position:relative;display:grid;grid-template-columns:20px 1fr;gap:12px;align-items:start;min-height:44px;cursor:pointer;color:var(--muted-strong);font-size:var(--fs-control);line-height:1.6}
.fh-check input{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.fh-check__box{position:relative;display:block;width:20px;height:20px;margin-top:1px;background:var(--paper);border:1px solid var(--line-strong);border-radius:4px;transition:background-color .2s,border-color .2s}
.fh-check__box::after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border-right:2px solid var(--paper);border-bottom:2px solid var(--paper);transform:rotate(45deg) scale(0);transition:transform .2s var(--ease)}
.fh-check input:checked+.fh-check__box{background:var(--ink);border-color:var(--ink)}
.fh-check input:checked+.fh-check__box::after{transform:rotate(45deg) scale(1)}
.fh-check input:focus-visible+.fh-check__box{outline:2px solid #111;outline-offset:3px}
.fh-field--consent[data-invalid] .fh-check__box{border-color:var(--fh-error)}

/* The trap field: off-canvas, invisible, never in the tab order. */
.fh-honey{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;opacity:0}

.fh-form__actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:28px}
.fh-submit{width:100%}
.fh-submit[aria-busy="true"],.fh-submit[aria-disabled="true"],.fh-submit:disabled{cursor:progress;opacity:.7;transform:none;box-shadow:none}
.fh-status{color:var(--muted);font-size:14px;line-height:1.5;margin-top:14px}
.fh-status:empty{display:none}

/* Success, from the template (JS) or the ?applied=1 branch (no JS). */
.fh-success{display:grid;gap:12px;justify-items:start;padding:8px 0}
.fh-success:focus{outline:none}
.fh-success__mark{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:999px;background:var(--ink);color:var(--paper)}
.fh-success__heading{font-size:clamp(1.375rem,1.2rem + .8vw,1.75rem);font-weight:500;letter-spacing:-.03em;line-height:1.1}
.fh-success__body{color:var(--muted);font-size:15px;line-height:1.55;max-width:44ch}

/* ---------- close ---------- */
.fh-close{padding-bottom:112px}
.fh-close__inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px 48px;padding-top:56px}
.fh-close__inner h2{max-width:14ch}
.fh-close__mail{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px;color:var(--muted);font-size:15px}
.fh-close__mail .text-link{color:var(--ink)}

/* ---------- motion ---------- */
@media(prefers-reduced-motion:no-preference){
	.fh-d__v{transition:transform .34s var(--ease)}
	.fh-d.is-rolling .fh-d__v{transform:translateY(-1em)}
	.fh-cd__fill{transition:transform .6s var(--ease)}
}
@media(prefers-reduced-motion:reduce){
	.fh-d__v,.fh-cd__fill,.fh-check__box,.fh-check__box::after,.fh-input,.fh-select{transition:none!important}
}

/* ---------- breakpoints ---------- */
@media(max-width:1199px){
	.fh-program{gap:40px 48px}
	.fh-apply__grid{gap:40px 48px}
	.fh-countdown{padding:28px}
	.fh-cd__num{font-size:40px}
}
@media(max-width:959px){
	.fh-program{grid-template-columns:1fr;gap:40px;padding-top:48px;padding-bottom:72px}
	.fh-h1{max-width:20ch}
	.fh-countdown{margin-top:0}
	.fh-cd__num{font-size:44px}
	.fh-apply__grid{grid-template-columns:1fr;gap:40px;padding-top:48px}
	.fh-apply{padding-bottom:88px}
	.fh-close{padding-bottom:88px}
	.fh-close__inner{padding-top:48px}
}
@media(max-width:639px){
	.fh-program{padding-top:36px;padding-bottom:56px;gap:32px}
	.fh-lede{margin-top:20px}
	.fh-actions{margin-top:28px;flex-direction:column}
	.fh-actions .button{width:100%}
	.fh-countdown{padding:24px 20px}
	.fh-cd__units{gap:16px 12px;margin-top:20px}
	.fh-cd__num{font-size:32px}
	/* Inline links inside sentences: grow the hit area to 44px without moving the text. */
	.fh-link{display:inline-block;padding:13px 0;margin:-13px 0}
	.fh-cd__track{margin-top:24px}
	.fh-apply{padding-bottom:64px}
	.fh-apply__grid{padding-top:36px;gap:32px}
	.fh-list li{padding:14px 0;font-size:15px}
	.fh-form{padding:24px 20px}
	.fh-form__head{margin-bottom:24px}
	.fh-fields,.fh-row{gap:18px}
	.fh-row{grid-template-columns:1fr}
	.fh-close{padding-bottom:64px}
	.fh-close__inner{padding-top:36px;gap:16px}
	.fh-close__mail{font-size:14px}
}
@media(max-width:360px){
	.fh-cd__num{font-size:28px}
	.fh-cd__units{gap:14px 8px}
}
