:root {
  --bg: #0a0d0f;
  --surface: #12171a;
  --surface-2: #171d20;
  --line: rgba(237, 239, 238, 0.08);
  --text: #edeeee;
  --muted: #8b9598;
  --accent: #3fc7ae;
  --accent-dim: rgba(63, 199, 174, 0.14);
  --accent-glow: rgba(63, 199, 174, 0.35);
  --accent-2: #4a7ce0;
  --accent-2-dim: rgba(74, 124, 224, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  position: relative;
}

/* focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 13, 15, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 16px;
  color: var(--muted);
}

.nav-links a {
  transition: color .25s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid rgb(63 199 174);
  transition: all .3s;
  cursor: pointer;
  background: none;
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: #06110f;
  border-color: var(--accent);
}

.btn-primary:hover {
  box-shadow: 0 0 0 6px var(--accent-dim);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

a.btn.btn-ghost {
    padding: 7px 20px;
}

.hero-ct a.btn-primary img {
    width: 28px;
}

a.btn {
    font-size: 16px;
    font-weight: 500;
}

.hero-ct {
    display: flex;
    justify-content: center;
    gap: 37px;
    align-items: center;
}

.logo.website-logo {
    max-width: 236px;
}

@media(max-width:860px) {
  .nav-links {
    display: none;
  }
}

/* ---------- VITAL LINE (signature motif) ---------- */
.vital-divider {
  width: 100%;
  height: 44px;
  position: relative;
  overflow: hidden;
}

.vital-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.vital-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  opacity: 0.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- HERO ---------- */
.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-pattern {
  position: absolute;
  inset: -1px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, black 20%, transparent 75%);
  opacity: 0.6;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px) hue-rotate(var(--hue, 0deg));
  opacity: 0.55;
  will-change: transform, filter;
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: 8%;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
}

.orb-2 {
  width: 460px;
  height: 460px;
  top: -80px;
  right: 6%;
  background: radial-gradient(circle at 60% 40%, var(--accent-2), transparent 70%);
  opacity: 0.4;
}

.orb-3 {
  width: 340px;
  height: 340px;
  top: 220px;
  left: 38%;
  background: radial-gradient(circle at 50% 50%, var(--accent), transparent 70%);
  opacity: 0.3;
}

.hero-blob {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 520px;
  z-index: 0;
  opacity: 0.9;
  filter: hue-rotate(var(--hue2, 0deg));
}

.noise-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
}

.noise-fade-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 160px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 80%;
  margin: 0 auto;

}

.hero p.sub {
  margin: 26px auto 0;
  max-width: 65%;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
  padding-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-visual {
  margin: 70px auto 0;
  max-width: 820px;
  aspect-ratio: 16/9;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(23, 29, 32, 0.75), rgba(18, 23, 26, 0.75));
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
}

.hero-visual .play {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.hero-visual .play::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.6;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: pulseRing 2.4s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: .6;
  }

  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.hero-visual .ecg-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
}

/* ---------- SECTION HEAD ---------- */
.sec-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.sec-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin-top: 14px;
  line-height: 1.16;
}

.sec-head p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
}

.sec-pad {
  padding: 110px 0;
}

/* ---------- SERVICES BENTO ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .4s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 199, 174, 0.35);
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.card.anchor {
  grid-column: span 3;
  grid-row: span 2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}

.card.anchor h3 {
  font-size: 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.card.anchor p {
  font-size: 15px;
}

.card.s1 {
  grid-column: span 3;
}

.card.s2 {
  grid-column: span 3;
}

.card.s3 {
  grid-column: span 2;
}

.card.s4 {
  grid-column: span 2;
}

.card.s5 {
  grid-column: span 2;
}

.card.s6 {
  grid-column: span 6;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}

.card.s6 .icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

@media(max-width:860px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .card.anchor,
  .card.s1,
  .card.s2,
  .card.s3,
  .card.s4,
  .card.s5,
  .card.s6 {
    grid-column: span 1;
  }

  .card.s6 {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- CASE STUDY ---------- */
