/* absense in the site's case template: site type, rules and spacing; its own colours and images stay inside the content */
.ab { --ab-in: #1B1214; --ab-cr: #F6EFE8; }
.ab svg, .ab img { display: block; max-width: 100%; }
.ab figure { margin: 0; }
.ab-hero { position: relative; height: min(92vh, 940px); min-height: 460px; overflow: hidden; background: var(--ab-in); }
.ab-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .88; }
.ab-hero > svg { position: absolute; left: var(--g); bottom: var(--g); width: calc(100% - 2 * var(--g)) !important; height: auto; }
.ab-ch { border-top: 0; }
.ab .st-names { margin-top: 26px; }
.ab .st-body .ab-lines { max-width: none; margin: 40px 0 0; font-size: clamp(26px, 3vw, 48px); line-height: 1.1; letter-spacing: -.04em; }
/* images: the site's 8px corner, mono captions, page gutter */
.ab-two, .ab-three, .ab-gr { display: grid; gap: clamp(24px, 2.4vw, 40px) clamp(10px, 1.2vw, 18px); padding: 0 var(--g) clamp(24px, 2.4vw, 40px); }
.ab-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ab-two.ab-w12 { grid-template-columns: 1.5fr 1fr; }
.ab-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ab-gr { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: clamp(24px, 2.4vw, 40px); }
.ab-full { padding: 0 var(--g) clamp(24px, 2.4vw, 40px); }
.ab figure img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; border-radius: 8px; }
.ab figure > div { border-radius: 8px; }
.ab figure.ab-t img { aspect-ratio: 4 / 5; } .ab figure.ab-mk img { aspect-ratio: 4 / 3; } .ab .ab-full .ab-mk img { aspect-ratio: 16 / 10; }
.ab .ab-gr img { aspect-ratio: 4 / 5; } .ab figure.ab-out img { aspect-ratio: 466 / 678; } .ab .ab-hero > img { border-radius: 0; aspect-ratio: auto; height: 100%; }
.ab figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin-top: 10px; font: 500 11px/1.4 "Geist Mono", ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--soft, #666); }
.ab figcaption b { font-weight: 500; color: var(--ink, #111); }
/* close your eyes */
.ab-hold { position: relative; display: grid; place-items: center; width: 100%; height: 86vh; min-height: 460px; border: 0; overflow: hidden; background: var(--ab-cr); color: var(--ab-in); font: inherit; cursor: pointer; touch-action: manipulation; }
.ab-hold img { position: relative; width: min(60vw, 440px); height: auto; object-fit: contain; transition: transform 1.6s cubic-bezier(.6, 0, .2, 1); transform-origin: 50% 100%; }
.ab-hold i { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 60%, #7a2616, #150c0e 72%); opacity: 0; transition: opacity 2s; }
.ab-hold b { position: absolute; left: 0; right: 0; bottom: 36px; font: 500 12px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; transition: color 1.6s; }
.ab-hold.on i { opacity: 1; } .ab-hold.on img { transform: scaleY(.03); } .ab-hold.on b { color: var(--ab-cr); }
.ab-hold:focus-visible { outline: 3px solid var(--ab-in); outline-offset: -6px; }
/* the mark */
.ab-build { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 var(--g) clamp(24px, 2.4vw, 40px); border-radius: 8px; overflow: hidden; background: var(--ab-in); color: var(--ab-cr); }
.ab-build > div { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-right: 1px solid rgb(246 239 232 / .14); } .ab-build > div:last-child { border: 0; }
.ab-build span { position: absolute; left: 18px; bottom: 16px; font: 500 11px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; opacity: .75; }
/* colour */
.ab-sws { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr 1.2fr 1.4fr 1.1fr; margin: 0 var(--g); border-radius: 8px 8px 0 0; overflow: hidden; }
.ab-sw { min-height: 400px; padding: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.4; } .ab-sw b { font-weight: 500; font-size: 18px; letter-spacing: -.02em; }
.ab code { display: block; margin-top: 14px; font: 500 11px/1.5 "Geist Mono", ui-monospace, monospace; background: none; padding: 0; } .ab-sw code { margin-top: auto; }
.ab-k { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 var(--g); border-radius: 0 0 8px 8px; overflow: hidden; } .ab-k > div { padding: 44px 24px 16px !important; }
.ab-ai { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); align-items: center; margin: 0; padding: clamp(60px, 8vw, 120px) var(--g); background: var(--ab-cr); color: var(--ab-in); }
.ab-ai h2, .ab-live h2 { margin: 14px 0 18px; font-size: clamp(32px, 4vw, 64px); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.ab-ai p, .ab-live p { margin: 0; max-width: 48ch; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; }
.ab-ai .ab-d { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%; background: #F4603C; } .ab-ai .ab-d::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--ab-in); } .ab-ai.off .ab-d { background: transparent; }
.ab-ai button { margin-top: 26px; height: 52px; padding: 0 26px; border: 0; border-radius: 99px; background: var(--ab-in); color: var(--ab-cr); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; } .ab-ai button:focus-visible { outline: 3px solid var(--ab-in); outline-offset: 4px; }
.ab-ty { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); align-items: end; padding: 0 var(--g) clamp(70px, 9vw, 140px); }
.ab-ty .ab-aa { font-family: "Instrument Sans", Helvetica, sans-serif; font-size: clamp(110px, 17vw, 270px); line-height: .85; letter-spacing: -.06em; } .ab-ty small { display: block; margin-top: 22px; max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--soft, #555); }
/* the app */
.ab-live { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: var(--g); align-items: center; padding: clamp(70px, 9vw, 140px) var(--g); border-top: 1px solid var(--rule, rgb(0 0 0 / .1)); } .ab-live iframe { width: 440px; height: 930px; border: 0; background: none; } .ab-live .nx-btn { margin-top: 26px; }
.ab-scrs { display: flex; gap: 16px; overflow-x: auto; padding: 0 var(--g) 30px; scroll-snap-type: x proximity; scroll-padding: var(--g); } .ab-scrs figure { flex: 0 0 250px; scroll-snap-align: start; }
.ab .ab-scrs img { aspect-ratio: 393 / 852; border-radius: 34px; width: calc(100% - 12px); margin: 6px; box-shadow: 0 0 0 6px var(--ab-in); }
@media (max-width: 899px) {
  .ab-live, .ab-ai, .ab-ty, .ab-two.ab-w12 { grid-template-columns: 1fr; } .ab-live iframe { display: none; }
  .ab-two { grid-template-columns: 1fr; } .ab-gr { grid-template-columns: 1fr 1fr; } .ab-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .ab-sws { grid-template-columns: 1fr 1fr; } .ab-sw:first-child { grid-column: 1 / -1; } .ab-sw { min-height: 180px; } .ab-k { grid-template-columns: 1fr; } .ab-k > div { padding: 28px 24px 14px !important; }
  .ab-hero { height: 74vh; } .ab-build span { left: 10px; bottom: 10px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .ab-hold * { transition: none !important; } }
