/* ============================================================
   Dan Mutia Portfolio - styles
   Dark + electric purple skin, Rick-Allan-style motion layout
   ============================================================ */

:root {
  --base: #0b0b0d;
  --surface: #141417;
  --surface-2: #1b1b1f;
  --text: #f4f4f5;
  --muted: #8a8a90;
  --line: #2a2a2e;
  --accent: #a855f7;
  --accent-soft: #c9a6f5;
  --accent-ink: #2a103f;
  --accent-2: #d05b19;
  --accent-2-soft: #f0915a;
  --glow-orange: #e8651f;

  --maxw: 1240px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --radius: 4px;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: thin; scrollbar-color: var(--accent) var(--base); }

body {
  background-color: var(--base);
  background-image:
    radial-gradient(60vw 50vw at 12% -5%, rgba(168, 85, 247, 0.12), transparent 60%),
    radial-gradient(55vw 45vw at 92% 105%, rgba(208, 91, 25, 0.13), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; color: var(--accent); }
.dot { color: var(--accent); }
.accent-soft { color: var(--accent-soft); }

::selection { background: var(--accent); color: #fff; }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: clamp(5rem, 22vw, 16rem);
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
}
.display-md {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
}
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.4rem;
}
.kicker::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 1.8rem; height: 1px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease);
  will-change: transform;
}
.btn-cta { background: var(--accent); color: #fff; }
.btn-cta:hover { background: #fff; color: var(--base); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 34px; height: 34px;
  border: 1px solid var(--accent-soft);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease);
}
.cursor.grow { width: 64px; height: 64px; background: rgba(168, 85, 247, 0.25); border-color: transparent; }
.cursor-dot { width: 5px; height: 5px; background: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--pad);
  background: rgba(11, 11, 13, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-mark { width: 9px; height: 9px; background: var(--text); display: inline-block; }
.brand-icon { height: 30px; width: auto; display: block; }
.site-header.scrolled .brand-icon { height: 26px; transition: height 0.4s var(--ease); }
.nav { display: flex; gap: 2rem; }
.nav a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav-cta { padding: 0.7rem 1.2rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.menu-toggle span { width: 26px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--base);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--text);
}
.mobile-menu nav a.btn { font-family: var(--font-body); font-size: 0.9rem; align-self: center; }

/* ---------- Layout ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vw, 9rem) var(--pad);
}
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head.center { text-align: center; }
.section-intro { color: var(--muted); max-width: 40ch; margin-top: 1.2rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 11rem) var(--pad) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-grid, .hero-foot { position: relative; z-index: 1; }
.side-label { z-index: 1; }

/* Aurora mesh background */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob-1 {
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, var(--glow-orange), transparent 70%);
  top: -12%; left: -6%;
  animation: drift1 18s ease-in-out infinite;
}
.blob-2 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  bottom: -18%; left: 18%;
  animation: drift2 23s ease-in-out infinite;
}
.blob-3 {
  width: 34vw; height: 34vw;
  background: radial-gradient(circle, var(--accent-2-soft), transparent 70%);
  top: 6%; right: -8%;
  animation: drift3 20s ease-in-out infinite;
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(9%,13%) scale(1.18); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(-11%,-8%) scale(0.9); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-8%,10%) scale(1.2); } }

/* Film grain overlay */
.hero-grain {
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.7s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); }
  25% { transform: translate(-3%,2%); }
  50% { transform: translate(2%,-3%); }
  75% { transform: translate(-2%,-2%); }
  100% { transform: translate(3%,3%); }
}

