:root {
  --navy: #061421;
  --navy-soft: #0b1f31;
  --ink: #eaf4fb;
  --muted: #9eb6c6;
  --line: rgba(190, 223, 242, 0.16);
  --cyan: #58d7ff;
  --aqua: #6ef0cf;
  --amber: #d7b36a;
  --paper: #f7fbfd;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 215, 255, 0.12), transparent 28rem),
    linear-gradient(135deg, #061421 0%, #0b1f31 46%, #111922 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

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

img,
canvas {
  -webkit-touch-callout: none;
}

.signal-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.52;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(88, 215, 255, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(6, 20, 33, 0.72);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.18);
}

.site-nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(88, 215, 255, 0.1);
  color: var(--paper);
  outline: none;
}

.site-nav .nav-action {
  background: var(--paper);
  color: var(--navy);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(6, 20, 33, 0.78);
  color: var(--paper);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 56px;
  align-items: end;
  min-height: calc(100vh - 86px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 72px;
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(76px, 13vw, 172px);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 34px;
  color: #d7e8f2;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  border-color: transparent;
  background: var(--paper);
  color: var(--navy);
}

.button.ghost {
  background: rgba(6, 20, 33, 0.52);
  color: var(--paper);
}

.hero-panel,
.service-card,
.use-case,
.project-card,
.principles,
.legal-column {
  border: 1px solid var(--line);
  background: rgba(6, 20, 33, 0.68);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
}

.metric {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.metric:last-child {
  border-bottom: 0;
}

.metric span,
.service-number {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin: 9px 0 8px;
  font-size: 20px;
}

.metric p,
.service-card p,
.use-case p,
.project-card p,
.approach-copy p,
.principles p,
.legal-column p {
  color: var(--muted);
  line-height: 1.68;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 620px;
}

h2 {
  margin-bottom: 0;
  color: var(--paper);
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.service-card {
  min-height: 330px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(88, 215, 255, 0.42);
  background: rgba(9, 33, 52, 0.84);
}

.service-card h3 {
  margin: 46px 0 16px;
  font-size: 23px;
  line-height: 1.12;
}

.use-case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.use-case {
  position: relative;
  min-height: 245px;
  padding: 28px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.use-case::after {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 86px;
  height: 86px;
  border-right: 1px solid rgba(88, 215, 255, 0.18);
  border-bottom: 1px solid rgba(88, 215, 255, 0.18);
  content: "";
}

.use-case:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 240, 207, 0.34);
  background: rgba(9, 33, 52, 0.78);
}

.use-case span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.use-case h3 {
  margin: 38px 0 14px;
  font-size: 24px;
  line-height: 1.12;
}

.portfolio-heading {
  grid-template-columns: 1fr auto;
}

.carousel-controls {
  display: inline-flex;
  gap: 8px;
  justify-self: end;
}

.carousel-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(6, 20, 33, 0.74);
  color: var(--paper);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  border-color: rgba(88, 215, 255, 0.42);
  background: rgba(9, 33, 52, 0.9);
  outline: none;
  transform: translateY(-2px);
}

.project-carousel {
  display: grid;
  gap: 16px;
  overflow: hidden;
}

.project-track {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.project-track::-webkit-scrollbar {
  display: none;
}

.project-card {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: stretch;
  padding: 34px;
  overflow: hidden;
  scroll-snap-align: start;
}

.project-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(190, 223, 242, 0.2);
  background: rgba(6, 20, 33, 0.76);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.project-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  content: "";
}

.project-badge-personal {
  border-color: rgba(110, 240, 207, 0.3);
  color: #dffbf4;
}

.project-badge-personal::before {
  background: var(--aqua);
  box-shadow: 0 0 16px rgba(110, 240, 207, 0.7);
}

.project-badge-client {
  border-color: rgba(215, 179, 106, 0.36);
  color: #fff1cf;
}

.project-badge-client::before {
  background: var(--amber);
  box-shadow: 0 0 16px rgba(215, 179, 106, 0.68);
}

.project-kicker {
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
}

.project-logo-frame {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 26px;
  border: 1px solid rgba(88, 215, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(6, 20, 33, 0.18), rgba(88, 215, 255, 0.09)),
    rgba(255, 255, 255, 0.03);
  isolation: isolate;
  overflow: hidden;
}

.project-logo-frame::before,
.project-logo-frame::after {
  position: absolute;
  content: "";
  inset: 16px;
  border: 1px solid rgba(110, 240, 207, 0.16);
  opacity: 0.78;
  pointer-events: none;
}

.project-logo-frame::after {
  inset: auto 22px 22px auto;
  width: 92px;
  height: 92px;
  border-top: 0;
  border-left: 0;
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(88, 215, 255, 0.18) 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 0 42%, rgba(88, 215, 255, 0.18) 42% 58%, transparent 58%);
}

