

/* ---------- Reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand — purple / violet / lavender system */
  --blue:          #5B6CFF;
  --blue-bright:   #818CF8;
  --purple:        #7B3FE4;
  --purple-bright: #A855F7;
  --purple-dark:   #5B21B6;
  --lavender:      #C4B5FD;

  /* Gradients */
  --grad:          linear-gradient(135deg, #7B3FE4 0%, #A855F7 55%, #C4B5FD 100%);
  --grad-subtle:   linear-gradient(135deg, rgba(123,63,228,.14) 0%, rgba(196,181,253,.12) 100%);
  --grad-text:     linear-gradient(135deg, #C4B5FD 0%, #A855F7 100%);
  --grad-light:    linear-gradient(135deg, #FFFFFF 0%, #C4B5FD 100%);

  /* Glow */
  --glow-blue:     rgba(91,108,255,.25);
  --glow-purple:   rgba(123,63,228,.35);

  /* Backgrounds */
  --bg:            #08081A;
  --bg-1:          #0E0E26;
  --bg-2:          #14142E;
  --surface:       rgba(255,255,255,.045);
  --surface-hover: rgba(255,255,255,.08);

  /* Borders */
  --border:        rgba(255,255,255,.1);
  --border-accent: rgba(196,181,253,.4);

  /* Text */
  --text:          #F5F3FF;
  --text-muted:    rgba(245,243,255,.58);
  --text-dim:      rgba(245,243,255,.32);

  /* Layout */
  --max:           1180px;
  --work-max:      1320px;
  --pad-x:         clamp(1.5rem, 5vw, 4rem);
  --section-py:    clamp(3.5rem, 7vw, 6rem);

  /* Type */
  --font-display:  "Inter", sans-serif;
  --font-body:     "Inter", sans-serif;

  /* Radius */
  --r-sm:   10px;
  --r-md:   18px;
  --r-lg:   26px;
  --r-xl:   32px;
  --r-pill: 100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: var(--font-body); }

/* ---------- Typography helpers ---------- */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lavender);
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--lavender);
  opacity: .45;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--grad-light);
  border: none;
  border-radius: var(--r-pill);
  padding: .8rem 1.9rem;
  color: #0B0818;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 18px 50px rgba(196,181,253,.22);
  white-space: nowrap;
}
.btn-primary:hover { opacity: .92; transform: translateY(-2px); box-shadow: 0 22px 60px rgba(196,181,253,.32); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: transparent;
  border: 1px solid var(--border-accent);
  border-radius: var(--r-pill);
  padding: .75rem 1.8rem;
  color: var(--text);
  font-size: .88rem;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--surface-hover); transform: translateY(-2px); }

/* ---------- Nav ---------- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.1rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(8,8,26,.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .35s, backdrop-filter .35s, border-color .35s;
}
#nav.scrolled {
  background: rgba(8,8,26,.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img {
  height: clamp(30px, 4vw, 46px);
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all .25s;
}

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem var(--pad-x) 5rem;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  will-change: transform;
  animation: orbFloat 9s ease-in-out infinite;
}
.orb-1 {
  width: 52vw; height: 52vw;
  max-width: 660px; max-height: 660px;
  background: radial-gradient(circle, rgba(123,63,228,.55) 0%, rgba(123,63,228,.22) 45%, transparent 72%);
  top: 0%; right: 0%;
}
.orb-2 {
  width: 38vw; height: 38vw;
  max-width: 460px; max-height: 460px;
  background: radial-gradient(circle, rgba(29,78,216,.5) 0%, rgba(29,78,216,.16) 45%, transparent 72%);
  bottom: 2%; right: 16%;
  animation-delay: -4s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-22px) scale(1.04); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0;
}

.hero-eyebrow {
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lavender);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp .8s .15s forwards;
}
.hero-eyebrow .ey-line {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--lavender);
  opacity: .5;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.4vw, 5.7rem);
  font-weight: 800;
  letter-spacing: -.052em;
  line-height: .98;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp .9s .3s forwards;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  opacity: 0;
  animation: fadeUp .9s .45s forwards;
}
.hero-tagline-part {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-tagline-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--purple-bright);
  flex-shrink: 0;
}

.hero-sub {
  max-width: 500px;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp .9s .6s forwards;
}

.hero-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  opacity: 0;
  animation: fadeUp .9s .75s forwards;
}

/* Floating glass card — signature hero element, built from the Co-nnect/Co-llab/Co-mmit pillars */
.hero-card-wrap {
  display: flex;
  justify-content: center;
}
.glass-card {
  width: min(100%, 400px);
  padding: 1.5rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 30px 100px rgba(0,0,0,.4);
}
.hero-glass-card {
  transform: rotate(2.5deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.hero-glass-card:hover { transform: rotate(0deg) translateY(-4px); }

.glass-card-header {
  display: flex;
  gap: .45rem;
  margin-bottom: 1.5rem;
}
.glass-card-header span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
}
.glass-card-header span:first-child { background: var(--lavender); }

.glass-metric {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.055);
}
.glass-metric + .glass-metric { margin-top: .85rem; }
.glass-metric p {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: .4rem;
}
.glass-metric strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  display: block;
}

