/* ==========================================================================
   PiedCape Systems: site styles
   1. Tokens          5. Hero & page hero   9.  Cards & grids
   2. Base            6. Sections           10. Forms
   3. Shared pieces   7. Bands & splits     11. Footer
   4. Header & nav    8. Page components    12. Motion & responsive
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Colour */
  --navy: #0b1f3a;
  --navy-rgb: 11, 31, 58;
  --navy-2: #13294a;
  --blue: #4f6f96;
  --blue-soft: #8ea6c4;
  --accent: #6f93bd;
  --mist: #e6ebf1;
  --mist-2: #dbe2ea;
  --paper: #f7f8fa;
  --white: #ffffff;
  --ink: #0b1f3a;
  --text: #2c3a4f;
  --muted: #66758a;
  --line: #0b1f3a;
  --hair: #cfd8e3;
  --danger: #b4372b;
  --success: #2f7a5f;
  --mark-ink: #ffffff;

  /* Text on dark backgrounds */
  --on-dark: rgba(255, 255, 255, .82);
  --on-dark-soft: rgba(255, 255, 255, .7);

  /* Image overlays */
  --overlay: rgba(var(--navy-rgb), .76);
  --overlay-fade: linear-gradient(0deg, rgba(var(--navy-rgb), .88) 0%, rgba(var(--navy-rgb), .1) 60%);

  /* Type */
  --font: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.8rem, 6vw, 5.2rem);
  --fs-display: clamp(2.6rem, 5.4vw, 4.4rem);
  --fs-h2: clamp(2rem, 3.4vw, 2.8rem);
  --fs-h2-sm: clamp(1.7rem, 2.8vw, 2.3rem);
  --fs-h3-lg: 1.5rem;
  --fs-h3: 1.25rem;
  --fs-lede: 1.35rem;
  --fs-body-lg: 1.12rem;
  --fs-sm: .95rem;
  --fs-xs: .88rem;
  --fs-label: .76rem;
  --ls-tight: -.04em;
  --ls-head: -.025em;
  --ls-h3: -.01em;
  --ls-label: .14em;

  /* Space */
  --space-section: 120px;
  --space-section-sm: 90px;
  --space-head: 56px;
  --gap-grid: 28px;
  --gap-cards: 50px;
  --pad-card: 36px;
  --gutter: 32px;

  /* Radius */
  --r-xl: 14px;
  --r-lg: 10px;
  --r-md: 8px;
  --r-sm: 6px;
  --r-xs: 4px;
  --r-btn: 4px;
  --r-nav: 12px;
  --sheet-overlap: 80px;

  /* Elevation */
  --shadow-sm: 0 10px 30px rgba(var(--navy-rgb), .08);
  --shadow-md: 0 18px 40px rgba(var(--navy-rgb), .1);
  --shadow-lg: 0 30px 60px rgba(var(--navy-rgb), .25);

  /* Motion */
  --t-fast: .2s;
  --t-med: .3s;
  --t-slow: .6s;
  --zoom: scale(1.04);

  --container: 1200px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 500; letter-spacing: var(--ls-head); line-height: 1.08; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: var(--ls-h3); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.display { font-size: var(--fs-display); line-height: .98; letter-spacing: var(--ls-tight); }
.body-lg { font-size: var(--fs-body-lg); color: var(--text); }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink); margin-bottom: 1.2em; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: var(--r-btn); }
.skip-link:focus { top: 16px; }

