:root {
  --bg: #090c12;
  --bg-soft: #0d121c;
  --panel: rgba(16, 22, 34, 0.78);
  --panel-solid: #101722;
  --panel-light: #151e2b;
  --text: #f4f7fb;
  --muted: #9aa8ba;
  --muted-strong: #bdc7d4;
  --line: rgba(170, 200, 235, 0.15);
  --line-strong: rgba(170, 200, 235, 0.28);
  --accent: #5bd9ff;
  --accent-strong: #1fb9ed;
  --accent-soft: rgba(91, 217, 255, 0.12);
  --purple: #8f80ff;
  --green: #57e0a4;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shell: 1180px;
  --header-height: 82px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 6%, rgba(40, 145, 210, 0.09), transparent 28rem),
    radial-gradient(circle at 95% 35%, rgba(91, 65, 190, 0.07), transparent 34rem),
    var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: #061018;
  background: var(--accent);
}

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

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

button {
  color: inherit;
}

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

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: #081018;
  background: var(--accent);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.section-pad {
  padding-block: 116px;
}

.ambient,
.noise {
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.ambient {
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.14;
}

.ambient-one {
  top: -18rem;
  left: -14rem;
  background: #168fc5;
}

.ambient-two {
  right: -20rem;
  top: 40rem;
  background: #5948b8;
}

.noise {
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: rgba(9, 12, 18, 0.76);
  border-bottom: 1px solid rgba(170, 200, 235, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(91, 217, 255, 0.28);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(91, 217, 255, 0.14), rgba(143, 128, 255, 0.08));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.18);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  overflow: visible;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark circle {
  fill: var(--purple);
  stroke: none;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: 0.015em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: auto;
}

.primary-nav a {
  position: relative;
  padding-block: 10px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #526173;
  font-family: var(--font-mono);
  font-size: 11px;
}

.language-button {
  padding: 5px 2px;
  color: #718095;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: color 180ms ease;
}

.language-button:hover,
.language-button:focus-visible,
.language-button.is-active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

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

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button svg,
.text-link svg,
.compact-project a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

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

.button:hover svg,
.button:focus-visible svg,
.text-link:hover svg,
.compact-project a:hover svg {
  transform: translate(2px, -2px);
}

.button-small {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 12px;
}

.button-primary {
  color: #061017;
  background: linear-gradient(135deg, #8be7ff, var(--accent));
  box-shadow: 0 12px 34px rgba(50, 185, 230, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 16px 42px rgba(50, 185, 230, 0.28);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(91, 217, 255, 0.34);
  background: var(--accent-soft);
}

.hero {
  position: relative;
  padding-top: 98px;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: min(100%, 1500px);
  height: 100%;
  background-image:
    linear-gradient(rgba(111, 144, 178, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 144, 178, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  transform: translateX(-50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(470px, 0.98fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: #bcd5e3;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(87, 224, 164, 0.75);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(87, 224, 164, 0.35);
  border-radius: inherit;
  animation: status-pulse 2s ease-out infinite;
}

@keyframes status-pulse {
  0% { opacity: 1; transform: scale(0.65); }
  100% { opacity: 0; transform: scale(1.35); }
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.25rem, 5.7vw, 5.55rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.99;
}

.hero h1::first-line {
  color: #fff;
}

.hero-lead {
  max-width: 660px;
  margin-top: 30px;
  color: var(--muted-strong);
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: 0.72fr 1.45fr 0.9fr;
  gap: 0;
  margin-top: 52px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.hero-proof div {
  min-width: 0;
  padding-right: 18px;
}

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

.hero-proof dt {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-proof dd {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.system-console {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(130, 179, 223, 0.21);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(25, 34, 49, 0.9), rgba(10, 15, 24, 0.94)),
    var(--panel-solid);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05);
  isolation: isolate;
}

.system-console::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 47px 0 42px;
  background-image:
    linear-gradient(rgba(137, 180, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 180, 220, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

.system-console::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 80px;
  border-radius: 50%;
  background: rgba(55, 185, 229, 0.08);
  filter: blur(45px);
}

.console-bar,
.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 47px;
  padding-inline: 18px;
  color: #8192a7;
  background: rgba(5, 8, 13, 0.45);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.console-bar {
  border-bottom: 1px solid var(--line);
}

.console-title,
.console-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-icon {
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  box-shadow: inset 2px 0 var(--accent), inset -2px 0 var(--purple);
}

.console-status {
  color: var(--green);
}

.console-status i,
.console-footer i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.system-map {
  position: relative;
  height: 468px;
}

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.line {
  fill: none;
  stroke: rgba(91, 217, 255, 0.29);
  stroke-width: 1;
  stroke-dasharray: 5 7;
}

.line-b,
.line-e {
  stroke: rgba(143, 128, 255, 0.31);
}

.pulse {
  fill: var(--accent);
  filter: drop-shadow(0 0 7px var(--accent));
}

.pulse-b {
  fill: var(--purple);
  filter: drop-shadow(0 0 7px var(--purple));
}

.map-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 114px;
  min-height: 74px;
  align-content: center;
  padding: 12px 13px;
  border: 1px solid rgba(135, 178, 217, 0.23);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(22, 31, 45, 0.95), rgba(10, 15, 24, 0.95));
  box-shadow: 0 13px 25px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.04);
  transform: translate(-50%, -50%);
}

.map-node::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
}

.map-node strong {
  overflow: hidden;
  color: #eaf4ff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-node small,
.node-kicker {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.node-kicker {
  margin-bottom: 4px;
  color: var(--accent);
}

.map-node small {
  margin-top: 3px;
  color: #64758a;
}

.node-center {
  left: 50%;
  top: 47%;
  width: 142px;
  min-height: 108px;
  border-color: rgba(91, 217, 255, 0.43);
  background: linear-gradient(145deg, rgba(20, 51, 67, 0.95), rgba(14, 21, 32, 0.96));
  box-shadow: 0 18px 50px rgba(4, 13, 21, 0.42), 0 0 0 8px rgba(91, 217, 255, 0.035), inset 0 1px rgba(255, 255, 255, 0.08);
}

.node-center strong {
  font-size: 17px;
}

.node-top-left { left: 21%; top: 23%; }
.node-top-right { left: 79%; top: 23%; }
.node-bottom-left { left: 20%; top: 76%; }
.node-bottom-right { left: 80%; top: 76%; }
.node-top { left: 50%; top: 12%; }

.console-footer {
  height: 43px;
  justify-content: flex-start;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.console-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.console-footer .ok {
  color: var(--green);
}

.tech-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 70px;
  padding: 18px 24px;
  overflow: hidden;
  color: #68788d;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(170, 200, 235, 0.09);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  list-style: none;
}

.tech-rail li {
  flex: 0 0 auto;
}

.tech-rail li + li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: clamp(20px, 3vw, 48px);
  vertical-align: middle;
  border-radius: 50%;
  background: #354458;
}

.section {
  position: relative;
  border-top: 1px solid rgba(170, 200, 235, 0.08);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 60px;
}

.section-index {
  display: block;
  margin-bottom: 17px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  max-width: 800px;
  font-size: clamp(2.2rem, 4.3vw, 4.25rem);
  font-weight: 630;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.section-heading > p {
  max-width: 520px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

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

.expertise-card {
  position: relative;
  min-height: 396px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(19, 27, 40, 0.82), rgba(11, 16, 25, 0.76));
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.expertise-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(100px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.expertise-card:hover {
  z-index: 2;
  border-color: rgba(91, 217, 255, 0.28);
  background: linear-gradient(155deg, rgba(21, 32, 47, 0.92), rgba(11, 17, 27, 0.84));
  transform: translateY(-6px);
}

.expertise-card:hover::before {
  opacity: 0.09;
}

.card-number {
  position: absolute;
  top: 25px;
  right: 25px;
  color: #435166;
  font-family: var(--font-mono);
  font-size: 10px;
}

.expertise-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 74px;
  border: 1px solid rgba(91, 217, 255, 0.2);
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
}

.expertise-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expertise-card h3 {
  font-size: 20px;
  font-weight: 630;
  letter-spacing: -0.02em;
}

.expertise-card p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.expertise-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
  list-style: none;
}

.expertise-card li,
.tag-list li,
.compact-project li {
  padding: 5px 8px;
  color: #8fa1b6;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(170, 200, 235, 0.1);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.projects-section {
  background: linear-gradient(180deg, rgba(11, 16, 24, 0.44), rgba(8, 11, 17, 0.15));
}

.case-list {
  display: grid;
  gap: 28px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(13, 19, 29, 0.76);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.16);
}

.case-card-reverse .case-visual {
  order: 2;
}

.case-visual {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  overflow: hidden;
  padding: 42px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(91, 217, 255, 0.11), transparent 42%),
    linear-gradient(rgba(130, 165, 198, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 165, 198, 0.045) 1px, transparent 1px),
    #0b111a;
  background-size: auto, 26px 26px, 26px 26px, auto;
}

.case-card-reverse .case-visual {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.data-visual {
  background:
    radial-gradient(circle at 50% 50%, rgba(143, 128, 255, 0.11), transparent 42%),
    linear-gradient(rgba(130, 165, 198, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 165, 198, 0.045) 1px, transparent 1px),
    #0b1019;
  background-size: auto, 26px 26px, 26px 26px, auto;
}

.test-visual {
  background:
    radial-gradient(circle at 50% 50%, rgba(87, 224, 164, 0.09), transparent 42%),
    linear-gradient(rgba(130, 165, 198, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 165, 198, 0.045) 1px, transparent 1px),
    #0b1118;
  background-size: auto, 26px 26px, 26px 26px, auto;
}

.visual-label {
  position: absolute;
  top: 22px;
  left: 24px;
  color: #536479;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.case-visual svg {
  width: 100%;
  max-width: 650px;
  overflow: visible;
}

.diagram-line {
  fill: none;
  stroke: rgba(91, 217, 255, 0.34);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}

.diagram-node rect {
  fill: rgba(15, 23, 35, 0.95);
  stroke: rgba(109, 193, 230, 0.42);
  stroke-width: 1.5;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.22));
}

.diagram-node text {
  fill: #ecf7ff;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.diagram-node .diagram-main {
  fill: var(--accent);
  font-size: 24px;
}

.diagram-node .diagram-small,
.diagram-small {
  fill: #71859a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.diagram-node .diagram-micro,
.diagram-micro {
  fill: #4d6680;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.diagram-node.small text {
  fill: #91a4b8;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.diagram-node .screen {
  fill: rgba(91, 217, 255, 0.08);
  stroke: rgba(91, 217, 255, 0.35);
}

.chart-bars {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
}

.diagram-pulse {
  fill: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent));
  animation: diagram-pulse 2.6s ease-in-out infinite;
}

.diagram-pulse-delay { animation-delay: -0.9s; }
.diagram-pulse-late { animation-delay: -1.7s; }

@keyframes diagram-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.75); transform-origin: center; }
  50% { opacity: 1; transform: scale(1.35); transform-origin: center; }
}