.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
}
.scroll-track {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--purple-bright), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.15); }
}

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

/* ---------- Ticker ---------- */
.ticker-wrap {
  overflow: hidden;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 28s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.75rem;
  white-space: nowrap;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ticker-gem {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Shared section ---------- */
.section {
  padding: var(--section-py) var(--pad-x);
}
.section--alt { background: var(--bg-1); }
.section--dark { background: var(--bg); }
.section--compact {
  padding: clamp(2.75rem, 5vw, 4.5rem) var(--pad-x);
}
.section--tight {
  padding: clamp(2.25rem, 4vw, 3.5rem) var(--pad-x);
}

/* ---------- About / Who we are ---------- */
.about-full {
  max-width: 880px;
}

.about-body {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .55rem;
}
.value-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .65rem .6rem;
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.value-chip:hover {
  border-color: var(--border-accent);
  background: var(--surface-hover);
}
.value-chip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}

/* ---------- Services / What we do ---------- */
.services-intro {
  max-width: 580px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.services-intro p {
  margin-top: .75rem;
  font-size: clamp(.92rem, 1.1vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.7rem 1.5rem;
  min-height: 196px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, background .25s, box-shadow .35s;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-subtle);
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
}
.service-glyph {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--lavender);
  margin-bottom: 1.3rem;
  line-height: 1;
  position: relative;
}
.service-name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .45rem;
  position: relative;
}
.service-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
}

/* ---------- Work / Portfolio ---------- */
.work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}
.work-header p {
  max-width: 300px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Portfolio grid — varied bento layout, one card per brand */
#work .container {
  max-width: min(1280px, calc(100vw - 3rem));
}

.portfolio-grid,
.portfolio-carousel-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: start;
  gap: clamp(1rem, 1.6vw, 1.6rem);
}

/* ---- Desktop bento rhythm: deliberately varied widths + ratios ---- */
.portfolio-carousel-grid > .proj-card:nth-of-type(1) { grid-column: span 7; }
.portfolio-carousel-grid > .proj-card:nth-of-type(2) { grid-column: span 5; }

.portfolio-carousel-grid > .proj-card:nth-of-type(3) { grid-column: span 4; }
.portfolio-carousel-grid > .proj-card:nth-of-type(4) { grid-column: span 5; }
.portfolio-carousel-grid > .proj-card:nth-of-type(5) { grid-column: span 3; }

.portfolio-carousel-grid > .proj-card:nth-of-type(6) { grid-column: span 4; }
.portfolio-carousel-grid > .proj-card:nth-of-type(7) { grid-column: span 4; }
.portfolio-carousel-grid > .proj-card:nth-of-type(8) { grid-column: span 4; }

