:root {
  --bg: #050607;
  --bg-soft: #0d1117;
  --panel: #121821;
  --panel-strong: #18212d;
  --line: #253444;
  --line-soft: #d8e0e8;
  --text: #f6f8fb;
  --muted: #aab8c8;
  --ink: #121722;
  --ink-muted: #5b6876;
  --paper: #f6f8fb;
  --paper-soft: #ecf1f6;
  --accent: #8aa6c3;
  --accent-strong: #b9d4ef;
  --orange: #ff7a18;
  --orange-soft: #ffb26b;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 34px 90px rgba(0, 0, 0, 0.38);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background: rgba(255, 122, 24, 0.32);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

section[id] {
  scroll-margin-top: 110px;
}

img,
svg {
  display: block;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(5, 6, 7, 0.78);
  padding: 12px 14px 12px 18px;
  color: var(--text);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  transition: top 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.site-header.is-scrolled {
  top: 10px;
  border-color: rgba(185, 212, 239, 0.2);
  background: rgba(5, 6, 7, 0.92);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 900;
}

.brand-monogram {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(185, 212, 239, 0.34);
  border-radius: var(--radius);
  color: var(--accent-strong);
  font-size: 17px;
  line-height: 1;
  box-shadow: inset 0 0 22px rgba(185, 212, 239, 0.08);
  transition: border-color 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease);
}

.brand:hover .brand-monogram,
.brand:focus-visible .brand-monogram {
  border-color: rgba(255, 122, 24, 0.65);
  color: var(--text);
  transform: translateY(-1px);
}

.brand-name {
  font-size: 15px;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.18s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-strong), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-action {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.18s var(--ease), background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.header-action:hover,
.header-action:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: var(--bg);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  place-items: center;
  padding: 0;
}

.menu-button:focus,
.menu-button:focus-visible {
  outline: none;
}

.menu-button:focus-visible {
  border-color: rgba(185, 212, 239, 0.5);
  box-shadow: inset 0 0 18px rgba(185, 212, 239, 0.1);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.18s ease;
}

.menu-button span + span {
  margin-top: 5px;
}

.menu-open .menu-button span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-button span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 82px 16px auto;
  z-index: 9;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(8, 10, 13, 0.96);
  color: var(--text);
  padding: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

.mobile-nav a {
  display: block;
  border-radius: var(--radius);
  padding: 14px;
  color: var(--muted);
  font-weight: 800;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.menu-open .mobile-nav {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.section-dark {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at top right, rgba(138, 166, 195, 0.2), transparent 32rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  overflow: hidden;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 78%);
  opacity: 0.42;
  transform: translate3d(0, 0, 0);
  animation: gridDrift 22s linear infinite;
}

.section-dark > * {
  position: relative;
  z-index: 1;
}

.hero {
  --spotlight-x: 74%;
  --spotlight-y: 28%;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 94vh;
  padding: 124px max(24px, calc((100vw - var(--max)) / 2)) 72px;
  background:
    radial-gradient(circle at var(--spotlight-x) var(--spotlight-y), rgba(185, 212, 239, 0.28), transparent 26rem),
    linear-gradient(135deg, rgba(255, 122, 24, 0.12), transparent 24rem),
    linear-gradient(180deg, #030405 0%, #0d1117 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(118deg, transparent 0 34%, rgba(185, 212, 239, 0.08) 44%, transparent 54%),
    linear-gradient(180deg, transparent 0%, rgba(5, 6, 7, 0.72) 100%);
  opacity: 0.85;
  animation: heroBeam 8s var(--ease) infinite alternate;
  pointer-events: none;
}

.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-motion span {
  position: absolute;
  left: -14%;
  width: 128%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 212, 239, 0.32), rgba(255, 122, 24, 0.22), transparent);
  opacity: 0.46;
  transform: rotate(-10deg);
  animation: lineSweep 9s linear infinite;
}

.hero-motion span:nth-child(1) {
  top: 28%;
}

.hero-motion span:nth-child(2) {
  top: 52%;
  animation-delay: -3s;
}

.hero-motion span:nth-child(3) {
  top: 76%;
  animation-delay: -6s;
}

.hero-copy {
  max-width: 620px;
  animation: heroCopyIn 0.9s var(--ease) both;
}

.hero h1,
.section-heading h2,
.showcase h2,
.contact h2 {
  margin: 0;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  text-wrap: balance;
  text-shadow: 0 22px 70px rgba(185, 212, 239, 0.14);
}

.hero p,
.section-heading p,
.showcase-copy p,
.contact-copy p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  animation: heroActionsIn 0.9s var(--ease) 0.12s both;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -42% -28%;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.42), transparent 66%);
  transform: translateX(-130%) rotate(8deg);
  transition: transform 0.62s var(--ease);
  pointer-events: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(130%) rotate(8deg);
}

