/* ==========================================================================
   Tuffli Company — site stylesheet
   Hand-maintained. No build step, no framework, no external requests.
   Sections: 1 tokens · 2 base · 3 layout · 4 header · 5 buttons · 6 hero
             7 home · 8 inner-page heroes · 9 about · 10 criteria
             11 contact · 12 footer · 13 misc · 14 motion
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Colour (matches the original hsl palette) */
  --primary: #11549c;          /* hsl(211 80% 34%) */
  --primary-hover: rgba(17, 84, 156, .9);
  --accent: #9c5411;
  --fg: #0a0a0a;
  --muted-fg: #6b7280;
  --bg: #ffffff;
  --muted: #f5f7fa;
  --secondary: #ebebeb;
  --border: #d9d9d9;
  --footer-bg: #262626;
  --danger: #ef4444;

  /* Type */
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-xs: .75rem;    --lh-xs: 1rem;
  --fs-sm: .875rem;   --lh-sm: 1.25rem;
  --fs-base: 1rem;    --lh-base: 1.5rem;
  --fs-lg: 1.125rem;  --lh-lg: 1.75rem;
  --fs-xl: 1.25rem;   --lh-xl: 1.75rem;
  --fs-2xl: 1.5rem;   --lh-2xl: 2rem;
  --fs-3xl: 1.875rem; --lh-3xl: 2.25rem;
  --fs-4xl: 2.25rem;  --lh-4xl: 2.5rem;
  --fs-5xl: 3rem;     --lh-5xl: 1;
  --fs-6xl: 3.75rem;  --lh-6xl: 1;

  /* Space */
  --space-1: .25rem;  --space-2: .5rem;   --space-3: .75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-14: 3.5rem; --space-16: 4rem;   --space-20: 5rem;
  --space-24: 6rem;   --space-32: 8rem;

  /* Shape */
  --radius-sm: .25rem;
  --radius: .5rem;
  --radius-lg: .75rem;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}

/* Self-hosted variable Open Sans (latin + latin-ext) */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- 3. Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: 80rem;            /* 1280px */
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 640px) { .container { padding-inline: var(--space-6); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-8); } }

.container--wide   { max-width: 72rem; }   /* 1152px */
.container--mid    { max-width: 64rem; }   /* 1024px */
.container--narrow { max-width: 56rem; }   /* 896px  */
.container--text   { max-width: 48rem; }   /* 768px  */

.container--flush { padding-inline: var(--space-6); }

.section         { padding-block: var(--space-20); }
.section--room   { padding-block: var(--space-16); }
.section--tight  { padding-block: var(--space-14); }
@media (min-width: 768px) {
  .section--room  { padding-block: var(--space-24); }
  .section--tight { padding-block: 3.25rem; }
}

.section--p64     { padding-block: var(--space-16); }
.section--p56     { padding-block: var(--space-14); }
.section--p48-64  { padding-block: var(--space-12); }
.section--p56-80  { padding-block: var(--space-14); }
.section--p64-80  { padding-block: var(--space-16); }
.section--p64-96  { padding-block: var(--space-16); }
.section--criteria-list { padding-block: 2.25rem; }
@media (min-width: 768px) {
  .section--p56-80 { padding-block: var(--space-20); }
  .section--p48-64 { padding-block: var(--space-16); }
  .section--p64-80 { padding-block: var(--space-20); }
  .section--p64-96 { padding-block: var(--space-24); }
}

.section--muted     { background: rgba(235, 235, 235, .3); }
.section--secondary { background: var(--secondary); }
.section--surface   { background: var(--muted); }
.section--bordered  { border-top: 1px solid var(--border); }

/* ---------- 4. Header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px -4px rgba(0, 0, 0, .18); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;                /* 64px */
}
@media (min-width: 768px) { .header__inner { height: 5rem; } }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img {
  width: auto;
  max-width: 180px;
  max-height: 2.5rem;
  object-fit: contain;
}
@media (min-width: 768px) { .brand img { max-height: 3rem; } }

.nav { display: none; align-items: center; gap: var(--space-1); }
@media (min-width: 768px) { .nav { display: flex; } }

.nav a {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 500;
  letter-spacing: .025em;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 -2px 0 transparent;
  transition: color .15s ease, box-shadow .15s ease;
}
.nav a:hover { color: var(--primary); }
.nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); }