.portfolio-carousel-grid > .proj-card:nth-of-type(1) .proj-thumb { aspect-ratio: 16 / 9.6; }
.portfolio-carousel-grid > .proj-card:nth-of-type(2) .proj-thumb { aspect-ratio: 4 / 4.6; }
.portfolio-carousel-grid > .proj-card:nth-of-type(3) .proj-thumb { aspect-ratio: 4 / 4.9; }
.portfolio-carousel-grid > .proj-card:nth-of-type(4) .proj-thumb { aspect-ratio: 4 / 3.3; }
.portfolio-carousel-grid > .proj-card:nth-of-type(5) .proj-thumb { aspect-ratio: 4 / 5.7; }
.portfolio-carousel-grid > .proj-card:nth-of-type(6) .proj-thumb { aspect-ratio: 1 / 1; }
.portfolio-carousel-grid > .proj-card:nth-of-type(7) .proj-thumb { aspect-ratio: 1 / 1; }
.portfolio-carousel-grid > .proj-card:nth-of-type(8) .proj-thumb { aspect-ratio: 1 / 1; }

/* ---- Card shell ---- */
.proj-card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  isolation: isolate;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
  transition: border-color .35s ease, transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
.proj-card:hover,
.proj-card:focus-within {
  border-color: var(--border-accent);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px);
  box-shadow: 0 28px 80px rgba(0,0,0,.32), 0 0 50px rgba(123,63,228,.12);
}
.proj-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(168,85,247,.16), transparent 45%);
  transition: opacity .35s ease;
}
.proj-card:hover::before,
.proj-card:focus-within::before { opacity: 1; }

/* ---- Thumb / media stack ---- */
.proj-thumb {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 32%, rgba(123,63,228,.14), transparent 50%),
    linear-gradient(180deg, #0b0b18, #06060d);
}
.proj-slider {
  position: absolute;
  inset: 0;
}
.proj-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .55s ease, transform .85s cubic-bezier(.2,.8,.2,1);
  display: grid;
  place-items: center;
  padding: clamp(.65rem, 1vw, 1rem);
}
.proj-slide.active {
  opacity: 1;
  transform: scale(1);
}
.proj-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 16px;
  filter: saturate(.98) contrast(1.01);
  transition: filter .45s ease;
}
.proj-slide:nth-child(n/**/+2) .proj-media,
.proj-slide:nth-child(n/**/+2) video.proj-media {
  object-fit: cover;
}
video.proj-media { background: #000; }
.proj-card:hover .proj-slide.active .proj-media,
.proj-card:focus-within .proj-slide.active .proj-media {
  filter: saturate(1.05) contrast(1.02);
}

/* ---- Overlay text ---- */
.proj-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: linear-gradient(to top,
    rgba(7,7,15,.95) 0%,
    rgba(7,7,15,.68) 55%,
    rgba(7,7,15,0) 100%);
  padding: clamp(2.6rem, 4vw, 3.6rem) clamp(1rem, 1.4vw, 1.3rem) clamp(1rem, 1.3vw, 1.25rem);
  pointer-events: none;
}
.proj-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .2rem;
}
.proj-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
.proj-visit {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .68rem;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease, color .2s ease;
  pointer-events: auto;
}
.proj-card:hover .proj-visit,
.proj-card:focus-within .proj-visit {
  opacity: 1;
  transform: translateY(0);
}
.proj-visit:hover { color: var(--lavender); }
.proj-visit span { font-size: .76rem; line-height: 1; }
.proj-industry {
  font-size: .76rem;
  color: rgba(240,239,255,.66);
  margin-bottom: .2rem;
}
.proj-tag {
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lavender);
  line-height: 1.45;
}
.portfolio-carousel-grid > .proj-card:nth-of-type(1) .proj-name,
.portfolio-carousel-grid > .proj-card:nth-of-type(7) .proj-name {
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
}