/* ---------- 3. Shared pieces ---------- */
/* One uppercase label style for every small caps label on the site */
.eyebrow, .includes-label, .crumbs, .field label, .contact-info dt,
.work-label span, .work-pill, .btn {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
/* Numbered markers share the label style in the accent blue */
.step-item span, .feature-copy .num, .slide-cap span {
  display: block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  color: var(--blue);
}

.eyebrow { display: block; margin-bottom: 20px; color: var(--ink); }
.eyebrow-light { color: var(--on-dark); }
.includes-label { margin: 0 0 14px; color: var(--ink); }

/* Section heading blocks */
.section-head { margin-bottom: var(--space-head); }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--space-head); }
.block-head h2 { margin: 0; }
.page-title { font-size: var(--fs-h2-sm); padding-bottom: 18px; margin-bottom: var(--space-head); border-bottom: 1px solid var(--hair); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--t-med), color var(--t-med), border-color var(--t-med);
}
.btn-block { width: 100%; }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-solid { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-solid:hover { background: var(--blue); border-color: var(--blue); }
.btn-solid-light { background: #fff; color: var(--navy); }
.btn-solid-light:hover { background: var(--mist); }
.btn-outline-light { border-color: var(--on-dark-soft); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-center { justify-content: center; }
.btn-gap { margin-top: 36px; }

/* "Learn more" text link with arrow */
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.more::after {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4.5 8.5 7 6 9.5'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform var(--t-fast);
}
.more:hover::after { transform: translateX(3px); }

/* Icons and check lists */
.line-icon { width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.checks li::before {
  content: "";
  width: 24px; height: 24px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 11.2V12a8.5 8.5 0 1 1-5-7.75'/%3E%3Cpath d='M20.5 5 12 13.5l-2.5-2.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Images that fill their frame and zoom on hover */
.num-img img, .power-img img, .about-photo img, .feature-media img,
.insight-img img, .work-tile img, .slide img, .split-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.insight-img img, .num-img img, .work-tile img, .slide img { transition: transform var(--t-slow); }
.insight:hover .insight-img img, .num-card:hover .num-img img,
.work-tile:hover img, .slide:hover img { transform: var(--zoom); }

/* Accordion */
.accordion { max-width: 480px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: var(--ls-h3);
  cursor: pointer;
  text-align: left;
}
.acc-head i { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.acc-head i::before, .acc-head i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink); transition: transform var(--t-med); }
.acc-head i::after { transform: rotate(90deg); }
.acc-head[aria-expanded="true"] i::after { transform: rotate(0); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc-body > p { overflow: hidden; margin: 0; color: var(--text); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-item.open .acc-body > p { padding-bottom: 20px; }
.faq { max-width: 860px; margin: 0 auto; }

/* ---------- 4. Header & nav ---------- */
.site-header {
  position: fixed;
  top: 20px;
  left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 22px;
  border-radius: var(--r-nav);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  transition: background-color var(--t-med), color var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.site-header.scrolled .nav-pill {
  background: rgba(247, 248, 250, .92);
  border-color: var(--hair);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; }
.brand em { font-style: normal; font-weight: 400; margin-left: 5px; opacity: .7; }
.brand-mark { width: 30px; height: 30px; color: #fff; --mark-ink: var(--navy); transition: color var(--t-med); }
.site-header.scrolled .brand-mark { color: var(--navy); --mark-ink: #fff; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 10px 16px;
  border-radius: var(--r-btn);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background-color var(--t-fast);
}
.site-nav a:hover, .site-nav a.current { background: rgba(255, 255, 255, .14); }
.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a.current { background: var(--mist); }
.site-nav .nav-cta,
.site-nav .nav-cta.current { margin-left: 8px; padding: 12px 24px; background: #fff; color: var(--navy); }
.site-nav .nav-cta:hover { background: var(--mist); }
.site-header.scrolled .site-nav .nav-cta,
.site-header.scrolled .site-nav .nav-cta.current { background: var(--navy); color: #fff; }
.site-header.scrolled .site-nav .nav-cta:hover { background: var(--blue); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-toggle span { width: 18px; height: 1.5px; background: var(--navy); transition: transform .25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.site-header.scrolled .nav-toggle { background: var(--navy); }
.site-header.scrolled .nav-toggle span { background: #fff; }

/* ---------- 5. Hero & page hero ---------- */
.hero, .page-hero {
  position: relative;
  display: flex;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.hero h1, .page-hero h1 { color: #fff; font-size: var(--fs-hero); line-height: .98; letter-spacing: var(--ls-tight); }
.hero-bg, .page-hero > img, .band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero { min-height: max(100vh, 720px); align-items: flex-end; }
.hero-bg { object-position: center 30%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--navy-rgb), .88) 0%, rgba(var(--navy-rgb), .55) 55%, rgba(var(--navy-rgb), .25) 100%),
    linear-gradient(0deg, rgba(var(--navy-rgb), .6), transparent 50%);
}
.hero-content { position: relative; z-index: 1; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) 170px; }
.hero h1 { margin-bottom: 40px; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero-foot p { max-width: 460px; margin: 0; font-size: var(--fs-body-lg); color: var(--on-dark); }

.page-hero { min-height: 560px; align-items: center; justify-content: center; padding: 150px var(--gutter) 170px; text-align: center; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.page-hero-inner { position: relative; z-index: 1; max-width: 900px; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero p { margin: 0 auto; max-width: 620px; font-size: var(--fs-body-lg); color: var(--on-dark); }
.accent-dot { color: var(--accent); }
.crumbs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; color: var(--on-dark-soft); }
.crumbs a:hover { color: #fff; }

/* Rounded sheet that overlaps the block above it */
.sheet {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--sheet-overlap) * -1);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--paper);
}

/* ---------- 6. Sections ---------- */
.section { padding: var(--space-section) 0; }
.section-tight { padding: var(--space-section-sm) 0; }
.page-sheet { padding: var(--space-section-sm) 0 30px; }

/* Home intro */
.intro { padding: var(--space-section) 0 80px; }
.intro-title { max-width: 820px; margin: 0 auto 80px; text-align: center; font-size: var(--fs-h2); line-height: 1.15; }
.intro-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.intro-col { text-align: center; display: flex; flex-direction: column; align-items: center; }
.intro-col h3 { margin-top: 18px; }
.intro-col p { max-width: 300px; margin-bottom: 28px; }

/* Home about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.about-copy .body-lg { max-width: 480px; margin: 28px 0 36px; }
.about-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.about-photo img { object-position: center 20%; }

/* Home approach slider */
.approach { overflow: hidden; }
.approach-grid {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 64px;
  align-items: center;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.approach-copy .body-lg { margin: 28px 0 44px; max-width: 400px; }
.slider { min-width: 0; }
.slider-track { display: flex; gap: var(--gap-grid); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: var(--gutter); outline: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 320px; height: 460px; scroll-snap-align: start; overflow: hidden; color: #fff; }
.slide::after { content: ""; position: absolute; inset: 0; background: var(--overlay-fade); }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; }
.slide-cap span { color: var(--blue-soft); }
.slide-cap h3 { color: #fff; font-size: var(--fs-h3-lg); margin: 8px 0; }
.slide-cap p { margin: 0; font-size: var(--fs-sm); color: var(--on-dark); }
.slider-nav { display: inline-flex; margin-top: 20px; border-radius: var(--r-btn); background: var(--navy); overflow: hidden; }
.slider-btn { width: 44px; height: 34px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.slider-btn svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider-btn:hover { background: var(--blue); }

/* Home services band */
.services {
  padding: var(--space-section) 0 140px;
  background: linear-gradient(180deg, var(--paper) 0 50%, var(--mist) 50% 100%);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* ---------- 7. Bands & splits ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.split-media { position: relative; overflow: hidden; }
.split-media img { position: absolute; inset: 0; }
.split-panel { position: relative; display: flex; align-items: center; background: var(--mist); padding: 80px 64px; }
.split-inner { max-width: 500px; }
.split-inner .body-lg { margin-bottom: 40px; }
.split-reverse .split-media { border-top-left-radius: var(--r-xl); }
.split-reverse .split-panel { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.split-dark .split-panel { background: var(--navy); }
.split-dark h2 { color: #fff; }
.split-dark .body-lg { color: var(--on-dark); }
.split-dark .split-media { border-bottom-right-radius: var(--r-xl); }

.call-tab {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px 16px 56px;
  background: var(--paper);
  border-top-left-radius: var(--r-xl);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.call-tab strong { color: var(--ink); font-weight: 600; }
.call-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(79, 111, 150, .2); }

/* Contact band */
.contact-band {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-section) var(--gutter) 200px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.contact-band::after { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.band-content { position: relative; z-index: 1; max-width: 640px; }
.band-content h2 { color: #fff; font-size: var(--fs-display); line-height: 1; letter-spacing: var(--ls-tight); }
.band-content p { color: var(--on-dark); font-size: var(--fs-body-lg); margin: 0; }
.contact-sheet { padding: var(--space-section-sm) 0 0; }

/* Photo band + feature sheet */
.feature-band { position: relative; padding: 300px var(--gutter) 0; }
.feature-band > img { position: absolute; top: 0; left: 0; width: 100%; height: 560px; object-fit: cover; }
.feature-sheet { position: relative; max-width: 1180px; margin: 0 auto; padding: 72px 80px 40px; border-radius: var(--r-xl); background: var(--paper); text-align: center; }
.feature-sheet h2 { max-width: 720px; margin: 0 auto var(--space-head); font-size: var(--fs-h2-sm); line-height: 1.15; }
.help-line { display: flex; align-items: center; gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: var(--fs-sm); }
.help-line a { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--blue-soft); }

/* CTA block */
.cta-block { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 64px 70px; border-radius: var(--r-lg); background: var(--navy); color: var(--on-dark); }
.cta-block h2 { color: #fff; font-size: var(--fs-h2-sm); margin-bottom: 10px; }
.cta-block p { margin: 0; max-width: 520px; }
.cta-block .btn { flex-shrink: 0; }

/* Audience panel */
.audience { margin-top: 110px; padding: 90px 40px; border-radius: var(--r-lg); background: var(--mist); }
.audience .eyebrow { margin-bottom: 40px; }
.audience-row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px 50px; }
.audience-row span { font-size: var(--fs-h2-sm); font-weight: 600; letter-spacing: var(--ls-head); color: var(--ink); }

/* ---------- 8. Page components ---------- */
/* Numbered image cards (About) */
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-grid); padding-bottom: 48px; border-bottom: 1px solid var(--hair); }
.num-img { position: relative; aspect-ratio: 3 / 2; margin-bottom: 20px; border-radius: var(--r-md); overflow: hidden; }
.num-badge { position: absolute; top: 0; right: 0; width: 46px; height: 46px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 600; border-bottom-left-radius: var(--r-md); }
.num-card h3 { margin-bottom: 8px; }
.num-card p { margin-bottom: 12px; }

/* Two-column media + copy blocks */
.power, .tabs, .experience { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.power-img, .tab-media { position: relative; aspect-ratio: 4 / 5; max-width: 480px; overflow: hidden; }
.power .body-lg { max-width: 460px; }
.experience .body-lg { margin: 24px 0 36px; max-width: 440px; }

/* Tabs */
.tab-list { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 28px; }
.tab-btn {
  padding: 6px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-h2-sm);
  font-weight: 500;
  letter-spacing: var(--ls-head);
  color: var(--blue-soft);
  cursor: pointer;
  text-align: left;
  transition: color var(--t-fast);
}
.tab-btn:hover, .tab-btn[aria-selected="true"] { color: var(--ink); }
.tab-text { max-width: 440px; min-height: 120px; }
.tab-text p { margin-bottom: 16px; }
.tab-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.tab-media img.active { opacity: 1; }

/* Overlapping images */
.overlap { position: relative; height: 540px; }
.overlap img { position: absolute; object-fit: cover; }
.overlap img:first-child { left: 0; top: 0; width: 52%; height: 68%; }
.overlap img:last-child { right: 4%; bottom: 0; width: 56%; height: 76%; box-shadow: var(--shadow-lg); }

/* Feature rows (Approach) */
.feature-rows { display: grid; gap: 110px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.feature-row:nth-child(even) .feature-media { order: 2; }
.feature-media { aspect-ratio: 5 / 4; border-radius: var(--r-xl); overflow: hidden; }
.feature-copy .num { margin-bottom: 14px; }
.feature-copy .body-lg { margin-bottom: 28px; }

/* Service detail */
.detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: start; }
.detail-body p { font-size: var(--fs-body-lg); }
.detail-body .lede { font-size: var(--fs-lede); }
.detail-card { position: sticky; top: 120px; padding: var(--pad-card); border-radius: var(--r-lg); background: var(--mist); }
.detail-card h3 { margin-bottom: 18px; }
.detail-card .checks { margin-bottom: 30px; }

/* Numbered steps */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-grid); }
.steps-row.three { grid-template-columns: repeat(3, 1fr); }
.step-item { padding-top: 22px; border-top: 1px solid var(--line); }
.step-item span { margin-bottom: 14px; }
.step-item h3 { margin-bottom: 8px; }
.step-item p { margin: 0; }

/* Articles */
.article { max-width: 740px; margin: 0 auto; }
.article p, .article li { font-size: var(--fs-body-lg); line-height: 1.75; }
.article .lede { font-size: var(--fs-lede); line-height: 1.5; }
.article h2 { font-size: var(--fs-h2-sm); margin-top: 1.6em; }
.article ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .4em; }
.article-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: var(--space-head); padding-top: 26px; border-top: 1px solid var(--hair); }

/* ---------- 9. Cards & grids ---------- */
/* Outlined icon cards */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-grid); max-width: 1040px; margin: 0 auto; }
.outline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-grid); }
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px var(--pad-card) 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  color: inherit;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
a.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card h3 { margin: 18px 0 10px; }
.service-card p { margin: 0; }
.outline-grid .service-card { align-items: flex-start; text-align: left; }
.service-cta { align-items: flex-start; text-align: left; border-color: transparent; background: var(--mist-2); }
.service-cta h3 { margin-top: 0; font-size: var(--fs-h3-lg); font-weight: 500; letter-spacing: var(--ls-head); }
.service-cta p { margin-bottom: auto; padding-bottom: 28px; }

/* Filled accent cards */
.accent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.accent-card { padding: 30px 28px; border-radius: var(--r-lg); background: var(--blue); color: var(--on-dark); transition: background-color var(--t-med); }
.accent-card:hover { background: var(--navy-2); }
.accent-card .line-icon { width: 40px; height: 40px; stroke: #fff; margin-bottom: 20px; }
.accent-card h3 { color: #fff; margin-bottom: 8px; }
.accent-card p { margin: 0; font-size: var(--fs-sm); }

/* Photo cards with overlapping caption */
.insight-grid, .card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px var(--gap-cards); }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-cards) var(--gap-grid); }
.insight-img { display: block; aspect-ratio: 1 / 1; border-radius: var(--r-xl); overflow: hidden; }
.insight-cap { position: relative; margin: -80px 50px 0; padding: 32px 38px 6px; background: var(--paper); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.insight-cap h3 { font-size: var(--fs-h3-lg); margin-bottom: 10px; }
.insight-cap p { margin-bottom: 14px; }
.card-grid-3 .insight-img { border-radius: var(--r-lg); }
.card-grid-3 .insight-cap { margin: -70px 24px 0; padding: 26px 26px 6px; }

/* Work tiles */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; color: #fff; }
.work-tile::after { content: ""; position: absolute; inset: 0; background: var(--overlay-fade); }
.work-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px; }
.work-label span { color: var(--blue-soft); }
.work-label h3 { color: #fff; margin: 8px 0; font-size: var(--fs-h3-lg); }
.work-label p { margin: 0; font-size: var(--fs-sm); color: var(--on-dark); }
.work-pill { position: absolute; top: 22px; right: 22px; z-index: 1; padding: 9px 18px; border-radius: var(--r-btn); background: #fff; color: var(--navy); opacity: 0; transform: translateY(-6px); transition: opacity var(--t-med), transform var(--t-med); }
.work-tile:hover .work-pill, .work-tile:focus-visible .work-pill { opacity: 1; transform: none; }

/* ---------- 10. Forms & contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.contact-info h2 { margin-bottom: 8px; }
.contact-info .sub { padding-bottom: 18px; margin-bottom: 36px; border-bottom: 1px solid var(--hair); max-width: 280px; }
.contact-info dl { margin: 0; display: grid; gap: 22px; }
.contact-info dt { color: var(--muted); }
.contact-info dd { margin: 4px 0 0; font-size: var(--fs-body-lg); font-weight: 500; color: var(--ink); }
.contact-info dd a { border-bottom: 1px solid var(--hair); }

.contact-form { padding: 40px; border-radius: var(--r-lg); background: var(--mist); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 20px; }
.field label { margin-bottom: 8px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  background: var(--paper);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t-fast);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.error { margin-top: 6px; font-size: var(--fs-xs); color: var(--danger); }
.error:empty, .form-status:empty { display: none; }
.form-status { margin: 16px 0 0; text-align: center; font-weight: 500; }
.form-status.ok { color: var(--success); }

/* ---------- 11. Footer ---------- */
.site-footer { margin-top: var(--space-section); background: var(--mist); color: var(--text); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 80px; padding-bottom: 64px; }
.footer-brand .brand { color: var(--ink); }
.footer-brand .brand-mark { color: var(--navy); --mark-ink: #fff; }
.footer-brand p { margin-top: 22px; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: var(--ls-h3); margin-bottom: 8px; }
.footer-col a { color: var(--ink); border-bottom: 1px solid var(--blue-soft); transition: color var(--t-fast), border-color var(--t-fast); }
.footer-col a:hover, .footer-col a.current { color: var(--blue); border-color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; padding-bottom: 30px; border-top: 1px solid var(--hair); font-size: var(--fs-xs); }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--blue); }

/* ---------- 12. Motion & responsive ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

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

@media (max-width: 1024px) {
  .about, .power, .tabs, .experience { gap: 56px; }
  .service-grid, .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: 1fr; padding: 0; }
  .approach-copy { padding: 0 var(--gutter); }
  .slider { padding-left: var(--gutter); }
  .split-panel { padding: 72px 40px; }
  .feature-sheet { padding: 60px 40px 36px; }
  .detail { gap: 50px; }
}

@media (max-width: 860px) {
  :root { --gutter: 22px; --space-section: 90px; --space-section-sm: 70px; --space-head: 44px; }

  /* Nav becomes a dropdown */
  .site-header { top: 14px; padding: 0 16px; }
  .nav-pill { padding: 8px 8px 8px 18px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    border-radius: var(--r-md);
    background: var(--paper);
    box-shadow: 0 20px 50px rgba(var(--navy-rgb), .18);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .site-nav a:hover, .site-nav a.current { background: var(--mist); }
  .site-nav .nav-cta, .site-nav .nav-cta.current { margin: 8px 0 0; background: var(--navy); color: #fff; text-align: center; }

  .hero-content { padding-bottom: 140px; }
  .page-hero { min-height: 460px; padding-top: 130px; padding-bottom: 150px; }
  .intro { padding-bottom: 40px; }
  .intro-title { margin-bottom: 56px; }
  .services { padding-bottom: 110px; }
  .contact-band { min-height: 520px; padding-bottom: 170px; }

  .intro-cols, .num-grid, .insight-grid, .card-grid-2, .outline-grid { grid-template-columns: 1fr; }
  .intro-cols { gap: 56px; }
  .insight-grid, .card-grid-2 { gap: var(--gap-cards); }
  .about, .contact, .power, .tabs, .experience, .feature-row, .detail { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { max-width: 520px; }
  .feature-row:nth-child(even) .feature-media { order: 0; }
  .feature-rows { gap: 80px; }
  .overlap { height: 420px; }
  .accent-grid, .work-grid { grid-template-columns: 1fr 1fr; }
  .detail-card { position: static; }
  .block-head { flex-direction: column; align-items: flex-start; }
  .cta-block { flex-direction: column; align-items: flex-start; padding: 44px 32px; }

  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-media { min-height: 340px; }
  .split-reverse .split-media { order: -1; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .split-dark .split-media { border-radius: 0; }
  .split-panel, .split-reverse .split-panel { padding: 64px var(--gutter) 96px; }
  .split-reverse .split-panel { padding-bottom: 64px; }
  .call-tab { padding: 14px 22px 14px 40px; font-size: var(--fs-xs); }
  .slide { flex-basis: 78vw; max-width: 320px; height: 420px; }

  .feature-band { padding: 220px 16px 0; }
  .feature-band > img { height: 420px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 560px) {
  :root { --r-xl: 10px; --r-lg: 8px; --sheet-overlap: 56px; --pad-card: 26px; }
  body { font-size: 16px; }
  .brand em { display: none; }
  .hero-foot .btn-row { width: 100%; }
  .hero-foot .btn { flex: 1; }
  .service-grid, .card-grid-3, .accent-grid, .work-grid, .steps-row, .steps-row.three { grid-template-columns: 1fr; }
  .insight-cap, .card-grid-3 .insight-cap { margin: -60px 18px 0; padding: 26px 24px 4px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 26px 20px; }
  .feature-sheet { padding: 48px 22px 28px; }
  .overlap { height: 340px; }
  .audience { margin-top: 80px; padding: 60px 24px; }
  .audience-row { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 70px; }
  .footer-brand { grid-column: auto; }
}
