/* WANGXIAOHENG LLC — Creative Digital Studio */

:root {
  --bg-dark: #0A0A0A;
  --bg-card: #111111;
  --bg-elevated: #161616;
  --text-primary: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-subtle: rgba(255, 255, 255, 0.35);
  --accent-blue: #0066FF;
  --accent-coral: #FF6B6B;
  --accent-purple: #7B61FF;
  --gradient-brand: linear-gradient(135deg, #0066FF 0%, #7B61FF 50%, #FF6B6B 100%);
  --font-display: 'Space Grotesk', 'Poppins', sans-serif;
  --font-body: 'Inter', 'DM Sans', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body.no-custom-cursor {
  cursor: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Custom Cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background 0.3s;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), border-color 0.3s;
}

.cursor-ring.hover {
  width: 64px;
  height: 64px;
  border-color: var(--accent-coral);
}

body.no-custom-cursor .cursor-dot,
body.no-custom-cursor .cursor-ring {
  display: none;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  transition: background 0.5s var(--ease-out-expo), backdrop-filter 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.75rem;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand .logo-img {
  height: 48px;
  width: auto;
}

.footer-brand .logo-name {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-blue);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-canvas {
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 12s ease-in-out infinite;
}

.hero-gradient-orb:nth-child(1) {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: var(--accent-blue);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.hero-gradient-orb:nth-child(2) {
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: var(--accent-coral);
  bottom: 10%;
  left: -5%;
  animation-delay: -4s;
}

.hero-gradient-orb:nth-child(3) {
  width: 30vw;
  height: 30vw;
  max-width: 400px;
  max-height: 400px;
  background: var(--accent-purple);
  top: 40%;
  left: 40%;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  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: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vw, 6rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 14ch;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 0.5s forwards;
}

.hero-title .line-accent {
  display: block;
  margin-left: clamp(2rem, 15vw, 12rem);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin-top: 2rem;
  max-width: 480px;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  margin-left: auto;
  text-align: right;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
  z-index: 1;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1.2s forwards;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.5; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 4vw, 4rem);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-coral);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-desc {
  max-width: 420px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Home intro */
.home-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  overflow: hidden;
}

.home-intro::before {
  content: '';
  position: absolute;
  width: 42vw;
  height: 42vw;
  min-width: 320px;
  min-height: 320px;
  right: -14vw;
  top: 8%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.18) 0%, transparent 68%);
  pointer-events: none;
}

.home-intro-copy,
.home-intro-points,
.home-intro-strip {
  position: relative;
  z-index: 1;
}

.home-intro-title {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.home-intro-text {
  max-width: 620px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
}

.home-intro-points {
  display: grid;
  gap: 1rem;
  padding-top: 2.5rem;
}

.home-intro-point {
  padding: 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  backdrop-filter: blur(14px);
}

.home-intro-point span {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent-blue);
  letter-spacing: 0.16em;
}

.home-intro-point h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.home-intro-point p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.home-intro-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(1rem, 3vw, 2rem);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.home-intro-strip span {
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.home-intro-strip span:last-child {
  border-right: 0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Work Grid */
.work-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.work-carousel::-webkit-scrollbar {
  display: none;
}

.work-card {
  flex: 0 0 clamp(280px, 35vw, 420px);
  scroll-snap-align: start;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.work-card .work-card-thumb {
  position: absolute;
  inset: 0;
}

.work-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.work-card:hover .work-card-thumb {
  transform: scale(1.08);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.5s;
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-card-category {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.work-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Work page grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.work-grid-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-card);
}

.work-grid-item .work-card-thumb {
  position: absolute;
  inset: 0;
}

.work-grid-item:nth-child(3n+2) {
  transform: translateY(2rem);
}

.work-grid-item:nth-child(3n) {
  transform: translateY(-1rem);
}

.work-grid-item .work-card-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.2) 100%);
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  background: rgba(0, 102, 255, 0.1);
}

.filter-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.5s, background 0.5s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 102, 255, 0.3);
  background: var(--bg-elevated);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-visual-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1rem;
  align-items: center;
}

.about-visual-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
}

.about-visual-card-offset {
  margin-top: 3rem;
}

.about-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-visual-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.38) 0%, transparent 58%);
  pointer-events: none;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-text p:first-of-type {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.team-member {
  text-align: center;
}

.team-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  position: relative;
}

.team-icon-shape {
  width: 100%;
  height: 100%;
  background: var(--gradient-brand);
  opacity: 0.85;
}

.team-icon-shape.icon-diamond {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.team-icon-shape.icon-hex {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.team-icon-shape.icon-circle {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent-blue), var(--accent-purple));
}

.team-icon-shape.icon-grid {
  background:
    linear-gradient(var(--accent-blue) 2px, transparent 2px) 0 0 / 18px 18px,
    linear-gradient(90deg, var(--accent-coral) 2px, transparent 2px) 0 0 / 18px 18px,
    var(--bg-elevated);
  border-radius: 12px;
  opacity: 1;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.contact-info-item {
  margin-bottom: 2rem;
}

.contact-info-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}

.contact-info-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.contact-info-value a:hover {
  color: var(--accent-blue);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease-out-expo);
}

.social-link:hover {
  border-color: var(--accent-blue);
  background: rgba(0, 102, 255, 0.15);
  transform: translateY(-3px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: #0052cc;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

/* Case Study */
.case-hero {
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding: calc(var(--nav-height) + 3rem) clamp(1.5rem, 4vw, 4rem) 2.5rem;
  overflow: hidden;
}

.case-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.case-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.35) 100%);
}

