/* ==========================================================================
   Feberto Technique Ltd. — site styles
   Palette taken from the corporate profile cover: deep navy, signal orange,
   and the red / blue pair from the logo.
   ========================================================================== */

:root {
  --navy-900: #0e182c;
  --navy: #14223d;
  --navy-700: #1b2d52;
  --navy-500: #2b4170;
  --orange: #e4843f;
  --orange-ink: #a9561a;          /* orange that passes contrast on light paper */
  --red: #e3262b;
  --blue: #2453a6;

  --paper: #f4f1eb;
  --paper-2: #ebe6dc;
  --white: #ffffff;
  --ink: #14223d;
  --ink-soft: #4a5468;
  --line: #d8d1c3;
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--orange); color: var(--navy); padding: 10px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--navy { background: var(--navy); color: #dfe4ee; }
.section--deep { background: var(--navy-900); color: #dfe4ee; }
.section--sand { background: var(--paper-2); }
.section--white { background: var(--white); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .98;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: .005em;
}
.section--navy .h2, .section--deep .h2 { color: var(--white); }
.h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.25; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.section--navy .lede, .section--deep .lede { color: #b9c2d4; }
.muted { color: var(--ink-soft); }
.accent { color: var(--orange); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--red); flex: none; }
.eyebrow--light { color: var(--orange); }
.section--navy .eyebrow, .section--deep .eyebrow { color: var(--orange); }

.mono { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* Two-tone rule from the cover slide */
.rule {
  display: block; width: 132px; height: 4px; border: 0; margin: 24px 0;
  background: linear-gradient(90deg, var(--red) 0 58%, var(--blue) 58% 100%);
}

/* Section heading block */
.head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 64px); }
.head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 48px; }
.head--split .lede { justify-self: end; }
@media (max-width: 860px) {
  .head--split { grid-template-columns: 1fr; gap: 16px; }
  .head--split .lede { justify-self: start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px;
  font: 600 .95rem/1 var(--font-body);
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  background: var(--orange); color: var(--navy-900);
  border: 1px solid var(--orange); border-radius: var(--radius);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
}
.btn:hover { background: #f0975a; border-color: #f0975a; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn--dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn--sm { padding: 11px 16px; font-size: .82rem; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; text-decoration: none; letter-spacing: .02em;
  border-bottom: 2px solid var(--orange); padding-bottom: 4px;
}
.link:hover .arr { transform: translateX(4px); }
.link .arr { transition: transform .25s var(--ease); }

/* ---------- Drawing-sheet corner brackets ---------- */
.brackets { position: relative; }
.brackets::before, .brackets::after {
  content: ""; position: absolute; width: 28px; height: 28px; pointer-events: none; z-index: 2;
}
.brackets::before { top: 0; left: 0; border-top: 3px solid var(--red); border-left: 3px solid var(--red); }
.brackets::after { bottom: 0; right: 0; border-bottom: 3px solid var(--blue); border-right: 3px solid var(--blue); }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: var(--navy-900); color: #a9b3c7;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
}
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar__links { display: flex; gap: 28px; }
@media (max-width: 720px) {
  .topbar__in > span:first-child { display: none; }
  .topbar__links { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (max-width: 420px) { .topbar__links a:last-child { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img {
  width: 46px; height: 46px; background: var(--white); border-radius: 3px; padding: 3px;
}
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name strong {
  font-family: var(--font-display); font-weight: 400; font-size: 1.32rem;
  text-transform: uppercase; letter-spacing: .02em; color: var(--orange);
}
.brand__name small {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: #a9b3c7; margin-top: 5px;
}

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a:not(.btn) {
  position: relative; padding: 10px 14px;
  color: #d3d9e5; text-decoration: none; font-weight: 500; font-size: .98rem;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__menu a:not(.btn):hover { color: var(--white); }
.nav__menu a:not(.btn):hover::after,
.nav__menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav__menu a[aria-current="page"] { color: var(--white); }
.nav__menu .btn { margin-left: 14px; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }

@media (max-width: 980px) {
  .nav-burger {
    display: grid; place-items: center; width: 46px; height: 46px; cursor: pointer;
    border: 1px solid var(--line-dark); border-radius: var(--radius);
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    display: block; width: 20px; height: 2px; background: var(--white); position: relative;
    transition: transform .25s var(--ease), background .2s;
  }
  .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
  .nav-burger span::before { top: -6px; }
  .nav-burger span::after { top: 6px; }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--orange); outline-offset: 3px; }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-top: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 24px;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s var(--ease), visibility .35s;
    box-shadow: 0 24px 40px rgba(0,0,0,.25);
  }
  .nav-toggle:checked ~ .nav__menu { max-height: 560px; visibility: visible; }
  .nav__menu a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.1rem; }
  .nav__menu a:not(.btn)::after { left: 0; right: auto; width: 32px; bottom: -1px; }
  .nav__menu .btn { margin: 20px 0 0; justify-content: center; }
}

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  background: var(--navy);
  min-height: min(88vh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,24,44,.97) 0%, rgba(20,34,61,.88) 38%, rgba(20,34,61,.35) 75%, rgba(20,34,61,.2) 100%),
    linear-gradient(0deg, rgba(14,24,44,.9) 0%, rgba(14,24,44,0) 40%);
}
.hero__in { padding-top: clamp(72px, 12vh, 140px); padding-bottom: 56px; }
.hero__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.9rem, 8.4vw, 7rem); line-height: .94; letter-spacing: .003em;
  max-width: 11ch; margin: 0;
}
.hero__title span { color: var(--orange); }
.hero__lede { margin-top: 28px; max-width: 52ch; font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: #c9d0dd; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.pillars { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.pillars li {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(27,45,82,.85); padding: 10px 16px;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: #e4e8f0;
}
.pillars li::before { content: ""; width: 7px; height: 7px; background: var(--red); }

