/* ============================================================
   Innovation Design & Consulting: shared stylesheet
   Visual system: survey / reality-capture vernacular.
   Dark ink page furniture, light data sections, orange signal.
   TEMPORARY BRANDING: orange #ED790D sampled from the existing
   IDC identity. Real logos and official brand colors are coming
   from Brent. Swap the tokens in :root when they arrive.
   ============================================================ */

/* ---- Metric-matched fallbacks so the hero does not shift on swap ---- */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial Bold"), local("Helvetica Bold"), local("Arial");
  font-weight: 600 800;
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Public Sans Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  /* Signal */
  --orange: #ED790D;
  --orange-deep: #C05F06;

  /* Surfaces */
  --ink: #0C0E11;
  --panel: #14171C;
  --panel-2: #1A1E25;
  --light: #EEF0F2;
  --white: #ffffff;
  --page: #ffffff;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(12, 14, 17, 0.12);
  --line-dark-strong: rgba(12, 14, 17, 0.22);

  /* Text */
  --text: #14171C;
  --mist: #8B96A3;
  --text-muted: #5D6874;
  --text-dark-bg: #C3CBD4;

  --radius: 2px;
  --maxw: 1240px;
  --nav-h: 68px;

  --display: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --font: "Public Sans", "Public Sans Fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--page);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.03em;
}
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.3rem); font-stretch: 105%; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Reading column stays on the same left gutter as every other section
   instead of floating to page center. */
.narrow { max-width: var(--maxw); }
.narrow > * { max-width: 820px; }

/* Skip link ------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--orange);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--mono);
  font-weight: 500;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ============================ NAV ========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(12, 14, 17, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--nav-h);
}

/* Text-based logo placeholder. Do not hotlink the HubSpot image.
   Replace this block with Brent's official logo file when it lands. */
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand-icon { display: block; height: 40px; width: auto; }
.brand-word { display: block; height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  position: relative;
  color: var(--text-dark-bg);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--orange); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid var(--orange);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

.nav-cta { flex-shrink: 0; }

/* Hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(12, 14, 17, 0.99);
  padding: 8px 24px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-dark-bg);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav .btn { display: block; text-align: center; margin-top: 18px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .nav-cta { display: none; }
}

/* ============================ HERO ========================= */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 120px) 0 82px;
  overflow: hidden;
  background: var(--ink);
}

/* ---------------------------------------------------------------
   HOMEPAGE BACKGROUND VIDEO GOES HERE.
   The looping banner video Brent is supplying drops in as:

     <video class="hero-video" autoplay muted loop playsinline
            poster="hero-poster.jpg" src="hero-loop.mp4"></video>

   placed as the first child of .hero, above .hero-veil. The
   point-cloud canvas can stay underneath or be removed then.
   --------------------------------------------------------------- */
.hero-slides { position: absolute; inset: 0; z-index: 1; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.8s ease;
}
.hero-slides img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-slides img { transition: none; } }
.hero-video,
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

/* Static fallback field behind the canvas: visible with JS disabled. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 540px at 74% 22%, rgba(237, 121, 13, 0.13), transparent 70%),
    radial-gradient(760px 480px at 8% 88%, rgba(60, 90, 130, 0.18), transparent 72%),
    linear-gradient(165deg, #0C0E11 0%, #14171C 48%, #08090C 100%);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Kept deliberately light over the right two thirds: the point cloud
     resolves there and a heavy veil erases it. Hero text carries its own
     shadow instead of relying on this plate for contrast. */
  background:
    linear-gradient(
      to right,
      rgba(8, 9, 12, 0.80) 0%,
      rgba(8, 9, 12, 0.52) 32%,
      rgba(8, 9, 12, 0.10) 66%,
      rgba(8, 9, 12, 0.16) 100%
    ),
    linear-gradient(
      to top,
      rgba(8, 9, 12, 0.88) 0%,
      rgba(8, 9, 12, 0.30) 42%,
      rgba(8, 9, 12, 0) 76%
    );
}

/* The wrap keeps its full width so the hero text lands on the same left
   gutter as every other section. Capping .hero-content itself made the
   whole block centre in the flex row and drift right on wide screens. */
