/* ==========================================================================
   KNP Business Development — redesign (impeccable refinement pass)
   Institutional-editorial system. Bone paper, aubergine ink, bronze accent.
   Refinement only: identity, content and structure preserved.
   ========================================================================== */

/* ---------- 1. Self-hosted type ---------- */
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- 2. Tokens ---------- */
:root {
  --bg: #f0eef3;
  --bg-2: #e7e4ec;
  --surface: #fbfafd;
  --surface-2: #f4f2f8;
  --text: #1c1726;
  --text-muted: #565068;
  --line: rgba(32, 24, 48, 0.14);
  --line-strong: rgba(32, 24, 48, 0.26);
  --accent: #7c5a26;
  --accent-2: #c9a96b;
  --plum: #2e2148;
  --plum-2: #3b2a5e;
  --band: #201735;
  --on-band: #f1ece1;
  --band-muted: rgba(241, 236, 225, 0.72);
  --band-line: rgba(241, 236, 225, 0.16);
  --danger: #d0644a;
  --glass: rgba(243, 240, 233, 0.82);
  --shadow: 0 26px 60px -34px rgba(28, 23, 38, 0.42);
  --shadow-sm: 0 14px 32px -22px rgba(28, 23, 38, 0.5);

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-hero: clamp(2.15rem, 4.9vw, 4.6rem);
  --t-h2: clamp(1.95rem, 4vw, 3.4rem);
  --t-h3: clamp(1.2rem, 1.9vw, 1.5rem);
  --t-lead: clamp(1.28rem, 2vw, 1.72rem);
  --t-body: 1.0625rem;

  --container: 1440px;
  --gutter: clamp(1.25rem, 4.5vw, 2.35rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 4.5rem;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.32, 0.72, 0, 1);
}

[data-theme="dark"] {
  --bg: #161022;
  --bg-2: #1c1530;
  --surface: #201935;
  --surface-2: #251d3c;
  --text: #f1ece1;
  --text-muted: #b6acc6;
  --line: rgba(241, 236, 225, 0.15);
  --line-strong: rgba(241, 236, 225, 0.3);
  --accent: #d3b378;
  --accent-2: #e6cf9a;
  --plum: #2e2148;
  --plum-2: #4a3a6e;
  --band: #100b1d;
  --on-band: #f1ece1;
  --band-muted: rgba(241, 236, 225, 0.74);
  --band-line: rgba(241, 236, 225, 0.17);
  --glass: rgba(22, 16, 34, 0.8);
  --shadow: 0 26px 60px -32px rgba(0, 0, 0, 0.78);
  --shadow-sm: 0 14px 32px -20px rgba(0, 0, 0, 0.72);
}

/* ---------- 3. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}
body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
main { overflow-x: clip; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.18; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--plum); color: var(--on-band); }

/* Browser surfaces themed from the palette */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--bg);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* film grain, fixed and non-interactive */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); scroll-margin-top: 0.5rem; border-top: 1px solid var(--line); }
.section__head { display: grid; gap: 0.8rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--split { grid-template-columns: 1fr; align-items: end; gap: 1.5rem; }
@media (min-width: 860px) { .section__head--split { grid-template-columns: 1.1fr 0.9fr; } }
.section__title {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 22ch;
  text-wrap: balance;
}
.section__title::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.1rem;
}
.section__sub { color: var(--text-muted); font-size: 1.16rem; line-height: 1.6; max-width: 50ch; }
.section__sub--right { margin-top: 0.4rem; }
.lead {
  font-family: var(--font-display);
  font-size: var(--t-lead);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 40ch;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--plum); color: var(--on-band);
  padding: 0.7rem 1.1rem; border-radius: var(--r-pill); font-size: 0.9rem;
  text-decoration: none; transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* authored icon set: one stroke, one weight */
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 5. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem; line-height: 1;
  white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 0.95rem 1.05rem 0.95rem 1.4rem;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    transform 0.35s var(--ease-smooth), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn--wide { width: 100%; justify-content: space-between; }
.btn--sm { font-size: 0.9rem; padding: 0.7rem 0.7rem 0.7rem 1.1rem; }
.btn__icon {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem;
  border-radius: 50%; flex: none;
  transition: transform 0.45s var(--ease-smooth), background 0.35s var(--ease);
}
.btn__icon .ic { width: 0.9rem; height: 0.9rem; }
.btn:hover .btn__icon { transform: translate(2px, -2px); }
.btn--sm .btn__icon { width: 1.5rem; height: 1.5rem; }

