:root {
  --paper: #f7f7f4;
  --paper-deep: #ececea;
  --white: #ffffff;
  --ink: #101113;
  --muted: #6f7378;
  --soft: #aeb2b7;
  --silver: #d8dadd;
  --silver-strong: #b8bdc2;
  --line: rgba(16, 17, 19, 0.12);
  --line-strong: rgba(16, 17, 19, 0.2);
  --blue: #4d91ff;
  --shadow: 0 28px 90px rgba(70, 74, 80, 0.18);
  --soft-shadow: 0 18px 50px rgba(70, 74, 80, 0.12);
  --radius: 8px;
  --max: 1180px;
  --font-body: "B612", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --font-accent: "Rakkas", "Frank Ruhl Libre", Georgia, serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d0f12;
  --paper-deep: #15181d;
  --white: #181b20;
  --ink: #f4f5f7;
  --muted: #aeb5bf;
  --soft: #7d8590;
  --silver: #2d323a;
  --silver-strong: #454c56;
  --line: rgba(244, 245, 247, 0.13);
  --line-strong: rgba(244, 245, 247, 0.24);
  --blue: #73a8ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  --soft-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(241, 242, 240, 0.9)),
    var(--paper);
  font-family: var(--font-body);
  letter-spacing: 0;
  transition: color 220ms ease, background 220ms ease;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(115deg, rgba(18, 21, 25, 0.96), rgba(8, 10, 13, 0.94)),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(16, 17, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 17, 19, 0.032) 1px, transparent 1px);
  background-size: 92px 92px;
}

:root[data-theme="dark"] body::before {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(244, 245, 247, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 245, 247, 0.04) 1px, transparent 1px);
}

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

::selection {
  color: #ffffff;
  background: rgba(77, 145, 255, 0.72);
}

:root[data-theme="dark"] ::selection {
  color: #0d0f12;
  background: rgba(244, 245, 247, 0.82);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 2px;
  background: rgba(16, 17, 19, 0.06);
}

:root[data-theme="dark"] .scroll-progress {
  background: rgba(244, 245, 247, 0.08);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--ink), var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 0;
  background: rgba(247, 247, 244, 0.78);
  border-bottom: 1px solid rgba(16, 17, 19, 0.08);
  backdrop-filter: blur(22px);
}

