/**
 * iFieldSmart AI — VDC + Mixed Reality landing page
 * Concept: "Two truths, one frame." Model and jobsite, joined by an orange issue pin.
 * Orange is reserved for one meaning only: something needs attention here.
 */

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --ink: #0E1116;
  --ink-2: #171B22;
  --ink-3: #1F242D;
  --paper: #FCFBF8;
  --paper-2: #F4F0E8;
  --line: #E6E2D8;
  --mut: #5F6368;
  --mut-2: #8A8F98;
  --or: #F67214;
  --or-d: #E05F07;
  --on-dark: #F4F1EA;
  --on-dark-mut: rgba(244, 241, 234, 0.6);
  --line-dark: rgba(255, 255, 255, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 74.6px;
}

/* ==========================================================================
   Primitives
   ========================================================================== */
.landing {
  background: var(--paper);
  overflow-x: clip;
}

/* in-page anchors land below the fixed header */
.landing section[id] {
  scroll-margin-top: var(--header-h);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font: 600 0.95rem/1 var(--font-body);
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: none;
  outline: 2px solid var(--or);
  outline-offset: 2px;
}

/* Bootstrap's element rules (ul padding, p/h/figure margins) outrank the global * reset */
:where(.landing) :is(ul, ol, p, h1, h2, h3, h4, figure, dl, dd) {
  margin: 0;
  padding: 0;
}

:where(.landing) :is(h1, h2, h3, h4, .sec__lede, .final p) {
  text-wrap: balance;
}

.wrap {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5.2vw, 74.6px);
}

.wrap--bleed {
  max-width: 1440px;
  padding: 0 clamp(12px, 2.4vw, 32px);
}

.ic {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.mono {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
}

.sec--dark .eyebrow {
  color: var(--on-dark-mut);
}

/* The issue pin: the one recurring symbol of the page */
.pin {
  --s: 22px;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--or);
  color: #fff;
  font: 600 11px/1 var(--font-body);
  font-style: normal;
  box-shadow: 0 0 0 4px rgba(246, 114, 20, 0.2), 0 6px 16px -4px rgba(246, 114, 20, 0.6);
}

.pin::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid var(--or);
  opacity: 0;
  animation: ping 2.6s var(--ease) infinite;
}

.pin--sm,
.pin--xs {
  --s: 9px;
  box-shadow: 0 0 0 3px rgba(246, 114, 20, 0.2);
}

.pin--sm::after,
.pin--xs::after {
  display: none;
}

.pin--lg {
  --s: 30px;
}

.pin--lg::before {
  content: "";
  width: 12px;
  height: 6.5px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1.5px);
}

.pin--n {
  --s: 26px;
  font-size: 12px;
}

@keyframes ping {
  0% { transform: scale(0.7); opacity: 0.7; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

/* Image fitting + coordinate-true pins (positions are set in JS) */
.fit {
  position: relative;
  overflow: hidden;
}

.fit-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--op, 50% 50%);
}

.fit .fit-pin {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
}

/* Corner registration marks */
.corner {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.85);
  border: 0 solid currentColor;
  pointer-events: none;
}

.corner--tl { top: 14px; left: 14px; border-top-width: 1.5px; border-left-width: 1.5px; }
.corner--tr { top: 14px; right: 14px; border-top-width: 1.5px; border-right-width: 1.5px; }
.corner--bl { bottom: 14px; left: 14px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corner--br { bottom: 14px; right: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--ink-3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  white-space: nowrap;
  transition: background-color 0.25s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.cta .ic {
  transition: transform 0.3s var(--ease);
}

.cta--primary {
  background: var(--or);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(246, 114, 20, 0.85);
}

.cta--primary:hover {
  background: var(--or-d);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(246, 114, 20, 0.95);
}

.cta--primary:hover .ic {
  transform: translateX(4px);
}

.cta--text {
  padding: 0 4px;
  color: var(--ink);
}

.cta--text:hover {
  color: var(--or);
}

.cta--text:hover .ic {
  transform: translateY(3px);
}

.cta--lg {
  height: 66px;
  padding: 0 38px;
  font-size: 1.0625rem;
}

/* Scroll reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.sec {
  position: relative;
  padding: clamp(60px, 8vw, 112px) 0;
}

.sec--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.sec--dark :is(h1, h2, h3, h4) {
  color: inherit;
}

.sec--sand {
  background: var(--paper-2);
}

.sec--chain {
  padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.sec__head {
  margin-bottom: clamp(40px, 5.5vw, 76px);
}

.sec__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}

.sec h2 {
  margin-top: 20px;
  font: 700 clamp(1.9rem, 3.4vw, 3rem)/1.08 var(--font-heading);
  letter-spacing: -0.035em;
  max-width: 19ch;
}

.sec__lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--mut);
  max-width: 40ch;
}

.sec--dark .sec__lede {
  color: var(--on-dark-mut);
}

.sec__head:not(.sec__head--split) .sec__lede {
  margin-top: 24px;
}

/* section 2: the supporting line sits under the heading and is set to be read */
.sec--chain .sec__head {
  margin-bottom: clamp(28px, 3.6vw, 44px);
}

.sec--chain .sec__lede {
  max-width: none;
  margin-top: 16px;
  font: 400 clamp(1.08rem, 1.4vw, 1.25rem)/1.65 var(--font-body);
  letter-spacing: 0;
  color: #4B5058;
  text-wrap: pretty;
}

.sec--chain .sec__lede strong {
  display: inline;
  margin: 0;
  font-weight: 600;
  color: #1F242B;
}

.sec__lede strong {
  display: block;
  margin-bottom: 6px;
  color: var(--on-dark);
  font-weight: 600;
}

/* ==========================================================================
   1. Hero — editorial light layout; the model dissolves into the real site
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 78vh, 800px);
  padding: calc(var(--header-h) + 44px) 0 56px;
  background: #FCFAF6;
  overflow: hidden;
  isolation: isolate;
}

/* faint survey grid, strongest behind the copy */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(14, 17, 22, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 17, 22, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 14% 40%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 90% at 14% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}

/* feather the bottom edge into the next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: clamp(70px, 11vh, 120px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

/* warm light where the design meets the building */
.hero__glow {
  position: absolute;
  top: 8%;
  right: 16%;
  z-index: -2;
  width: min(58vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 114, 20, 0.2), rgba(246, 114, 20, 0.06) 55%, transparent 100%);
  pointer-events: none;
}

.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 60%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 16%, rgba(0, 0, 0, 0.6) 40%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 16%, rgba(0, 0, 0, 0.6) 40%, #000 62%);
}

