/* ==========================================================================
   NuBlu Energy  |  site.css
   One stylesheet for the whole site. No framework, no build step.
   Edit the design tokens in :root to change colors, type, and spacing.
   ========================================================================== */

/* ---------- Self-hosted font (SIL OFL, see assets/fonts/LICENSE) ---------- */
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/libre-franklin-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand (sampled from the official logo artwork) */
  --navy: #243C82;
  --navy-700: #1C3070;
  --navy-800: #152457;
  --navy-900: #0E1A40;
  --cyan: #00AEF0;
  --cyan-600: #0092CC;
  --cyan-700: #0B6FA4;   /* cyan dark enough for small text on white (5.3:1) */
  --cyan-100: #E1F5FD;

  /* Neutrals */
  --ink: #141A2B;
  --ink-2: #3C4557;
  --muted: #65708A;
  --line: #E1E6F0;
  --paper: #FFFFFF;
  --paper-2: #F4F6FA;
  --paper-3: #E9EDF5;

  /* Type */
  --font: "Libre Franklin", "Franklin Gothic Medium", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --fs-0: clamp(0.84rem, 0.8rem + 0.2vw, 0.92rem);
  --fs-1: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-2: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-3: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-4: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  --fs-5: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgba(14, 26, 64, 0.06), 0 2px 10px rgba(14, 26, 64, 0.06);
  --shadow-2: 0 10px 30px rgba(14, 26, 64, 0.12);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan-700); }