.hero__facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.hero__facts > div { padding: 26px 24px 30px 0; }
.hero__facts > div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.hero__facts strong {
  display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1; color: var(--white);
}
.hero__facts span { display: block; margin-top: 8px; font-size: .92rem; color: #a9b3c7; }
@media (max-width: 760px) {
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__facts > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* ---------- Inner-page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; color: var(--white); background: var(--navy);
  padding: clamp(80px, 12vw, 150px) 0 clamp(48px, 6vw, 72px); overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14,24,44,.96) 0%, rgba(20,34,61,.86) 45%, rgba(20,34,61,.45) 100%);
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.8rem, 7.5vw, 5.8rem); line-height: .95; margin: 0; max-width: 14ch;
}
.page-hero h1 span { color: var(--orange); }
.page-hero p.lede { color: #c9d0dd; margin-top: 24px; }
.page-hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #a9b3c7;
}
.page-hero__meta b { color: var(--white); font-weight: 500; }

/* ==========================================================================
   Home: intro
   ========================================================================== */
.intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.intro__statement {
  font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.22; font-weight: 500; letter-spacing: -.01em; margin: 0 0 28px;
}
.intro__statement em { font-style: normal; color: var(--orange-ink); }
.intro__figure { position: relative; }
.intro__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.titleblock {
  position: absolute; left: -1px; bottom: -1px; background: var(--white); color: var(--ink);
  display: grid; grid-template-columns: auto auto; border: 1px solid var(--ink);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
}
.titleblock > span { padding: 8px 12px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.titleblock > span:nth-child(2n) { border-right: 0; }
.titleblock > span:nth-last-child(-n+2) { border-bottom: 0; }
.titleblock b { display: block; font-weight: 600; font-size: .78rem; letter-spacing: .04em; }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .intro__figure img { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Service list (numbered rows)
   ========================================================================== */
.svc-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.svc-layout__aside { position: sticky; top: 112px; }
.svc-layout__aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 36px; }
@media (max-width: 900px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-layout__aside { position: static; }
}
.svc-list { border-top: 1px solid var(--line); }
.section--navy .svc-list, .section--deep .svc-list { border-color: var(--line-dark); }
.svc {
  display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease);
}
.section--navy .svc, .section--deep .svc { border-color: var(--line-dark); }
.svc__no { font-family: var(--font-mono); font-size: .85rem; color: var(--orange-ink); padding-top: 5px; letter-spacing: .06em; }
.section--navy .svc__no, .section--deep .svc__no { color: var(--orange); }
.svc h3 { font-size: 1.35rem; font-weight: 600; text-transform: none; }
.section--navy .svc h3, .section--deep .svc h3 { color: var(--white); }
.svc p { grid-column: 2; margin: 0; color: var(--ink-soft); max-width: 52ch; }
.section--navy .svc p, .section--deep .svc p { color: #aeb8cb; }
.svc:hover { padding-left: 8px; }
@media (max-width: 520px) { .svc { grid-template-columns: 44px 1fr; } }

/* ==========================================================================
   Project cards
   ========================================================================== */
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.projects-grid > .project { grid-column: span 4; }
.projects-grid--feature > .project:nth-child(1) { grid-column: span 7; }
.projects-grid--feature > .project:nth-child(2) { grid-column: span 5; }
.projects-grid--feature > .project:nth-child(3) { grid-column: span 5; }
.projects-grid--feature > .project:nth-child(4) { grid-column: span 7; }
@media (max-width: 960px) {
  .projects-grid > .project,
  .projects-grid--feature > .project:nth-child(n) { grid-column: span 6; }
}
@media (max-width: 620px) {
  .projects-grid { grid-template-columns: 1fr; gap: 36px; }
  .projects-grid > .project,
  .projects-grid--feature > .project:nth-child(n) { grid-column: 1 / -1; }
}

.project { display: flex; flex-direction: column; }
.project__media { position: relative; overflow: hidden; background: var(--navy); }
.project__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .7s var(--ease);
}
.projects-grid--feature .project__media img { aspect-ratio: 16 / 11; }
.project:hover .project__media img { transform: scale(1.04); }
.project__tag {
  position: absolute; top: 0; left: 0;
  background: var(--navy); color: var(--white);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; padding: 8px 12px;
}
.project__value {
  position: absolute; right: 0; bottom: 0;
  background: var(--orange); color: var(--navy-900);
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1; padding: 12px 16px 10px;
}
.project__body { padding-top: 18px; display: grid; gap: 6px; }
.project__body h3 { font-size: 1.28rem; font-weight: 600; }
.project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-soft); font-size: .95rem; margin: 0; }
.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.status--live::before { background: var(--orange); box-shadow: 0 0 0 3px rgba(228,132,63,.25); }
.project__note { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* CSS-only filter for the projects page */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter input { position: absolute; opacity: 0; pointer-events: none; }
.filter label {
  cursor: pointer; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 500; font-size: .95rem; background: var(--white);
  transition: background .2s, color .2s, border-color .2s;
}
.filter label span { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-soft); margin-left: 6px; }
.filter label:hover { border-color: var(--navy); }
.filter input:checked + label { background: var(--navy); color: var(--white); border-color: var(--navy); }
.filter input:checked + label span { color: var(--orange); }
.filter input:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 2px; }
.portfolio:has(#f-done:checked) .project:not(.is-done),
.portfolio:has(#f-live:checked) .project:not(.is-live) { display: none; }

/* ==========================================================================
   Stats / fact tiles
   ========================================================================== */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts > div { padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy .facts, .section--navy .facts > div,
.section--deep .facts, .section--deep .facts > div { border-color: var(--line-dark); }
.facts strong {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 4.6vw, 3.6rem); line-height: 1; color: var(--navy);
}
.section--navy .facts strong, .section--deep .facts strong { color: var(--orange); }
.facts h3 { margin-top: 18px; font-family: var(--font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.section--navy .facts h3, .section--deep .facts h3 { color: var(--white); }
.facts p { margin-top: 10px; color: var(--ink-soft); font-size: .97rem; }
.section--navy .facts p, .section--deep .facts p { color: #aeb8cb; }
.facts--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .facts, .facts--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .facts, .facts--3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Split media block
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split--wide-media { grid-template-columns: 1.15fr 1fr; }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.split__media figcaption {
  display: flex; justify-content: space-between; gap: 16px; padding-top: 12px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.section--navy .split__media figcaption, .section--deep .split__media figcaption { color: #8d98ae; }
@media (max-width: 900px) {
  .split, .split--wide-media { grid-template-columns: 1fr; }
  .split--reverse-sm .split__media { order: -1; }
}

/* ==========================================================================
   Quote
   ========================================================================== */
.quote { margin: 0; position: relative; }
.quote p {
  font-size: clamp(1.45rem, 2.8vw, 2.25rem); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; margin: 0;
}
.quote p::before {
  content: "\201C"; display: block; font-family: var(--font-display); font-size: 5rem; line-height: .7;
  color: var(--orange); margin-bottom: 12px;
}
.section--navy .quote p, .section--deep .quote p { color: var(--white); }
.quote footer { margin-top: 24px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.section--navy .quote footer, .section--deep .quote footer { color: #8d98ae; }

/* ==========================================================================
   Advantage list (two columns of numbered points)
   ========================================================================== */
.adv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(40px, 6vw, 88px); }
.adv__group h3 {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); padding-bottom: 16px; border-bottom: 2px solid currentColor; margin-bottom: 4px;
}
.adv__item { display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.adv__item b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--orange); }
.adv__item h4 { font-size: 1.2rem; font-weight: 600; color: var(--white); }
.adv__item p { grid-column: 2; margin: 4px 0 0; color: #aeb8cb; }
@media (max-width: 860px) { .adv { grid-template-columns: 1fr; gap: 48px; } }

/* ==========================================================================
   Values
   ========================================================================== */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: v; }
.value { background: var(--white); padding: 36px 32px 40px; border-top: 4px solid var(--navy); position: relative; }
.value:nth-child(1) { border-top-color: var(--red); }
.value:nth-child(2) { border-top-color: var(--orange); }
.value:nth-child(3) { border-top-color: var(--blue); }
.value__no { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; color: var(--ink-soft); }
.value h3 { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; text-transform: uppercase; margin: 14px 0 16px; }
.value p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--orange) 50%, var(--blue));
}
.tl { position: relative; padding-right: 28px; }
.tl__dot {
  display: block; width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--navy);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500; position: relative; z-index: 1;
}
.tl:last-child .tl__dot { background: var(--navy); color: var(--orange); }
.tl__year { display: block; margin-top: 24px; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--navy); }
.tl h3 { margin: 10px 0 10px; font-family: var(--font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }
.tl p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; gap: 36px; padding-left: 72px; }
  .timeline::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--red), var(--orange) 50%, var(--blue)); }
  .tl { padding-right: 0; }
  .tl__dot { position: absolute; left: -72px; top: 0; }
  .tl__year { margin-top: 0; }
}