/* Scramble text */
.scramble { display: inline-block; }
.scramble .dud { color: var(--accent-soft); opacity: 0.85; }
.side-label {
  position: absolute;
  left: clamp(0.5rem, 2vw, 1.4rem);
  top: 55%;
  transform: rotate(180deg) translateY(50%);
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}
.hero-lead { position: relative; z-index: 2; }
.hero-role {
  font-size: clamp(1.1rem, 2.3vw, 1.7rem);
  font-weight: 500;
  margin-top: 1.2rem;
}
.hero-role .amp { color: var(--accent); }
.hero-tag { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-loc {
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-figure { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 3 / 4; }
.hero-circle {
  position: absolute;
  inset: 12% 8% 18% 12%;
  background: var(--accent);
  border-radius: 50%;
  z-index: 0;
}
.hero-circle.small { inset: 8% 6% 14% 8%; }
.hero-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
}
/* Real hero photo: full colour, fills the frame */
.hero-photo {
  object-fit: cover;
  object-position: center top;
  filter: none;
  border-radius: 10px;
}
/* The photo carries its own backdrop, so drop the flat circle behind it */
body[data-page="home"] .hero-circle,
body[data-page="about"] .hero-circle { display: none; }
.hero-status {
  position: absolute;
  right: -0.5rem; top: 1rem;
  z-index: 2;
  border: 1px solid var(--accent-2);
  background: rgba(11,11,13,0.6);
  backdrop-filter: blur(6px);
  padding: 0.5rem 0.9rem;
  display: flex; flex-direction: column;
  text-align: right;
}
.status-label { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.status-value { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent-2-soft); }

.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: auto;
  padding-top: 2.5rem;
}
.hero-arrows { font-size: 1.3rem; color: var(--muted); letter-spacing: 0.2em; }
.hero-scroll { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.2rem 0;
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 3rem);
  text-transform: uppercase;
  will-change: transform;
}
.marquee-track span { color: var(--text); }
.marquee-track .sep { color: var(--accent-2); }

/* ---------- Services cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--base);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.card:hover { background: var(--surface-2); }
.card-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: auto;
}
.card:nth-child(even) .card-num { color: var(--accent-2-soft); }
.card:hover .card-num { color: var(--accent-2); }
.card h3 { font-size: 1.25rem; font-weight: 600; margin: 1.6rem 0 0.7rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Approach / orbit ---------- */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.orbit, .approach-body { position: relative; z-index: 1; }

/* Orb lights + lens flare */
.approach-lights { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  mix-blend-mode: screen;
  opacity: 0;
  will-change: transform, opacity;
}
.orb-1 { width: 220px; height: 220px; background: radial-gradient(circle, #a855f7, transparent 70%); top: 12%; animation: orbcross 16s linear infinite; }
.orb-2 { width: 150px; height: 150px; background: radial-gradient(circle, var(--glow-orange), transparent 70%); top: 58%; animation: orbcross 21s linear infinite 4s; }
.orb-3 { width: 110px; height: 110px; background: radial-gradient(circle, var(--accent-soft), transparent 70%); top: 78%; animation: orbcross 26s linear infinite 9s; }
@keyframes orbcross {
  0% { transform: translateX(-25vw) translateY(0); opacity: 0; }
  12% { opacity: 0.55; }
  88% { opacity: 0.55; }
  100% { transform: translateX(125vw) translateY(-40px); opacity: 0; }
}
.flare {
  position: absolute;
  top: -25%;
  left: 0;
  width: 45%;
  height: 150%;
  background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,0.05) 47%, rgba(201,166,245,0.55) 50%, rgba(255,255,255,0.05) 53%, transparent 58%);
  filter: blur(3px);
  mix-blend-mode: screen;
  opacity: 0;
  will-change: transform, opacity;
  animation: flaresweep 11s ease-in-out infinite 2s;
}
@keyframes flaresweep {
  0% { transform: translateX(-60%) rotate(10deg); opacity: 0; }
  45% { opacity: 0.85; }
  55% { opacity: 0.85; }
  100% { transform: translateX(320%) rotate(10deg); opacity: 0; }
}
.orbit {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.orbit-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: ringSpin 48s linear infinite;
}
.orbit-ring::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  opacity: 0.4;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* Orbiting dots: a spinning ring carrying the dots on its perimeter */
.orbit-spin { position: absolute; inset: 8%; animation: orbitSpin 20s linear infinite; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.orbit-dot { position: absolute; left: 50%; width: 14px; height: 14px; border-radius: 50%; margin-left: -7px; box-shadow: 0 0 18px currentColor; }
.orbit-dot-a { top: -7px; background: var(--accent); color: var(--accent); }
.orbit-dot-b { bottom: -7px; background: var(--accent-2); color: var(--accent-2); }
.orbit-label {
  position: absolute;
  top: 6%; left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.orbit h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.92;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.approach-lede { color: var(--text); font-size: 1.15rem; max-width: 42ch; margin-bottom: 2.5rem; }

.stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: 2.5rem; }
.stats.wide { justify-content: space-between; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--text); line-height: 1; }
.stat-label { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); margin-top: 0.5rem; max-width: 14ch; }