.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
}
.hero-content > * { max-width: 820px; }
.hero-content h1 { color: #fff; max-width: 15ch; }
.hero-content p {
  color: #D3DAE2;
  font-size: 1.08rem;
  max-width: 58ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ====================== STATION LABELS ===================== */
/* Survey stationing used as section sequence. Mono, ticked. */
.sta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sta::before {
  content: "";
  flex: none;
  width: 22px;
  height: 2px;
  background: var(--orange);
}
.section-dark .sta,
.page-head .sta,
.hero .sta { color: var(--mist); }

/* Hero eyebrow uses the same vernacular without the section rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 22px;
  height: 2px;
  background: var(--orange);
}

/* Page header for interior pages */
.page-head {
  background: var(--ink);
  color: #fff;
  padding: calc(var(--nav-h) + 76px) 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 420px at 84% 6%, rgba(237, 121, 13, 0.14), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}
.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, var(--orange) 0 96px, transparent 96px);
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { color: #fff; margin-bottom: 0.3em; }
.page-head p { color: #AEB7C2; max-width: 66ch; margin-bottom: 0; }

/* ========================= SECTIONS ======================== */
.section { padding: 92px 0; position: relative; }
.section-alt { background: var(--light); }
.section-dark { background: var(--ink); color: var(--text-dark-bg); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

/* Registration ticks at the corners of light content sections */
.section-alt { position: relative; }
.section-alt::before,
.section-alt::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  pointer-events: none;
  opacity: 0.55;
  background:
    linear-gradient(var(--line-dark-strong), var(--line-dark-strong)) center/1px 100% no-repeat,
    linear-gradient(var(--line-dark-strong), var(--line-dark-strong)) center/100% 1px no-repeat;
}
.section-alt::before { top: 22px; left: 22px; }
.section-alt::after { bottom: 22px; right: 22px; }

.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head h2 { margin-bottom: 0.4em; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 0; }
.section-dark .section-head p { color: #9AA4B0; }

/* Legacy rule element, kept harmless if any page still uses it */
.rule { width: 44px; height: 2px; background: var(--orange); margin-bottom: 20px; }

/* Scroll reveal. Content is visible by default: the .js gate means
   nothing disappears when JavaScript fails or is switched off. */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==================== SERVICE RULED LIST ==================== */
.ruled {
  border-top: 1px solid var(--line-dark);
}
.srow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr auto;
  align-items: baseline;
  gap: 0 24px;
  padding: 26px 20px 26px 18px;
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
  color: inherit;
  transition: background 0.22s ease, padding-left 0.22s ease;
}
.srow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--orange);
  transform: translateY(-50%);
  transition: height 0.25s ease;
}
.srow:hover,
.srow:focus-visible {
  background: var(--panel);
  color: #fff;
  padding-left: 26px;
}
.srow:hover::before,
.srow:focus-visible::before { height: 100%; }
.srow:hover .srow-desc,
.srow:focus-visible .srow-desc { color: #A9B3BF; }
.srow:hover .srow-sta,
.srow:focus-visible .srow-sta { color: var(--orange); }
.srow:hover .srow-arrow,
.srow:focus-visible .srow-arrow { color: var(--orange); transform: translateX(4px); }

.srow-sta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mist);
  transition: color 0.22s ease;
}
.srow-name {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.srow-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  transition: color 0.22s ease;
}
.srow-arrow {
  font-family: var(--mono);
  color: var(--mist);
  justify-self: end;
  transition: color 0.22s ease, transform 0.22s ease;
}

@media (max-width: 820px) {
  .srow {
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    padding: 22px 14px;
  }
  .srow-sta { grid-column: 1 / -1; }
  .srow-name { grid-column: 1; }
  .srow-arrow { grid-column: 2; grid-row: 2; align-self: center; }
  .srow-desc { grid-column: 1 / -1; }
}

/* ==================== STEP LIST (how it runs) =============== */
.steps {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.step {
  padding: 28px 24px 30px 0;
  border-right: 1px solid var(--line-dark);
}
.step:last-child { border-right: none; padding-right: 0; }
.step:not(:first-child) { padding-left: 24px; }
.step-sta {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 0.4em; }
.step p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n) { border-right: none; }
  .step:nth-child(-n + 2) { border-bottom: 1px solid var(--line-dark); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line-dark); padding: 22px 0; }
  .step:not(:first-child) { padding-left: 0; }
  .step:last-child { border-bottom: none; }
}

