/* Spective Studios — dark neon, high-energy UI (no horizontal page scroll) */

:root {
  --bg: #030308;
  --bg-elev: #0a0a12;
  --surface: #0e101a;
  --surface-glow: rgba(18, 22, 38, 0.92);
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6ff;
  --muted: #8b95ad;
  --accent: #00ffc8;
  --accent-2: #ff4eb8;
  --accent-3: #9d7dff;
  --accent-hover: #5dffdf;
  --link: #b8c4ff;
  --danger: #ff6b7a;
  --radius: 18px;
  --radius-sm: 11px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Syne", "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.site-public {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -40%, rgba(0, 255, 200, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 20%, rgba(255, 78, 184, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(157, 125, 255, 0.12), transparent 45%),
    linear-gradient(180deg, #05050c 0%, var(--bg) 35%, #04040a 100%);
  background-attachment: fixed;
}

body.site-public::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 20%, transparent 75%);
}

/* Header must stack above main or the mobile nav dropdown paints under page content */
body.site-public .site-header {
  position: relative;
  z-index: 9000;
}

body.site-public .site-main,
body.site-public .site-footer {
  position: relative;
  z-index: 1;
}

/* —— Home: process rail (neon, no scroll-jacking) —— */
.section-process {
  background: linear-gradient(180deg, rgba(0, 255, 200, 0.03), transparent 40%),
    rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.25rem;
  max-width: min(46rem, 100%);
  position: relative;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3), var(--accent-2));
  box-shadow:
    0 0 20px rgba(0, 255, 200, 0.35),
    0 0 36px rgba(157, 125, 255, 0.2);
}

.process-item {
  position: relative;
  padding: 0 0 1.85rem 1.5rem;
  margin: 0;
}

.process-item:last-child {
  padding-bottom: 0;
}

.process-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--accent) 45%, var(--accent-3) 100%);
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 18px rgba(0, 255, 200, 0.55),
    0 0 28px rgba(157, 125, 255, 0.35);
}

.process-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.3rem;
  text-shadow: 0 0 20px rgba(0, 255, 200, 0.35);
}

.process-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.section-deliver {
  position: relative;
}

