:root {
  --bg: #07111d;
  --bg-deep: #050b14;
  --bg-panel: #0b1523;
  --surface: rgba(15, 25, 40, 0.84);
  --surface-strong: rgba(10, 19, 31, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f7ff;
  --muted: #a8b5cb;
  --muted-strong: #cad6ea;
  --accent: #2563eb;
  --accent-strong: #4b8dff;
  --accent-soft: rgba(37, 99, 235, 0.16);
  --success: #9af5c8;
  --error: #ffb4b4;
  --shadow: 0 36px 110px rgba(2, 7, 16, 0.48);
  --radius: 1.65rem;
  --radius-large: 2.25rem;
  --radius-small: 1rem;
  --max-width: 1360px;
  --heading-font: "Space Grotesk", sans-serif;
  --body-font: "Manrope", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 26%),
    radial-gradient(circle at 80% 12%, rgba(75, 141, 255, 0.11), transparent 22%),
    linear-gradient(180deg, #07111d 0%, #040913 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.13;
  pointer-events: none;
  mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.9), transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px);
  background-size: 18px 18px, 22px 22px;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

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

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

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

button {
  cursor: pointer;
}

.container {
  width: min(100% - 3rem, var(--max-width));
  margin: 0 auto;
}

::selection {
  background: rgba(75, 141, 255, 0.32);
  color: white;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(7, 17, 29, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: translateY(-140%);
  transition: transform 0.25s ease;
}

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

.site-shell {
  position: relative;
  isolation: isolate;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 11, 20, 0.66);
  backdrop-filter: blur(24px);
  box-shadow: 0 10px 40px rgba(1, 5, 12, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(14, 24, 38, 0.98), rgba(17, 32, 52, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 30px rgba(0, 0, 0, 0.25);
}

.brand-mark img {
  width: 2.3rem;
  height: 2.3rem;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-family: var(--heading-font);
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.64rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.site-nav a {
  position: relative;
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.5rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
}

.site-nav a.is-current {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.36rem;
}

.nav-toggle span {
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: white;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  box-shadow: 0 18px 42px rgba(28, 88, 214, 0.32);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.33);
}

.button-small {
  min-height: 2.85rem;
  padding-inline: 1.1rem;
  font-size: 0.76rem;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: none;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-cta {
  white-space: nowrap;
}

.hero,
.page-hero {
  position: relative;
}

.hero {
  padding: clamp(4.5rem, 9vw, 7.6rem) 0 clamp(5rem, 8vw, 7rem);
  min-height: calc(100svh - 88px);
  display: flex;
  align-items: center;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 9, 19, 0.92) 0%, rgba(4, 9, 19, 0.78) 42%, rgba(4, 9, 19, 0.38) 72%, rgba(4, 9, 19, 0.18) 100%),
    radial-gradient(circle at 70% 25%, rgba(75, 141, 255, 0.18), transparent 30%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 6% auto auto 52%;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(75, 141, 255, 0.12), transparent 66%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-grid,
.page-hero-grid,
.split-layout,
.contact-layout {
  display: grid;
  gap: 2.1rem;
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 40rem;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.section-title,
.footer-cta h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(4rem, 8.4vw, 7rem);
  max-width: 8.8ch;
}

.page-hero h1 {
  font-size: clamp(3rem, 6.5vw, 5.1rem);
  max-width: 10ch;
}

.hero h1 span,
.section-title span,
.page-hero h1 span {
  color: var(--accent-strong);
}

.hero p,
.page-hero p,
.section-copy,
.footer-copy,
.footer-cta p {
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 38rem;
  text-wrap: pretty;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  margin-top: 1.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.hero-note span {
  position: relative;
}

.hero-note span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.7rem;
  top: 0.38rem;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.hero-ledger article {
  min-height: 100%;
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(16, 26, 41, 0.72), rgba(10, 16, 27, 0.88)),
    radial-gradient(circle at top right, rgba(75, 141, 255, 0.12), transparent 38%);
  box-shadow: 0 18px 42px rgba(3, 8, 16, 0.18);
}

.hero-ledger strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.hero-ledger span {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.hero [data-hero] {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

body.loaded .hero [data-hero] {
  opacity: 1;
  transform: translateY(0);
}

.hero-visual {
  position: relative;
  padding-left: clamp(0rem, 2vw, 1.4rem);
  --parallax: 0px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% -6% 2% 26%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.42), transparent 60%);
  filter: blur(18px);
  z-index: -1;
}

.media-frame {
  border-radius: var(--radius-large);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.015);
  box-shadow: var(--shadow);
}

.hero-visual .media-frame {
  transform: translateY(var(--parallax));
  transition: transform 0.2s linear;
  aspect-ratio: 1.03 / 1;
}

.hero-visual .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-chip,
.stat-column {
  position: absolute;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 15, 24, 0.78);
  backdrop-filter: blur(18px);
}

.floating-chip {
  top: 1.5rem;
  right: 1rem;
  padding: 1rem 1.1rem;
  font-size: 0.84rem;
  color: var(--muted-strong);
  max-width: 15rem;
}

.stat-column {
  left: 1rem;
  bottom: 1rem;
  width: min(16rem, 42%);
  padding: 1rem 1.1rem;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.28);
}

