/* Public-site presentation. The original demonstrations keep their own visual identities. */
:root {
  --bg: #090d15;
  --white: #f2f5fb;
  --muted: #b2becc;
  --cyan: #91b7ff;
  --edge: rgb(173 195 232 / 20%);
}

.circuit-background {
  background: radial-gradient(ellipse at 78% 22%, #182944, transparent 50%), #090d15;
}
#circuitCanvas { opacity: .25; }
.circuit-vignette {
  background: linear-gradient(95deg, #090d15 4%, rgb(9 13 21 / 93%) 26%, transparent 74%),
    linear-gradient(0deg, #090d15 0%, transparent 48%);
}
.site-header { background: rgb(9 13 21 / 91%); border-color: var(--edge); }
.header-inner { height: 4.75rem; }
.brand { letter-spacing: -.065em; }
.brand-tech { color: #a4c2ff; }
.main-nav { font-size: .875rem; }
.header-actions { gap: .6rem; }
.header-cta { border: 1px solid #687b99; border-radius: 999px; padding: .55rem 1rem; font-size: .875rem; }
.main-nav a:hover, .main-nav a:focus-visible { color: #bfdbff; }

.opening {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(1rem, 3vw, 3rem);
  padding-top: clamp(2.25rem, 4.3vw, 5rem);
}
.opening-copy { position: relative; z-index: 1; min-width: 0; }
.opening-subject {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.3rem;
  color: #bad0ee;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .075em;
}
.opening-subject::before { content: ""; width: 2.1rem; height: 2px; background: #7daaff; }
.opening h1 {
  margin: 0;
  max-width: 12.8em;
  color: #f4f7fc;
  font-family: var(--heading);
  font-size: clamp(3rem, 4.75vw, 5rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.07em;
  text-wrap: balance;
}
.opening h1 em {
  color: #a7c5ff;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.055em;
}
.opening-description {
  margin: 1.45rem 0 0;
  max-width: 33rem;
  color: #bec9d8;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.68;
  text-align: justify;
  text-align-last: left;
}
.opening-actions { display: flex; flex-wrap: wrap; gap: .65rem 1.35rem; align-items: center; margin-top: 1.75rem; }
.opening-primary, .opening-secondary, .case-contact {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  font-size: .94rem;
  font-weight: 750;
  line-height: 1.4;
}
.opening-primary {
  border-radius: 999px;
  padding: .8rem 1.3rem;
  background: #c4d7ff;
  color: #101b30;
  box-shadow: 0 5px 30px rgb(89 132 216 / 19%);
  transition: background .2s, transform .2s;
}
.opening-primary:hover { background: #e0ebff; transform: translateY(-2px); }
.opening-secondary, .case-contact { text-decoration: underline; text-decoration-color: #778aa8; text-underline-offset: .36em; }
.opening-secondary:hover, .case-contact:hover { text-decoration-color: currentColor; }

.brand-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-bottom: .5rem;
}
.brand-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -5% 5%;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 48% at 50% 48%, rgb(41 81 174 / 37%), transparent);
}
.model-frame {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 32rem);
  user-select: none;
}
.model-frame img, .model-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.model-frame img { pointer-events: none; }
.model-frame canvas { opacity: 0; }
.model-frame canvas.is-ready { opacity: 1; }
.model-frame:has(canvas.is-ready) img { opacity: 0; }
.stage-rings {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  bottom: 13%;
  left: 5%;
  width: 90%;
  height: 16%;
  border: 1px solid rgb(161 191 247 / 27%);
  border-radius: 50%;
  transform: rotate(-6deg);
  background: radial-gradient(ellipse, #051022 5%, rgb(37 64 121 / 30%) 38%, transparent 68%);
}
.stage-rings::after, .stage-rings::before { content: ""; position: absolute; border: 1px solid rgb(107 146 222 / 17%); border-radius: 50%; }
.stage-rings::before { inset: 16% 8%; }
.stage-rings::after { inset: -22% -6%; border-color: rgb(107 146 222 / 13%); }
.turn-model {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.75rem;
  margin-top: -.25rem;
  padding: .45rem 1rem;
  border: 1px solid #4c6180;
  border-radius: 999px;
  color: #e0eaff;
  background: rgb(12 21 36 / 88%);
  font-size: .875rem;
}
.turn-model[hidden] { display: none; }
.turn-model .icon { width: 1rem; height: 1rem; }
.turn-model:hover { border-color: #a3c3ff; }

.service-index {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(1.8rem, 4.2vw, 4rem);
  border-top: 1px solid var(--edge);
}
.service-index a {
  position: relative;
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  padding: 1.35rem .9rem 1.45rem 0;
}
.service-index a + a { padding-left: 1.4rem; }
.service-index a + a::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--edge); }
.service-index a::after {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: #94baff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.service-index a:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.service-index .icon { width: 1.45rem; height: 1.45rem; color: #a5c5ff; }
.service-index strong, .service-index small { display: block; line-height: 1.35; }
.service-index strong { color: #f1f5ff; font-size: 1rem; }
.service-index small { margin-top: .22rem; color: #afbcd0; font-size: .875rem; }

.web-section.section-shell {
  background: #e8ecee;
  color: #15202b;
  border-color: #c8d2d9;
  padding-block: clamp(4.5rem, 8vw, 8rem);
}
.web-section .section-intro { max-width: 59rem; }
.web-section .section-kicker { color: #385779; font-size: .875rem; letter-spacing: .07em; }
.section-intro h2, .lab-intro h2, .process-heading h2 { letter-spacing: -.065em; }
.web-section .section-intro h2 { color: #142130; font-size: clamp(2.15rem, 4vw, 3.65rem); line-height: 1.09; }
.web-section .section-description, .case-overview p { color: #3d4d5d; font-size: 1rem; line-height: 1.7; }
.web-section .section-description { margin-top: 1rem; }
.web-section .web-showcase { gap: clamp(2rem, 5vw, 5.25rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.web-story { min-width: 0; }
.case-choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.case-choices button {
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid #a9b8c5;
  border-radius: 999px;
  background: transparent;
  color: #27394b;
  font-size: .875rem;
  font-weight: 700;
}
.case-choices button:hover { border-color: #526c83; }
.case-choices button[aria-pressed="true"] { color: white; border-color: #1b3047; background: #1b3047; }
.case-overview { max-width: 32rem; margin: 1.65rem 0 .8rem; }
.case-overview h3 { color: #172637; font-size: clamp(1.45rem, 2.25vw, 2.15rem); line-height: 1.15; }
.case-overview p { margin: .65rem 0 0; text-align: justify; text-align-last: left; }
.case-contact { color: #203e64; text-decoration-color: #677d99; }
.web-section .web-stage { min-width: 0; box-shadow: 0 1rem 2.8rem rgb(27 43 60 / 22%); }
.web-section .web-stage .preview-toolbar, .web-section .web-stage .preview-caption { color: #cdd9e8; }
.web-section :focus-visible { outline-color: #155ab7; }

.google-section { padding-block: clamp(4.5rem, 9vw, 9rem); }
.google-copy > p, .lab-intro > .section-description, .connections-copy p, .contact-copy > p, .process-grid p { font-size: 1rem; }
.google-visual .local-map { transition: transform .7s ease, filter .7s ease; }
.google-visual[data-view="ads"] .local-map { transform: perspective(60rem) rotateY(8deg) rotateX(4deg); filter: hue-rotate(30deg); }
.lab-section.section-shell {
  padding-block: clamp(4.5rem, 7vw, 7rem);
  border-color: var(--edge);
  background: radial-gradient(ellipse at 88% 5%, #1c304e, transparent 58%), #101925;
}
.demo-shell { border-color: #475b76; box-shadow: 0 1.5rem 4rem rgb(1 6 14 / 30%); }
.demo-tab { font-size: .9rem; }
.section-kicker, .small-label { color: #a5c6fb; }
.process-section.section-shell { border-color: var(--edge); background: linear-gradient(125deg, #18273a, #0e1928 70%); }
.site-footer { background: #080d14; }
.contact-section .brief-card { border-color: #405675; }

@keyframes section-arrival {
  from { opacity: .64; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .section-arrived { animation: section-arrival .55s cubic-bezier(.2,.72,.26,1) both; }
}
.motion-paused .opening-primary, .motion-paused .google-visual .local-map, .motion-paused .service-index a::after { transition: none; }

@media (max-width: 950px) {
  .header-inner { height: 4.25rem; }
  .main-nav { top: 4.25rem; }
  .opening { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); column-gap: .8rem; }
  .opening h1 { font-size: clamp(2.55rem, 5.4vw, 3.35rem); }
  .service-index a + a { padding-left: .72rem; }
  .service-index a { gap: .5rem; }
  .service-index .icon { width: 1.15rem; }
  .web-section .web-showcase { grid-template-columns: 1fr; }
  .case-overview { margin-top: 1rem; }
}
@media (max-width: 700px) {
  .header-inner { height: 3.8rem; }
  .main-nav { top: 3.8rem; }
  .opening { grid-template-columns: 1fr; padding-top: 2rem; }
  .opening h1 { max-width: 12em; font-size: clamp(2.55rem, 9.5vw, 3.65rem); line-height: 1.05; letter-spacing: -.055em; }
  .opening-subject { margin-bottom: .9rem; font-size: .875rem; letter-spacing: .02em; }
  .opening-description { margin-top: .95rem; max-width: 36rem; line-height: 1.55; }
  .opening-actions { margin-top: 1rem; gap: .35rem 1rem; }
  .opening-primary { padding-inline: 1rem; }
  .opening-primary, .opening-secondary { font-size: .875rem; }
  .brand-scene { margin: .65rem auto 0; width: min(100%, 24rem); }
  .model-frame { width: min(89%, 18rem); }
  .stage-rings { bottom: 17%; }
  .turn-model { margin-top: -.4rem; }
  .service-index { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
  .service-index a, .service-index a + a { padding: .95rem .5rem .95rem 0; gap: .55rem; }
  .service-index a:nth-child(even) { padding-left: .75rem; }
  .service-index a:nth-child(odd)::before { content: none; }
  .service-index a:nth-child(n+3) { border-top: 1px solid var(--edge); }
  .service-index small { font-size: .78rem; }
  .service-index strong { font-size: .94rem; }
  .web-section .section-intro h2 br { display: none; }
  .web-section .web-showcase { gap: 1.5rem; }
  .case-overview { margin: 1rem 0 .25rem; }
}
@media (max-width: 370px) {
  .service-index .icon { display: none; }
  .opening-actions { gap: .2rem .75rem; }
  .opening-primary, .opening-secondary { font-size: .86rem; }
}