.hero__plate {
  position: absolute;
  inset: 0;
  transform-origin: 72% 30%;
  translate: calc(var(--mx, 0) * -12px) calc(var(--my, 0) * -8px);
  transition: translate 0.6s var(--ease);
  animation: push 30s ease-in-out infinite alternate;
}

.hero__plate picture,
.hero__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero__img {
  object-fit: cover;
  filter: brightness(1.08) saturate(1.06);
}

/* a quiet ping on the clash so the eye lands where the story is */
.hero .fit .hero__ping {
  z-index: 1;
  width: 78px;
  height: 78px;
  border: 1.5px solid var(--or);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: ping-hero 3.2s var(--ease) 1.6s infinite;
}

@keyframes ping-hero {
  0% { transform: translate(-50%, -50%) scale(0.35); opacity: 0.95; }
  75%, 100% { transform: translate(-50%, -50%) scale(1.55); opacity: 0; }
}

@keyframes push {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero__inner {
  width: 100%;
}

.hero__copy {
  max-width: 780px;
}

/* One animation system for the whole column: staggered rise */
.js .hero [data-in] {
  opacity: 0;
  animation: rise 0.9s var(--ease) calc(0.1s + var(--i, 0) * 0.11s) forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* H1 — the product name */
.hero__title {
  font: 800 clamp(2.5rem, 4.9vw, 4.7rem)/1.02 var(--font-heading);
  letter-spacing: -0.045em;
  color: var(--ink);
}

.hero__plus {
  color: var(--or);
  font-weight: 500;
}

/* Sub-headline — the idea, set as a quiet three-beat statement */
.hero__tag {
  position: relative;
  margin-top: clamp(20px, 3.2vh, 30px);
  padding-left: 22px;
  font: 500 clamp(1.3rem, 1.9vw, 1.75rem)/1.3 var(--font-heading);
  letter-spacing: -0.02em;
  color: #5A5F68;
}

.hero__tag::before {
  content: "";
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--or) 100%);
}

.hero__tag span {
  display: block;
}

.hero__tag .is-or {
  color: var(--or);
  font-weight: 600;
}

.hero__lede {
  max-width: 40ch;
  text-wrap: balance;
  margin-top: clamp(16px, 2.6vh, 24px);
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.6;
  color: #4B5058;
}

.hero__flow {
  width: min(100%, 600px);
  margin-top: clamp(26px, 4vh, 38px);
}