/* ---- Arrows / dots ---- */
.proj-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(7,7,15,.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%) scale(.92);
  transition: opacity .25s ease, transform .25s ease, border-color .2s ease, background .2s ease;
}
.proj-arrow:hover { border-color: var(--border-accent); background: rgba(12,12,28,.9); }
.proj-arrow-prev { left: .65rem; }
.proj-arrow-next { right: .65rem; }
.proj-card:hover .proj-arrow,
.proj-card:focus-within .proj-arrow {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.proj-dots {
  position: absolute;
  left: 50%;
  bottom: .62rem;
  z-index: 7;
  transform: translateX(-50%);
  display: flex;
  gap: .32rem;
  opacity: 0;
  transition: opacity .25s ease;
}
.proj-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.32);
  transition: background .2s ease, width .2s ease;
}
.proj-dots span.active {
  width: 14px;
  border-radius: 999px;
  background: var(--lavender);
}
.proj-card:hover .proj-dots,
.proj-card:focus-within .proj-dots { opacity: 1; }

/* ---- Entrance animation ---- */
.portfolio-carousel-grid .proj-card.reveal.visible {
  animation: portfolioLift .75s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes portfolioLift {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ---- "And much more" — alone on its own row, wide but not edge-to-edge ---- */
.more-work-card {
  grid-column: 2 / span 10;
  text-decoration: none;
  margin-top: clamp(.3rem, .8vw, .75rem);
}
.more-work-thumb {
  display: grid;
  place-items: center;
  isolation: isolate;
  aspect-ratio: 16 / 4.4;
  min-height: 200px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 28% 25%, rgba(129,140,248,.24), transparent 36%),
    radial-gradient(circle at 72% 78%, rgba(168,85,247,.2), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(168,85,247,.24);
}
.more-work-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 20%, rgba(129,140,248,.2), transparent 34%),
    radial-gradient(circle at 70% 76%, rgba(168,85,247,.18), transparent 38%);
  filter: blur(14px);
}
.more-work-content {
  position: relative;
  z-index: 2;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.more-work-kicker {
  display: inline-flex;
  color: var(--lavender);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.more-work-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: .7rem;
}
.more-work-content p {
  max-width: 26rem;
  margin: 0 auto 1.1rem;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.6;
}
.more-work-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text);
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(168,85,247,.5);
  padding-bottom: .2rem;
}
.more-work-card:hover .more-work-link span { transform: translateX(4px); }
.more-work-link span { transition: transform .25s ease; }
.more-work-card:hover .more-work-thumb { border-color: rgba(168,85,247,.4); }

/* ---- Tablet: relaxed 2-column rhythm, keep size variety ---- */
@media (max-width: 900px) {
  #work .container { max-width: min(100%, calc(100vw - 2.5rem)); }
  .portfolio-carousel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-carousel-grid > .proj-card:nth-of-type(2),
  .portfolio-carousel-grid > .proj-card:nth-of-type(3),
  .portfolio-carousel-grid > .proj-card:nth-of-type(4),
  .portfolio-carousel-grid > .proj-card:nth-of-type(5),
  .portfolio-carousel-grid > .proj-card:nth-of-type(6),
  .portfolio-carousel-grid > .proj-card:nth-of-type(8) {
    grid-column: span 1;
  }
  .portfolio-carousel-grid > .proj-card:nth-of-type(1),
  .portfolio-carousel-grid > .proj-card:nth-of-type(7) {
    grid-column: 1 / -1;
  }
  .portfolio-carousel-grid > .proj-card:nth-of-type(1) .proj-thumb { aspect-ratio: 16 / 8.2; }
  .portfolio-carousel-grid > .proj-card:nth-of-type(2) .proj-thumb,
  .portfolio-carousel-grid > .proj-card:nth-of-type(3) .proj-thumb,
  .portfolio-carousel-grid > .proj-card:nth-of-type(4) .proj-thumb,
  .portfolio-carousel-grid > .proj-card:nth-of-type(5) .proj-thumb,
  .portfolio-carousel-grid > .proj-card:nth-of-type(6) .proj-thumb { aspect-ratio: 4 / 4.4; }
  .portfolio-carousel-grid > .proj-card:nth-of-type(7) .proj-thumb { aspect-ratio: 16 / 7.4; }
  .portfolio-carousel-grid > .proj-card:nth-of-type(8) .proj-thumb { aspect-ratio: 4 / 4.4; }

  .more-work-card { grid-column: 1 / -1; }
  .more-work-thumb { aspect-ratio: 16 / 5.6; min-height: 190px; }
}