.button-primary {
  background: linear-gradient(135deg, var(--text), var(--accent-strong));
  color: var(--bg);
  box-shadow: 0 18px 34px rgba(185, 212, 239, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, var(--text), var(--orange-soft));
  box-shadow: 0 20px 42px rgba(255, 122, 24, 0.22);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent-strong);
}

.js .reveal {
  opacity: 0;
  translate: 0 34px;
  filter: blur(12px);
  transition:
    opacity 0.8s var(--ease),
    translate 0.8s var(--ease),
    filter 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
}

[data-tilt] {
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
  transform-style: preserve-3d;
}

.hero-visual {
  position: relative;
  min-height: min(54vw, 560px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow-strong), inset 0 0 0 1px rgba(185, 212, 239, 0.06);
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.45s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
  animation: heroVisualIn 1s var(--ease) 0.08s both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mix-blend-mode: screen;
  opacity: 0.32;
  pointer-events: none;
  animation: gridDrift 18s linear infinite reverse;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.hero-visual:hover,
.hero-visual:focus-within {
  --lift: -8px;
  border-color: rgba(185, 212, 239, 0.32);
  box-shadow: 0 36px 96px rgba(0, 0, 0, 0.46), 0 0 54px rgba(185, 212, 239, 0.12);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: min(54vw, 560px);
  object-fit: contain;
  transform: scale(1.01);
  animation: logoFloat 7s ease-in-out infinite;
}

.hero-visual-glint {
  position: absolute;
  inset: -20% auto -20% -34%;
  z-index: 2;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: rotate(14deg);
  mix-blend-mode: screen;
  animation: logoGlint 5.6s var(--ease) infinite;
  pointer-events: none;
}

.service-strip,
.systems,
.photo-story,
.showcase,
.social-section {
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 0.64fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2,
.showcase h2,
.contact h2 {
  font-size: clamp(34px, 4vw, 62px);
}

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

.service-card {
  position: relative;
  min-height: 330px;
  border: 1px solid rgba(216, 224, 232, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 241, 246, 0.82)),
    var(--paper);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 20px 58px rgba(18, 28, 40, 0.08);
  overflow: hidden;
  transition: transform 0.36s var(--ease), border-color 0.28s ease, box-shadow 0.28s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(185, 212, 239, 0.22) 48%, transparent 58%),
    linear-gradient(180deg, rgba(255, 122, 24, 0.08), transparent 42%);
  opacity: 0;
  transform: translateX(-18%);
  transition: opacity 0.36s ease, transform 0.5s var(--ease);
  pointer-events: none;
}

.service-card:hover,
.service-card:focus-within {
  --lift: -8px;
  border-color: rgba(138, 166, 195, 0.42);
  box-shadow: 0 30px 72px rgba(18, 28, 40, 0.14);
}

.service-card:hover::before,
.service-card:focus-within::before {
  opacity: 1;
  transform: translateX(0);
}

.service-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: #6f8daa;
  background: #fff;
  box-shadow: 0 16px 34px rgba(18, 28, 40, 0.08);
  transition: transform 0.36s var(--ease), color 0.28s ease, border-color 0.28s ease;
}

.service-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.36s var(--ease);
}