.btn--primary { background: var(--plum); color: var(--on-band); }
.btn--primary:hover { background: var(--plum-2); box-shadow: var(--shadow-sm); }
.btn--primary .btn__icon { background: rgba(241, 236, 225, 0.16); }
.btn--onband { background: var(--on-band); color: var(--plum); }
.btn--onband:hover { background: #ffffff; }
.btn--onband .btn__icon { background: rgba(46, 33, 72, 0.14); }

.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.btn--ghost .btn__icon { background: var(--surface-2); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 500; font-size: 0.98rem; text-decoration: none;
  color: var(--text); padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-quiet .ic { width: 0.86em; height: 0.86em; }
.link-quiet:hover { color: var(--accent); border-color: var(--accent); }
.link-quiet--strong { font-weight: 600; }

/* ---------- 6. Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: clamp(0.6rem, 1.4vw, 1rem) clamp(0.75rem, 3vw, 1.5rem);
  pointer-events: none;
}
.site-header .nav {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1200px; margin-inline: auto;
  padding: 0.5rem 0.5rem 0.5rem 1.15rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent; background: transparent;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.site-header.is-scrolled .nav {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark { width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.01em; }

.nav__links { display: flex; align-items: center; gap: 1.7rem; }
.nav__links a {
  position: relative; text-decoration: none; font-size: 0.94rem; font-weight: 500; color: var(--text);
  padding-block: 0.3rem; white-space: nowrap;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease-smooth);
}
.theme-toggle .ic { width: 1.1rem; height: 1.1rem; }
.theme-toggle:hover { border-color: var(--line-strong); transform: rotate(-14deg); }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

.menu-toggle {
  display: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer; place-items: center;
}
.menu-toggle__bars { display: grid; gap: 5px; width: 18px; }
.menu-toggle__bars i {
  display: block; height: 1.6px; width: 100%; background: var(--text); border-radius: 2px;
  transition: transform 0.35s var(--ease-smooth), opacity 0.25s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- 7. Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: 6rem var(--gutter) 3rem; background: var(--bg);
  animation: menuIn 0.4s var(--ease) both;
}
.mobile-menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu__links { display: grid; gap: 0.3rem; }
.mobile-menu__links a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.16;
  letter-spacing: -0.02em; text-decoration: none; color: var(--text);
  opacity: 0; animation: linkIn 0.5s var(--ease) forwards;
}
.mobile-menu__links a:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu__links a:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu__links a:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu__links a:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu__links a:nth-child(5) { animation-delay: 0.25s; }
@keyframes linkIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mobile-menu__foot { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
body.menu-open { overflow: hidden; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(6.8rem, 13vw, 8.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  scroll-margin-top: 0;
}
.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.14fr 0.86fr; min-height: min(72vh, 660px); }
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1.2rem, 2.4vw, 1.8rem); }
.hero__title {
  font-family: var(--font-display);
  font-size: var(--t-hero);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-wrap: balance;
}
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.55; color: var(--text-muted); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 0.4rem; }

.hero__media { position: relative; }
.hero__frame {
  position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4 / 3.4; border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 900px) { .hero__frame { aspect-ratio: 4 / 4.4; } }
.hero__frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.04) brightness(0.96);
}
.hero__frame figcaption {
  position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 2;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; font-weight: 500;
  color: var(--on-band);
  background: rgba(22, 15, 36, 0.82);
  border: 1px solid rgba(241, 236, 225, 0.22);
  border-radius: var(--r-pill);
  padding: 0.32rem 0.75rem;
}
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, #3b2a5e 0%, rgba(59, 42, 94, 0.35) 48%, #8c6a2f 100%);
  mix-blend-mode: multiply; opacity: 0.9;
}

/* Hero image settle: opacity-only so the image box never leaves the frame */
@keyframes heroSettle { from { opacity: 0.6; } to { opacity: 1; } }
.hero__frame img { animation: heroSettle 1.2s var(--ease) both; }

.ledger {
  list-style: none; padding-inline: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.ledger li { font-size: 0.94rem; color: var(--text-muted); display: flex; align-items: center; }
.ledger li + li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); margin: 0 1.3rem; flex: none;
}

/* ---------- 9. Story ---------- */
.story__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .story__grid { grid-template-columns: 0.62fr 1.38fr; gap: clamp(2rem, 6vw, 6rem); } }
.rail { display: flex; flex-direction: column; }
@media (min-width: 900px) { .rail { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; } }
.story__body { display: grid; gap: 1.3rem; max-width: 68ch; }
.story__body p { color: var(--text-muted); font-size: 1.18rem; }
.story__body .lead { color: var(--text); font-size: var(--t-lead); }