.section-deliver::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 200, 0.35), transparent);
  pointer-events: none;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--accent-hover);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.narrow {
  width: min(440px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(3, 3, 8, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(0, 255, 200, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(0, 255, 200, 0.04);
  background: rgba(5, 5, 12, 0.88);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.75rem clamp(1rem, 4vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

/* Left: mark + title as one lockup (same position as before, with icon in the inner gap) */
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  justify-content: flex-start;
}

.header-mark {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.header-mark img {
  height: clamp(1.75rem, 3.5vw, 2.5rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.header-brand:hover .header-mark {
  filter: drop-shadow(0 0 8px rgba(0, 255, 200, 0.3));
}

@media (max-width: 480px) {
  .header-brand {
    gap: 0.4rem;
  }

  .header-mark img {
    height: 1.6rem;
  }
}

.header-brand .logo {
  min-width: 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(105deg, var(--text) 0%, var(--accent) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 0.25s var(--ease);
}

.logo:hover {
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(0, 255, 200, 0.35));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem clamp(0.75rem, 2vw, 1.5rem);
}

.nav-main a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}

.nav-main a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-main a:not(.btn):hover {
  color: var(--text);
}

.nav-main a:not(.btn):hover::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: clamp(1rem, 4vw, 1.5rem);
    right: clamp(1rem, 4vw, 1.5rem);
    margin-top: 0.5rem;
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    z-index: 50;
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-main .btn {
    text-align: center;
    justify-content: center;
  }
}

.site-main {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

/* —— Buttons —— */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.2s var(--ease-out),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #14182a;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  border: none;
  color: #020208;
  background: linear-gradient(125deg, #00ffc8 0%, #00d4aa 40%, #9d7dff 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 4px 24px rgba(0, 255, 200, 0.25);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}

.btn-primary:hover {
  color: #020208;
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 8px 32px rgba(0, 255, 200, 0.35),
    0 0 48px rgba(157, 125, 255, 0.2);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-glow:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 5px rgba(0, 255, 200, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost-bright {
  border-color: rgba(0, 255, 200, 0.35);
  color: var(--accent);
}

.btn-ghost-bright:hover {
  background: rgba(0, 255, 200, 0.1);
  border-color: var(--accent);
  color: var(--accent-hover);
  box-shadow: 0 0 28px rgba(0, 255, 200, 0.15);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-danger {
  border-color: rgba(240, 113, 113, 0.45);
  color: var(--danger);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(3.25rem, 11vw, 6.5rem) 0 clamp(4rem, 12vw, 7.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-grid-bg {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(0, 255, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 125, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(400px) rotateX(12deg);
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 85%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: hero-float 14s ease-in-out infinite;
}

.hero-glow-a {
  width: min(480px, 70vw);
  height: min(420px, 55vh);
  left: -10%;
  top: -15%;
  background: radial-gradient(circle, rgba(0, 255, 200, 0.35), transparent 70%);
}

.hero-glow-b {
  width: min(400px, 60vw);
  height: min(380px, 50vh);
  right: -15%;
  bottom: -5%;
  background: radial-gradient(circle, rgba(255, 78, 184, 0.28), transparent 70%);
  animation-delay: -7s;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3%, 4%) scale(1.05);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 70% at 50% 35%,
    rgba(0, 255, 200, 0.12) 0%,
    rgba(157, 125, 255, 0.06) 42%,
    transparent 65%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: min(52rem, 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
  text-shadow: 0 0 24px rgba(0, 255, 200, 0.4);
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(255, 78, 184, 0.6);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.15);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 5.5vw + 0.85rem, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 1.35rem;
  max-width: 18ch;
}

.text-gradient {
  background: linear-gradient(105deg, #00ffc8 0%, #7cf0ff 38%, #9d7dff 72%, #ff4eb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-warm {
  background: linear-gradient(105deg, #ff4eb8 0%, #ffc14d 55%, #00ffc8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  max-width: 42ch;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.hero-pills li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 200, 0.22);
  background: rgba(0, 255, 200, 0.06);
  color: #c5f7ee;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.06);
  transition: border-color 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.hero-pills li:hover {
  border-color: rgba(255, 78, 184, 0.45);
  background: rgba(255, 78, 184, 0.08);
  color: #ffe0f2;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 78, 184, 0.15);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow,
  .hero-eyebrow-dot {
    animation: none;
  }
}

/* —— Sections —— */
.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(157, 125, 255, 0.04), rgba(255, 255, 255, 0.02));
  border-block: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw + 0.5rem, 2.5rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.5rem;
  line-height: 1.12;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 50ch;
  font-size: 1.02rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out),
    filter 0.65s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

[data-reveal-stagger].is-visible .process-item {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger] .process-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

[data-reveal-stagger] .card-interactive {
  --stagger-lift: 20px;
  opacity: 0;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--stagger-lift));
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

[data-reveal-stagger].is-visible .card-interactive {
  opacity: 1;
  --stagger-lift: 0px;
}

[data-reveal-stagger].is-visible .process-item:nth-child(1) {
  transition-delay: 0.05s;
}
[data-reveal-stagger].is-visible .process-item:nth-child(2) {
  transition-delay: 0.1s;
}
[data-reveal-stagger].is-visible .process-item:nth-child(3) {
  transition-delay: 0.15s;
}
[data-reveal-stagger].is-visible .process-item:nth-child(4) {
  transition-delay: 0.2s;
}
[data-reveal-stagger].is-visible .process-item:nth-child(5) {
  transition-delay: 0.25s;
}

[data-reveal-stagger].is-visible .card-interactive:nth-child(1) {
  transition-delay: 0.06s;
}
[data-reveal-stagger].is-visible .card-interactive:nth-child(2) {
  transition-delay: 0.14s;
}
[data-reveal-stagger].is-visible .card-interactive:nth-child(3) {
  transition-delay: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-stagger] .process-item,
  [data-reveal-stagger] .card-interactive {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.grid-services {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.card-interactive {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 24, 40, 0.95), rgba(10, 12, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(0, 255, 200, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.35);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(0);
  transition:
    transform 0.12s ease-out,
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card-interactive::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 255, 200, 0.45), transparent 40%, rgba(255, 78, 184, 0.35));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.card-interactive:hover {
  border-color: rgba(0, 255, 200, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 255, 200, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(157, 125, 255, 0.12);
}

.card-interactive:hover::before {
  opacity: 0.75;
}

.card-icon {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.35));
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* —— Work / portfolio —— */
.work-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.work-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work-grid .work-card {
  max-width: none;
  margin-inline: 0;
  height: 100%;
}

.work-card {
  display: block;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(22, 26, 42, 0.98), rgba(8, 9, 16, 0.99));
  text-decoration: none;
  color: inherit;
  --lift: 0px;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift));
  transition: border-color 0.3s var(--ease), box-shadow 0.35s var(--ease), transform 0.12s ease-out;
  box-shadow: 0 0 0 1px rgba(0, 255, 200, 0.05), 0 20px 50px rgba(0, 0, 0, 0.4);
}

.work-card:hover {
  border-color: rgba(0, 255, 200, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 255, 200, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(255, 78, 184, 0.08);
  --lift: -6px;
}

.work-card-featured {
  max-width: min(720px, 100%);
}

.work-card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(0, 255, 200, 0.12), rgba(157, 125, 255, 0.15), rgba(255, 78, 184, 0.08));
  transition: filter 0.4s var(--ease);
}

.work-card:hover .work-card-media {
  filter: saturate(1.15) brightness(1.05);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-media-placeholder {
  min-height: 200px;
}

.work-card-body {
  padding: 1.35rem clamp(1.1rem, 3vw, 1.5rem) 1.5rem;
}

.work-card h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.work-card .muted {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.work-card-cta {
  font-weight: 700;
  font-size: 0.88rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

/* —— CTA —— */
.cta-block {
  text-align: center;
  padding: clamp(3.5rem, 10vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-rail {
  position: relative;
  padding: clamp(2rem, 5vw, 2.75rem);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 200, 0.18);
  background: linear-gradient(160deg, rgba(0, 255, 200, 0.08), rgba(157, 125, 255, 0.06), rgba(255, 78, 184, 0.05));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 100px rgba(0, 255, 200, 0.06);
}

.cta-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  right: -60px;
  top: -80px;
  background: radial-gradient(circle, rgba(255, 78, 184, 0.35), transparent 70%);
  filter: blur(2px);
  pointer-events: none;
  animation: hero-float 12s ease-in-out infinite;
}

.cta-inner {
  max-width: 36rem;
  margin-inline: auto;
}

.cta-inner .section-title {
  margin-bottom: 0.75rem;
}

.cta-inner .section-lead {
  margin-bottom: 1.5rem;
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .cta-orb {
    animation: none;
  }
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.footer-line {
  margin: 0 auto 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36ch;
}

.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* —— Inner pages —— */
.page-shell {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 8vw, 5rem);
}

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.lead,
.page-head .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 60ch;
  line-height: 1.55;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.center {
  text-align: center;
}

.mt-lg {
  margin-top: 2rem;
}
.mt-md {
  margin-top: 1rem;
}

/* Forms */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
textarea {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  max-width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(0, 255, 200, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 255, 200, 0.12);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--accent);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.checks {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checks legend {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
  padding: 0;
}

label.check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
  cursor: pointer;
}

label.check input[type="checkbox"],
label.check input[type="radio"] {
  margin-top: 0.22rem;
}

label.check span {
  flex: 1 1 auto;
  min-width: 0;
}

.quote-checks {
  margin-top: 0.25rem;
}

.notice {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.notice.success {
  border-color: rgba(0, 255, 200, 0.4);
  background: rgba(0, 255, 200, 0.08);
}

.notice.error {
  border-color: rgba(240, 113, 113, 0.4);
  background: rgba(240, 113, 113, 0.06);
}

/* Quote */
.quote-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .quote-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.quote-aside {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.quote-aside h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.price-breakdown {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.price-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.estimate-big {
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0.25rem 0;
}

/* Case study */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.case-hero {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.case-hero img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Fallback before JS classifies aspect ratio */
  max-width: min(400px, 100%);
  max-height: min(400px, 70vh);
}

/* Your caps (width × height): wider-than-tall → 200×400 · taller-than-wide → 400×200 · ~square → 200×200 */
.case-hero.case-hero--landscape img {
  max-width: 200px;
  max-height: 400px;
}

.case-hero.case-hero--portrait img {
  max-width: 400px;
  max-height: 200px;
}

.case-hero.case-hero--square img {
  max-width: 200px;
  max-height: 200px;
}

.case-header .eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.case-header h1 {
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.prose {
  max-width: 52rem;
}

.prose p {
  color: var(--muted);
}

/* Dashboard */
.project-list {
  display: grid;
  gap: 1rem;
}

.project-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.25rem 1.35rem;
}

.project-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.project-card-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(157, 125, 255, 0.45);
  color: var(--link);
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 0.85rem 0 0.35rem;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--link), var(--accent));
}

.empty-state {
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  padding: 2rem 1.5rem;
  text-align: center;
}

.empty-state h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
}

/* —— Admin —— */
body.page-admin.site-admin {
  background: var(--bg);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 13, 0.95);
  border-bottom: 1px solid var(--line);
}

.admin-header-inner {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding: 0.85rem clamp(1rem, 4vw, 1.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.admin-header .logo {
  font-weight: 700;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-left: auto;
}

.admin-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
}

.admin-nav a:hover {
  color: var(--text);
}

.admin-main {
  padding-bottom: 3rem;
}

.admin-main h1 {
  font-weight: 700;
  margin-top: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.stat-card {
  text-align: center;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

.stat-num {
  font-weight: 700;
  font-size: 1.65rem;
  display: block;
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.data-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  table-layout: auto;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.35rem;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-footer {
  padding: 1.5rem 0 2.5rem;
}

.admin-dl {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 0.5rem 1.25rem;
  margin: 1rem 0 0;
  max-width: 40rem;
}

.admin-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.admin-dl dd {
  margin: 0;
  word-break: break-word;
}

.admin-message-body {
  max-width: 48rem;
  line-height: 1.55;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

/* —— Remember me (login/register) —— */
.remember-hint {
  margin: -0.25rem 0 0.75rem;
}

label.remember-row {
  margin-top: 0.35rem;
}

/* —— Cookie consent banner —— */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  background: rgba(5, 5, 12, 0.94);
  border-top: 1px solid rgba(0, 255, 200, 0.2);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: 1100px;
  margin-inline: auto;
}

.cookie-banner-text-block {
  flex: 1 1 16rem;
  min-width: 0;
}

.cookie-banner-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.cookie-banner-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-banner-lead a {
  font-weight: 600;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-banner-form {
  margin: 0;
}

@media (max-width: 560px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Customer project notes (dashboard + admin) —— */
.customer-notes-section {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.customer-notes-heading {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.customer-notes-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.customer-notes-item {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.customer-notes-time {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.customer-notes-body {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.customer-notes-form textarea {
  margin-bottom: 0.65rem;
}

.admin-customer-requests {
  max-width: 52rem;
}

.admin-customer-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-customer-notes-item {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 255, 200, 0.04);
}

/* —— Contact: inbox bars + thread modal —— */
.contact-page-signed-tip {
  margin-top: 0.85rem;
  max-width: 36rem;
}

.contact-inbox {
  margin-bottom: 2rem;
}

.contact-inbox-head {
  margin-bottom: 1rem;
}

.contact-inbox-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.contact-inbox-lead {
  margin: 0;
}

.contact-inbox-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.contact-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-thread-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(14, 16, 26, 0.95), rgba(10, 12, 22, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-thread-bar-main {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-thread-subject {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-thread-date {
  font-size: 0.78rem;
}

.contact-thread-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.contact-thread-status.is-replied {
  color: var(--accent);
  border-color: rgba(0, 255, 200, 0.35);
  background: rgba(0, 255, 200, 0.08);
}

.contact-thread-status.is-open {
  color: #ffc8ec;
  border-color: rgba(255, 78, 184, 0.35);
  background: rgba(255, 78, 184, 0.08);
}

.contact-thread-view {
  flex-shrink: 0;
}

body.contact-modal-open {
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none !important;
}

.contact-modal:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 8, 0.72);
  backdrop-filter: blur(6px);
}

.contact-modal-panel {
  position: relative;
  margin: 4.5vh auto 2rem;
  max-width: 32rem;
  width: calc(100% - 1.75rem);
  max-height: min(88vh, 36rem);
  overflow-y: auto;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(0, 255, 200, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.55);
}

.contact-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-close:hover {
  background: rgba(255, 78, 184, 0.2);
}

.contact-modal-title {
  margin: 0 2.25rem 0.35rem 0;
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-right: 0.25rem;
}

.contact-modal-meta {
  margin: 0 0 1.1rem;
}

.contact-modal-block {
  margin-bottom: 1.1rem;
}

.contact-modal-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.contact-modal-text {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.contact-modal-admin.is-placeholder {
  color: var(--muted);
  font-style: italic;
}

.contact-modal-followup {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.contact-modal-followup-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.contact-modal-followup textarea {
  margin-bottom: 0.75rem;
}