/* Loop — a static segmented strip: Model → Decision → Field → Issue → Resolution */
.loop {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  border: 1px solid rgba(14, 17, 22, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.loop li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 16px 6px 14px;
}

.loop li + li {
  border-left: 1px solid rgba(14, 17, 22, 0.1);
}

/* a small chevron on each divider reads as "then" */
.loop li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-top: 1px solid rgba(14, 17, 22, 0.28);
  border-right: 1px solid rgba(14, 17, 22, 0.28);
  background: #FCFAF6;
  transform: rotate(45deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.loop__ic {
  display: grid;
  place-items: center;
  color: var(--or);
}

.loop__ic .ic {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.loop__lb {
  font: 600 0.85rem/1.1 var(--font-body);
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero__tail {
  margin-top: 20px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #6B7078;
}

/* CTA row — one primary action, one quiet secondary */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(24px, 3.6vh, 34px);
}

.cta--ghost {
  height: 60px;
  padding: 0 26px 0 30px;
  gap: 12px;
  border: 1.5px solid rgba(14, 17, 22, 0.2);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 1.05rem;
}

.cta--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.cta--ghost:hover .ic {
  transform: translateY(3px);
}

/* CTA — brand orange pill with a circular arrow chip */
.hero .cta--arrow {
  height: 60px;
  padding: 0 9px 0 30px;
  gap: 18px;
  font-size: 1.05rem;
}

.cta__ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--or);
  transition: transform 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease;
}

.cta__ic .ic {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.hero .cta--arrow:hover .ic {
  transform: none;
}

.hero .cta--arrow:hover .cta__ic {
  transform: translateX(3px);
  background: var(--ink);
  color: #fff;
}

/* ==========================================================================
   2. Chain — four cards on a single line, each with a small motion icon
   ========================================================================== */
.chain {
  display: flex;
  flex-wrap: nowrap;
  gap: 28px;
  list-style: none;
  counter-reset: station;
}

/* only the four cards belong in the row, whatever else is in the markup */
.chain > :not(.chain__node) {
  display: none;
}

.chain__node {
  position: relative;
  display: grid;
  flex: 1 1 0;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-content: center;
  align-items: center;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(14, 17, 22, 0.03), 0 16px 28px -26px rgba(14, 17, 22, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.4s var(--ease);
}

.chain__node:hover {
  border-color: rgba(246, 114, 20, 0.5);
  box-shadow: 0 20px 34px -24px rgba(14, 17, 22, 0.4);
  transform: translateY(-2px);
}

/* two-way badge sitting in the gap between cards */
.chain__node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -27px;
  z-index: 1;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff no-repeat center / 13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F67214' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8h12M16 5l3 3-3 3M17 16H5M8 13l-3 3 3 3'/%3E%3C/svg%3E");
}

.chain__icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #FDEBDD;
  color: var(--or);
}

.chain__node strong {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font: 600 1.05rem/1.2 var(--font-heading);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.chain__sub {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 4px;
  font: 600 0.72rem/1.35 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mut-2);
}

/* Motion icons — each one acts out what the station does */
.mi {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* Navisworks: the model draws itself edge by edge */
.mi__draw {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: mi-draw 4s ease-in-out infinite;
}

.mi__draw:nth-child(2) {
  animation-delay: 0.25s;
}

@keyframes mi-draw {
  0% { stroke-dashoffset: 60; }
  35%, 80% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -60; }
}

/* Cloud: data moving both ways */
.mi__up { animation: mi-up 2.4s ease-in-out infinite; }
.mi__down { animation: mi-down 2.4s ease-in-out infinite; }

@keyframes mi-up {
  0%, 100% { transform: translateY(2px); opacity: 0.5; }
  50% { transform: translateY(-2px); opacity: 1; }
}

@keyframes mi-down {
  0%, 100% { transform: translateY(-2px); opacity: 0.5; }
  50% { transform: translateY(2px); opacity: 1; }
}

/* Mixed reality: a scan line sweeps the visor */
.mi__scan {
  stroke: var(--or);
  stroke-width: 2;
  animation: mi-scan 2.6s ease-in-out infinite;
}

@keyframes mi-scan {
  0% { transform: translateX(8px); opacity: 0; }
  15%, 85% { opacity: 1; }
  50% { transform: translateX(24px); }
  100% { transform: translateX(8px); opacity: 0; }
}

/* Jobsite: the crane jib sways, the hook bobs */
.mi__jib {
  transform-origin: 11px 8px;
  animation: mi-sway 4.2s ease-in-out infinite;
}

.mi__hook {
  animation: mi-bob 2.1s ease-in-out infinite;
}

@keyframes mi-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes mi-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

.chain__node:hover .mi * ,
.chain__node:hover .mi {
  animation-duration: 1.6s;
}

@media (prefers-reduced-motion: reduce) {
  .mi__draw { stroke-dashoffset: 0; animation: none; }
  .mi__up, .mi__down, .mi__scan, .mi__jib, .mi__hook { animation: none; }
  .mi__scan { transform: translateX(16px); }
}

/* ==========================================================================
   3. Workflow — pinned under the header; page scroll drives the five steps
   ========================================================================== */
.wfx {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
}

.wfx :is(h2, h3) {
  color: inherit;
}

.wfx .eyebrow {
  color: var(--on-dark-mut);
}

.wfx .sec__lede {
  color: var(--on-dark-mut);
}

/* the track is the scroll distance; each step gets roughly 70vh of travel */
.wfx__track {
  height: 440vh;
  height: 440svh;
}

.wfx__pin {
  position: sticky;
  top: var(--header-h);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  padding: clamp(14px, 2.6vh, 28px) 0 clamp(16px, 3vh, 32px);
  overflow: hidden;
}

.wfx__in {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.wfx .sec__head {
  margin-bottom: clamp(12px, 2.2vh, 24px);
}

.wfx .sec__head h2 {
  margin-top: 10px;
  font: 700 clamp(1.5rem, 2.9vw, 2.5rem)/1.08 var(--font-heading);
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.wfx .sec__lede {
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
  max-width: 36ch;
}

.wfx__app {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  min-height: 0;
}

.wfx__bar {
  display: grid;
  flex: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 20px);
  margin-bottom: clamp(10px, 1.8vh, 18px);
}

.wfx__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 14px 0 0;
  color: var(--on-dark);
  text-align: left;
  opacity: 0.45;
  transition: opacity 0.35s ease;
}

.wfx__tab:hover { opacity: 0.8; }
.wfx__tab.is-done { opacity: 0.8; }
.wfx__tab.is-active { opacity: 1; }

/* progress rule: grey track + orange fill scrubbed by scroll (--f: 0..1) */
.wfx__tab::before,
.wfx__tab::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  border-radius: 3px;
}

.wfx__tab::before {
  width: 100%;
  background: rgba(255, 255, 255, 0.16);
}

.wfx__tab::after {
  width: 100%;
  background: var(--or);
  transform: scaleX(var(--f, 0));
  transform-origin: left;
}