/* ---------- 10. Challenges (docket) ---------- */
.docket { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.docket__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title arrow" "desc desc";
  gap: 0.55rem 1.2rem; align-items: start;
  padding: 1.7rem clamp(0.4rem, 1.4vw, 1.4rem);
  border-bottom: 1px solid var(--line); border-radius: var(--r);
  transition: background 0.4s var(--ease);
}
@media (min-width: 820px) {
  .docket__row {
    grid-template-columns: minmax(190px, 0.8fr) minmax(260px, 1.4fr) 1.4rem;
    grid-template-areas: "title desc arrow";
    align-items: center; gap: 1.8rem; padding-block: 2rem;
  }
}
.docket__row:hover { background: var(--surface); }
.docket__title {
  grid-area: title; font-family: var(--font-display); font-size: var(--t-h3);
  font-weight: 600; letter-spacing: -0.01em;
  transition: transform 0.45s var(--ease);
}
.docket__row:hover .docket__title { transform: translateX(6px); }
.docket__desc { grid-area: desc; color: var(--text-muted); font-size: 0.98rem; line-height: 1.55; max-width: 56ch; }
.docket__arrow {
  grid-area: arrow; justify-self: end; color: var(--line-strong); font-size: 1.05rem;
  transition: transform 0.45s var(--ease), color 0.45s var(--ease);
}
.docket__row:hover .docket__arrow { transform: translate(4px, -4px); color: var(--accent); }

/* ---------- 11. Services (tiles) ---------- */
.services__grid { display: grid; gap: clamp(0.9rem, 1.6vw, 1.3rem); }
@media (min-width: 860px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}
.tile {
  position: relative; display: flex; flex-direction: column; gap: 1.6rem;
  background: var(--plum); color: var(--on-band);
  border-radius: var(--r-xl); padding: clamp(1.6rem, 2.6vw, 2.4rem);
  border: 1px solid rgba(241, 236, 225, 0.08);
  box-shadow: inset 0 1px 0 rgba(241, 236, 225, 0.1), var(--shadow);
  overflow: hidden;
  transition: transform 0.55s var(--ease-smooth), box-shadow 0.55s var(--ease), border-color 0.55s var(--ease);
}
/* uniform hover: the whole box lifts and scales (all three tiles) */
.tile:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(201, 169, 107, 0.4);
  box-shadow: inset 0 1px 0 rgba(241, 236, 225, 0.16), 0 40px 80px -40px rgba(28, 23, 38, 0.72);
}
.tile:active { transform: translateY(-3px) scale(0.995); }
.tile__icon { height: clamp(66px, 9vw, 104px); display: flex; align-items: center; }
.tile__icon img {
  height: 100%; width: auto; max-width: 100%; object-fit: contain;
  mix-blend-mode: screen; /* art is white-on-black line work; screen drops the black field */
}
.tile__body { margin-top: auto; display: grid; gap: 0.5rem; }
.tile__title {
  position: relative; font-family: var(--font-display); font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance;
  transition: color 0.4s var(--ease), transform 0.45s var(--ease-smooth);
}
.tile__title::after {
  content: ""; position: absolute; left: 0; bottom: -0.3rem; height: 2px; width: 2.4rem;
  background: linear-gradient(90deg, var(--accent-2), rgba(201, 169, 107, 0));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.tile:hover .tile__title { color: var(--accent-2); transform: translateX(3px); }
.tile:hover .tile__title::after { transform: scaleX(1); }
.tile__desc { color: var(--band-muted); font-size: 0.98rem; line-height: 1.55; max-width: 46ch; }

/* ---------- 12. Why KNP ---------- */
.why__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .why__grid { grid-template-columns: 0.62fr 1.38fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; } }
.why__head { display: grid; gap: 0.7rem; }
@media (min-width: 900px) { .why__head { position: sticky; top: calc(var(--header-h) + 3rem); } }
.manifesto { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .manifesto { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); } }
.manifesto__item {
  position: relative; z-index: 0; padding: clamp(1.7rem, 3vw, 2.1rem) 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}
