/* ═══════════════════════════════════════════════════════
   ACTIVE THEORY V6 — Asymmetric Dark Studio
   Design tokens from activetheory.net
   ═══════════════════════════════════════════════════════ */

:root {
  /* Colors */
  --bg: #000000;
  --bg-secondary: #0a0a0a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-subtle: rgba(255, 255, 255, 0.4);
  --accent: #00ffff;
  --accent-glow: rgba(0, 255, 255, 0.3);
  --accent-muted: rgba(200, 255, 255, 0.2);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.3);
  --card-bg: rgba(255, 255, 255, 0.05);
  --overlay: rgba(0, 0, 0, 0.5);

  /* Typography */
  --font: "Space Mono", monospace;
  --letter-spacing: 0.05em;
  --line-height: 1.4;

  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px);
  --max-width: 1400px;
  --gutter: clamp(20px, 4vw, 60px);
  --gap: 24px;

  /* Borders */
  --radius: 24px;
  --radius-sm: 12px;
  --radius-pill: 100px;

  /* Shadows */
  --glow: 0 0 30px rgba(0, 255, 255, 0.15);
  --glow-strong: 0 0 60px rgba(0, 255, 255, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Easing */
  --ease-smooth: cubic-bezier(0.17, 0.4, 0.02, 0.99);
  --ease-fade: cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  overflow-x: hidden;
  font-size: 14px;
  line-height: var(--line-height);
  color: var(--text);
  background: var(--bg);
  letter-spacing: var(--letter-spacing);
  opacity: 0;
  animation: page-fade-in 2s var(--ease-fade) forwards;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Page Fade In ── */
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Cursor Blink ── */
@keyframes cursor-blink {
  0%, 25% { background: transparent; }
  50%, 75% { background: var(--accent); }
  100% { background: transparent; }
}

.cursor-blink {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: cursor-blink 1.2s infinite;
}

/* ── Dot Flashing ── */
@keyframes dot-flashing {
  0% { background-color: var(--accent); box-shadow: 0 1px 6px var(--accent); }
  50%, 100% { background-color: var(--accent-muted); box-shadow: none; }
}

/* ── Float (Particles) ── */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-30px) scale(1.3); opacity: 0.8; }
}

/* ── Ticker ── */
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ── Scroll Reveal ── */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION — Full-width bar with left/right split
   ═══════════════════════════════════════════════════════ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-subtle);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  transition: color 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  transform: translateX(4px);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 24px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s;
}

.hamburger span:nth-child(1) { top: 4px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 18px; }

/* ═══════════════════════════════════════════════════════
   HERO — Asymmetric split with vertical accent line
   ═══════════════════════════════════════════════════════ */

.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  position: relative;
  overflow: hidden;
}

.hero-left {
  padding: clamp(100px, 15vh, 160px) 0;
  position: relative;
  z-index: 2;
}

.hero-left::before {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(transparent, var(--accent), transparent);
}

.hero-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.hero-tagline {
  font-size: clamp(12px, 1.5vw, 16px);
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}

.hero-right {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: float 6s ease-in-out infinite;
}

.hero-particles .particle:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.hero-particles .particle:nth-child(2) { top: 40%; left: 60%; animation-delay: 1.2s; animation-duration: 8s; }
.hero-particles .particle:nth-child(3) { top: 70%; left: 30%; animation-delay: 2.4s; animation-duration: 7s; }
.hero-particles .particle:nth-child(4) { top: 25%; left: 80%; animation-delay: 0.8s; animation-duration: 9s; }
.hero-particles .particle:nth-child(5) { top: 55%; left: 45%; animation-delay: 3s; animation-duration: 5s; }
.hero-particles .particle:nth-child(6) { top: 80%; left: 75%; animation-delay: 1.5s; animation-duration: 7.5s; }
.hero-particles .particle:nth-child(7) { top: 35%; left: 10%; animation-delay: 4s; animation-duration: 6s; }
.hero-particles .particle:nth-child(8) { top: 60%; left: 90%; animation-delay: 2s; animation-duration: 8.5s; }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-subtle);
  writing-mode: vertical-lr;
}

/* ═══════════════════════════════════════════════════════
   TICKER — Horizontal scrolling text band
   ═══════════════════════════════════════════════════════ */

