/* portfolio.css — the one stylesheet for the portfolio page (site/index.html).
   Tokens and type match the demo chrome (site/demos/demo.css) so the two read
   as one site; the demo cards themselves take their styles from demo.css. */

:root {
  --char: #35373b; --char2: #2b2d30;
  --paper: #fbf9f5; --paper2: #ffffff; --mint: #e9f3ef; --sand: #fdf3e3;
  --ink: #21262c; --dim: #59616c; --faint: #6b7280;
  --line: rgba(33, 38, 44, .11); --line2: rgba(33, 38, 44, .2);
  --teal: #2f8b7c; --violet: #7b6a9e; --sky: #4f9cba; --olive: #93ad4e; --crim: #cb2c4d; --gold: #f0c33c;
  --tealSoft: #e4f1ed; --violetSoft: #efecf5; --skySoft: #e7f1f6; --oliveSoft: #f1f4e4; --crimSoft: #fbe8ec;
  --secY: clamp(4.5rem, 9vw, 7.5rem);
  --shell: 1160px;
  --display: Poppins, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: Karla, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --accent: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.25rem; }
/* Smooth scrolling is switched on by the script once the page has loaded: an
   animated jump to a #fragment during load can be interrupted by late layout
   (web fonts swapping in) and land short or long of the target. */
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17.5px; line-height: 1.72;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  padding: .6rem 1rem; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.skip:focus { top: 1rem; }
.accent { font-family: var(--accent); font-style: italic; font-weight: 400; color: var(--gold); }
.section--white .accent, .section--paper .accent, .section--mint .accent, .section--sand .accent { color: var(--teal); }

/* ---------- header + nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px 0; border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, padding .35s ease;
}
.site-header.is-scrolled { background: rgba(53, 55, 59, .92); border-color: rgba(255, 255, 255, .08); padding: 10px 0; backdrop-filter: blur(8px); }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand:hover { color: #fff; }
.brand__mark {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold);
  font-family: var(--display); font-weight: 600; font-size: 13px;
}
.brand__name { font-size: 12px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.nav { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(.4rem, 1.1vw, 1rem); }
.nav a {
  position: relative; padding: 6px 0; white-space: nowrap; color: rgba(255, 255, 255, .82);
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: color .25s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn {
  display: none; align-items: center; gap: 10px; color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  min-height: 44px; padding: 0 4px;
}
.menu-btn span[aria-hidden] { width: 22px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
/* The mobile menu: all ten pages, each with the line that says what it holds.
   Ten rows plus their hints is taller than a small phone, so the panel scrolls
   rather than clipping the last item — Contact must always be reachable. */
.menu {
  position: fixed; inset: 0; z-index: 105;
  background: var(--char); color: #fff; visibility: hidden; opacity: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: max(4.5rem, calc(env(safe-area-inset-top) + 4rem)) clamp(1.25rem, 6vw, 3rem) max(2rem, env(safe-area-inset-bottom));
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .35s ease; }
.menu ul { width: 100%; max-width: 30rem; margin: 0 auto; display: grid; gap: 2px; }
.menu a {
  display: grid; gap: 1px; padding: 10px 14px; border-radius: 14px; color: #fff;
  border: 1px solid transparent; transition: background-color .2s ease, border-color .2s ease;
}
.menu__name { font-family: var(--display); font-size: clamp(1.25rem, 5.5vw, 1.7rem); font-weight: 600; line-height: 1.15; }
.menu__hint { font-size: .82rem; line-height: 1.35; color: rgba(255, 255, 255, .58); }
.menu a:hover { background: rgba(255, 255, 255, .06); }
.menu a:hover .menu__name { color: var(--gold); }
.menu a[aria-current="page"] { background: rgba(240, 195, 60, .12); border-color: rgba(240, 195, 60, .38); }
.menu a[aria-current="page"] .menu__name { color: var(--gold); }
.menu a[aria-current="page"] .menu__hint { color: rgba(255, 255, 255, .72); }
.menu__close { position: fixed; top: max(18px, env(safe-area-inset-top)); right: clamp(1.25rem, 5vw, 3rem); z-index: 2; color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; min-height: 44px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--char); color: #fff; padding: clamp(7.5rem, 15vh, 10rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.hero__blob { position: absolute; aspect-ratio: 1; pointer-events: none; }
.hero__blob--a { top: 6%; left: -7%; width: min(32vw, 330px); background: rgba(123, 106, 158, .28); border-radius: 52% 48% 38% 62% / 48% 56% 44% 52%; animation: floatA 24s ease-in-out infinite; }
.hero__blob--b { bottom: 18%; right: -8%; width: min(28vw, 290px); background: rgba(79, 156, 186, .24); border-radius: 44% 56% 60% 40% / 56% 42% 58% 44%; animation: floatB 28s ease-in-out infinite; }
.hero__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 22px; }
/* The portrait. A round medallion above the name — the photo is a full-length
   portrait, so the circle is cropped by object-position rather than by cutting
   the file, which keeps the eyes on the same line at every size. */
