/* ═══════════════════════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════════════════════ */

.scroll-progress-track {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  width: 2px;
  height: 120px;
  background: rgba(100, 150, 220, 0.12);
  border-radius: 2px;
}

.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 2px;
  height: 0%;
  background: linear-gradient(to bottom,
    var(--accent-blue),
    rgba(90, 171, 240, 0.3));
  box-shadow: 0 0 8px rgba(90, 171, 240, 0.6);
  transition: height 0.1s linear;
}


/* ═══════════════════════════════════════════════════
   NAV — floating pill
═══════════════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: var(--sp-4) var(--gutter);
  pointer-events: none;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(14, 26, 50, 0.28);
  backdrop-filter: blur(28px) saturate(180%) brightness(1.15);
  -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.15);
  border-radius: 100px;
  padding: 5px;
  pointer-events: all;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    inset 0 0 20px rgba(120, 170, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 8px 40px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 0 70px rgba(90, 150, 255, 0.12);
}

.nav-item {
  font-size: var(--size-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 100px;
  transition: color 250ms, background 250ms, box-shadow 250ms;
  white-space: nowrap;
}

/* Narrow screens: the pill is wider than the viewport — let it scroll
   sideways (scrollbar hidden), centered whenever it fits */
@media (max-width: 639px) {
  nav {
    justify-content: center;
    padding: var(--sp-3) 8px;
  }
  /* The pill itself is the scroll box: it can never exceed the viewport,
     stays centered when it fits, and scrolls internally when it doesn't —
     so it is always visible on screen */
  .nav-pill {
    margin: 0 auto;
    max-width: 100%;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .nav-pill::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 auto; padding: 6px 9px; font-size: 0.68rem; }
}

@media (min-width: 640px) {
  .nav-item { font-size: var(--size-base); padding: 10px 22px; }
}

.nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 16px rgba(0,0,0,0.2);
}


/* ═══════════════════════════════════════════════════
   SHARED — ambient glow orbs
═══════════════════════════════════════════════════ */

/* Horizontal overflow from the wide glow orbs is clipped at the root (html,
   in base.css) — NOT per-section, because a per-section clip edge renders a
   faint seam line between sections. Root-level clip keeps the page at the
   real viewport width (so the fixed nav centres correctly on mobile) while
   letting each section's glow bleed vertically into its neighbour seamlessly. */

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Star canvas — fills hero, behind everything */
#star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Hero: large vivid blue center */
.glow--hero-center {
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(40, 100, 230, 0.28) 0%,
    rgba(20, 60, 160, 0.12) 40%,
    transparent 70%);
  filter: blur(18px);
}

/* Hero: gold warmth bottom-left */
.glow--hero-left {
  bottom: 5%;
  left: -8%;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(201, 169, 110, 0.09) 0%,
    transparent 65%);
  filter: blur(40px);
}

/* Hero: ice-blue top-right */
.glow--hero-right {
  top: 0;
  right: -5%;
  width: 450px;
  height: 380px;
  background: radial-gradient(ellipse at center,
    rgba(60, 160, 240, 0.13) 0%,
    transparent 65%);
  filter: blur(35px);
}

/* Services: blue-indigo from center */
.glow--services {
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 760px;
  background: radial-gradient(ellipse at center,
    rgba(70, 140, 255, 0.24) 0%,
    rgba(40, 90, 210, 0.10) 45%,
    transparent 68%);
  filter: blur(55px);
}

/* Contact: blue glow */
.glow--contact {
  top: 24%;
  left: 22%;
  width: 860px;
  height: 680px;
  background: radial-gradient(ellipse at center,
    rgba(60, 130, 255, 0.26) 0%,
    rgba(35, 90, 210, 0.10) 45%,
    transparent 68%);
  filter: blur(60px);
}


/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */

#hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--sp-16) var(--gutter);
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--sp-8);
}

/* Glow orb sitting directly behind the logo — carries the hover effect,
   because animating drop-shadow on the img makes Safari draw the shadow
   from the element box instead of the alpha shape (visible square) */
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(ellipse at center,
    rgba(60, 130, 240, 0.45) 0%,
    rgba(30, 80, 200, 0.20) 40%,
    transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
  transition: transform 600ms var(--ease-out);
}