.case-study {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.case-left {
  background: var(--surface);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-tag {
  display: inline-block;
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
  border: 1px solid rgba(63, 199, 174, 0.3);
  padding: 5px 12px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 22px;
}

.case-left h3 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.case-left .meta {
  color: var(--muted);
  font-size: 14px;
}

.case-right {
  padding: 48px 44px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-right h4 {
  font-size: 19px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  margin-bottom: 16px;
}

.case-right p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 22px;
}

.case-right .read {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media(max-width:780px) {
  .case-study {
    grid-template-columns: 1fr;
  }
}

/* ---------- PORTFOLIO STRIPS ---------- */
.portfolio-strip {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 38px;
  gap: 20px;
  flex-wrap: wrap;
}

.strip-head h3 {
  font-size: 26px;
}

.strip-head .count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

/* website portfolio - browser mockups */
.browser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.browser-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transform-style: preserve-3d;
  transition: transform .5s;
}

.browser-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  border-color: rgba(63, 199, 174, 0.3);
}

.browser-top {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  background: var(--surface-2);
}

.browser-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.browser-body {
  aspect-ratio: 16/11;
  background: linear-gradient(160deg, #182022, #0e1214);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
}

.browser-label {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
}

/* graphics - masonry */
.masonry {
  columns: 3;
  column-gap: 18px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12.5px;
  font-family: 'IBM Plex Mono', monospace;
  transition: transform .4s, border-color .4s;
}

.masonry-item:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 199, 174, 0.3);
}

.masonry-item.h1 {
  height: 180px;
}

.masonry-item.h2 {
  height: 260px;
}

.masonry-item.h3 {
  height: 210px;
}

@media(max-width:780px) {
  .masonry {
    columns: 2;
  }

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

@media(max-width:520px) {
  .masonry {
    columns: 1;
  }

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

/* thumbnail portfolio - dense grid */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.thumb-item {
  aspect-ratio: 16/9;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.thumb-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity .35s;
  mix-blend-mode: overlay;
}

.thumb-item:hover::after {
  opacity: 0.35;
}

.thumb-item:hover {
  transform: scale(1.02);
}

.thumb-item {
  transition: transform .35s;
}

@media(max-width:780px) {
  .thumb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* video portfolio - filmstrip */
.filmstrip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: thin;
}

.filmstrip::-webkit-scrollbar {
  height: 5px;
}

.filmstrip::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}

.film-card {
  flex: 0 0 260px;
  aspect-ratio: 9/16;
  border-radius: 14px;
  background: linear-gradient(165deg, var(--surface-2), #0d1112);
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}

.film-card .play-mini {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.85;
}

.film-card .film-label {
  font-size: 12.5px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  position: relative;
  z-index: 2;
}

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.team-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(165deg, var(--surface-2), #0d1112);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
}

.team-info {
  padding: 22px;
}

.team-info h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-info .role {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 10px;
}

.team-info .desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

@media(max-width:780px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA FOOTER ---------- */
.cta-final {
  padding: 130px 0;
  text-align: center;
  position: relative;
}

.cta-final h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.15;
}

.cta-final p {
  color: var(--muted);
  margin: 20px auto 36px;
  max-width: 460px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

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

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 8px 2px var(--accent-glow);
}

/* ---------- REUSABLE ATMOSPHERE (grid + orbs, for non-hero sections) ---------- */
.atmosphere {
  position: absolute;
  inset: -160px 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.atmosphere::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  z-index: 1;
}

.atmosphere::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 1;
}

.atmosphere .grid-pattern {
  opacity: 0.4;
}

.atmosphere .orb {
  opacity: 0.32;
}

.sec-relative {
  position: relative;
  z-index: 2;
}

/* ---------- GLOBAL SCROLL SPOTLIGHT ---------- */
.site-spotlight {
  position: fixed;
  top: -30%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