.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  border-color: rgba(255, 122, 24, 0.26);
  color: var(--orange);
  transform: translateY(-4px);
}

.service-card:hover .service-icon svg,
.service-card:focus-within .service-icon svg {
  transform: scale(1.08) rotate(-2deg);
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin: 42px 0 14px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.service-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-muted);
  font-size: 17px;
}

.systems .section-heading {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 36px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.system-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 650px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(18, 24, 33, 0.86), rgba(7, 9, 12, 0.96)),
    radial-gradient(circle at 88% 12%, rgba(138, 166, 195, 0.22), transparent 22rem);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  transition: transform 0.42s var(--ease), border-color 0.28s ease, box-shadow 0.28s ease;
}

.system-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.16;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.system-card:hover,
.system-card:focus-within {
  --lift: -10px;
  border-color: rgba(185, 212, 239, 0.32);
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.38), 0 0 60px rgba(185, 212, 239, 0.12);
}

.system-card:hover::before,
.system-card:focus-within::before {
  opacity: 0.28;
}

.system-card-accent {
  background:
    linear-gradient(145deg, rgba(18, 24, 33, 0.9), rgba(7, 9, 12, 0.96)),
    radial-gradient(circle at 86% 10%, rgba(255, 115, 25, 0.2), transparent 22rem);
}

.system-logo-panel {
  position: relative;
  display: grid;
  min-height: 270px;
  place-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
  padding: clamp(20px, 3vw, 36px);
  overflow: hidden;
}

.system-logo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(185, 212, 239, 0.18), transparent 46%),
    linear-gradient(315deg, rgba(255, 122, 24, 0.14), transparent 46%);
  opacity: 0.7;
}

.system-logo-panel::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -34%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: rotate(16deg);
  animation: logoPanelSweep 5.8s var(--ease) infinite;
}

.system-logo-panel img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(14, 22, 32, 0.12));
  transition: transform 0.48s var(--ease);
}

.system-card:hover .system-logo-panel img,
.system-card:focus-within .system-logo-panel img {
  transform: scale(1.035);
}

.system-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 3.2vw, 42px);
}

.system-kicker {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.system-content h3 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.system-content p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.system-content ul {
  display: grid;
  gap: 10px;
  margin: 2px 0 10px;
  padding: 0;
  list-style: none;
}

.system-content li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-weight: 750;
}

.system-content li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-strong);
}

.system-card-accent .system-content li::before {
  background: #ff7a18;
}

.system-content .button {
  width: max-content;
  min-width: 210px;
  margin-top: 8px;
}

.references,
.process,
.contact {
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
}

.references .section-heading,
.process .section-heading {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 36px;
}

.reference-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 28px;
}

.reference-feature {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(18, 24, 33, 0.8), rgba(9, 12, 16, 0.96)),
    radial-gradient(circle at 78% 16%, rgba(138, 166, 195, 0.38), transparent 24rem);
  padding: clamp(24px, 3vw, 42px);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.reference-feature:hover,
.reference-feature:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.reference-index,
.reference-row span {
  color: var(--accent);
  font-weight: 900;
}

.reference-feature h3 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
  letter-spacing: 0;
}

.reference-feature p {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.reference-link {
  color: var(--accent-strong);
  font-weight: 900;
}

.reference-list {
  display: grid;
  gap: 10px;
}

.reference-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 20px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.reference-row:hover,
.reference-row:focus-visible {
  border-color: rgba(185, 212, 239, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.reference-row strong {
  font-size: 18px;
}

.reference-row em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.photo-story {
  background:
    linear-gradient(180deg, var(--paper), #eef3f8 54%, var(--paper));
}

.photo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 16px;
}

.photo-card {
  position: relative;
  min-height: 300px;
  margin: 0;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 22px 60px rgba(14, 24, 36, 0.14);
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.42s var(--ease), box-shadow 0.3s ease;
}

.photo-card:hover,
.photo-card:focus-within {
  --lift: -8px;
  box-shadow: 0 34px 82px rgba(14, 24, 36, 0.2);
}

.photo-card-large {
  grid-row: span 2;
  min-height: 620px;
}

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.01);
  transition: transform 1s var(--ease), filter 0.4s ease;
}

.photo-card:hover img,
.photo-card:focus-within img {
  filter: saturate(1.06) contrast(1.08);
  transform: scale(1.08);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(2, 4, 7, 0.82));
  pointer-events: none;
}