.hero-logo-wrap:hover::before {
  transform: scale(1.25);
}

.hero-logo {
  position: relative;
  z-index: 1;
  max-width: clamp(60px, 10vw, 110px);
  width: 100%;
  height: auto;
  display: block;
  /* Image has true transparency — no blend mode needed. (screen-blend +
     filter transition caused a visible layer-promotion box on hover) */
  /* Layered blue glow around the visible shape — static on purpose:
     transitioning this filter triggers the Safari box-shadow bug */
  filter:
    drop-shadow(0 0 10px rgba(90, 171, 240, 0.80))
    drop-shadow(0 0 30px rgba(50, 120, 220, 0.50))
    drop-shadow(0 0 70px rgba(20, 70, 180, 0.30));
}

.hero-roles {
  font-size: var(--size-sm);
  font-weight: 400;
  letter-spacing: var(--track-wide);
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

.hero-roles .sep {
  margin: 0 0.6em;
  color: var(--text-faint);
}

.hero-line {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.80);
  max-width: 38ch;
  line-height: var(--lead-normal);
  margin-bottom: var(--sp-8);
  text-align: center;
}

.hero-line strong {
  color: #FFFFFF;
  font-weight: 500;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  text-align: center;
  margin-bottom: var(--sp-4);
}

/* Rotating word wrapper — sized to the longest phrase so layout doesn't jump */
.rotating-wrap {
  display: inline-block;
  min-width: 18ch;
}

#rotating-word {
  display: inline-block;
  color: var(--text);
  font-weight: 700;
  transition: opacity 300ms ease, transform 300ms ease;
}

#rotating-word.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

/* Hero CTA — glass pill, matches contact email button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  font-size: var(--size-base);
  font-weight: 500;
  color: #ffffff;
  background: rgba(6, 12, 28, 0.72);
  backdrop-filter: blur(20px) brightness(0.75);
  -webkit-backdrop-filter: blur(20px) brightness(0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 14px 32px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 4px 20px rgba(0,0,0,0.3);
  transition: background 350ms, border-color 350ms, box-shadow 350ms, transform 350ms cubic-bezier(0.22,1,0.36,1);
}

.hero-cta:hover {
  background: rgba(90,171,240,0.12);
  border-color: rgba(90,171,240,0.3);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 8px 30px rgba(0,0,0,0.35),
    0 0 40px rgba(90,171,240,0.15);
}

/* Vertical scroll hint — bottom center */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: rgba(140, 180, 255, 0.15);
  overflow: hidden;
  z-index: 1;
  animation: fade-up var(--dur-slow) var(--ease-out) 900ms both;
}

.scroll-hint::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 18px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(150, 200, 255, 0.9));
  animation: scroll-hint-drop 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scroll-hint-drop {
  0%   { transform: translateY(-20px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(60px); opacity: 0; }
}


/* ═══════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════ */

#about {
  position: relative;
  padding: var(--sp-24) 0;
}

/* About: soft blue bloom behind the section title */
.glow--about {
  top: 6%;
  left: 8%;
  width: 760px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(60, 130, 250, 0.16) 0%,
    rgba(35, 85, 200, 0.06) 45%,
    transparent 68%);
  filter: blur(60px);
}

.about-section-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-12);
}

.about-section-title {
  font-size: var(--size-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

.about-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.about-label-col { display: none; }

.about-headline {
  font-size: var(--size-lg);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: 1.3;
  margin-bottom: var(--sp-4);
  text-align: left;
  width: 100%;
}

.about-headline em {
  color: var(--accent);
  font-style: normal;
}

/* Liquid glass card wrapping the body text */
.about-card {
  position: relative;
  background: rgba(16, 30, 56, 0.34);
  backdrop-filter: blur(38px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(38px) saturate(180%) brightness(1.06);
  border-radius: 28px;
  padding: var(--sp-6);
  overflow: visible;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    inset 1px 0 0 rgba(255, 255, 255, 0.07),
    inset -1px 0 0 rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.50),
    0 0 90px rgba(90, 150, 255, 0.14);
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.02) 35%,
    transparent 65%
  );
  pointer-events: none;
}