.nav-toggle {
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--fg);
  transition: color .15s ease;
}
.nav-toggle:hover { color: var(--primary); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .mobile-nav { display: none; } }
.mobile-nav ul { padding: var(--space-2) var(--space-4) var(--space-4); }
.mobile-nav a {
  display: block;
  padding: var(--space-3) var(--space-3);
  font-size: var(--fs-base);
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover { background: var(--muted); color: var(--primary); }
.mobile-nav a[aria-current="page"] { color: var(--primary); background: var(--muted); }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .75rem var(--space-8);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 600;
  letter-spacing: .1em;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: background-color .2s ease, opacity .2s ease, border-color .2s ease;
}
.btn--caps { text-transform: uppercase; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: rgba(255, 255, 255, .9); }
.btn--ghost { border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--outline {
  padding: .75rem var(--space-6);
  font-weight: 500;
  letter-spacing: .025em;
  border: 1px solid #fff;
  color: #fff;
}
.btn--outline:hover { background: rgba(255, 255, 255, .1); }

/* ---------- 6. Hero carousel -------------------------------------------- */
.hero { position: relative; width: 100%; }

.carousel { position: relative; overflow: hidden; }

.carousel__track {
  display: flex;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
}

.carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17, 24, 39, .35), rgba(17, 24, 39, .5));
  pointer-events: none;
}

.carousel__body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.carousel__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.hero__title {
  white-space: pre-line;
  font-size: var(--fs-3xl);
  line-height: var(--lh-3xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
}
.hero__title--lg { margin-bottom: var(--space-8); }
.hero__title .line { display: block; }
.hero__title .line + .line { margin-top: 1em; }

.hero__sub {
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  color: rgba(255, 255, 255, .85);
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .hero__actions { flex-direction: row; }
}
@media (min-width: 768px) {
  .hero__title { font-size: var(--fs-5xl); line-height: var(--lh-5xl); }
  .hero__sub { font-size: var(--fs-xl); line-height: var(--lh-xl); }
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  transition: background-color .2s ease, opacity .2s ease;
}
.carousel__btn:hover { background: rgba(255, 255, 255, .4); }
.carousel__btn[disabled] { opacity: .5; cursor: default; }
.carousel__btn--prev { left: var(--space-4); }
.carousel__btn--next { right: var(--space-4); }

/* ---------- 7. Home sections -------------------------------------------- */
.section-heading {
  font-size: var(--fs-3xl);
  line-height: var(--lh-3xl);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--space-6);
}
.section-heading--center { text-align: center; margin-bottom: var(--space-14); }
.section-heading--tight { margin-bottom: var(--space-12); }

@media (min-width: 768px) {
  .section-heading { font-size: var(--fs-4xl); line-height: var(--lh-4xl); }
}

.lede {
  color: var(--muted-fg);
  font-size: var(--fs-base);
  line-height: 1.625;
}
.lede a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.lede a:hover { text-decoration-thickness: 2px; }
.lede--lg { font-size: var(--fs-lg); line-height: 1.625; margin-bottom: var(--space-8); }
.lede--spaced { margin-bottom: var(--space-4); }

.section-heading--sub {
  font-size: var(--fs-2xl);
  line-height: var(--lh-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
@media (min-width: 768px) {
  .section-heading--sub { font-size: var(--fs-3xl); line-height: var(--lh-3xl); }
}

/* Tabs */
.tabs { margin-top: 2.5rem; text-align: left; }
.tabs__list {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  flex-shrink: 0;
  padding: .75rem var(--space-5);
  margin-bottom: -1px;
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 600;
  letter-spacing: .025em;
  color: var(--muted-fg);
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }

.tabpanel {
  background: var(--muted);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: var(--space-6);
  color: var(--muted-fg);
  font-size: var(--fs-base);
  line-height: 1.625;
}

/* Feature list (Advantages) */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .features { grid-template-columns: 1fr 1fr; } }

.feature__head { display: flex; align-items: center; gap: var(--space-3); }

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(17, 84, 156, .1);
  color: var(--primary);
}

.feature__title {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.feature__text {
  margin-top: var(--space-3);
  padding-left: 3rem;
  font-size: var(--fs-sm);
  line-height: 1.625;
  color: var(--muted-fg);
}

/* Stats band */
.stats {
  position: relative;
  overflow: hidden;
  background: var(--primary);
}
.stats__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stats__veil {
  position: absolute;
  inset: 0;
  background: rgba(17, 84, 156, .88);
  pointer-events: none;
}
.stats__inner { position: relative; }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .stats__grid > * + * { border-left: 1px solid rgba(255, 255, 255, .2); }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  text-align: center;
}
.stat__value {
  font-size: var(--fs-5xl);
  line-height: 1;
  font-weight: 700;
  color: #fff;
}
@media (min-width: 768px) { .stat__value { font-size: var(--fs-6xl); } }

