:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --ink: #17212d;
  --muted: #58606a;
  --brand: #1c2c3c;
  --brand-2: #25384b;
  --accent: #8d7158;
  --line: #e7e1d7;
  --line-strong: #d8d0c4;
  --shadow: 0 16px 38px rgba(18, 28, 38, .08);
  --header-h: 76px;
  --project-hero-h: clamp(390px, 44vh, 470px);
  --project-hub-h: clamp(380px, 42vh, 450px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(28, 44, 60, .32);
  outline-offset: 3px;
}

.skip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  left: -999px;
  padding: 10px 12px;
  position: absolute;
  top: 12px;
  z-index: 99999;
}

.skip:focus {
  left: 12px;
}

.container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.site {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 18px 28px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}

.primary {
  align-items: center;
  display: flex;
  gap: 18px;
}

.primary a {
  border-radius: 10px;
  color: #26303a;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 10px;
}

.primary a:hover {
  background: #efe7dc;
}

.menu-toggle {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  display: none;
  font-weight: 850;
  min-height: 44px;
  padding: 9px 12px;
}

.project-hero {
  padding: 18px 0 0;
}

.hero-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
}

.hero-copy {
  align-content: center;
  display: grid;
  min-height: var(--project-hero-h);
  padding: clamp(26px, 4vw, 52px);
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero-copy h1,
.hub-hero h1 {
  color: var(--brand);
  font-size: clamp(34px, 4.8vw, 60px);
  letter-spacing: 0;
  line-height: .98;
  margin: 0 0 16px;
  max-width: 760px;
  text-wrap: balance;
}

.hero-copy .lede,
.hub-hero .lede {
  color: #414a55;
  font-size: clamp(16px, 2vw, 20px);
  margin: 0 0 22px;
  max-width: 710px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  align-items: center;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
}

.btn.ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-1px);
}

.hero-media {
  min-height: var(--project-hero-h);
  position: relative;
}

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

.hero-note {
  background: rgba(22, 30, 39, .9);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  bottom: 22px;
  color: #fff;
  left: 22px;
  max-width: min(420px, calc(100% - 44px));
  padding: 16px;
  position: absolute;
}

.hero-note strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}

.hero-note span {
  color: rgba(255, 255, 255, .82);
  display: block;
  font-size: 13px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trust-chip {
  background: #f1eee8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #303842;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.anchor-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-top: 28px;
  overflow-x: auto;
}

.anchor-nav .container {
  display: flex;
  gap: 10px;
  padding-bottom: 12px;
  padding-top: 12px;
}

.anchor-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #303842;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 850;
  padding: 9px 13px;
}

.section {
  padding: 76px 0;
}

.band {
  background: linear-gradient(180deg, #fff, var(--surface-soft));
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section h2 {
  color: var(--brand);
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 14px;
  text-wrap: balance;
}

.section h3 {
  color: var(--brand);
  font-size: 21px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 850px;
}

.center {
  text-align: center;
}

.center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.split {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
}

.prose {
  color: #3f4852;
  max-width: 900px;
}

.prose p {
  margin: 0 0 18px;
}

.panel,
.card,
.feature-card,
.snapshot-card,
.faq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(18, 28, 38, .05);
}

.panel {
  padding: 24px;
}

.snapshot-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.snapshot-card {
  padding: 16px;
}

.snapshot-card dt {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.snapshot-card dd {
  color: var(--ink);
  font-weight: 750;
  margin: 0;
}

.scope-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.scope-list li {
  border-top: 1px solid var(--line);
  color: #3f4852;
  padding-top: 10px;
}

.card-grid,
.feature-grid,
.faq-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.faq-card {
  padding: 22px;
}

.feature-card .meta,
.card .meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.feature-card p,
.faq-card p,
.card p,
.panel p {
  color: #4a535d;
  margin: 0;
}

.timeline {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.timeline article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  padding: 20px 20px 20px 64px;
  position: relative;
}

.timeline article::before {
  align-items: center;
  background: var(--brand);
  border-radius: 50%;
  color: #fff;
  content: counter(step);
  counter-increment: step;
  display: flex;
  font-size: 13px;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  left: 18px;
  position: absolute;
  top: 20px;
  width: 34px;
}

.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr .8fr;
}

.gallery figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0;
  overflow: hidden;
}

.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.gallery figcaption {
  color: #4a535d;
  font-size: 14px;
  padding: 14px 16px;
}

.card {
  display: grid;
  overflow: hidden;
  padding: 0;
}

