:root {
  --bg: #0a1417;
  --bg-2: #0d1b20;
  --bg-3: #12242b;
  --card: rgba(16, 32, 38, 0.78);
  --card-solid: #13262d;
  --line: rgba(48, 193, 201, 0.16);
  --teal: #30c1c9;
  --teal-2: #5cc2cf;
  --teal-bright: #7ee7ee;
  --navy: #001333;
  --copper: #d48a5c;
  --copper-2: #e8a06a;
  --red: #ff4c4c;
  --text: #f4f7f8;
  --muted: #9aa8b0;
  --white: #ffffff;
  --radius: 14px;
  --nav-h: 76px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: calc(var(--nav-h) + 18px);
  overflow-x: hidden;
  max-width: 100%;
}

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

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

button,
input {
  font-family: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.bg-grid {
  position: relative;
}

.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(48, 193, 201, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 193, 201, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 35%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid > * {
  position: relative;
  z-index: 1;
}

.kicker {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

/* ===== HEADER ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
  transition: opacity 0.45s ease;
}

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

.brand img,
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #001333;
  box-shadow: 0 0 0 1px rgba(48, 193, 201, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-type {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  color: var(--white);
  position: relative;
}

.logo-type .i {
  position: relative;
  color: var(--white);
}

.logo-type .i::after {
  content: "";
  position: absolute;
  top: 0.16em;
  left: 50%;
  width: 0.26em;
  height: 0.26em;
  background: var(--red);
  transform: translateX(-50%);
  box-shadow: 0 -0.02em 0 0.11em var(--bg);
}

.logo-type .q {
  color: var(--white);
  position: relative;
}

.logo-type .q::before {
  content: "";
  position: absolute;
  top: 0.08em;
  right: -0.02em;
  width: 0.42em;
  height: 0.42em;
  border: 0.11em solid var(--teal);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.brand-sub {
  margin-top: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--teal-2);
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-link {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  padding: 28px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  min-height: 520px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 4.15rem);
  max-width: 11ch;
  margin: 14px 0 18px;
}

.hero p {
  color: var(--muted);
  max-width: 46ch;
  font-size: 0.98rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.btn-copper {
  background: var(--copper);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(212, 138, 92, 0.28);
}

.btn-copper:hover {
  background: var(--copper-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 138, 92, 0.4);
}

.btn-link {
  background: transparent;
  color: #c9d4d8;
  padding-left: 0;
}

.btn-link:hover {
  color: var(--teal-bright);
}

.hero-visual {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 193, 201, 0.5) 0%, rgba(48, 193, 201, 0.14) 42%, transparent 70%);
  filter: blur(8px);
  animation: glowPulse 4s ease-in-out infinite, glowDrift 7s ease-in-out infinite;
}

.hero-glow-sweep {
  position: absolute;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(48, 193, 201, 0.38) 8%,
    transparent 22%,
    rgba(126, 231, 238, 0.22) 48%,
    transparent 62%,
    rgba(48, 193, 201, 0.28) 82%,
    transparent 100%
  );
  filter: blur(16px);
  animation: spin 9s linear infinite;
}

.hero-glow-orb {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 193, 201, 0.75) 0%, rgba(48, 193, 201, 0.15) 45%, transparent 70%);
  filter: blur(4px);
  animation: orbit 8s linear infinite;
}

.hero-glow-orb--2 {
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(126, 231, 238, 0.65) 0%, transparent 70%);
  animation: orbitReverse 11s linear infinite;
}

.hero-ring,
.hero-ring-2 {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(48, 193, 201, 0.35);
}

.hero-ring {
  width: 430px;
  height: 430px;
  box-shadow: 0 0 40px rgba(48, 193, 201, 0.18), inset 0 0 40px rgba(48, 193, 201, 0.08);
}

.hero-ring-2 {
  width: 500px;
  height: 500px;
  border-style: dashed;
  border-color: rgba(48, 193, 201, 0.22);
  animation: spin 28s linear infinite;
}

.hero-visual img {
  width: min(560px, 112%);
  position: relative;
  z-index: 2;
  background: transparent;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.72));
  animation: heroFloat 5s ease-in-out infinite;
}

.hero-shadow {
  position: absolute;
  bottom: 28px;
  width: 280px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 70%);
  z-index: 1;
  animation: shadowPulse 5s ease-in-out infinite;
}

.hero-badge {
  position: absolute;
  right: 8%;
  bottom: 18%;
  z-index: 3;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--teal-bright);
  background: rgba(10, 20, 23, 0.72);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes shadowPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(0.82); opacity: 0.5; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes glowDrift {
  0%, 100% { transform: translate(-22px, 10px) scale(1); }
  50% { transform: translate(26px, -16px) scale(1.12); }
}

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

@keyframes orbitReverse {
  from { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
  to { transform: rotate(0deg) translateX(160px) rotate(0deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

.reveal.in {
  animation: fadeUp 0.7s ease forwards;
}

html:not(.js) .snake-line {
  stroke-dashoffset: 0;
}

html:not(.js) .snake-dot {
  opacity: 1;
  transform: scale(1);
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 10px 0 46px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(48, 193, 201, 0.45);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28), 0 0 24px rgba(48, 193, 201, 0.12);
}

.stat svg {
  width: 22px;
  height: 22px;
  stroke: var(--copper);
  fill: none;
  stroke-width: 1.8;
}

.stat b {
  display: block;
  font-family: Montserrat, sans-serif;
  font-size: 1.7rem;
  margin: 8px 0 2px;
}

.stat span {
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* ===== FEATURED ===== */
.section {
  padding: 54px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-top: 6px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.work-card {
  position: relative;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 210px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(48, 193, 201, 0.12);
}

.work-card:hover img {
  transform: scale(1.06);
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 38%, rgba(8, 17, 21, 0.92));
  pointer-events: none;
}

.work-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.45s ease;
}

.work-card figcaption {
  position: absolute;
  left: 16px;
  right: 58px;
  bottom: 14px;
  z-index: 1;
}

.work-card h3 {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.work-card p {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 4px;
}

.icon-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--teal);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--teal-bright);
  transform: translateX(3px);
}

