/* ==========================================================================
   KYND Advisory — base: tokens, fonts, reset, type
   Brand idea: the KYND symbol is a person. A circle (the head) and slanted
   slabs (the body). We reuse exactly two devices from it:
     1. the circle  -> "the dot": full stops, list markers, pager, transitions
     2. the slant   -> ~17.6deg lean on image crops, buttons and dividers
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* colour */
  --lime: #dfff36;
  --paper: #faf9f6;
  --ink: #191919;
  --stone: #e9e9e4;
  --navy: #000129;       /* brand deep navy */
  --navy-lift: #0b1366;  /* a step lighter, for shapes on navy */
  --muted: #55554f;          /* 7.0:1 on paper */
  --rule: rgba(25, 25, 25, 0.22);
  --rule-light: rgba(250, 249, 246, 0.28);

  /* type */
  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* layout */
  --gutter: clamp(20px, 3.4vw, 56px);
  --header-h: 76px;
  --lean: 17.6deg;            /* angle of the slab edges in the logo */
  --slant: 0.3165;            /* tan(lean): horizontal offset per unit height */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1875rem);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

/* focus — always visible, two-tone so it works on every colour block */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--paper);
}
.on-navy :focus-visible, .on-ink :focus-visible {
  outline-color: var(--lime);
  box-shadow: 0 0 0 6px var(--ink);
}
.on-lime :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 6px var(--lime); }

::selection { background: var(--ink); color: var(--lime); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: var(--lime); padding: 12px 18px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
/* Display: condensed, heavy, tight. Used big, and as the main graphic element. */
.display {
  font-family: var(--sans);
  font-weight: 720;
  font-stretch: 75%;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.006em;
  line-height: 0.86;
  text-wrap: balance;
}
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif em { font-style: italic; }

.eyebrow {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: inherit;
}

.lede { font-size: clamp(1.1875rem, 1rem + 0.9vw, 1.75rem); line-height: 1.3; letter-spacing: -0.012em; max-width: 34ch; }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }

/* line-mask reveal helper: each line is wrapped .l > span */
.l { display: block; overflow: hidden; padding: 0.14em 0.05em 0.2em; margin: -0.14em -0.05em -0.2em; }
.l > span { display: block; will-change: transform; }

/* the dot — the head of the KYND figure used as a full stop / marker */
.dot {
  display: inline-block;
  width: 0.2em; height: 0.2em;
  border-radius: 50%;
  background: var(--navy);
  margin-left: 0.04em;
  vertical-align: baseline;
  flex: none;
}
.on-navy .dot { background: var(--lime); }
.on-ink .dot { background: var(--lime); }
.on-lime .dot { background: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* lines that mask-reveal are stacked in a flex column so their negative margins do not collapse */
.intro-title, [data-lines] { display: flex; flex-direction: column; align-items: flex-start; }
