:root {
  --bg: #081733;
  --bg-soft: #0f2650;
  --surface: rgba(11, 27, 54, 0.8);
  --surface-strong: rgba(10, 24, 48, 0.97);
  --surface-border: rgba(150, 196, 255, 0.18);
  --text: #f3f7ff;
  --muted: #9fb7df;
  --accent: #58a9ff;
  --accent-soft: #98d2ff;
  --accent-deep: #1d4d8a;
  --emerald: #42cfb6;
  --emerald-soft: #9aedde;
  --emerald-deep: #154d53;
  --success: #86ffd1;
  --shadow: 0 28px 80px rgba(2, 8, 20, 0.55);
  --glow-blue: rgba(112, 196, 255, 0.22);
  --glow-emerald: rgba(103, 231, 208, 0.16);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(76, 136, 228, 0.4), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(42, 116, 224, 0.28), transparent 24%),
    radial-gradient(circle at 78% 72%, rgba(66, 207, 182, 0.24), transparent 28%),
    radial-gradient(circle at 18% 92%, rgba(108, 234, 212, 0.15), transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(62, 118, 210, 0.12), transparent 48%),
    linear-gradient(180deg, #0a1834 0%, #08172c 46%, #0d2135 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(131, 174, 231, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 214, 196, 0.04) 1px, transparent 1px),
    repeating-linear-gradient(180deg, rgba(180, 235, 255, 0.028) 0 1px, transparent 1px 4px);
  background-size: 72px 72px, 72px 72px, 100% 4px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 88%);
  pointer-events: none;
  opacity: 0.62;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(118, 210, 255, 0.11), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(93, 226, 204, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.75;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes code-drift {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.18;
  }

  50% {
    transform: translate3d(10px, -8px, 0);
    opacity: 0.3;
  }

  100% {
    transform: translate3d(-8px, 10px, 0);
    opacity: 0.2;
  }
}

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

button {
  font: inherit;
}

b {
  font-weight: 700;
  color: var(--accent-soft);
}

.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding-bottom: 40px;
}

.site-header,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 12px;
  z-index: 40;
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(9, 22, 43, 0.78);
  border: 1px solid rgba(155, 209, 255, 0.16);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  box-shadow:
    0 16px 38px rgba(3, 10, 20, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--text);
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, rgba(91, 154, 255, 0.38), rgba(17, 50, 97, 0.92)),
    var(--surface-strong);
  border: 1px solid rgba(170, 208, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.brand-text {
  display: grid;
  gap: 4px;
}

.brand-text strong,
.site-nav a,
h1,
h2,
h3 {
  font-family: "Segoe UI Variable Display", "Arial Narrow", "Trebuchet MS", sans-serif;
}

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  padding: 11px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(77, 162, 255, 0.1);
  transform: translateY(-1px);
}

.section {
  margin-top: 22px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(10, 24, 48, 0.9), rgba(10, 24, 48, 0.7)),
    radial-gradient(circle at 100% 0, rgba(66, 207, 182, 0.12), transparent 34%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.section::after {
  content: "";
  position: absolute;
  inset: auto -15% -35% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 155, 255, 0.18), transparent 62%);
  pointer-events: none;
}

.section::before {
  content: "";
  position: absolute;
  inset: -10% auto auto -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 207, 182, 0.14), transparent 68%);
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  min-height: 62vh;
}

.hero-copy,
.hero-panel,
.info-card,
.timeline-step,
.stack-card,
.result-card,
.cta-card {
  position: relative;
  z-index: 1;
  animation: rise-in 0.8s ease both;
}