:root[data-theme="dark"] .site-header {
  background: rgba(13, 15, 18, 0.82);
  border-bottom-color: rgba(244, 245, 247, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid rgba(16, 17, 19, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(16, 17, 19, 0.08);
}

:root[data-theme="dark"] .brand img {
  border-color: rgba(244, 245, 247, 0.12);
  filter: brightness(0.9) contrast(1.06);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.brand strong,
.footer-brand {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 640;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav a,
.text-link {
  min-height: 38px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav a:hover,
.nav a.active,
.text-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(16, 17, 19, 0.08);
}

:root[data-theme="dark"] .nav a:hover,
:root[data-theme="dark"] .nav a.active,
:root[data-theme="dark"] .text-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 245, 247, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 242, 240, 0.62));
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 12px 26px rgba(16, 17, 19, 0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 145, 255, 0.38);
}

.theme-toggle:focus-visible {
  border-color: rgba(77, 145, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(77, 145, 255, 0.14);
  outline: none;
}

.theme-toggle span {
  position: relative;
  width: 26px;
  height: 16px;
  border-radius: 999px;
  background: rgba(16, 17, 19, 0.12);
  box-shadow: inset 0 0 0 1px rgba(16, 17, 19, 0.08);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.theme-toggle span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 32%, rgba(255, 255, 255, 0.95) 0 3px, transparent 3.5px),
    var(--ink);
  box-shadow: 0 2px 7px rgba(16, 17, 19, 0.26);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.theme-toggle[aria-pressed="true"] span {
  background: rgba(115, 168, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(115, 168, 255, 0.24);
}

.theme-toggle[aria-pressed="true"] span::after {
  transform: translateX(10px);
  background:
    radial-gradient(circle at 50% 50%, #f4f5f7 0 3px, transparent 3.5px),
    conic-gradient(from 0deg, transparent 0 12%, rgba(244, 245, 247, 0.95) 12% 18%, transparent 18% 32%, rgba(244, 245, 247, 0.95) 32% 38%, transparent 38% 52%, rgba(244, 245, 247, 0.95) 52% 58%, transparent 58% 72%, rgba(244, 245, 247, 0.95) 72% 78%, transparent 78% 100%);
  box-shadow: 0 0 14px rgba(115, 168, 255, 0.34);
}

:root[data-theme="dark"] .theme-toggle {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  border-color: rgba(244, 245, 247, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(115, 168, 255, 0.46);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 560;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  color: var(--white);
  background: linear-gradient(180deg, #1a1b1d, #090a0b);
  box-shadow: 0 16px 34px rgba(16, 17, 19, 0.18);
}

.button-light {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--soft-shadow);
}

.section-pad {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0;
}

.kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  align-items: center;
  gap: 26px;
  min-height: 820px;
  padding-top: 78px;
  overflow: hidden;
}

.motion-field {
  position: absolute;
  inset: 120px 0 auto 0;
  height: 520px;
  pointer-events: none;
}

.motion-field span {
  position: absolute;
  display: block;
  border: 1px solid rgba(16, 17, 19, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(207, 210, 214, 0.5));
  box-shadow: var(--soft-shadow);
  animation: drift 8s ease-in-out infinite alternate;
}

.motion-field span:nth-child(1) {
  right: 42%;
  top: 26px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
}

.motion-field span:nth-child(2) {
  right: 9%;
  top: 80px;
  width: 130px;
  height: 44px;
  border-radius: 999px;
  animation-delay: -2s;
}

.motion-field span:nth-child(3) {
  left: 34%;
  bottom: 74px;
  width: 68px;
  height: 130px;
  border-radius: 999px;
  animation-delay: -4s;
}

.motion-field span:nth-child(4) {
  right: 31%;
  bottom: 14px;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 145, 255, 0.65), transparent);
  animation-delay: -1s;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  max-width: 620px;
  margin-bottom: 28px;
  font-family: var(--font-accent);
  font-size: 82px;
  letter-spacing: 0;
}

.hero-copy p:not(.kicker) {
  max-width: 480px;
  margin-bottom: 34px;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-logo-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 620px;
  transition: transform 120ms linear;
  will-change: transform;
}

.hero-command-stage.interactive-surface {
  overflow: visible;
}

.hero-command-stage {
  isolation: isolate;
}

.hero-command-stage::before {
  content: "";
  position: absolute;
  inset: 46px 28px;
  z-index: -2;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96), rgba(224, 226, 228, 0.5) 48%, transparent 70%),
    conic-gradient(from 110deg, transparent, rgba(77, 145, 255, 0.2), transparent 38%, rgba(16, 17, 19, 0.08), transparent 72%);
  filter: blur(2px);
}