.wfx__n {
  font: 600 0.74rem/1 var(--font-body);
  letter-spacing: 0.14em;
  color: var(--on-dark-mut);
  transition: color 0.3s ease;
}

.wfx__tab.is-active .wfx__n { color: var(--or); }

.wfx__t {
  font: 600 clamp(0.95rem, 1.3vw, 1.15rem)/1.2 var(--font-heading);
  letter-spacing: -0.01em;
}

.wfx__stage {
  display: grid;
  flex: 0 1 auto;
  grid-template-rows: minmax(0, 1fr);
  height: clamp(300px, 46vh, 420px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: var(--ink-2);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.8);
}

.wfx__panel {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0s linear 0.55s;
}

.wfx__panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.55s ease, visibility 0s;
}

.wfx__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 4vw, 56px);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.7s var(--ease) 0.1s, opacity 0.6s ease 0.1s;
}

.wfx__panel.is-active .wfx__text {
  transform: none;
  opacity: 1;
}

.wfx__k {
  margin-bottom: 14px;
  font: 700 0.76rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or);
}

.wfx__text h3 {
  font: 700 clamp(1.6rem, 2.8vw, 2.5rem)/1.08 var(--font-heading);
  letter-spacing: -0.03em;
}

.wfx__d {
  max-width: 36ch;
  margin-top: 14px;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.78);
}

.wfx__media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--ink-3);
}

.wfx__media picture {
  position: absolute;
  inset: 0;
  display: block;
}

.wfx__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.8s var(--ease);
}

.wfx__panel.is-active .wfx__media img {
  transform: scale(1);
}

.wfx__close {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: baseline;
  gap: 12px clamp(24px, 4vw, 56px);
  margin-top: clamp(16px, 2.4vh, 24px);
  padding-top: clamp(14px, 2vh, 20px);
  border-top: 1px solid var(--line-dark);
}

.wfx__close p {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--on-dark-mut);
}

.wfx__close strong {
  font: 600 clamp(1.3rem, 2.3vw, 2rem)/1.2 var(--font-heading);
  letter-spacing: -0.025em;
  color: var(--on-dark);
}

.wfx__close em {
  font-style: normal;
  color: var(--or);
}

@media (max-width: 900px) {
  .wfx__track { height: 400svh; }

  .wfx .sec__head--split { gap: 8px; }

  .wfx__stage { height: clamp(380px, 62vh, 560px); }

  .wfx__panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .wfx__media { order: -1; }

  .wfx__text {
    justify-content: flex-start;
    padding: 18px 20px 22px;
  }

  .wfx__k { margin-bottom: 10px; }
  .wfx__d { margin-top: 10px; }

  .wfx__close { grid-template-columns: 1fr; gap: 6px; }
  .wfx__close p { font-size: 0.9rem; }
  .wfx__close strong { font-size: 1.15rem; }
}

@media (max-width: 560px) {
  .wfx__bar { gap: 6px; }
  .wfx__t { display: none; }
  .wfx__tab { min-height: 44px; padding-top: 14px; justify-content: flex-start; }
  .wfx .sec__lede { font-size: 0.95rem; }
  .wfx__close p { display: none; }
}

/* short landscape screens: drop the lede so the stage keeps its height */
@media (max-height: 640px) {
  .wfx .sec__lede,
  .wfx__close p { display: none; }
}

/* short landscape screens (phones on their side): no pinning, a normal tab-driven block */
@media (max-height: 560px) {
  .wfx__track { height: auto; }
  .wfx__pin { position: static; height: auto; padding: 36px 0 44px; }
  .wfx__stage { height: clamp(240px, 70vh, 340px); }
  .wfx .sec__lede { display: block; }
  .wfx__panel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: none; }
  .wfx__media { order: 0; }
  .wfx__text { justify-content: center; padding: 18px 22px; }
  .wfx__close p { display: block; }
  .wfx__tab::after { transform: scaleX(1); }
  .wfx__tab:not(.is-active):not(.is-done)::after { transform: scaleX(0); }
}

/* no scroll-pinning without motion: a normal, tab-driven block */
@media (prefers-reduced-motion: reduce) {
  .wfx__track { height: auto; }
  .wfx__pin { position: static; height: auto; padding: 48px 0; }
  .wfx__stage { min-height: 460px; }
}

/* ==========================================================================
   4. Navisworks — same language as section 2: compact horizontal cards
   ========================================================================== */
.nav {
  border-top: 1px solid var(--line);
}

.nwc__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}