.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.profile-showcase {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.showcase-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  overflow: hidden;
}

.showcase-card img {
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  width: 100%;
}

.showcase-copy {
  align-content: center;
  display: grid;
  gap: 10px;
  padding: clamp(24px, 4vw, 42px);
}

.showcase-copy h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.04;
  margin-bottom: 4px;
}

.showcase-copy .link-pill {
  justify-self: start;
  margin-top: 8px;
}

.showcase-list,
.category-cards {
  display: grid;
  gap: 12px;
}

.profile-mini-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(18, 28, 38, .05);
  display: grid;
  gap: 14px;
  grid-template-columns: 118px 1fr;
  overflow: hidden;
}

.profile-mini-card img {
  height: 100%;
  min-height: 124px;
  object-fit: cover;
  width: 118px;
}

.profile-mini-card > div {
  padding: 14px 14px 14px 0;
}

.profile-mini-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.profile-mini-card p {
  font-size: 13px;
}

.profile-categories {
  display: grid;
  gap: 18px;
}

.profile-category {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(18, 28, 38, .05);
  padding: 22px;
}

.category-head {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 16px;
}

.category-head h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 8px;
}

.category-head p:not(.eyebrow) {
  color: #4a535d;
  margin: 0;
  max-width: 780px;
}

.category-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.link-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #303842;
  font-size: 14px;
  font-weight: 850;
  padding: 11px 13px;
  text-align: center;
}

.link-pill:hover {
  background: #efe7dc;
}

.final-cta {
  background: var(--brand);
  color: #fff;
}

.final-cta h2 {
  color: #fff;
}

.final-cta .section-sub {
  color: rgba(255, 255, 255, .78);
}

.final-cta .btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}

.hub-hero {
  padding: 22px 0 0;
}

.hub-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  overflow: hidden;
}

.hub-copy {
  align-content: center;
  display: grid;
  min-height: var(--project-hub-h);
  padding: clamp(26px, 4vw, 52px);
}

.hub-media {
  min-height: var(--project-hub-h);
  position: relative;
}

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

.footer {
  background: #132232;
  color: #fff;
  padding: 42px 24px 92px;
  text-align: center;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.sticky-cta {
  background: var(--brand);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(18, 28, 38, .24);
  color: #fff;
  font-weight: 850;
  padding: 14px 20px;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9000;
}

.modal {
  align-items: center;
  background: rgba(0, 0, 0, .68);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 9999;
}

.modal.is-open {
  display: flex;
}

.sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .28);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 26px;
  position: relative;
  width: min(560px, 94vw);
}

.sheet h2 {
  color: var(--brand);
  font-size: 28px;
  line-height: 1.12;
  margin: 0 34px 8px 0;
}

.sheet p {
  color: #555;
  margin: 0 0 16px;
}