.hero-command-stage.interactive-surface::after {
  content: "";
  position: absolute;
  inset: 72px 58px;
  z-index: -1;
  border: 1px solid rgba(16, 17, 19, 0.08);
  border-radius: 50%;
  background:
    linear-gradient(rgba(16, 17, 19, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 17, 19, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.58;
  animation: orbit 18s linear infinite;
}

.hero-orbit {
  position: absolute;
  inset: 84px;
  border: 1px solid rgba(16, 17, 19, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--soft-shadow);
}

.hero-orbit::before {
  top: 10%;
  right: 7%;
  width: 108px;
  height: 34px;
}

.hero-orbit::after {
  left: 13%;
  bottom: 8%;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(16, 17, 19, 0.08);
}

.story-image img,
.wide-gallery img,
.page-hero-image,
.service-detail-image,
.wide-visual-only img,
.contact-copy img {
  width: 100%;
  border: 1px solid rgba(16, 17, 19, 0.07);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-brand-mark {
  width: min(570px, 94%);
  max-height: 650px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.08) saturate(0.9);
  -webkit-mask-image: radial-gradient(ellipse at 50% 48%, #000 48%, rgba(0, 0, 0, 0.82) 62%, transparent 82%);
  mask-image: radial-gradient(ellipse at 50% 48%, #000 48%, rgba(0, 0, 0, 0.82) 62%, transparent 82%);
}

.hero-brand-mark-dark {
  display: none;
}

.hero-signal,
.hero-live-panel {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(16, 17, 19, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.hero-signal {
  display: grid;
  gap: 2px;
  min-width: 104px;
  padding: 14px 16px;
  animation: drift 6s ease-in-out infinite alternate;
}

.hero-signal span,
.hero-live-panel span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.hero-signal strong,
.hero-live-panel b {
  color: var(--ink);
  font-size: 17px;
}

.hero-signal-one {
  top: 156px;
  left: 44px;
}

.hero-signal-two {
  right: 52px;
  bottom: 188px;
  animation-delay: -2.5s;
}

.hero-live-panel {
  left: 50%;
  bottom: 92px;
  display: grid;
  gap: 7px;
  min-width: 240px;
  padding: 16px 18px;
  transform: translateX(-50%);
}

.hero-scan {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 145, 255, 0.66), transparent);
  opacity: 0.75;
  animation: scan 3.8s ease-in-out infinite;
}

.logo-shadow {
  position: absolute;
  bottom: 92px;
  width: 54%;
  height: 34px;
  border-radius: 50%;
  background: rgba(16, 17, 19, 0.18);
  filter: blur(28px);
  transform: scaleX(1.2);
  opacity: 0.32;
}

.hero-note {
  position: absolute;
  left: 0;
  bottom: 80px;
  display: grid;
  grid-template-columns: auto minmax(0, 260px);
  gap: 16px;
  align-items: start;
}

.hero-note span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.hero-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.marquee-section {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 60px;
  padding: 34px 0;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  color: rgba(16, 17, 19, 0.18);
  font-size: 70px;
  font-weight: 520;
  line-height: 1;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.45fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 58px;
}

.section-intro p:not(.kicker) {
  max-width: 430px;
  margin-bottom: 0;
}

.section-intro h2,
.story-copy h2,
.pin-copy h2,
.showcase-copy h2,
.contact-strip h2,
.page-hero h1,
.service-detail-copy h2,
.contact-copy h1 {
  margin-bottom: 0;
  font-size: 58px;
}

.service-stage {
  padding-bottom: 150px;
}

.service-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-panel,
.atelier-item,
.case-tile,
.case-scene,
.process-scene,
.lead-form,
.mini-lead-form,
.editorial-card,
.calculator-panel {
  border: 1px solid rgba(16, 17, 19, 0.09);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(232, 233, 231, 0.72));
  box-shadow: var(--soft-shadow);
}

.service-panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 26px;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-panel:hover,
.case-tile:hover,
.case-scene:hover,
.process-scene:hover,
.atelier-item:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 145, 255, 0.38);
  box-shadow: 0 32px 90px rgba(70, 74, 80, 0.2);
}

.service-panel span,
.case-tile span,
.case-scene span,
.process-scene span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.service-panel h3 {
  margin: 64px 0 14px;
  font-size: 44px;
}

.service-panel p {
  max-width: 310px;
}

.panel-visual {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  height: 210px;
  border: 1px solid rgba(16, 17, 19, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.image-plate {
  overflow: hidden;
}

.image-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
  transform: scale(1.04);
  transition: transform 500ms ease, filter 500ms ease;
}

.service-panel:hover .image-plate img {
  filter: saturate(1) contrast(1.08);
  transform: scale(1.1) translateY(-4px);
}

.browser-mini i,
.chat-mini i,
.flow-mini i {
  position: absolute;
  display: block;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, #cdd0d4);
  box-shadow: 0 18px 38px rgba(70, 74, 80, 0.16);
}

.browser-mini i:nth-child(1) {
  inset: 30px 24px 92px;
}

.browser-mini i:nth-child(2) {
  left: 24px;
  right: 42%;
  bottom: 32px;
  height: 42px;
}

.browser-mini i:nth-child(3) {
  right: 24px;
  bottom: 32px;
  width: 34%;
  height: 42px;
}

.chat-mini i:nth-child(1) {
  left: 24px;
  top: 34px;
  width: 58%;
  height: 42px;
}

.chat-mini i:nth-child(2) {
  right: 24px;
  top: 92px;
  width: 48%;
  height: 42px;
}

.chat-mini i:nth-child(3) {
  left: 54px;
  bottom: 26px;
  width: 52%;
  height: 38px;
}

.flow-mini i:nth-child(1),
.flow-mini i:nth-child(2),
.flow-mini i:nth-child(3) {
  top: 58px;
  width: 74px;
  height: 74px;
}

.flow-mini i:nth-child(1) {
  left: 32px;
}

.flow-mini i:nth-child(2) {
  left: calc(50% - 37px);
}

.flow-mini i:nth-child(3) {
  right: 32px;
}

.flow-mini::before,
.flow-mini::after {
  content: "";
  position: absolute;
  top: 95px;
  width: 25%;
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 145, 255, 0), rgba(77, 145, 255, 0.7), rgba(77, 145, 255, 0));
}

.flow-mini::before {
  left: 26%;
}

.flow-mini::after {
  right: 26%;
}

.image-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 70px;
  min-height: 760px;
}

.image-story-reverse {
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.42fr);
}

.story-copy p:not(.kicker),
.page-hero-copy p,
.service-detail-copy p,
.contact-strip p,
.showcase-copy p,
.contact-copy p {
  max-width: 420px;
  font-size: 18px;
}

.story-image {
  margin: 0;
}