.photo-card figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: clamp(20px, 3vw, 34px);
  color: var(--text);
}

.photo-card figcaption span {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.photo-card figcaption strong {
  max-width: 660px;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.05;
}

.references-compact {
  padding-top: 78px;
  padding-bottom: 78px;
}

.references-compact .section-heading {
  margin-bottom: 28px;
}

.reference-pills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.reference-pill {
  position: relative;
  display: grid;
  min-height: 150px;
  align-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 18px;
  overflow: hidden;
  transition: border-color 0.24s ease, background 0.24s ease, transform 0.24s var(--ease), box-shadow 0.24s ease;
}

.reference-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(185, 212, 239, 0.12), transparent 48%, rgba(255, 122, 24, 0.08));
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.reference-pill:hover,
.reference-pill:focus-visible {
  border-color: rgba(185, 212, 239, 0.46);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.22);
  transform: translateY(-5px);
}

.reference-pill:hover::before,
.reference-pill:focus-visible::before {
  opacity: 1;
}

.reference-pill span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.reference-pill strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.15;
}

.reference-pill em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.reference-pill > * {
  position: relative;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: clamp(36px, 6vw, 82px);
}

.showcase-copy p {
  color: var(--ink-muted);
}

.showcase-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(20, 30, 43, 0.12);
}

.board-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 6px 4px 16px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 800;
}

.board-preview {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 20px;
}

.board-preview-large {
  grid-row: span 2;
  min-height: 312px;
  background:
    linear-gradient(145deg, rgba(9, 13, 19, 0.95), rgba(30, 44, 60, 0.94)),
    #0d1117;
  color: var(--text);
}

.board-preview span {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 900;
}

.board-preview-large span {
  color: var(--accent-strong);
}

.board-preview strong {
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.05;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.process-steps article {
  position: relative;
  min-height: 280px;
  background: rgba(8, 11, 15, 0.74);
  padding: clamp(22px, 2.7vw, 34px);
  overflow: hidden;
  transition: background 0.28s ease, transform 0.28s var(--ease);
}

.process-steps article::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-strong), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.36s var(--ease);
}

.process-steps article:hover,
.process-steps article:focus-within {
  background: rgba(18, 24, 33, 0.88);
  transform: translateY(-4px);
}

.process-steps article:hover::after,
.process-steps article:focus-within::after {
  transform: scaleX(1);
}

.process-steps span {
  color: var(--accent);
  font-weight: 900;
}

.process-steps h3 {
  margin: 72px 0 14px;
  font-size: 28px;
  letter-spacing: 0;
}

.process-steps p {
  margin: 0;
  color: var(--muted);
}

.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.post-card {
  display: flex;
  min-width: 0;
  min-height: 420px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(17, 26, 38, 0.12);
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.42s var(--ease), box-shadow 0.3s ease;
}

.post-card:hover,
.post-card:focus-within {
  --lift: -8px;
  box-shadow: 0 34px 76px rgba(17, 26, 38, 0.18);
}

.post-card img {
  width: calc(100% + 56px);
  height: 220px;
  margin: -28px -28px 28px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.01);
  transition: transform 0.8s var(--ease), filter 0.3s ease;
}

.post-card:hover img,
.post-card:focus-within img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.08);
}

.post-card span {
  font-size: 15px;
  font-weight: 900;
}

.post-card h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.post-card-dark {
  background: var(--bg);
  color: var(--text);
}

.post-card-light {
  background: #fff;
  color: var(--ink);
}

.post-card-blue {
  background: #dce9f5;
  color: #102032;
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 120px;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.22);
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.contact-form:focus-within {
  border-color: rgba(185, 212, 239, 0.34);
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.3), 0 0 50px rgba(185, 212, 239, 0.08);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.contact-form select {
  color-scheme: dark;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(185, 212, 239, 0.14);
}

