/* Ascension Labs — landing page
   Self-hosted Inter (variable). No third-party requests except the
   OpenStreetMap iframe, which keeps the CSP strict and avoids shipping
   visitor IPs to a font CDN. */

@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --muted-dark: #86868B;
  --line: #D2D2D7;
  --wash: #F5F5F7;
  --slot: #E8E8ED;
  --coral: #FF5252;
  --coral-deep: #C43333;
  --coral-wash: #FFF1F1;
  --wrap: 1120px;
  --ease: cubic-bezier(.22, .8, .22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter var', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
section { scroll-margin-top: 76px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.rule { height: 1px; background: var(--line); }
.rule.spaced { margin: clamp(28px, 3.5vw, 40px) 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { height: 22px; width: auto; }
.brand span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  color: var(--muted);
}
.nav-links a { color: var(--muted); }

/* ---------- hero ---------- */

.hero > .wrap:first-child {
  padding-top: clamp(88px, 15vw, 190px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero-title {
  font-size: clamp(40px, 8.4vw, 104px);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 600;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
  animation: rise 1.15s var(--ease) both;
}
.hero-sub {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
  margin: clamp(28px, 4vw, 44px) 0 0;
  animation: rise 1s .28s var(--ease) both;
}
.hero .rule { animation: rise 1.2s .5s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- facts ---------- */

.facts { background: var(--wash); }
.facts-grid {
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(52px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 0;
}
.facts-grid > * { padding: 0 24px; border-left: 1px solid var(--line); }
.facts-grid > *:first-child { padding-left: 0; padding-right: 24px; border-left: 0; }
.fact {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -.028em;
  margin-top: 14px;
}

/* ---------- generic band ---------- */

.band > .wrap {
  padding-top: clamp(72px, 11vw, 150px);
  padding-bottom: clamp(72px, 11vw, 150px);
}
.band-wash { background: var(--wash); }
.lede { max-width: 52ch; }
.lede h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -.028em;
  font-weight: 600;
  margin: 20px 0 0;
}

/* ---------- product card ---------- */

.card {
  margin-top: clamp(40px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 72px);
  background: #fff;
}
.card-id { flex: 0 0 auto; min-width: 0; }
.card-mark { width: 44px; height: auto; margin-bottom: 20px; }
.card-name {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}
.coral { color: var(--coral); }
.card-tag { font-size: 15px; color: var(--muted); margin-top: 10px; }
.card-body { flex: 1 1 0; min-width: 0; max-width: 56ch; }
.card-body p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 26px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-wash);
  color: var(--coral-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); display: inline-block; }
.cta {
  font-size: 15px;
  font-weight: 500;
  color: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cta-ink { color: var(--ink); }
.more { font-size: 15px; color: var(--muted); margin: 28px 0 0; }

/* ---------- dark statement ---------- */

.statement { background: var(--ink); color: #fff; }
.statement > .wrap {
  padding-top: clamp(96px, 16vw, 220px);
  padding-bottom: clamp(96px, 16vw, 220px);
  text-align: center;
}
.statement-mark { height: 44px; width: auto; margin: 0 auto clamp(32px, 4vw, 48px); }
.statement-line {
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: -.032em;
  font-weight: 600;
  margin: 0 auto;
  max-width: 20ch;
  text-wrap: balance;
}
.statement-sub {
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.6;
  color: var(--muted-dark);
  margin: clamp(24px, 3vw, 36px) auto 0;
  max-width: 56ch;
}

/* ---------- leadership ---------- */

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  margin-top: clamp(44px, 6vw, 80px);
}

/* Solo founder: portrait beside the bio rather than above it. The portrait
   column is deliberately narrower than half so the text has room to breathe
   — a 4:5 portrait at 50% width on a 1120px wrap is comically large. */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  margin-top: clamp(44px, 6vw, 80px);
  align-items: start;
}
.portrait {
  width: 100%;
  /* Small square, not the design's full-width 4:5. At half the 1120px wrap
     a 4:5 portrait stands ~745px tall and swamps the section; shrinking 4:5
     instead just makes a narrow vertical strip. A square at thumbnail size
     is the shape that survives being small, and the tighter headshot crop
     it needs reads as deliberate rather than cropped-in.
     See also `height: auto` on img.portrait below — without it none of
     this applies. */
  max-width: 200px;
  aspect-ratio: 1 / 1;
  background: var(--slot);
  border-radius: 4px;
  overflow: hidden;
  filter: grayscale(1);
  display: grid;
  place-items: center;
}
.portrait img { height: 40px; width: auto; opacity: .18; }
/* height:auto is load-bearing, not tidying. The width/height ATTRIBUTES on
   the <img> (kept for CLS) are presentational hints that set CSS width and
   height. `.portrait` overrides width but not height, so without this the
   element is 200px wide and 600px tall — and `aspect-ratio` is ignored
   entirely, because it only applies when one dimension is auto. object-fit
   then crops a square photo into a tall slot, which looks like a bad crop
   rather than a CSS bug. */
img.portrait { display: block; place-items: initial; object-fit: cover; height: auto; }
.people h3, .founder h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 28px 0 0;
}
/* The bio column starts at the top of the portrait, so no leading offset. */
.founder h3 { margin-top: 0; }
.role { margin-top: 12px; }
.people p, .founder p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  margin: 22px 0 0;
  max-width: 52ch;
}
.people p + p, .founder p + p { margin-top: 18px; }

/* ---------- contact ---------- */

.contact-h {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -.033em;
  font-weight: 600;
  margin: 0;
}
.contact-grid {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.contact-meta {
  padding: clamp(32px, 4vw, 48px) clamp(32px, 4vw, 56px) clamp(32px, 4vw, 48px) 0;
}
.email {
  display: inline-block;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 600;
  letter-spacing: -.03em;
  margin-top: 14px;
}
.address {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  margin: 14px 0 0;
  max-width: 34ch;
}
.contact-meta .cta { margin-top: 18px; }
.details { display: flex; flex-wrap: wrap; gap: 22px 48px; margin-top: 16px; }
.details-k { font-size: 13px; color: var(--muted); }
.details-v { font-size: 16px; font-weight: 500; letter-spacing: -.01em; margin-top: 5px; }

.contact-map {
  border-left: 1px solid var(--line);
  padding: clamp(32px, 4vw, 48px) 0 clamp(32px, 4vw, 48px) clamp(32px, 4vw, 56px);
}
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
/* The map is muted to sit inside the monochrome palette; the pin is a sibling
   rather than part of the image, so it keeps full contrast. */
.map-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.45) contrast(1.02);
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  /* bottom tip of the pin sits on the centre point, not its middle */
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .28));
  pointer-events: none;
}
.map-note { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 14px 0 0; }
.map-note a { color: var(--muted); text-decoration: underline; }