.story-image img {
  aspect-ratio: 16 / 10;
}

.text-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--ink);
  font-weight: 620;
}

.text-cta::after {
  content: "";
  width: 42px;
  height: 1px;
  margin-left: 14px;
  background: var(--ink);
  transition: width 180ms ease;
}

.text-cta:hover::after {
  width: 70px;
}

.immersive-section {
  width: min(1360px, calc(100% - 40px));
  min-height: 760px;
  margin: 0 auto;
  padding: 86px;
  border: 1px solid rgba(16, 17, 19, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(226, 227, 225, 0.68)),
    linear-gradient(90deg, rgba(16, 17, 19, 0.04) 1px, transparent 1px);
  background-size: auto, 70px 70px;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 42px 100%, 0 calc(100% - 42px));
}

.pin-copy {
  max-width: 620px;
}

.process-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 150px;
}

.process-strip::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 145, 255, 0.76), transparent);
}

.process-strip article {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(16, 17, 19, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.editorial-section {
  padding-top: 40px;
}

.editorial-title {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 0.4fr);
  gap: 50px;
  margin-bottom: 28px;
}

.editorial-title h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 64px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.editorial-card {
  min-height: 360px;
  padding: 28px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.editorial-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.editorial-card h3 {
  margin: 82px 0 18px;
  font-size: 34px;
}

.editorial-card p {
  max-width: 360px;
}

.process-strip span {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.process-strip strong {
  font-size: 28px;
  font-weight: 520;
}

.gallery-stage {
  padding-top: 150px;
}

.wide-gallery img,
.wide-visual-only img {
  aspect-ratio: 16 / 10;
}

.case-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.case-tile {
  min-height: 180px;
  padding: 24px;
}

.case-tile strong {
  display: block;
  max-width: 220px;
  margin-top: 72px;
  font-size: 28px;
  font-weight: 520;
  line-height: 1.06;
}

.atelier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.atelier-item {
  min-height: 430px;
  padding: 26px;
}

.atelier-item:nth-child(1) {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 90% 100%, 0 100%);
}

.atelier-item:nth-child(2) {
  border-radius: 34px 8px 34px 8px;
}

.atelier-item:nth-child(3) {
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%, 0 8%);
}

.atelier-item h3 {
  margin: 52px 0 12px;
  font-size: 34px;
}

.orbital-ui,
.stack-ui,
.signal-ui {
  position: relative;
  height: 184px;
  border: 1px solid rgba(16, 17, 19, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
}

.orbital-ui i,
.stack-ui i,
.signal-ui i {
  position: absolute;
  display: block;
  background: linear-gradient(145deg, #ffffff, #c9ccd0);
  box-shadow: 0 18px 32px rgba(70, 74, 80, 0.16);
}

.orbital-ui i {
  border-radius: 50%;
}

.orbital-ui i:nth-child(1) {
  width: 90px;
  height: 90px;
  left: calc(50% - 45px);
  top: 46px;
}

.orbital-ui i:nth-child(2) {
  width: 28px;
  height: 28px;
  left: 32px;
  top: 72px;
  animation: pulse 2.6s ease-in-out infinite;
}

.orbital-ui i:nth-child(3) {
  width: 36px;
  height: 36px;
  right: 42px;
  bottom: 38px;
  animation: pulse 3s ease-in-out infinite;
}

.stack-ui i {
  left: 30px;
  right: 30px;
  height: 42px;
  border-radius: var(--radius);
}

.stack-ui i:nth-child(1) {
  top: 38px;
}

.stack-ui i:nth-child(2) {
  top: 72px;
  left: 54px;
}

.stack-ui i:nth-child(3) {
  top: 106px;
  left: 78px;
}

.signal-ui i {
  bottom: 42px;
  width: 44px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.signal-ui i:nth-child(1) {
  left: 44px;
  height: 54px;
}

.signal-ui i:nth-child(2) {
  left: calc(50% - 22px);
  height: 92px;
}

.signal-ui i:nth-child(3) {
  right: 44px;
  height: 124px;
}

.split-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.55fr);
  align-items: center;
  gap: 50px;
  min-height: 720px;
}

.flow-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  min-height: 520px;
  padding: 22px;
  border: 1px solid rgba(16, 17, 19, 0.09);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(226, 228, 226, 0.7)),
    linear-gradient(90deg, rgba(16, 17, 19, 0.04) 1px, transparent 1px);
  background-size: auto, 76px 76px;
  box-shadow: var(--shadow);
}

