/* Site Worx NZ — layout restoration
   The Squarespace export ships markup that expects design-panel CSS
   variables and page-specific styles that never arrive in this static
   build. This sheet re-establishes the layout, type and colour system
   directly against the exported class names. Loaded last from
   _head.html so it wins the cascade. */

:root {
  --navy: #16294d;
  --navy-deep: #0d1b33;
  --red: #c8102e;
  --ink: #23303f;
  --muted: #5a6675;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;

  /* Single fill-in point for the site typeface. The Squarespace export's
     --heading-font-font-family / --body-font-font-family chain resolves to
     a bare font-family:"Roboto" with no fallback keyword AND no Google
     Fonts link anywhere in _head.html actually loading it — so any element
     that inherits that chain falls straight through to the browser's
     default serif. Roboto is now loaded for real (see _head.html); these
     two variables are the only place its name should appear. */
  --font-heading: "Roboto", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */

* { box-sizing: border-box; }

html, body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ---------- Heading ramp ---------- */

h1, h2, h3, h4,
.sqs-html-content h1,
.sqs-html-content h2,
.sqs-html-content h3,
.sqs-html-content h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(34px, 4.6vw, 56px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-size: clamp(17px, 1.4vw, 20px); }

p, li,
.sqs-html-content p,
.sqs-html-content li,
.sqs-html-content span {
  font-family: var(--font-body);
}

.dark .sqs-html-content h1,
.dark .sqs-html-content h2,
.dark .sqs-html-content h3 {
  color: #fff;
}

p, li { color: var(--ink); }
p:last-child { margin-bottom: 0; }

/* ---------- Section shell ---------- */

.page-section {
  position: relative;
  padding-block: clamp(56px, 7vw, 112px);
}

.content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
  /* The Squarespace base sheet sets .page-section>.content-wrapper to
     box-sizing:content-box (specificity beats a bare class rule), which
     makes our padding ADD to the 100% width instead of being inset from
     it — the page then renders wider than the viewport and the extra
     is silently clipped by html,body{overflow-x:clip} below. Force the
     box model back so the padding is inset, not added. */
  box-sizing: border-box !important;
}

.sqs-block + .sqs-block {
  margin-top: clamp(24px, 3vw, 40px);
}

/* Alternate section backgrounds so the page reads as distinct bands */
.page-section:nth-of-type(3) {
  background: var(--bg-alt);
}

/* ---------- Hero section ---------- */

.page-section.has-background {
  min-height: min(72vh, 680px);
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px);
}

.page-section.has-background .section-border,
.page-section.has-background .section-background {
  position: absolute;
  inset: 0;
}

.page-section.has-background .section-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.page-section.has-background .section-background-overlay {
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
  opacity: .45;
}

.page-section.has-background .content-wrapper {
  width: 100%;
}

.page-section.has-background .content {
  text-align: center;
}

.page-section.has-background h1 {
  color: #fff;
}

/* ---------- Meet the experts block image ---------- */
/* Source asset is a very tall (1302x5335) decorative dot/line graphic.
   Capping only max-width still let it render ~1700px tall — a huge dead
   gap between the two bios. Cap the height instead so it reads as a
   small divider. */

.sqs-block-image {
  display: flex;
  justify-content: center;
}

.sqs-block-image img {
  width: auto;
  max-height: 160px;
  margin-inline: auto;
  border-radius: 8px;
}

/* ================= Header ================= */

#header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .15s ease;
}

#header.header--scrolled {
  box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
}

#header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px clamp(20px, 5vw, 64px);
  max-width: 1240px;
  margin-inline: auto;
  min-height: 78px;
}

/* Keep sections from ever out-stacking the sticky header. Giving
   .page-section a stacking context is enough for that — it must NOT also
   be put on .section-background: Squarespace's own site.css absolutely-
   positions .section-background to fill every section (not just the
   hero) and gives non-hero ones a solid background-color, relying on DOM
   order (painted first, .content-wrapper painted after = on top) to stay
   behind the text. Adding z-index here promoted it into its own layer
   ABOVE .content-wrapper, painting the solid background colour over the
   Ross Blair / Health & Safety copy. */