/* ---- Mobile: single column, comfortable heights ---- */
@media (max-width: 600px) {
  #work .container { max-width: calc(100vw - 1.6rem); }
  .portfolio-carousel-grid { grid-template-columns: 1fr; gap: 1rem; }
  .portfolio-carousel-grid > .proj-card { grid-column: 1 / -1 !important; }
  .portfolio-carousel-grid > .proj-card .proj-thumb { aspect-ratio: 4 / 3.6 !important; }
  .portfolio-carousel-grid > .proj-card:nth-of-type(1) .proj-thumb,
  .portfolio-carousel-grid > .proj-card:nth-of-type(7) .proj-thumb { aspect-ratio: 4 / 3.9 !important; }

  .more-work-card { grid-column: 1 / -1; margin-top: .2rem; }
  .more-work-thumb { aspect-ratio: auto; min-height: 220px; }
  .more-work-content h3 { font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .more-work-content p { font-size: .8rem; max-width: 20rem; }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-carousel-grid .proj-card.reveal.visible { animation: none; }
  .proj-card, .proj-slide, .proj-media { transition: none; }
}

/* ---------- Contact ---------- */
.contact-wrap {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-orb {
  position: absolute;
  border-radius: 50%;
  width: 55vw; height: 55vw;
  max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, rgba(123,63,228,.13) 0%, transparent 60%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.06;
  margin-bottom: .9rem;
}
.contact-sub {
  font-size: clamp(.92rem, 1.1vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.contact-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color .25s, background .25s, transform .25s;
}
.contact-tile:hover {
  border-color: var(--border-accent);
  background: var(--surface-hover);
  transform: translateY(-3px);
}
.contact-tile-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-subtle);
  color: var(--lavender);
}
.contact-tile-icon svg {
  width: 18px; height: 18px;
}
.contact-tile-label {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}
.contact-tile-value {
  font-size: .74rem;
  color: var(--text-dim);
  word-break: break-word;
}

/* ---------- Footer ---------- */
footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 1.75rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy {
  font-size: .75rem;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ---------- Laptop (1024–1440px): keep grid proportions, just ease container width ---------- */
@media (max-width: 1440px) {
  :root { --max: 1100px; }
}

/* ---------- Tablet (768–1024px) ---------- */
@media (max-width: 1024px) {
  :root { --max: 100%; }

  #nav { gap: 1rem; }
  .nav-links { gap: 1.4rem; }

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

  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-inner { align-items: center; text-align: center; }
  .hero-eyebrow, .hero-tagline, .hero-actions { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-card-wrap { order: -1; }
  .hero-glass-card { transform: none; max-width: 360px; margin: 0 auto; }
  .hero-glass-card:hover { transform: translateY(-4px); }

  /* Portfolio: 2 columns on tablet */
  

  .contact-grid { grid-template-columns: repeat(4, 1fr); gap: .6rem; }
}

/* ---------- Mobile (<768px) ---------- */
@media (max-width: 767px) {
  html, body { overflow-x: hidden; max-width: 100%; }

  /* Compact vertical rhythm — cascades to every .section */
  :root { --section-py: clamp(2.25rem, 8vw, 3.25rem); }
  #hero { padding-top: 7rem; padding-bottom: 3rem; }
  .eyebrow { margin-bottom: .75rem; }
  .work-header { margin-bottom: 1.5rem; }
  .services-intro { margin-bottom: 1.5rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(7,7,15,.97);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 190;
  }
  .nav-links.open a { font-size: 1.3rem; }

  /* Touch-friendly tap targets */
  .btn-primary, .btn-ghost { padding: .85rem 1.75rem; min-height: 44px; }
  .nav-hamburger { display: flex; padding: 10px; min-width: 44px; min-height: 44px; justify-content: center; }

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

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .service-card {
    padding: 1.1rem .95rem;
    min-height: 0;
  }
  .service-glyph { font-size: 1.1rem; margin-bottom: .7rem; }
  .service-name { font-size: 1rem; margin-bottom: .35rem; }
  .service-desc { font-size: .76rem; line-height: 1.5; }

  /* Portfolio: every card stacks full-width */
  
  
  
  
  
  

  .work-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .work-header p { max-width: 100%; }

  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
  .contact-tile { padding: 1.1rem .75rem; }

  .about-full { max-width: 100%; }
}

/* ---------- Small phones ---------- */
@media (max-width: 380px) {
  :root { --pad-x: 1.1rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .contact-grid { grid-template-columns: 1fr 1fr; }

  /* Very small phones only: services drop to a single column */
  .services-grid { grid-template-columns: 1fr; gap: .6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .scroll-track, .ticker-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-eyebrow, .hero-title, .hero-tagline, .hero-sub,
  .hero-actions, .hero-scroll { opacity: 1 !important; animation: none !important; }
}

/* ============================================================
   Premium motion polish — modern creative studio feel
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: var(--scroll-progress, 0%);
  z-index: 999;
  background: linear-gradient(90deg, var(--blue-bright), var(--purple-bright));
  box-shadow: 0 0 18px rgba(123,63,228,.45);
  pointer-events: none;
}

.site-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(91,108,255,.12), transparent 28vw),
    radial-gradient(circle at 85% 12%, rgba(123,63,228,.10), transparent 26vw),
    radial-gradient(circle at 52% 82%, rgba(129,140,248,.075), transparent 32vw);
  animation: ambientDrift 18s ease-in-out infinite alternate;
}
.site-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 68%);
}
@keyframes ambientDrift {
  from { transform: translate3d(0,0,0) scale(1); filter: hue-rotate(0deg); }
  to { transform: translate3d(0,-2%,0) scale(1.04); filter: hue-rotate(8deg); }
}

/* Cursor-follow glow — soft additive light that trails the pointer */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.30), rgba(123,63,228,.14), transparent 70%);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .4s ease;
}
.cursor-glow.active { opacity: 1; }

/* Film-grain overlay — keeps flat dark sections from feeling sterile */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  z-index: 150;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

@media (max-width: 920px), (hover: none) {
  .cursor-glow { display: none; }
}

#nav {
  transform: translateY(-12px);
  opacity: 0;
  animation: navDrop .75s cubic-bezier(.2,.8,.2,1) .15s forwards;
}
@keyframes navDrop { to { transform: translateY(0); opacity: 1; } }

.hero-inner > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroRise .85s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-inner .hero-eyebrow { animation-delay: .2s; }
.hero-inner .hero-title { animation-delay: .32s; }
.hero-inner .hero-tagline { animation-delay: .46s; }
.hero-inner .hero-sub { animation-delay: .58s; }
.hero-inner .hero-actions { animation-delay: .7s; }
@keyframes heroRise { to { opacity: 1; transform: translateY(0); } }

.hero-card-wrap {
  opacity: 0;
  transform: translateY(26px);
  animation: heroRise .9s .55s cubic-bezier(.2,.8,.2,1) forwards;
}

.hero-title .grad-text {
  background-size: 180% 180%;
  animation: gradientFlow 5.5s ease-in-out infinite alternate;
}
@keyframes gradientFlow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.btn-primary,
.btn-ghost,
.contact-tile,
.service-card{
  will-change: transform;
}
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -40%;
  width: 30%;
  height: 240%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(11,8,24,.16), transparent);
  opacity: 0;
  transition: left .7s ease, opacity .25s ease;
}
.btn-primary:hover::after { left: 115%; opacity: 1; }