.flow-lab-visual {
  position: relative;
  min-height: 476px;
  overflow: hidden;
  border: 1px solid rgba(16, 17, 19, 0.07);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.flow-lab-visual img {
  width: 100%;
  height: 100%;
  min-height: 476px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.04);
}

.flow-lab-visual::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 51%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 145, 255, 0.72), transparent);
  animation: scan 3.2s ease-in-out infinite;
}

.flow-pulse {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(77, 145, 255, 0.56);
  box-shadow: 0 0 0 14px rgba(77, 145, 255, 0.1);
  animation: flowPulse 2.6s ease-in-out infinite;
}

.flow-pulse-one {
  left: 21%;
  top: 51%;
}

.flow-pulse-two {
  right: 22%;
  top: 51%;
  animation-delay: -1.2s;
}

.flow-lab-controls {
  display: grid;
  align-content: start;
  gap: 8px;
}

.flow-lab-controls button {
  min-height: 54px;
  border: 1px solid rgba(16, 17, 19, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.flow-lab-controls button:hover {
  transform: translateX(4px);
  color: var(--ink);
  border-color: rgba(77, 145, 255, 0.36);
}

.flow-lab-controls button.is-active {
  color: var(--white);
  background: linear-gradient(180deg, #202124, #090a0b);
  border-color: rgba(16, 17, 19, 0.78);
}

.flow-lab-note {
  grid-column: 2;
  align-self: end;
  min-height: 156px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(16, 17, 19, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 15px;
}

.flow-lab-note.is-updated {
  animation: noteUpdate 360ms ease;
}

.large-letter {
  display: grid;
  place-items: center;
  min-height: 480px;
  border: 1px solid rgba(16, 17, 19, 0.08);
  border-radius: var(--radius);
  color: rgba(16, 17, 19, 0.11);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(221, 223, 221, 0.72));
  box-shadow: var(--shadow);
  font-size: 300px;
  font-weight: 520;
  line-height: 1;
}

.calculator-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(0, 0.76fr);
  align-items: start;
  gap: 58px;
}

.calculator-copy h2 {
  margin-bottom: 24px;
  font-size: 58px;
}

.calculator-copy p:not(.kicker) {
  max-width: 420px;
  font-size: 18px;
}

.calculator-panel {
  display: grid;
  gap: 22px;
  padding: 26px;
  clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 0 100%);
}

.calc-group {
  display: grid;
  gap: 12px;
}

.calc-group > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.calc-buttons-wrap {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.calc-buttons button {
  min-height: 48px;
  border: 1px solid rgba(16, 17, 19, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.calc-buttons button:hover {
  transform: translateY(-2px);
  color: var(--ink);
  border-color: rgba(77, 145, 255, 0.36);
}

.calc-buttons button.is-active {
  color: var(--white);
  background: linear-gradient(180deg, #222326, #090a0b);
  border-color: rgba(16, 17, 19, 0.82);
}

.calc-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.calc-result small {
  color: var(--muted);
}

.calc-result strong {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
}

.calc-result .button {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.66fr) minmax(320px, 0.7fr);
  align-items: start;
  gap: 44px;
  margin-bottom: 70px;
}

.mini-lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.mini-lead-form textarea,
.mini-lead-form button,
.mini-lead-form .button-light {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 17, 19, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  min-height: 112px;
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(77, 145, 255, 0.72);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(77, 145, 255, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.76;
}

select option {
  color: var(--ink);
  background: var(--paper);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.5fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 58px;
  min-height: 670px;
}

.page-hero-image {
  aspect-ratio: 16 / 10;
}

.service-detail-section {
  display: grid;
  grid-template-columns: 86px minmax(0, 0.52fr) minmax(0, 0.72fr);
  align-items: center;
  gap: 42px;
  min-height: 640px;
  overflow: hidden;
}

.service-number {
  color: rgba(16, 17, 19, 0.16);
  font-size: 86px;
  line-height: 1;
}

.service-detail-copy {
  min-width: 0;
}

.service-detail-copy h2 {
  overflow-wrap: anywhere;
}

.service-detail-image {
  aspect-ratio: 16 / 10;
}

.large-device,
.code-surface {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(16, 17, 19, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(219, 221, 219, 0.72));
  box-shadow: var(--shadow);
}

.large-device i,
.visual-device div {
  position: absolute;
  display: block;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, #cbd0d4);
  box-shadow: var(--soft-shadow);
}

.large-device i:nth-child(1),
.device-top {
  left: 44px;
  right: 44px;
  top: 46px;
  height: 74px;
}

.large-device i:nth-child(2),
.device-main {
  left: 44px;
  top: 154px;
  width: 38%;
  height: 190px;
}

.large-device i:nth-child(3),
.device-side {
  right: 44px;
  top: 154px;
  width: 42%;
  height: 78px;
}

.large-device i:nth-child(4),
.device-form {
  right: 44px;
  bottom: 72px;
  width: 42%;
  height: 78px;
}

.code-surface {
  padding: 42px;
}

.code-window {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  min-height: 336px;
  padding: 24px;
  border: 1px solid rgba(16, 17, 19, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(232, 234, 236, 0.72)),
    linear-gradient(90deg, rgba(77, 145, 255, 0.08), transparent);
  box-shadow: var(--soft-shadow);
}

.code-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.code-toolbar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(16, 17, 19, 0.16);
}

.code-toolbar span {
  margin-left: 8px;
}

.code-window pre {
  margin: 0;
  padding: 26px;
  overflow: auto;
  border: 1px solid rgba(16, 17, 19, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: #17191c;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.code-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-chips b {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(16, 17, 19, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 13px;
}

.code-orbit {
  position: absolute;
  right: 36px;
  bottom: 30px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(77, 145, 255, 0.34);
  border-radius: 50%;
  animation: drift 5s ease-in-out infinite alternate;
}

.code-surface strong,
.code-surface em {
  display: block;
  color: rgba(16, 17, 19, 0.16);
  font-family: var(--font-accent);
  font-size: 88px;
  font-style: normal;
  line-height: 0.9;
}

.code-surface em {
  margin-top: 38px;
  text-align: right;
  font-size: 56px;
}

.code-surface > span {
  display: block;
  height: 18px;
  margin: 26px 0;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(16, 17, 19, 0.14), rgba(77, 145, 255, 0.32), rgba(16, 17, 19, 0.06));
}

.code-surface > span:nth-child(2) {
  width: 74%;
}

.code-surface > span:nth-child(3) {
  width: 58%;
}

.code-surface > span:nth-child(4) {
  width: 86%;
}

.code-surface > span:nth-child(5) {
  width: 44%;
}

.case-showcase,
.process-scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.case-scene,
.process-scene {
  min-height: 330px;
  padding: 28px;
}

.case-scene h2,
.process-scene h2 {
  margin: 106px 0 14px;
  font-size: 42px;
}

.wide-visual-only {
  padding-top: 40px;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(280px, 0.52fr) minmax(320px, 0.48fr);
  gap: 60px;
  align-items: start;
  min-height: 760px;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin: 32px 0;
}

.contact-links a {
  color: var(--ink);
  font-weight: 560;
}

.contact-copy img {
  aspect-ratio: 16 / 10;
}

.lead-form {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.lead-form small {
  color: #b33636;
}

.form-button {
  width: 100%;
}

.form-success {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(77, 145, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(77, 145, 255, 0.08);
}

.form-error {
  border-color: rgba(179, 54, 54, 0.28);
  background: rgba(179, 54, 54, 0.08);
}

.form-success h2 {
  margin: 0;
  font-size: 28px;
}

.form-success p {
  margin: 0;
}

.form-note {
  color: #8a5c2e;
  font-size: 13px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) 1fr;
  gap: 30px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 52px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 8px 0 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--ink);
}

.interactive-surface {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  position: relative;
  overflow: hidden;
  transform: perspective(1000px) translateY(var(--lift)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.interactive-surface:hover {
  --lift: -6px;
}

.interactive-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(77, 145, 255, 0.18), transparent 32%);
  transition: opacity 180ms ease;
}

.interactive-surface:hover::after {
  opacity: 1;
}

.ripple {
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(77, 145, 255, 0.28);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 620ms ease-out forwards;
}

.reveal {
  opacity: 1;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.interactive-surface {
  transform: perspective(1000px) translateY(calc(34px + var(--lift))) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.reveal.interactive-surface.is-visible {
  transform: perspective(1000px) translateY(var(--lift)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

:root[data-theme="dark"] .button-dark,
:root[data-theme="dark"] .flow-lab-controls button.is-active,
:root[data-theme="dark"] .calc-buttons button.is-active {
  color: #0d0f12;
  background: linear-gradient(180deg, #f4f5f7, #cfd5dd);
  border-color: rgba(244, 245, 247, 0.44);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .button-light,
:root[data-theme="dark"] .service-panel,
:root[data-theme="dark"] .atelier-item,
:root[data-theme="dark"] .case-tile,
:root[data-theme="dark"] .case-scene,
:root[data-theme="dark"] .process-scene,
:root[data-theme="dark"] .lead-form,
:root[data-theme="dark"] .mini-lead-form,
:root[data-theme="dark"] .editorial-card,
:root[data-theme="dark"] .calculator-panel,
:root[data-theme="dark"] .immersive-section,
:root[data-theme="dark"] .flow-lab,
:root[data-theme="dark"] .large-letter,
:root[data-theme="dark"] .large-device,
:root[data-theme="dark"] .code-surface,
:root[data-theme="dark"] .code-window {
  border-color: rgba(244, 245, 247, 0.11);
  background:
    linear-gradient(145deg, rgba(31, 35, 41, 0.92), rgba(17, 20, 25, 0.78));
}

:root[data-theme="dark"] .motion-field span,
:root[data-theme="dark"] .panel-visual,
:root[data-theme="dark"] .process-strip article,
:root[data-theme="dark"] .orbital-ui,
:root[data-theme="dark"] .stack-ui,
:root[data-theme="dark"] .signal-ui,
:root[data-theme="dark"] .flow-lab-visual,
:root[data-theme="dark"] .flow-lab-note,
:root[data-theme="dark"] .calc-buttons button,
:root[data-theme="dark"] .flow-lab-controls button,
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .code-window pre,
:root[data-theme="dark"] .code-chips b {
  border-color: rgba(244, 245, 247, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] select:focus,
:root[data-theme="dark"] textarea:focus {
  background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .hero-command-stage::before {
  inset: 72px 44px;
  border-radius: 44% 56% 52% 48%;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(244, 245, 247, 0.22), rgba(87, 94, 104, 0.12) 36%, transparent 70%),
    conic-gradient(from 116deg, transparent, rgba(115, 168, 255, 0.18), transparent 34%, rgba(244, 245, 247, 0.07), transparent 72%);
  filter: blur(8px);
  opacity: 0.9;
}

:root[data-theme="dark"] .hero-command-stage.interactive-surface::after {
  inset: 86px 70px;
  border-color: rgba(244, 245, 247, 0.08);
  background:
    radial-gradient(circle at 50% 48%, rgba(244, 245, 247, 0.08), transparent 54%),
    linear-gradient(rgba(244, 245, 247, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 245, 247, 0.03) 1px, transparent 1px);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.18);
  opacity: 0.82;
}

:root[data-theme="dark"] .hero-orbit,
:root[data-theme="dark"] .story-image img,
:root[data-theme="dark"] .wide-gallery img,
:root[data-theme="dark"] .page-hero-image,
:root[data-theme="dark"] .service-detail-image,
:root[data-theme="dark"] .wide-visual-only img,
:root[data-theme="dark"] .contact-copy img {
  border-color: rgba(244, 245, 247, 0.12);
}

:root[data-theme="dark"] .hero-signal,
:root[data-theme="dark"] .hero-live-panel {
  border-color: rgba(244, 245, 247, 0.16);
  background:
    linear-gradient(145deg, rgba(244, 245, 247, 0.13), rgba(18, 21, 26, 0.76));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .form-success,
:root[data-theme="dark"] .footer {
  border-color: rgba(244, 245, 247, 0.12);
}

:root[data-theme="dark"] .form-success {
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .hero-orbit::before,
:root[data-theme="dark"] .hero-orbit::after,
:root[data-theme="dark"] .browser-mini i,
:root[data-theme="dark"] .chat-mini i,
:root[data-theme="dark"] .flow-mini i,
:root[data-theme="dark"] .orbital-ui i,
:root[data-theme="dark"] .stack-ui i,
:root[data-theme="dark"] .signal-ui i,
:root[data-theme="dark"] .large-device i,
:root[data-theme="dark"] .visual-device div {
  background: linear-gradient(145deg, #3a414c, #15191f);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .hero-orbit::before,
:root[data-theme="dark"] .hero-orbit::after {
  background: rgba(244, 245, 247, 0.07);
  border-color: rgba(244, 245, 247, 0.08);
}

:root[data-theme="dark"] .hero-brand-mark {
  width: min(470px, 82%);
  max-height: 580px;
  mix-blend-mode: normal;
  opacity: 0.92;
  filter: grayscale(0.15) contrast(1.08) saturate(0.88) brightness(0.82) drop-shadow(0 34px 56px rgba(0, 0, 0, 0.34));
  -webkit-mask-image: radial-gradient(ellipse at 50% 47%, #000 56%, rgba(0, 0, 0, 0.78) 72%, transparent 90%);
  mask-image: radial-gradient(ellipse at 50% 47%, #000 56%, rgba(0, 0, 0, 0.78) 72%, transparent 90%);
}

:root[data-theme="dark"] .hero-brand-mark-light {
  display: none;
}

:root[data-theme="dark"] .hero-brand-mark-dark {
  display: block;
}

:root[data-theme="dark"] .marquee-section {
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .marquee-track span,
:root[data-theme="dark"] .large-letter,
:root[data-theme="dark"] .service-number,
:root[data-theme="dark"] .code-surface strong,
:root[data-theme="dark"] .code-surface em {
  color: rgba(244, 245, 247, 0.12);
}

:root[data-theme="dark"] .code-window pre {
  color: #eef2f7;
}

:root[data-theme="dark"] .form-note {
  color: #d9a15e;
}

:root[data-theme="dark"] .lead-form small {
  color: #ff8585;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes drift {
  from {
    transform: translate3d(-8px, 10px, 0) rotate(-4deg);
  }
  to {
    transform: translate3d(18px, -14px, 0) rotate(8deg);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes scan {
  0%,
  100% {
    opacity: 0.28;
    transform: translateY(-90px);
  }
  50% {
    opacity: 0.86;
    transform: translateY(90px);
  }
}

@keyframes flowPulse {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.24);
    opacity: 1;
  }
}

@keyframes noteUpdate {
  from {
    transform: translateY(6px);
    opacity: 0.55;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
    overflow: visible;
  }

  .nav a {
    text-align: center;
  }

  .hero-section,
  .image-story,
  .image-story-reverse,
  .page-hero,
  .contact-page,
  .contact-strip,
  .split-showcase,
  .editorial-title,
  .calculator-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-note {
    position: static;
    margin-top: 28px;
  }

  .service-panels,
  .atelier-grid,
  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .service-panel {
    min-height: 420px;
  }

  .process-strip,
  .case-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail-section {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .service-number {
    font-size: 58px;
  }

  .lead-form {
    position: static;
  }

  .hero-logo-stage {
    min-height: 460px;
  }

  .hero-signal-one {
    left: 26px;
    top: 102px;
  }

  .hero-signal-two {
    right: 28px;
    bottom: 138px;
  }

  .flow-lab {
    grid-template-columns: 1fr;
  }

  .flow-lab-note {
    grid-column: 1;
  }

  .calc-buttons,
  .calc-buttons-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 28px, var(--max));
    gap: 12px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .text-link {
    display: none;
  }

  .nav a {
    min-height: 34px;
    padding: 8px 4px;
    font-size: 12px;
  }

  .button {
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
  }

  .section-pad,
  .footer,
  .immersive-section {
    width: min(100% - 28px, var(--max));
  }

  .section-pad {
    padding: 76px 0;
  }

  .hero-copy h1 {
    font-size: 50px;
  }

  .section-intro h2,
  .editorial-title h2,
  .calculator-copy h2,
  .story-copy h2,
  .pin-copy h2,
  .showcase-copy h2,
  .contact-strip h2,
  .page-hero h1,
  .service-detail-copy h2,
  .contact-copy h1 {
    font-size: 38px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .marquee-track span {
    font-size: 42px;
  }

  .service-panel h3,
  .case-scene h2,
  .process-scene h2 {
    font-size: 34px;
  }

  .immersive-section {
    min-height: auto;
    padding: 54px 18px;
  }

  .process-strip,
  .case-tiles,
  .case-showcase,
  .process-scenes,
  .mini-lead-form,
  .calc-result {
    grid-template-columns: 1fr;
  }

  .hero-logo-stage {
    min-height: 340px;
  }

  .hero-brand-mark {
    width: min(390px, 94vw);
  }

  .hero-command-stage::before {
    inset: 28px 0;
  }

  .hero-command-stage.interactive-surface::after {
    inset: 46px 18px;
  }

  .hero-orbit {
    inset: 52px 24px;
  }

  .hero-signal {
    display: none;
  }

  .hero-live-panel {
    min-width: min(260px, 78vw);
    bottom: 20px;
  }

  .hero-scan {
    left: 10%;
    right: 10%;
  }

  .editorial-card {
    min-height: 320px;
  }

  .flow-lab {
    min-height: auto;
    padding: 14px;
  }

  .flow-lab-visual,
  .flow-lab-visual img {
    min-height: 280px;
  }

  .flow-lab-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-lab-controls button {
    min-height: 46px;
    font-size: 14px;
  }

  .calc-buttons,
  .calc-buttons-wrap {
    grid-template-columns: 1fr;
  }

  .calc-result .button {
    grid-row: auto;
    grid-column: 1;
  }

  .process-strip {
    margin-top: 62px;
  }

  .process-strip::before {
    display: none;
  }

  .large-letter {
    min-height: 300px;
    font-size: 190px;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