.manifesto__item::before {
  content: ""; position: absolute; z-index: -1; inset: 0.6rem -0.7rem;
  background: linear-gradient(90deg, rgba(201, 169, 107, 0.5), rgba(201, 169, 107, 0.14));
  border-radius: 8px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.manifesto__item:hover::before { transform: scaleX(1); }
.manifesto__item:hover { border-color: var(--line-strong); }
.manifesto__item h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 0.7rem;
  transition: transform 0.45s var(--ease-smooth);
}
@media (min-width: 640px) {
  /* reserve two title lines so the body text aligns across the row */
  .manifesto__item h3 { min-height: calc(1.3rem * 1.18 * 2); }
}
.manifesto__item:hover h3 { transform: translateY(-2px); }
.manifesto__item p { color: var(--text-muted); font-size: 1.08rem; line-height: 1.6; max-width: 46ch; transition: color 0.4s var(--ease); }
.manifesto__item:hover p { color: var(--text); }

/* ---------- 13. Testimonials (carousel) ---------- */
.testimonials { border-bottom: 1px solid var(--line); }
.testimonials__body { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .testimonials__body { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: start; }
  .testimonials__body .proof__stat { padding-left: clamp(1.5rem, 3vw, 2.5rem); border-left: 1px solid var(--line); margin-left: -0.75rem; }
}
.proof__avatar {
  display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 30%;
  background: var(--plum); color: var(--on-band);
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; flex: none;
}
.proof__who { font-size: 0.92rem; color: var(--text-muted); line-height: 1.4; }
.proof__who strong { color: var(--text); font-weight: 600; }
.proof__stat { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; text-align: left; margin-top: calc(clamp(0.5rem, 2vw, 1.5rem) + 3.45rem); }
.proof__stat-num {
  font-family: var(--font-display); font-size: clamp(5.5rem, 15vw, 12rem); font-weight: 600;
  line-height: 0.8; letter-spacing: -0.03em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.proof__stat-lbl { font-family: var(--font-mono); font-size: 1rem; letter-spacing: 0.01em; color: var(--text-muted); max-width: 22ch; line-height: 1.5; }

.carousel { position: relative; min-width: 0; margin-top: clamp(0.5rem, 2vw, 1.5rem); }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform 0.6s var(--ease); }
.tslide { flex: 0 0 100%; margin: 0; padding-right: clamp(0.5rem, 3vw, 3rem); display: flex; flex-direction: column; gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.tslide__brand { height: clamp(34px, 4.5vw, 46px); display: flex; align-items: center; }
.tslide__brand img { height: 100%; width: auto; max-width: 62%; object-fit: contain; }
.tslide__brand .proof__avatar { width: 2.6rem; height: 2.6rem; }
.tslide blockquote { margin: 0; }
.tslide blockquote p {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.7rem); line-height: 1.18;
  letter-spacing: -0.02em; max-width: 32ch; text-wrap: balance;
}
.tslide blockquote p::before { content: "\201C"; color: var(--accent); }
.tslide blockquote p::after { content: "\201D"; color: var(--accent); }
.tslide figcaption { display: flex; align-items: center; gap: 0.8rem; }
.carousel__controls { display: flex; align-items: center; gap: 1rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.carousel__btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.carousel__btn:hover { border-color: var(--accent); color: var(--accent); }
.carousel__btn:active { transform: scale(0.95); }
.carousel__dots { display: flex; align-items: center; gap: 0.45rem; }
.carousel__dot {
  position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.carousel__dot::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.carousel__dot:hover::before { background: var(--text-muted); }
.carousel__dot[aria-current="true"]::before { transform: translate(-50%, -50%) scaleX(3); background: var(--accent); }

/* ---------- 14. Leadership ---------- */
.leadership { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.leadership__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .leadership__grid { grid-template-columns: 0.82fr 1.18fr; } }
.leadership__photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.leadership__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (min-width: 860px) { .leadership__photo { max-width: 420px; } }
.leadership__body { display: grid; gap: 1rem; }
.leadership__body .lead { color: var(--text); }
.leadership__body p { color: var(--text-muted); max-width: 64ch; }

/* ---------- 15. Closing band + contact ---------- */
.cta-band, .contact, .site-footer { color: var(--on-band); background: var(--band); }
.cta-band { padding-block: clamp(4rem, 9vw, 7rem); }
.cta-band__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .cta-band__grid { grid-template-columns: auto 1fr; } }
.cta-band__art { color: var(--accent-2); opacity: 0.9; }
.cta-band__art svg { width: clamp(90px, 12vw, 150px); height: auto; }
.cta-band__copy { display: grid; gap: 1.2rem; justify-items: start; }
.cta-band__title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02;
  letter-spacing: -0.025em; max-width: 18ch; text-wrap: balance;
}
.cta-band__sub { color: var(--band-muted); font-size: 1.06rem; max-width: 46ch; }