.code-drift {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.code-drift span {
  position: absolute;
  color: rgba(135, 237, 225, 0.18);
  font-family: Consolas, "Courier New", monospace;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    0 0 8px rgba(112, 196, 255, 0.14),
    0 0 18px rgba(103, 231, 208, 0.08);
  animation: code-drift 16s ease-in-out infinite alternate;
}

.code-drift-hero span:nth-child(1) {
  top: 9%;
  left: 2%;
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  transform: rotate(-7deg);
}

.code-drift-hero span:nth-child(2) {
  top: 18%;
  right: 5%;
  font-size: clamp(0.92rem, 1.3vw, 1.2rem);
  transform: rotate(8deg);
  animation-delay: 1s;
}

.code-drift-hero span:nth-child(3) {
  top: 36%;
  left: 52%;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  transform: rotate(-10deg);
  animation-delay: 2.2s;
}

.code-drift-hero span:nth-child(4) {
  bottom: 26%;
  left: 4%;
  font-size: clamp(0.78rem, 1.05vw, 0.98rem);
  transform: rotate(-4deg);
  animation-delay: 0.6s;
}

.code-drift-hero span:nth-child(5) {
  top: 58%;
  right: -2%;
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  transform: rotate(12deg);
  animation-delay: 2.8s;
}

.code-drift-hero span:nth-child(6) {
  bottom: 12%;
  right: 20%;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  transform: rotate(-8deg);
  animation-delay: 1.4s;
}

.code-drift-hero span:nth-child(7) {
  top: 8%;
  left: 35%;
  font-size: clamp(0.84rem, 1.1vw, 0.98rem);
  transform: rotate(5deg);
  animation-delay: 3.2s;
}

.code-drift-works span:nth-child(1) {
  top: 7%;
  right: 4%;
  font-size: clamp(0.86rem, 1.15vw, 1rem);
  transform: rotate(7deg);
}

.code-drift-works span:nth-child(2) {
  bottom: 10%;
  left: 3%;
  font-size: clamp(0.78rem, 1vw, 0.94rem);
  transform: rotate(-5deg);
  animation-delay: 1s;
}

.code-drift-works span:nth-child(3) {
  top: 40%;
  left: -1%;
  font-size: clamp(0.82rem, 1.05vw, 0.98rem);
  transform: rotate(-9deg);
  animation-delay: 2s;
}

.code-drift-works span:nth-child(4) {
  bottom: 18%;
  right: 6%;
  font-size: clamp(0.8rem, 1vw, 0.92rem);
  transform: rotate(8deg);
  animation-delay: 1.8s;
}

.code-drift-works span:nth-child(5) {
  top: 17%;
  left: 30%;
  font-size: clamp(0.76rem, 0.95vw, 0.9rem);
  transform: rotate(-4deg);
  animation-delay: 2.6s;
}

.hero-panel {
  animation:
    rise-in 0.85s ease both,
    soft-float 6s ease-in-out 1.1s infinite;
}

.info-card:nth-child(2),
.timeline-step:nth-child(2),
.result-card:nth-child(2) {
  animation-delay: 0.08s;
}

.info-card:nth-child(3),
.timeline-step:nth-child(3),
.result-card:nth-child(3) {
  animation-delay: 0.16s;
}

.timeline-step:nth-child(4) {
  animation-delay: 0.24s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent-soft);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138, 197, 255, 0.9));
}

h1,
h2 {
  margin: 0;
  max-width: 12ch;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-shadow:
    0 0 18px rgba(111, 186, 255, 0.08),
    0 0 34px rgba(92, 217, 198, 0.05);
}

h1 {
  font-size: clamp(3rem, 6vw, 6.3rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.hero-lead,
.about-copy p,
.info-card p,
.timeline-step p,
.result-card p,
.cta-copy p,
.cta-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-lead {
  max-width: 64ch;
  margin: 22px 0 0;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.button-primary {
  color: #031121;
  background: linear-gradient(135deg, #9ad3ff, #5ed4c3 48%, #4aa2ff);
  box-shadow:
    0 16px 40px rgba(58, 136, 224, 0.24),
    0 0 28px rgba(100, 218, 199, 0.12);
}

.button-secondary {
  color: var(--text);
  background: linear-gradient(135deg, rgba(88, 169, 255, 0.12), rgba(66, 207, 182, 0.1));
  border-color: rgba(152, 210, 255, 0.24);
  box-shadow: inset 0 0 18px rgba(102, 216, 200, 0.04);
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 700;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(88, 169, 255, 0.95), rgba(66, 207, 182, 0.82) 58%, rgba(28, 80, 145, 0.98));
  border: 1px solid rgba(184, 220, 255, 0.28);
  box-shadow:
    0 18px 40px rgba(5, 13, 26, 0.48),
    0 0 24px rgba(92, 214, 197, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 46px rgba(5, 13, 26, 0.58);
  filter: brightness(1.08);
}

.hero-points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 0.98rem;
}

.hero-points li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), var(--accent));
  box-shadow: 0 0 18px rgba(134, 255, 209, 0.4);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(17, 37, 68, 0.84), rgba(10, 24, 46, 0.96)),
    radial-gradient(circle at top right, rgba(66, 207, 182, 0.12), transparent 36%),
    var(--surface);
  border: 1px solid rgba(164, 208, 255, 0.18);
  border-radius: calc(var(--radius-lg) - 8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 26px rgba(102, 214, 200, 0.04);
}