@media (max-width: 640px) {
  .about-card { flex-direction: column; }
  .about-photo { width: 100%; height: 260px; }
}

.about-card-glow {
  position: absolute;
  top: -40%;
  right: -16%;
  width: 460px;
  height: 460px;
  background: radial-gradient(ellipse at center,
    rgba(70, 130, 245, 0.22) 0%,
    rgba(40, 90, 210, 0.08) 45%,
    transparent 68%);
  filter: blur(45px);
  pointer-events: none;
}

.about-photo-wrap {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  align-self: stretch;
  width: clamp(200px, 35%, 340px);
}

.about-photo {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1px solid rgba(90, 171, 240, 0.2);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(90, 171, 240, 0.12);
}

.about-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.about-body p {
  font-size: var(--size-lg);
  line-height: var(--lead-relaxed);
  color: var(--text-muted);
  max-width: 54ch;
}


/* ═══════════════════════════════════════════════════
   SERVICES — glass cards
═══════════════════════════════════════════════════ */

#services {
  position: relative;
  padding: var(--sp-24) 0;
}

.services-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-12);
  position: relative;
  z-index: 1;
}

.services-headline {
  font-size: var(--size-display);
  font-weight: 800;
  margin-top: var(--sp-4);
  max-width: 18ch;
}

.services-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
}

/* Tablet: 2-col bento */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(1) { grid-row: span 2; }
  .service-card:nth-child(4) { grid-column: span 2; }
  .service-card:nth-child(5) { grid-column: span 2; }
}

/* Desktop: 3-col bento */
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr 1fr; }
  .service-card:nth-child(1) { grid-row: auto; grid-column: span 2; }
  .service-card:nth-child(2) { grid-column: span 1; }
  .service-card:nth-child(3) { grid-column: span 1; }
  .service-card:nth-child(4) { grid-column: span 2; }
  .service-card:nth-child(5) { grid-column: span 3; }
}

/* Liquid glass card — translucent, brightening (lets the glow through).
   The glass (background + backdrop-filter) lives on ::before, NOT on the card
   itself, so the icon's drop-shadow filter doesn't punch a rectangular hole in
   a backdrop-filter ancestor (Chrome backdrop-filter cutout bug). */
.service-card {
  position: relative;
  background: transparent;
  border-radius: 24px;
  padding: var(--sp-4);
  overflow: visible;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    inset 1px 0 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(90, 150, 255, 0.10);
  transition:
    box-shadow 450ms cubic-bezier(0.22, 1, 0.36, 1),
    background 450ms cubic-bezier(0.22, 1, 0.36, 1),
    transform  450ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
}

/* Bright blue halo pooled behind each glass card — shows through the glass */
.service-card::after,
.work-card::after,
.about-card::after {
  content: '';
  position: absolute;
  inset: -36px;
  z-index: -1;
  border-radius: 48px;
  background: radial-gradient(ellipse at 50% 55%,
    rgba(80, 150, 255, 0.34) 0%,
    rgba(45, 100, 215, 0.14) 45%,
    transparent 72%);
  filter: blur(34px);
  pointer-events: none;
}

/* Glass base layer — sits behind the card content (not an ancestor of the
   icon), so the icon's filter can't cut a hole in the backdrop-filter. */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.02) 40%,
      transparent 100%
    ),
    rgba(16, 30, 56, 0.32);
  backdrop-filter: blur(36px) saturate(170%) brightness(1.08);
  -webkit-backdrop-filter: blur(36px) saturate(170%) brightness(1.08);
  pointer-events: none;
  z-index: 0;
  transition: background 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    inset 1px 0 0 rgba(255, 255, 255, 0.10),
    0 0 0 1px rgba(90, 171, 240, 0.30),
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 70px rgba(90, 171, 240, 0.22);
}

.service-card:hover::before {
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.14) 0%,
      rgba(255,255,255,0.03) 40%,
      transparent 100%
    ),
    rgba(22, 40, 72, 0.42);
}