.nwc {
  grid-column: span 2;
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-content: center;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(14, 17, 22, 0.03), 0 16px 28px -26px rgba(14, 17, 22, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.4s var(--ease);
}

.nwc:nth-child(n + 4) {
  grid-column: span 3;
}

.nwc:hover {
  border-color: rgba(246, 114, 20, 0.5);
  box-shadow: 0 20px 34px -24px rgba(14, 17, 22, 0.4);
  transform: translateY(-2px);
}

.nwc__ic {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #FDEBDD;
  color: var(--or);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nwc__ic .ic {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.nwc:hover .nwc__ic {
  background: var(--or);
  color: #fff;
}

.nwc h3 {
  grid-column: 2;
  font: 600 1.2rem/1.25 var(--font-heading);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.nwc p {
  grid-column: 2;
  margin-top: 6px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #3F444C;
}

/* Motion icons for the five features */
.nwc__ic .mi { width: 28px; height: 28px; }

/* Latest Models: layers stack up, one after another */
.ml { animation: ml-stack 3s ease-in-out infinite; }
.ml--3 { transform: translateY(7px); animation-delay: 0s; opacity: 0.55; }
.ml--2 { transform: translateY(3.5px); animation-delay: 0.15s; opacity: 0.8; }
.ml--1 { animation-delay: 0.3s; }

@keyframes ml-stack {
  0%, 100% { translate: 0 0; }
  45% { translate: 0 -3px; }
}

/* Clashes: two models drift into each other, the overlap flashes */
.mc--a { animation: mc-a 3s ease-in-out infinite; }
.mc--b { animation: mc-b 3s ease-in-out infinite; }
.mc__hit { fill: currentColor; stroke: none; animation: mc-hit 3s ease-in-out infinite; }

@keyframes mc-a { 0%, 100% { translate: -2.5px 0; } 50% { translate: 2px 0; } }
@keyframes mc-b { 0%, 100% { translate: 2.5px 0; } 50% { translate: -2px 0; } }
@keyframes mc-hit { 0%, 35%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 1; transform: scale(1.4); } }
.mc__hit { transform-box: fill-box; transform-origin: center; }

/* RFIs: the reply is being typed */
.md { fill: currentColor; stroke: none; animation: md-type 1.4s ease-in-out infinite; }
.md--2 { animation-delay: 0.18s; }
.md--3 { animation-delay: 0.36s; }

@keyframes md-type {
  0%, 60%, 100% { translate: 0 0; opacity: 0.45; }
  30% { translate: 0 -2.5px; opacity: 1; }
}

/* Drawings: lines are drawn onto the sheet */
.mr { stroke-dasharray: 12; stroke-dashoffset: 12; animation: mr-draw 3.4s ease-in-out infinite; }
.mr--2 { animation-delay: 0.25s; }
.mr--3 { animation-delay: 0.5s; }

@keyframes mr-draw {
  0% { stroke-dashoffset: 12; }
  30%, 75% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -12; }
}

/* Lens360: the globe turns */
.mp { transform-box: fill-box; transform-origin: center; }
.mp--a { animation: mp-spin 4s ease-in-out infinite; }
.mp--b { animation: mp-turn 4s ease-in-out infinite; }

@keyframes mp-spin { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.45); } }
@keyframes mp-turn { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.2); } }

.nwc:hover .mi * { animation-duration: 1.8s; }

@media (prefers-reduced-motion: reduce) {
  .ml, .mc--a, .mc--b, .mc__hit, .md, .mr, .mp--a, .mp--b { animation: none; }
  .mr { stroke-dashoffset: 0; }
  .mc__hit { opacity: 1; }
}

@media (max-width: 1100px) {
  .nwc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .nwc,
  .nwc:nth-child(n + 4) { grid-column: auto; }
  .nwc:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nwc__grid { grid-template-columns: 1fr; gap: 12px; }
  .nwc,
  .nwc:nth-child(n + 4) { grid-column: auto; padding: 16px 18px; }
}

/* ==========================================================================
   5. BIM-to-Reality — stepper + a vector diagram of how mapping works
   ========================================================================== */
.map__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.58fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

/* ---------- stepper ---------- */
.map__steps {
  list-style: none;
}

.map__steps button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 20px 0 20px 22px;
  color: var(--on-dark);
  text-align: left;
  opacity: 0.5;
  transition: opacity 0.35s ease;
}

.map__steps button:hover,
.map__steps button.is-active {
  opacity: 1;
}

/* vertical rail with an orange fill on the active step */
.map__steps button::before,
.map__steps button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
}

.map__steps button::before {
  background: rgba(255, 255, 255, 0.14);
}

.map__steps button::after {
  background: var(--or);
  transform: scaleY(0);
  transform-origin: top;
}

.map__steps button.is-active::after {
  transform: scaleY(1);
}

.map__steps button.is-active.is-playing::after {
  animation: fill-y var(--dur, 3.4s) linear forwards;
}

@keyframes fill-y {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.map__steps b {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font: 700 0.78rem/1 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--on-dark-mut);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.map__steps button.is-active b {
  border-color: var(--or);
  background: var(--or);
  color: #fff;
}

.map__steps span {
  font: 500 clamp(1.1rem, 1.5vw, 1.35rem)/1.3 var(--font-heading);
  letter-spacing: -0.015em;
}

/* ---------- one stage, the image changes with the step ---------- */
.mstage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 22px;
  background: var(--ink-3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 90px -50px rgba(0, 0, 0, 0.85);
  transition: box-shadow 0.5s ease;
}

.mstage__pic {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s ease, transform 1.8s var(--ease);
}

.mstage__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mstage[data-step="1"] .mstage__pic[data-i="1"],
.mstage[data-step="2"] .mstage__pic[data-i="2"],
.mstage[data-step="3"] .mstage__pic[data-i="3"],
.mstage[data-step="4"] .mstage__pic[data-i="4"],
.mstage[data-step="5"] .mstage__pic[data-i="5"] {
  opacity: 1;
  transform: scale(1);
}

.mstage__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 17, 22, 0.55) 0%, rgba(14, 17, 22, 0) 38%),
              linear-gradient(180deg, rgba(14, 17, 22, 0.35) 0%, rgba(14, 17, 22, 0) 24%);
  pointer-events: none;
}