.contact { padding-block: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--band-line); }
.contact__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
.contact__title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.02em; margin-bottom: 1.8rem; }
.contact__list { display: grid; gap: 1.5rem; }
.contact__list dt { font-size: 0.85rem; font-weight: 600; color: var(--band-muted); margin-bottom: 0.35rem; }
.contact__list dd { font-size: 1.05rem; line-height: 1.55; }
.contact__list a { color: var(--on-band); text-decoration: none; border-bottom: 1px solid var(--band-line); transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.contact__list a:hover { color: var(--accent-2); border-color: var(--accent-2); }

.contact__form { display: grid; gap: 1.1rem; align-content: start; }
.field { display: grid; gap: 0.5rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field__opt { color: var(--band-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; background: rgba(241, 236, 225, 0.06);
  border: 1px solid var(--band-line); border-radius: var(--r-sm);
  padding: 0.8rem 1rem; color: var(--on-band); caret-color: var(--accent-2);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(241, 236, 225, 0.42); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); background: rgba(241, 236, 225, 0.1); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field__err { font-size: 0.82rem; color: #f0a08c; }
.form-status { font-size: 0.9rem; color: var(--accent-2); min-height: 1.2rem; }
.form-status[data-tone="error"] { color: #f0a08c; }

/* ---------- 15b. Contact modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(1rem, 4vw, 2rem); }
.modal[hidden] { display: none; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(18, 12, 28, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: modalFade 0.3s var(--ease) both;
}
.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  background: var(--band); color: var(--on-band);
  border: 1px solid var(--band-line);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.6);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  animation: modalIn 0.45s var(--ease-smooth) both;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: clamp(0.9rem, 2vw, 1.25rem); right: clamp(0.9rem, 2vw, 1.25rem);
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--band-line); background: transparent; color: var(--on-band);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal__close:hover { border-color: var(--accent-2); color: var(--accent-2); transform: rotate(90deg); }
.modal__close .ic { width: 1.05rem; height: 1.05rem; }
.modal__head { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; padding-right: 2.75rem; }
.modal__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
.modal__sub { color: var(--band-muted); font-size: 1rem; max-width: 46ch; }
.modal__foot { margin-top: 1.2rem; font-size: 0.92rem; color: var(--band-muted); }
.modal__foot a { color: var(--on-band); text-decoration: none; border-bottom: 1px solid var(--band-line); transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.modal__foot a:hover { color: var(--accent-2); border-color: var(--accent-2); }
body.modal-open { overflow: hidden; }

/* ---------- 16. Footer ---------- */
.site-footer { padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--band-line); }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; } }
.footer__brand { display: grid; gap: 0.5rem; justify-items: start; }
.footer__brand img { border-radius: 50%; }
.footer__brand p { font-weight: 600; }
.footer__note { color: var(--band-muted); font-weight: 400; font-size: 0.92rem; }
.footer__nav { display: grid; gap: 0.6rem; }
.footer__nav a, .footer__meta a {
  color: var(--on-band); text-decoration: none; font-size: 0.95rem; width: fit-content;
  border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.footer__nav a:hover, .footer__meta a:hover { color: var(--accent-2); border-color: var(--accent-2); }
.footer__meta { display: grid; gap: 0.6rem; }
.footer__meta p { color: var(--band-muted); font-size: 0.88rem; }

/* ---------- 16b. Document pages (legal, 404) ---------- */
.doc-header {
  position: sticky; top: 0; z-index: 40; padding: 1rem var(--gutter);
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.doc-header .nav { max-width: var(--container); margin-inline: auto; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.doc-header .back { font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.doc-header .back:hover { color: var(--accent); border-color: var(--accent); }
.prose { max-width: 70ch; display: grid; gap: 1.1rem; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.015em; margin-top: 2rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { display: grid; gap: 0.5rem; padding-left: 1.2rem; }
.doc-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.025em; margin-bottom: 0.6rem; }
.doc-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent); margin-bottom: 2.5rem; }
.error-page { min-height: 100svh; display: grid; align-content: center; gap: 1.2rem; }
.error-page .code { font-family: var(--font-display); font-size: clamp(4rem, 16vw, 10rem); line-height: 0.85; color: var(--accent); letter-spacing: -0.03em; }

/* ---------- 17. Motion ----------
   Visible by default. Motion only applies once JS is present (html.js),
   so a failed script never hides content. */
.js [data-reveal] { opacity: 0; }
.js [data-reveal="rise"] {
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* Hero capability strip: visible by default, hides on scroll down (class toggled by JS) */
.ledger { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.ledger.is-hidden { opacity: 0; transform: translateY(14px); pointer-events: none; }

/* ---------- 17b. Desktop nav scale ---------- */
@media (min-width: 1024px) {
  :root { --header-h: 8.5rem; }
  .site-header { padding-block: 0.9rem; }
  .site-header .nav { max-width: 1440px; padding: 0.75rem 0.75rem 0.75rem 1.725rem; gap: 1.5rem; }
  .brand { gap: 1.05rem; }
  .brand__mark { width: 4.8rem; height: 4.8rem; }
  .brand__text { line-height: 1.05; }
  .brand__name { font-size: 1.955rem; }
  .brand__sub { font-size: 1.02rem; }
  .nav__actions { gap: 0.9rem; }
  .theme-toggle, .menu-toggle { width: 3.75rem; height: 3.75rem; }
  .theme-toggle .ic { width: 1.65rem; height: 1.65rem; }
  .nav__links { gap: 1.6rem; }
  .nav__links a { font-size: 1.41rem; }
  .nav__actions .btn--sm { font-size: 1.17rem; padding: 0.91rem 0.91rem 0.91rem 1.43rem; gap: 0.845rem; }
  .nav__actions .btn--sm .btn__icon { width: 1.95rem; height: 1.95rem; }
  .nav__actions .btn--sm .btn__icon .ic { width: 1.17rem; height: 1.17rem; }
  .hero { padding-top: clamp(9rem, 12vw, 10.5rem); }
}

/* ---------- 18. Responsive nav switch ---------- */
@media (max-width: 1439px) {
  .nav__links { display: none; }
  .menu-toggle { display: grid; }
}
@media (max-width: 560px) {
  .brand__name { font-size: 1.15rem; }
  .nav__actions { gap: 0.2rem; }
  .theme-toggle, .menu-toggle { width: 2.75rem; height: 2.75rem; }
  .nav__actions .btn--sm { font-size: 0.72rem; padding: 0.5rem 0.5rem 0.5rem 0.7rem; gap: 0.3rem; }
  .nav__actions .btn--sm .btn__icon { width: 1.3rem; height: 1.3rem; }
}

/* Touch targets: interactive controls ~44px on touch-sized viewports */
@media (max-width: 767px) {
  html { scroll-padding-top: 10rem; }
  .theme-toggle, .menu-toggle { width: 2.75rem; height: 2.75rem; }
  .brand__mark { width: 2.875rem; height: 2.875rem; }
  .brand__sub { display: none; }              /* keep the "KNP" title, drop the long sub-line */
  .brand__name { font-size: 1.2rem; }
  .site-header { padding: 0.75rem 0.625rem; }
  .site-header .nav { padding: 1.9rem 0.3rem; gap: 0.25rem; }
  .nav__actions { gap: 0.3rem; }
  .nav__actions .btn { min-height: 2.75rem; }
  .carousel__dot { width: 2.75rem; height: 2.75rem; }
  .footer__nav a, .footer__meta a, .contact__list a, .link-quiet {
    display: inline-flex; align-items: center; min-height: 2.75rem;
  }
}

/* Mobile rhythm: tighter section spacing */
@media (max-width: 640px) {
  .container { padding-left: 0.625rem; padding-right: 0.625rem; }
  .section { padding-block: clamp(3rem, 9vw, 4rem); }
  .section__head { margin-bottom: clamp(1.75rem, 6vw, 2.5rem); }
  .hero { padding-top: clamp(8.75rem, 22vw, 9.75rem); padding-bottom: clamp(2rem, 6vw, 3rem); }
  .hero__grid { gap: clamp(1.75rem, 6vw, 2.5rem); }
  .cta-band, .contact { padding-block: clamp(3rem, 9vw, 4.5rem); }
  /* capability strip becomes a swipeable single row instead of stacking */
  .ledger {
    flex-wrap: nowrap; overflow-x: auto; gap: 0; padding-bottom: 0.5rem;
    margin-top: clamp(1.25rem, 4vw, 2rem);
    scrollbar-width: none;
  }
  .ledger::-webkit-scrollbar { display: none; }
  .ledger li { white-space: nowrap; }
}

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__frame img { animation: none !important; transform: none !important; }
}