.ticker-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-flex;
  gap: 48px;
  animation: ticker 25s linear infinite;
}

.ticker-content span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
}

.ticker-content span::after {
  content: "//";
  margin-left: 48px;
  color: var(--accent);
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════
   SECTIONS — Content containers
   ═══════════════════════════════════════════════════════ */

.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding) var(--gutter);
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   STATS — Horizontal row
   ═══════════════════════════════════════════════════════ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  background: var(--card-bg);
  transition: border-color 0.4s var(--ease-smooth);
}

.stat-item:hover {
  border-color: var(--accent);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
}

/* ═══════════════════════════════════════════════════════
   SERVICES — Bento grid
   ═══════════════════════════════════════════════════════ */

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--gap);
  margin-top: 48px;
}

.bento-card {
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  background: var(--card-bg);
  transition: border-color 0.4s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.bento-card:first-child {
  grid-row: 1 / 3;
}

.bento-card .card-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 24px;
}

.bento-card h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bento-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   PROJECTS — Alternating rows
   ═══════════════════════════════════════════════════════ */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 80px);
  margin-top: 48px;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.project-row:nth-child(even) {
  direction: rtl;
}

.project-row:nth-child(even) > * {
  direction: ltr;
}

.project-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.project-row:hover .project-image img {
  transform: scale(1.05);
}

.project-info h3 {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 12px;
}

.project-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.project-info .project-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
}

/* ═══════════════════════════════════════════════════════
   PROCESS — Numbered steps
   ═══════════════════════════════════════════════════════ */

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: 48px;
}

.process-step {
  padding: 32px 24px;
  border-left: 1px solid var(--border);
  position: relative;
}

.process-step:hover {
  border-left-color: var(--accent);
}

.process-step .step-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS — Single featured quote
   ═══════════════════════════════════════════════════════ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 48px;
}

.testimonial-card {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  background: var(--card-bg);
  position: relative;
  transition: border-color 0.4s var(--ease-smooth);
}

.testimonial-card:hover {
  border-color: var(--accent);
}

.testimonial-card::before {
  content: "\201C";
  font-size: 64px;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
  padding-top: 32px;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.testimonial-role {
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════ */

.cta-section {
  text-align: center;
  padding: var(--section-padding) var(--gutter);
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(var(--accent), transparent);
}

.cta-button {
  display: inline-block;
  margin-top: 32px;
  padding: 16px 48px;
  font-size: 12px;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copyright {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 16px;
}

.footer-email {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.footer-email:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   SUBPAGE HERO — Shorter
   ═══════════════════════════════════════════════════════ */

.hero-sub {
  min-height: 50dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero-sub .hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-sub h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  position: relative;
  z-index: 2;
}

.hero-sub .section-label {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════
   ABOUT PAGE — Story section
   ═══════════════════════════════════════════════════════ */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.story-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 48px;
}

.value-card {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  background: var(--card-bg);
  transition: border-color 0.4s var(--ease-smooth);
}

.value-card:hover { border-color: var(--accent); }

.value-card .value-num {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 12px;
}

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

/* ═══════════════════════════════════════════════════════
   SERVICES PAGE — Service cards
   ═══════════════════════════════════════════════════════ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 48px;
}

.service-card {
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  background: var(--card-bg);
  transition: border-color 0.4s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--accent);
}

.service-card h3 {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   CONTACT PAGE — Form + Info
   ═══════════════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  margin-top: 48px;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.form-group label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.4s var(--ease-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;
}

.info-block .info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.info-block .info-value {
  font-size: 14px;
  color: var(--text);
}

.info-block a {
  color: var(--accent);
  transition: opacity 0.3s;
}

.info-block a:hover { opacity: 0.7; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — 1024px
   ═══════════════════════════════════════════════════════ */

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

  .site-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px var(--gutter);
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .hero { grid-template-columns: 1fr; min-height: 80dvh; }
  .hero-right { display: none; }
  .hero-left::before { display: none; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card:first-child { grid-row: auto; }
  .project-row { grid-template-columns: 1fr; }
  .project-row:nth-child(even) { direction: ltr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — 640px
   ═══════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { justify-content: center; }
}
