/* ============================================================
   site.css — production layer on top of the DAL design system.
   Only additions/fixes needed to run as a real website.
   ============================================================ */

/* `hidden` must always win, including over the responsive rules
   that force .nav-mobile to display:flex on small screens. */
[hidden] { display: none !important; }

/* Hero background is a real <img> now, not a design-tool slot. */
img.hero-bg { object-fit: cover; }

/* Anchor scrolling clears the fixed header. */
html { scroll-behavior: smooth; }
section[id], div[id] { scroll-margin-top: 110px; }
@media (max-width: 900px) { section[id], div[id] { scroll-margin-top: 88px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Keyboard accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 20px;
  border-radius: 0 0 4px 0; font-weight: 600; font-size: 15px;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 2px;
}

/* Contact form status message */
.form-note {
  margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--fg2);
}
.form-note:empty { display: none; }
.form-note.is-error { color: #B3261E; }
.form-note a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* Invalid field marking (only after a submit attempt) */
.contact-form.was-submitted :invalid { border-color: #B3261E; }

/* Footer contact rows are links now — keep them looking identical */
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: inherit; min-height: 24px; }
.footer-contact a:hover { color: #fff; }
.footer-col a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 24px; }

/* Project filtering */
.proj-card[data-hidden="true"] { display: none; }

/* ============================================================
   MULTI-PAGE ADDITIONS
   New components introduced when the one-pager became a real site.
   Uses only existing brand tokens — no new colours invented.
   ============================================================ */

/* ---- Interior page hero ---- */
.page-hero {
  background: var(--bg-inverse); color: #fff;
  padding: 190px 0 76px; position: relative;
}
.page-hero.is-compact { padding: 170px 0 56px; }
.page-hero .eyebrow { color: #9db4d6; }
.page-hero .eyebrow::before { background: var(--accent); }
.page-hero-title {
  font-size: clamp(38px, 5vw, 60px); font-weight: 700; line-height: 1.04;
  letter-spacing: -0.03em; margin: 0 0 22px; max-width: 22ch;
  text-wrap: balance;
}
.page-hero-title-2 { color: #9db4d6; }
.page-hero-lead { font-size: 19px; line-height: 1.65; color: #c3cfdd; max-width: 60ch; margin: 0; }
@media (max-width: 900px) {
  .page-hero { padding: 130px 0 52px; }
  .page-hero.is-compact { padding: 120px 0 40px; }
  .page-hero-lead { font-size: 16px; }
}

/* ---- Service cards (home) ---- */
.svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-card {
  display: block; padding: 30px 26px 26px; background: var(--bg-subtle);
  border: 1px solid var(--border); border-radius: 8px; color: inherit;
  transition: border-color var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
}
.svc-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.svc-card-num {
  display: block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .12em; color: var(--fg3); margin-bottom: 16px;
}
.svc-card-ico { display: block; color: var(--accent); margin-bottom: 14px; }
.svc-card-ico svg { width: 26px; height: 26px; stroke-width: 1.6; }
.svc-card h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.svc-card p { font-size: 14.5px; line-height: 1.6; color: var(--fg2); margin: 0 0 18px; }
@media (max-width: 1000px) { .svc-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .svc-cards { grid-template-columns: 1fr; } }

/* ---- Service detail blocks (services page) ---- */
.svc-block { padding: 84px 0; border-bottom: 1px solid var(--border); }
.svc-block.is-alt { background: var(--bg-subtle); }
.svc-block-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.svc-block.is-alt .svc-block-inner { direction: rtl; }
.svc-block.is-alt .svc-block-inner > * { direction: ltr; }
.svc-block-media { position: relative; border-radius: 8px; overflow: hidden; min-height: 340px; }
.svc-block-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-block-media .svc-detail-num {
  position: absolute; left: 20px; top: 16px; font-family: var(--font-mono);
  font-size: 34px; font-weight: 600; color: #fff; opacity: .85; letter-spacing: -0.02em;
}
@media (max-width: 900px) {
  .svc-block { padding: 56px 0; }
  .svc-block-inner, .svc-block.is-alt .svc-block-inner { grid-template-columns: 1fr; gap: 26px; direction: ltr; }
  .svc-block-media { min-height: 220px; }
}

/* ---- Careers ---- */
.job-list { display: flex; flex-direction: column; gap: 14px; }
.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 28px; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; color: inherit;
  transition: border-color var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.job-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.job-card-title { font-size: 21px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.015em; }
.job-card-meta, .job-meta-row { display: flex; flex-wrap: wrap; gap: 18px; }
.job-meta-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--fg2);
}
.job-meta-item svg { width: 15px; height: 15px; stroke-width: 2; color: var(--fg3); }
.job-card-go {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-size: 14.5px; font-weight: 600; color: var(--accent);
}
.job-card-go svg { width: 16px; height: 16px; stroke-width: 2; }
.job-meta-row { margin-top: 6px; }
.page-hero .job-meta-item { color: #c3cfdd; }
.page-hero .job-meta-item svg { color: #9db4d6; }
.jobs-empty {
  padding: 44px 32px; background: var(--bg-panel); border-radius: 8px;
  border: 1px solid var(--border); text-align: center; color: var(--fg2);
}
.jobs-empty p { margin: 0 0 8px; font-size: 16px; line-height: 1.6; }
.jobs-empty a { color: var(--accent); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: #9db4d6; }
.back-link:hover { color: #fff; }
.back-link svg { width: 15px; height: 15px; stroke-width: 2; }
.job-apply {
  margin-top: 44px; padding: 30px 32px; background: var(--bg-panel);
  border-radius: 8px; border: 1px solid var(--border);
}
.job-apply h2 { margin-top: 0; }
@media (max-width: 700px) {
  .job-card { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---- Long-form text (privacy, job postings) ---- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 40px 0 14px; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 30px 0 10px; }
.prose p  { font-size: 16.5px; line-height: 1.75; color: var(--fg2); margin: 0 0 16px; }
.prose ul { margin: 0 0 20px; padding-left: 22px; }
.prose li { font-size: 16.5px; line-height: 1.7; color: var(--fg2); margin-bottom: 8px; }
.prose a  { color: var(--accent); text-decoration: underline; }
.prose strong { color: var(--fg1); }
.prose-updated { font-size: 14px; color: var(--fg3); margin-bottom: 8px; }

/* ---- Closing call-to-action band ---- */
.cta-band { background: var(--accent); color: #fff; padding: 56px 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-title { font-size: 28px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }
.cta-sub { font-size: 16px; color: #d7e2f0; margin: 0; }
@media (max-width: 700px) { .cta-title { font-size: 23px; } }

/* ---- Misc ---- */
.section-cta { margin-top: 38px; text-align: center; }
.form-privacy { margin-top: 14px; font-size: 13.5px; color: var(--fg3); line-height: 1.6; }
.form-privacy a { color: var(--accent); text-decoration: underline; }
.about-copy .link-arrow { margin-top: 4px; }

/* ============================================================
   FIX — headings on dark backgrounds
   colors_and_type.css sets h1–h4 to near-black with an element
   selector, which beats the white colour inherited from a dark
   section. Result: invisible headings. These rules win because a
   class selector outranks an element selector.
   ============================================================ */
.page-hero h1, .page-hero h2, .page-hero h3,
.page-hero .page-hero-title { color: #fff; }

.cta-band h1, .cta-band h2, .cta-band h3,
.cta-band .cta-title { color: #fff; }

.stats-band h2, .stats-band h3,
.coverage h2, .coverage h3,
.site-footer h4 { color: #fff; }

/* ---- Alternating section backgrounds, so adjacent sections read as separate ---- */
.section-alt { background: var(--bg-panel); }   /* --mist #EAF0F5 — visible against white */
.section-alt + .section-alt { border-top: 1px solid var(--border); }

/* Cards need to lift off the tinted background, not blend into it */
.section-alt .svc-card { background: #fff; }

/* ---- Header CTA: outlined rather than filled ---- */
.nav-cta { background: #fff; }
.nav-cta:hover { background: var(--accent-tint); }

/* ---- "See our X projects" link under each service ---- */
.svc-block-link { margin: 22px 0 0; }
.svc-block-link .link-arrow { font-size: 15px; font-weight: 600; }

/* ============================================================
   PAGE HERO WITH A PHOTO
   ============================================================ */
.page-hero.has-photo { position: relative; overflow: hidden; isolation: isolate; }
.page-hero.has-photo > .container { position: relative; z-index: 2; }
.page-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; display: block;
}
.page-hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(16,24,32,0.93) 0%,
      rgba(16,24,32,0.86) 34%,
      rgba(16,24,32,0.62) 62%,
      rgba(16,24,32,0.42) 100%),
    linear-gradient(0deg, rgba(16,24,32,0.55) 0%, rgba(16,24,32,0) 55%);
}
@media (max-width: 900px) {
  .page-hero-scrim { background:
    linear-gradient(90deg, rgba(16,24,32,0.92) 0%, rgba(16,24,32,0.80) 60%, rgba(16,24,32,0.62) 100%),
    linear-gradient(0deg, rgba(16,24,32,0.6) 0%, rgba(16,24,32,0) 50%); }
}

/* ============================================================
   TESTIMONIALS — scroll/snap carousel
   Renders nothing when no testimonial is approved.
   Without JavaScript it degrades to a normal horizontal scroller.
   ============================================================ */
.quote-band { background: var(--bg-inverse); color: #fff; padding: 74px 0; }
.quote-band.is-light { background: var(--bg-subtle); color: var(--fg1); border-top: 1px solid var(--border); }

.quote-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 26px;
}
.quote-head .eyebrow { margin: 0; }

.quote-nav { display: flex; gap: 8px; flex: none; }
.quote-btn {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: inherit;
  border: 1px solid rgba(255,255,255,0.35);
  transition: background var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease), opacity var(--dur-mid) var(--ease);
}
.quote-btn svg { width: 20px; height: 20px; stroke-width: 2; }
.quote-btn:hover:not(:disabled) { background: rgba(255,255,255,0.12); border-color: #fff; }
.quote-btn:disabled { opacity: 0.3; cursor: default; }
.quote-band.is-light .quote-btn { border-color: var(--border-strong); color: var(--fg1); }
.quote-band.is-light .quote-btn:hover:not(:disabled) { background: var(--accent-tint); border-color: var(--accent); }

.quote-track {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  margin: 0 -4px;
}
.quote-track::-webkit-scrollbar { display: none; }
.quote-track:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 6px; border-radius: 4px; }

.quote { flex: 0 0 100%; scroll-snap-align: start; margin: 0; padding: 0 4px; max-width: none; }
.quote-text {
  margin: 0 0 22px; padding: 0; border: 0; max-width: 62ch;
  font-size: clamp(21px, 2.3vw, 30px); font-weight: 600; line-height: 1.42;
  letter-spacing: -0.015em; text-wrap: balance;
}
.quote-text p { margin: 0 0 14px; font: inherit; color: inherit; }
.quote-text p:last-child { margin-bottom: 0; }
.quote-text p:first-child::before { content: "\201C"; }
.quote-text p:last-child::after   { content: "\201D"; }
.quote-by { display: flex; flex-direction: column; gap: 3px; }
.quote-name { font-size: 15px; font-weight: 700; }
.quote-org  { font-size: 14px; }
.quote-band .quote-org { color: #9db4d6; }
.quote-band.is-light .quote-org { color: var(--fg2); }
.quote-band .quote-text { color: #fff; }
.quote-band.is-light .quote-text { color: var(--fg1); }

.quote-dots { display: flex; gap: 9px; margin-top: 30px; }
.quote-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(255,255,255,0.3);
  transition: background var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
}
.quote-dot.is-active { background: #fff; transform: scale(1.25); }
.quote-band.is-light .quote-dot { background: var(--border-strong); }
.quote-band.is-light .quote-dot.is-active { background: var(--accent); }

@media (max-width: 900px) {
  .quote-band { padding: 52px 0; }
  .quote-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .quote-text { font-size: 21px; }
}

/* Second line of an interior hero heading picks up the same soft blue as the home
   hero. Repeated with the h1 selector so it also beats the base heading colour. */
.page-hero h1 .page-hero-title-2,
.page-hero .page-hero-title-2 { color: #9db4d6; }

/* ---- Coverage map in the home About section ----
   A map must never be cropped, so this container sizes to the image
   instead of filling a fixed-height box the way a photo does. */
.about-media.is-map {
  min-height: 0; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px;
}
.about-media.is-map img {
  width: 100%; height: auto; object-fit: contain; display: block; border-radius: 0;
}
@media (max-width: 900px) { .about-media.is-map { padding: 10px; } }

/* ============================================================
   HOME "ABOUT" — brand panel instead of a photo
   A logo is a mark, not an image: it needs air around it and a
   reason to be there, so it sits with the tagline and the facts.
   ============================================================ */
.about-grid.has-brand { align-items: center; grid-template-columns: 1.2fr 0.8fr; }

.about-brand {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 44px 38px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  box-shadow: var(--shadow-sm);
}
.about-brand-logo { width: 100%; max-width: 250px; height: auto; display: block; }
.about-brand-tag {
  margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5;
  color: var(--fg1); letter-spacing: -0.01em;
}
.about-brand-tag::before {
  content: ""; display: block; width: 44px; height: 2px;
  background: var(--accent); margin: 0 auto 18px;
}
.about-brand-meta {
  margin: 0; width: 100%; display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
}
.about-brand-meta > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border);
}
.about-brand-meta > div:last-child { border-bottom: 0; }
.about-brand-meta dt {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg3); margin: 0;
}
.about-brand-meta dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--fg1); }

@media (max-width: 900px) {
  .about-grid.has-brand { grid-template-columns: 1fr; }
  .about-brand { padding: 34px 26px; }
  .about-brand-logo { max-width: 200px; }
}

/* A wide photo in a service block: size to the image rather than filling a
   fixed-height box, so nobody gets cropped out of the frame. */
.svc-block-media.is-wide { min-height: 0; }
.svc-block-media.is-wide img { height: auto; object-fit: contain; }


/* ============================================================
   SERVICES PAGE: split-screen service index
   Desktop: the left half of the screen is a full-height photo that stays
   pinned, with the service list laid over its lower edge. The four
   services scroll on the right, on the same dark ground as the hero. The
   service reaching the middle of the screen lights up and its photo
   crossfades in. Below 1000px: no pinning; each service shows its photo.
   ============================================================ */
.svc-index { background: var(--near-black); color: #fff; }
.svc-index-inner { display: grid; grid-template-columns: 1fr 1fr; max-width: none; padding: 0; margin: 0; }
.svc-index-rail {
  position: sticky; top: 96px; height: calc(100vh - 96px); height: calc(100svh - 96px);
  overflow: hidden; isolation: isolate;
}
.svc-frame { position: absolute; inset: 0; z-index: 0; background: #1a2430; }
.svc-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(16,24,32,0.92) 0%, rgba(16,24,32,0.55) 34%, rgba(16,24,32,0) 62%);
}
.svc-frame-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 800ms var(--ease), transform 1600ms var(--ease);
}
.svc-frame-img.is-active { opacity: 1; transform: scale(1); }
.svc-index-rail nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 clamp(28px, 4vw, 56px) clamp(28px, 4vh, 48px); }
.svc-index-list { list-style: none; margin: 0; padding: 0; }
.svc-index-link {
  display: flex; align-items: center; gap: 14px; padding: 9px 0;
  font-size: clamp(20px, 1.9vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  color: rgba(255,255,255,0.42); transition: color 350ms var(--ease), transform 350ms var(--ease);
}
.svc-index-ico { display: flex; color: rgba(157,180,214,0.55); transition: color 350ms var(--ease); }
.svc-index-ico svg { width: 24px; height: 24px; stroke-width: 1.6; }
.svc-index-link:hover { color: rgba(255,255,255,0.8); }
.svc-index-link.is-active { color: #fff; transform: translateX(6px); }
.svc-index-link.is-active .svc-index-ico { color: #9db4d6; }
.svc-index-link:focus-visible { outline: 2px solid #9db4d6; outline-offset: 3px; }

.svc-panels { display: flex; flex-direction: column; }
.svc-panel {
  min-height: calc(100vh - 96px); min-height: calc(100svh - 96px);
  padding: clamp(48px, 7vh, 88px) clamp(32px, 6vw, 104px);
  display: flex; flex-direction: column; justify-content: center;
  scroll-margin-top: 96px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.svc-panel:last-child { border-bottom: 0; }
.svc-panel .svc-detail-title { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.1; letter-spacing: -0.025em; color: #fff; margin: 0 0 22px; max-width: 18ch; }
.svc-panel .svc-detail-desc { font-size: 18px; line-height: 1.7; color: #c3cfdd; margin: 0 0 30px; max-width: 58ch; }
.svc-panel .svc-caps { gap: 14px 28px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); max-width: 620px; }
.svc-panel .svc-caps li { font-size: 16px; color: #e6edf5; }
.svc-panel .svc-caps svg { color: #9db4d6; }
.svc-panel .svc-block-link { margin-top: 30px; }
.svc-panel .link-arrow { color: #9db4d6; }
.svc-panel .link-arrow:hover { color: #fff; }
.svc-panel-img { display: none; }


@media (max-width: 1000px) {
  .svc-index-inner { grid-template-columns: 1fr; }
  .svc-index-rail { position: static; height: auto; overflow: visible; }
  .svc-frame { display: none; }
  .svc-index-rail nav { position: static; padding: 28px 22px 8px; }
  .svc-index-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .svc-index-link { font-size: 15px; font-weight: 600; padding: 8px 14px; border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; color: #fff; }
  .svc-index-link.is-active { transform: none; }
  .svc-index-ico { color: #9db4d6; }
  .svc-index-ico svg { width: 18px; height: 18px; }
  .svc-panel { min-height: 0; padding: 40px 22px; scroll-margin-top: 80px; }
  .svc-panel-img { display: block; width: calc(100% + 44px); max-width: none; margin: -40px -22px 28px; aspect-ratio: 3 / 2; object-fit: cover; }
  .svc-panel .svc-detail-desc { font-size: 16.5px; }
}

/* ---- Interior hero entrance (Services): lines rise in, then the service list follows ---- */
.page-hero.is-rise .page-hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.page-hero.is-rise .page-hero-title .line-inner { display: block; }
@keyframes rise-line { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rule-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.motion-ok .page-hero.is-rise .eyebrow { animation: rise-fade 700ms var(--ease) 80ms both; }
.motion-ok .page-hero.is-rise .eyebrow::before { transform-origin: left; animation: rule-grow 700ms var(--ease) 200ms both; }
.motion-ok .page-hero.is-rise .line-inner[data-rise="1"] { animation: rise-line 900ms var(--ease) 220ms both; }
.motion-ok .page-hero.is-rise .line-inner[data-rise="2"] { animation: rise-line 900ms var(--ease) 360ms both; }
.motion-ok .page-hero.is-rise .page-hero-lead { animation: rise-fade 800ms var(--ease) 560ms both; }
.motion-ok .svc-index-list li { animation: rise-fade 650ms var(--ease) both; animation-delay: calc(760ms + var(--i, 0) * 110ms); }
.motion-ok .svc-index-list li:nth-child(1) { --i: 0; } .motion-ok .svc-index-list li:nth-child(2) { --i: 1; }
.motion-ok .svc-index-list li:nth-child(3) { --i: 2; } .motion-ok .svc-index-list li:nth-child(4) { --i: 3; }
.motion-ok .svc-frame { animation: frame-in 1200ms var(--ease) 300ms both; }
@keyframes frame-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .svc-frame-img, .svc-index-link, .svc-index-ico { transition: none; }
}

.page-hero.is-rise { padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* ---- Services closing line: a two-tier statement. A small label-style lead-in,
   then the commitment itself set large, full width, left-aligned: connecting words
   in Regular slate, the five commitments in Bold DAL blue. On scroll the words light
   up in reading order and each commitment settles into place (rises, tightens).
   No motion / no JS: shows in its finished state. ---- */
.svc-closing-section { padding: 120px 0 128px; }
.svc-closing {
  margin: 0; max-width: none; text-align: left; color: var(--fg2);
  font-size: inherit; line-height: inherit;
}
.svc-closing-lead {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.5; color: var(--fg2); margin-bottom: 28px;
}
.svc-closing-lead::before { content: ''; flex: none; width: 36px; height: 2px; background: var(--accent); transform-origin: left; }
.svc-closing-main {
  display: block; font-size: clamp(30px, 4.1vw, 54px); line-height: 1.16;
  font-weight: 400; letter-spacing: -0.022em; color: var(--fg2);
}
.svc-closing .kw { font-weight: 700; color: var(--accent); letter-spacing: -0.03em; }
.svc-closing .w { display: inline-block; }

.motion-live .svc-closing[data-words] .svc-closing-lead { opacity: 0; transform: translateY(10px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.motion-live .svc-closing[data-words] .svc-closing-lead::before { transform: scaleX(0); transition: transform 900ms var(--ease) 150ms; }
.motion-live .svc-closing[data-words] .svc-closing-lead.is-lit { opacity: 1; transform: none; }
.motion-live .svc-closing[data-words] .svc-closing-lead.is-lit::before { transform: scaleX(1); }
.motion-live .svc-closing[data-words] .svc-closing-main .w { color: #CDD5DF; transition: color 320ms var(--ease); }
.motion-live .svc-closing[data-words] .svc-closing-main .w.is-lit { color: var(--fg2); }
.motion-live .svc-closing[data-words] .kw .w {
  color: #CDD5DF; opacity: 0.35; transform: translateY(0.16em); letter-spacing: 0.02em;
  transition: color 500ms var(--ease), opacity 500ms var(--ease), transform 700ms var(--ease), letter-spacing 900ms var(--ease);
}
.motion-live .svc-closing[data-words] .kw .w.is-lit { color: var(--accent); opacity: 1; transform: none; letter-spacing: -0.03em; }

@media (max-width: 720px) {
  .svc-closing-section { padding: 80px 0 88px; }
  .svc-closing-lead { font-size: 12px; letter-spacing: 0.12em; margin-bottom: 20px; align-items: flex-start; }
  .svc-closing-lead::before { margin-top: 0.7em; width: 24px; }
  .svc-closing-main { line-height: 1.2; }
}

/* =====================================================================
   Project panels (Projects page). A card with fact-sheet content opens a
   large panel below the grid: photo header, facts bar, key numbers,
   challenge → work → outcome, scope. Motion only with .motion-live.
   ===================================================================== */
.proj-card.has-page { position: relative; cursor: pointer; }
.proj-link { color: inherit; text-decoration: none; }
.proj-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.proj-link:focus-visible { outline: none; }
.proj-card.has-page:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.proj-more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent); }
.proj-more svg { width: 16px; height: 16px; transition: transform var(--dur-mid) var(--ease); }
.proj-card.has-page:hover .proj-more svg { transform: translateY(3px); }
.proj-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.proj-card.is-selected .proj-more svg { transform: rotate(180deg); }
.proj-card.is-selected .proj-more .more-open { display: none; }
.bento-link { color: inherit; text-decoration: none; }
.bento-link::after { content: ''; position: absolute; inset: 0; z-index: 3; }

.pd-stage { margin-top: 0; }
.pd-panel { margin-top: 56px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(16,24,32,0.35); scroll-margin-top: 110px; outline: none; }
.pd-panel.is-opening { animation: pd-open 700ms var(--ease) both; }
@keyframes pd-open { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.pd-head { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; background: var(--near-black); }
.pd-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pd-panel.is-opening .pd-head-img { animation: pd-settle 1600ms var(--ease) both; }
@keyframes pd-settle { from { transform: scale(1.08); } to { transform: none; } }
.pd-head-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(16,24,32,0.95) 0%, rgba(16,24,32,0.7) 38%, rgba(16,24,32,0.15) 78%, rgba(16,24,32,0.35) 100%); }
.pd-head-body { padding: 48px 56px 44px; max-width: 900px; }
.pd-cat { margin: 0 0 14px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #9db4d6; }
.pd-cat span + span { padding-left: 12px; border-left: 1px solid rgba(157,180,214,0.45); }
.pd-cat::before { content: ''; width: 26px; height: 2px; background: #9db4d6; }
.pd-title { margin: 0; font-size: clamp(30px, 4vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; text-transform: uppercase; color: #fff; }
.pd-lede { margin: 18px 0 0; max-width: 60ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: #c9d4e0; }
.pd-close { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  font: inherit; font-size: 13px; font-weight: 600; color: #fff; background: rgba(16,24,32,0.55); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px; cursor: pointer; backdrop-filter: blur(4px); transition: background var(--dur-mid) var(--ease); }
.pd-close:hover { background: rgba(16,24,32,0.85); }
.pd-close svg { width: 15px; height: 15px; }

.pd-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: #0b1117; color: #fff; padding: 0 56px; }
.pd-facts > div { padding: 22px 22px 22px 0; }
.pd-facts > div + div { padding-left: 22px; border-left: 1px solid rgba(255,255,255,0.1); }
.pd-facts dt { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #A8B6C6; margin-bottom: 6px; }
.pd-facts dd { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.35; color: #fff; }

.pd-numbers { background: var(--mist); padding: 48px 56px; }
.pd-metrics { display: grid; gap: 32px; }
.pd-m4 { grid-template-columns: repeat(4, 1fr); } .pd-m3 { grid-template-columns: repeat(3, 1fr); }
.pd-m2 { grid-template-columns: repeat(2, 1fr); } .pd-m1 { grid-template-columns: 1fr; }
.pd-metric { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--accent); }
.pd-metric-value { font-size: clamp(40px, 4.4vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.pd-metric-value { white-space: nowrap; }
.pd-metric-value small { font-size: 0.42em; font-weight: 700; letter-spacing: 0; margin-left: 0.18em; }
.pd-metric-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg2); }
.motion-live .pd-metric { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.motion-live .pd-metric:nth-child(2) { transition-delay: 110ms; } .motion-live .pd-metric:nth-child(3) { transition-delay: 220ms; } .motion-live .pd-metric:nth-child(4) { transition-delay: 330ms; }
.motion-live .pd-metric.is-in { opacity: 1; transform: none; }

.pd-story { padding: 24px 56px 40px; }
.pd-step { display: grid; grid-template-columns: minmax(190px, 0.3fr) 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--border); position: relative; }
.pd-step:first-child { border-top: 0; }
.pd-step-label { margin: 0; display: flex; align-items: baseline; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg2); }
.pd-step-label span { color: var(--accent); }
.pd-step-text { margin: 0; max-width: 42ch; font-size: clamp(20px, 2vw, 28px); line-height: 1.38; letter-spacing: -0.015em; color: var(--fg1); }
.motion-live .pd-step .pd-step-text, .motion-live .pd-step .pd-step-label { opacity: 0; transform: translateY(14px); transition: opacity 800ms var(--ease) 120ms, transform 800ms var(--ease) 120ms; }
.motion-live .pd-step .pd-step-label { transition-delay: 0ms; }
.motion-live .pd-step.is-in .pd-step-text, .motion-live .pd-step.is-in .pd-step-label { opacity: 1; transform: none; }

.pd-scope-wrap { background: var(--near-black); color: #fff; padding: 48px 56px 52px; }
.pd-kicker { margin: 0; display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #9db4d6; }
.pd-kicker::before { content: ''; width: 26px; height: 2px; background: var(--accent); }
.pd-scope { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.pd-scope:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
.pd-scope-item { padding: 6px 28px 6px 0; }
.pd-scope-item + .pd-scope-item { padding-left: 28px; border-left: 1px solid rgba(255,255,255,0.12); }
.pd-scope:has(> :nth-child(6)) .pd-scope-item:nth-child(4) { padding-left: 0; border-left: 0; }
.pd-scope:has(> :nth-child(6)) .pd-scope-item:nth-child(n+4) { margin-top: 28px; }
.pd-scope-num { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: #9db4d6; margin-bottom: 14px; }
.pd-scope-item h4 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.pd-scope-item p { margin: 0; font-size: 15px; line-height: 1.6; color: #aebccd; }
.motion-live .pd-scope-item { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.motion-live .pd-scope-item:nth-child(2) { transition-delay: 120ms; } .motion-live .pd-scope-item:nth-child(3) { transition-delay: 240ms; } .motion-live .pd-scope-item:nth-child(4) { transition-delay: 360ms; }
.motion-live .pd-scope-item.is-in { opacity: 1; transform: none; }

.pd-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 56px; border-top: 1px solid var(--border); }
.pd-back, .pd-next-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; }
.pd-back svg, .pd-next-link svg { width: 17px; height: 17px; transition: transform var(--dur-mid) var(--ease); }
.pd-back:hover svg { transform: translateY(-3px); } .pd-next-link:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .pd-panel { margin-top: 40px; scroll-margin-top: 84px; }
  .pd-head { min-height: 380px; }
  .pd-head-body { padding: 72px 22px 28px; }
  .pd-facts { grid-template-columns: 1fr 1fr; column-gap: 18px; padding: 4px 22px; }
  .pd-facts > div, .pd-facts > div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .pd-numbers { padding: 36px 22px; }
  .pd-m4, .pd-m3, .pd-m2 { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .pd-story { padding: 8px 22px 24px; }
  .pd-step { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .pd-scope-wrap { padding: 36px 22px 40px; }
  .pd-scope, .pd-scope:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; }
  .pd-scope-item, .pd-scope-item + .pd-scope-item, .pd-scope:has(> :nth-child(6)) .pd-scope-item:nth-child(4) { padding: 20px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 0; }
  .pd-foot { padding: 20px 22px; }
}

/* =====================================================================
   Careers + Contact
   ===================================================================== */
/* Careers: a single clear "no openings" panel */
.jobs-empty {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; text-align: left;
  padding: 48px 52px; background: var(--near-black); color: #c3cfdd; border: 0; border-radius: 12px;
  position: relative; overflow: hidden;
}
.jobs-empty::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.jobs-empty-head { display: flex; align-items: center; gap: 18px; }
.jobs-empty-ico { width: 56px; height: 56px; flex: none; border-radius: 12px; background: rgba(157,180,214,0.12); display: grid; place-items: center; }
.jobs-empty-ico svg { width: 26px; height: 26px; color: #9db4d6; stroke-width: 1.75; }
.jobs-empty h3 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: #fff; }
.jobs-empty-body p { margin: 0 0 22px; font-size: 17px; line-height: 1.65; color: #c3cfdd; }
.jobs-empty-body p a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.35); }
.jobs-empty-body .btn { background: #fff; color: var(--near-black); border-color: #fff; }
.jobs-empty-body .btn:hover { background: var(--mist); }
.motion-live .jobs-empty { opacity: 0; transform: translateY(20px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.motion-live .jobs-empty.is-in { opacity: 1; transform: none; }

/* Contact: copy left, form lifted over the dark hero on the right; office + contact lines below */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-hero { padding-bottom: 88px; }
.contact-copy { padding-top: 12px; }
.contact-form-col { position: relative; z-index: 3; margin-bottom: -300px; }
.motion-ok .contact-form-col { animation: rise-fade 900ms var(--ease) 450ms both; }
.contact-form { box-shadow: 0 34px 70px -28px rgba(16,24,32,0.45); color: var(--fg1); }
.contact-form .field label, .topic-field legend { color: var(--fg2); }
.topic-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.topic-field legend { padding: 0; margin-bottom: 9px; font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip { position: relative; cursor: pointer; }
.topic-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topic-chip span { display: inline-block; padding: 8px 14px; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--fg1);
  border: 1px solid var(--border-strong, #c5cfda); border-radius: 999px; background: #fff;
  transition: background var(--dur-mid) var(--ease), color var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease); }
.topic-chip:hover span { border-color: var(--accent); }
.topic-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.topic-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-sent { color: var(--fg1); }

.contact-info { background: var(--mist); padding: 72px 0 96px; min-height: 380px; }
.contact-details { display: flex; flex-direction: column; gap: 36px; }
.contact-offices { display: grid; gap: 14px; }
.contact-office { display: flex; gap: 16px; padding: 22px 22px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.contact-office > div, .contact-line > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.contact-directions { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.contact-directions svg { width: 15px; height: 15px; transition: transform var(--dur-mid) var(--ease); }
.contact-directions:hover svg { transform: translateX(3px); }
.contact-lines { display: grid; gap: 0; }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.contact-line:last-child { border-bottom: 1px solid var(--border); }
.contact-line:hover .contact-detail-value { color: var(--accent); }
.contact-line .contact-detail-value { transition: color var(--dur-mid) var(--ease); }

@media (max-width: 900px) {
  .jobs-empty { grid-template-columns: 1fr; gap: 22px; padding: 34px 26px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid > div[aria-hidden="true"] { display: none; }
  .contact-form-col { margin-bottom: 0; }
  .contact-form { padding: 24px 20px; }
  .contact-info { padding: 56px 0 72px; min-height: 0; }
}
.topic-field .topic-chip { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--fg1); }
.contact-hero .page-hero-title { font-size: clamp(32px, 3.2vw, 48px); }

/* Honeypot: clipped out of view, not display:none, so it stays out of the tab order without widening the page. */
.contact-form { position: relative; }
.hp-field {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.cf-turnstile { margin: 4px 0 16px; }

/* Photographs inside an open project panel. Cards stay the same height.
   Thumbnails are cropped to one size. The viewer shows each photo whole. */
.pd-gallery { padding: 8px 56px 28px; background: #fff; }
.pd-gallery-list {
  display: flex; gap: 12px; list-style: none; margin: 16px 0 0; padding: 0 0 8px;
  overflow-x: auto;
}
.pd-gallery-thumb {
  display: block; padding: 0; border: 0; background: var(--near-black); border-radius: 6px;
  cursor: pointer; min-width: 44px; min-height: 44px;
}
.pd-gallery-list img {
  width: 148px; height: 100px; object-fit: cover; object-position: center;
  border-radius: 6px; display: block;
}
.pd-gallery-view {
  width: min(1080px, calc(100vw - 32px)); max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px); margin: auto; padding: 16px 16px 20px;
  border: 0; border-radius: 12px; background: #101820; color: #fff;
}
.pd-gallery-view::backdrop { background: rgba(16, 24, 32, 0.82); }
.pd-gallery-view-bar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.pd-gallery-nav, .pd-gallery-close {
  min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.28);
}
.pd-gallery-close { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.pd-gallery-close svg { width: 15px; height: 15px; }
.pd-gallery-nav:hover, .pd-gallery-close:hover { background: rgba(255,255,255,0.16); }
.pd-gallery-full {
  display: block; margin: 0 auto; width: auto; height: auto;
  max-width: 100%; max-height: min(72vh, calc(100vh - 180px));
  object-fit: contain; background: #07090c;
}
.pd-gallery-caption { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: #d3dae2; }
@media (max-width: 900px) {
  .pd-gallery { padding: 4px 22px 20px; }
  .pd-gallery-view-bar { flex-wrap: wrap; }
}

/* Cookie notice */
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 820px; margin: 0 auto; padding: 16px 18px;
  background: var(--near-black); color: #e6edf5; border-radius: 12px;
  box-shadow: 0 18px 50px rgba(16,24,32,0.28);
}
.consent-copy { margin: 0; font-size: 14.5px; line-height: 1.5; max-width: 52ch; color: #e6edf5; }
.consent-copy a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.consent-decline {
  min-height: 44px; padding: 0 14px; background: none; border: 0; cursor: pointer;
  color: #d3dae2; font: inherit; font-size: 15px; font-weight: 600;
}
.consent-decline:hover { color: #fff; }
.consent-accept { min-height: 44px; }
/* Keep the home-page scroll cue above the notice while the notice is open.
   .intro-on is on <html>, so the selector has to start there. */
html.intro-on:has(#cookie-consent:not([hidden])) .hero-cue { bottom: 140px; }
@media (max-width: 700px) {
  html.intro-on:has(#cookie-consent:not([hidden])) .hero-cue { bottom: 230px; }
}
@media (max-width: 700px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: flex-end; }
}

/* 404 */
.missing-links { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 12px; }
.missing-links a {
  display: flex; align-items: center; min-height: 48px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  font-weight: 600; color: var(--fg1);
}
.missing-links a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 700px) { .missing-links { grid-template-columns: 1fr; } }

/* About: text-only intro (group photo removed 2026-11-06). Keep a readable line length. */
.about-grid.is-text-only { grid-template-columns: 1fr; max-width: 820px; }
