:root {
  --ink: #101113;
  --muted: #68686d;
  --paper: #f5f5f7;
  --white: #ffffff;
  --line: rgba(16, 17, 19, 0.14);
  --accent: #d95428;
  --accent-soft: #f1aa73;
  --deep: #18231f;
  --radius: 30px;
  --page: min(1200px, calc(100vw - 48px));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 99px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(245, 245, 247, 0.82);
  border-color: rgba(16, 17, 19, 0.08);
  backdrop-filter: saturate(180%) blur(18px);
}

.nav-shell {
  width: var(--page);
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 730;
  letter-spacing: -0.01em;
}

.brand b {
  font-weight: 500;
  color: var(--muted);
}

.brand-logo {
  width: 102px;
  height: auto;
  display: block;
}

.brand-label {
  color: var(--muted);
  font-weight: 560;
  letter-spacing: .02em;
}

.brand-symbol {
  width: 32px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 16px;
  font-weight: 540;
}

.site-nav a {
  transition: opacity 180ms ease;
}

.site-nav a:hover {
  opacity: 0.55;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 570;
  letter-spacing: .04em;
}

.language-switcher button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.language-switcher button:hover {
  color: var(--ink);
}

.language-switcher .is-active {
  color: var(--ink);
  font-weight: 720;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  background: var(--white);
}

.hero-stage {
  position: relative;
  height: 100svh;
  min-height: 480px;
  padding: clamp(96px, 15svh, 138px) max(24px, calc((100vw - 1200px) / 2)) 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  grid-template-rows: 1fr auto;
  column-gap: clamp(40px, 7vw, 112px);
  overflow: visible;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding-bottom: 0;
}


.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.service-dialog h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero h1 {
  font-size: clamp(48px, min(7.3vw, 10.5svh), 116px);
  font-weight: 720;
}

.hero h1 span {
  color: #909095;
}

.hero-intro {
  max-width: 520px;
  margin: clamp(18px, 4svh, 36px) 0 clamp(14px, 3svh, 26px);
  color: #47474b;
  font-size: clamp(18px, 1.65vw, 24px);
  letter-spacing: -0.023em;
  line-height: 1.35;
}

.text-link,
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 620;
}

.text-link span,
.contact-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(4px);
}

.contact-link:hover span {
  transform: translate(3px, -3px);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 0;
  align-self: center;
  display: grid;
  place-items: center;
}