.page-section {
  z-index: 1;
}

#header .header-background { display: none; }

/* Squarespace's base .header rule sets pointer-events:none (it only
   re-enables specific announcement-bar children) — belt and braces so
   the nav links and burger are always clickable. */
#header,
#header * {
  pointer-events: auto;
}

#header .header-title-logo img {
  height: 52px;
  width: auto;
  max-width: none;
}

#header .header-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

#header .header-nav-item a {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--navy);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

#header .header-nav-item a:hover,
#header .header-nav-item a:focus {
  color: var(--red);
}

#header .header-nav-item a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--red);
}

#header .header-display-mobile { display: none; }

@media (max-width: 768px) {
  #header .header-inner { padding: 10px clamp(16px, 5vw, 32px); }

  #header .header-title-logo img { height: 40px; }

  #header .header-display-desktop { display: none; }

  #header .header-display-mobile {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    position: relative;
  }

  #header .header-display-mobile .header-title-nav-wrapper {
    /* Squarespace's base sheet sets .header-title-nav-wrapper to
       flex:1 0 67% with shrink:0 — that reserves a hard-coded 67% of
       the row for the logo and refuses to give it up, which pushes the
       burger button off the right edge of a 390px screen entirely
       (it renders, just outside the viewport). Let it size to its
       actual content instead. */
    flex: 0 1 auto !important;
    display: flex;
    align-items: center;
  }

  #header .header-display-mobile .header-title-logo img { height: 40px; }

  #header .header-burger-btn {
    all: unset;
    box-sizing: border-box;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    flex-shrink: 0;
  }

  #header .burger-box {
    all: unset;
    display: block;
    width: 24px !important;
    height: 16px !important;
    position: relative;
  }

  #header .burger-inner { all: unset; }

  #header .burger-inner > div {
    all: unset;
    box-sizing: border-box;
    position: absolute !important;
    left: 0;
    width: 100% !important;
    height: 2px !important;
    background: var(--navy) !important;
    background-image: none !important;
    border-radius: 1px;
  }

  #header .top-bun { top: 0 !important; transition: transform .2s ease, top .2s ease; }
  #header .patty { top: 7px !important; transition: opacity .15s ease; }
  #header .bottom-bun { top: 14px !important; transition: transform .2s ease, top .2s ease; }

  #header.nav-open .top-bun { top: 7px !important; transform: rotate(45deg); }
  #header.nav-open .patty { opacity: 0; }
  #header.nav-open .bottom-bun { top: 7px !important; transform: rotate(-45deg); }

  body.header--menu-open { overflow: hidden; }

  #header .header-display-mobile .header-nav {
    display: none;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
  }

  #header.nav-open .header-display-mobile .header-nav {
    display: block;
  }

  #header .header-display-mobile .header-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 32px clamp(20px, 6vw, 40px);
  }

  #header .header-display-mobile .header-nav-item {
    width: 100%;
  }

  #header .header-display-mobile .header-nav-item a {
    display: block;
    width: 100%;
    font-size: 24px;
    letter-spacing: 0;
    padding: 8px 0;
    min-height: 44px;
  }
}

/* ================= Footer ================= */

/* The live site's footer section carries a "white" theme — confirmed
   against the original, it's a genuine white background (not the page's
   off-white body colour), which is what lets the navy section above end
   in a clean wave rather than a muddy transition. Dark text on white. */

#footer-sections {
  display: block;
  background: var(--bg) !important;
}

#footer-sections .section-background,
#footer-sections .section-border {
  background: transparent !important;
}

#footer-sections .page-section {
  position: relative;
  padding-block: clamp(40px, 5vw, 64px);
  background: var(--bg) !important;
}