.results { display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 2.5rem; }
.result { border-left: 2px solid var(--accent-2); padding-left: 1rem; }
.result-value { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.2rem); color: var(--accent-2-soft); }
.result-label { font-size: 0.78rem; color: var(--muted); }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--base); padding: clamp(1.5rem, 3vw, 2.5rem); }
.step-num { font-family: var(--font-display); font-size: 2.5rem; color: var(--line); display: block; margin-bottom: 1rem; transition: color 0.3s var(--ease); }
.step:hover .step-num { color: var(--accent); }
.step h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.step p { color: var(--muted); max-width: 38ch; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  text-align: left;
  display: flex;
  flex-direction: column;
}
.stars { color: var(--accent); letter-spacing: 0.2em; margin-bottom: 1.1rem; }
.quote blockquote { font-size: 1.05rem; line-height: 1.5; flex: 1; }
@media (max-width: 900px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .quotes { grid-template-columns: 1fr; } }
.quote figcaption { margin-top: 1.6rem; display: flex; flex-direction: column; }
.q-name { font-weight: 600; }
.q-role { color: var(--muted); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  background: none; border: none; cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  text-align: left;
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.acc-icon { color: var(--accent); font-size: 1.5rem; transition: transform 0.3s var(--ease); flex-shrink: 0; }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.acc-panel { overflow: hidden; height: 0; transition: height 0.4s var(--ease); }
.acc-panel p { color: var(--muted); padding-bottom: 1.5rem; max-width: 60ch; }

/* ---------- FAQ page CTA ---------- */
.faq-cta { text-align: center; }
.faq-cta-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.faq-cta-inner .kicker::before { display: none; }
.faq-cta-text { color: var(--muted); margin: 1.2rem 0 0; max-width: 48ch; }
.faq-cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* ---------- Footer / contact ---------- */
.site-footer { background: var(--accent-soft); color: var(--accent-ink); }
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.footer-cta h2 { color: var(--accent-ink); }
.footer-em { font-style: italic; color: var(--accent-2); }
.footer-cta p { margin-top: 1.2rem; max-width: 42ch; font-size: 1.05rem; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.btn-footer-primary { background: var(--accent-ink); color: #fff; }
.btn-footer-primary:hover { background: #000; color: #fff; }
.btn-footer-ghost { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn-footer-ghost:hover { background: var(--accent-ink); color: #fff; }
.footer-info { align-self: center; }
.footer-contact { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.footer-contact li { display: flex; flex-direction: column; }
.footer-contact span:first-child { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
.footer-contact a, .footer-contact .addr { font-size: 1.1rem; font-weight: 500; }
.footer-contact a:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.field input, .field textarea {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--accent-ink);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--accent-ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-ink); outline-offset: 1px; background: #fff; }
.contact-form .btn-cta { align-self: flex-start; background: var(--accent-ink); }
.contact-form .btn-cta:hover { background: #000; color: #fff; }
.form-status { font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }

.footer-bottom {
  border-top: 1px solid rgba(42,16,63,0.25);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem var(--pad);
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-logo { grid-column: 1 / -1; height: clamp(40px, 6vw, 56px); width: auto; margin-bottom: 1.8rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h4 { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; margin-bottom: 0.4rem; }
.footer-col a { font-size: 0.95rem; }
.footer-col a:hover { text-decoration: underline; }
.copyright { grid-column: 1 / -1; font-size: 0.8rem; opacity: 0.7; padding-top: 1.5rem; }

/* ---------- About page ---------- */
.about-hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(8rem, 16vh, 12rem) var(--pad) 3rem; position: relative; }
.about-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.about-hero-tag { color: var(--muted); font-size: 1.15rem; margin-top: 1.6rem; max-width: 42ch; }
.about-hero-figure { position: relative; width: min(100%, 340px); aspect-ratio: 3 / 4; justify-self: center; }

.story-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.story-body p { font-size: 1.1rem; color: var(--text); }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--base); padding: clamp(1.4rem, 3vw, 2rem); }
.value h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--accent); }
.value p { color: var(--muted); font-size: 0.95rem; }

.case { background: var(--surface); }
.case-inner { max-width: var(--maxw); margin: 0 auto; }
.case-lede { color: var(--muted); font-size: 1.1rem; margin: 1rem 0 2.5rem; max-width: 46ch; }
.case-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.timeline { list-style: none; display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; padding: 1.8rem 0; border-top: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-years { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); }
.tl-item h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.tl-item p { color: var(--muted); }

.comp-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.comp-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; display: flex; align-items: center; gap: 0.8rem; }
.comp-list li::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex-shrink: 0; }

/* ---------- Sites built & ranked ---------- */
.sites {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.site-card {
  background: var(--base);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 130px;
  justify-content: space-between;
  transition: background 0.3s var(--ease);
}
.site-card:hover { background: var(--surface-2); }
.site-card h3 { font-size: 1.2rem; font-weight: 600; }
.site-url { color: var(--muted); font-size: 0.9rem; transition: color 0.3s var(--ease); }
.site-url span { display: inline-block; transition: transform 0.3s var(--ease); }
.site-card:hover .site-url { color: var(--accent-2); }
.site-card:hover .site-url span { transform: translateX(5px); }
@media (max-width: 980px) { .sites { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sites { grid-template-columns: 1fr; } }

/* ---------- Case study page ---------- */
.cs-top { display: flex; align-items: flex-start; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 2rem; margin-bottom: 2.5rem; }
.cs-num { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--accent-2-soft); line-height: 1; flex-shrink: 0; }
.cs-link { display: inline-block; color: var(--accent); font-size: 0.9rem; letter-spacing: 0.04em; margin-top: 0.4rem; }
.cs-link:hover { text-decoration: underline; color: var(--accent-soft); }
.cs-tag { color: var(--muted); margin-top: 0.5rem; }
.cs-body { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: 2.5rem; }
.cs-label {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem; padding-left: 2.2rem; position: relative;
}
.cs-label::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 1.6rem; height: 1px; background: var(--accent); }
.cs-body p { color: var(--muted); font-size: 1.02rem; }
.cs-body ul { list-style: none; display: grid; gap: 0.6rem; }
.cs-body li { color: var(--muted); padding-left: 1.4rem; position: relative; }
.cs-body li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--accent-2); }
.cs-results { margin-bottom: 1.5rem; }
.cs-tracked { color: var(--muted); font-size: 0.95rem; border-left: 2px solid var(--accent); padding-left: 1rem; }
.cs-tracked strong { color: var(--text); }
@media (max-width: 760px) { .cs-body { grid-template-columns: 1fr; } }

/* ---------- Experience tabs ---------- */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--line); padding-top: 2rem; }
.tablist { display: flex; flex-direction: column; gap: 0.25rem; }
.tab {
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid var(--line);
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-body);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.tab:hover { color: var(--text); background: var(--surface); }
.tab[aria-selected="true"] { border-left-color: var(--accent); background: var(--surface-2); color: var(--text); }
.tab-years { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--accent); }
.tab-title { display: block; font-size: 1.1rem; font-weight: 600; color: inherit; margin-top: 0.3rem; }
.tab-co { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.tabpanels { min-height: 320px; }
.tabpanel { display: none; }
.tabpanel.active { display: block; animation: tab-fade 0.45s var(--ease); }
@keyframes tab-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel-meta { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.tabpanel h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.tabpanel h3 span { color: var(--muted); font-weight: 400; font-size: 0.7em; }
.tabpanel h4 {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 1.6rem 0 0.9rem; padding-left: 2.2rem; position: relative;
}
.tabpanel h4::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 1.6rem; height: 1px; background: var(--accent); }
.tabpanel ul { list-style: none; display: grid; gap: 0.6rem; }
.tabpanel li { color: var(--muted); font-size: 0.98rem; padding-left: 1.4rem; position: relative; }
.tabpanel li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--accent); }