.section {
  position: relative;
  overflow: hidden;
}
.section::before {
  content: "";
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129,140,248,.22), rgba(168,85,247,.18), transparent);
  opacity: .85;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(10px);
  transition: opacity .85s cubic-bezier(.2,.8,.2,1), transform .85s cubic-bezier(.2,.8,.2,1), filter .85s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

.service-card,
.contact-tile {
  position: relative;
  overflow: hidden;
}
.service-card::after,
.contact-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), rgba(129,140,248,.12), transparent 44%);
  transition: opacity .3s ease;
  pointer-events: none;
}
.service-card:hover::after,
.contact-tile:hover::after { opacity: 1; }
.service-card:hover,
.contact-tile:hover {
  transform: translateY(-6px);
}

@media (max-width: 680px) {
  
  
  .site-ambient::after { background-size: 46px 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   Premium motion upgrade — cinematic but still clean
   ============================================================ */
:root {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

body::before {
  content: "";
  position: fixed;
  inset: -40%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(168,85,247,.10), transparent 22%),
    conic-gradient(from 180deg at 50% 50%, transparent, rgba(129,140,248,.08), transparent, rgba(168,85,247,.08), transparent);
  filter: blur(30px);
  opacity: .65;
  animation: slowSpin 26s linear infinite;
}

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

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 68%);
  animation: gridDrift 18s linear infinite;
}

