/* The kit (2026-10-12, docs/briefs/2026-10-12-site-refresh-stage-1-kit.md): the look built on
   /capabilities/ is the site standard, defined here once. Change these values, never shadow them in a
   page stylesheet. */
:root {
  --ivory: #faf9f5;
  --ink: #22261f;
  --line: #d9ddd3;
  --pine: #153a2b;          /* buttons, the heading accent, the hub, dark bands */
  --pine-lift: #20513b;     /* gradient top */
  --pine-deep: #0f271d;     /* hover, gradient bottom */
  --dark: var(--pine);      /* the older name for dark grounds */
  --soft: #e7eee2;          /* the one sage for light bands */
  --forest: #275d43;        /* eyebrows, text links, focus rings */
  --prose: #454d42;         /* body text on ivory and sage */
  --muted: #62685e;         /* secondary text only: controls, captions, illustration labels */
  --card: #fdfdfb;
  --card-line: #dde5d8;
  --card-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(18, 43, 34, .06), 0 22px 36px -20px rgba(18, 43, 34, .32);
  --tile: #f8faf5;          /* the 52px rounded tile, 14px radius */
  --tile-line: #c6d5c3;
  --signal: #c4e86b;        /* lime: the hub only (its ports, spark and pulses, the engagement art's hub) */
  --amber-soft: #f8efd9;    /* amber: a human decision only */
  --amber-line: #c9993f;
  --amber-ink: #5e4410;
  --heading-accent: var(--pine);
  --sans: "DM Sans", Arial, sans-serif;
  --brand: "Familjen Grotesk", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3 { margin: 0; }
p { color: var(--prose); }
img { display: block; max-width: 100%; }
svg { display: block; width: 24px; height: 24px; flex: none; }
[hidden] { display: none !important; }
::selection { background: #c9d9c8; color: var(--dark); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 5px; }
.hero :focus-visible { outline-color: var(--ivory); }
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 24px;
  background: var(--ivory);
}
.skip-link:focus { top: 12px; }
.anchor-alias { display: block; height: 0; }

/* Shared header and controls. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgb(39 93 67 / 12%);
  background: var(--ivory);
}
/* Full width at every size (Brenden, 2026-10-01): the wordmark stays at the left gutter and the
   links at the right, rather than following the 1440px content column inward on wide screens. */
.nav-wrap {
  height: 94px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  font-family: var(--brand);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: .92;
}
.wordmark > span { font-size: 29px; }
.wordmark small {
  align-self: flex-end;
  margin-top: 6px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-align: right;
}
.desktop-nav { display: flex; gap: 32px; margin-left: auto; margin-right: 32px; }
.desktop-nav a { position: relative; padding: 13px 0; font-size: 14px; white-space: nowrap; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.desktop-nav a:hover::after { transform: scaleX(1); }
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-nav a[aria-current="page"] { color: var(--forest); }
.button {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 16px 28px;
  border: 1px solid var(--pine);
  border-radius: 8px;
  background: var(--pine);
  color: var(--ivory);
  font-size: 17px;
  font-weight: 500;
  box-shadow: 0 16px 28px -16px rgba(18, 43, 34, .55);
  transition: background .2s, border-color .2s, transform .2s;
}
.button svg { width: 24px; height: 24px; }
.button:hover { border-color: var(--pine-deep); background: var(--pine-deep); transform: translateY(-2px); }
/* The header's button: the kit's colour and corners at its own size, without the shadow. */
.button-small { min-height: 46px; padding: 10px 19px; gap: 12px; font-size: 14px; white-space: nowrap; box-shadow: none; }
.button-small svg { width: 21px; height: 21px; }
.button-ivory { border-color: var(--ivory); background: var(--ivory); color: var(--pine); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .55); }
.button-ivory:hover { border-color: #e4e9dc; background: #e4e9dc; }
.text-link, .text-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 5px 0;
  color: var(--forest);
  font-size: 15px;
  font-weight: 500;
}
.text-link { border-bottom: 1px solid var(--forest); padding-bottom: 8px; }
.text-link svg, .text-button svg { width: 22px; height: 22px; transition: transform .2s; }
.text-link:hover svg, .text-button:hover svg { transform: translateX(5px); }
.light { color: var(--ivory); }
.menu-toggle { display: none; }
.mobile-nav { display: none; }
.eyebrow {
  display: block;
  margin-bottom: 25px;
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .24em;
}
.eyebrow.light { color: var(--ivory); }
/* Headings: Familjen Grotesk at every level; each page keeps its own sizes. */
h1, h2, h3 { font-family: var(--brand); }
h1, h2 { font-weight: 500; letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: clamp(42px, 4.1vw, 64px); }
h3 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
/* The accent (each page's H1 and closing H2 only): bold and upright, pine on light grounds. */
h1 em, h2 em { color: var(--heading-accent); font-family: var(--brand); font-style: normal; font-weight: 700; line-height: inherit; letter-spacing: inherit; word-spacing: .06em; }
/* Dark grounds turn it ivory. Every dark ground that can hold a heading is listed here, once. */
.hero, .governance-section, .governance-controls, .advisory-hero-band, #contact.closing-cta, .closing-cta.is-dark, .insight-hero,
.demo-library:not([data-variant="soft"]), .demo-player { --heading-accent: var(--ivory); }

/* The supplied raster artwork retains the reference composition and drift. */
/* The hero fills the first screen under the header (95px with its border) at every size, so
   no strip of the next section shows on arrival (Brenden, 2026-10-01). The minimum keeps the
   bottom row clear of the buttons on short screens; on desktop the text centres vertically. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 700px;
  height: calc(100svh - 95px);
  overflow: hidden;
  color: var(--ivory);
  background: var(--dark);
}
.hero-media { position: absolute; inset: -2%; transition: transform 1.2s ease-out; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.hero[data-motion="running"] .hero-media img { animation: camera-drift 22s ease-in-out infinite alternate; }
.hero[data-motion="paused"] .hero-media img { animation: camera-drift 22s ease-in-out infinite alternate paused; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(10 31 21 / 66%) 0%, rgb(10 31 21 / 28%) 41%, transparent 78%),
    linear-gradient(0deg, rgb(6 21 14 / 40%), transparent 24%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1440px; margin: auto; padding: 122px 64px 90px; }
.hero-content .eyebrow { margin-bottom: 35px; opacity: .9; }
.hero h1 { margin-bottom: 34px; font-size: clamp(44px, 5.15vw, 74px); line-height: .98; text-wrap: balance; }
.hero h1 em { display: inline-block; text-wrap: balance; }
.hero p { max-width: 520px; color: #e1e7dc; font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 33px; margin-top: 35px; }
.hero-bottom {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: max(64px, calc((100% - 1312px) / 2));
  right: max(64px, calc((100% - 1312px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hero-bottom > span { font-size: 12px; letter-spacing: 1.9px; color: #c5d0c6; }
.motion-toggle { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 8px; color: var(--ivory); font-size: 14px; }
.pause-icon { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #9aa99e; border-radius: 50%; font-size: 12px; }
.motion-toggle:disabled { cursor: default; }
.hero[data-motion="paused"] .hero-media, .hero[data-motion="reduced"] .hero-media { transform: none !important; }

.principle-strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr auto;
  gap: 35px;
  max-width: 1440px;
  margin: auto;
  padding: 36px 64px;
  border-bottom: 1px solid var(--line);
}
.principle-strip > div { display: flex; gap: 22px; padding-right: 20px; border-right: 1px solid var(--line); }
.small-index { padding-top: 4px; color: var(--forest); font-size: 12px; }
.principle-strip p { font-size: 16px; line-height: 1.5; }
.principle-strip strong { display: block; color: var(--ink); font-weight: 500; }
.principle-strip > a { display: flex; align-items: center; gap: 16px; color: var(--forest); font-size: 14px; }
.principle-strip > a svg { width: 21px; }

/* All panels are readable until JavaScript enhances them into a tab interface. */
.section { max-width: 1440px; margin: auto; padding: 104px 64px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 80px; margin-bottom: 60px; }
.section-heading > p { width: 380px; flex: none; font-size: 17px; line-height: 1.7; }
.section-heading .eyebrow { margin-bottom: 24px; }
.section.capabilities { padding-top: 58px; padding-bottom: 64px; }
.capabilities .section-heading { display: block; margin-bottom: 32px; }
.capabilities .section-heading .eyebrow { margin-bottom: 16px; }
.capabilities .section-heading > p { width: auto; max-width: 650px; margin-top: 18px; font-size: 16px; line-height: 1.7; }
.capability-explorer { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-explorer[data-enhanced] { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr); }
.capability-tabs { display: flex; flex-direction: column; justify-content: center; padding: 12px 30px 12px 0; }
.capability-tabs button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  transition: color .2s;
}
.capability-tabs button:last-child { border-bottom: 0; }
.capability-tabs button > span { align-self: flex-start; padding-top: 8px; font-size: 12px; }
.capability-tabs strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.035em; line-height: 1.35; }
.capability-tabs small { display: block; margin-top: 6px; font-size: 14px; }
.capability-tabs svg { margin-left: auto; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.capability-tabs button[aria-selected="true"] { color: var(--forest); }
.capability-tabs button[aria-selected="true"] svg { opacity: 1; transform: translateX(0); }
.capability-panels { min-width: 0; background: var(--soft); }
.cap-panel { padding: 32px 36px; }
.cap-panel + .cap-panel { border-top: 1px solid var(--line); }
[data-enhanced] .cap-panel { border-top: 0; }
.cap-panel .eyebrow { margin-bottom: 13px; }
.cap-panel h3 { max-width: 460px; margin-bottom: 15px; font-size: 32px; line-height: 1.16; }
.cap-panel p { max-width: 530px; margin-bottom: 15px; font-size: 16px; }
.cap-panel .clean-list { margin: 15px 0 18px; }
.cap-panel .clean-list li { padding-top: 5px; padding-bottom: 5px; }
.cap-panel .clean-list li::before { top: 16px; }
.clean-list { list-style: none; padding: 0; margin: 20px 0 30px; }
.clean-list li { position: relative; padding: 8px 0 8px 21px; font-size: 16px; }
.clean-list li::before { content: ""; position: absolute; top: 19px; left: 0; width: 5px; height: 5px; background: var(--forest); }
.cap-panel .text-link { font-size: 14px; }

@keyframes camera-drift {
  from { transform: scale(1.015) translateX(-.4%); }
  to { transform: scale(1.065) translateX(.8%); }
}

@media (min-width: 1700px) {
  .hero-media img { object-position: 65% 58%; }
  .hero-content { padding-top: 125px; }
}

@media (max-width: 1150px) {
  .nav-wrap { padding: 0 40px; gap: 20px; }
  .desktop-nav { gap: 23px; margin-right: 8px; }
  .hero-content { padding-left: 40px; padding-right: 40px; }
  .hero-bottom { left: 40px; right: 40px; }
  .section { padding: 80px 40px; }
  .principle-strip { padding: 30px 40px; grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .principle-strip > a { display: none; }
  .principle-strip > div:last-of-type { border: 0; }
  .section-heading { gap: 40px; }
  .section-heading > p { width: 340px; }
  .capability-tabs { padding-right: 20px; }
  .capability-tabs strong { font-size: 19px; }
  .capability-tabs button { gap: 12px; }
  .cap-panel { padding: 28px; }
}

@media (max-width: 850px) {
  html { scroll-padding-top: 94px; }
  .nav-wrap { height: 78px; padding: 0 28px; }
  .desktop-nav { display: none; }
  .nav-contact { margin-left: auto; }
  .menu-toggle { display: flex; width: 44px; height: 44px; flex: none; padding: 10px 9px; flex-direction: column; justify-content: center; gap: 7px; }
  .menu-toggle span { height: 1px; width: 26px; background: var(--forest); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav { display: block; padding: 15px 28px 30px; border-bottom: 1px solid var(--line); background: var(--ivory); }
  [data-nav-enhanced] .mobile-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100svh - 78px); overflow-y: auto; }
  .mobile-nav a { display: flex; width: 100%; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 19px; text-align: left; }
  .hero { align-items: flex-start; height: calc(100svh - 79px); min-height: 640px; }
  .hero-content { padding: 90px 32px 0; }
  .hero h1 { font-size: clamp(44px, 7.3vw, 60px); }
  .hero-media img { object-position: 58% 50%; }
  .hero-shade { background: linear-gradient(90deg, rgb(10 31 21 / 80%), rgb(10 31 21 / 20%)), linear-gradient(0deg, rgb(6 21 14 / 50%), transparent 55%); }
  .hero-bottom { left: 32px; right: 32px; }
  .hero p { font-size: 18px; max-width: 470px; }
  .principle-strip { padding: 28px 32px; gap: 22px; }
  .principle-strip > div { gap: 13px; }
  .principle-strip p { font-size: 14px; }
  .section { padding: 72px 32px; }
  .section-heading { display: block; margin-bottom: 40px; }
  .section-heading > p { width: auto; max-width: 560px; margin-top: 25px; }
  .capability-explorer[data-enhanced] { grid-template-columns: 1fr; }
  .capability-tabs { display: grid; grid-template-columns: repeat(2, 1fr); padding: 0; }
  .capability-tabs button { align-items: flex-start; gap: 11px; padding: 25px 15px; border-bottom: 2px solid transparent; border-right: 1px solid var(--line); }
  .capability-tabs button:last-child { border-bottom: 2px solid transparent; border-right: 0; }
  .capability-tabs button[aria-selected="true"] { border-bottom-color: var(--forest); }
  .capability-tabs strong { font-size: 18px; }
  .capability-tabs small { font-size: 14px; }
  .capability-tabs svg { display: none; }
  .cap-panel { min-height: 0; padding: 38px; }
}

@media (max-width: 600px) {
  .button:not(.button-small) { min-height: 56px; padding: 14px 22px; font-size: 16px; }
  html { scroll-padding-top: 92px; }
  .nav-wrap { height: 76px; padding: 0 20px; gap: 12px; }
  .wordmark > span { font-size: 26px; }
  .nav-contact { min-height: 44px; padding: 9px 12px; font-size: 14px; gap: 12px; }
  .nav-contact svg { width: 17px; }
  .hero { height: calc(100svh - 77px); min-height: 640px; }
  .hero-content { padding: 56px 24px 84px; }
  .hero-content .eyebrow { font-size: 12px; letter-spacing: 1.3px; margin-bottom: 30px; }
  .hero h1 { font-size: clamp(40px, 11.8vw, 46px); line-height: 1.01; margin-bottom: 25px; }
  .hero p { font-size: 16px; line-height: 1.6; max-width: 340px; }
  .desktop-break { display: none; }
  /* Familjen is wider than DM Sans was: phone headings balance their lines, and a heading whose forced break
     would strand a word marks that <br> as .desktop-break (with a space before it), as above. */
  h1, h2 { text-wrap: balance; }
  .hero-actions { margin-top: 27px; gap: 23px; flex-wrap: wrap; }
  .hero-actions .text-button { min-height: 44px; font-size: 14px; gap: 10px; }
  .hero-media { inset: 0; top: 40%; height: 66%; width: 100%; }
  .hero-media img { object-position: 78% 48%; object-fit: cover; }
  .hero[data-motion] .hero-media img { animation-duration: 25s; }
  .hero-shade { background: linear-gradient(180deg, var(--dark) 0%, var(--dark) 25%, rgb(21 58 43 / 92%) 39%, rgb(21 58 43 / 10%) 64%, rgb(9 24 15 / 38%) 100%); }   /* --dark at an alpha */
  .hero-bottom { left: 24px; right: 16px; bottom: 20px; gap: 12px; }
  .hero-bottom > span { max-width: 170px; font-size: 12px; letter-spacing: 1.2px; }
  .motion-toggle { flex: none; gap: 7px; }
  .principle-strip { padding: 27px 24px; gap: 19px; grid-template-columns: 1fr; }
  .principle-strip > div { align-items: baseline; padding-right: 0; border-right: 0; gap: 20px; }
  .principle-strip p { font-size: 16px; }
  .section { padding: 62px 24px; }
  h2 { font-size: clamp(40px, 10vw, 52px); }
  .section-heading .eyebrow { margin-bottom: 20px; }
  .section-heading > p { margin-top: 24px; font-size: 16px; }
  .capability-tabs { display: block; }
  .section.capabilities { padding-top: 42px; padding-bottom: 42px; }
  .capability-tabs button, .capability-tabs button:last-child { gap: 16px; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-tabs button[aria-selected="true"] { border-bottom-color: var(--forest); }
  .capability-tabs strong { font-size: 20px; }
  .capability-tabs svg { display: block; }
  .cap-panel { padding: 29px 24px 33px; }
  .cap-panel h3 { font-size: 29px; }
  .cap-panel p, .clean-list li { font-size: 16px; }
}

@media (max-width: 360px) {
  .nav-wrap { padding: 0 16px; gap: 8px; }
  .nav-contact { gap: 8px; padding: 9px 10px; }
  .nav-contact svg { display: none; }
  .hero-bottom { left: 20px; right: 12px; }
  .hero-bottom > span { max-width: 156px; letter-spacing: .5px; }
  .motion-toggle { padding: 4px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-media { transform: none !important; }
}
