/* Seminar and partnership request (shared/ask.js), on the bio page and the homepage: a sheet from the bottom on phones, a card in the middle on wide screens. */
/* Locking the page scroll is for mouse screens only: on an iPhone, overflow on <html> shifts fixed layers. */
@media (hover: hover) and (pointer: fine) { html.ask-open { overflow: hidden; } }
/* The dialog only covers the screen and never scrolls itself (iPhone Chrome scrolled it and pushed the sheet off screen); the sheet is pinned to its bottom edge. */
.ask { --ask-ink: #F5F3EF; --ask-ink-2: #CFCAC0; --ask-mute: #A29D92; --ask-line: rgba(214, 186, 132, .22); position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden; background: transparent; border: 0; color: var(--ask-ink); overscroll-behavior: contain; }
.ask[open] { display: block; }
.ask::backdrop { background: rgba(5, 5, 5, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ask-in { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 28px); padding: 14px 20px calc(26px + env(safe-area-inset-bottom)); background: radial-gradient(120% 50% at 0 0, rgba(226, 203, 152, .14), transparent 62%), #121212; border-top: 1px solid rgba(214, 186, 132, .45); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(214, 186, 132, .4) transparent; }
/* Opening focuses the heading (autofocus): it is on screen from the first frame, so an iPhone has no reason to pan the view, and no ring lands on the close button. */
#ask-h:focus { outline: 0; }
.ask-in::before { content: ""; display: block; width: 44px; height: 4px; margin: 0 auto 18px; background: rgba(245, 243, 239, .22); border-radius: 2px; }
.ask-x { position: absolute; z-index: 1; right: 12px; top: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: rgba(11, 11, 11, .6); border: 1px solid var(--ask-line); border-radius: 50%; color: var(--ask-ink); cursor: pointer; transition: border-color .2s; }
.ask-x:hover { border-color: #E2CB98; }
.ask-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ask form { margin: 0; }
.ask [hidden] { display: none !important; }
.ask-seg { display: inline-grid; grid-auto-flow: column; gap: 4px; margin: 0 0 24px; padding: 4px; border: 1px solid rgba(214, 186, 132, .35); border-radius: 999px; }
.ask-seg label { position: relative; }
.ask-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ask-seg span { display: block; padding: 12px 18px 11px; font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ask-ink-2); border-radius: 999px; transition: background .3s var(--ease), color .3s; }
.ask-seg input:checked + span { background: var(--metal); color: #111; }
.ask-seg input:focus-visible + span { outline: 2px solid var(--ask-ink); outline-offset: 2px; }
.ask-tag { margin: 0 0 10px; font: 700 12px/1.2 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #CFB074; }
.ask h2 { margin: 0 0 14px; font: 900 clamp(44px, 12.4vw, 66px)/.9 var(--display); text-transform: uppercase; color: var(--ask-ink); }
.ask h2 .g { display: block; padding-top: .04em; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ask-lead { max-width: 46ch; margin: 0 0 24px; font: 400 16px/1.5 var(--body); color: var(--ask-ink-2); }
.ask-grid { display: grid; gap: 12px; }
.fl { position: relative; display: block; }
.fl input, .fl textarea { display: block; width: 100%; height: 62px; padding: 25px 16px 8px; font: 400 17px/1.3 var(--body); color: var(--ask-ink); background: linear-gradient(#E2CB98, #E2CB98) 0 100% / 0 2px no-repeat rgba(245, 243, 239, .05); border: 1px solid rgba(214, 186, 132, .42); border-radius: 0; -webkit-appearance: none; appearance: none; transition: background-size .35s var(--ease), border-color .2s; }
.fl textarea { height: auto; min-height: 124px; padding-top: 30px; resize: vertical; }
.fl > span { position: absolute; left: 17px; top: 21px; font: 400 16px/1.2 var(--body); color: var(--ask-mute); pointer-events: none; transform-origin: 0 0; transition: transform .25s var(--ease), color .2s; }
.fl :focus ~ span, .fl :not(:placeholder-shown) ~ span { color: #CFB074; transform: translateY(-12px) scale(.74); }
.fl input:focus, .fl textarea:focus { outline: 0; border-color: #E2CB98; background-size: 100% 2px; }
.fl :user-invalid { border-color: #E5867A; }
.chips { min-width: 0; margin: 8px 0 4px; padding: 0; border: 0; }
.chips legend { margin: 0 0 10px; padding: 0; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ask-mute); }
.chips div { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: block; padding: 13px 18px; font: 600 15px/1 var(--body); color: var(--ask-ink-2); border: 1px solid rgba(214, 186, 132, .42); border-radius: 999px; transition: background .2s, border-color .2s, color .2s; }
.chips input:checked + span { background: rgba(226, 203, 152, .2); border-color: #E2CB98; color: var(--ask-ink); }
.chips input:checked + span::before { content: "\2713"; margin-right: 8px; color: #E2CB98; }
.chips input:focus-visible + span { outline: 2px solid var(--ask-ink); outline-offset: 2px; }
.ask .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask-err { margin: 16px 0 0; font-size: 15px; color: #FFB4A8; }
.ask-err:empty { display: none; }
.ask-go { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 60px; margin: 20px 0 14px; padding: 0 24px; font: 700 14px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #111; background: var(--metal); border: 0; border-radius: 999px; cursor: pointer; transition: filter .2s, transform .25s var(--ease); }
.ask-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.ask-go:hover { filter: brightness(1.06); }
.ask-go:active { transform: scale(.98); }
.ask-go:disabled { opacity: .65; cursor: progress; }
.ask-go:focus-visible, .ask-x:focus-visible { outline: 3px solid var(--ask-ink); outline-offset: 3px; }
.ask-fine { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ask-mute); }
.ask-fine a { color: #E2CB98; text-underline-offset: 2px; }
.ask-done { display: grid; justify-items: start; padding: 18px 0 0; outline: 0; }
.ask-done .ask-lead b { color: var(--ask-ink); overflow-wrap: anywhere; }
.ask-done .ask-go { margin-bottom: 0; }
.ask-ic { position: relative; display: grid; place-items: center; width: 84px; height: 84px; margin: 0 0 22px; border: 1px solid rgba(226, 203, 152, .6); border-radius: 50%; }
.ask-ic .gi { width: 50px; height: 50px; }
@media (min-width: 560px) {
    .ask-grid { grid-template-columns: 1fr 1fr; }
    .ask-grid .wide, .ask[data-type="seminar"] .fl-phone { grid-column: 1 / -1; }
}
@media (min-width: 760px) {
    .ask-in { left: 50%; right: auto; top: 50%; bottom: auto; width: min(620px, calc(100% - 48px)); max-height: calc(100% - 48px); padding: 40px 44px 36px; border: 1px solid rgba(214, 186, 132, .45); translate: -50% -50%; }
    .ask-in::before { display: none; }
    .ask-x { right: 16px; top: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
    .ask[open] .ask-in { animation: ask-up .5s var(--ease) both; }
    .ask[open]::backdrop { animation: ask-fade .3s ease both; }
    .ask.closing .ask-in { animation: ask-down .26s ease-in both; }
    .ask.closing::backdrop { animation: ask-fade .26s ease-in reverse both; }
    .ask-done:not([hidden]) > * { animation: ask-rise .7s var(--ease) both; }
    .ask-done > :nth-child(2) { animation-delay: .15s; }
    .ask-done > :nth-child(3) { animation-delay: .25s; }
    .ask-done > :nth-child(4) { animation-delay: .35s; }
    .ask-done:not([hidden]) .ask-ic { animation: ask-punch .65s cubic-bezier(.2, 1.5, .4, 1) both; }
    .ask-done:not([hidden]) .ask-ic::after { content: ""; position: absolute; inset: -1px; border: 2px solid #E2CB98; border-radius: 50%; animation: ask-ring 1.1s .3s ease-out both; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 760px) {
    .ask[open] .ask-in { animation-name: ask-pop; }
    .ask.closing .ask-in { animation-name: ask-pop-out; }
}
/* A short rise, not from below the screen: the focused heading must stay in view while the sheet comes in. */
@keyframes ask-up { from { opacity: 0; transform: translateY(48px); } }
@keyframes ask-down { to { opacity: 0; transform: translateY(48px); } }
@keyframes ask-pop { from { opacity: 0; transform: translateY(26px) scale(.97); } }
@keyframes ask-pop-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes ask-fade { from { opacity: 0; } }
@keyframes ask-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes ask-punch { 0% { opacity: 0; transform: translateX(-40px) scale(.4) rotate(-30deg); } 60% { opacity: 1; transform: translateX(6px) scale(1.12) rotate(8deg); } 100% { transform: none; } }
@keyframes ask-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2); } }