/* ==========================================================================
   Founder / leader feature
   ========================================================================== */
.leader { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.leader__plate {
  aspect-ratio: 4 / 5; background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between; padding: 24px;
  position: relative; overflow: hidden;
}
.leader__plate::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .5; pointer-events: none;
}
.leader__plate > * { position: relative; z-index: 1; }
.leader__initials { font-family: var(--font-display); font-size: 6.5rem; line-height: .9; color: var(--orange); }
.leader__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; line-height: 1; }
.leader__creds { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; color: var(--orange-ink); margin: 14px 0 6px; }
.leader__role { font-weight: 600; margin-bottom: 20px; }
@media (max-width: 760px) {
  .leader { grid-template-columns: 1fr; }
  .leader__plate { aspect-ratio: auto; min-height: 220px; max-width: 360px; }
}

/* ==========================================================================
   Organisational structure
   ========================================================================== */
.org { --c: var(--line-dark); }
.org__head {
  max-width: 520px; margin: 0 auto; text-align: center; background: var(--orange); color: var(--navy-900);
  padding: 22px 24px; position: relative;
}
.org__head h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; }
.org__head p { margin: 6px 0 0; font-size: .97rem; }
.org__stem { width: 2px; height: 40px; margin: 0 auto; background: rgba(255,255,255,.3); }
.org__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; position: relative; padding-top: 40px;
}
.org__cols::before {
  content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 40px;
  border: 2px solid rgba(255,255,255,.3); border-bottom: 0;
}
.org__col h4 {
  font-family: var(--font-mono); font-weight: 500; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  text-align: center; color: var(--white); background: var(--navy-700); padding: 14px; margin-bottom: 20px;
}
.org__col ol { display: grid; gap: 12px; padding-left: 24px; border-left: 2px solid rgba(255,255,255,.18); margin-left: 12px; }
.org__node { position: relative; padding: 18px 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); }
.org__node::before { content: ""; position: absolute; left: -26px; top: 50%; width: 24px; height: 2px; background: rgba(255,255,255,.18); }
.org__node h5 { margin: 0; font-size: 1.02rem; font-weight: 600; color: var(--white); letter-spacing: .01em; }
.org__node p { margin: 4px 0 0; font-size: .92rem; color: #aeb8cb; }
@media (max-width: 760px) {
  .org__cols { grid-template-columns: 1fr; padding-top: 0; gap: 40px; }
  .org__cols::before { display: none; }
}

/* ==========================================================================
   People
   ========================================================================== */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.person__plate {
  aspect-ratio: 1 / 1; background: var(--navy); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.person__plate::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 20px 20px; opacity: .55;
}
.person__initials { position: relative; font-family: var(--font-display); font-size: 4.4rem; color: var(--white); line-height: 1; letter-spacing: .02em; }
.person:nth-child(4n+1) .person__initials { color: var(--orange); }
.person__no {
  position: absolute; z-index: 1; top: 12px; left: 12px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; color: #8d98ae;
}
.person__body { padding: 18px 18px 22px; display: grid; gap: 4px; }
.person__body h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.person__role { color: var(--ink); font-size: .96rem; margin: 0; }
.person__qual { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); margin: 6px 0 0; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .people { grid-template-columns: repeat(2, 1fr); gap: 14px; } .person__initials { font-size: 3.2rem; } }
@media (max-width: 380px) { .people { grid-template-columns: 1fr; } }