/* ===== PROCESS ===== */
.process {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(48, 193, 201, 0.07), transparent 52%),
    var(--bg-2);
  overflow: hidden;
}

.process-head {
  margin-bottom: 18px;
}

.process-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  grid-template-rows: 80px minmax(108px, 1fr) 80px;
  min-height: 390px;
  margin-top: 2px;
  padding: 0 0 10px;
}

.process-snake {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.snake-line {
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.process-board.in .snake-line {
  animation: snakeDraw 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.process-board.in .snake-dot {
  animation: snakeDot 0.4s ease 0.55s forwards;
}

@keyframes snakeDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes snakeDot {
  to { opacity: 1; transform: scale(1); }
}

.snake-dot {
  fill: var(--copper);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.4);
}

.pstep {
  position: relative;
  z-index: 1;
  text-align: center;
  min-width: 0;
}

.pstep--1 {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  padding-left: 6px;
}

.pstep--2 {
  grid-column: 2;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 72px;
}

.pstep--3 {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  padding-right: 6px;
}

.step-icon {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--copper);
  display: grid;
  place-items: center;
  background: #101d23;
  color: var(--copper);
}

.step-icon svg {
  width: 32px;
  height: 32px;
}

.pstep-copy {
  padding: 12px 6px 0;
}

.pstep--2 .pstep-copy {
  padding: 0 8px;
}

.pstep h3 {
  font-size: 0.8rem;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.pstep p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
  max-width: 24ch;
  margin-inline: auto;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 16px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.panel:hover {
  transform: translateY(-4px);
  border-color: rgba(48, 193, 201, 0.35);
}

.panel p {
  color: var(--muted);
  margin-top: 14px;
}

.partners {
  margin-top: 28px;
  color: var(--teal);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.partners span {
  display: block;
  margin-top: 8px;
  color: #c5d0d4;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: none;
  font-size: 0.92rem;
}

.side-cards {
  display: grid;
  gap: 16px;
}

.mini h3 {
  font-size: 1rem;
  margin: 10px 0 8px;
}

.check {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212, 138, 92, 0.15);
  color: var(--copper);
  display: grid;
  place-items: center;
}

/* ===== PORTFOLIO ===== */
.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.arrows {
  display: flex;
  gap: 8px;
}

.arrows button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--teal);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.arrows button:hover {
  background: var(--teal-bright);
  transform: scale(1.06);
}

.carousel {
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
  cursor: grab;
}

.carousel:active {
  cursor: grabbing;
}

.carousel img {
  -webkit-user-drag: none;
  user-select: none;
}

.case-grid {
  display: flex;
  gap: 16px;
  will-change: transform;
}

.case-page {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.case-card {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.case-page.is-on .case-card,
.quote-page.is-on .quote {
  animation: slideContent 0.5s ease;
}

.case-page.is-on .case-card:nth-child(2),
.quote-page.is-on .quote:nth-child(2) { animation-delay: 0.05s; }
.case-page.is-on .case-card:nth-child(3),
.quote-page.is-on .quote:nth-child(3) { animation-delay: 0.1s; }
.case-page.is-on .case-card:nth-child(4) { animation-delay: 0.15s; }

@keyframes slideContent {
  from { opacity: 0.35; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.case-card h3 {
  color: var(--teal);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
}

.ba figure {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.ba img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.ba figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  background: rgba(10, 20, 23, 0.7);
  padding: 3px 7px;
  border-radius: 4px;
}

.swap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  z-index: 2;
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.78rem;
}

.case-meta b {
  color: var(--teal);
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.case-meta span {
  color: var(--muted);
}

/* ===== TESTIMONIALS ===== */
.praise-track {
  display: flex;
  gap: 16px;
  will-change: transform;
}

.quote-page {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  min-height: 230px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.quote:hover {
  transform: translateY(-6px);
  border-color: rgba(48, 193, 201, 0.4);
}

.quote .marks {
  color: var(--teal);
  font-size: 2.4rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.quote p {
  color: #d5dee1;
  font-size: 0.92rem;
  margin: 8px 0 18px;
}

.who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.who img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
}

.who b {
  display: block;
  font-size: 0.9rem;
}

.who span {
  color: var(--muted);
  font-size: 0.75rem;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #3a4d54;
  cursor: pointer;
}

.dots button.active {
  background: var(--teal);
  width: 18px;
  border-radius: 8px;
}

/* ===== TOOLS ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.tool {
  background: #101d22;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  color: #dce7ea;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  text-align: center;
  padding: 0 0 10px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tool:hover {
  transform: translateY(-6px);
  border-color: rgba(48, 193, 201, 0.4);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.tool img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  margin-bottom: 8px;
}

.tool small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  background: #081115;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}

.site-footer h3 {
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.site-footer a,
.site-footer p {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  margin: 6px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tagline {
  color: var(--muted);
  font-size: 0.78rem;
}

.tagline i {
  color: var(--red);
  font-style: normal;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 12px;
  width: auto;
  max-width: 1180px;
  margin-inline: auto;
  height: var(--nav-h);
  background: rgba(10, 20, 23, 0.86);
  border: 1px solid rgba(48, 193, 201, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
  z-index: 50;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  animation: navIn 0.7s ease 0.2s both;
  min-width: 0;
  overflow: hidden;
}

.bottom-nav .brand {
  gap: 10px;
  flex-shrink: 0;
}

.bottom-nav .brand-mark,
.bottom-nav img {
  width: 40px;
  height: 40px;
}

.bottom-nav .logo-type {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.nav-short {
  display: none;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #c5d0d4;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(48, 193, 201, 0.1);
}

.nav-links .portal-btn {
  background: var(--copper);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  margin-left: 6px;
}

.nav-links .portal-btn:hover {
  background: var(--copper-2);
  color: var(--white);
}

/* ===== PORTAL MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 12, 0.72);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 20px;
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(420px, 100%);
  background: #102026;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.modal-card > img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  background: #001333;
}

.modal-card h2 {
  font-size: 1.3rem;
  margin: 8px 0 6px;
}

.modal-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.modal-card label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--teal-2);
  margin: 12px 0 6px;
}

.modal-card input {
  width: 100%;
  background: #0a161a;
  border: 1px solid var(--line);
  color: var(--white);
  border-radius: 8px;
  padding: 12px;
}

.modal-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

.close-x {
  float: right;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
}

/* ===== PAGE LOADER ===== */
html.is-loading,
html.is-loading body {
  overflow: hidden;
  height: 100%;
}

html.is-loading .topbar {
  opacity: 0;
}

html.is-loading .bottom-nav {
  animation: none;
  opacity: 0;
}

.page-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  place-items: center;
  background: var(--bg);
  clip-path: inset(0);
  transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.18, 1);
}

html.js .page-loader {
  display: grid;
}

.loader-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(48, 193, 201, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 193, 201, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 42%, #000 30%, transparent 72%);
  pointer-events: none;
}

.loader-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(48, 193, 201, 0.1), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.45), transparent 48%);
  pointer-events: none;
}

.loader-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 700px;
}