.case-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.case-meta span {
  letter-spacing: 0.05em;
}

.case-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 4vw, 4rem);
}

.case-section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.case-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.case-full-image {
  width: 100%;
  aspect-ratio: 21/6;
  max-height: 200px;
  margin: 1.5rem 0;
  border-radius: 4px;
  overflow: hidden;
}

.case-full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-quote {
  border-left: 3px solid var(--accent-coral);
  padding: 1.5rem 2rem;
  margin: 2rem clamp(1.5rem, 4vw, 4rem);
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
}

.case-quote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.case-quote cite {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Page header (inner pages) */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) clamp(1.5rem, 4vw, 4rem) 4rem;
  position: relative;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.page-hero-title .offset {
  display: block;
  margin-left: clamp(3rem, 20vw, 15rem);
  color: var(--text-muted);
}

/* CTA strip */
.cta-strip {
  background: var(--bg-card);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: clamp(2rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 4rem);
  text-align: center;
}

.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-strip p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  padding: 0 clamp(1.5rem, 4vw, 4rem) 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-dark);
}

.footer-cta {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-cta-inner {
  max-width: 640px;
}

.footer-cta-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-coral);
  margin-bottom: 0.75rem;
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.footer-cta-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
  max-width: 340px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.footer-about {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.footer-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-col a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-contact-list .footer-hours {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.footer-bottom a,
.footer-back-top {
  color: var(--text-muted);
  transition: color 0.3s;
  font-size: 0.75rem;
}

.footer-back-top {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  padding: 0;
}

.footer-bottom a:hover,
.footer-back-top:hover {
  color: var(--text-primary);
}

/* Creative Workshop Easter Egg */
.workshop-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  background: var(--gradient-brand);
  color: var(--text-primary);
  padding: 0.6rem 1.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  z-index: 999;
  transition: transform 0.4s var(--ease-out-expo);
}

.workshop-tab:hover {
  transform: translateY(-50%) rotate(-90deg) scale(1.05);
}

.workshop-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.workshop-modal.open {
  opacity: 1;
  visibility: visible;
}

.workshop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
}

.workshop-panel {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 3rem;
  max-width: 480px;
  width: 100%;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s var(--ease-out-expo);
}

.workshop-modal.open .workshop-panel {
  transform: translateY(0) scale(1);
}

.workshop-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.workshop-close:hover {
  color: var(--text-primary);
}

.workshop-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-coral);
  margin-bottom: 1rem;
}

.workshop-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.workshop-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.workshop-refresh {
  margin-top: 2rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}

.workshop-refresh:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

/* Legal pages */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem) 4rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Placeholder visuals */
.visual-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  position: relative;
  overflow: hidden;
}

.visual-placeholder.pattern-1 {
  background:
    radial-gradient(circle at 20% 30%, rgba(0,102,255,0.55) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255,107,107,0.4) 0%, transparent 40%),
    var(--bg-card);
}

.visual-placeholder.pattern-1::after { display: none; }

.visual-placeholder.pattern-2 {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(123,97,255,0.25) 12px,
      rgba(123,97,255,0.25) 14px
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(0,102,255,0.15) 12px,
      rgba(0,102,255,0.15) 14px
    ),
    var(--bg-card);
}

.visual-placeholder.pattern-2::after { display: none; }

.visual-placeholder.pattern-3 {
  background:
    conic-gradient(from 120deg at 60% 40%, rgba(0,102,255,0.5), rgba(123,97,255,0.4), rgba(255,107,107,0.35), rgba(0,102,255,0.5)),
    var(--bg-card);
}

.visual-placeholder.pattern-3::after { display: none; }

.visual-placeholder.pattern-4 {
  background:
    radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,102,255,0.2) 0%, transparent 60%),
    var(--bg-card);
  background-size: 24px 24px, 100% 100%;
}

.visual-placeholder.pattern-4::after { display: none; }

.visual-placeholder.pattern-5 {
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255,107,107,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(0,102,255,0.3) 0%, transparent 60%),
    var(--bg-card);
}

.visual-placeholder.pattern-5::after { display: none; }

.visual-placeholder.pattern-6 {
  background: var(--bg-card);
}

.visual-placeholder.pattern-6::before {
  content: '';
  position: absolute;
  inset: 15%;
  border: 2px solid rgba(0,102,255,0.4);
  border-radius: 50%;
}

.visual-placeholder.pattern-6::after {
  content: '';
  position: absolute;
  inset: 30%;
  border: 2px solid rgba(255,107,107,0.35);
  border-radius: 50%;
  background: none;
  opacity: 1;
  mix-blend-mode: normal;
}

/* Stats row */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-subtle);
}

.marquee-item span {
  color: var(--accent-blue);
  margin: 0 1rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile */
@media (max-width: 900px) {
  body {
    cursor: auto;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: block;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .home-intro {
    grid-template-columns: 1fr;
  }

  .home-intro-points {
    padding-top: 0;
  }

  .home-intro-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-intro-strip span:nth-child(2) {
    border-right: 0;
  }

  .home-intro-strip span:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-visual-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-visual-card-offset {
    margin-top: 1.5rem;
  }

  .work-grid-item:nth-child(3n+2),
  .work-grid-item:nth-child(3n) {
    transform: none;
  }

  .hero-title .line-accent {
    margin-left: 1rem;
  }

  .page-hero-title .offset {
    margin-left: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none;
  }
}