.hero__portrait {
  width: clamp(104px, 27vw, 148px); aspect-ratio: 1; margin: 0; border-radius: 50%;
  overflow: hidden; background: var(--paper2);
  border: 2px solid rgba(240, 195, 60, .5);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .34);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.pill {
  display: inline-block; padding: 9px 20px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.hero__title { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 4.6rem); line-height: 1.05; letter-spacing: -.02em; }
.hero__lede { max-width: 46ch; font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 4px; }
.hero .softIn { animation: softIn .9s var(--ease) both; }
.hero .softIn:nth-child(2) { animation-delay: .08s; }
.hero .softIn:nth-child(3) { animation-delay: .16s; }
.hero .softIn:nth-child(4) { animation-delay: .24s; }
.hero .softIn:nth-child(5) { animation-delay: .32s; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 24px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .3s var(--ease), border-color .25s ease, color .25s ease, background-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { color: var(--ink); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, .32); color: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--ink { border: 1.5px solid var(--line2); color: var(--dim); }
.btn--ink:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- the homepage's index of the site ---------- */
/* The same nine pages as the nav, laid out. Nothing but names, hints and links
   lives here — the facts they used to sit beside now live on the pages that
   own them. */
.wayin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wayin__link {
  display: grid; gap: 3px; align-content: start; height: 100%;
  padding: 16px 18px; border-radius: 16px; background: var(--paper2);
  border: 1px solid var(--line); border-top: 4px solid var(--teal); color: var(--ink);
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}
.wayin li:nth-child(3n + 2) .wayin__link { border-top-color: var(--sky); }
.wayin li:nth-child(3n) .wayin__link { border-top-color: var(--violet); }
.wayin li:nth-child(7) .wayin__link { border-top-color: var(--olive); }
.wayin li:nth-child(8) .wayin__link { border-top-color: var(--crim); }
.wayin__link:hover { transform: translateY(-2px); border-color: var(--line2); box-shadow: 0 10px 24px rgba(33, 38, 44, .07); color: var(--ink); }
.wayin__link:hover .wayin__name { color: var(--teal); }
.wayin__name { font-family: var(--display); font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.wayin__hint { font-size: .92rem; line-height: 1.45; color: var(--dim); }

/* ---------- the scannable facts row ---------- */
/* What a recruiter checks in the first ten seconds, on the page that owns it:
   experience on Journey, safeguarding and paper on Qualifications. */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 clamp(2rem, 4vw, 2.8rem); }
.facts--3 { grid-template-columns: repeat(3, 1fr); }
.facts__item { background: var(--paper2); color: var(--ink); border-radius: 16px; padding: 16px 18px; border: 1px solid var(--line); border-top: 4px solid var(--teal); display: grid; gap: 5px; align-content: start; }
.facts__item:nth-child(2) { border-top-color: var(--sky); }
.facts__item:nth-child(3) { border-top-color: var(--violet); }
.facts__item:nth-child(4) { border-top-color: var(--olive); }
.facts__label { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.facts__value { font-size: .95rem; line-height: 1.5; }

/* ---------- the four framework names, said once ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: clamp(1.6rem, 3.5vw, 2.2rem) 0 0; }
.chips li {
  padding: 8px 16px; border-radius: 999px; background: var(--paper2);
  border: 1px solid var(--line); font-family: var(--display); font-size: .92rem; font-weight: 600;
}
.chips li:nth-child(1) { border-color: rgba(47, 139, 124, .45); background: var(--tealSoft); }
.chips li:nth-child(2) { border-color: rgba(79, 156, 186, .45); background: var(--skySoft); }
.chips li:nth-child(3) { border-color: rgba(123, 106, 158, .45); background: var(--violetSoft); }
.chips li:nth-child(4) { border-color: rgba(147, 173, 78, .5); background: var(--oliveSoft); }

/* ---------- sections ---------- */
.section { position: relative; padding: var(--secY) 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--paper2); }
.section--mint { background: var(--mint); }
.section--sand { background: var(--sand); }
.section__head { max-width: 34ch; margin: 0 auto 40px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.section__head--left { margin-left: 0; text-align: left; justify-items: start; }
.section__head--wide { max-width: 52ch; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.12; letter-spacing: -.015em; }
.prose { max-width: 64ch; margin: 0 auto; display: grid; gap: 20px; font-size: 1.12rem; line-height: 1.7; }
.prose--wide { max-width: 72ch; }
.lede { max-width: 56ch; margin: 0 auto; text-align: center; color: var(--dim); font-size: 1rem; line-height: 1.65; }
.note { color: var(--dim); font-size: .98rem; }

.grid { display: grid; gap: 14px; }
.grid--after { margin-top: 40px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.tile {
  display: grid; align-content: start; gap: 10px;
  padding: clamp(1.3rem, 2.2vw, 1.7rem); border-radius: 20px;
  border: 1px solid var(--line); background: var(--paper2);
  transition: transform .45s var(--ease), border-color .3s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line2); }
.tile h2, .tile h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.tile p { font-size: .96rem; line-height: 1.6; color: var(--dim); }
.tile__num { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.tile--teal { border-top: 4px solid var(--teal); }
.tile--sky { border-top: 4px solid var(--sky); }
.tile--violet { border-top: 4px solid var(--violet); }
.tile--olive { border-top: 4px solid var(--olive); }
.tile--crim { border-top: 4px solid var(--crim); }
.tile--gold { border-top: 4px solid var(--gold); }

/* the three lines — bigger type, quieter cards */
.creed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.creed__item { padding: clamp(1.4rem, 2.4vw, 2rem); border-radius: 20px; background: var(--paper2); border: 1px solid var(--line); }
.creed__item h2, .creed__item h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 600; line-height: 1.25; margin-bottom: 8px; }
.creed__item p { font-size: 1rem; line-height: 1.6; color: var(--dim); }

/* ---------- page head ----------
   Every page except the homepage opens with this: a compact dark band with the
   page's title. It is also what keeps the fixed header legible — the header is
   white text over whatever is at the top of the page, so the top of every page
   is dark on purpose. */
.page-head {
  position: relative; overflow: hidden;
  background: var(--char); color: #fff;
  padding: clamp(7.5rem, 15vh, 9.5rem) 0 clamp(2.6rem, 5vw, 4rem);
}
.page-head--tall { padding-bottom: clamp(5rem, 12vh, 8rem); }
.page-head .shell { position: relative; z-index: 2; max-width: 820px; display: grid; justify-items: center; gap: 16px; text-align: center; }
.page-head .eyebrow { color: var(--gold); }
.page-head__title { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.018em; }
.page-head__lede { max-width: 58ch; font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.62; color: rgba(255, 255, 255, .78); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.page-head .accent { color: var(--gold); }
/* The head already carries the page's title, so the first section under it
   doesn't need a full section's worth of air above its content. */
.page-head + .section { padding-top: clamp(2.8rem, 5.5vw, 4.5rem); }
.prose--after { margin-top: clamp(2rem, 4vw, 2.8rem); }
.prose-cta { margin-top: clamp(2rem, 4vw, 2.6rem); text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- previous / next ----------
   The site reads perfectly well in nav order, so every page offers the next
   one rather than making the visitor go back up to the header. */
.pager {
  max-width: var(--shell); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(3rem, 6vw, 4.5rem);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  background: var(--paper);
}
.pager__link {
  display: grid; gap: 2px; min-width: 180px; padding: 14px 20px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--paper2);
  transition: transform .3s var(--ease), border-color .25s ease;
}
.pager__link:hover { transform: translateY(-2px); border-color: var(--line2); }
.pager__link--next { text-align: right; margin-left: auto; }
.pager__link--empty { border: 0; background: none; padding: 0; min-width: 0; }
.pager__dir { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.pager__name { font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--ink); }

/* the journey ledger — one row per stretch of the eighteen years */
.ledger { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; counter-reset: none; }
.ledger__item {
  display: grid; gap: 6px 26px; padding: 20px clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 18px; background: var(--paper2);
}
.ledger__item:nth-child(2) { border-left-color: var(--sky); }
.ledger__item:nth-child(3) { border-left-color: var(--violet); }
.ledger__item:nth-child(4) { border-left-color: var(--gold); }
.ledger__item:nth-child(5) { border-left-color: var(--olive); }
.ledger__when { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); padding-top: 4px; }
.ledger__item:nth-child(2) .ledger__when { color: var(--sky); }
.ledger__item:nth-child(3) .ledger__when { color: var(--violet); }
.ledger__item:nth-child(4) .ledger__when { color: #a9821a; }
.ledger__item:nth-child(5) .ledger__when { color: #6f8535; }
.ledger__body { display: grid; gap: 10px; }
.ledger__body h2, .ledger__body h3, .ledger__body h4 { font-family: var(--display); font-size: 1.14rem; font-weight: 600; line-height: 1.3; }
.ledger__body p { font-size: .99rem; line-height: 1.65; color: var(--dim); }
.ledger__tie { padding-top: 10px; border-top: 1px dashed var(--line2); font-size: .93rem !important; }
.ledger__tie strong { color: var(--ink); font-weight: 700; }

/* qualifications */
.quals { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.qual { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; padding: 16px 20px; border-radius: 16px; background: var(--paper2); border: 1px solid var(--line); }
.qual h2, .qual h3 { font-family: var(--display); font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.qual p { grid-column: 1 / -1; font-size: .94rem; line-height: 1.55; color: var(--dim); }
.qual__status { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
.quals__also { max-width: 760px; margin: 18px auto 0; font-size: .94rem; color: var(--dim); line-height: 1.6; text-align: center; }

/* demos */
.demos__toggle-row { display: none; margin-top: 26px; text-align: center; }
.js .demos__toggle-row { display: block; }
.demos__toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  border: 1.5px solid var(--line); border-radius: 999px; background: transparent;
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--char);
  cursor: pointer; transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.demos__toggle:hover { transform: translateY(-2px); border-color: var(--char); }
.demos__toggle:focus-visible { outline: 2px solid var(--char); outline-offset: 3px; }
.demos__toggle svg { transition: transform .25s var(--ease); }
.demos__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.demos__extra { margin-top: 14px; }
.js .demos__extra { display: none; }
.js .demos__extra.is-open { display: block; }
.demos__more { margin-top: 24px; text-align: center; font-size: .9rem; color: var(--faint); }
.demos__more a { display: inline-block; padding: 6px 4px; }

/* ---------- contact + footer ---------- */
.contact { position: relative; background: var(--char); color: #fff; padding: clamp(5rem, 10vw, 8rem) 0; overflow: hidden; }
.contact .hero__blob--c { top: -12%; right: -6%; width: min(30vw, 300px); background: rgba(240, 195, 60, .16); border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%; animation: floatB 30s ease-in-out infinite; }
.contact__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 22px; }
.contact .eyebrow { color: var(--gold); }
.contact .h2 { color: #fff; font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.1; }
.contact p { max-width: 50ch; color: rgba(255, 255, 255, .76); }
.contact__email {
  font-weight: 500; font-size: clamp(1.15rem, 3.2vw, 1.9rem); color: #fff; word-break: break-word;
  border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 3px; transition: color .25s ease, border-color .25s ease;
}
.contact__email:hover { color: var(--gold); border-color: var(--gold); }
.contact__qr { display: grid; justify-items: center; gap: 12px; margin-top: 6px; }
.contact__qr img { width: clamp(150px, 42vw, 190px); height: auto; aspect-ratio: 1; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .34); }
.contact__qr span { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.contact__note { font-size: .95rem; color: rgba(255, 255, 255, .62) !important; }
.site-footer { background: var(--char2); color: rgba(255, 255, 255, .55); padding: 28px 0; font-size: .86rem; }
.site-footer .shell { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.site-footer a { display: inline-block; padding: 6px 0; color: rgba(255, 255, 255, .55); }
.site-footer a:hover { color: var(--gold); }

/* ---------- motion ---------- */
@keyframes floatA { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(2%, -3%, 0) rotate(6deg); } }
@keyframes floatB { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-3%, 2%, 0) scale(1.06); } }
@keyframes softIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
/* Ten items is a wide nav; "Qualifications" alone is fourteen characters. The
   widest the full row measures is about 990px next to the brand, and the shell
   gives it 1064px from 1280px up — below that it becomes the menu button
   rather than wrapping onto a second line or squeezing the brand. */
@media (max-width: 1279px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 900px) {
  .facts, .wayin { grid-template-columns: repeat(2, 1fr); }
  .grid--4, .grid--3, .creed { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .ledger__item { grid-template-columns: 11rem 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .facts, .facts--3, .wayin, .grid--4, .grid--3, .grid--2, .creed { grid-template-columns: 1fr; }
  .qual { grid-template-columns: 1fr; }
  .qual__status { justify-self: start; }
  .hero { padding-top: clamp(6.5rem, 18vh, 8rem); }
  .site-footer .shell { justify-content: center; text-align: center; }
}
@supports (padding: env(safe-area-inset-left)) {
  .shell { padding-left: max(clamp(1.25rem, 5vw, 3rem), env(safe-area-inset-left)); padding-right: max(clamp(1.25rem, 5vw, 3rem), env(safe-area-inset-right)); }
}
@media print {
  .site-header, .menu, .menu-btn, .hero__blob, .skip, .hero__actions, .demos__toggle-row, .pager { display: none !important; }
  .js .demos__extra { display: block !important; }
  .hero, .page-head, .contact, .site-footer { background: #fff !important; color: #000 !important; }
  .page-head__lede, .contact p { color: #000 !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  a { color: inherit; }
}
