/* IMA base (builder F): reset, type roles, layout, the header, the footer, reveal motion. Tokens: tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 var(--step-0)/1.5 var(--font); -webkit-font-smoothing: antialiased; font-synthesis: none; overflow-x: clip; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s-1); top: -80px; z-index: 100; background: var(--black); color: var(--on-dark); padding: 12px 18px; border-radius: var(--r-tiny); font-weight: 700; transition: top .2s; }
.skip:focus { top: var(--s-1); }

/* a focus ring of our own: a 3px ink ring held off the element by a paper gap; white on dark grounds. Korowa has none. */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--paper); border-radius: var(--r-tiny); }
.band--black :focus-visible, .foot :focus-visible, .head.is-over :focus-visible, .hero :focus-visible, .phero :focus-visible, .nav :focus-visible { outline-color: var(--on-dark); box-shadow: 0 0 0 3px var(--black); }

/* type roles (DNA.md 2): headings 600, lh 1.2 (never below 1.1), balanced; the italic accent word is Barlow Italic 500 */
.d1, .d2, .d3, .d4, h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; color: var(--ink); line-height: 1.2; text-wrap: balance; letter-spacing: 0; }
.d1 { font-size: var(--step-7); line-height: 1.1; }
.d2 { font-size: var(--step-6); }
.d3 { font-size: var(--step-4); }
.d4 { font-size: var(--step-3); line-height: 1.25; }
h3 { font-size: var(--step-4); }
h4 { font-size: var(--step-3); line-height: 1.3; }
.d1 em, .d2 em, .d3 em, .d4 em, h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--em); }
p { text-wrap: pretty; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--body); }
.small { font-size: var(--step--1); line-height: 1.6; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: var(--step--1); line-height: 1.6; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.mk { flex: none; width: 10px; height: 10px; background: var(--orange); border-radius: 1px; }
.eyebrow--on-dark { color: var(--on-dark); }
.prose > * + * { margin-top: var(--s-1); }
.prose h2, .prose h3 { margin-top: var(--s-3); }
a.link, .prose a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
a.link:hover, .prose a:hover { color: var(--ink); }

/* layout: the container, the gutters, the section bands (Korowa: padding small / medium / large, ground and linen alternate) */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.inner { width: 100%; }
.band { padding-block: var(--pad-m); background: var(--paper); color: var(--body); }
.band--s { padding-block: var(--pad-s); }
.band--l { padding-block: var(--pad-l); }
.band--ground { background: var(--paper); }
.band--linen { background: var(--linen); }
.band--tint { background: var(--tint); }
.band--black { background: var(--black); color: var(--on-dark); --em: var(--orange); }
.band--black .d1, .band--black .d2, .band--black .d3, .band--black .d4, .band--black h2, .band--black h3 { color: var(--on-dark); }
.band--black .lead { color: var(--on-dark-2); }
.narrow { max-width: var(--container-s); margin-inline: auto; }
.center { text-align: center; }
.grid { display: grid; gap: var(--s-2); grid-template-columns: repeat(12, 1fr); }
@media (max-width: 990px) { .grid { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 766px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.shell:not(:has(> [data-head-over])) { padding-top: var(--head-h); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ------------------------------------------------------------- the header (DNA.md 6) */
.head { position: fixed; z-index: 60; inset: 0 0 auto 0; height: var(--head-h); color: var(--on-dark); background: transparent; transition: transform .35s var(--ease-out), background-color .4s ease, color .4s ease; }
.head__grad { position: absolute; inset: 0 0 auto 0; height: 120px; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0)); opacity: 1; transition: opacity .4s ease; }
.head.is-fill { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--rule-soft); }
.head.is-fill .head__grad { opacity: 0; }
.head.is-hidden { transform: translateY(-100%); }
.head__bar { position: relative; display: flex; align-items: stretch; height: 100%; width: 100%; max-width: var(--container); margin-inline: auto; padding-left: var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; align-self: center; color: inherit; text-decoration: none; margin-right: var(--s-3); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__w { font-size: var(--step-1); font-weight: 600; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.head__right { display: flex; align-items: stretch; margin-left: auto; }
@media (max-width: 766px) { .brand { margin-right: 0; gap: 8px; min-width: 0; } .brand__w { font-size: var(--step-0); } .brand__mark { width: 34px; height: 34px; } }
.head__tel { display: none; align-items: center; gap: 8px; padding-inline: var(--s-15); text-decoration: none; font-weight: 600; font-size: var(--step-0); white-space: nowrap; }
.head .head__cta { display: none; height: 100%; align-items: center; border-radius: 0 0 0 var(--s-2); padding-inline: var(--s-2); }
.head--landing .head__tel { display: inline-flex; padding-right: var(--gutter); }
.nav__list { display: none; }
.nav__link { display: inline-flex; align-items: center; height: var(--head-h); padding-inline: var(--s-1); font-weight: 600; font-size: var(--step-0); text-decoration: none; color: inherit; position: relative; }
.nav__link::after { content: ""; position: absolute; left: var(--s-1); right: var(--s-1); bottom: calc(var(--head-h) * .22); height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-ui); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.burger { display: inline-flex; align-items: center; justify-content: center; width: 114px; height: 100%; border: 0; border-radius: 0; background: var(--black); color: var(--on-dark); font-weight: 700; font-size: var(--step-0); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.head--landing .burger { display: none; }
/* the phone sheet: a full-screen panel from the left, fully visible when open */
.nav { position: fixed; inset: 0; z-index: -1; background: var(--black); color: var(--on-dark); transform: translateX(-100%); visibility: hidden; transition: transform .35s var(--ease-out), visibility 0s .35s; overflow-y: auto; padding: calc(var(--head-h) + var(--s-2)) var(--gutter) var(--s-3); }
.head.is-open { background: var(--black); color: var(--on-dark); }
.head.is-open .head__grad { opacity: 0; }
.head.is-open .nav { transform: none; visibility: visible; transition: transform .35s var(--ease-out), visibility 0s; }
.nav__sheetl { display: grid; }
.nav__sheetl a { display: block; padding: 7px 0; font-size: var(--step-1); line-height: 1.5; font-weight: 600; text-decoration: none; }
.nav__sheetl li:nth-child(n+2):nth-child(-n+5) a { padding-left: var(--s-1); font-weight: 400; color: var(--on-dark-2); }
.nav__sheetl a[aria-current="page"] { color: var(--orange); }
.nav__extra { margin-top: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--rule-dark); display: grid; gap: var(--s-1); justify-items: start; }
.nav__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: var(--step-1); }
.nav__cta { width: 100%; justify-content: center; }
.nav__small { color: var(--on-dark-2); font-size: var(--step--1); }
@media (min-width: 1100px) {
  .burger, .nav__sheet { display: none; }
  .nav { position: static; z-index: auto; transform: none; visibility: visible; background: transparent; color: inherit; padding: 0; overflow: visible; }
  .nav__list { display: flex; align-items: stretch; }
  .head .head__tel, .head .head__cta { display: inline-flex; }
  .head__right { margin-left: 0; }
  .head__bar { padding-right: 0; }
  .nav { margin-left: auto; }
  .head__right { margin-left: var(--s-1); }
}

/* ------------------------------------------------------------- the footer (DNA.md 7.13, Quaker's giant wordmark) */
.foot { background: var(--black); color: var(--on-dark); padding-block: var(--s-5) var(--s-3); --em: var(--orange); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-2); }
.foot__brand { display: grid; gap: var(--s-1); max-width: 34rem; }
.foot__line { color: var(--on-dark-2); font-size: var(--step-0); }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3) var(--s-2); margin-top: var(--s-35); padding-top: var(--s-35); border-top: 1px solid var(--rule-dark); }
.foot__h { font-size: var(--step-0); font-weight: 600; line-height: 1.5; color: var(--on-dark); margin-bottom: 6px; }
.foot__list li { font-size: var(--step--1); line-height: 1.5; color: var(--on-dark-2); }
.foot__list li > span { display: block; padding-block: 10px; }
.foot__list a, .foot__list strong { color: var(--on-dark); }
.foot__list a { display: flex; align-items: center; min-height: 44px; }
.foot__list.foot__venues a { display: grid; gap: 2px; align-content: center; padding-block: 6px; }
.foot__venues strong { font-weight: 600; }
.foot__soclist { display: flex; gap: 10px; margin-top: var(--s-1); }
.foot__s { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule-dark); border-radius: 50%; color: var(--on-dark); transition: transform .3s var(--ease-ui), border-color .3s; }
.foot__s:hover { transform: scale(1.05); border-color: var(--on-dark); text-decoration: none; }
.foot__mark { margin: var(--s-5) 0 calc(var(--s-2) * -.5); font-weight: 600; font-size: 7.6vw; line-height: .9; padding-bottom: .2em; letter-spacing: -.025em; color: var(--on-dark); white-space: nowrap; overflow: hidden; user-select: none; }
body:has(.cswitch) .foot { padding-bottom: calc(var(--s-3) + 72px); }
.foot__mark span { display: inline-block; }
.foot__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); margin-top: var(--s-2); padding-top: var(--s-15); border-top: 1px solid var(--rule-dark); font-size: var(--step--1); color: var(--on-dark-2); }
.foot__legal { display: flex; gap: var(--s-2); }
.foot__bar a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-credit { margin-left: auto; }
.foot--min { padding-block: var(--s-2); }
.foot--min .foot__bar { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 990px) { .foot__cols { grid-template-columns: repeat(2, 1fr); } .foot-credit { margin-left: 0; } }

/* ------------------------------------------------------------- reveal (DNA.md 9): y 50px, 1s, power4.out; off without JS and under reduced motion */
html.js [data-rise] { opacity: 0; transform: translateY(var(--rise)); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
html.js [data-rise].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-rise] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
  .head, .nav, .btn, .nav__link::after { transition: none !important; }
}

/* planner 16 Nov: between the desktop nav (1100px) and 1300px the phone number in the bar pushed the "Book a free trial" pill
   past the right edge (seen at 1200); there the number stays in the footer, the contact page and the phone menu */
@media (min-width: 1100px) and (max-width: 1299px) { .head:not(.head--landing) .head__tel { display: none; } }