/* ---------- legal pages ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) 24px clamp(72px, 10vw, 140px); }
.legal h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 20px 0 0;
}
.legal .updated { font-size: 15px; color: var(--muted); margin: 20px 0 0; }
.legal .rule { margin: clamp(36px, 5vw, 56px) 0; }
.legal h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 44px 0 0; }
.legal p, .legal li { font-size: 18px; line-height: 1.65; color: var(--muted); }
.legal p { margin: 14px 0 0; }
.legal .intro { margin: 0; }
.legal ul { margin: 14px 0 0; padding-left: 22px; }
.legal li { margin-top: 6px; }
.legal a { color: var(--ink); font-weight: 500; text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 600; }
.nav-back { font-size: 13px; color: var(--muted); white-space: nowrap; flex: none; }

/* ---------- footer ---------- */

.site-foot { background: var(--wash); border-top: 1px solid var(--line); }
.foot-row {
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(36px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.foot-mark { height: 20px; width: auto; opacity: .55; }
.foot-row p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
  flex: 1 1 320px;
}
.foot-row a { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- scroll reveal ----------
   Scoped to .js (set by assets/reveal.js) so that with JS off nothing
   is ever left hidden. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .people, .contact-grid, .founder { grid-template-columns: 1fr; }
  /* stacked: cap the portrait so it doesn't become a full-width slab */
  .founder > *:first-child { max-width: 320px; }
  .nav-links { gap: 22px; font-size: 12px; }
  .card { flex-direction: column; align-items: flex-start; }
  .contact-map {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
  .contact-meta { padding-right: 0; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
}

/* Four columns of 24px+ text stop fitting well before the 560px the design
   used — `1fr` is minmax(auto,1fr), so the longer labels ("England & Wales")
   push past their share and the columns go visibly unequal. Drop to 2x2 at the
   same 820px where the leadership and contact grids collapse. */
@media (max-width: 820px) {
  .facts-grid { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .facts-grid > * { border-left: 0; padding-left: 0; }
  .facts-grid > *:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Anything that never scrolled into view is still at opacity 0, which would
   print blank. Contact pages do get printed. */
@media print {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  * { animation: none !important; transition: none !important; }
  .site-head { position: static; background: none; backdrop-filter: none; }
  .skip { display: none; }
  a { text-decoration: underline; }
}