/* ========================== PANELS ========================= */
.grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
/* On dark sections the panels carry their own hairline, so the
   1px-gap trick is dropped in favor of real spacing. */
.section-dark .grid {
  background: none;
  border: none;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--white);
  border: none;
  padding: 30px 28px 32px;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  transition: background 0.22s ease;
}
.section-alt .card { background: #F7F8F9; }
a.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
a.card:hover::before { transform: scaleX(1); }
a.card:hover { background: var(--white); }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  color: var(--orange);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Service sections on services.html */
.service-block {
  padding: 68px 0;
  border-bottom: 1px solid var(--line-dark);
}
.service-block:last-of-type { border-bottom: none; }
.service-block .service-index {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.service-block .service-index::before {
  content: "";
  flex: none;
  width: 22px;
  height: 2px;
  background: var(--orange);
}
.service-block h2 { margin-bottom: 0.45em; }
.service-block p { color: var(--text-muted); }
.service-block p:first-of-type { color: var(--text); }
.service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
@media (max-width: 820px) {
  .service-layout { grid-template-columns: 1fr; gap: 26px; }
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}
.tag-row li {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 9px 18px 9px 0;
  margin-right: 18px;
  border-bottom: 1px solid transparent;
}
.tag-row li::before {
  content: "+ ";
  color: var(--orange);
}

/* ================== PROCEDURAL POINT FIELDS ================= */
/* Stand-ins for scan imagery. Dotted registration field in panel
   tones. Swap for real captures when Brent clears them. */
.media-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at 30% 30%, rgba(237, 121, 13, 0.10), transparent 58%),
    radial-gradient(circle, rgba(12, 14, 17, 0.30) 1px, transparent 1.4px),
    radial-gradient(circle, rgba(12, 14, 17, 0.16) 1px, transparent 1.4px),
    linear-gradient(150deg, #E4E7EA 0%, #D3D8DE 100%);
  background-size: auto, 13px 13px, 31px 29px, auto;
  background-position: center, 0 0, 6px 9px, center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}
.media-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%),
    linear-gradient(to top, rgba(12, 14, 17, 0.42), rgba(12, 14, 17, 0.10) 28%, transparent 56%);
}
.media-placeholder span {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E3E7EB;
  padding: 12px 14px;
}

/* ===================== REAL SCAN IMAGERY ===================== */
/* Same frame as .media-placeholder, carrying an actual capture or
   model view. */
.media-shot {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-dark);
  background: #EDF0F2;
  overflow: hidden;
}
.media-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======================== PROJECTS ========================= */
.cube-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  padding: 1px;
}
.cube {
  outline: 1px solid var(--line-dark);
  background: var(--white);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2), background 0.22s ease;
}
.section-alt .cube { background: #F7F8F9; }
.cube:hover { transform: scale(1.02); z-index: 2; background: var(--white); }
.cube::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--orange);
  z-index: 3;
  transition: height 0.28s ease;
}
.cube:hover::before { height: 100%; }
.cube .media-placeholder,
.cube .media-shot {
  aspect-ratio: 1 / 1;
  border: none;
  border-bottom: 1px solid var(--line-dark);
}
.cube-body { padding: 20px 22px 24px; }
.cube-body h3 { font-size: 1.06rem; margin-bottom: 0.3em; }
.cube-body p {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.cube-tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.cube-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  padding-top: 10px;
  border-top: 1px solid var(--line-dark);
}

/* ======================== LEADERSHIP ======================= */
.person-photo {
  aspect-ratio: 1 / 1;
  max-width: 108px;
  border-radius: 0;
  margin-bottom: 20px;
  background:
    radial-gradient(circle, rgba(12, 14, 17, 0.26) 1px, transparent 1.4px),
    linear-gradient(150deg, #E4E7EA 0%, #D3D8DE 100%);
  background-size: 11px 11px, auto;
  border: 1px solid var(--line-dark);
  overflow: hidden;
}
.person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Photo-less card: same frame, initials instead of a broken slot. */
.person-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.person-role {
  font-family: var(--mono);
  color: var(--orange);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}

/* Full-bio profile rows: photo left, verbatim bio right. */
.profiles { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.profile {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-dark);
}
.profile .person-photo { max-width: 180px; margin-bottom: 0; }
.profile-body h3 { margin-bottom: 4px; }
.profile-body p { max-width: 760px; color: var(--text-muted); font-size: 0.98rem; }
.profile-body p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .profile { grid-template-columns: 1fr; gap: 20px; }
  .profile .person-photo { max-width: 140px; }
}