.loader-mark-stage {
  position: relative;
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
}

.loader-mark-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 193, 201, 0.32), transparent 70%);
  transform: translate(-50%, -50%);
  animation: loaderGlow 2.2s ease-in-out infinite;
}

.loader-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 196px;
  height: 196px;
  border: 1px dashed rgba(48, 193, 201, 0.32);
  border-radius: 50%;
  animation: loaderSpin 9s linear infinite;
}

.loader-orbit--2 {
  width: 236px;
  height: 236px;
  border-color: rgba(212, 138, 92, 0.22);
  animation-duration: 14s;
  animation-direction: reverse;
}

.loader-mark-wrap {
  position: relative;
  width: 124px;
  height: 124px;
  border-radius: 31px;
  overflow: hidden;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  background: #001333;
  box-shadow:
    0 0 0 1px rgba(48, 193, 201, 0.28),
    0 18px 50px rgba(0, 0, 0, 0.45),
    0 0 70px rgba(48, 193, 201, 0.16);
  animation: markIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-loader .loader-mark {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #001333;
  box-shadow: none;
  max-width: none;
  animation: markReveal 1.05s cubic-bezier(0.4, 0, 0.2, 1) 0.22s both;
}

.loader-laser {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7ee7ee, transparent);
  box-shadow: 0 0 16px #30c1c9;
  z-index: 2;
  animation: loaderLaser 2.15s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
  pointer-events: none;
}