#hero::after {
  content: "";
  position: absolute;
  width: min(58vw, 760px);
  height: min(58vw, 760px);
  right: -18vw;
  top: 50%;
  border: 1px solid rgba(196,181,253,.12);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 80px rgba(168,85,247,.08), 0 0 80px rgba(129,140,248,.08);
  animation: orbitHalo 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes gridDrift { to { background-position: 70px 70px; } }
@keyframes orbitHalo {
  from { transform: translateY(-50%) rotate(0deg) scale(.98); opacity: .65; }
  to { transform: translateY(-50%) rotate(16deg) scale(1.04); opacity: 1; }
}

.hero-title {
  position: relative;
  text-wrap: balance;
}
.hero-title::after {
  content: "";
  position: absolute;
  left: -4%;
  bottom: -.15em;
  width: 56%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lavender), transparent);
  opacity: .6;
  transform-origin: left;
  animation: titleUnderline 3.2s cubic-bezier(.2,.8,.2,1) infinite;
}
@keyframes titleUnderline {
  0%, 25% { transform: scaleX(0); opacity: 0; }
  45%, 70% { transform: scaleX(1); opacity: .65; }
  100% { transform: scaleX(0); opacity: 0; transform-origin: right; }
}

.hero-glass-card {
  position: relative;
  isolation: isolate;
  animation: heroCardFloat 7s ease-in-out infinite;
}
.hero-glass-card::before,
.hero-glass-card::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}
.hero-glass-card::before {
  inset: -1px;
  z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), rgba(196,181,253,.2), transparent 28%, rgba(129,140,248,.18), transparent 70%, rgba(168,85,247,.22));
  filter: blur(12px);
  opacity: .75;
  animation: borderSpin 7s linear infinite;
}
.hero-glass-card::after {
  width: 11px;
  height: 11px;
  right: 14%;
  top: 13%;
  background: var(--lavender);
  box-shadow: 0 0 30px rgba(196,181,253,.85);
  animation: dotOrbit 5.8s ease-in-out infinite;
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes borderSpin { to { --angle: 360deg; } }
@keyframes heroCardFloat {
  0%,100% { transform: rotate(2.5deg) translate3d(0,0,0); }
  50% { transform: rotate(-1deg) translate3d(0,-12px,0); }
}
@keyframes dotOrbit {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-280px, 90px) scale(.75); }
  66% { transform: translate(-80px, 245px) scale(1.1); }
}