/* Icon: large, bottom-right, absolute — NO filter, glow is inside SVG */
.service-icon {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 130px;
  height: 170px;
  z-index: 1;
  pointer-events: none;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle hover — same for all */
.service-card:hover .service-icon {
  transform: translateY(-8px) scale(1.06);
}

.service-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter:
    drop-shadow(0 0 10px rgba(90, 171, 240, 0.9))
    drop-shadow(0 0 28px rgba(50, 120, 220, 0.55));
  transition: filter 400ms var(--ease-out);
}

.service-card:hover .service-icon svg {
  filter:
    drop-shadow(0 0 16px rgba(90, 171, 240, 1))
    drop-shadow(0 0 45px rgba(50, 120, 220, 0.85));
}

.service-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter:
    drop-shadow(0 0 12px rgba(90, 171, 240, 1))
    drop-shadow(0 0 30px rgba(50, 120, 220, 0.7))
    drop-shadow(0 0 60px rgba(30, 80, 200, 0.4));
  transition: filter 400ms var(--ease-out);
}

.service-card:hover .service-icon img {
  filter:
    drop-shadow(0 0 20px rgba(90, 171, 240, 1))
    drop-shadow(0 0 50px rgba(50, 120, 220, 1))
    drop-shadow(0 0 100px rgba(30, 80, 200, 0.7));
}


.service-text {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  max-width: 55%;
  padding-right: var(--sp-2);
}

.service-number {
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: var(--track-wider);
  color: var(--accent-blue);
  opacity: 0.6;
  margin-bottom: var(--sp-2);
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: var(--track-tight);
  color: #FFFFFF;
  margin-bottom: var(--sp-3);
  line-height: 1.15;
}

.service-desc {
  font-size: var(--size-sm);
  line-height: var(--lead-relaxed);
  color: rgba(255, 255, 255, 0.80);
}


/* ═══════════════════════════════════════════════════
   WORK
═══════════════════════════════════════════════════ */

#work {
  position: relative;
  padding: var(--sp-24) 0;
}

/* Work: broad blue bloom behind the card row */
.glow--work {
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 760px;
  background: radial-gradient(ellipse at center,
    rgba(65, 135, 250, 0.20) 0%,
    rgba(38, 90, 205, 0.08) 45%,
    transparent 70%);
  filter: blur(70px);
}

.work-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-12);
}

.work-headline {
  font-size: var(--size-display);
  font-weight: 800;
  margin-top: var(--sp-4);
  max-width: 18ch;
}

.work-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 640px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
}

/* Liquid glass card — same family as service cards */
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(16, 30, 56, 0.32);
  backdrop-filter: blur(36px) saturate(170%) brightness(1.08);
  -webkit-backdrop-filter: blur(36px) saturate(170%) brightness(1.08);
  border-radius: 24px;
  padding: var(--sp-6) var(--sp-4);
  overflow: visible;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    inset 1px 0 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(90, 150, 255, 0.10);
  transition:
    box-shadow 450ms cubic-bezier(0.22, 1, 0.36, 1),
    background 450ms cubic-bezier(0.22, 1, 0.36, 1),
    transform  450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.02) 40%,
    transparent 100%
  );
  pointer-events: none;
}

a.work-card:hover {
  background: rgba(22, 40, 72, 0.40);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(90, 171, 240, 0.30),
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 70px rgba(90, 171, 240, 0.22);
}

.work-number {
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: var(--track-wider);
  color: var(--accent-blue);
  opacity: 0.6;
  margin-bottom: var(--sp-2);
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: var(--track-tight);
  color: #FFFFFF;
  margin-bottom: var(--sp-3);
  line-height: 1.15;
}

.work-desc {
  font-size: var(--size-sm);
  line-height: var(--lead-relaxed);
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: var(--sp-4);
}

.work-link {
  margin-top: auto;
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--accent);
}


/* ═══════════════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════════════ */

#process {
  position: relative;
  padding: var(--sp-24) 0;
}