.page-loader .loader-word {
  display: flex;
  line-height: 1;
  margin-top: 6px;
  font-size: clamp(2.05rem, 7vw, 3.45rem);
}

.lw {
  display: inline-block;
  position: relative;
  opacity: 0;
  transform-origin: 50% 80%;
  animation: lwIn 0.58s cubic-bezier(0.16, 1, 0.3, 1) calc(0.85s + var(--i) * 0.08s) both;
}

.page-loader .logo-type .i::after {
  animation: tittleDrop 0.48s cubic-bezier(0.2, 1.4, 0.3, 1) 1.28s both;
}

.page-loader .logo-type .q::before {
  animation: qArc 0.55s ease 1.36s both;
}

.page-loader .loader-kicker {
  margin-top: 14px;
  letter-spacing: 0.22em;
  opacity: 0;
  animation: kickerIn 0.55s ease 1.55s both;
}

.loader-track {
  width: 176px;
  height: 2px;
  margin-top: 26px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(48, 193, 201, 0.14);
}

.loader-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  box-shadow: 0 0 12px var(--teal);
  animation: loaderFill 2.25s cubic-bezier(0.4, 0, 0.2, 1) 0.28s forwards;
}

.page-loader.is-done {
  pointer-events: none;
  clip-path: inset(100% 0 0 0);
}

.page-loader.is-done::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  box-shadow: 0 0 18px var(--teal), 0 0 40px rgba(48, 193, 201, 0.5);
  animation: exitScan 0.9s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  z-index: 3;
}

.page-loader.is-done .loader-core {
  animation: coreOut 0.5s cubic-bezier(0.6, 0, 1, 1) forwards;
}