#footer-sections .content-wrapper {
  display: block !important;
}

#footer-sections .footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: clamp(24px, 4vw, 40px);
}

#footer-sections .footer-brand img {
  height: 32px;
  width: auto;
}

#footer-sections .content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  text-align: left;
}

#footer-sections .sqs-block + .sqs-block { margin-top: 0; }

#footer-sections h4 {
  color: #000 !important;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: .75em;
}

#footer-sections p {
  font-family: var(--font-body);
  color: var(--muted) !important;
}

#footer-sections a {
  font-family: var(--font-body);
  color: var(--navy) !important;
  text-decoration: underline;
}

#footer-sections a:hover { color: var(--red) !important; }

@media (max-width: 768px) {
  #footer-sections .content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ================= Homepage sections ================= */
/* Clean, purpose-built markup for index.html's four content blocks
   (hero, experts, showcase, safety) — replaces the old sqs-block /
   sqs-html-content export soup. Reuses the shared .page-section /
   .content-wrapper / .has-background shell above so nothing here
   touches the other pages.

   The vendor Squarespace engine stylesheets (still loaded from
   _head.html, needed by the other pages' untouched sqs-block markup)
   set .content-wrapper to display:flex by default so it can lay a
   single .content block out with alignment modifier classes. Our
   sections drop that inner .content wrapper and put plain elements
   directly inside .content-wrapper, so without this override they
   get laid out as flex columns side by side instead of stacking. */

.hero-section .content-wrapper,
.experts-section .content-wrapper,
.showcase-section .content-wrapper,
.projects-hero .content-wrapper,
.gallery-section .content-wrapper,
.reel-section .content-wrapper {
  display: block;
}

.img-slot {
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
}

.img-slot img {
  display: block;
  width: 100%;
  height: 100%;
}

/* -- Hero -- */

.hero-bg-slot { width: 100%; height: 100%; border-radius: 0; }
.hero-bg-slot img { object-fit: cover; object-position: 50% 50%; }

.hero-copy { text-align: center; }

.hero-line {
  font-family: var(--font-heading);
  font-weight: 400;
  color: #fff;
  font-size: clamp(28px, 5.2vw, 62px);
  line-height: 1.05;
  margin: 0 0 .3em;
}

.hero-line:last-child { margin-bottom: 0; }

/* -- Meet the experts (shared with /expertise) -- */

.experts-section .section-heading {
  font-family: var(--font-heading);
  font-weight: 400;
}

.experts-columns {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 4vw, 56px);
  margin-top: 1.5em;
}

.expert-bio {
  flex: 1 1 0;
  min-width: 0;
  max-width: 480px;
}

.expert-bio .bio-lead { font-weight: 700; margin: 0 0 .5em; }

.skill-list {
  margin: 0 0 1.5em;
  padding-left: 1.25em;
}

.skill-list li { margin-bottom: .6em; min-height: 1.2em; }

/* Deliberately a background-image, not an <img>: as a flex item with no
   content it has zero intrinsic height, so it can't force the row taller
   than the actual bio text beside it. align-self:stretch then sizes it to
   exactly match the bios' natural height, and background-size:contain
   scales the graphic up to fill that — matching the original's balance
   instead of leaving dead space below shorter text. */
.divider-slot {
  flex: 0 0 auto;
  align-self: stretch;
  width: clamp(90px, 9vw, 140px);
  margin: 0;
  background-image: url("/images/uploads/siteworx-divider-graphic");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.experts-cta {
  text-align: center;
  margin-top: 2.5em;
}

.experts-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  line-height: 0;
  color: #0d2e64;
  pointer-events: none;
}

.experts-wave svg {
  display: block;
  width: 100%;
  height: clamp(24px, 3.5vw, 48px);
}

.experts-wave--arc {
  height: clamp(48px, 8vw, 120px);
}