@media (max-width: 860px) {
  .tabs { grid-template-columns: 1fr; min-width: 0; }
  .tablist {
    flex-direction: row;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
  }
  .tablist::-webkit-scrollbar { height: 4px; }
  .tablist::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
  .tablist::-webkit-scrollbar-track { background: var(--line); }
  .tab { border-left: none; border-bottom: 2px solid var(--line); flex: 0 0 auto; min-width: 200px; scroll-snap-align: start; }
  .tab[aria-selected="true"] { border-left: none; border-bottom-color: var(--accent); }
}

/* ---------- Our Work 3D coverflow ---------- */
.work-showcase { overflow: hidden; }
.coverflow {
  position: relative;
  height: clamp(300px, 38vw, 420px);
  perspective: 1500px;
  max-width: 1150px;
  margin: 0 auto;
}
.cf-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.cf-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(240px, 30vw, 360px);
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #0b0b0d;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  font-family: var(--font-body);
}
.cf-card img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; background: #0b0b0d; }
/* Wider cards for dashboard / data screenshots */
.cf-wide .cf-card { aspect-ratio: 16 / 10; }
.cf-card.is-active { box-shadow: 0 32px 80px rgba(168, 85, 247, 0.3); border-color: var(--accent); cursor: zoom-in; }
.cf-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cf-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.cf-cap span { color: var(--accent-soft); font-weight: 400; font-size: 0.8rem; margin-top: 0.15rem; }
.cf-card.is-active .cf-cap { opacity: 1; }