.mstage__tag,
.mstage__count {
  position: absolute;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(14, 17, 22, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 700 0.7rem/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.mstage__tag { top: 18px; left: 18px; display: grid; }
.mstage__count { bottom: 18px; left: 18px; color: var(--on-dark-mut); }
.mstage__count b { color: var(--or); font-weight: 700; }

.mstage__tag span {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mstage[data-step="1"] .mstage__tag [data-t="1"],
.mstage[data-step="2"] .mstage__tag [data-t="2"],
.mstage[data-step="3"] .mstage__tag [data-t="3"],
.mstage[data-step="4"] .mstage__tag [data-t="4"],
.mstage[data-step="5"] .mstage__tag [data-t="5"] {
  opacity: 1;
}

.mstage__saved {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--or);
  font: 700 0.7rem/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 16px 30px -10px rgba(246, 114, 20, 0.8);
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}

.mstage__saved .ic { width: 14px; height: 14px; }

.mstage:is([data-step="4"], [data-step="5"]) .mstage__saved {
  opacity: 1;
  transform: none;
}

/* step 4+: the mapping is locked, so the frame goes orange */
.mstage:is([data-step="4"], [data-step="5"]) {
  box-shadow: 0 0 0 2px var(--or), 0 50px 90px -50px rgba(0, 0, 0, 0.85);
}

/* ---------- devices + statement ---------- */
.map__devices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}

.map__devices p {
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--on-dark-mut);
}

.map__devices ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.map__devices li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.map__devices li:hover {
  border-color: var(--or);
  color: var(--or);
}

.statement {
  margin-top: clamp(40px, 5vw, 72px);
  font: 700 clamp(1.3rem, 2.5vw, 2.1rem)/1.2 var(--font-heading);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.statement span { color: var(--mut-2); }
.statement em { font-style: normal; color: var(--or); }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .map__grid { grid-template-columns: 1fr; gap: 36px; }
  .mstage { order: -1; }

  .map__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }

  .map__steps button {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 0 0;
  }

  .map__steps button::before,
  .map__steps button::after { inset: 0 0 auto 0; width: auto; height: 2px; }
  .map__steps button::after { transform: scaleX(0); transform-origin: left; }
  .map__steps button.is-active::after { transform: scaleX(1); }
  .map__steps button.is-active.is-playing::after { animation-name: fill; }
  .map__steps span { font-size: 0.98rem; }
}

@media (max-width: 700px) {
  .mstage { aspect-ratio: 4 / 3; border-radius: 18px; }
  .mstage__tag { top: 12px; left: 12px; padding: 7px 11px; font-size: 0.72rem; }
  .mstage__count { display: none; }
  .mstage__saved { right: 12px; bottom: 12px; padding: 9px 13px; }

  .map__steps { grid-template-columns: 1fr; gap: 0; }

  .map__steps button {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 0 16px 20px;
  }

  .map__steps button::before,
  .map__steps button::after { inset: 0 auto 0 0; width: 2px; height: auto; }
  .map__steps button::after { transform: scaleY(0); transform-origin: top; }
  .map__steps button.is-active::after { transform: scaleY(1); }
  .map__steps button.is-active.is-playing::after { animation-name: fill-y; }
  .map__steps span { font-size: 1.05rem; }
}

/* ==========================================================================
   6. Context — two sources of context flow down into one statement
   ========================================================================== */
.ctx {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.hub {
  --drop: clamp(36px, 4.4vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: var(--drop);
}

.hub__card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(22px, 2.8vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(14, 17, 22, 0.03), 0 30px 54px -42px rgba(14, 17, 22, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.3s ease;
}

.hub__card:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 114, 20, 0.4);
  box-shadow: 0 1px 0 rgba(14, 17, 22, 0.03), 0 38px 62px -42px rgba(14, 17, 22, 0.42);
}

/* the line that carries each card's context down into the statement */
.hub__card::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: var(--drop);
  margin-left: -1px;
  background: linear-gradient(180deg, rgba(246, 114, 20, 0.15), var(--or));
}

.hub__card::before {
  content: "";
  position: absolute;
  top: calc(100% + var(--drop) - 6px);
  left: 50%;
  z-index: 2;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border: 2px solid var(--or);
  border-radius: 50%;
  background: #fff;
}

.hub__ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #FDEBDD;
  color: var(--or);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hub__ic .mi { width: 32px; height: 32px; }