@keyframes markIn {
  from { opacity: 0; transform: scale(0.72) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}

@keyframes markReveal {
  from { clip-path: inset(100% 0 0 0); filter: brightness(1.8) saturate(0.7); }
  to { clip-path: inset(0); filter: none; }
}

@keyframes loaderLaser {
  0% { top: -4%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 104%; opacity: 0; }
}

@keyframes lwIn {
  from { opacity: 0; transform: translateY(22px) rotateX(50deg); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes tittleDrop {
  from { opacity: 0; transform: translateX(-50%) translateY(-16px) scale(0.2); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes qArc {
  from { opacity: 0; transform: rotate(-110deg); }
  to { opacity: 1; transform: rotate(0deg); }
}

@keyframes kickerIn {
  from { opacity: 0; letter-spacing: 0.42em; }
  to { opacity: 1; letter-spacing: 0.22em; }
}

@keyframes loaderFill {
  to { width: 100%; }
}

@keyframes loaderGlow {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes loaderSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes coreOut {
  to { opacity: 0; transform: scale(0.9) translateY(-16px); filter: blur(10px); }
}

@keyframes exitScan {
  from { top: 0; opacity: 1; }
  to { top: 100%; opacity: 0.35; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats,
  .work-grid,
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .step-icon {
    width: 68px;
    height: 68px;
  }

  .process-board {
    min-height: 340px;
    grid-template-rows: 74px minmax(96px, 1fr) 74px;
  }

  .pstep--2 {
    padding-top: 58px;
  }

  .hero-visual {
    min-height: 440px;
    order: -1;
  }

  .hero-ring { width: 320px; height: 320px; }
  .hero-ring-2 { width: 380px; height: 380px; }
  .hero-glow { width: 400px; height: 400px; }
  .hero-glow-sweep { width: 420px; height: 420px; }
  .hero-visual img { width: min(460px, 100%); }

  .bottom-nav .brand-text .brand-sub {
    display: none;
  }

  .bottom-nav {
    padding: 0 12px;
  }

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

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

@media (max-width: 800px) {
  :root {
    --nav-h: 62px;
  }

  .process-head h2 {
    font-size: 1.32rem;
    line-height: 1.18;
  }

  .bottom-nav {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 0 8px 0 10px;
    height: 62px;
    gap: 6px;
  }

  .bottom-nav .brand-text {
    display: none;
  }

  .bottom-nav .brand-mark,
  .bottom-nav img {
    width: 32px;
    height: 32px;
  }

  .nav-long {
    display: none;
  }

  .nav-short {
    display: inline;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    letter-spacing: 0.06em;
    padding: 8px 7px;
    font-size: 0.62rem;
  }

  .nav-links .portal-btn {
    padding: 8px 10px;
    margin-left: 2px;
  }

  .process-board {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    grid-template-rows: none;
    padding: 4px 0 0;
  }

  .process-snake {
    display: none;
  }

  .pstep--2 .step-icon--base {
    display: none;
  }

  .pstep--1,
  .pstep--2,
  .pstep--3 {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 14px;
    align-items: center;
    text-align: left;
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    width: auto;
    max-width: none;
    padding: 0;
    position: relative;
  }

  .pstep--2 {
    justify-content: unset;
    gap: 0;
  }

  .pstep + .pstep {
    margin-top: 18px;
  }

  .pstep:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 58px;
    bottom: -18px;
    width: 1.5px;
    background: linear-gradient(var(--copper), rgba(212, 138, 92, 0.25));
    z-index: 0;
  }

  .pstep:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 100%;
    width: 7px;
    height: 7px;
    margin: 5.5px 0 0;
    border-radius: 50%;
    background: var(--copper);
    box-shadow: 0 0 0 3px var(--bg-2);
    z-index: 1;
    opacity: 1;
  }

  .step-icon {
    width: 58px;
    height: 58px;
    position: relative;
    z-index: 1;
  }

  .step-icon svg {
    width: 24px;
    height: 24px;
  }

  .pstep-copy,
  .pstep--2 .pstep-copy {
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .pstep h3 {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .pstep p {
    font-size: 0.74rem;
    max-width: none;
    margin: 0;
    line-height: 1.45;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 24px, 1180px);
  }

  .stats,
  .work-grid {
    grid-template-columns: 1fr;
  }

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

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

  .top-actions {
    display: none;
  }

  .bottom-nav {
    padding: 0 8px;
    height: 62px;
  }

  .nav-links a {
    letter-spacing: 0.04em;
    padding: 8px 6px;
    font-size: 0.58rem;
  }

  .hero h1 {
    max-width: none;
  }

  .ba img {
    height: 120px;
  }

  .loader-core {
    width: min(100%, 340px);
    padding: 0 16px;
    box-sizing: border-box;
  }

  .loader-mark-stage {
    width: 168px;
    height: 168px;
  }

  .loader-mark-stage::before {
    width: 118px;
    height: 118px;
  }

  .page-loader .loader-mark-wrap {
    width: 84px;
    height: 84px;
    border-radius: 21px;
  }

  .loader-orbit {
    width: 132px;
    height: 132px;
  }

  .loader-orbit--2 {
    width: 160px;
    height: 160px;
  }

  .page-loader .loader-word {
    font-size: 1.7rem;
  }

  .page-loader .loader-kicker {
    letter-spacing: 0.12em;
    font-size: 0.55rem;
    text-align: center;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.is-loading,
  html.is-loading body {
    overflow: auto;
    height: auto;
  }

  .page-loader {
    display: none !important;
  }

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

  .snake-line {
    stroke-dashoffset: 0;
  }

  .snake-dot {
    opacity: 1;
    transform: scale(1);
  }
}
