/* KARIZ V4 — the institute layer. Loads AFTER ds-classical.css + kz-motion.css.
   Reset from V3: cool near-white ground instead of warm, ink headings instead of
   brown, display type set LIGHT and large instead of 700, gold demoted to stroke
   only (rules, numerals, kickers) and never used as a fill. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Lora:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #f6f6f4;
  --color-surface: #ffffff;
  --color-text: #12151a;
  --color-divider: color-mix(in srgb, #12151a 14%, transparent);

  --kz-ink: #0e1116;                /* cool near-black — deep sections */
  --kz-ink-2: #171b22;
  --kz-head: #12151a;               /* headings are ink, not brown */
  --kz-band: #edecea;
  --kz-gold: var(--color-accent);   /* #b68235 — stroke only */
  --kz-gold-deep: #7d5411;
  --kz-body: color-mix(in srgb, var(--color-text) 82%, transparent);
  --kz-muted: color-mix(in srgb, var(--color-text) 55%, transparent);
  --kz-rule: color-mix(in srgb, #12151a 12%, transparent);

  --shadow-sm: 0 1px 2px color-mix(in srgb, #0e1116 8%, transparent);
  --shadow-md: 0 4px 18px color-mix(in srgb, #0e1116 9%, transparent);
  --shadow-lg: 0 18px 48px color-mix(in srgb, #0e1116 14%, transparent);

  --kz-wrap: 1280px;
}

body { color: var(--kz-body); }
::selection { background: color-mix(in srgb, var(--kz-gold) 26%, transparent); }

/* ── type: the bigger it sets, the lighter it sets ───────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--kz-head);
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
h1 { font-weight: 400; letter-spacing: -0.025em; line-height: 1.03; }
h2 { font-weight: 500; line-height: 1.07; }
h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h4, h5, h6 { font-weight: 600; }
.kz-on-ink, .kz-ink-sec { color: color-mix(in srgb, #fff 76%, transparent); }
.kz-on-ink h1, .kz-on-ink h2, .kz-on-ink h3, .kz-on-ink h4,
.kz-ink-sec h1, .kz-ink-sec h2, .kz-ink-sec h3, .kz-ink-sec h4 { color: #fff; }

.kz-display { font-weight: 300; letter-spacing: -0.03em; line-height: 1.0; }
.kz-lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.72; color: var(--kz-body); }
.kz-prose { font-size: 16px; line-height: 1.85; }
.kz-num { font-variant-numeric: tabular-nums; }

/* ── kicker: no chip. A gold rule and small tracked caps. ────────── */
.kz-kick {
  display: flex; align-items: center; gap: 12px; width: fit-content;
  font-family: var(--font-body); font-weight: 600;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--kz-gold-deep); background: none; padding: 0; border-radius: 0;
}
.kz-kick::before {
  content: ''; width: 26px; height: 1px; background: var(--kz-gold); flex: none;
}
.kz-kick-plain::before { display: none; }
.kz-on-ink .kz-kick, .kz-ink-sec .kz-kick { color: var(--color-accent-300); }
.kz-on-ink .kz-kick::before, .kz-ink-sec .kz-kick::before { background: var(--color-accent-400); }

/* ── buttons: outlined, never filled ────────────────────────────── */
.kz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 14px; line-height: 1.2; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; padding: 15px 26px;
  border-radius: 2px; border: 1px solid var(--kz-ink);
  background: transparent; color: var(--kz-ink);
  transition: border-color .3s ease, color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.kz-btn:hover {
  border-color: var(--kz-gold); color: var(--kz-gold-deep);
  background: color-mix(in srgb, var(--kz-gold) 8%, transparent);
  box-shadow: var(--shadow-sm);
}
.kz-btn:active { background: color-mix(in srgb, var(--kz-gold) 16%, transparent); }
.kz-btn .kz-ar { display: inline-block; transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.kz-btn:hover .kz-ar { transform: translateX(6px); }
.kz-btn-sm { font-size: 12.5px; padding: 10px 18px; }
.kz-btn-quiet { border-color: var(--kz-rule); color: var(--kz-body); }
.kz-on-dark, .kz-ink-sec .kz-btn {
  border-color: color-mix(in srgb, #fff 40%, transparent); color: #fff; background: transparent;
}
.kz-on-dark:hover, .kz-ink-sec .kz-btn:hover {
  border-color: var(--color-accent-400); color: var(--color-accent-300);
  background: color-mix(in srgb, var(--kz-gold) 14%, transparent);
}

/* ── the index row — the site's signature element ────────────────
   A numbered, hairline-ruled list. The rule thickens and turns gold,
   the number slides, the title shifts right. No fills, no lift. */
.kz-row {
  position: relative; display: grid; align-items: start;
  grid-template-columns: 78px 1fr auto; gap: clamp(14px, 2.4vw, 40px);
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-top: 1px solid var(--kz-rule);
  text-decoration: none; color: inherit;
  transition: color .34s ease;
}
.kz-row::after {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--kz-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.kz-row:hover::after, .kz-row:focus-visible::after { transform: scaleX(1); }
.kz-row-n {
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  letter-spacing: 0.14em; font-variant-numeric: tabular-nums;
  color: var(--kz-muted); padding-top: 8px;
  transition: color .34s ease, transform .44s cubic-bezier(.2,.7,.2,1);
}
.kz-row:hover .kz-row-n { color: var(--kz-gold-deep); transform: translateX(5px); }
.kz-row-t {
  font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(22px, 2.5vw, 34px); line-height: 1.14;
  letter-spacing: -0.015em; color: var(--kz-head); margin: 0;
  transition: transform .44s cubic-bezier(.2,.7,.2,1), color .34s ease;
}
.kz-row:hover .kz-row-t { transform: translateX(7px); }
.kz-row-meta {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--kz-muted);
  padding-top: 12px; white-space: nowrap;
  transition: color .34s ease, transform .44s cubic-bezier(.2,.7,.2,1);
}
.kz-row:hover .kz-row-meta { color: var(--kz-gold-deep); transform: translateX(6px); }
.kz-row-sub { margin: 10px 0 0; font-size: 15px; line-height: 1.75; color: var(--kz-body); max-width: 62ch; }
.kz-index { border-bottom: 1px solid var(--kz-rule); }
.kz-ink-sec .kz-row { border-top-color: color-mix(in srgb, #fff 16%, transparent); }
.kz-ink-sec .kz-index { border-bottom-color: color-mix(in srgb, #fff 16%, transparent); }
.kz-ink-sec .kz-row-t { color: #fff; }
.kz-ink-sec .kz-row-n, .kz-ink-sec .kz-row-meta { color: color-mix(in srgb, #fff 55%, transparent); }
.kz-ink-sec .kz-row-sub { color: color-mix(in srgb, #fff 72%, transparent); }
.kz-ink-sec .kz-row:hover .kz-row-n,
.kz-ink-sec .kz-row:hover .kz-row-meta { color: var(--color-accent-300); }

/* ── card: bordered, unfilled, quiet. Gold hairline on hover. ───── */
.kz-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: 2px; text-align: left; color: inherit; font: inherit;
  text-decoration: none;
  transition: border-color .36s ease, box-shadow .36s ease, transform .36s cubic-bezier(.2,.7,.2,1);
}
.kz-card:hover, .kz-card:focus-within {
  border-color: color-mix(in srgb, var(--kz-gold) 62%, transparent);
  box-shadow: var(--shadow-md); transform: translateY(-3px);
}
.kz-card-title { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.012em; color: var(--kz-head); }
.kz-card-text { color: var(--kz-body); }
.kz-figure { overflow: hidden; position: relative; background: var(--kz-band); }
.kz-figure > * { display: block; width: 100%; height: 100%; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.kz-card:hover .kz-figure > *, .kz-card:focus-within .kz-figure > * { transform: scale(1.05); }

/* ── the pathway column — three full columns on the homepage ────── */
.kz-path {
  position: relative; display: flex; flex-direction: column; min-height: 100%;
  padding: clamp(30px, 3.4vw, 52px) clamp(24px, 2.6vw, 40px) clamp(30px, 3.4vw, 46px);
  border-left: 1px solid color-mix(in srgb, #fff 18%, transparent);
  text-decoration: none; color: inherit;
  transition: background-color .44s ease;
}
.kz-path:first-child { border-left: 0; }
.kz-path .kz-kick { min-height: 34px; align-items: flex-start; }
.kz-path .kz-kick::before { margin-top: 8px; }
.kz-path::before {
  content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px;
  background: var(--kz-gold); transform: scaleY(0); transform-origin: top;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.kz-path:hover, .kz-path:focus-within { background: color-mix(in srgb, #fff 6%, transparent); }
.kz-path:hover::before, .kz-path:focus-within::before { transform: scaleY(1); }
.kz-path-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.kz-path-steps li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: baseline;
  font-size: 14px; line-height: 1.6; color: color-mix(in srgb, #fff 66%, transparent);
  transition: color .36s ease;
}
.kz-path-steps li span {
  font-family: var(--font-body); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, #fff 40%, transparent); transition: color .36s ease;
}
.kz-path:hover .kz-path-steps li { color: color-mix(in srgb, #fff 88%, transparent); }
.kz-path:hover .kz-path-steps li span { color: var(--color-accent-300); }

/* ── the "read more" line draws its underline in ─────────────────── */
.kz-more {
  display: inline-flex; align-items: center; gap: 9px; position: relative;
  align-self: flex-start;
  font-family: var(--font-body); font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--kz-gold-deep);
  padding-bottom: 5px; border: 0; text-decoration: none;
  transition: gap .3s ease, color .3s ease;
}
.kz-more::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--kz-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .42s cubic-bezier(.2,.7,.2,1);
}
.kz-card:hover .kz-more::after, .kz-card:focus-within .kz-more::after,
.kz-more:hover::after, .kz-path:hover .kz-more::after { transform: scaleX(1); }
.kz-more .kz-ar { transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.kz-more:hover .kz-ar, .kz-card:hover .kz-more .kz-ar, .kz-path:hover .kz-more .kz-ar { transform: translateX(5px); }
.kz-on-ink .kz-more, .kz-ink-sec .kz-more, .kz-path .kz-more { color: var(--color-accent-300); }
.kz-on-ink .kz-more::after, .kz-ink-sec .kz-more::after, .kz-path .kz-more::after { background: var(--color-accent-400); }

/* ── deep sections: flat cool ink, one faint warm bloom ─────────── */
.kz-ink-sec {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(70% 100% at 88% 4%, color-mix(in srgb, var(--kz-gold) 13%, transparent) 0%, transparent 58%),
    linear-gradient(172deg, #171b22 0%, #10131a 58%, #0c0f14 100%);
}

/* ── plates: warm archival grade, cool chrome around them ───────── */
.kz-plate { filter: saturate(0.96) contrast(1.03) sepia(0.06); }

/* ── the sample-content marker ──────────────────────────────────── */
.kz-sample {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 600; font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--kz-gold-deep); border: 1px solid color-mix(in srgb, var(--kz-gold) 55%, transparent);
  border-radius: 2px; padding: 3px 7px 2px; white-space: nowrap;
}
.kz-ink-sec .kz-sample, .kz-on-ink .kz-sample {
  color: var(--color-accent-300); border-color: color-mix(in srgb, var(--color-accent-400) 55%, transparent);
}
.kz-draftbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; text-align: center;
  background: var(--kz-ink); color: color-mix(in srgb, #fff 72%, transparent);
  font-family: var(--font-body); font-size: 11.5px; line-height: 1.5;
  letter-spacing: 0.04em; padding: 9px 18px;
}
.kz-draftbar b { color: var(--color-accent-300); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 10px; }

/* ── stat: hairline-separated figures, no boxes ─────────────────── */
.kz-stat { padding: 0 0 0 clamp(16px, 1.8vw, 28px); border-left: 1px solid var(--kz-rule); }
.kz-ink-sec .kz-stat { border-left-color: color-mix(in srgb, #fff 20%, transparent); }
.kz-stat-n {
  font-family: var(--font-heading); font-weight: 300; letter-spacing: -0.03em;
  font-size: clamp(40px, 4.6vw, 68px); line-height: 0.95;
  font-variant-numeric: tabular-nums; color: var(--kz-head); display: block;
  min-height: 1em;
}
.kz-ink-sec .kz-stat-n { color: #fff; }
.kz-stat-l {
  display: block; margin-top: 12px; font-family: var(--font-body);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--kz-muted);
}
.kz-ink-sec .kz-stat-l { color: color-mix(in srgb, #fff 58%, transparent); }

/* ── nav / accordion / chips / terms, retuned ───────────────────── */
.kz-nav-link { font-weight: 600; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.kz-nav-link::after { height: 1px; background: var(--kz-gold); }
.kz-acc > summary { font-weight: 600; font-family: var(--font-heading); font-size: 19px; color: var(--kz-head); }
.kz-acc > summary:hover { color: var(--kz-gold-deep); }
.kz-acc > summary::after { color: var(--kz-gold-deep); font-weight: 400; }
.kz-term { border-bottom-width: 1px; border-bottom-color: var(--kz-gold); }
.kz-term::after { background: var(--kz-ink); }
.kz-chip {
  font-family: var(--font-body); font-weight: 600; font-size: 11px;
  letter-spacing: 0.11em; text-transform: uppercase; border-radius: 2px;
  color: var(--kz-body); background: transparent;
  border: 1px solid var(--kz-rule);
  transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}
.kz-chip:hover { border-color: var(--kz-gold); color: var(--kz-gold-deep); background: color-mix(in srgb, var(--kz-gold) 7%, transparent); }
.kz-chip-on, .kz-chip-on:hover { border-color: var(--kz-ink); color: var(--kz-ink); background: color-mix(in srgb, var(--kz-ink) 6%, transparent); }
.kz-tag {
  font-family: var(--font-body); font-weight: 600; font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--kz-muted);
}
.kz-drawer { background: var(--color-surface); }

.kz-hr { height: 1px; background: var(--kz-rule); border: 0; margin: 0; }

/* ── the expanding three-panel band ─────────────────────────────
   Hover one panel: it grows, the other two shrink. First panel is open by
   default. Everything is flex-grow + opacity, so it degrades to a stack. */
.kz-band3 { display: flex; gap: clamp(10px, 1.1vw, 16px); align-items: stretch; }
.kz-band3-p {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  display: flex; gap: clamp(16px, 2vw, 34px);
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: 2px; text-decoration: none; color: inherit;
  padding: clamp(24px, 2.5vw, 40px);
  min-height: clamp(400px, 42vw, 540px);
  transition: flex-grow .62s cubic-bezier(.2,.7,.2,1), border-color .4s ease, box-shadow .4s ease;
}
.kz-band3-p::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3;
  background: var(--kz-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.kz-band3-txt { flex: 1 1 auto; min-width: min(230px, 100%); display: flex; flex-direction: column; }
.kz-band3-d {
  opacity: 0; max-height: 0; overflow: hidden; transform: translateY(10px);
  transition: opacity .42s ease .06s, max-height .62s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1);
}
.kz-band3-fig {
  flex: 0 0 0; width: 0; opacity: 0; align-self: stretch; position: relative;
  transition: flex-basis .62s cubic-bezier(.2,.7,.2,1), width .62s cubic-bezier(.2,.7,.2,1), opacity .5s ease .1s;
}
/* the Elsevier slice: horizontal bands with paper gaps, cut on a slight angle */
.kz-band3-fig > .kz-figure {
  position: absolute; inset: -6% -2%;
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 46px, transparent 46px 55px);
  mask-image: repeating-linear-gradient(to bottom, #000 0 46px, transparent 46px 55px);
  transform: skewY(-2.4deg);
}
.kz-band3-open, .kz-band3-p:first-child { flex-grow: 2.9; }
.kz-band3-p:first-child::before { transform: scaleX(1); }
.kz-band3-p:first-child .kz-band3-d { opacity: 1; max-height: 720px; transform: none; }
.kz-band3-p:first-child .kz-band3-fig { flex: 1 1 46%; width: auto; opacity: 1; }
.kz-band3:hover .kz-band3-p, .kz-band3:focus-within .kz-band3-p { flex-grow: .6; }
.kz-band3:hover .kz-band3-p::before, .kz-band3:focus-within .kz-band3-p::before { transform: scaleX(0); }
.kz-band3:hover .kz-band3-p .kz-band3-d, .kz-band3:focus-within .kz-band3-p .kz-band3-d { opacity: 0; max-height: 0; transform: translateY(10px); }
.kz-band3:hover .kz-band3-p .kz-band3-fig, .kz-band3:focus-within .kz-band3-p .kz-band3-fig { flex: 0 0 0; width: 0; opacity: 0; }
.kz-band3 .kz-band3-p:hover, .kz-band3 .kz-band3-p:focus-within { flex-grow: 2.9; box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--kz-gold) 55%, transparent); }
.kz-band3 .kz-band3-p:hover::before, .kz-band3 .kz-band3-p:focus-within::before { transform: scaleX(1); }
.kz-band3 .kz-band3-p:hover .kz-band3-d, .kz-band3 .kz-band3-p:focus-within .kz-band3-d { opacity: 1; max-height: 720px; transform: none; }
.kz-band3 .kz-band3-p:hover .kz-band3-fig, .kz-band3 .kz-band3-p:focus-within .kz-band3-fig { flex: 1 1 46%; width: auto; opacity: 1; }
.kz-band3-title {
  margin: 0; font-family: var(--font-heading); font-weight: 500;
  font-size: clamp(21px, 2.1vw, 30px); line-height: 1.14; letter-spacing: -.015em;
  color: var(--kz-head);
}
.kz-band3-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kz-band3-list li {
  display: grid; grid-template-columns: 24px 1fr; gap: 11px; align-items: baseline;
  font-size: 14px; line-height: 1.55; color: var(--kz-body);
}
.kz-band3-list li span {
  font-family: var(--font-body); font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--kz-gold-deep);
}
@media (max-width: 900px) {
  .kz-band3 { flex-direction: column; }
  .kz-band3-p, .kz-band3-p:first-child, .kz-band3:hover .kz-band3-p { flex: 1 1 auto; min-height: 0; }
  .kz-band3-d, .kz-band3:hover .kz-band3-p .kz-band3-d { opacity: 1; max-height: 720px; transform: none; }
  .kz-band3-fig, .kz-band3:hover .kz-band3-p .kz-band3-fig { flex: 0 0 190px; width: auto; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .kz-band3-p, .kz-band3-d, .kz-band3-fig { transition-duration: .01ms !important; }
}

/* ── plates: captioned, matted, parallax-capable ─────────────────── */
.kz-plate-fig { margin: 0; display: flex; flex-direction: column; }
.kz-plate-fig .kz-figure { border: 1px solid var(--color-divider); border-radius: 2px; }
.kz-plate-cap {
  display: flex; gap: 10px; align-items: baseline; margin-top: 12px;
  font-family: var(--font-body); font-size: 12px; line-height: 1.6;
  color: var(--kz-muted);
}
.kz-plate-cap b {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--kz-gold-deep); flex: none;
}
.kz-ink-sec .kz-plate-cap { color: color-mix(in srgb, #fff 56%, transparent); }
.kz-ink-sec .kz-plate-cap b { color: var(--color-accent-300); }
.kz-bleed { position: relative; overflow: hidden; background: var(--kz-ink); }
.kz-bleed > .kz-figure { position: absolute; inset: 0; }
.kz-bleed-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(12,15,20,.9) 0%, rgba(12,15,20,.62) 52%, rgba(12,15,20,.28) 100%);
}

/* ── acknowledgement of country ─────────────────────────────────── */
.kz-ack {
  border-top: 1px solid color-mix(in srgb, #fff 16%, transparent);
  padding-top: 26px; margin-top: clamp(34px, 4vw, 56px);
}
.kz-ack p {
  margin: 14px 0 0; max-width: 78ch;
  font-size: 13.5px; line-height: 1.85;
  color: color-mix(in srgb, #fff 62%, transparent);
}

*:focus-visible { outline: 2px solid var(--kz-gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .kz-card, .kz-card:hover, .kz-figure > *, .kz-row-t, .kz-row-n, .kz-row-meta { transform: none !important; }
}