.project-logo {
  display: block;
  width: min(100%, 440px);
  max-height: 260px;
  object-fit: contain;
  filter:
    saturate(0.92)
    contrast(1.04)
    drop-shadow(0 22px 42px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 24px rgba(88, 215, 255, 0.12));
  transform: translateZ(0);
  transition: transform 220ms ease, filter 220ms ease;
}

.project-logo-wide {
  width: min(100%, 510px);
  max-height: 210px;
}

.project-logo-mark {
  width: min(72%, 280px);
  max-height: 250px;
}

.project-logo-frame:hover .project-logo,
.project-logo-frame:focus-visible .project-logo {
  transform: scale(1.025);
  filter:
    saturate(1)
    contrast(1.08)
    drop-shadow(0 26px 52px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 34px rgba(88, 215, 255, 0.22));
}

.project-logo-frame:focus-visible,
.project-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.project-content {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: center;
}

.project-link {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  margin-top: 10px;
  color: var(--cyan);
  font-weight: 800;
}

.project-link:hover {
  color: var(--paper);
}

.carousel-dots {
  display: inline-flex;
  justify-content: center;
  gap: 9px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(88, 215, 255, 0.36);
  border-radius: 999px;
  background: rgba(88, 215, 255, 0.08);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.is-active {
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(88, 215, 255, 0.54);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

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

.approach-copy {
  padding-right: 48px;
}

.approach-copy p {
  max-width: 620px;
  margin-top: 26px;
  font-size: 18px;
}

.principles {
  display: grid;
}

.principles div {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.principles div:last-child {
  border-bottom: 0;
}

.principles span {
  display: block;
  width: 34px;
  height: 2px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--cyan), var(--aqua));
}

.principles strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-link {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0 22px;
  background: var(--cyan);
  color: #02101b;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
}

.contact-link:hover,
.contact-link:focus-visible {
  outline: none;
  background: var(--paper);
}

.inline-email-reveal {
  display: inline;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.inline-email-reveal:hover,
.inline-email-reveal:focus-visible,
.inline-email-link:hover,
.inline-email-link:focus-visible {
  color: var(--paper);
  outline: none;
}

.inline-email-link {
  color: var(--cyan);
  font-weight: 800;
}

.legal-page {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.legal-hero {
  margin-bottom: 34px;
}

.legal-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.95;
}

.legal-hero p {
  max-width: 740px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-content article {
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(6, 20, 33, 0.68);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
}

.legal-content p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-content a {
  color: var(--cyan);
  font-weight: 800;
}

.legal-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.legal-column {
  padding: 30px;
}

.legal-column h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 3vw, 36px);
}

.legal-column a {
  color: var(--cyan);
}

.privacy-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.privacy-list div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.privacy-list dt {
  margin-bottom: 6px;
  color: var(--paper);
  font-weight: 800;
}

.privacy-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-start;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer > div {
  display: grid;
  gap: 8px;
  width: 100%;
}

.site-footer > div span:first-child {
  color: var(--paper);
  font-weight: 800;
}

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

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
  outline: none;
}