a[href^="tel:"] { white-space: nowrap; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: var(--fs-5); }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-2); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-0); }
th, td { text-align: left; padding: 0.7em 0.8em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-2); font-weight: 700; background: var(--paper-2); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Utilities ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--navy-900); color: #DCE3F3; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a { color: #fff; }
.section--dark a:hover { color: var(--cyan); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { font-size: var(--fs-2); color: var(--muted); margin: 0; }
.section--dark .section-head p { color: #B6C2DE; }
.eyebrow { display: inline-block; font-size: var(--fs-0); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-700); margin-bottom: 0.9em; }
.section--dark .eyebrow { color: var(--cyan); }
.lead { font-size: var(--fs-2); color: var(--ink-2); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: var(--fs-0); letter-spacing: 0.01em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--accent { background: var(--cyan); color: var(--navy-900); }
.btn--accent:hover { background: #2BBDF6; color: var(--navy-900); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--sm { min-height: 38px; padding: 6px 14px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "\2192"; transition: transform 0.18s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link, .nav__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); font-weight: 600; text-decoration: none; font-size: var(--fs-0); background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav__link:hover, .nav__btn:hover, .nav__link[aria-current="page"] { color: var(--navy); background: var(--paper-2); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 8px 8px 0 0; }
.nav__btn svg { width: 14px; height: 14px; transition: transform 0.18s; }
.nav__item { position: relative; }
.nav__item.is-open .nav__btn svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-2); padding: 10px; display: none; z-index: 50;
}
.nav__item.is-open .nav__menu { display: block; }
.nav__menu a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--fs-0); }
.nav__menu a small { display: block; font-weight: 400; color: var(--muted); font-size: 0.85em; }
.nav__menu a:hover { background: var(--paper-2); color: var(--navy); }
.nav__menu .nav__group { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; font-weight: 700; }
/* Two-level Products menu: group headings on the left, the group's products fly out on the right */
.nav__menu--fly { display: none; background: transparent; border: 0; box-shadow: none; padding: 0; min-width: 0; }
.nav__item.is-open .nav__menu--fly { display: flex; align-items: flex-start; gap: 8px; }
.fly__groups, .fly__panels { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); padding: 10px; }
.fly__groups { width: 272px; }
.fly__panels { width: 320px; }
.fly__all { border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 12px !important; border-radius: 8px 8px 0 0 !important; }
.fly__group {
  display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 11px 12px; border-radius: 8px;
  background: none; border: 0; font: inherit; font-weight: 600; font-size: var(--fs-0); color: var(--ink); cursor: pointer;
}
.fly__group svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.fly__group:hover, .fly__group.is-active { background: var(--paper-2); color: var(--navy); }
.fly__group.is-active svg { color: var(--navy); }
.fly__panel .nav__group { padding-top: 6px; }
.fly__viewall { display: inline-flex !important; margin: 10px 12px 4px; padding: 0 !important; font-weight: 700 !important; color: var(--navy) !important; border-top: 1px solid var(--line); padding-top: 12px !important; width: calc(100% - 24px); border-radius: 0 !important; }
.fly__viewall:hover { background: none !important; text-decoration: underline; }
@media (max-width: 880px) {
  .nav__item.is-open .nav__menu--fly { display: block; }
  .fly__groups, .fly__panels { width: auto; border: 0; box-shadow: none; padding: 0; }
  .fly__group { border-bottom: 1px solid var(--line); border-radius: 0; }
  .fly__group.is-active svg { transform: rotate(90deg); }
  .fly__panel { padding: 4px 0 10px 12px; border-bottom: 1px solid var(--line); }
}
/* PRS product mark: brochure artwork for the G8000, wordmark plus model badge for the other sizes */
.prs-mark { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 14px; background: #fff; border-radius: 12px; padding: 10px 16px; margin: 10px 0 16px; }
.prs-mark img { height: 64px; width: auto; display: block; }
.prs-mark .prs-mark__word { height: 44px; }
.prs-badge { font-weight: 800; font-size: 1.9rem; letter-spacing: 0.02em; color: #F0411E; line-height: 1; border: 3px solid #F0411E; border-radius: 10px; padding: 4px 10px 3px; }
.prs-badge b { font-weight: 500; }
@media (max-width: 600px) { .prs-mark img { height: 48px; } .prs-mark .prs-mark__word { height: 34px; } .prs-badge { font-size: 1.4rem; } }
.nav__cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 1020px) {
  .nav__cta { display: none; }
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 40px; overflow-y: auto; gap: 2px; }
  .nav.is-open { display: flex; }
  .nav__link, .nav__btn { padding: 14px 10px; font-size: 1.05rem; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"] { box-shadow: none; border-left: 3px solid var(--cyan); }
  .nav__menu { position: static; box-shadow: none; border: 0; padding: 4px 0 8px 12px; min-width: 0; }
  .nav__cta { display: inline-flex; margin: 16px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; background: var(--navy-900);
  min-height: clamp(520px, 72vh, 760px); display: grid; align-items: end;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,26,64,0.35) 0%, rgba(14,26,64,0.55) 45%, rgba(14,26,64,0.92) 100%);
}
.hero .container { padding-block: clamp(48px, 8vw, 96px); }
.hero__inner { max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero__lead { font-size: var(--fs-2); color: #D4DCEF; max-width: 640px; margin-bottom: 1.6em; }
.hero .eyebrow { color: var(--cyan); }
.hero--compact { min-height: 0; }
.hero--compact .container { padding-block: clamp(40px, 6vw, 72px); }
.hero--compact h1 { font-size: var(--fs-4); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-0); color: #B6C2DE; margin-bottom: 14px; list-style: none; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #7F8FB8; }
.breadcrumb a { color: #DCE3F3; text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb li + li { margin-top: 0; }

/* ---------- Stats band ---------- */
.stats { background: var(--navy); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 28px; }
.stat strong { display: block; font-size: var(--fs-4); font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.stat span { display: block; margin-top: 6px; color: #C9D4EE; font-size: var(--fs-0); max-width: 22ch; line-height: 1.35; }
@media (max-width: 760px) { .stats .container { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.card__media { aspect-ratio: 4 / 3; background: var(--paper-3); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { font-size: var(--fs-2); margin: 0; }
.card__body p { margin: 0; color: var(--ink-2); font-size: var(--fs-0); }
.card__link { margin-top: auto; padding-top: 6px; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__tag { position: absolute; top: 12px; left: 12px; background: var(--navy-900); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; z-index: 2; }
.card__tag--jv { background: var(--cyan); color: var(--navy-900); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 0.78rem; font-weight: 600; color: var(--navy); background: var(--cyan-100); padding: 4px 9px; border-radius: 999px; margin: 0; }
.section--dark .chips li { background: rgba(255,255,255,0.1); color: #fff; }

/* Simple feature tiles */
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.tile h3 { font-size: var(--fs-2); margin-bottom: 0.4em; }
.tile p { margin: 0; color: var(--ink-2); font-size: var(--fs-0); }
.tile__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--cyan-100); color: var(--navy); display: grid; place-items: center; margin-bottom: 14px; }
.tile__icon svg { width: 24px; height: 24px; }
.section--dark .tile { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.section--dark .tile p { color: #C9D4EE; }
.section--dark .tile__icon { background: rgba(0,174,240,0.18); color: var(--cyan); }
.tile--link { text-decoration: none; color: inherit; display: block; transition: transform 0.2s, box-shadow 0.2s; }
.tile--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }

/* Split (text + image) */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 4 / 3; background: var(--paper-3); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; margin: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan-100) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23243C82' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 11px no-repeat;
}
.section--dark .checklist li::before { background-color: rgba(0,174,240,0.2); }
.checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .checklist--2 { grid-template-columns: 1fr; } }

/* Spec table */
.spec { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.spec table { font-size: var(--fs-0); }
.spec th { width: 38%; background: var(--paper-2); font-weight: 700; color: var(--ink); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec caption { caption-side: top; text-align: left; padding: 14px 16px; font-weight: 800; font-size: var(--fs-2); background: #fff; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.table-wrap table { min-width: 560px; }
.table-wrap th { white-space: nowrap; }

/* Product page layout */
.product { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.product__aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.aside-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.aside-box h4, .aside-box .aside-h { font-size: var(--fs-1); margin-bottom: 10px; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--fs-0); margin: 0; }
.aside-box li:first-child { border-top: 0; padding-top: 0; }
.aside-box li a { text-decoration: none; font-weight: 600; }
.aside-box--dark { background: var(--navy-900); color: #DCE3F3; border-color: transparent; }
.aside-box--dark h4, .aside-box--dark .aside-h { color: #fff; }
.aside-box--dark p { color: #C9D4EE; font-size: var(--fs-0); }
.key-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.key-facts div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.key-facts strong { display: block; font-size: var(--fs-2); color: var(--navy); line-height: 1.2; }
.key-facts span { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 960px) { .product { grid-template-columns: 1fr; } .product__aside { position: static; } }
.prose h2 { font-size: var(--fs-3); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-2); margin-top: 1.6em; }
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.why div { border-left: 3px solid var(--cyan); padding-left: 16px; }
.why h3 { font-size: var(--fs-1); margin: 0 0 0.3em; }
.why p { margin: 0; color: var(--ink-2); font-size: var(--fs-0); }
@media (max-width: 700px) { .why { grid-template-columns: 1fr; } }
.jv-lockup { display: inline-flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; padding: 8px 14px 8px 8px; margin-top: 18px; font-size: var(--fs-0); color: #DCE3F3; }
.jv-lockup img { height: 40px; width: auto; border-radius: 8px; background: #fff; padding: 4px; }
.jv-lockup strong { color: #fff; display: block; }
.callout { background: var(--cyan-100); border-left: 4px solid var(--cyan); border-radius: var(--radius); padding: 18px 20px; font-size: var(--fs-0); }
.callout p:last-child { margin: 0; }

/* Family comparison table */
.family { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.family article { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: #fff; }
.family h3 { font-size: var(--fs-2); margin-bottom: 4px; }
.family .muted { font-size: var(--fs-0); margin-bottom: 12px; }
.family ul { list-style: none; padding: 0; margin: 0; }
.family li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--fs-0); margin: 0; }
.family li span:last-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
@media (max-width: 860px) { .family { grid-template-columns: 1fr; } }

/* Projects filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button { font-family: inherit; font-size: var(--fs-0); font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.filter button:hover { border-color: var(--navy); color: var(--navy); }
.filter button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.project-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .project-list { grid-template-columns: 1fr; } }
.project { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.project[hidden] { display: none; }
.project h3 { font-size: var(--fs-1); margin: 0; }
.project .meta { font-size: 0.8rem; color: var(--muted); }
.project p { margin: 0; font-size: var(--fs-0); color: var(--ink-2); }
.project .chips { margin-top: auto; padding-top: 8px; }
.empty-note { color: var(--muted); font-size: var(--fs-0); }

/* Case study */
.snapshot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.snapshot div { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.snapshot span { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.snapshot strong { font-size: var(--fs-1); }
@media (max-width: 760px) { .snapshot { grid-template-columns: repeat(2, 1fr); } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 28px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px #fff; }
.timeline time { font-weight: 800; color: var(--navy); display: block; font-size: var(--fs-0); letter-spacing: 0.04em; }
.timeline p { margin: 2px 0 0; color: var(--ink-2); font-size: var(--fs-0); }

/* Logo strip (text) */
.logos { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; align-items: center; }
.logos span { font-weight: 800; font-size: var(--fs-1); letter-spacing: 0.01em; color: var(--muted); }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--navy-900), var(--navy) 60%, #1E4FA3); color: #fff; }
.cta .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding-block: clamp(48px, 7vw, 80px); }
.cta h2 { color: #fff; margin-bottom: 0.3em; }
.cta p { color: #D4DCEF; margin: 0; font-size: var(--fs-2); }
.cta .cluster { justify-content: flex-end; }
@media (max-width: 860px) { .cta .container { grid-template-columns: 1fr; } .cta .cluster { justify-content: flex-start; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: var(--fs-0); margin-bottom: 6px; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #C8D0E0; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--cyan); outline-offset: 1px; border-color: var(--navy); }
.field textarea { min-height: 150px; resize: vertical; }
.form__note { font-size: var(--fs-0); color: var(--muted); }
.form__status { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: var(--fs-0); }
.form__status.is-ok { display: block; background: #E6F7EC; color: #145A32; }
.form__status.is-error { display: block; background: #FDECEC; color: #8A1C1C; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.contact-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.contact-card h3 { font-size: var(--fs-2); }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-card dd { margin: 2px 0 0; font-size: var(--fs-1); }
.contact-card dd a { text-decoration: none; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #B6C2DE; font-size: var(--fs-0); }
.site-footer a { color: #DCE3F3; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 40px; }
.footer-grid h3 { color: #fff; font-size: var(--fs-0); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 8px; }
.logo-plate { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
.logo-plate img { height: 46px; width: auto; }
.footer-address { line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 18px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; font-size: 0.82rem; color: #8F9DC2; }
.footer-bottom a { color: #B6C2DE; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.notice { background: #FFF6E0; border: 1px solid #F3D98A; color: #6B4E00; border-radius: var(--radius); padding: 12px 16px; font-size: var(--fs-0); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row a { text-decoration: none; font-weight: 600; font-size: var(--fs-0); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.pill-row a:hover { border-color: var(--navy); }
.legal h2 { font-size: var(--fs-3); margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); }
figure.photo { margin: 0; }
figure.photo img { border-radius: var(--radius-lg); }
figure.photo figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 800; color: var(--cyan-700); letter-spacing: 0.08em; font-size: var(--fs-0); margin-bottom: 8px; }
.steps h3 { font-size: var(--fs-1); margin-bottom: 4px; }
.steps p { margin: 0; font-size: var(--fs-0); color: var(--ink-2); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .cta, .nav-toggle, .btn { display: none !important; }
  .hero { min-height: 0; color: #000; background: none; }
  .hero::after, .hero__media { display: none; }
  .hero h1 { color: #000; }
}