.stat__label {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
  letter-spacing: .1em;
}
@media (min-width: 768px) { .stat__label { font-size: var(--fs-base); line-height: var(--lh-base); } }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 1.75rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.quote-card__mark { color: rgba(17, 84, 156, .3); flex-shrink: 0; }
.quote-card__text {
  flex: 1;
  font-size: var(--fs-sm);
  line-height: 1.625;
  font-style: italic;
  color: var(--muted-fg);
}
.quote-card__foot { border-top: 1px solid var(--border); padding-top: var(--space-4); }
.quote-card__name { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 600; color: var(--fg); }
.quote-card__meta { font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--muted-fg); }

/* Tenant logos */
.logos__title {
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted-fg);
  margin-bottom: 2.5rem;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}
@media (min-width: 768px) { .logos { gap: var(--space-12); } }

.logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  opacity: .6;
  transition: filter .3s ease, opacity .3s ease;
}
.logos__item:hover { filter: none; opacity: 1; }
.logos__item img {
  width: auto;
  height: 3rem;
  max-width: 140px;
  object-fit: contain;
}

/* About page presents the same logos as an even grid instead of a wrapped row. */
.logos--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 640px) { .logos--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .logos--grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.logos--grid .logos__item { padding: var(--space-3); }
.logos--grid .logos__item img { height: 3rem; max-height: 3rem; width: auto; }

/* ---------- 8. Inner-page heroes ---------------------------------------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-block: var(--space-24);
  min-height: 16rem;
}
.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__veil {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .35);
  pointer-events: none;
}
.page-hero__body {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.page-hero__title {
  font-size: var(--fs-3xl);
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.page-hero__sub {
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  color: rgba(255, 255, 255, .9);
}

/* Contact page uses a slightly smaller hero headline than About. */
@media (min-width: 768px) {
  .page-hero--compact .page-hero__title { font-size: var(--fs-4xl); line-height: var(--lh-4xl); }
  .page-hero--compact .page-hero__sub { font-size: var(--fs-lg); line-height: var(--lh-lg); }
}
@media (min-width: 768px) {
  .page-hero { padding-block: var(--space-32); }
  .page-hero__title { font-size: var(--fs-5xl); line-height: var(--lh-5xl); margin-bottom: var(--space-4); }
  .page-hero__sub { font-size: var(--fs-xl); line-height: var(--lh-xl); }
}

/* Criteria hero: full-bleed photo with fixed height and overlaid title */
.banner {
  position: relative;
  overflow: hidden;
  height: 16rem;
}
@media (min-width: 768px) { .banner { height: 20rem; } }
.banner__img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.banner__body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: var(--space-6);
  background: rgba(17, 24, 39, .25);
}
.banner__title {
  max-width: 48rem;
  font-size: var(--fs-3xl);
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
@media (min-width: 768px) { .banner__title { font-size: var(--fs-5xl); line-height: var(--lh-5xl); } }

/* ---------- 9. About ----------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.team { margin-top: var(--space-4); display: grid; gap: var(--space-2); }
.team li { display: flex; align-items: baseline; gap: var(--space-2); font-size: var(--fs-sm); line-height: var(--lh-sm); }
.team strong { font-weight: 600; }
.team span { color: var(--muted-fg); }

.belief-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8);
}
.belief-card h3 { font-size: var(--fs-xl); line-height: var(--lh-xl); font-weight: 700; margin-bottom: var(--space-4); }
.belief-card p { color: var(--muted-fg); line-height: 1.625; margin-bottom: var(--space-4); }
.belief-card p:last-child { margin-bottom: 0; font-style: italic; }

.belief-list { display: grid; gap: var(--space-3); margin: 0 0 var(--space-6); }
.belief-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  color: var(--muted-fg);
}
.belief-list li::before {
  content: "";
  flex-shrink: 0;
  width: .5rem;
  height: .5rem;
  margin-top: .45rem;
  border-radius: 999px;
  background: var(--primary);
}

.map-section { text-align: center; background: #222222; color: #fff; }
.map-section .lede { color: #fff; max-width: 48rem; margin-inline: auto; margin-bottom: var(--space-6); }
.map-section__map {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}
.map-section__map img {
  width: 100%;
  max-width: 48rem;
  height: auto;
  object-fit: contain;
}

/* ---------- 10. Criteria ------------------------------------------------- */
.criteria-intro__lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.criteria-list {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: var(--space-12);
}
@media (min-width: 768px) { .criteria-list { grid-template-columns: 1fr 1fr; } }

.criteria-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.criteria-item__num {
  flex-shrink: 0;
  width: 3rem;
  text-align: right;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(17, 84, 156, .18);
}
.criteria-item__label { font-size: var(--fs-lg); line-height: var(--lh-lg); font-weight: 600; }
@media (min-width: 768px) {
  .criteria-item__num { font-size: var(--fs-5xl); }
  .criteria-item__label { font-size: var(--fs-xl); line-height: var(--lh-xl); }
}

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-band__veil {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .55);
  pointer-events: none;
}
.cta-band__body { position: relative; z-index: 1; max-width: 56rem; margin-inline: auto; padding-inline: var(--space-6); }
.cta-band__title {
  font-size: var(--fs-2xl);
  line-height: var(--lh-2xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-6);
}
.cta-band__text { color: rgba(255, 255, 255, .8); line-height: 1.625; margin-bottom: var(--space-8); }
@media (min-width: 768px) {
  .cta-band__title { font-size: var(--fs-3xl); line-height: var(--lh-3xl); }
}