.netika-made-button {
  --round: 12px;
  --glow: rgba(88, 215, 255, 0.68);
  --glow-soft: rgba(110, 240, 207, 0);
  --base: #0b4055;
  --base-2: #061421;
  --text: #f7fbfd;
  --fold: #d7f7ff;
  position: relative;
  display: inline-flex;
  min-height: 56px;
  min-width: 205px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: var(--round);
  background:
    radial-gradient(66% 72% at 50% 110%, var(--glow) 0%, var(--glow-soft) 100%),
    linear-gradient(180deg, var(--base), var(--base-2));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(88, 215, 255, 0.1);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  isolation: isolate;
  padding: 0 18px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.netika-made-button::before,
.netika-made-button::after {
  position: absolute;
  content: "";
  border-radius: calc(var(--round) - var(--space));
  inset: var(--space);
}

.netika-made-button::before {
  --space: 1px;
  z-index: 0;
  background: linear-gradient(178deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.netika-made-button::after {
  --space: 2px;
  z-index: 0;
  background:
    radial-gradient(66% 72% at 50% 110%, var(--glow) 0%, var(--glow-soft) 100%),
    linear-gradient(180deg, var(--base), var(--base-2));
}

.netika-made-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(88, 215, 255, 0.18);
}

.netika-made-button:active {
  transform: scale(0.96);
}

.netika-made-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(88, 215, 255, 0.28),
    0 22px 52px rgba(0, 0, 0, 0.42);
}

.credit-fold {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 18px;
  height: 18px;
  border-bottom-left-radius: 9px;
  border-top-right-radius: var(--round);
  background:
    radial-gradient(90% 75% at 58% 20%, rgba(255, 255, 255, 0.55), transparent 64%),
    var(--glow);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transition: margin 300ms ease;
}

.credit-fold::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 150%;
  height: 150%;
  background: var(--fold);
  content: "";
  pointer-events: none;
  transform: rotate(45deg) translate(0, -18px);
}

.netika-made-button:hover .credit-fold {
  margin-top: -18px;
  margin-right: -18px;
}

.credit-points {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.credit-points i {
  position: absolute;
  bottom: -10px;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  animation: credit-float infinite ease-in-out;
}

.credit-points i:nth-child(1) {
  left: 10%;
  animation-delay: 0.2s;
  animation-duration: 2.35s;
}

.credit-points i:nth-child(2) {
  left: 26%;
  opacity: 0.7;
  animation-delay: 0.5s;
  animation-duration: 2.5s;
}

.credit-points i:nth-child(3) {
  left: 42%;
  opacity: 0.8;
  animation-delay: 0.1s;
  animation-duration: 2.2s;
}

.credit-points i:nth-child(4) {
  left: 58%;
  opacity: 0.6;
  animation-duration: 2.05s;
}

.credit-points i:nth-child(5) {
  left: 74%;
  animation-delay: 1.1s;
  animation-duration: 1.9s;
}

.credit-points i:nth-child(6) {
  left: 88%;
  opacity: 0.7;
  animation-delay: 0.3s;
  animation-duration: 2.4s;
}

@keyframes credit-float {
  0% {
    transform: translateY(0);
  }

  85% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: translateY(-58px);
  }
}

.credit-inner {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.credit-inner img {
  width: 22px;
  height: 22px;
}

.footer-credit {
  width: fit-content;
  justify-self: center;
  margin-top: 12px;
}

.site-version {
  color: var(--cyan);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .portfolio-heading,
  .project-card,
  .approach-section,
  .contact-section,
  .legal-section {
    grid-template-columns: 1fr;
  }

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

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .metric:last-child {
    border-right: 0;
  }

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

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

  .approach-copy {
    padding-right: 0;
  }

  .contact-section {
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 28px, 1180px);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 16px;
  }

  .hero,
  .section,
  .site-footer,
  .legal-page {
    width: min(100% - 28px, 1180px);
  }

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

  h1 {
    font-size: clamp(62px, 23vw, 112px);
  }

  .hero-panel,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card {
    min-height: auto;
  }

  .project-card {
    padding: 48px 18px 18px;
  }

  .project-logo-frame,
  .project-content {
    min-height: auto;
  }

  .contact-link {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