.close {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 6px;
  position: absolute;
  right: 12px;
  top: 12px;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.field.full {
  grid-column: 1 / -1;
}

label.field {
  color: #424a53;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid #cfcac0;
  border-radius: 10px;
  color: var(--ink);
  padding: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  width: 100%;
}

select.has-value,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(28, 44, 60, .12);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.consent {
  align-items: flex-start;
  color: #555;
  display: flex;
  font-size: 12px;
  gap: 8px;
  margin: 12px 0;
}

.consent input {
  height: 16px;
  margin-top: 2px;
  padding: 0;
  width: 16px;
}

.error {
  border-color: #9f2d20 !important;
  box-shadow: 0 0 0 3px rgba(159, 45, 32, .12);
}

@media (max-width: 1100px) {
  .primary {
    gap: 8px;
  }

  .primary a {
    font-size: 13px;
    padding-inline: 8px;
  }

  .hero-copy,
  .hero-media,
  .hub-copy,
  .hub-media {
    min-height: 430px;
  }

  .feature-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site {
    padding: 16px 18px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary {
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(18, 28, 38, .12);
    display: none;
    flex-direction: column;
    gap: 4px;
    left: 0;
    padding: 12px 18px 18px;
    position: absolute;
    right: 0;
    top: var(--header-h);
  }

  .primary.active {
    display: flex;
  }

  .hero-frame,
  .hub-frame {
    grid-template-columns: 1fr;
  }

  .project-hero,
  .hub-hero {
    padding-top: 12px;
  }

  .hero-frame,
  .hub-frame {
    border-radius: 14px;
  }

  .hero-copy,
  .hub-copy {
    min-height: auto;
    padding: 26px 20px;
  }

  .hero-media,
  .hub-media {
    min-height: 0;
    order: -1;
  }

  .hero-media img,
  .hub-media img {
    aspect-ratio: 16 / 9;
    height: auto;
    position: relative;
  }

  .hero-note {
    display: none;
  }

  .hero-copy h1,
  .hub-hero h1 {
    font-size: clamp(32px, 11vw, 52px);
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .profile-showcase,
  .showcase-card,
  .category-head {
    grid-template-columns: 1fr;
  }

  .showcase-card img {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
  }

  .category-cards {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .card-grid,
  .feature-grid,
  .feature-grid.four,
  .faq-grid,
  .showcase-list,
  .category-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 14px;
    scroll-snap-type: x mandatory;
  }

  .card-grid > *,
  .feature-grid > *,
  .faq-grid > *,
  .showcase-list > *,
  .category-cards > * {
    flex: 0 0 min(82vw, 360px);
    scroll-snap-align: center;
  }

  .profile-mini-card {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .profile-mini-card img {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
    width: 100%;
  }

  .profile-mini-card > div {
    padding: 16px;
  }

  .gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
  }

  .gallery figure {
    flex: 0 0 min(84vw, 390px);
    scroll-snap-align: center;
  }

  .link-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .link-pill {
    flex: 0 0 auto;
    min-width: 180px;
    scroll-snap-align: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .sticky-cta {
    left: 16px;
    right: 16px;
    text-align: center;
  }

  .container {
    padding: 0 18px;
  }
}

@media (max-width: 520px) {
  .hero-frame,
  .hub-frame {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
  }

  .project-hero .container,
  .hub-hero .container {
    padding: 0;
  }

  .hero-copy,
  .hub-copy {
    padding: 24px 18px;
  }

  .trust-row {
    gap: 8px;
  }

  .trust-chip {
    font-size: 12px;
  }

  .timeline article {
    padding: 18px 18px 18px 58px;
  }

  .footer {
    padding-bottom: 104px;
  }
}

/* Shared lead modal hardening for mobile visual viewports. */
html.modal-open,
body.modal-open {
  overflow: hidden;
}

.modal {
  width: var(--modal-vw, 100vw);
  max-width: var(--modal-vw, 100vw);
  min-height: var(--modal-vh, 100vh);
  overflow: hidden;
  overscroll-behavior: contain;
}

.sheet {
  max-width: calc(100vw - 36px);
  overflow-x: hidden;
}

@media (max-width: 780px) {
  body.modal-open .sticky-cta {
    display: none;
  }

  .modal {
    inset: 0;
    left: 0;
    right: 0;
    width: var(--modal-vw, 100vw);
    max-width: var(--modal-vw, 100vw);
    height: var(--modal-vh, 100vh);
    min-height: var(--modal-vh, 100vh);
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    align-items: flex-end;
    justify-content: center;
  }

  .sheet {
    flex: 0 0 auto;
    width: calc(var(--modal-vw, 100vw) - 24px);
    max-width: 560px;
    max-height: calc(var(--modal-vh, 100vh) - 24px);
    margin: 0 auto;
    border-radius: 12px 12px 0 0;
    padding: 22px 16px max(16px, env(safe-area-inset-bottom));
  }

  .sheet h2 {
    font-size: clamp(22px, 6vw, 28px);
    overflow-wrap: anywhere;
  }

  #lead-form .btn {
    position: sticky;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -8px 18px rgba(255, 255, 255, .95);
  }
}

@supports (height: 100svh) {
  .modal {
    min-height: var(--modal-vh, 100svh);
  }

  @media (max-width: 780px) {
    .modal {
      height: 100svh;
      min-height: var(--modal-vh, 100svh);
    }

    .sheet {
      max-height: calc(var(--modal-vh, 100svh) - 24px);
    }
  }
}

/* Critical mobile lead form fix: let the overlay scroll instead of trapping the form below the viewport. */
@media (max-width: 780px) {
  body.modal-open .sticky-cta {
    display: none !important;
  }

  .modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: max(10px, env(safe-area-inset-top)) 10px max(28px, env(safe-area-inset-bottom)) !important;
    -webkit-overflow-scrolling: touch;
  }

  .sheet {
    width: min(560px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 auto !important;
    border-radius: 14px !important;
    padding: 22px 16px max(18px, env(safe-area-inset-bottom)) !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 52px;
    font-size: 16px;
  }

  #lead-form .btn {
    position: sticky;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 3;
    width: 100%;
    margin-top: 12px;
    box-shadow: 0 -8px 18px rgba(255, 255, 255, .95);
  }
}