.glow--process {
  position: absolute;
  top: 14%;
  left: -12%;
  width: 1050px;
  height: 1050px;
  background: radial-gradient(ellipse at center,
    rgba(80, 150, 255, 0.22) 0%,
    rgba(45, 100, 215, 0.09) 45%,
    transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}

.process-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: stretch;
}

.process-right {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .process-layout { grid-template-columns: 1fr; }
  .process-left { text-align: center; }
}

/* Big glowing title — ice-blue text with a soft blue neon halo */
.process-glow-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #B9D7FF;
  text-shadow:
    0 0 10px rgba(160, 200, 255, 0.95),
    0 0 30px rgba(130, 180, 255, 0.75),
    0 0 70px rgba(100, 160, 255, 0.55),
    0 0 140px rgba(80, 140, 255, 0.40);
}

.process-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slider — no card, just content */
.process-slider {
  padding: var(--sp-4) 0;
  min-height: 260px;
  position: relative;
}

.process-slide {
  display: none;
  flex-direction: column;
  gap: var(--sp-3);
}

.process-slide.active {
  display: flex;
  animation: slideFadeIn 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(6px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0px); }
}

.process-slide-num {
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: var(--track-widest);
  color: var(--accent-blue);
  opacity: 0.7;
}

.process-slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: var(--track-tight);
  color: #FFFFFF;
}

.process-slide-desc {
  font-size: var(--size-base);
  line-height: var(--lead-relaxed);
  color: rgba(255,255,255,0.78);
  max-width: 44ch;
}

.process-slide-time {
  display: inline-block;
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 100px;
  padding: 4px 12px;
  align-self: flex-start;
}

/* Navigation */
.process-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-6);
  gap: var(--sp-4);
}

.process-nav-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 250ms, color 250ms;
  flex-shrink: 0;
}

.process-nav-btn:hover {
  background: rgba(90, 171, 240, 0.15);
  color: white;
  border-color: rgba(90, 171, 240, 0.3);
}

.process-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.process-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: width 300ms var(--ease-out), background 300ms;
  padding: 0;
}

.process-dot.active {
  width: 28px;
  background: var(--accent-blue);
}




/* ═══════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════ */

#contact {
  position: relative;
  padding: var(--sp-24) 0 var(--sp-16);
}

.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-rule { margin-bottom: var(--sp-8); }

.contact-headline {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: var(--track-tight);
  line-height: 1;
  max-width: 16ch;
  margin: var(--sp-4) auto var(--sp-8);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}

/* Primary action — same pill language, blue-lit */
.contact-cta {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: #ffffff;
  background: rgba(90, 171, 240, 0.16);
  border: 1px solid rgba(90, 171, 240, 0.35);
  border-radius: 100px;
  padding: 14px 28px;
  margin-top: var(--sp-2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 4px 20px rgba(0,0,0,0.3),
    0 0 30px rgba(90,171,240,0.15);
  transition: background 350ms, box-shadow 350ms, transform 350ms cubic-bezier(0.22,1,0.36,1);
}

.contact-cta:hover {
  background: rgba(90, 171, 240, 0.28);
  border-color: rgba(90, 171, 240, 0.55);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 8px 30px rgba(0,0,0,0.35),
    0 0 50px rgba(90,171,240,0.25);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: #ffffff;
  background: rgba(6, 12, 28, 0.72);
  backdrop-filter: blur(20px) brightness(0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 14px 28px;
  margin-top: var(--sp-2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 4px 20px rgba(0,0,0,0.3);
  transition: background 350ms, box-shadow 350ms, transform 350ms cubic-bezier(0.22,1,0.36,1);
}

.contact-email:hover {
  background: rgba(90,171,240,0.12);
  border-color: rgba(90,171,240,0.3);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 8px 30px rgba(0,0,0,0.35),
    0 0 40px rgba(90,171,240,0.15);
}

.contact-sub {
  margin-top: var(--sp-4);
  font-size: var(--size-sm);
  color: var(--text-faint);
  letter-spacing: var(--track-wide);
}


/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */

footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-12) var(--gutter) var(--sp-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  text-align: center;
  margin-bottom: var(--sp-12);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-col-title {
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-1);
}

.footer-col a {
  font-size: var(--size-sm);
  color: var(--text-faint);
  transition: color 250ms;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-4);
}

.footer-copy {
  font-size: var(--size-xs);
  letter-spacing: var(--track-wide);
  color: var(--text-faint);
}

.footer-copy a {
  color: var(--text-faint);
  transition: color 250ms;
}

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

.footer-tagline {
  font-size: var(--size-xs);
  font-style: italic;
  letter-spacing: var(--track-wide);
  color: var(--text-faint);
}

@media (max-width: 640px) {
  /* Keep the three columns side by side so they don't eat vertical space */
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); text-align: left; }
  .footer-col-title { font-size: 0.72rem; }
  .footer-col a { font-size: 0.72rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}