/* ---------- 10b. Embedded portfolio map ---------------------------------- */
[id] { scroll-margin-top: 5.5rem; } /* clears the sticky header on #anchors */

.map-embed {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
}
.map-embed__intro { max-width: 48rem; text-align: center; }
.map-embed__eyebrow {
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-3);
}
.map-embed__title {
  font-size: var(--fs-2xl);
  line-height: var(--lh-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
@media (min-width: 768px) {
  .map-embed__title { font-size: var(--fs-3xl); line-height: var(--lh-3xl); }
}

.map-embed__media {
  position: relative;
  width: 100%;
  max-width: 56rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
/* once the real map is loaded the card becomes a fixed-ratio frame */
.map-embed__media.is-loaded { aspect-ratio: 16 / 9; }
@media (max-width: 639px) {
  .map-embed__media.is-loaded { aspect-ratio: 4 / 3; }
}

.map-embed__facade { display: block; }

.map-embed__poster { display: block; }
.map-embed__poster img {
  display: block;
  width: 100%;
  height: auto;
}

.map-embed__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 600;
  letter-spacing: .025em;
  color: var(--primary);
  transition: background-color .2s ease, color .2s ease;
}
.map-embed__cta svg { transition: transform .2s ease; }
.map-embed__facade:hover .map-embed__cta,
.map-embed__facade:focus-visible .map-embed__cta { background: var(--primary); color: #fff; }
.map-embed__facade:hover .map-embed__cta svg,
.map-embed__facade:focus-visible .map-embed__cta svg { transform: translateX(4px); }

.map-embed__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-embed__note {
  max-width: 48rem;
  text-align: center;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--muted-fg);
}
.map-embed__note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-section__link {
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 600;
}
.map-section__link a { color: #fff; }
.map-section__link a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 11. Contact -------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }

.form { display: flex; flex-direction: column; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: .375rem; }
.field label { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 500; }
.field .req { color: var(--danger); }

.field input,
.field textarea {
  width: 100%;
  padding: .625rem var(--space-4);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.field input:hover,
.field textarea:hover { border-color: #c2c2c2; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17, 84, 156, .2);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field textarea { min-height: 9rem; resize: none; }
.field .error {
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  color: var(--danger);
}

.form__submit {
  align-self: flex-start;
  padding: .625rem var(--space-8);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: opacity .2s ease;
}
.form__submit:hover { opacity: .9; }
.form__submit[disabled] { opacity: .6; cursor: progress; }

.form__note { font-size: var(--fs-xs); line-height: 1.5; color: var(--muted-fg); }

.form__status {
  margin-top: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.form__status[data-state="error"] { background: #fef2f2; color: #991b1b; }
.form__status[data-state="success"] { background: #ecfdf5; color: #065f46; }

.form-shell { display: block; }

/* Success / error states.
   Shown by JavaScript (.is-visible) or, without JavaScript, by the fragment the
   PHP handler redirects to (#sent / #error). */
.form-success,
.form-error { display: none; }
.form-success.is-visible,
.form-error.is-visible,
.form-success:target,
.form-error:target { display: block; }
.form-success:target ~ .form,
.form-success.is-visible ~ .form { display: none; }

.form-success { padding-block: var(--space-12); text-align: center; }
.form-success p:first-child { font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--space-2); }
.form-success p + p { color: var(--muted-fg); }

.form-error {
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-sm);
  background: #fef2f2;
  color: #991b1b;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.form-error a { color: inherit; font-weight: 600; }

/* Visually-hidden honeypot field (spam trap) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-info { display: flex; flex-direction: column; gap: var(--space-8); }
.contact-info__label { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--muted-fg); margin-bottom: var(--space-1); }
.contact-info__value { font-size: var(--fs-base); font-weight: 500; }
.contact-info__value a:hover { color: var(--primary); }

.people { display: flex; flex-direction: column; gap: var(--space-8); border-top: 1px solid var(--border); padding-top: var(--space-8); }
.person__role-label {
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: var(--space-3);
}
.person__name { font-size: var(--fs-base); line-height: var(--lh-base); font-weight: 600; }
.person__role { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--muted-fg); margin-bottom: var(--space-2); }
.person__lines { display: grid; gap: var(--space-1); font-size: var(--fs-sm); line-height: var(--lh-sm); }
.person__lines .label { color: var(--muted-fg); }
.person__lines a { color: var(--fg); }
.person__lines a:hover { color: var(--primary); }

/* ---------- 12. Footer --------------------------------------------------- */
.site-footer { background: var(--footer-bg); color: #fff; }
.footer__main { padding-block: var(--space-14); }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.footer__brand { display: flex; flex-direction: column; gap: var(--space-4); }
.footer__brand img { width: auto; max-width: 160px; max-height: 2.5rem; object-fit: contain; }

.footer__contact { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--fs-sm); line-height: var(--lh-sm); color: rgba(255, 255, 255, .8); }
.footer__contact a { display: flex; align-items: center; gap: var(--space-2); transition: color .15s ease; }
.footer__contact a:hover { color: #fff; }
.footer__contact svg { flex-shrink: 0; color: rgba(255, 255, 255, .6); }

.footer__heading {
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: var(--space-3);
}
.footer__person {
  display: grid;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  color: rgba(255, 255, 255, .8);
}
.footer__person strong { font-weight: 600; color: #fff; }
.footer__role {
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  color: rgba(255, 255, 255, .6);
  margin-bottom: var(--space-2);
}
.footer__person a { display: flex; align-items: center; gap: var(--space-2); transition: color .15s ease; }
.footer__person a:hover { color: #fff; }
.footer__person svg { flex-shrink: 0; color: rgba(255, 255, 255, .6); }

.footer__bar {
  background: rgba(17, 84, 156, .7);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer__bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-4);
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  color: rgba(255, 255, 255, .6);
}
@media (min-width: 640px) { .footer__bar-inner { flex-direction: row; } }
.footer__bar nav { display: flex; align-items: center; gap: var(--space-4); }
.footer__bar a:hover { color: #fff; }

/* ---------- 13. Misc ----------------------------------------------------- */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.text-left   { text-align: left; }

.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: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: var(--space-4); }

/* 404 page */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding-block: var(--space-20);
  gap: var(--space-4);
}
.error-page .eyebrow {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary);
}
.error-page h1 { font-size: var(--fs-4xl); line-height: var(--lh-4xl); font-weight: 700; }
.error-page p { color: var(--muted-fg); max-width: 32rem; }

/* ---------- 14. Motion --------------------------------------------------- */
/* Hero copy fades in once on load. All slides share the same animation, so
   copy is already in its final state when the visitor reaches a later slide. */
.js .hero__title,
.js .hero__sub,
.js .hero__actions {
  opacity: 0;
  animation: hero-in .8s cubic-bezier(.22, .61, .36, 1) forwards;
}
.js .hero__sub { animation-delay: .12s; }
.js .hero__actions { animation-delay: .22s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* Scroll reveal: only active when JS is running, so content is always
   visible without JavaScript. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="left"]  { transform: translateX(-20px); }
.js [data-reveal="right"] { transform: translateX(20px); }
.js [data-reveal="fade"]  { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .hero__title, .js .hero__sub, .js .hero__actions { opacity: 1; animation: none; }
  .carousel__track { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