.panel-glow {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 164, 255, 0.28), rgba(66, 207, 182, 0.22) 36%, transparent 70%);
}

.hero-panel-top,
.stack-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.panel-label,
.timeline-step span,
.card-index {
  color: var(--accent-soft);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-status {
  padding: 6px 10px;
  color: var(--success);
  font-size: 0.82rem;
  border-radius: 999px;
  background: rgba(134, 255, 209, 0.08);
  border: 1px solid rgba(134, 255, 209, 0.18);
}

.code-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  background: rgba(4, 10, 20, 0.55);
  border: 1px solid rgba(165, 205, 255, 0.12);
  border-radius: var(--radius-md);
  font-family: Consolas, "Courier New", monospace;
  box-shadow:
    inset 0 0 22px rgba(111, 192, 255, 0.05),
    0 0 26px rgba(49, 130, 222, 0.05);
}

.code-line {
  font-size: 0.98rem;
}

.muted {
  color: #6d88b1;
}

.metrics {
  display: grid;
  gap: 12px;
}

.metrics article,
.info-card,
.timeline-step,
.stack-card,
.result-card,
.cta-card {
  padding: 22px;
  background: rgba(9, 18, 33, 0.64);
  border: 1px solid rgba(168, 210, 255, 0.12);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 22px rgba(105, 212, 196, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.6rem;
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
}

.metrics span,
.stack-list li,
.cta-card small {
  color: var(--muted);
  line-height: 1.6;
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.strip-item {
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(88, 169, 255, 0.12), rgba(66, 207, 182, 0.1));
  border: 1px solid rgba(152, 210, 255, 0.18);
  border-radius: 999px;
  box-shadow: inset 0 0 18px rgba(100, 214, 198, 0.04);
}

.section-heading {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.section-heading h2 {
  max-width: 14ch;
}

.cards-grid,
.result-grid,
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.result-card {
  min-height: 200px;
}

.service-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.65;
}

.service-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--emerald-soft));
  box-shadow: 0 0 12px rgba(102, 214, 200, 0.18);
}

.work-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: rgba(9, 18, 33, 0.64);
  border: 1px solid rgba(168, 210, 255, 0.12);
  border-radius: calc(var(--radius-lg) - 6px);
  backdrop-filter: blur(10px);
  animation: rise-in 0.85s ease both;
  box-shadow:
    inset 0 0 26px rgba(103, 214, 196, 0.04),
    0 0 34px rgba(54, 129, 210, 0.05);
}

.work-card:nth-child(2) {
  animation-delay: 0.08s;
}

.work-card:nth-child(3) {
  animation-delay: 0.16s;
}

.work-preview {
  position: relative;
  display: block;
  min-height: 220px;
  width: 100%;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(195, 225, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: #081321;
  appearance: none;
}

.work-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 24, 0.02) 0%, rgba(6, 13, 24, 0.14) 62%, rgba(6, 13, 24, 0.82) 100%);
  pointer-events: none;
}

.work-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(170, 235, 255, 0.018) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
  opacity: 0.75;
  pointer-events: none;
}

.work-preview:focus-visible {
  outline: 2px solid rgba(138, 197, 255, 0.9);
  outline-offset: 4px;
}

.work-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease, filter 0.35s ease;
}

.work-card:hover .work-preview-image,
.work-card:focus-within .work-preview-image {
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.02);
}

