/* Aksons · back.css: the back pages (footer) and the Ask tag launcher.
   Loaded after site.css on every page. */


/* =====================================================================================
   THE BACK COVER: closing line + the viewing card
   ===================================================================================== */
.ak-foot { padding-top: 0; }
@media (min-width: 861px) { .ak-site .ak-foot__cta { padding-right: 84px; } } /* room for the hanging Ask tag */
.ak-foot__cta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 440px); gap: 40px clamp(40px, 8vw, 140px); align-items: center; padding-block: clamp(70px, 9vw, 140px) clamp(60px, 7vw, 110px); }
.ak-foot__t { font-size: clamp(3rem, 1.4rem + 6vw, 8rem); max-width: 9ch; line-height: .95; }
/* the viewing card: a lot tag, punched and slightly turned, straightening on hover */
.ak-card-lot { position: relative; display: grid; gap: 16px; padding: 46px 28px 26px; background: var(--ak-paper); color: var(--ak-ink); rotate: 2.5deg; transition: rotate .8s var(--ak-ease), translate .8s var(--ak-ease); clip-path: polygon(14% 0, 86% 0, 100% 9%, 100% 100%, 0 100%, 0 9%); }
.ak-card-lot:focus-within { rotate: 0deg; translate: 0 -6px; }
@media (hover: hover) { .ak-card-lot:hover { rotate: 0deg; translate: 0 -6px; } }
.ak-card-lot__hole { position: absolute; left: 50%; top: 14px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ak-black); }
.ak-card-lot__k { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding-bottom: 12px; border-bottom: 1px solid var(--ak-ink); }
.ak-card-lot__addr { font-family: var(--ak-display); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); line-height: 1.08; letter-spacing: -.015em; }
.ak-card-lot__addr a { text-decoration: none; }
@media (hover: hover) { .ak-card-lot__addr a:hover { text-decoration: underline; text-decoration-thickness: 1px; } }
.ak-card-lot__hrs div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--ak-rule-2); font-size: 14.5px; }
.ak-card-lot__hrs dd { margin: 0; color: var(--ak-ink-3); }
.ak-card-lot__acts { display: grid; gap: 8px; margin-top: 4px; }
.ak-card-lot__acts .ak-btn { width: 100%; }
.ak-foot__grid { grid-template-columns: 1.5fr 1fr 1fr; }
.ak-foot__about .ak-foot__big { max-width: 22ch; }

/* =====================================================================================
   THE WORDMARK: the full stop rolls along the baseline after the pointer
   ===================================================================================== */
.ak-foot__mark { position: relative; padding-bottom: clamp(28px, 3vw, 44px); }
.ak-foot__mark a { display: block; }
.ak-logo--wall path { transform-box: fill-box; transform-origin: 50% 100%; }
.ak-foot__mark.is-rolling .ak-logo--wall .ak-lg__g--r0 { transition: none; }
.ak-foot__mark .ak-lg__g--r0:first-child { will-change: transform; }
.ak-foot__hint { position: absolute; right: var(--ak-gut); bottom: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ak-on-black-2); opacity: 0; transition: opacity .6s; }
@media (hover: hover) and (pointer: fine) { .ak-foot__mark:hover .ak-foot__hint { opacity: .8; } }