.contact-form .button {
  width: 100%;
  cursor: pointer;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(185, 212, 239, 0.34);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 900;
}

.mail-link[hidden] {
  display: none;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
  padding: 24px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 800;
}

.site-footer img {
  width: 150px;
  border-radius: var(--radius);
}

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

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 72px 72px, 72px 72px;
  }
}

@keyframes heroBeam {
  from {
    transform: translateX(-4%) skewX(-4deg);
  }
  to {
    transform: translateX(4%) skewX(-4deg);
  }
}

@keyframes lineSweep {
  from {
    transform: translateX(-16%) rotate(-10deg);
  }
  to {
    transform: translateX(16%) rotate(-10deg);
  }
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    translate: 0 26px;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
}

@keyframes heroActionsIn {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes heroVisualIn {
  from {
    opacity: 0;
    translate: 18px 26px;
    filter: blur(12px);
  }
  to {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: scale(1.01) translateY(0);
  }
  50% {
    transform: scale(1.025) translateY(-10px);
  }
}

@keyframes logoGlint {
  0%,
  42% {
    transform: translateX(0) rotate(14deg);
    opacity: 0;
  }
  56% {
    opacity: 1;
  }
  78%,
  100% {
    transform: translateX(620%) rotate(14deg);
    opacity: 0;
  }
}

@keyframes logoPanelSweep {
  0%,
  46% {
    transform: translateX(0) rotate(16deg);
    opacity: 0;
  }
  60% {
    opacity: 0.9;
  }
  84%,
  100% {
    transform: translateX(720%) rotate(16deg);
    opacity: 0;
  }
}

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

  .brand {
    gap: 8px;
  }

  .main-nav,
  .header-action {
    display: none;
  }

  .menu-button {
    display: grid;
    grid-column: 3;
  }

  .hero,
  .reference-layout,
  .photo-layout,
  .showcase,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 116px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 420px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-grid,
  .system-grid,
  .process-steps,
  .post-grid,
  .reference-pills {
    grid-template-columns: 1fr;
  }

  .service-card,
  .system-card,
  .process-steps article,
  .post-card {
    min-height: auto;
  }

  .service-card h3,
  .process-steps h3 {
    margin-top: 34px;
  }

  .photo-card-large {
    min-height: 420px;
  }

  .system-logo-panel {
    min-height: 230px;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  section[id] {
    scroll-margin-top: 96px;
  }

  .site-header {
    width: calc(100% - 24px);
    top: 12px;
    padding: 10px 10px 10px 12px;
  }

  .brand-name {
    font-size: 14px;
  }

  .hero,
  .service-strip,
  .systems,
  .photo-story,
  .references,
  .showcase,
  .process,
  .social-section,
  .contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    gap: 28px;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 320px;
  }

  .reference-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .reference-row em {
    text-align: left;
  }

  .showcase-board {
    grid-template-columns: 1fr;
  }

  .board-preview-large {
    min-height: 240px;
  }

  .post-card {
    min-height: 300px;
  }

  .photo-card,
  .photo-card-large {
    min-height: 330px;
  }

  .photo-card figcaption strong {
    font-size: 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 780px) {
  .hero {
    min-height: 100svh;
    background:
      radial-gradient(circle at var(--spotlight-x) var(--spotlight-y), rgba(255, 122, 24, 0.2), transparent 18rem),
      radial-gradient(circle at 80% 18%, rgba(185, 212, 239, 0.3), transparent 20rem),
      linear-gradient(180deg, #030405 0%, #101620 100%);
  }

  .hero::after {
    opacity: 1;
    animation-duration: 5.2s;
  }

  .hero-motion span {
    opacity: 0.72;
    animation-duration: 5.8s;
  }

  .hero-visual {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44), 0 0 56px rgba(185, 212, 239, 0.12);
    animation: mobileHeroRise 0.8s var(--ease) 0.08s both, mobileHeroPulse 4.8s ease-in-out 1s infinite;
  }

  .hero-visual img {
    animation: mobileLogoFloat 4.4s ease-in-out infinite;
  }

  .button-primary {
    animation: mobileButtonGlow 3.4s ease-in-out infinite;
  }

  .mobile-nav a {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), background 0.18s ease, color 0.18s ease;
  }

  .menu-open .mobile-nav a {
    opacity: 1;
    transform: translateY(0);
  }

  .menu-open .mobile-nav a:nth-child(2) {
    transition-delay: 45ms;
  }

  .menu-open .mobile-nav a:nth-child(3) {
    transition-delay: 90ms;
  }

  .menu-open .mobile-nav a:nth-child(4) {
    transition-delay: 135ms;
  }

  .menu-open .mobile-nav a:nth-child(5) {
    transition-delay: 180ms;
  }

  .service-card,
  .system-card,
  .photo-card,
  .post-card,
  .process-steps article {
    transition:
      transform 0.54s var(--ease),
      box-shadow 0.32s ease,
      border-color 0.32s ease,
      background 0.32s ease;
  }

  .service-card.is-active,
  .system-card.is-active,
  .photo-card.is-active,
  .post-card.is-active,
  .process-steps article.is-active {
    --lift: -7px;
    animation: mobileCardPop 0.78s var(--ease) both;
  }

  .service-card.is-active {
    border-color: rgba(255, 122, 24, 0.28);
    box-shadow: 0 28px 72px rgba(18, 28, 40, 0.16);
  }

  .system-card.is-active {
    border-color: rgba(185, 212, 239, 0.36);
    box-shadow: 0 34px 96px rgba(0, 0, 0, 0.36), 0 0 54px rgba(185, 212, 239, 0.1);
  }

  .system-card-accent.is-active {
    border-color: rgba(255, 122, 24, 0.36);
    box-shadow: 0 34px 96px rgba(0, 0, 0, 0.36), 0 0 58px rgba(255, 122, 24, 0.1);
  }

  .system-card.is-active .system-logo-panel img {
    animation: mobileProductLogo 1.2s var(--ease) both;
  }

  .system-card.is-active .system-logo-panel::after {
    animation-duration: 2.8s;
  }

  .photo-card.is-active img,
  .post-card.is-active img {
    filter: saturate(1.08) contrast(1.06);
    transform: scale(1.06);
  }

  .process-steps article.is-active::after {
    transform: scaleX(1);
  }

  .js .reveal {
    translate: 0 26px;
    filter: blur(8px);
    transition-duration: 0.66s;
  }
}