.case-content {
  display: flex;
  flex-direction: column;
  padding: 46px;
}

.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  color: #687b91;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.case-meta span:first-child {
  color: var(--accent);
}

.case-content h3 {
  max-width: 520px;
  font-size: clamp(1.85rem, 3.1vw, 3rem);
  font-weight: 630;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.case-summary {
  margin-top: 18px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.7;
}

.case-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.case-details span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.case-details p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 32px;
  list-style: none;
}

.more-projects {
  margin-top: 92px;
}

.subsection-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.subsection-title h3 {
  font-size: 24px;
  letter-spacing: -0.025em;
}

.subsection-title span {
  color: #607087;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.compact-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.compact-project {
  position: relative;
  min-height: 290px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 200ms ease;
}

.compact-project:hover {
  background: rgba(91, 217, 255, 0.028);
}

.compact-project > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.compact-project h4 {
  margin-top: 32px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.compact-project p {
  max-width: 470px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.compact-project ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  list-style: none;
}

.compact-project a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.process-section {
  background: rgba(255, 255, 255, 0.012);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list li {
  min-height: 260px;
  padding: 26px 25px 30px;
}

.process-list li + li {
  border-left: 1px solid var(--line);
}

.process-list > li > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.process-list li div {
  margin-top: 82px;
}

.process-list h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.process-list p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.about-section {
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 100px;
}

.portrait-wrap {
  position: relative;
  padding: 0 50px 50px 0;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.91;
  border: 1px solid rgba(170, 200, 235, 0.2);
  border-radius: 26px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 9, 14, 0.38), transparent 48%);
  pointer-events: none;
}