.stat-column strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 1.8rem;
  line-height: 1;
}

.stat-column span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: clamp(5rem, 9vw, 7rem) 0;
}

.section-tight {
  padding-top: 0;
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.8rem;
  max-width: 52rem;
}

.section-title {
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  max-width: 11ch;
}

.section-copy {
  max-width: 40rem;
}

.service-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-rail article {
  min-height: 100%;
  padding: 1.7rem 1.45rem 1.75rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(16, 27, 43, 0.88), rgba(9, 16, 27, 0.94)),
    radial-gradient(circle at top right, rgba(75, 141, 255, 0.08), transparent 35%);
  box-shadow: 0 24px 56px rgba(4, 9, 18, 0.24);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.service-rail article:hover {
  transform: translateY(-4px);
  border-color: rgba(75, 141, 255, 0.28);
  box-shadow: 0 26px 52px rgba(4, 9, 18, 0.28);
}

.service-rail-index {
  margin: 0 0 0.95rem;
  color: rgba(75, 141, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-rail h3,
.service-item h3,
.direction-copy h3,
.package h3,
.contact-card h3,
.process-step h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.service-rail p,
.service-item p,
.direction-copy p,
.package p,
.process-step p,
.contact-card p,
.page-hero-meta p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.split-layout,
.page-hero-grid,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.stacked-points,
.detail-list,
.package-list,
.contact-points {
  display: grid;
  gap: 0.9rem;
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}

.stacked-points li,
.detail-list li,
.package-list li,
.contact-points li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted-strong);
}

.stacked-points li::before,
.detail-list li::before,
.package-list li::before,
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 0 0 0.35rem rgba(37, 99, 235, 0.12);
}

.image-panel {
  position: relative;
}

.image-panel .media-frame {
  height: 100%;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-caption {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.service-stack,
.direction-grid,
.process-grid,
.value-grid,
.package-grid,
.portfolio-grid,
.contact-grid,
.page-hero-meta {
  display: grid;
  gap: 1.2rem;
}

.service-stack {
  gap: 1.5rem;
}

.service-item,
.direction-item,
.process-step,
.value-card,
.package,
.portfolio-card,
.contact-card,
.page-hero-panel,
.status-message,
.form-panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(15, 25, 40, 0.84), rgba(7, 14, 24, 0.96));
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(3, 8, 17, 0.2);
}

.service-item,
.process-step,
.value-card,
.package,
.contact-card,
.page-hero-panel,
.status-message,
.form-panel {
  padding: 1.5rem;
}

.service-item::before,
.direction-item::before,
.process-step::before,
.value-card::before,
.package::before,
.portfolio-card::before,
.contact-card::before,
.page-hero-panel::before,
.form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 32%);
  pointer-events: none;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(18rem, 0.94fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(15, 25, 40, 0.78), rgba(8, 14, 24, 0.96)),
    radial-gradient(circle at top right, rgba(75, 141, 255, 0.12), transparent 38%);
}

.service-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  padding: clamp(0.55rem, 1vw, 0.85rem);
}

.service-body {
  display: grid;
  align-content: start;
  gap: 0.95rem;
}

.service-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.service-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-thumb {
  align-self: stretch;
  min-height: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.service-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(5, 11, 20, 0.36));
  pointer-events: none;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.service-index,
.process-index {
  color: rgba(75, 141, 255, 0.32);
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.9;
}

.service-item:nth-child(even) .service-content {
  order: 2;
}

.service-item:nth-child(even) .service-thumb {
  order: 1;
}

.service-item:hover .service-thumb img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.service-item h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  max-width: 17ch;
}

.service-item p {
  max-width: 38ch;
}

.icon-badge {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-strong);
}

.icon-badge svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
}

.direction-grid,
.portfolio-grid,
.package-grid,
.value-grid,
.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.direction-item,
.portfolio-card {
  display: grid;
  min-height: 100%;
}

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

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

.feature-grid .direction-item:nth-child(1) {
  grid-column: span 7;
}