.glass-metric {
  transform: translateX(0);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .45s, background .45s;
}
.glass-metric:nth-child(2) { animation: metricWave 5s ease-in-out infinite; }
.glass-metric:nth-child(3) { animation: metricWave 5s ease-in-out infinite .35s; }
.glass-metric:nth-child(4) { animation: metricWave 5s ease-in-out infinite .7s; }
@keyframes metricWave {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* Section motion: each section feels like an arriving scene */
.section {
  transform-style: preserve-3d;
  perspective: 1200px;
}
.section.in-view .section-title {
  animation: titleSettle .95s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes titleSettle {
  from { letter-spacing: -.08em; transform: translateY(18px) scale(.985); opacity: .55; filter: blur(8px); }
  to { letter-spacing: -.04em; transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}

.eyebrow {
  overflow: hidden;
}
.section.in-view .eyebrow::before,
.section.in-view .eyebrow::after,
.hero-eyebrow .ey-line {
  animation: lineGrow 1s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes lineGrow {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: .45; }
}

/* Values and services do not just fade — they cascade */
.values-grid .value-chip,
.services-grid .service-card,
.contact-grid .contact-tile {
  transition: transform .55s cubic-bezier(.2,.8,.2,1), border-color .35s, background .35s, box-shadow .35s;
}
.section.in-view .value-chip {
  animation: chipPop .7s cubic-bezier(.2,.8,.2,1) both;
}
.section.in-view .value-chip:nth-child(2) { animation-delay: .06s; }
.section.in-view .value-chip:nth-child(3) { animation-delay: .12s; }
.section.in-view .value-chip:nth-child(4) { animation-delay: .18s; }
.section.in-view .value-chip:nth-child(5) { animation-delay: .24s; }
.section.in-view .value-chip:nth-child(6) { animation-delay: .3s; }
@keyframes chipPop {
  from { transform: translateY(18px) rotateX(30deg); opacity: 0; }
  to { transform: translateY(0) rotateX(0); opacity: 1; }
}

.service-card,
.contact-tile{
  transform-style: preserve-3d;
}
.service-card:hover,
.contact-tile:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-10px);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.service-card::before,
.contact-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.08), transparent 58%);
  transform: translateX(-120%);
  transition: transform .85s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.service-card:hover::before,
.contact-tile:hover::before { transform: translateX(120%); }
.service-glyph {
  position: relative;
  overflow: hidden;
}
.service-glyph::after {
  content: "";
  position: absolute;
  inset: 45% -30%;
  background: rgba(196,181,253,.45);
  filter: blur(8px);
  animation: glyphPulse 2.6s ease-in-out infinite;
}
@keyframes glyphPulse {
  0%,100% { transform: translateX(-70%); opacity: 0; }
  50% { transform: translateX(70%); opacity: .55; }
}

/* Contact feels alive without being messy */
.contact-title {
  position: relative;
}
.contact-title::after {
  content: "";
  display: block;
  width: min(180px, 38vw);
  height: 2px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--lavender), transparent);
  animation: contactLine 2.8s ease-in-out infinite;
}
@keyframes contactLine {
  0%,100% { opacity: .25; transform: scaleX(.55); }
  50% { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 680px) {
  
  
  #hero::after { opacity: .35; right: -42vw; width: 110vw; height: 110vw; }
  .hero-title::after { width: 72%; }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  #hero::before,
  #hero::after,
  .hero-glass-card,
  .hero-glass-card::before,
  .hero-glass-card::after,
  .glass-metric,
  .contact-title::after {
    animation: none !important;
  }
}

/* Hide any legacy portfolio filter UI if it exists */
.filter-bar,
.portfolio-filter,
.work-filter,
.project-filters,
[data-filter],
.filter-btn {
  display: none !important;
}

/* MOBILE MENU FIX */
@media (max-width:768px){
#nav-links{
position:fixed !important;
inset:0;
width:100%;
height:100vh;
background:rgba(8,8,16,.96);
backdrop-filter:blur(20px);
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
gap:2rem;
z-index:9999;
transform:translateX(100%);
opacity:0;
pointer-events:none;
transition:all .45s cubic-bezier(.16,1,.3,1);
}
#nav-links.open{
transform:translateX(0);
opacity:1;
pointer-events:auto;
}
#nav-links a{
font-size:1.4rem;
}
#hamburger{
position:relative;
z-index:10000;
}
}