@keyframes mobileHeroRise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes mobileHeroPulse {
  0%,
  100% {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44), 0 0 44px rgba(185, 212, 239, 0.1);
  }
  50% {
    box-shadow: 0 32px 88px rgba(0, 0, 0, 0.5), 0 0 72px rgba(255, 122, 24, 0.13);
  }
}

@keyframes mobileLogoFloat {
  0%,
  100% {
    transform: scale(1.02) translateY(0);
  }
  50% {
    transform: scale(1.045) translateY(-8px);
  }
}

@keyframes mobileButtonGlow {
  0%,
  100% {
    box-shadow: 0 18px 34px rgba(185, 212, 239, 0.18);
  }
  50% {
    box-shadow: 0 20px 44px rgba(255, 122, 24, 0.24);
  }
}

@keyframes mobileCardPop {
  0% {
    transform: translateY(18px) scale(0.985);
  }
  60% {
    transform: translateY(-9px) scale(1.01);
  }
  100% {
    transform: translateY(-7px) scale(1);
  }
}

@keyframes mobileProductLogo {
  0% {
    transform: scale(0.96) rotate(-1deg);
  }
  70% {
    transform: scale(1.055) rotate(0deg);
  }
  100% {
    transform: scale(1.035);
  }
}

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

  .js .reveal {
    opacity: 1;
    translate: 0 0;
    filter: none;
  }

  [data-tilt],
  .hero-visual,
  .photo-card,
  .post-card {
    transform: none !important;
  }
}