.experts-wave--arc svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 860px) {
  .experts-columns {
    flex-direction: column;
    gap: 8px;
  }

  .expert-bio { max-width: none; }

  .divider-slot {
    align-self: center;
    width: 110px;
    height: 160px;
    margin: 24px auto;
  }
}

.learn-more {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 28px;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 14px;
  min-height: 44px;
  min-width: 44px;
}

.learn-more:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* -- Showcase (Moana Reserve) -- */

.showcase-section {
  text-align: center;
  background: var(--bg-alt);
  padding: 80px 24px 80px;
}

.showcase-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 48px);
  margin-top: 0;
  margin-bottom: .75em;
}

.showcase-slot {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.showcase-slot img { object-fit: cover; object-position: 50% 50%; }

/* -- Health & Safety --
   .page-section.safety-section (two classes) matches the specificity of
   the generic ".page-section:nth-of-type(3)" banding rule above; being
   declared later in the file lets this win instead of that alt background. */

.page-section.safety-section {
  background: #f1f4f7;
  padding: 96px 24px;
}

/* .safety-section .safety-inner (two classes via descendant combinator)
   is needed, not plain .safety-inner, to beat the vendor Squarespace rule
   ".page-section > .content-wrapper { display:flex }" (specificity 0,2,0)
   which otherwise silently wins over a single-class display:grid here —
   the section LOOKS like two columns either way, but as flex it never
   obeys the grid-template-columns:1fr mobile override below. */
.safety-section .safety-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  border-left: 6px solid var(--red);
  box-shadow: 0 10px 30px rgba(15, 45, 77, .1);
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
}

.badge-slot { width: auto; margin-bottom: 0; }

.badge-slot img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.safety-card { background: none; color: var(--ink); max-width: none; margin-left: 0; padding: 0; box-shadow: none; }

.safety-title {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  margin: 0 0 20px;
  padding-bottom: 16px;
  position: relative;
}

.safety-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  background: var(--red);
}

.safety-card p {
  font-family: var(--font-body);
  color: var(--muted);
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.safety-card p:last-of-type { margin-bottom: 0; }

@media (max-width: 800px) {
  .safety-section .safety-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 24px;
  }
  .safety-section .safety-card { order: 1; }
  .safety-section .badge-slot {
    order: 2;
    width: min(70%, 260px);
    margin: 0 auto;
  }
  .badge-slot img { max-width: 260px; }
}

/* ================= Completed Projects page ================= */

.page-hero-eyebrow {
  font-family: var(--font-body);
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 .6em;
}

.page-hero-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255, 255, 255, .82);
  max-width: 56ch;
  margin: .6em auto 0;
}

.projects-hero {
  min-height: min(56vh, 520px);
}

/* -- Project gallery (snap carousel) -- */

.gallery-section { position: relative; }

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.gallery-head > div:first-child { flex: 1 1 480px; min-width: 240px; }
.gallery-head h2 {
  margin: 0 0 .25em;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.08;
}
.gallery-head p { color: var(--muted); margin: 0; max-width: 46ch; font-size: 1.125rem; }

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.gallery-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #d7dbe6;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.gallery-arrow:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery-arrow svg { width: 22px; height: 22px; }

.gallery-counter {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
  min-width: 68px;
  text-align: center;
}

.gallery-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  margin: 0 clamp(-20px, -5vw, -64px);
  padding: 4px clamp(20px, 5vw, 64px) 16px;
}

.gallery-viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-viewport::-webkit-scrollbar { display: none; }

.gallery-track {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-card {
  flex: 0 0 auto;
  width: min(82vw, 400px);
  scroll-snap-align: start;
}

.gallery-card figure { margin: 0; }

.gallery-card .img-slot {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 8px;
}

.gallery-card .img-slot img { width: 100%; height: 100%; object-fit: cover; }

.gallery-card figcaption {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.125rem;
}

/* -- Construction process reel (continuous marquee) -- */

.reel-section { background: var(--bg-alt); overflow: hidden; }

.reel-viewport {
  overflow: hidden;
  margin-top: clamp(20px, 3vw, 32px);
}

.reel-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: reel-scroll 38s linear infinite;
}