.feature-grid .direction-item:nth-child(2) {
  grid-column: span 5;
}

.feature-grid .direction-item:nth-child(3) {
  grid-column: span 5;
}

.feature-grid .direction-item:nth-child(4) {
  grid-column: span 7;
}

.feature-grid .direction-item:nth-child(1) .direction-media,
.feature-grid .direction-item:nth-child(4) .direction-media {
  min-height: 21rem;
}

.feature-grid .direction-item:nth-child(2) .direction-media,
.feature-grid .direction-item:nth-child(3) .direction-media {
  min-height: 18rem;
}

.service-gallery .direction-item:nth-child(1),
.service-gallery .direction-item:nth-child(4) {
  grid-column: span 2;
}

.direction-media,
.portfolio-media {
  min-height: 15rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.direction-media::after,
.portfolio-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(3, 8, 16, 0.34));
  pointer-events: none;
}

.direction-media img,
.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.direction-item:hover img,
.portfolio-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.direction-copy,
.portfolio-copy {
  padding: 1.55rem;
}

.direction-copy {
  display: grid;
  align-content: start;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.subtle-panel {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015));
}

.process-step {
  min-height: 100%;
}

.process-step p,
.value-card p,
.package p {
  max-width: 30ch;
}

.value-card h3,
.package h3 {
  margin-top: 1rem;
}

.package-list {
  margin-top: 1.25rem;
}

.page-hero {
  padding: clamp(4.4rem, 9vw, 6.4rem) 0 2rem;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(75, 141, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(4, 9, 19, 0.18), transparent 55%);
  pointer-events: none;
}

.page-hero-panel {
  display: grid;
  gap: 1rem;
}

.page-hero-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.8rem;
}

.page-hero-meta strong {
  display: block;
  color: var(--muted-strong);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.page-hero-meta p {
  margin-top: 0.4rem;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-button {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.75rem;
  font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover {
  background: var(--accent-soft);
  color: var(--text);
  border-color: rgba(75, 141, 255, 0.48);
}

.status-message {
  margin-bottom: 1rem;
}

.status-message strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.status-message.is-success {
  border-color: rgba(154, 245, 200, 0.36);
}

.status-message.is-success strong {
  color: var(--success);
}

.status-message.is-error {
  border-color: rgba(255, 180, 180, 0.28);
}

.status-message.is-error strong {
  color: var(--error);
}

.contact-layout {
  align-items: stretch;
}

.form-panel,
.contact-card {
  min-height: 100%;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  color: var(--muted-strong);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(75, 141, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-cta {
  padding: 0 0 2rem;
}

.footer-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-large);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(16, 28, 43, 0.96), rgba(8, 14, 22, 0.96));
}

.footer-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 10ch;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 1rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-copy {
  margin: 0;
  max-width: 30rem;
}

.footer-heading {
  margin: 0 0 1rem;
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a,
.footer-links span {
  color: var(--muted);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.7rem);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .page-hero-grid,
  .split-layout,
  .contact-layout,
  .footer-cta-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .direction-grid,
  .portfolio-grid,
  .package-grid,
  .value-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .feature-grid .direction-item,
  .service-gallery .direction-item {
    grid-column: span 1;
  }

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

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

  .hero {
    min-height: auto;
  }

  .hero-visual {
    padding-left: 0;
  }

  .page-hero-meta {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .service-item:nth-child(even) .service-content,
  .service-item:nth-child(even) .service-thumb {
    order: initial;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 88px 1rem auto;
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 17, 29, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .site-nav a {
    padding: 0.8rem 0.4rem;
  }

  .header-cta {
    display: none;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.nav-open .nav-toggle span:first-child {
    transform: translateY(0.275rem) rotate(45deg);
  }

  body.nav-open .nav-toggle span:last-child {
    transform: translateY(-0.275rem) rotate(-45deg);
  }

  .direction-grid,
  .portfolio-grid,
  .package-grid,
  .value-grid,
  .process-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .service-gallery {
    grid-template-columns: 1fr;
  }

  .service-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2.7rem, 17vw, 4rem);
  }

  .page-hero h1,
  .section-title,
  .footer-cta h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .header-inner {
    min-height: 78px;
  }

  .site-nav {
    top: 78px;
  }

  .floating-chip,
  .stat-column {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }

  .service-item {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .service-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.35rem;
  }

  .service-thumb img {
    min-height: 16rem;
  }

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

  .hero-note {
    display: grid;
    gap: 0.5rem;
  }

  .hero-note span::after {
    display: none;
  }

  .container {
    width: min(100% - 1.5rem, var(--max-width));
  }
}