.hero-proof {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.hero-proof div {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px 0 0;
  font-size: 13px;
}

.hero-proof div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.hero-proof strong {
  font-weight: 650;
}

.hero-proof span {
  color: var(--muted);
}

.section {
  padding: clamp(96px, 12vw, 180px) max(24px, calc((100vw - 1200px) / 2));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 58px;
}

.section h2 {
  font-size: clamp(52px, 6.7vw, 96px);
  font-weight: 700;
}

.rail-controls {
  display: flex;
  gap: 10px;
}

.rail-controls button,
.card-action,
.dialog-close {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #dfdfe3;
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.rail-controls button:hover,
.dialog-close:hover {
  transform: scale(1.06);
  background: #d2d2d7;
}

.service-rail {
  width: calc(100vw - max(24px, calc((100vw - 1200px) / 2)));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(390px, 82vw);
  gap: 20px;
  padding: 5px max(24px, calc((100vw - 1200px) / 2)) 34px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.service-rail::-webkit-scrollbar {
  display: none;
}

.service-card {
  position: relative;
  min-height: 580px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 2px 3px rgba(0,0,0,.02), 0 18px 50px rgba(0,0,0,.07);
  scroll-snap-align: start;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), box-shadow 300ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 8px rgba(0,0,0,.03), 0 25px 60px rgba(0,0,0,.11);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-visual {
  position: relative;
  flex: 1;
  min-height: 245px;
  margin: 22px -26px 28px;
  overflow: hidden;
}

.card-copy {
  padding-right: 32px;
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.card-copy h3 {
  margin: 0;
  max-width: 310px;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.card-copy > p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.card-action {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--white);
  font-size: 24px;
  font-weight: 300;
}

.card-action:hover {
  background: var(--accent);
  transform: rotate(90deg);
}

.service-card--seismic .card-visual {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(145deg, #f1ebe4, #e4c7b3);
}

.service-card--seismic .card-visual i {
  width: 3px;
  height: var(--h, 72%);
  border-radius: 99px;
  background: var(--ink);
  box-shadow: 11px 0 0 rgba(16,17,19,.5), 22px 0 0 rgba(16,17,19,.2);
  transform: scaleY(.25);
  animation: trace 2.8s ease-in-out infinite alternate;
}

.service-card--seismic .card-visual i:nth-child(2) { --h: 48%; animation-delay: -.5s; }
.service-card--seismic .card-visual i:nth-child(3) { --h: 90%; animation-delay: -1.1s; }
.service-card--seismic .card-visual i:nth-child(4) { --h: 62%; animation-delay: -1.6s; }
.service-card--seismic .card-visual i:nth-child(5) { --h: 37%; animation-delay: -2.1s; }

.service-card--electrical .card-visual {
  background: #1c2c27;
}

.service-card--electrical .card-visual::before {
  content: "";
  position: absolute;
  inset: 12% -15% -30%;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, transparent 0 18px, rgba(245,160,109,.65) 19px 21px, transparent 22px 39px);
  transform: perspective(250px) rotateX(58deg);
}

.service-card--electrical .card-visual i {
  position: absolute;
  z-index: 2;
  top: 22%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255,255,255,.1);
}

.service-card--electrical .card-visual i:nth-child(1) { left: 16%; }
.service-card--electrical .card-visual i:nth-child(2) { left: 38%; }
.service-card--electrical .card-visual i:nth-child(3) { left: 60%; }
.service-card--electrical .card-visual i:nth-child(4) { left: 82%; }

.service-card--borehole .card-visual {
  background: linear-gradient(90deg, #e8e8e5 49.5%, #1a211f 49.5% 52%, #d3d1c5 52%);
}

.service-card--borehole .card-visual::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 12px;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(217,84,40,.16);
}

.service-card--borehole .card-visual i {
  position: absolute;
  left: 18%;
  right: 18%;
  height: 1px;
  background: rgba(16,17,19,.22);
}

.service-card--borehole .card-visual i:nth-child(1) { top: 26%; }
.service-card--borehole .card-visual i:nth-child(2) { top: 52%; }
.service-card--borehole .card-visual i:nth-child(3) { top: 78%; }

.service-card--em .card-visual {
  display: grid;
  place-items: center;
  background: #dee7e0;
}

.service-card--em .card-visual i {
  position: absolute;
  width: var(--s, 60px);
  height: var(--s, 60px);
  border: 2px solid var(--deep);
  border-radius: 50%;
  opacity: calc(1 - var(--n, 0) * .14);
}

.service-card--em .card-visual i:nth-child(1) { --s: 56px; --n: 0; }
.service-card--em .card-visual i:nth-child(2) { --s: 106px; --n: 1; }
.service-card--em .card-visual i:nth-child(3) { --s: 158px; --n: 2; }
.service-card--em .card-visual i:nth-child(4) { --s: 210px; --n: 3; }
.service-card--em .card-visual i:nth-child(5) { --s: 262px; --n: 4; }

.service-card--potential .card-visual {
  background: linear-gradient(135deg, #101113, #34383d);
}

.service-card--potential .card-visual::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  top: 18px;
  left: calc(50% - 105px);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #efb385, #bc4e2a 34%, #25332e 68%, #090b0a 70%);
  filter: blur(.4px);
  box-shadow: 0 0 60px rgba(217,84,40,.25);
}

.service-card--potential .card-visual i {
  position: absolute;
  z-index: 2;
  left: 12%;
  right: 12%;
  top: var(--t);
  height: 1px;
  background: rgba(255,255,255,.2);
}

.service-card--potential .card-visual i:nth-child(1) { --t: 20%; }
.service-card--potential .card-visual i:nth-child(2) { --t: 40%; }
.service-card--potential .card-visual i:nth-child(3) { --t: 60%; }
.service-card--potential .card-visual i:nth-child(4) { --t: 80%; }

.service-card--monitoring .card-visual {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 40px;
  background: #ddd9ce;
}

.service-card--monitoring .card-visual i {
  flex: 1;
  height: var(--h);
  border-radius: 99px 99px 0 0;
  background: var(--deep);
  transform-origin: bottom;
  animation: monitor 3.5s ease-in-out infinite alternate;
}

.service-card--monitoring .card-visual i:nth-child(1) { --h: 22%; animation-delay: -.4s; }
.service-card--monitoring .card-visual i:nth-child(2) { --h: 45%; animation-delay: -.8s; }
.service-card--monitoring .card-visual i:nth-child(3) { --h: 84%; background: var(--accent); animation-delay: -1.2s; }
.service-card--monitoring .card-visual i:nth-child(4) { --h: 38%; animation-delay: -1.6s; }
.service-card--monitoring .card-visual i:nth-child(5) { --h: 65%; animation-delay: -2s; }

.service-card .card-visual--photo {
  display: block;
  background: #dfe4df;
}

.service-card .card-visual--photo::before,
.service-card .card-visual--photo::after {
  content: none;
}

.card-visual--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}

.service-card:hover .card-visual--photo img {
  transform: scale(1.035);
}

.service-card--seismic .card-visual--photo img { object-position: 50% 54%; }
.service-card--electrical .card-visual--photo img { object-position: 50% 35%; }
.service-card--borehole .card-visual--photo img { object-position: 50% 88%; }
.service-card--em .card-visual--photo img { object-position: 50% 56%; }
.service-card--potential .card-visual--photo img { object-position: 50% 62%; }
.service-card--monitoring .card-visual--photo img { object-position: 50% 62%; }

.rail-hint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.rail-hint span {
  padding-left: 5px;
}

.workflow {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(70px, 10vw, 150px);
  background: var(--ink);
  color: var(--white);
}

.workflow h2 {
  font-size: clamp(52px, 5.3vw, 78px);
}

.workflow-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-grid li {
  position: relative;
  min-height: 185px;
  padding: 0 0 44px 76px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.workflow-grid li + li {
  padding-top: 44px;
}

.workflow-grid span {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-soft);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.workflow-grid li + li span {
  top: 44px;
}

.workflow-grid h3 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -.035em;
}

.workflow-grid p {
  max-width: 540px;
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 18px;
}

.model-stage {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.model-stage-copy h2 {
  font-size: clamp(52px, 5.8vw, 84px);
}

.model-stage-copy > p:not(.eyebrow) {
  margin: 28px 0;
  color: var(--muted);
  font-size: 18px;
}

.pill-button {
  padding: 12px 20px;
  border: 0;
  border-radius: 99px;
  background: var(--accent);
  color: var(--white);
  font-weight: 620;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.pill-button:hover {
  background: #bd4320;
  transform: translateY(-2px);
}

.model-placeholder {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    #17201d;
  background-size: 50px 50px;
  perspective: 900px;
}

.model-placeholder > p {
  position: absolute;
  left: 28px;
  bottom: 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: white;
  font-size: 13px;
}

.model-placeholder > p span {
  color: rgba(255,255,255,.45);
}

.model-volume {
  position: relative;
  width: 280px;
  height: 280px;
  transform-style: preserve-3d;
  transform: rotateX(-52deg) rotateZ(35deg);
  animation: float-model 6s ease-in-out infinite alternate;
}

.model-volume i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.45);
  background: radial-gradient(circle at var(--x) var(--y), rgba(238,122,73,.9), rgba(238,122,73,.08) 24%, rgba(77,128,109,.18) 50%, transparent 68%);
  transform: translateZ(var(--z));
}

.model-volume i:nth-child(1) { --x: 30%; --y: 70%; --z: -60px; }
.model-volume i:nth-child(2) { --x: 65%; --y: 35%; --z: 0px; }
.model-volume i:nth-child(3) { --x: 50%; --y: 50%; --z: 60px; }

.model-axis {
  position: absolute;
  top: 24px;
  right: 26px;
  display: flex;
  gap: 12px;
  color: rgba(255,255,255,.5);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Featured model viewer (assets/js/model-viewer.js) */
.model-placeholder canvas,
.model-layers,
.model-depth,
.model-scale {
  display: none;
}

.model-placeholder.is-live {
  place-items: stretch;
  background:
    radial-gradient(circle at 50% 58%, rgba(217, 84, 40, .14), transparent 55%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    #17201d;
  background-size: auto, 50px 50px, 50px 50px, auto;
}

.model-placeholder.is-live .model-volume,
.model-placeholder.is-live .model-axis {
  display: none;
}

.model-placeholder.is-live canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.model-placeholder.is-dragging canvas {
  cursor: grabbing;
}

.model-placeholder.is-live .model-layers {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}

.model-layers button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 99px;
  background: rgba(23, 32, 29, .62);
  color: rgba(255,255,255,.88);
  font: 600 12px/1 var(--font);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.model-layers button:hover {
  border-color: rgba(255,255,255,.36);
}

.model-layers button[aria-pressed="false"] {
  color: rgba(255,255,255,.42);
}

.model-layers button[aria-pressed="false"] .swatch {
  opacity: .25;
}

.model-layers button:focus-visible,
.model-depth input:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.swatch {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 3px;
}

.swatch--slice { background: linear-gradient(90deg, #5c2c1a, #d95428, #fff1e3); }
.swatch--shell { background: #d95428; box-shadow: inset 0 0 0 2px #f1aa73; }
.swatch--body { background: #5ed1b0; }
.swatch--hole { height: 2px; border-radius: 1px; background: rgba(255,255,255,.75); }

.model-placeholder.is-live .model-depth {
  position: absolute;
  right: 26px;
  bottom: 70px;
  width: min(260px, calc(100% - 52px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  transition: opacity 160ms ease;
}

.model-placeholder.slice-off .model-depth {
  opacity: .35;
  pointer-events: none;
}

.model-depth output {
  color: white;
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.model-depth input {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.model-placeholder.is-live .model-scale {
  position: absolute;
  right: 26px;
  bottom: 24px;
  width: min(260px, calc(100% - 52px));
  display: grid;
  gap: 6px;
  color: rgba(255,255,255,.55);
  font-size: 11px;
}

.model-scale i {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(23,32,29,0) 0%, rgba(92,44,26,.6) 35%, #d95428 60%, #f1aa73 80%, #fff1e3 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.model-scale-ticks {
  position: relative;
  height: 12px;
}

.model-scale-ticks b {
  position: absolute;
  top: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
  white-space: nowrap;
}

.model-scale-ticks b:last-child {
  transform: translateX(-100%);
}

.model-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(16, 17, 19, .82);
  color: white;
  font-size: 12px;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.model-tooltip[hidden] {
  display: none;
}

.model-tooltip span {
  color: rgba(255,255,255,.6);
}

.model-placeholder.is-live > p {
  pointer-events: none;
}

@media (max-width: 680px) {
  .model-placeholder.is-live .model-depth,
  .model-placeholder.is-live .model-scale {
    left: 22px;
    right: 22px;
    width: auto;
  }

  .model-placeholder.is-live .model-depth {
    bottom: 128px;
  }

  .model-placeholder.is-live .model-scale {
    bottom: 76px;
  }
}

.contact {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #deded9;
}

.contact h2 {
  max-width: 1000px;
}

.contact .contact-link {
  margin-top: 42px;
  font-size: 20px;
}

.site-footer {
  min-height: 160px;
  padding: 42px max(24px, calc((100vw - 1200px) / 2));
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 52px;
  background: var(--ink);
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

.brand--footer {
  color: var(--white);
}

.brand--footer b {
  color: rgba(255,255,255,.5);
}

.brand--footer .brand-symbol {
  flex: 0 0 auto;
}

.service-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.service-dialog::backdrop {
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(4px);
}

.service-dialog[open] {
  animation: dialog-in 380ms cubic-bezier(.2,.7,.2,1) both;
}

.dialog-shell {
  min-height: 100%;
}

.dialog-header {
  position: sticky;
  z-index: 3;
  top: 0;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245,245,247,.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.dialog-close {
  font-size: 25px;
  font-weight: 300;
}

.dialog-content {
  padding: 100px max(24px, calc((100vw - 1200px) / 2)) 140px;
}

.service-dialog h2 {
  font-size: clamp(64px, 9vw, 136px);
  font-weight: 720;
}

.dialog-lead {
  max-width: 820px;
  margin: 30px 0 90px;
  color: var(--muted);
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.detail-label {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-copy li {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
}

.detail-copy > p:last-child {
  max-width: 520px;
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.media-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: repeat(2, 310px);
  gap: 18px;
  margin-top: 52px;
}

.media-slot {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  border: 1px dashed rgba(16,17,19,.28);
  background:
    linear-gradient(rgba(16,17,19,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,17,19,.04) 1px, transparent 1px),
    #e9e9e6;
  background-size: 36px 36px;
  color: var(--muted);
}

.media-slot--model {
  grid-row: 1 / 3;
  margin: 0;
  background:
    radial-gradient(circle at 58% 46%, rgba(217,84,40,.36), transparent 20%),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    var(--deep);
  background-size: auto, 42px 42px, 42px 42px, auto;
  color: rgba(255,255,255,.65);
}

.media-slot span {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.media-slot p {
  max-width: 330px;
  margin: 0;
  font-size: 16px;
}

.media-slot [hidden] {
  display: none !important;
}

[data-dialog-primary-placeholder]:not([hidden]) {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.media-slot--photo {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #18231f;
  color: var(--white);
}

.media-slot--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,12,10,.76), transparent 58%);
  pointer-events: none;
}

.media-slot--photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 58%;
  transition: transform 800ms cubic-bezier(.2,.7,.2,1);
}

.media-slot--photo.is-contain {
  background: var(--white);
}

.media-slot--photo.is-contain img {
  object-fit: contain;
  background: var(--white);
}

.media-slot--photo:hover img {
  transform: scale(1.025);
}

.media-slot--photo figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 24px 22px;
  display: grid;
  gap: 7px;
}

.media-slot--photo figcaption p {
  color: rgba(255,255,255,.8);
  text-shadow: 0 1px 18px rgba(0,0,0,.3);
}

.media-slot--result img {
  object-position: center 68%;
}

.dialog-contact {
  margin-top: 70px;
  font-size: 20px;
}

@keyframes trace {
  to { transform: scaleY(1); }
}

@keyframes monitor {
  to { transform: scaleY(.68); }
}

@keyframes float-model {
  to { transform: rotateX(-48deg) rotateZ(41deg) translateY(-12px); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(24px); }
}

@media (max-width: 900px) {
  .hero-stage {
    height: auto;
    min-height: 100svh;
    padding-top: 125px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .hero-copy {
    padding: 45px 0 10px;
  }

  .hero-visual {
    min-height: 0;
    justify-self: start;
  }


  .workflow,
  .model-stage {
    grid-template-columns: 1fr;
  }

  .model-stage {
    align-items: stretch;
  }

  .model-placeholder {
    min-height: 520px;
  }
}

@media (max-width: 680px) {
  :root {
    --page: calc(100vw - 36px);
    --radius: 24px;
  }

  .nav-shell {
    height: 56px;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
  }

  .nav-toggle span:not(.sr-only) {
    width: 18px;
    height: 1px;
    display: block;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 0;
    padding: 110px 24px 40px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    background: rgba(245,245,247,.98);
    font-size: 30px;
    letter-spacing: -.04em;
  }

  .language-switcher {
    margin-top: 8px;
    margin-left: 0;
    font-size: 15px;
    letter-spacing: .03em;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    height: auto;
    padding: 0;
  }

  .hero-stage {
    padding: 105px 18px 30px;
  }

  .hero h1 {
    font-size: clamp(54px, 16vw, 76px);
  }

  .hero-intro {
    font-size: 18px;
  }



  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof div {
    padding: 16px 0;
  }

  .hero-proof div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 92px 18px;
  }

  .section-heading {
    align-items: center;
    margin-bottom: 36px;
  }

  .section h2 {
    font-size: 50px;
  }

  .rail-controls {
    display: none;
  }

  .service-rail {
    width: calc(100vw - 18px);
    grid-auto-columns: 84vw;
    gap: 14px;
    padding-right: 18px;
  }

  .service-card {
    min-height: 540px;
  }

  .workflow {
    gap: 65px;
  }

  .workflow-grid li {
    padding-left: 46px;
  }

  .model-placeholder {
    min-height: 440px;
  }

  .model-volume {
    width: 210px;
    height: 210px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dialog-header {
    height: 60px;
    padding: 0 18px;
  }

  .dialog-content {
    padding: 76px 18px 100px;
  }

  .service-dialog h2 {
    font-size: 60px;
  }

  .dialog-lead {
    margin-bottom: 58px;
    font-size: 25px;
  }

  .detail-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-rows: 460px 260px 260px;
  }

  .media-slot--model {
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Live wave simulation behind the hero */
.hero-stage {
  cursor: crosshair;
}

.hero-stage a,
.hero-stage button {
  cursor: pointer;
}

.hero-wave {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-visual {
  align-self: end;
  justify-self: end;
}

.hero-hint {
  margin: 0 0 18px;
  color: #8a8a90;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
}

@media (hover: none) {
  .hero-hint {
    display: none;
  }
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: rgba(255,255,255,.75);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