.work-preview-overlay {
  position: absolute;
  inset: auto 14px 14px 14px;
  z-index: 1;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  color: rgba(243, 247, 255, 0.88);
  font-size: 0.84rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.work-meta {
  display: grid;
  gap: 10px;
}

.work-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.work-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 16px;
  color: var(--text);
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(88, 169, 255, 0.14), rgba(66, 207, 182, 0.12));
  border: 1px solid rgba(152, 210, 255, 0.22);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  box-shadow: inset 0 0 14px rgba(101, 215, 199, 0.05);
}

.work-link::after {
  content: "↗";
  font-size: 1rem;
}

.work-link:hover,
.work-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(77, 162, 255, 0.16);
  border-color: rgba(152, 204, 255, 0.26);
}

body.modal-open {
  overflow: hidden;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 28px;
  background:
    radial-gradient(circle at center, rgba(49, 122, 210, 0.12), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(88, 219, 201, 0.08), transparent 42%),
    rgba(3, 8, 16, 0.84);
  backdrop-filter: blur(14px);
}

.image-modal[hidden] {
  display: none;
}

.image-modal-backdrop {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: zoom-out;
  background: transparent;
  border: 0;
}

.image-modal-image {
  display: block;
  max-width: min(1120px, 100%);
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(188, 223, 255, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.process-section {
  padding-bottom: 24px;
}

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

.timeline-step {
  min-height: 240px;
}

.timeline-step span {
  display: inline-block;
  margin-bottom: 18px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.about-copy h2 {
  max-width: 12ch;
  margin-bottom: 20px;
}

.about-copy p {
  max-width: 62ch;
  margin: 0 0 16px;
}

.stack-card-head strong {
  font-size: 1.08rem;
}

.stack-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  position: relative;
  padding-left: 18px;
}

.stack-list li::before {
  content: "/";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.cta-copy h2 {
  max-width: 14ch;
  margin-bottom: 18px;
}

.cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(15, 30, 57, 0.94), rgba(9, 19, 35, 0.98)),
    var(--surface);
}

.contact-form {
  display: grid;
  gap: 14px;
}

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

.field-control {
  position: relative;
  display: block;
}

.form-field span {
  color: var(--text);
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  padding-right: 52px;
  color: var(--text);
  font: inherit;
  background: rgba(6, 16, 31, 0.72);
  border: 1px solid rgba(157, 213, 255, 0.16);
  border-radius: 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(159, 183, 223, 0.68);
}

.form-field textarea {
  min-height: 118px;
  resize: vertical;
}

.field-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(88, 169, 255, 0.16);
  border: 1px solid rgba(152, 210, 255, 0.18);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.field-clear:hover,
.field-clear:focus-visible {
  transform: translateY(-50%) scale(1.06);
  background: rgba(88, 169, 255, 0.24);
  border-color: rgba(174, 224, 255, 0.24);
}

.field-clear[hidden] {
  display: none;
}

.field-control-textarea .field-clear {
  top: 14px;
  transform: none;
}

.field-control-textarea .field-clear:hover,
.field-control-textarea .field-clear:focus-visible {
  transform: scale(1.06);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(138, 210, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(88, 169, 255, 0.09);
  background: rgba(8, 20, 38, 0.88);
}

.contact-form .button {
  margin-top: 4px;
}

.site-footer {
  padding: 24px 6px 10px;
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 1080px) {
  .hero,
  .about-section,
  .cta-section,
  .timeline,
  .cards-grid,
  .result-grid,
  .works-grid,
  .strip {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .site-header {
    top: 8px;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 20px;
  }

  .hero,
  .about-section,
  .cta-section,
  .cards-grid,
  .result-grid,
  .works-grid,
  .timeline,
  .strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 24px 18px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .strip-item {
    border-radius: 20px;
  }

  .code-drift span {
    opacity: 0.16;
  }

  .code-drift-hero span:nth-child(2),
  .code-drift-hero span:nth-child(5),
  .code-drift-works span:nth-child(2),
  .code-drift-works span:nth-child(4) {
    display: none;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .image-modal {
    padding: 14px;
  }

  .image-modal-image {
    border-radius: 18px;
  }
}