.cf-controls { display: flex; align-items: center; justify-content: center; gap: 1.3rem; margin-top: 2rem; }
.cf-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  display: grid; place-items: center;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.cf-arrow:hover { border-color: var(--accent); color: var(--accent); }
.cf-dots { display: flex; gap: 0.5rem; align-items: center; }
.cf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: none; cursor: pointer; padding: 0; transition: background 0.3s var(--ease), width 0.3s var(--ease); }
.cf-dot.active { background: var(--accent); width: 22px; border-radius: 4px; }
.work-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  background: rgba(5, 5, 7, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-fig {
  margin: 0;
  max-width: min(1100px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}
.lightbox.open .lb-fig { transform: scale(1); }
.lb-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: block;
  background: #0b0b0d;
}
.lb-cap { color: var(--text); font-weight: 600; text-align: center; display: flex; flex-direction: column; gap: 0.2rem; }
.lb-cap span { color: var(--accent-soft); font-weight: 400; font-size: 0.85rem; }
.lb-close {
  position: fixed;
  top: 1.4rem; right: 1.6rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.7rem; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lb-close:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lb-fig { transition: none; }
  .lb-fig { transform: none; }
}

/* ---------- Categorized stack ---------- */
.stack-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.stack-row:last-child { border-bottom: 1px solid var(--line); }
.stack-cat {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.45rem;
}
@media (max-width: 760px) { .stack-row { grid-template-columns: 1fr; gap: 0.9rem; } }

.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chips span {
  border: 1px solid var(--line);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--muted);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chips span:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Reveal animation defaults ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal-chars { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .case-results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid, .approach, .about-hero-grid, .footer-top { grid-template-columns: 1fr; }
  .hero-figure, .about-hero-figure { grid-row: 1; max-width: 300px; }
  .hero { min-height: auto; }
  .steps { grid-template-columns: 1fr; }
  .story-body { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: repeat(2, 1fr); }
  .side-label { display: none; }
}

@media (max-width: 560px) {
  .cards, .value-grid, .comp-list, .case-results { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-bottom { grid-template-columns: 1fr; }
  .cursor, .cursor-dot { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cursor, .cursor-dot { display: none; }
  .marquee-track { animation: none; }
  .blob, .hero-grain { animation: none !important; }
  .orb, .flare, .orbit-spin, .orbit-ring { animation: none !important; }
  .orb, .flare { opacity: 0 !important; }
}