.reel-viewport:hover .reel-track,
.reel-viewport:focus-within .reel-track {
  animation-play-state: paused;
}

@keyframes reel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reel-card {
  flex: 0 0 auto;
  width: min(70vw, 340px);
}

.reel-card .img-slot {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 8px;
}

.reel-card .img-slot img { width: 100%; height: 100%; object-fit: cover; }

.reel-card figcaption {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
  .reel-viewport { overflow-x: auto; }
}

/* -- Closing CTA band -- */

.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding-block: clamp(48px, 7vw, 72px);
}

.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0 auto 1.6em; max-width: 46ch; }

.btn-pill {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .02em;
  min-height: 44px;
  transition: background .15s ease;
}

.btn-pill:hover { background: #a50d24; }

.reel-section h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  margin: 0 0 .4em;
}

.reel-section > .content-wrapper > p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 60ch;
  margin: 0 0 clamp(32px, 4vw, 48px);
}

@media (max-width: 640px) {
  .gallery-head h2,
  .reel-section h2 { font-size: 2rem; }
  .reel-card { width: 78vw; }
  .gallery-card { width: 100%; }
}

/* ================= Services page ================= */

.services-hero {
  padding: 96px 0 48px;
}

.services-hero h1 {
  max-width: 720px;
}

.services-hero .sqs-html-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 720px;
}

.services-grid {
  padding: 48px 0 72px;
}

.services-grid .content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 56px;
}

.service-item {
  display: flex;
  flex-direction: column;
}

/* The global .sqs-block-image rule above exists for the homepage's small
   divider graphic and caps images at 160px tall — without this override
   (higher specificity, no !important needed) every service photo would
   be squashed down to that same 160px postage stamp. */
.service-item .sqs-block-image {
  display: block;
  justify-content: normal;
}

.service-item .sqs-block-image img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  margin-inline: 0;
}

.service-item h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 24px;
}

.portfolio-note {
  padding: 0 0 72px;
}

.portfolio-note p {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: none;
}

@media (max-width: 900px) {
  .services-grid .content {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .services-grid {
    padding: 32px 0 48px;
  }

  .portfolio-note {
    padding: 0 0 48px;
  }

  #collection-services .content-wrapper {
    padding-inline: 24px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .services-grid .content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Expertise page ---------- */

/* .page-section already adds its own padding-block (56-112px); without
   this override that stacks with the padding below and doubles the gap
   around the heading. */
#milestones-hero {
  padding-block: 0;
}

#milestones-hero .content-wrapper {
  padding: 40px 0 32px;
}

#milestones-hero h1 {
  margin: 0 0 12px;
}

#milestones-hero p {
  margin: 0;
  font-size: 1.0625rem;
  opacity: .75;
}

/* Reuse the homepage's two-column experts layout, but let each column
   fill its half of the row instead of capping at the homepage's narrower
   480px teaser width. */
#collection-expertise .expert-bio {
  max-width: none;
}

/* The shared .divider-slot sizes itself with background-size:contain,
   tuned for the homepage's short teaser bios — against this page's much
   taller timelines that leaves the dot graphic as a small island stranded
   mid-column. Tile it down the full stretched height instead so the dots
   run the whole length of both columns, as on the original page. */
#collection-expertise .divider-slot {
  background-repeat: repeat-y;
  background-size: 100% auto;
}

/* Merging the Ross/David sections into one shifts every later section's
   :nth-of-type position, so the alternating-background rule would now
   land on "References" instead of here — pin it back to plain so the
   page stays the uniform tone the original has. */
#references {
  background: var(--bg);
}

