@font-face {
  font-family: Inter;
  src: url('./fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0d1321;
  --deep: #101a2c;
  --blue: #0f1e3e;
  --ink: #152036;
  --muted: #4b586e;
  --paper: #f4f6f9;
  --white: #fff;
  --rule: #d7dfe8;
  --orange: #f25921;
  --fire: #ff875a;
  --dark-rule: #364157;
  --light-text: #c0cad9;
  --wrap: min(1320px, calc(100% - clamp(40px, 9vw, 144px)));
  --section: clamp(68px, 8vw, 126px);
  --font: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.63 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #b23c1a; outline-offset: 4px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .photo-dialog :focus-visible { outline-color: #ffb395; }
::selection { background: #ffc6af; color: var(--navy); }

h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-weight: 820; line-height: .99; letter-spacing: -.047em; word-spacing: .018em; }
h2 { font-size: clamp(2.45rem, 5.15vw, 5.05rem); }
h3 { font-size: clamp(1.17rem, 2vw, 1.52rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 750; }

.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding-block: var(--section); }
.dark { color: var(--white); background: var(--navy); color-scheme: dark; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 20; padding: .7rem 1rem; background: white; color: var(--navy); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.eyebrow { font-size: .72rem; line-height: 1.35; font-weight: 750; letter-spacing: .115em; text-transform: uppercase; }
.small-line { display: inline-block; width: 18px; height: 2px; vertical-align: .22em; background: var(--orange); margin-right: 10px; }
.arrow { display: inline-block; font-size: 1.17em; line-height: 1; transition: transform .22s ease; }
a:hover .arrow, button:hover .arrow { transform: translate(2px, -2px); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  min-height: 49px;
  padding: .76rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 5px;
  line-height: 1.2;
  font-size: .88rem;
  font-weight: 760;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.button-primary { background: var(--orange); color: var(--navy); }
.button-primary:hover { background: #ff875a; }
.button-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.button-dark:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.button-outline { color: var(--white); border-color: #6b7589; background: transparent; }
.button-outline:hover { background: #ffffff10; border-color: var(--fire); }
.button-subtle { min-height: 44px; padding-block: .5rem; border-color: var(--dark-rule); background: var(--deep); color: white; }
.button-subtle:hover { border-color: var(--fire); }
.text-link { display: inline-flex; align-items: center; gap: .64rem; width: fit-content; padding-block: .25rem; font-weight: 750; font-size: .91rem; color: var(--ink); border-bottom: 1px solid #a8b5c6; }
.text-link:hover { border-color: #b23c1a; }
.dark .text-link { color: #fff; border-color: #6d7a8f; }
.dark .text-link:hover { border-color: var(--fire); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 78px;
  pointer-events: none;
}
.header-bar {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  color: white;
  background: rgba(13, 19, 33, .96);
  border: 1px solid transparent;
  border-bottom-color: rgba(255, 255, 255, .1);
  pointer-events: auto;
  transition:
    max-width .45s cubic-bezier(.16, 1, .3, 1),
    transform .45s cubic-bezier(.16, 1, .3, 1),
    border-radius .45s cubic-bezier(.16, 1, .3, 1),
    background-color .35s ease,
    border-color .35s ease,
    box-shadow .45s ease;
}
.site-header.is-scrolled .header-bar {
  max-width: min(1020px, calc(100% - 28px));
  transform: translateY(10px);
  border-radius: 999px;
  background: rgba(13, 19, 33, .82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 18px 40px rgba(4, 8, 18, .44), 0 0 0 1px rgba(242, 89, 33, .14);
}
.header-chrome {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.header-spotlight {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(240px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(242, 89, 33, .14), transparent 72%);
  transition: opacity .25s ease;
}
.header-bar:hover .header-spotlight { opacity: 1; }
.reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(var(--reading, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--orange), #ff9c75);
  pointer-events: none;
}
.header-inner {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
  transition: width .42s cubic-bezier(.16, 1, .3, 1), min-height .42s cubic-bezier(.16, 1, .3, 1), padding .42s cubic-bezier(.16, 1, .3, 1);
}
.site-header.is-scrolled .header-inner {
  width: 100%;
  min-height: 58px;
  padding-inline: 22px 10px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img {
  width: 204px;
  height: auto;
  transition: width .4s cubic-bezier(.16, 1, .3, 1);
}
.site-header.is-scrolled .brand img { width: 174px; }
.desktop-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}
.desktop-nav a {
  position: relative;
  z-index: 1;
  padding: .46rem .88rem;
  border-radius: 999px;
  font-size: .86rem;
  color: #d7dfec;
  font-weight: 600;
  white-space: nowrap;
  transition: color .22s ease;
}
.mobile-nav nav > a:not(.button) { font-size: .88rem; color: #d7dfec; font-weight: 600; }
.desktop-nav a:hover,
.desktop-nav a.is-current,
.desktop-nav a[aria-current] { color: #ffffff; }
.desktop-nav a.is-current,
.desktop-nav a[aria-current] { color: #ffb091; }
.nav-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  height: 34px;
  width: var(--pill-w, 0px);
  transform: translate3d(var(--pill-x, 0px), -50%, 0);
  border-radius: 999px;
  background: rgba(242, 89, 33, .14);
  border: 1px solid rgba(242, 89, 33, .38);
  opacity: var(--pill-o, 0);
  pointer-events: none;
  transition:
    transform .38s cubic-bezier(.22, 1, .36, 1),
    width .38s cubic-bezier(.22, 1, .36, 1),
    opacity .2s ease,
    background-color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}
.site-header[data-active-lab] .header-bar {
  border-color: rgba(242, 89, 33, .32);
  box-shadow: 0 20px 44px rgba(4, 8, 18, .52), 0 0 0 1px rgba(242, 89, 33, .24), 0 0 28px rgba(242, 89, 33, .14);
}
.site-header[data-active-lab] .nav-indicator {
  background: rgba(242, 89, 33, .22);
  border-color: rgba(242, 89, 33, .58);
  box-shadow: 0 0 18px rgba(242, 89, 33, .28);
}
.header-cta {
  min-height: 44px;
  padding: .62rem 1.05rem;
  flex-shrink: 0;
  transition: border-radius .4s cubic-bezier(.16, 1, .3, 1), min-height .38s ease, padding .38s ease, background-color .22s ease;
}
.site-header.is-scrolled .header-cta {
  min-height: 40px;
  padding: .52rem 1.05rem;
  border-radius: 999px;
}
.mobile-nav { display: none; }
.mobile-nav summary { display: flex; align-items: center; gap: 9px; min-height: 44px; padding-inline: 10px; color: white; font-size: .84rem; font-weight: 700; list-style: none; border-radius: 999px; }
.mobile-nav summary::-webkit-details-marker, .question-list summary::-webkit-details-marker { display: none; }
.menu-lines, .menu-lines::after { display: inline-block; width: 16px; height: 1.5px; background: var(--fire); transition: transform .25s ease, top .25s ease; }
.menu-lines { position: relative; margin-bottom: 5px; }
.menu-lines::after { position: absolute; content: ''; top: 5px; left: 0; }
.mobile-nav[open] .menu-lines { margin-bottom: 0; transform: rotate(45deg); }
.mobile-nav[open] .menu-lines::after { top: 0; transform: rotate(-90deg); }
.mobile-nav nav {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  display: grid;
  padding: 12px 18px 18px;
  background: rgba(13, 19, 33, .96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid #2b3b57;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(4, 8, 18, .55);
  animation: nav-drop .24s cubic-bezier(.16, 1, .3, 1);
}
.mobile-nav nav > a:not(.button) { padding-block: 11px; border-bottom: 1px solid #ffffff10; }
.mobile-nav nav > a[aria-current]:not(.button),
.mobile-nav nav > a.is-current:not(.button) { color: #ff9c75; }
.mobile-nav nav .button { justify-self: start; margin-top: 12px; }
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(46px, 6.2vw, 91px) clamp(58px, 6.6vw, 98px);
  background:
    radial-gradient(ellipse at 75% 12%, #203151 0, transparent 57%),
    linear-gradient(128deg, #10182a, var(--navy) 61%);
}
.hero-grid { display: grid; grid-template-columns: .96fr 1.04fr; align-items: center; gap: clamp(29px, 4vw, 64px); }
.hero-location { font-size: .88rem; font-weight: 600; color: #c9d5e6; }
.hero h1 { margin-top: .95rem; font-size: clamp(2.58rem, 4.48vw, 4.7rem); line-height: 1.04; font-weight: 850; color: var(--white); }
.hero-description { max-width: 31rem; margin-top: 1.36rem; color: var(--light-text); font-size: clamp(1rem, 1.43vw, 1.23rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-visual {
  position: relative;
  border: 1px solid #44536b;
  padding: 7px;
  background: #111b2d;
  box-shadow: 0 28px 55px #05091470;
}
.hero-image-wrap { overflow: hidden; aspect-ratio: 1.40; background: #304054; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 52% 44%; transform: translateY(var(--photo-drift, 0px)) scale(1.055); }
.hero-visual figcaption { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .72rem .6rem .45rem .75rem; }
.hero-visual figcaption strong { display: block; font-size: .91rem; line-height: 1.25; }
.hero-visual figcaption small { display: block; margin-top: .18rem; color: var(--light-text); font-size: .72rem; }
.hero-visual figcaption a, .photo-arrow {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding-inline: .75rem;
  border: 1px solid #65758d;
  color: white;
  background: var(--navy);
  font-size: .8rem;
  font-weight: 650;
  line-height: 1;
  transition: background-color .2s, color .2s, border-color .2s;
}
.hero-visual figcaption a:hover, .work-photo:hover .photo-arrow { border-color: var(--orange); color: var(--navy); background: var(--orange); }

.section-services { background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1.4fr .75fr; gap: clamp(20px, 5vw, 70px); align-items: end; margin-bottom: clamp(30px, 4vw, 56px); }
.section-heading .eyebrow, .process-grid .eyebrow { margin-bottom: .92rem; color: #4a596f; }
.section-heading p:not(.eyebrow) { max-width: 32rem; color: var(--muted); }
.section-heading .text-link, .section-heading .button { margin-top: .95rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 1px; list-style: none; background: var(--rule); }
.section-services > .wrap > h2 + .service-grid { margin-top: 2rem; }
.service-card { background: white; }
.service-card a { min-height: 235px; height: 100%; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(18px, 2.3vw, 34px); transition: background-color .25s ease; }
.service-card a:hover { background: #fff2ec; }
.service-card p { margin-block: .58rem 1.18rem; font-size: .91rem; color: var(--muted); }
.service-card-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; font-size: .82rem; font-weight: 800; }
.service-symbol { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1.25rem; color: #a83413; border: 1px solid #efb6a3; background: #fff3ee; border-radius: 6px; transition: transform .25s cubic-bezier(.22, 1, .36, 1), background-color .2s ease; }
.service-card a:hover .service-symbol { transform: translateY(-2px); background: #ffe4d9; }
.service-symbol svg { display: block; }

.lab { background: #0b1424; }
.lab-shell { display: grid; gap: 1.5rem; }
.lab-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.lab-header h2 { font-size: clamp(2.15rem, 3.8vw, 3.4rem); }
.lab-lead { margin-top: .7rem; max-width: 44rem; color: var(--light-text); font-size: .98rem; }
.lab-stage { min-width: 0; }
.lab-viewport {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9.2;
  max-height: 640px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #23334b, #0c1423 78%);
  border: 1px solid #354661;
  border-radius: 8px;
}
.lab-poster, .lab-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-poster { object-fit: contain; pointer-events: none; transition: opacity .35s ease; }
.lab-canvas { opacity: 0; transition: opacity .35s ease; }
.lab-canvas canvas { display: block; width: 100%; height: 100%; }
.lab-viewport.is-live .lab-canvas { opacity: 1; }
.lab-viewport.is-live .lab-poster { opacity: 0; }

.lab-camera {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(13, 19, 33, .84);
  backdrop-filter: blur(8px);
  border: 1px solid #3d4f6b;
  border-radius: 6px;
}
.lab-camera button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 36px;
  min-width: 36px;
  padding: .35rem .65rem;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 650;
  color: #e4ecf7;
  transition: background-color .18s ease, border-color .18s ease, transform .15s ease;
}
.lab-camera button:hover { background: #1d2b44; border-color: #556a8c; }
.lab-camera button:active { transform: scale(.94); }
.lab-camera button[aria-pressed="false"] { color: #9db0cb; }

.lab-viewport.is-switching {
  animation: lab-stage-flash .65s cubic-bezier(.22, 1, .36, 1);
}
.lab-pins { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.lab-pins.is-switching .lab-pin {
  animation: lab-pin-in .42s cubic-bezier(.22, 1, .36, 1) var(--pin-delay, 0ms) both;
}
.lab-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(13, 19, 33, .86);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .76rem;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .38);
  transition: left .42s cubic-bezier(.22, 1, .36, 1), top .42s cubic-bezier(.22, 1, .36, 1), transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.lab-viewport.is-live .lab-pin {
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.lab-pin:hover, .lab-pin[aria-pressed="true"] {
  border-color: var(--orange);
  background: #172338;
  transform: translate(-50%, -50%) scale(1.04);
}
.lab-pin-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
}
.lab-pin[aria-pressed="true"] .lab-pin-dot { background: #fff; color: var(--navy); }

.lab-pin-card {
  position: absolute;
  left: .9rem;
  bottom: .9rem;
  z-index: 4;
  width: min(340px, calc(100% - 1.8rem));
  padding: .9rem 1rem;
  background: rgba(13, 19, 33, .92);
  backdrop-filter: blur(10px);
  border: 1px solid #495d7e;
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
}
.lab-pin-card.is-opening {
  animation: lab-card-in .28s cubic-bezier(.22, 1, .36, 1) both;
}
.lab-pin-card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.lab-pin-card-head strong { font-size: .92rem; color: #fff; }
.lab-pin-card-head button {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid #495d7e; border-radius: 4px; background: transparent; color: #d6e0ee; font-size: 1.1rem; line-height: 1;
}
.lab-pin-card-head button:hover { border-color: var(--fire); color: #fff; }
.lab-pin-card p { margin-top: .4rem; font-size: .84rem; line-height: 1.48; color: #cbd6e6; }

.lab-dock {
  margin-top: .9rem;
  padding: .9rem;
  background: #101b2f;
  border: 1px solid #2b3a53;
  border-radius: 8px;
}
.lab-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.lab-options button, .filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .52rem;
  min-height: 48px;
  padding: .55rem .8rem;
  border: 1px solid #3c4d69;
  background: #152238;
  border-radius: 6px;
  font-size: .82rem;
  line-height: 1.22;
  text-align: left;
  font-weight: 680;
  color: #dbe4f2;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease;
}
.lab-btn-icon {
  flex-shrink: 0;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.lab-options button:active {
  transform: scale(.97);
}
.lab-options button[aria-pressed="true"] {
  color: var(--navy);
  background: var(--orange);
  border-color: var(--orange);
  font-weight: 780;
  box-shadow: 0 6px 18px rgba(242, 89, 33, .26);
}
.lab-options button[aria-pressed="true"] .lab-btn-icon {
  animation: lab-icon-pop .42s cubic-bezier(.22, 1, .36, 1) both;
}
.lab-options button:not([aria-pressed="true"]):hover {
  border-color: var(--fire);
  background: #1c2c47;
  transform: translateY(-1px);
}
.lab-options button:not([aria-pressed="true"]):hover .lab-btn-icon {
  transform: scale(1.08);
}
.scene-description.is-switching {
  animation: lab-text-in .34s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes lab-icon-pop {
  0% { transform: scale(.75) rotate(-8deg); }
  55% { transform: scale(1.18) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes lab-pin-in {
  from { opacity: 0; transform: translate(-50%, -35%) scale(.84); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes lab-card-in {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes lab-text-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lab-stage-flash {
  0% { border-color: #354661; box-shadow: inset 0 0 0 rgba(242, 89, 33, 0); }
  35% { border-color: #f2592199; box-shadow: inset 0 0 28px rgba(242, 89, 33, .12); }
  100% { border-color: #354661; box-shadow: inset 0 0 0 rgba(242, 89, 33, 0); }
}
.lab-dock-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid #25344c;
}
.lab-dock .scene-description { font-size: .92rem; color: #d2dceb; }
.lab-status { color: var(--light-text); font-size: .8rem; }
.lab-status:empty { display: none; }

.section-works { background: white; }
.work-grid { display: grid; gap: clamp(16px, 2vw, 27px); }
.work-featured { grid-template-columns: 1.52fr 1fr 1fr; }
.section-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(26px, 3vw, 38px);
  padding: clamp(16px, 2vw, 24px) clamp(18px, 2.5vw, 28px);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
  border-radius: 6px;
}
.section-action-bar p { color: var(--muted); font-size: .95rem; max-width: 44rem; }
.section-action-bar strong { color: var(--ink); }
.section-action-bar .button { flex-shrink: 0; }
.section-guide {
  background:
    radial-gradient(ellipse at 85% 18%, #1d2e4c 0, transparent 58%),
    linear-gradient(142deg, #10192b, var(--navy) 74%);
}
.guide-preview-grid {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}
.guide-preview-copy .eyebrow { margin-bottom: .9rem; color: var(--fire); }
.guide-preview-copy h2 { font-size: clamp(2.15rem, 3.95vw, 3.65rem); }
.guide-preview-lead { margin-top: 1.05rem; max-width: 38rem; color: var(--light-text); font-size: 1rem; }
.guide-preview-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.65rem; }
.guide-preview-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-preview-step {
  display: grid;
  gap: .55rem;
  align-content: start;
  padding: clamp(16px, 2vw, 24px);
  background: #131f35;
  border: 1px solid #2b3a55;
  border-radius: 6px;
}
.guide-preview-step .step-number { color: var(--fire); }
.guide-preview-step h3 { color: var(--white); font-size: 1.08rem; }
.guide-preview-step p { margin-top: .32rem; color: var(--light-text); font-size: .88rem; line-height: 1.5; }
.gallery-grid { grid-template-columns: repeat(3, 1fr); row-gap: 2.3rem; }
.work-card { min-width: 0; }
.work-photo { position: relative; display: block; aspect-ratio: 5/4; overflow: hidden; background: #dae0e9; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.75,.2,1); }
.work-photo:hover img { transform: scale(1.065); }
.photo-arrow { position: absolute; bottom: .65rem; right: .65rem; }
.work-info { border-bottom: 1px solid var(--rule); padding: 1.05rem 0 1.2rem; }
.work-info .eyebrow { margin-bottom: .38rem; color: #974321; }
.work-info h3 + p { margin-top: .45rem; color: var(--muted); font-size: .9rem; }
.work-info .text-link { margin-top: .75rem; font-size: .86rem; }
.gallery-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; }
.gallery-heading h2 { font-size: clamp(1.9rem, 3.9vw, 3.5rem); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { border-color: #8a9ab0; }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: white; }
.filters button:not([aria-pressed="true"]):hover { background: var(--paper); }

.section-process { background: #eaf0f7; }
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 6vw, 93px); }
.process-steps { padding: 0; margin: 0; list-style: none; }
.process-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid #a9b8cc; }
.process-steps li:last-child { border-bottom: 1px solid #a9b8cc; }
.step-number { color: #a53616; font-weight: 760; font-size: .89rem; letter-spacing: .1em; }
.process-steps p { color: var(--muted); margin-top: .4rem; max-width: 38rem; }

.contact { isolation: isolate; position: relative; background: linear-gradient(132deg, #14233f, #0d1321 70%); }
.contact-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(25px, 6vw, 90px); align-items: start; }
.contact-copy h2 { margin-top: 1rem; }
.contact-copy > p:not(.eyebrow) { margin-top: 1rem; color: var(--light-text); max-width: 28rem; }
.contact-copy .text-link { margin-top: 1rem; }
.quote-form { display: grid; gap: .85rem; padding: clamp(17px, 2.5vw, 32px); background: #111b2c; border: 1px solid #516078; }
.quote-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quote-form legend, .quote-form > label, .field-row label { font-size: .85rem; font-weight: 730; }
.quote-form legend { margin-bottom: .5rem; }
.quote-services, .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quote-services label { display: flex; align-items: center; gap: .55rem; border: 1px solid #66768e; min-height: 44px; padding: .42rem .56rem; cursor: pointer; font-size: .83rem; line-height: 1.24; }
.quote-services label:has(input:checked) { border-color: #ffad8c; background: #482b27; }
.quote-services input { width: 16px; height: 16px; flex-shrink: 0; margin: 0; accent-color: #ffad8c; }
.quote-form input:not([type="checkbox"]), .quote-form select, .quote-form textarea { display: block; width: 100%; min-height: 44px; margin-top: .28rem; padding: .55rem; color: white; background: #0b1424; border: 1px solid #687991; border-radius: 2px; font-size: .9rem; font-weight: 400; }
.quote-form ::placeholder { color: #a8b5c8; opacity: 1; }
.quote-form textarea { min-height: 75px; resize: vertical; }
.quote-form .optional { font-weight: 400; color: var(--light-text); }
.quote-status { color: #ffbba0; font-size: .86rem; }
.quote-status:empty { display: none; }
.quote-result { justify-self: start; }

.faq-section { background: white; }
.faq-grid { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(22px, 5.5vw, 78px); }
.faq-grid h2 { font-size: clamp(2.25rem, 4.4vw, 4.12rem); }
.question-list details { border-bottom: 1px solid var(--rule); }
.question-list details:first-child { border-top: 1px solid var(--rule); }
.question-list summary { list-style: none; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; font-weight: 720; line-height: 1.3; }
.question-list summary span { width: 13px; height: 13px; flex-shrink: 0; color: #a53616; background: linear-gradient(currentColor, currentColor) center/100% 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 100% no-repeat; }
.question-list details[open] summary span { background-size: 100% 2px, 0 0; }
.question-list details p { padding-bottom: 1rem; color: var(--muted); }

.page-hero { padding-block: clamp(35px, 5vw, 68px) clamp(58px, 7vw, 105px); background: radial-gradient(ellipse at 75% 0, #243652, #0d1321 68%); }
.breadcrumbs { display: flex; gap: .6rem; flex-wrap: wrap; color: var(--light-text); margin-bottom: clamp(26px, 4vw, 47px); font-size: .82rem; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-hero .eyebrow { color: var(--fire); margin-bottom: .85rem; }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.7rem, 7vw, 6.25rem); }
.page-intro { max-width: 45rem; margin-top: 1.15rem; color: var(--light-text); font-size: clamp(1rem, 1.65vw, 1.27rem); }
.page-hero .button { margin-top: 1.4rem; }
.detail-grid, .article-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: start; gap: clamp(22px, 6vw, 85px); }
.detail-grid h2, .content-text h2 { font-size: clamp(1.95rem, 3.75vw, 3.5rem); }
.scope-list { margin-top: 1.35rem; }
.scope-list div { padding-block: .95rem; border-top: 1px solid #aebcce; }
.scope-list dt { font-size: 1.11rem; font-weight: 780; }
.scope-list dd, .content-text p { margin-top: .35rem; color: var(--muted); }
.detail-note { padding: clamp(21px, 3.3vw, 43px); background: #e8eef6; border: 1px solid var(--rule); }
.detail-note .eyebrow { color: var(--muted); margin-bottom: .8rem; }
.detail-note h2 { font-size: clamp(1.66rem, 3.1vw, 2.72rem); }
.detail-note p:not(.eyebrow) { color: var(--muted); margin-block: .75rem; }
.content-text p { max-width: 66ch; }
.section-callout { background: #eaf0f7; }
.compact-callout { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.compact-callout h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.compact-callout p { margin-top: .6rem; color: var(--muted); }
.compact-callout .button { flex-shrink: 0; }
.guide-content { min-width: 0; }
.guide-content h2 { margin-bottom: .65rem; }
.guide-content h2:not(:first-child) { margin-top: 2rem; }
.guide-content .text-link { margin-top: .75rem; }
.guide-content ul { padding-left: 1.2rem; }
.answer-box {
  margin-bottom: 2.1rem;
  padding: clamp(18px, 2.8vw, 30px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
}
.answer-box .eyebrow { color: #974321; margin-bottom: .45rem; }
.guide-content .answer-box h2 {
  margin: 0 0 .65rem;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.answer-box p:not(.eyebrow) { color: var(--ink); }
.answer-box ul {
  display: grid;
  gap: .45rem;
  margin: .9rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.answer-box li strong { color: var(--ink); }
.table-scroll {
  margin-top: 1.25rem;
  margin-bottom: .5rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  background: var(--white);
}
.table-scroll:focus-visible { outline-offset: 2px; }
.guide-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  text-align: left;
  font-size: .9rem;
  line-height: 1.5;
}
.guide-table caption {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 740;
  text-align: left;
}
.guide-table th,
.guide-table td {
  padding: .8rem 1rem;
  vertical-align: top;
  border-top: 1px solid var(--rule);
}
.guide-table thead th {
  border-top: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.guide-table tbody th {
  width: 24%;
  color: var(--ink);
  font-weight: 730;
}
.guide-table tbody td {
  width: 38%;
  color: var(--muted);
}
.article-aside { display: grid; gap: 1.4rem; align-content: start; }
.article-aside figure img { width: 100%; max-height: 460px; object-fit: cover; }
.article-aside figcaption { font-size: .8rem; padding-top: .5rem; color: var(--muted); }
.article-aside nav { display: grid; padding: .6rem 1rem; border: 1px solid #aebcce; }
.article-aside nav a { padding-block: .45rem; }
.article-aside nav a:hover { text-decoration: underline; }

.photo-dialog { width: min(940px, calc(100% - 24px)); max-height: calc(100dvh - 30px); margin: auto; padding: 0; border: 1px solid #8290a5; background: var(--navy); color: white; }
.photo-dialog::backdrop { background: #050a13db; }
.dialog-panel { padding: .65rem; }
.dialog-panel img { margin-inline: auto; width: auto; max-height: 75dvh; object-fit: contain; }
.dialog-panel p { margin: .6rem .5rem 0; }
.dialog-close { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 .55rem auto; border: 1px solid #8090a8; border-radius: 3px; color: white; background: #182338; font-size: 1.7rem; line-height: 1; }

.site-footer { color: white; background: var(--navy); }
.footer-main { padding-block: clamp(35px, 5vw, 65px); display: grid; grid-template-columns: 1.35fr .75fr .95fr .85fr; gap: 1.5rem; }
.footer-main p, .footer-links > a, .footer-bottom { font-size: .84rem; color: var(--light-text); }
.footer-main > div:first-child p { max-width: 25rem; margin-top: .45rem; }
.footer-links { display: grid; align-content: start; gap: .24rem; }
.footer-links .footer-title { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .5rem; }
.footer-links a:hover, .footer-bottom a:hover { text-decoration: underline; }
.footer-contact { display: flex; align-items: center; gap: .45rem; width: fit-content; }
.footer-bottom { display: flex; justify-content: space-between; gap: .85rem; padding-block: 1.05rem; border-top: 1px solid var(--dark-rule); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-image { animation: photo-in 1.05s cubic-bezier(.16,.77,.22,1) both; }
  .hero-copy > * { animation: hero-in .63s cubic-bezier(.16,.77,.22,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .065s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .17s; }
  .reveal-in { animation: reveal .65s cubic-bezier(.16,.77,.22,1) both; }
  .filter-in { animation: reveal .33s ease-out both; }
  @keyframes photo-in {
    from { transform: translateY(var(--photo-drift, 0px)) scale(1.14); }
    to { transform: translateY(var(--photo-drift, 0px)) scale(1.055); }
  }
  @keyframes hero-in { from { transform: translateY(15px); } to { transform: translateY(0); } }
  @keyframes reveal { from { opacity: .68; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  .lab {
    --lab-scroll: 0;
    --lab-focus: 1;
  }
  .lab-header > * {
    transform: translate3d(0, calc(var(--lab-scroll, 0) * -10px), 0);
    transition: transform .18s cubic-bezier(.16, 1, .3, 1);
    will-change: transform;
  }
  section.lab .lab-viewport {
    transform:
      perspective(1400px)
      translate3d(0, calc(var(--lab-scroll, 0) * -16px), 0)
      rotateX(calc(var(--lab-scroll, 0) * 1.6deg))
      scale(calc(.982 + var(--lab-focus, 0) * .018));
    border-color: rgba(242, 89, 33, calc(.16 + var(--lab-focus, 0) * .28));
    box-shadow:
      0 28px 64px rgba(2, 6, 15, calc(.36 + var(--lab-focus, 0) * .22)),
      0 0 calc(var(--lab-focus, 0) * 36px) rgba(242, 89, 33, calc(var(--lab-focus, 0) * .12));
    transition:
      transform .18s cubic-bezier(.16, 1, .3, 1),
      background 420ms ease,
      border-color .25s ease,
      box-shadow .25s ease;
    will-change: transform;
  }
  section.lab .lab-viewport.is-night {
    box-shadow:
      inset 0 0 64px rgba(10, 16, 30, .55),
      0 28px 64px rgba(2, 6, 15, calc(.36 + var(--lab-focus, 0) * .22)),
      0 0 calc(var(--lab-focus, 0) * 36px) rgba(242, 89, 33, calc(var(--lab-focus, 0) * .12));
  }
  .lab-dock {
    transform: translate3d(0, calc(var(--lab-scroll, 0) * 8px), 0);
    transition: transform .22s cubic-bezier(.16, 1, .3, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  a:hover .arrow, button:hover .arrow, .work-photo:hover img { transform: none; }
}

@media (max-width: 1050px) {
  .desktop-nav, .header-cta { display: none; }
  .mobile-nav { display: block; }
  :root { --wrap: calc(100% - 64px); }
  .hero h1 { font-size: clamp(2.58rem, 4.65vw, 4.6rem); }
  .hero-grid { gap: 30px; }
  .service-card a { min-height: 225px; }
}
@media (max-width: 820px) {
  :root { --wrap: calc(100% - 44px); }
  html { scroll-padding-top: 84px; }
  .site-header { height: 68px; }
  .header-inner { min-height: 67px; }
  .site-header.is-scrolled .header-bar { max-width: calc(100% - 20px); transform: translateY(8px); border-radius: 18px; }
  .site-header.is-scrolled .header-inner { min-height: 54px; padding-inline: 16px 10px; }
  .site-header.is-scrolled .brand img { width: 164px; }
  .desktop-nav, .header-cta { display: none; }
  .mobile-nav { display: block; }
  .hero-grid, .contact-grid, .faq-grid, .guide-preview-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 44px 52px; }
  .hero h1 { font-size: clamp(2rem, 10.6vw, 5rem); }
  .hero-visual { margin-top: .18rem; }
  .hero-image-wrap { aspect-ratio: 1.65; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-options button:first-child { grid-column: 1 / -1; }
  .work-featured, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-featured .work-card:first-child { grid-column: span 2; }
  .work-featured .work-card:first-child .work-photo { aspect-ratio: 16/9; }
  .faq-grid { gap: 1.15rem; }
  .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-main > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  :root { --wrap: calc(100% - 36px); }
  .header-inner { gap: .4rem; }
  .hero-description { margin-top: 1rem; }
  .hero-actions { gap: .52rem; margin-top: 1.23rem; }
  .hero-actions .button { padding-inline: .67rem; gap: .38rem; font-size: .83rem; }
  .hero-visual { padding: 5px; }
  .hero-visual figcaption { padding-left: .45rem; }
  .service-card a { padding: .95rem .78rem; min-height: 198px; }
  .service-card p { font-size: .81rem; }
  .service-symbol { margin-bottom: .78rem; }
  .work-featured .work-card:first-child { grid-column: auto; }
  .work-featured .work-card:first-child .work-photo { aspect-ratio: 5/4; }
  .work-featured, .gallery-grid, .process-grid, .detail-grid, .article-grid, .guide-preview-steps { grid-template-columns: minmax(0, 1fr); }
  .work-grid { row-gap: 1.45rem; }
  .work-photo { aspect-ratio: 1.48; }
  .gallery-heading { display: grid; }
  .section-action-bar { flex-direction: column; align-items: flex-start; }
  .compact-callout { flex-direction: column; align-items: flex-start; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main > :first-child { grid-column: span 2; }
  .lab-options button { padding-inline: .5rem; }
  .guide-table th, .guide-table td { padding: .68rem .8rem; font-size: .86rem; }
}
@media (max-width: 350px) {
  .brand img { width: 200px; }
  .field-row { grid-template-columns: 1fr; }
}

/* Composição com fotografia ampla e exploração das camadas em primeiro plano. */
.hero { min-height: min(850px, 88svh); display: flex; align-items: center; padding-block: 100px 135px; overflow: hidden; }
.hero-grid { display: block; }
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.8rem); letter-spacing: -.045em; line-height: 1.03; }
.hero-description { max-width: 37rem; font-size: 1.14rem; color: #eef2f8; }
.hero-visual { position: absolute; inset: 0; margin: 0; border: 0; padding: 0; box-shadow: none; background: var(--navy); }
.hero-visual::after { content: ''; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(90deg, #070f1eef 0%, #0d1321c9 36%, #0d132142 78%), linear-gradient(0deg, #0d1321e6, transparent 38%); }
.hero-image-wrap { height: 100%; aspect-ratio: auto; }
.hero-image { object-position: center 50%; }
.hero-visual figcaption { position: absolute; z-index: 3; bottom: 28px; right: max(5vw, 22px); padding: 12px 16px; border: 1px solid #ffffff38; background: #0d1321cc; min-width: 290px; gap: 24px; border-radius: 6px; }
.service-grid { background: transparent; gap: 18px; padding: 0; }
.service-card { background: #fff; border-top: 3px solid var(--orange); }
.service-card a { padding: 28px 24px; min-height: 260px; }
.section-heading h2 { letter-spacing: -.045em; }
@media (max-width: 820px) {
  .hero { min-height: 690px; padding-block: 80px 155px; }
  .hero-copy { max-width: 650px; }
  .hero h1 { font-size: clamp(2.8rem, 8vw, 4.8rem); }
  .hero-visual::after { background: linear-gradient(90deg,#0d1321ed,#0d132175),linear-gradient(0deg,#0d1321e0,transparent 50%); }
  .lab-viewport { aspect-ratio: 4 / 3; }
  .lab-dock-info { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 580px) {
  .hero { min-height: 660px; padding-block: 72px 150px; }
  .hero h1 { font-size: clamp(2.6rem, 10.2vw, 4rem); }
  .hero-visual figcaption { bottom: 22px; right: 18px; left: 18px; min-width: 0; }
  .hero-description { font-size: 1rem; }
  .hero-actions { gap: 8px; }
  .hero-visual .hero-image { object-position: 59% center; }
  .service-grid { gap: 10px; }
  .service-card a { padding: 20px 14px; min-height: 225px; }
  .lab-viewport { aspect-ratio: 1 / 1.05; }
  .lab-pin-label { display: none; }
  .lab-options button { font-size: .79rem; padding-inline: 10px; }
}
@media (max-width: 440px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card a { min-height: 0; padding: 18px 16px; }
}


.guide-context { margin-top: .55rem; font-size: .92rem; color: var(--muted); }
.guide-context a,
.article-aside figcaption a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.guide-context a:hover,
.article-aside figcaption a:hover { color: #a53616; }
.page-hero .hero-actions .button { margin-top: 0; }

/* Página 404 interativa: esquema elétrico e rotas energizáveis */
.error-hero {
  display: flex;
  align-items: center;
  min-height: clamp(460px, 64svh, 640px);
  padding-block: clamp(42px, 6.5vh, 80px);
  border-bottom: 1px solid rgba(192, 202, 217, .14);
  overflow: hidden;
}
.error-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(26px, 4.4vw, 56px);
}
.error-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 4.45vw, 4.15rem);
  line-height: 1.02;
}
.error-hero .page-intro {
  max-width: 34rem;
  font-size: clamp(.98rem, 1.32vw, 1.12rem);
}
.error-blueprint {
  position: relative;
  margin: 0;
  border: 1px solid #2e405d;
  border-radius: 10px;
  overflow: hidden;
  background-color: #0b1424;
  background-image:
    radial-gradient(280px circle at var(--bp-x, 34%) var(--bp-y, 50%), rgba(242, 89, 33, .14), transparent 72%),
    linear-gradient(to right, rgba(192, 202, 217, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(192, 202, 217, .05) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: 0 26px 56px rgba(3, 7, 17, .55);
  transition: border-color .35s ease, box-shadow .35s ease;
}
.error-blueprint.is-energized {
  border-color: rgba(242, 89, 33, .62);
  background-image:
    radial-gradient(360px circle at var(--bp-x, 56%) var(--bp-y, 50%), rgba(242, 89, 33, .22), transparent 74%),
    linear-gradient(to right, rgba(255, 135, 90, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 135, 90, .07) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: 0 28px 64px rgba(3, 7, 17, .62), 0 0 36px rgba(242, 89, 33, .14);
}
.blueprint-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  flex-wrap: wrap;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(192, 202, 217, .12);
  background: rgba(13, 19, 33, .76);
}
.blueprint-state {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .84rem;
  font-weight: 700;
  color: #dbe4f2;
}
.blueprint-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff9c75;
  box-shadow: 0 0 0 4px rgba(255, 156, 117, .18);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.error-blueprint.is-energized .blueprint-dot {
  background: #4ce09b;
  box-shadow: 0 0 0 4px rgba(76, 224, 155, .2);
}
.breaker-switch {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 40px;
  padding: .35rem .8rem .35rem .45rem;
  border: 1px solid #485b7a;
  border-radius: 999px;
  background: #131f35;
  color: var(--white);
  font-size: .81rem;
  font-weight: 740;
  transition: border-color .22s ease, background-color .22s ease, color .22s ease;
}
.breaker-switch:hover { border-color: var(--fire); background: #1a2944; }
.breaker-switch[aria-pressed="true"] {
  border-color: var(--orange);
  background: rgba(242, 89, 33, .18);
  color: #ffd5c3;
}
.breaker-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #25344d;
  border: 1px solid #4e6282;
  transition: background-color .25s ease, border-color .25s ease;
}
.breaker-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d5dfec;
  transition: transform .28s cubic-bezier(.16, 1, .3, 1), background-color .22s ease;
}
.breaker-switch[aria-pressed="true"] .breaker-track {
  background: var(--orange);
  border-color: var(--fire);
}
.breaker-switch[aria-pressed="true"] .breaker-thumb {
  transform: translateX(14px);
  background: var(--navy);
}
.blueprint-board {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(190px, .82fr);
  align-items: stretch;
  gap: 10px;
  padding: 14px 16px;
}
.blueprint-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  cursor: pointer;
}
.bp-frame path,
.bp-frame line,
.bp-frame circle {
  fill: none;
  stroke: rgba(145, 165, 196, .28);
  stroke-width: 1.2;
}
.bp-frame circle { fill: #0b1424; stroke: rgba(255, 135, 90, .75); stroke-width: 1.5; }
.bp-code {
  font: 850 74px/1 var(--font);
  letter-spacing: -.05em;
  fill: rgba(242, 89, 33, 0);
  stroke: rgba(154, 174, 206, .34);
  stroke-width: 1.4;
  transition: stroke .4s ease, fill .4s ease;
}
.error-blueprint.is-energized .bp-code {
  fill: rgba(242, 89, 33, .1);
  stroke: rgba(255, 135, 90, .86);
}
.bp-tag {
  font: 650 11px/1 var(--font);
  fill: #98abc7;
}
.bp-wire-base {
  fill: none;
  stroke: #2c3d59;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bp-wire-live {
  fill: none;
  stroke: var(--fire);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 7 7;
}
.bp-wire-flow {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  transition: stroke-dashoffset .44s cubic-bezier(.16, 1, .3, 1), opacity .18s ease, stroke .2s ease;
}
.error-blueprint.is-energized:not(.is-routing) .bp-flow-1 { transition-delay: .12s; }
.error-blueprint.is-energized:not(.is-routing) .bp-flow-2 { transition-delay: .18s; }
.error-blueprint.is-energized:not(.is-routing) .bp-flow-3 { transition-delay: .24s; }
.error-blueprint.is-energized:not(.is-routing) .bp-wire-flow,
.error-blueprint.is-energized.is-routing[data-routing-route="1"] .bp-flow-1,
.error-blueprint.is-energized.is-routing[data-routing-route="2"] .bp-flow-2,
.error-blueprint.is-energized.is-routing[data-routing-route="3"] .bp-flow-3 {
  stroke-dashoffset: 0;
  opacity: 1;
}
.error-blueprint.is-energized.is-routing .bp-wire-flow {
  stroke: #ffb38e;
  stroke-width: 3.4;
  transition-delay: .18s;
}
.error-blueprint:not(.is-energized)[data-hover-route="1"] .bp-branch-1,
.error-blueprint:not(.is-energized)[data-hover-route="2"] .bp-branch-2,
.error-blueprint:not(.is-energized)[data-hover-route="3"] .bp-branch-3 {
  stroke: #567096;
}
.error-blueprint.is-energized:not(.is-routing)[data-hover-route="1"] .bp-flow-1,
.error-blueprint.is-energized:not(.is-routing)[data-hover-route="2"] .bp-flow-2,
.error-blueprint.is-energized:not(.is-routing)[data-hover-route="3"] .bp-flow-3 {
  stroke: #ffb18f;
}
.bp-beacon {
  fill: rgba(242, 89, 33, .14);
  stroke: rgba(255, 135, 90, .55);
  stroke-width: 1.2;
  transition: opacity .25s ease;
}
.error-blueprint.is-energized .bp-beacon { opacity: 0; }
.bp-arm {
  transform-box: view-box;
  transform-origin: 104px 140px;
  transform: rotate(-28deg);
  transition: transform .26s cubic-bezier(.16, 1, .3, 1);
}
.error-blueprint.is-energized .bp-arm { transform: rotate(0deg); }
.bp-arm line {
  stroke: #ffb395;
  stroke-width: 3.4;
  stroke-linecap: round;
}
.bp-arm circle,
.bp-terminal {
  fill: #0b1424;
  stroke: var(--fire);
  stroke-width: 2;
}
.bp-node {
  fill: #152238;
  stroke: #4c6184;
  stroke-width: 1.8;
  transition: fill .22s ease, stroke .22s ease;
}
.error-blueprint:not(.is-energized)[data-hover-route="1"] .bp-node-1,
.error-blueprint:not(.is-energized)[data-hover-route="2"] .bp-node-2,
.error-blueprint:not(.is-energized)[data-hover-route="3"] .bp-node-3 {
  stroke: #8ca5c9;
  fill: #243654;
}
.error-blueprint.is-energized:not(.is-routing) .bp-node,
.error-blueprint.is-energized.is-routing[data-routing-route="1"] .bp-node-1,
.error-blueprint.is-energized.is-routing[data-routing-route="2"] .bp-node-2,
.error-blueprint.is-energized.is-routing[data-routing-route="3"] .bp-node-3 {
  fill: var(--orange);
  stroke: #ffd2be;
}
.blueprint-routes {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.route-node {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 54px;
  padding: .62rem .78rem;
  border: 1px solid #30425f;
  border-radius: 7px;
  background: rgba(16, 26, 44, .92);
  color: var(--white);
  transition: border-color .22s ease, background-color .22s ease, transform .22s cubic-bezier(.16, 1, .3, 1);
}
.route-node:hover,
.route-node:focus-visible {
  border-color: var(--fire);
  background: #182640;
  transform: translateX(3px);
}
.error-blueprint.is-energized:not(.is-routing) .route-node,
.route-node.is-routing-target {
  border-color: rgba(255, 135, 90, .62);
}
.route-node.is-routing-target {
  background: #22304d;
  box-shadow: 0 0 0 2px rgba(242, 89, 33, .28);
}
.route-pin {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #4b5f7f;
  transition: background-color .22s ease, box-shadow .22s ease;
}
.route-node:hover .route-pin,
.route-node:focus-visible .route-pin {
  background: #8aa4cb;
  box-shadow: 0 0 0 3px rgba(138, 164, 203, .2);
}
.error-blueprint.is-energized:not(.is-routing) .route-pin,
.error-blueprint.is-energized .route-node:hover .route-pin,
.error-blueprint.is-energized .route-node:focus-visible .route-pin,
.route-node.is-routing-target .route-pin {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 89, 33, .26);
}
.route-text { min-width: 0; flex: 1; }
.route-text strong { display: block; font-size: .89rem; line-height: 1.22; }
.route-text small { display: block; margin-top: .14rem; color: var(--light-text); font-size: .74rem; line-height: 1.25; }
.blueprint-caption {
  padding: .65rem 1rem .78rem;
  border-top: 1px solid rgba(192, 202, 217, .12);
  color: var(--light-text);
  font-size: .81rem;
  background: rgba(10, 17, 30, .72);
}
@media (prefers-reduced-motion: no-preference) {
  .bp-wire-live { animation: bp-dash 1.3s linear infinite; }
  .bp-beacon { animation: bp-beacon 1.9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .error-blueprint.is-energized .bp-wire-flow {
    animation: bp-flow-pulse 2.2s ease-in-out .65s infinite alternate;
  }
  @keyframes bp-dash { to { stroke-dashoffset: -28; } }
  @keyframes bp-beacon {
    0%, 100% { transform: scale(.85); opacity: .75; }
    50% { transform: scale(1.38); opacity: .22; }
  }
  @keyframes bp-flow-pulse {
    from { stroke: var(--orange); }
    to { stroke: #ffaa84; }
  }
}
@media (max-width: 960px) {
  .error-hero { min-height: 0; }
  .error-grid { grid-template-columns: minmax(0, 1fr); }
  .error-hero h1 { max-width: 18ch; }
}
@media (max-width: 600px) {
  .error-hero { min-height: 0; padding-block: 28px 40px; }
  .blueprint-bar { padding: .6rem .8rem; gap: .5rem; }
  .blueprint-state { font-size: .78rem; }
  .breaker-switch { font-size: .76rem; padding: .3rem .65rem .3rem .38rem; }
  .blueprint-board { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px 12px; }
  .blueprint-svg { height: auto; aspect-ratio: 360 / 280; max-height: 205px; margin-inline: auto; }
  .blueprint-routes { grid-template-rows: none; gap: 8px; }
  .route-node { min-height: 48px; padding: .52rem .72rem; }
  .route-node:hover { transform: none; }
}