/* Locations */
.location-card {
  border-left: 2px solid var(--orange);
  position: relative;
  overflow: hidden;
}
/* Procedural city motif: inline SVG, drawn in the ink line color at
   watermark opacity. One variant per city. No tiles, no external maps. */
.loc-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.16;
  filter: grayscale(1);
  pointer-events: none;
  z-index: 0;
}
.location-card > *:not(.loc-map) {
  position: relative;
  z-index: 1;
}
@media (prefers-contrast: more) {
  .loc-map { opacity: 0.08; }
}
.location-card .loc-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 10px;
}
.location-card address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Client and partner logo grid.
   The same .logo-slot frame serves both states: the text placeholder while
   files are missing, and a real <img> once client-logo-NN.png is dropped in.
   Marks are normalized here so mixed logo proportions need no pre-trimming. */
/* Hairlines are carried by the slots, not by a 1px grid gap over a dark
   backing. That way a partial last row reads as empty panel instead of a
   grey block, at any logo count and any column count. */
.logo-row {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: #F7F8F9;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.logo-slot {
  height: 92px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #98A1AC;
}
.logo-slot img {
  max-width: 82%;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  
}

/* ======================= STATEMENT BLOCK =======================
   Plain declarative panel. Hairline top rule with the orange tick,
   matching .section-head. Used for coverage and certification. */
.statement {
  max-width: 780px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  position: relative;
}
.statement::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 96px;
  height: 2px;
  background: var(--orange);
}
.statement p { color: var(--text-muted); }
.statement .statement-lead {
  color: var(--text);
  font-size: 1.14rem;
  line-height: 1.5;
}
.statement-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.statement-marks li {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding: 12px 22px;
  border: 2px solid var(--orange);
}
.statement-marks li::before {
  content: "+ ";
  color: var(--orange);
}

/* ========================== PORTAL ========================= */
.portal-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 32px 30px;
  color: var(--text-dark-bg);
  text-decoration: none;
  position: relative;
  transition: background 0.22s ease, border-color 0.22s ease;
}
.portal-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--orange);
  transition: height 0.28s ease;
}
.portal-card:hover { background: var(--panel-2); border-color: var(--line-strong); }
.portal-card:hover::before { height: 100%; }
.portal-card h3 { color: #fff; margin-bottom: 0.4em; }
.portal-card p { color: #97A1AD; font-size: 0.93rem; }
.portal-card .card-link { margin-top: auto; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0;
  background: rgba(237, 121, 13, 0.12);
  color: var(--orange);
  border: 1px solid rgba(237, 121, 13, 0.36);
  margin-bottom: 16px;
  align-self: flex-start;
}
.badge-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--mist);
  border-color: var(--line-strong);
}

/* ========================== FORM =========================== */
.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-panel { grid-template-columns: 1fr; gap: 34px; }
}

.contact-details p { color: #9AA4B0; }
.contact-details a {
  color: var(--orange);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.95rem;
}
.contact-details a:hover { text-decoration: underline; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6A727E; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.07);
}
.field select option { color: #111; }

.form-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--mist);
  margin: 14px 0 0;
}

/* ========================== FOOTER ========================= */
.site-footer {
  background: #08090C;
  color: #8B96A3;
  border-top: 1px solid var(--line);
  padding: 66px 0 34px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #8B96A3; text-decoration: none; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: #5D6774;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ======================= SMALL SCREENS ===================== */
@media (max-width: 760px) {
  .hero { min-height: 74vh; padding-bottom: 64px; }
  .hero-slides { opacity: 0.85; }
}

@media (max-width: 600px) {
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-icon { height: 34px; } .brand-word { height: 27px; }
  .brand-sub { font-size: 0.52rem; letter-spacing: 0.16em; }
  .hero-ctas .btn { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .section { padding: 66px 0; }
  .brand-icon { display: none; } .brand-word { height: 24px; }
  .section-alt::before { top: 14px; left: 14px; }
  .section-alt::after { bottom: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