.portrait-frame picture,
.portrait-frame img {
  width: 100%;
  height: 100%;
}

.portrait-frame img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.04);
}

.portrait-tag {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  color: #c9d4df;
  background: rgba(8, 13, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portrait-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.portrait-code {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 165px;
  padding: 25px;
  color: #35465a;
  background: rgba(15, 22, 33, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.1em;
}

.about-copy h2 {
  max-width: 720px;
  margin-bottom: 30px;
}

.about-copy > p {
  max-width: 700px;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.8;
}

.about-copy > p + p {
  margin-top: 16px;
  color: var(--muted);
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-facts div {
  padding-right: 17px;
}

.profile-facts div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.profile-facts dt {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-facts dd {
  margin-top: 7px;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.5;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.contact-section {
  padding-top: 50px;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  align-items: end;
  gap: 70px;
  overflow: hidden;
  padding: 68px;
  color: #061019;
  background: linear-gradient(135deg, #a4ebff 0%, #62d9fb 46%, #9f91ff 135%);
  border-radius: var(--radius-xl);
  box-shadow: 0 26px 90px rgba(28, 155, 200, 0.16);
}

.contact-grid-pattern {
  position: absolute;
  top: -100px;
  right: -80px;
  width: 440px;
  height: 440px;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(0, 30, 45, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 30, 45, 0.25) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle, black, transparent 70%);
  transform: rotate(20deg);
}

.contact-copy,
.contact-actions {
  position: relative;
  z-index: 1;
}

.contact-copy .section-index {
  color: rgba(5, 25, 35, 0.58);
}

.contact-copy h2 {
  max-width: 720px;
}

.contact-copy p {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(5, 23, 34, 0.7);
  font-size: 15px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.button-light {
  color: #f5f9fc;
  background: #0b121b;
  box-shadow: 0 12px 30px rgba(0, 20, 30, 0.17);
}

.button-outline-light {
  color: #09141c;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(4, 22, 32, 0.24);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.3);
}

.site-footer {
  padding-block: 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #627187;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.footer-brand .brand-mark svg {
  width: 21px;
}

.footer-brand .brand-copy strong {
  color: #b9c5d2;
  font-size: 11px;
}

.footer-brand .brand-copy small {
  font-size: 8px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.2, 0.75, 0.25, 1), transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 1120px) {
  .primary-nav {
    gap: 18px;
  }

  .header-contact {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(410px, 0.9fr);
    gap: 44px;
  }

  .system-console {
    min-height: 520px;
  }

  .system-map {
    height: 428px;
  }

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

  .expertise-card {
    min-height: 350px;
  }

  .expertise-icon {
    margin-bottom: 52px;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card-reverse .case-visual {
    order: 0;
  }

  .case-visual,
  .case-card-reverse .case-visual {
    min-height: 460px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-content {
    min-height: 500px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 74px;
  }

  .section-pad {
    padding-block: 88px;
  }

  .menu-toggle {
    display: block;
    order: 3;
    margin-left: 2px;
  }

  .header-inner {
    gap: 14px;
  }

  .header-actions {
    margin-left: auto;
  }

  .primary-nav {
    position: fixed;
    z-index: 99;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    margin: 0;
    padding: 40px;
    background: rgba(8, 11, 17, 0.97);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav a {
    color: var(--text);
    font-size: clamp(1.7rem, 7vw, 3.2rem);
    letter-spacing: -0.04em;
  }

  .hero {
    padding-top: 78px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero h1 {
    max-width: 780px;
  }

  .system-console {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .tech-rail {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

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

  .section-heading > p {
    padding: 0;
  }

  .about-grid {
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    gap: 55px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-actions {
    max-width: 390px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 30px, var(--shell));
  }

  .section-pad {
    padding-block: 74px;
  }

  .brand-copy small {
    display: none;
  }

  .expertise-grid,
  .compact-project-grid,
  .process-list,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    min-height: 330px;
  }

  .process-list {
    border: 0;
  }

  .process-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    min-height: auto;
    gap: 12px;
    padding: 27px 0;
    border-top: 1px solid var(--line);
  }

  .process-list li + li {
    border-left: 0;
  }

  .process-list li:last-child {
    border-bottom: 1px solid var(--line);
  }

  .process-list li div {
    margin: 0;
  }

  .portrait-wrap {
    max-width: 500px;
    padding: 0 32px 32px 0;
  }

  .about-grid {
    gap: 55px;
  }

  .profile-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-facts div {
    padding: 13px 0;
  }

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

  .contact-panel {
    padding: 42px 30px;
  }

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer-note {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .header-inner {
    gap: 9px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand-copy strong {
    font-size: 12px;
  }

  .language-switch {
    gap: 4px;
  }

  .menu-toggle {
    width: 39px;
    height: 39px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 1rem;
  }

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

  .hero-proof {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px;
  }

  .hero-proof div:last-child {
    grid-column: 1 / -1;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .system-console {
    min-height: 445px;
    border-radius: 20px;
  }

  .system-map {
    height: 353px;
  }

  .map-node {
    width: 88px;
    min-height: 62px;
    padding: 9px;
  }

  .map-node strong {
    font-size: 9px;
  }

  .node-center {
    width: 112px;
    min-height: 90px;
  }

  .node-center strong {
    font-size: 14px;
  }

  .node-top-left { left: 18%; }
  .node-top-right { left: 82%; }
  .node-bottom-left { left: 18%; }
  .node-bottom-right { left: 82%; }

  .console-footer {
    gap: 12px;
    overflow: hidden;
  }

  .tech-rail {
    margin-top: 45px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2,
  .about-copy h2,
  .contact-copy h2 {
    font-size: clamp(2.1rem, 10.5vw, 3.4rem);
  }

  .expertise-grid {
    gap: 10px;
  }

  .expertise-card {
    min-height: 300px;
    padding: 24px;
  }

  .expertise-icon {
    margin-bottom: 38px;
  }

  .case-card {
    border-radius: 20px;
  }

  .case-visual {
    min-height: 330px;
    padding: 25px 12px;
  }

  .case-content {
    min-height: auto;
    padding: 30px 24px;
  }

  .case-meta {
    margin-bottom: 30px;
  }

  .case-details {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .tag-list {
    margin-top: 24px;
  }

  .more-projects {
    margin-top: 65px;
  }

  .compact-project {
    min-height: 270px;
    padding: 28px 24px;
  }

  .subsection-title {
    align-items: flex-end;
  }

  .subsection-title span {
    max-width: 90px;
    text-align: right;
  }

  .portrait-wrap {
    padding-right: 20px;
    padding-bottom: 22px;
  }

  .portrait-frame {
    border-radius: 20px;
  }

  .portrait-code {
    display: none;
  }

  .contact-section {
    padding-top: 20px;
  }

  .contact-panel {
    padding: 34px 23px;
    border-radius: 20px;
  }

  .contact-actions .button {
    padding-inline: 12px;
    font-size: 12px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

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

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

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