/* ═══════════════════════════════════════════════════
   MOBILE — compact 2-up card grids (placed last so these
   win over the base card rules at the same specificity)
═══════════════════════════════════════════════════ */
@media (max-width: 639px) {

  /* Services: 2 columns instead of a long single stack */
  .services-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }

  .service-card {
    min-height: 128px;
    padding: var(--sp-3);
    border-radius: 18px;
  }
  /* Reserve a clear zone at the bottom for the icon so text never overlaps it */
  .service-text { width: 100%; max-width: 100%; padding-right: 0; padding-bottom: 60px; }
  .service-number { margin-bottom: var(--sp-1); }
  .service-title { font-size: 0.95rem; margin-bottom: var(--sp-2); line-height: 1.15; }
  .service-desc { font-size: 0.72rem; line-height: 1.5; }

  /* Decorative icon lives in the reserved bottom-right zone — no text overlap */
  .service-icon { width: 44px; height: 54px; bottom: 6px; right: 6px; }
  .service-icon svg { filter: drop-shadow(0 0 8px rgba(90, 171, 240, 0.8)); }

  /* Work: the two cards side by side */
  .work-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .work-card { padding: var(--sp-4) var(--sp-3); border-radius: 18px; }
  .work-number { margin-bottom: var(--sp-1); }
  .work-title { font-size: 1rem; margin-bottom: var(--sp-2); }
  .work-desc { width: 100%; font-size: 0.72rem; line-height: 1.5; margin-bottom: var(--sp-3); }
  .work-link { font-size: 0.62rem; }

  /* Tighter glow pool under the smaller cards */
  .service-card::after,
  .work-card::after { inset: -20px; border-radius: 30px; }


  /* ── Cut the giant vertical rhythm so mobile doesn't scroll forever ── */
  #about, #services, #work, #process, #contact { padding: var(--sp-8) 0; }
  #contact { padding: var(--sp-8) 0 var(--sp-6); }
  #hero { padding: var(--sp-8) var(--gutter); }

  .about-section-header,
  .services-header,
  .work-header { margin-bottom: var(--sp-4); }

  /* ── Headings down ~40–50% ── */
  .hero-headline { font-size: 1.6rem; margin-bottom: var(--sp-2); }
  .hero-roles { font-size: 0.72rem; margin-bottom: var(--sp-3); }
  .hero-line { font-size: 0.85rem; margin-bottom: var(--sp-4); }

  .about-section-title,
  .services-headline,
  .work-headline { font-size: 1.4rem; }

  .about-headline { font-size: 0.95rem; margin-bottom: var(--sp-2); }
  .about-body { gap: var(--sp-2); }
  .about-body p { font-size: 0.82rem; line-height: 1.55; }
  .about-card { padding: var(--sp-3); gap: var(--sp-3); }
  /* Show the whole photo, not a cropped slice */
  .about-photo-wrap { width: 100%; }
  .about-photo { height: auto; max-height: 420px; object-fit: contain; }

  .process-glow-title { font-size: 1.8rem; }
  .process-slide-title { font-size: 1.2rem; }
  .process-slide-desc { font-size: 0.82rem; }

  .contact-headline { font-size: 1.7rem; margin: var(--sp-3) auto var(--sp-4); }
  .contact-cta, .contact-email { font-size: 1rem; padding: 11px 20px; }

  .label { font-size: 0.62rem; }
}