.group-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 14px; margin: 0 0 24px; border-bottom: 2px solid var(--navy);
}
.group-label h3 { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.group-label span { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); }

.affil { display: flex; flex-wrap: wrap; gap: 10px; }
.affil li {
  border: 1px solid var(--line-dark); padding: 10px 16px;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; color: var(--white);
}

/* ==========================================================================
   Divisions (Feberto Group)
   ========================================================================== */
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.division { padding: 32px 28px 36px 0; }
.division + .division { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.division__no { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; color: #8d98ae; }
.division h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; margin: 12px 0; color: var(--white); }
.division h3 span { color: var(--orange); }
.division p { color: #aeb8cb; margin: 0; }
@media (max-width: 860px) {
  .divisions { grid-template-columns: 1fr; }
  .division, .division + .division { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
}

/* ==========================================================================
   Interiors gallery
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery figure { position: relative; overflow: hidden; background: var(--navy); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--navy); color: var(--white);
  padding: 10px 14px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.gallery figcaption b { color: var(--orange); font-weight: 500; margin-right: 8px; }
.gallery figure:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery figure:nth-child(2) { grid-column: span 5; }
.gallery figure:nth-child(3) { grid-column: span 5; }
.gallery figure:nth-child(4) { grid-column: span 12; grid-row: span 1; }
.gallery figure:nth-child(4) img { object-position: center 35%; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery figure:nth-child(n) { grid-column: 1 / -1; grid-row: span 1; }
}

.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--navy); margin-top: 48px; }
.offer > div { padding: 28px 28px 8px 0; }
.offer > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.offer h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.offer p { color: var(--ink-soft); }
@media (max-width: 860px) {
  .offer { grid-template-columns: 1fr; }
  .offer > div, .offer > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Who we are — point grid
   ========================================================================== */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.point { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.point:nth-child(2n) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
.point h3 { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; display: flex; gap: 12px; }
.point h3::before { content: ""; width: 18px; height: 2px; background: var(--red); margin-top: .55em; flex: none; }
.point p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) {
  .points { grid-template-columns: 1fr; }
  .point, .point:nth-child(2n) { padding: 26px 0; border-left: 0; }
}

/* ==========================================================================
   Compliance strip
   ========================================================================== */
.reg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reg > div { background: var(--white); padding: 32px 28px; border: 1px solid var(--line); }
.reg span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.reg strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1.05; margin: 14px 0 12px; color: var(--navy); }
.reg p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .reg { grid-template-columns: 1fr; } }

/* ==========================================================================
   Specialisations chips
   ========================================================================== */
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spec figure { position: relative; overflow: hidden; }
.spec img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.spec figcaption { padding-top: 14px; font-weight: 600; font-size: 1.15rem; }
.spec figcaption small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .95rem; margin-top: 2px; }
@media (max-width: 760px) { .spec { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta { background: var(--orange); color: var(--navy-900); padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 360px; height: 360px;
  border: 2px solid rgba(14,24,44,.15); border-radius: 50%;
}
.cta__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; position: relative; z-index: 1; }
.cta h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: .98; }
.cta__lines { display: grid; gap: 8px; }
.cta__lines a { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; text-decoration: none; }
.cta__lines a:hover { text-decoration: underline; }
.cta .btn { margin-top: 20px; justify-self: start; }
@media (max-width: 760px) { .cta__in { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.office { padding: 28px 0; border-top: 1px solid var(--line); }
.office:first-child { border-top: 2px solid var(--navy); }
.office h3 { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 10px; }
.office address, .office p { font-size: 1.08rem; }
.office a { text-decoration: none; font-weight: 500; }
.office a:hover { text-decoration: underline; }
.office ul { display: grid; gap: 6px; }
.office li { display: flex; gap: 12px; align-items: baseline; }
.office li span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; color: var(--ink-soft); width: 56px; flex: none; }

.form { background: var(--white); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); }
.form h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 2.2rem; margin-bottom: 8px; }
.form > p { color: var(--ink-soft); margin-bottom: 28px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form__grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 3px rgba(36,83,166,.15); }
.form .btn { margin-top: 24px; }
.form small { display: block; margin-top: 14px; color: var(--ink-soft); font-size: .85rem; }