.hub__card:hover .hub__ic { background: var(--or); color: #fff; }

.hub__card h3 {
  font: 650 clamp(1.3rem, 1.8vw, 1.6rem)/1.2 var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hub__card p {
  max-width: 44ch;
  margin-top: 10px;
  font-size: clamp(1.04rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  color: #3F444C;
}

/* the statement the two lines land on */
.hub__close {
  position: relative;
  padding: clamp(22px, 3vw, 36px) clamp(24px, 4vw, 56px);
  overflow: hidden;
  border-radius: 20px;
  background: var(--ink);
  font: 700 clamp(1.5rem, 3vw, 2.5rem)/1.15 var(--font-heading);
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}

.hub__close::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 120% at 100% 50%, rgba(246, 114, 20, 0.22), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  pointer-events: none;
}

.hub__close em {
  position: relative;
  font-style: normal;
  color: var(--or);
}

/* Talk icon: the check draws in when the decision is found */
.mk {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  animation: mk-draw 3.2s ease-in-out infinite;
}

@keyframes mk-draw {
  0%, 15% { stroke-dashoffset: 22; }
  45%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -22; }
}

/* phones: cards stack, each drops a short line to the next block */
@media (max-width: 760px) {
  .hub { grid-template-columns: 1fr; gap: calc(var(--drop) + 8px); margin-bottom: calc(var(--drop) + 8px); }
  .hub__card { padding: 20px; border-radius: 18px; }
  .hub__ic { width: 52px; height: 52px; border-radius: 14px; }
  .hub__ic .mi { width: 28px; height: 28px; }
  .hub__close { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .mk { animation: none; stroke-dashoffset: 0; }
}

/* ==========================================================================
   7. Roles — compact 3 x 2 bento: one feature card (2 cols) + four single cards.
   Cards are content-sized (no fixed heights), so nothing is padded out.
   ========================================================================== */
.roles {
  background: #fff;
  border-top: 1px solid var(--line);
}

.rb__grid {
  --gap: clamp(12px, 1.4vw, 18px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  list-style: none;
}

.rb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(20px, 2vw, 26px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.rb:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 114, 20, 0.4);
  background: #fff;
  box-shadow: 0 24px 40px -30px rgba(14, 17, 22, 0.4);
}

.rb--a { grid-column: span 2; }

/* small index, top right */
.rb__n {
  position: absolute;
  top: 18px;
  right: 20px;
  font: 700 0.74rem/1 var(--font-body);
  letter-spacing: 0.14em;
  color: #B4B0A6;
}

.rb__ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #FDEBDD;
  color: var(--or);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.rb__ic .mi { width: 26px; height: 26px; }

.rb:hover .rb__ic { background: var(--or); color: #fff; }

.rb h3 {
  font: 650 1.2rem/1.25 var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.rb p {
  max-width: 38ch;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.55;
  color: #3F444C;
}

/* feature card: dark, slightly larger type, faint grid + warm glow */
.rb--a {
  border-color: transparent;
  background: var(--ink);
}

.rb--a::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 90% at 100% 100%, rgba(246, 114, 20, 0.24), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  pointer-events: none;
}

.rb--a > *:not(.rb__n) { position: relative; }
.rb--a:hover { background: var(--ink); border-color: transparent; }
.rb--a .rb__n { color: rgba(255, 255, 255, 0.4); }
.rb--a .rb__ic { background: rgba(255, 255, 255, 0.1); }
.rb--a:hover .rb__ic { background: var(--or); }
.rb--a h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; color: #fff; }
.rb--a p { max-width: 34ch; font-size: 1.08rem; color: rgba(244, 241, 234, 0.8); }

/* closing card gets a soft orange tint as the quiet accent */
.rb--e {
  border-color: rgba(246, 114, 20, 0.22);
  background: linear-gradient(150deg, #FFF3E8 0%, #FFFAF5 70%);
}

.rb--e:hover { background: linear-gradient(150deg, #FFEEDD 0%, #fff 80%); }
.rb--e .rb__ic { background: #fff; box-shadow: 0 8px 18px -10px rgba(246, 114, 20, 0.5); }
.rb--e:hover .rb__ic { background: var(--or); }

/* tablet: the feature card spans the row, the other four pair up (2 x 2) */
@media (max-width: 900px) {
  .rb__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb--a { grid-column: 1 / -1; }
}

/* phones: one column of compact horizontal cards */
@media (max-width: 560px) {
  .rb__grid { grid-template-columns: 1fr; gap: 10px; }

  .rb,
  .rb--a {
    display: grid;
    grid-column: auto;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 16px;
  }

  .rb__ic { grid-row: 1; }
  .rb__t { grid-column: 2; }
  .rb h3, .rb--a h3 { font-size: 1.12rem; padding-right: 26px; }
  .rb p, .rb--a p { font-size: 0.98rem; }
  .rb__n { top: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .rb { transition: none; }
}

/* ==========================================================================
   8. Final CTA — the sunrise blueprint photo is the section background
   ========================================================================== */
.final {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(380px, 29vw, 470px);
  overflow: hidden;
  background: #CFE0F3;
  color: var(--ink);
  isolation: isolate;
}

.final__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* the photo is already bright and calm on the left, where the copy sits */
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.97) 30%,
    rgba(255, 255, 255, 0.82) 42%,
    rgba(255, 255, 255, 0.4) 54%,
    rgba(255, 255, 255, 0) 66%);
}

.final__in {
  padding-top: clamp(52px, 5.4vw, 76px);
  padding-bottom: clamp(52px, 5.4vw, 76px);
}

.final__copy {
  max-width: 720px;
}

.final h2 {
  font: 700 clamp(1.8rem, 3.2vw, 2.9rem)/1.1 var(--font-heading);
  letter-spacing: -0.035em;
  color: var(--ink);
}

.final h2 span { color: var(--or); }

.final p {
  max-width: none;
  margin-top: 14px;
  font-size: clamp(1.04rem, 1.25vw, 1.18rem);
  font-weight: 500;
  line-height: 1.55;
  color: #2B3038;
}

.final .cta--arrow {
  height: 56px;
  margin-top: clamp(22px, 2.6vw, 30px);
  padding: 0 8px 0 26px;
  gap: 14px;
  font-size: 1rem;
}

.final .cta__ic { width: 38px; height: 38px; }

@media (max-width: 860px) {
  .final {
    align-items: flex-end;
    min-height: 0;
    background: #FFFCF6;
    --art: clamp(200px, 54vw, 340px);
  }

  /* photo on top, copy on a clean light area beneath it */
  .final__bg { bottom: auto; height: var(--art); }

  .final::before {
    background: linear-gradient(180deg,
      rgba(255, 252, 246, 0) 0%,
      rgba(255, 252, 246, 0) 18%,
      rgba(255, 252, 246, 1) 100%);
    bottom: auto;
    height: var(--art);
  }

  .final__in { padding-top: calc(var(--art) + 8px); padding-bottom: clamp(32px, 6vw, 48px); }
  .final__copy { max-width: none; }
  .final h2 { font-size: clamp(1.7rem, 6.6vw, 2.3rem); }
}

@media (max-width: 560px) {
  .final .cta--arrow { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .app__body { grid-template-columns: minmax(0, 1fr) 240px; }
  .rec > div { grid-template-columns: 112px 1fr 48px; }
}

@media (max-width: 1100px) {
  .chain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .chain__node:not(:last-child)::after { display: none; }
}

@media (max-width: 991px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 28px) 0 0;
  }

  .hero__inner { order: 1; }

  .hero__media {
    position: relative;
    order: 2;
    width: 100%;
    height: clamp(280px, 62vw, 460px);
    margin-top: 36px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 86%, transparent 100%);
  }

  .hero__glow { right: -10%; top: 36%; width: 90vw; }
  .hero__copy { max-width: 620px; }
  .sec__head--split {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sec__head--split { gap: 22px; }

  .map__steps span { font-size: 0.95rem; }
}

@media (max-width: 760px) {
  .br-d { display: none; }
  .hero__title { font-size: clamp(2.3rem, 10.6vw, 3.4rem); }
  .hero__tag { font-size: 1.22rem; padding-left: 18px; }
  .loop li { padding: 13px 2px 11px; gap: 7px; }
  .loop__ic .ic { width: 20px; height: 20px; }
  .loop__lb { font-size: 0.68rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero .cta--arrow { width: 100%; justify-content: space-between; }
  .cta--ghost { width: 100%; justify-content: space-between; }

  .chain { grid-template-columns: 1fr; gap: 12px; }

}

/* ---- Phones: a typographic hero, no photo; actions sit in the thumb zone ---- */
@media (max-width: 700px) {
  .hero {
    min-height: 0;
    padding: calc(var(--header-h) + 30px) 0 44px;
    background:
      radial-gradient(ellipse 90% 40% at 100% 0%, rgba(246, 114, 20, 0.16), transparent 70%),
      radial-gradient(ellipse 80% 36% at 0% 100%, rgba(246, 114, 20, 0.1), transparent 70%),
      #FCFAF6;
  }

  .hero__media,
  .hero__glow { display: none; }

  /* a clearer survey grid now that it is the only graphic */
  .hero::before {
    height: 100%;
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  }

  .hero__inner { display: flex; flex: 1; min-width: 0; }

  .hero__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    max-width: none;
  }

  .hero__title {
    font-size: clamp(2.6rem, 14.2vw, 4.2rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
  }

  .hero__tag {
    margin-top: 28px;
    padding-left: 18px;
    font-size: clamp(1.4rem, 6.6vw, 1.75rem);
    line-height: 1.3;
  }

  .hero__tag::before { width: 4px; }
  .hero__tag span { transition: none; }

  .hero__lede {
    max-width: none;
    margin-top: 22px;
    font-size: 1.08rem;
    line-height: 1.55;
  }

  /* everything from here down hugs the bottom of the screen */
  .hero__flow {
    width: 100%;
    margin-top: 32px;
  }

  .loop {
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(14, 17, 22, 0.04), 0 22px 40px -26px rgba(14, 17, 22, 0.35);
  }

  .loop li { padding: 16px 2px 13px; gap: 8px; }
  .loop__ic .ic { width: 22px; height: 22px; }
  .loop__lb { font-size: 0.72rem; font-weight: 700; }

  .hero__tail {
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #4B5058;
  }

  .hero__actions { margin-top: 18px; gap: 10px; }
  .hero .cta--arrow { height: 60px; font-size: 1.05rem; }
  .cta--ghost { height: 56px; background: transparent; }
}

@media (max-width: 345px) {
  .loop__lb { font-size: 0.64rem; letter-spacing: -0.01em; }
  .loop li { padding-left: 0; padding-right: 0; }
}

/* short phones: tighten so both buttons stay above the fold */
@media (max-width: 700px) and (max-height: 720px) {
  .hero { padding-top: calc(var(--header-h) + 14px); padding-bottom: 28px; }
  .hero__title { font-size: clamp(2.4rem, 13.6vw, 3.4rem); }
  .hero__tag { margin-top: 16px; font-size: 1.2rem; }
  .hero__lede { margin-top: 14px; font-size: 1rem; }
  .hero__flow { margin-top: 22px; }
  .loop li { padding: 11px 2px 9px; gap: 5px; }
  .loop__ic .ic { width: 19px; height: 19px; }
  .hero__tail { display: none; }
  .hero__actions { margin-top: 14px; }
  .hero .cta--arrow { height: 52px; }
  .cta--ghost { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