/* the bottom line's own way into the helper (the floating tag steps aside down here) */
.ak-foot__ask { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 0; border: 0; background: none; color: var(--ak-on-black); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ak-foot__ask::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (hover: hover) { .ak-foot__ask:hover { text-decoration: underline; text-underline-offset: .2em; } }
.ak-foot__ask + .ak-foot__credit { margin-left: 18px; }
@media (max-width: 860px) { .ak-foot__ask { display: none; } }

/* =====================================================================================
   ASK: the launcher is a lot tag on a string
   ===================================================================================== */
@media (min-width: 861px) {
	.ak-site .ask__btn.ak-tag { right: 22px; bottom: 16px; width: 78px; height: 132px; display: block; padding: 0; border-radius: 0; background: none; color: var(--ak-ink); box-shadow: none; transform: none; translate: 0 var(--lift, 0px); transition: translate .7s var(--ak-ease), opacity .3s; }
	@media (hover: hover) { .ak-site .ask__btn.ak-tag:hover { background: none; transform: none; } }
	.ak-tag__pin { position: absolute; left: 50%; top: 0; z-index: 2; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ak-ink); box-shadow: 0 0 0 3px var(--ak-paper), 0 2px 6px rgba(0, 0, 0, .3); }
	.ak-tag__swing { position: absolute; left: 0; right: 0; top: 6px; bottom: 0; transform-origin: 50% 0; rotate: var(--sw, 0deg); filter: drop-shadow(0 14px 18px rgba(11, 11, 11, .28)); }
	.ak-tag__string { position: absolute; left: 50%; top: 0; width: 10px; height: 30px; margin-left: -5px; overflow: visible; }
	.ak-tag__string path { fill: none; stroke: var(--ak-ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
	.ak-tag__card { position: absolute; left: 3px; right: 3px; top: 28px; bottom: 0; display: grid; justify-items: center; align-content: start; gap: 2px; padding-top: 26px; background: var(--ak-paper); color: var(--ak-ink); clip-path: polygon(18% 0, 82% 0, 100% 15%, 100% 100%, 0 100%, 0 15%); transition: background-color .3s, color .3s; }
	.ak-tag__card::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--ak-ink); clip-path: inherit; pointer-events: none; }
	.ak-tag__hole { position: absolute; left: 50%; top: 9px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--ak-ink); }
	.ak-tag__no { font-family: var(--ak-display); font-size: 1.75rem; line-height: 1; letter-spacing: -.02em; }
	.ak-tag__l { font-size: 9.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; text-align: center; line-height: 1.25; max-width: 9ch; }
	.ak-tag__typing { display: flex; gap: 3px; height: 6px; margin-top: 7px; }
	.ak-tag__typing i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .25; }
	.ak-tag:focus-visible .ak-tag__card { background: var(--ak-ink); color: var(--ak-paper); }
	@media (hover: hover) { .ak-tag:hover .ak-tag__card { background: var(--ak-ink); color: var(--ak-paper); } }
	.ak-tag:focus-visible .ak-tag__hole { background: var(--ak-paper); }
	@media (hover: hover) { .ak-tag:hover .ak-tag__hole { background: var(--ak-paper); } }
	@media (hover: hover) { .ak-m .ak-tag:hover .ak-tag__typing i { animation: akType 1s var(--ak-ease) infinite; opacity: 1; } }
	@media (hover: hover) { .ak-m .ak-tag:hover .ak-tag__typing i:nth-child(2) { animation-delay: .15s; } }
	@media (hover: hover) { .ak-m .ak-tag:hover .ak-tag__typing i:nth-child(3) { animation-delay: .3s; } }
	@keyframes akType { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }
	.ak-tag:focus-visible { outline: none; }
	.ak-tag:focus-visible .ak-tag__card::before { border-width: 2px; }
	.ak-site .ask__tip { right: 112px; bottom: 34px; }
	/* over the wordmark and the credit line the tag drops away (the bottom line has its own link) */
	.ask.is-docked .ask__btn.ak-tag, .ask.is-docked .ask__tip { translate: 0 170px; opacity: 0; pointer-events: none; }
	.ak-site .ask__btn.ak-tag { transition: translate .8s var(--ak-ease-io), opacity .4s; }
	body.ak-in-tour .ask__btn.ak-tag { opacity: 0; pointer-events: none; }
}

/* =====================================================================================
   responsive
   ===================================================================================== */
@media (max-width: 1100px) {
	.ak-foot__cta { grid-template-columns: minmax(0, 1fr); }
	.ak-card-lot { max-width: 440px; }
	.ak-foot__grid { grid-template-columns: 1fr 1fr; }
	.ak-foot__about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.ak-foot__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.ak-card-lot { rotate: 1.5deg; padding-inline: 20px; }
	/* shorter back pages on a phone: the catalogue links and the socials sit side by side */
	.ak-foot__cta { padding-block: 56px 48px; }
	.ak-foot__big { font-size: 1.3rem; }
	.ak-foot__col:last-child { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-items: start; }
	.ak-foot__col:last-child > .ak-label { grid-column: 1 / -1; }
	.ak-foot__col:last-child .ak-foot__social { margin-top: 0; }
	.ak-foot__links a { overflow-wrap: anywhere; }
}
@media (pointer: coarse) { .ak-foot__hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
	.ak-card-lot { rotate: 0deg; }
}

/* Docked or stepped aside, the tag leaves the tab order too. */
.ask.is-docked .ask__btn.ak-tag, body.ak-in-tour .ask__btn.ak-tag { visibility: hidden; transition: translate .8s var(--ak-ease-io), opacity .4s, visibility 0s .4s; }