.map { margin-top: 0; aspect-ratio: 21 / 8; width: 100%; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }
@media (max-width: 760px) { .map { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: #a9b3c7; padding-top: clamp(56px, 8vw, 88px); font-size: .97rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.footer__grid h4 { font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer__grid a { text-decoration: none; }
.footer__grid a:hover { color: var(--white); }
.footer__grid ul { display: grid; gap: 8px; }
.footer__brand p { margin-top: 20px; max-width: 34ch; }
.footer__brand .brand__name strong { font-size: 1.5rem; }
.footer__base {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 24px 0 28px; border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
.footer__base::before {
  content: ""; position: absolute; left: 0; top: -2px; width: 180px; height: 3px;
  background: linear-gradient(90deg, var(--red) 0 60%, var(--blue) 60%);
}
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Misc utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }
.maxw { max-width: 62ch; }
.center { text-align: center; }
.stack > * + * { margin-top: 1em; }
.facts--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .facts--2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .facts--2 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Motion
   Everything here is progressive: browsers without support (or visitors who
   prefer reduced motion) simply see the finished, static page.
   ========================================================================== */

/* ---------- Page-to-page fade (cross-document view transitions) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
.topbar { view-transition-name: topbar; }
::view-transition-old(root) { animation: vt-out .22s ease-in both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Shared keyframes ---------- */
@keyframes fade-up { from { opacity: 0; translate: 0 28px; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes settle { from { transform: scale(1.08); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(228,132,63,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(228,132,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(228,132,63,0); }
}

/* ---------- Hero entrance on page load ---------- */
.hero__bg, .page-hero__bg { animation: settle 2.4s cubic-bezier(.2,.6,.2,1) both; transform-origin: 60% 40%; }
.hero__in > *, .page-hero .container > * { animation: fade-up .9s var(--ease) both; }
.hero__in > :nth-child(1), .page-hero .container > :nth-child(1) { animation-delay: .10s; }
.hero__in > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: .22s; }
.hero__in > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: .36s; }
.hero__in > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: .48s; }
.hero__in > :nth-child(5) { animation-delay: .60s; }
.hero__facts > div { animation: fade-up .8s var(--ease) both; }
.hero__facts > div:nth-child(1) { animation-delay: .70s; }
.hero__facts > div:nth-child(2) { animation-delay: .80s; }
.hero__facts > div:nth-child(3) { animation-delay: .90s; }
.hero__facts > div:nth-child(4) { animation-delay: 1.0s; }

/* ---------- Small interactive touches ---------- */
.btn { transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(14,24,44,.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.status--live::before { animation: pulse 2s ease-out infinite; }
.project__value { transition: padding .3s var(--ease); }
.project:hover .project__value { padding-right: 22px; }
.person, .value, .reg > div { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.person:hover, .value:hover, .reg > div:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(20,34,61,.10); }
.person__initials { transition: transform .5s var(--ease); }
.person:hover .person__initials { transform: scale(1.08); }
.adv__item b, .svc__no { transition: transform .3s var(--ease); }
.adv__item:hover b { transform: translateX(4px); }
.org__node { transition: background .25s, border-color .25s; }
.org__node:hover { background: rgba(255,255,255,.08); border-color: rgba(228,132,63,.5); }
.filter label { transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.filter label:active { transform: scale(.96); }
.project { animation: fade-in .4s ease both; }   /* fades cards back in when the filter changes */

/* Mobile menu: links cascade in */
@media (max-width: 980px) {
  .nav-toggle:checked ~ .nav__menu > * { animation: fade-up .45s var(--ease) both; }
  .nav-toggle:checked ~ .nav__menu > :nth-child(2) { animation-delay: .04s; }
  .nav-toggle:checked ~ .nav__menu > :nth-child(3) { animation-delay: .08s; }
  .nav-toggle:checked ~ .nav__menu > :nth-child(4) { animation-delay: .12s; }
  .nav-toggle:checked ~ .nav__menu > :nth-child(5) { animation-delay: .16s; }
  .nav-toggle:checked ~ .nav__menu > :nth-child(6) { animation-delay: .20s; }
  .nav-toggle:checked ~ .nav__menu > :nth-child(7) { animation-delay: .26s; }
}

/* ---------- Header gains depth once the page scrolls ---------- */
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-lift linear both;
    animation-timeline: scroll();
    animation-range: 0 180px;
  }
  @keyframes header-lift {
    to { box-shadow: 0 12px 30px rgba(0,0,0,.28); background: rgba(20,34,61,.96); }
  }
}

/* ---------- Scroll reveals (CSS scroll-driven animations) ---------- */
@supports (animation-timeline: view()) {
  .reveal,
  .head, .intro > div, .svc-layout__aside > :not(img), .svc, .project,
  .facts > div, .value, .tl, .person, .adv__group h3, .adv__item, .division,
  .point, .reg > div, .spec figure, .offer > div, .org__head, .org__col h4, .org__node,
  .split > div, .split > blockquote, .quote, .leader > div, .group-label,
  .office, .form, .affil, .cta__in > * {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }

  /* Gentle stagger across rows of cards */
  .facts > div:nth-child(4n+2), .people > .person:nth-child(4n+2), .projects-grid > .project:nth-child(3n+2),
  .values > .value:nth-child(2), .reg > div:nth-child(2), .spec figure:nth-child(2), .offer > div:nth-child(2),
  .divisions > .division:nth-child(2), .timeline > .tl:nth-child(2), .points > .point:nth-child(2n) {
    animation-range: entry 10% cover 30%;
  }
  .facts > div:nth-child(4n+3), .people > .person:nth-child(4n+3), .projects-grid > .project:nth-child(3n+3),
  .values > .value:nth-child(3), .reg > div:nth-child(3), .spec figure:nth-child(3), .offer > div:nth-child(3),
  .divisions > .division:nth-child(3), .timeline > .tl:nth-child(3) {
    animation-range: entry 20% cover 34%;
  }
  .facts > div:nth-child(4n+4), .people > .person:nth-child(4n+4), .timeline > .tl:nth-child(4) {
    animation-range: entry 30% cover 38%;
  }
  .timeline > .tl:nth-child(5) { animation-range: entry 40% cover 42%; }

  /* Photos wipe open from the top */
  .intro__figure img, .split__media img, .svc-layout__aside img, .gallery img, .leader__plate {
    animation: unveil linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }
  .gallery figure:hover img { transform: scale(1.04); }

  /* Red/blue rules and the timeline line draw themselves */
  .rule, .footer__base::before {
    transform-origin: left;
    animation: draw linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 40%;
  }
  .timeline::before {
    transform-origin: left;
    animation: draw linear both;
    animation-timeline: view();
    animation-range: entry 30% cover 55%;
  }
  @media (max-width: 960px) {
    .timeline::before { transform-origin: top; animation-name: draw-y; animation-range: entry 0% exit 60%; }
  }
  @keyframes draw-y { from { transform: scaleY(0); } }

  /* Background photos drift slightly as they pass (parallax feel) */
  .page-hero__bg, .hero__bg {
    scale: 1.12;
    animation: settle 2.4s cubic-bezier(.2,.6,.2,1) both, drift linear both;
    animation-timeline: auto, scroll();
    animation-range: normal, 0 100vh;
  }
  @keyframes drift { to { translate: 0 5%; } }
}

/* Filtering re-triggers the simple fade rather than the scroll reveal */
.portfolio:has(#f-done:checked, #f-live:checked) .project { animation: fade-in .4s ease both; animation-timeline: auto; }