#collection-expertise .bio-section h2 {
  font-size: 2.75rem;
  line-height: 1.1;
  margin: 0 0 48px;
}

#collection-expertise .bio-section .sqs-html-content {
  max-width: 820px;
}

/* The Squarespace export's lists carry none of the design-panel list
   styles, so without this they render with default browser bullets and
   indentation at every nesting level — the main reason the bios look
   unstyled. Flatten to a single clean indent and style by nesting depth
   instead of relying on browser list markers. */
#collection-expertise .bio-section .sqs-html-content ul {
  list-style: none;
  margin: 0 0 16px;
  padding-left: 0;
}

#collection-expertise .bio-section .sqs-html-content ul ul {
  margin: 8px 0 0;
  padding-left: 24px;
  border-left: 1px solid #e1e6ec;
}

#collection-expertise .bio-section .sqs-html-content li {
  margin-bottom: 8px;
}

#collection-expertise .bio-section .sqs-html-content li > p {
  margin: 0;
}

/* Top-level items (company / role names) read as mini headings */
#collection-expertise .bio-section .sqs-html-content > ul > li > p:first-child {
  font-size: 1.1875rem;
  color: var(--navy);
}

/* Year-range h4s become a vertical timeline: a rule down the left edge
   with a dot marking each entry, so the dates read as a sequence rather
   than blending into the bold list text beneath them. */
#collection-expertise .bio-section .sqs-html-content {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid #e1e6ec;
}

#collection-expertise .bio-section .sqs-html-content h3 {
  margin-left: -28px;
  padding-left: 28px;
}

#collection-expertise .bio-section .sqs-html-content h4 {
  position: relative;
  margin: 40px 0 16px;
  color: var(--red);
}

#collection-expertise .bio-section .sqs-html-content h4:first-of-type {
  margin-top: 24px;
}

#collection-expertise .bio-section .sqs-html-content h4::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 0.4em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e1e6ec;
}

@media (max-width: 640px) {
  #collection-expertise .bio-section h2 {
    font-size: 2rem;
  }

  #collection-expertise .bio-section .sqs-html-content {
    padding-left: 20px;
  }

  #collection-expertise .bio-section .sqs-html-content h3 {
    margin-left: -20px;
    padding-left: 20px;
  }

  #collection-expertise .bio-section .sqs-html-content h4::before {
    left: -26px;
  }
}

/* ================= Contact page ================= */

/* "Get in Touch" and the info/form section below it are two separate
   .page-section elements, each carrying the shared padding-block
   (56-112px). Stacked back to back that's up to ~224px of dead space
   around a single line of heading. Shrink the heading band and drop the
   next section's top padding so it sits tight against it. */
#collection-contact .contact-hero {
  padding-block: clamp(24px, 3vw, 40px);
}

#collection-contact .contact-main {
  padding-top: 0;
}

/* -- Contact form: info copy on the left, form on the right -- */

#collection-contact .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

#collection-contact .contact-form-panel form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#collection-contact .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#collection-contact .form-field label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

#collection-contact .form-field input,
#collection-contact .form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c7ced9;
  padding: 12px 20px;
  border-radius: 999px;
}

#collection-contact .form-field textarea {
  border-radius: 20px;
  min-height: 140px;
  resize: vertical;
}

#collection-contact .form-field input:focus,
#collection-contact .form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(22, 41, 77, .15);
}

#collection-contact .btn-submit {
  align-self: flex-start;
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: background .15s ease;
}

#collection-contact .btn-submit:hover,
#collection-contact .btn-submit:focus-visible {
  background: var(--navy);
}

#collection-contact .form-status {
  margin: 0;
  font-size: 14px;
  min-height: 1.2em;
}

#collection-contact .form-status.is-success { color: #1d7a3b; }
#collection-contact .form-status.is-error { color: var(--red); }

@media (max-width: 860px) {
  #collection-contact .contact-grid {
    grid-template-columns: 1fr;
  }
}
