/* ============================================================
   VISINEXUS — MAIN STYLESHEET
   Cinematic · Restrained · Confident
   ============================================================ */

:root {
  --accent:        #b89968;
  --accent-bright: #e2c38f;
  --accent-deep:   #6f5430;
  --bg:            #0a0806;
  --bg-2:          #0f0d0a;
  --bg-3:          #141210;
  --surface:       #1a1713;
  --border:        rgba(184,153,104,0.12);
  --border-hover:  rgba(184,153,104,0.3);
  --text:          #e8e0d4;
  --text-muted:    rgba(232,224,212,0.5);
  --text-faint:    rgba(232,224,212,0.25);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Geist Mono', 'Courier New', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: none; }
input, select, textarea { font-family: inherit; }
::selection { background: rgba(184,153,104,0.2); color: var(--text); }

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s var(--ease-out), opacity 0.2s;
  mix-blend-mode: difference;
}
.cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(184,153,104,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease-out), width 0.3s, height 0.3s, opacity 0.3s;
}
body:has(a:hover) .cursor-trail,
body:has(button:hover) .cursor-trail {
  width: 52px;
  height: 52px;
  border-color: rgba(184,153,104,0.6);
}

/* ── UTILITIES ── */
.mono { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  cursor: none;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-bright);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-out);
  z-index: 0;
}
.btn:hover::before { transform: translateX(0); }
.btn > * { position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
}
.btn--primary:hover { color: var(--bg); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn--ghost::before { background: var(--accent); }
.btn--ghost:hover { color: var(--bg); border-color: var(--accent); }
.btn--full { width: 100%; justify-content: center; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  transition: background 0.4s, border-bottom 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(10,8,6,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 3rem;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.7; }
.nav-logo-mark {
  color: var(--accent);
  font-size: 1.7rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: all 0.3s;
}
.nav-burger.open span:first-child { transform: rotate(45deg) translate(4px, 4px); }
.nav-burger.open span:last-child  { transform: rotate(-45deg) translate(4px, -4px); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.mobile-link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--accent); }
.mobile-link--cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.8rem 2.5rem;
  border-radius: 2px;
  margin-top: 1rem;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.4;
  animation: grain 4s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%,-2%); }
  40% { transform: translate(3%,-1%); }
  60% { transform: translate(-2%,3%); }
  80% { transform: translate(2%,2%); }
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 70% 40%, rgba(184,153,104,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(184,153,104,0.04) 0%, transparent 50%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,153,104,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,153,104,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s var(--ease-out) 0.2s forwards;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.05;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 2rem;
}
.hero-hl-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: revealUp 1s var(--ease-out) forwards;
}
.hero-hl-line:nth-child(1) { animation-delay: 0.4s; }
.hero-hl-line:nth-child(2) { animation-delay: 0.55s; font-style: italic; color: var(--accent); }
.hero-hl-line:nth-child(3) { animation-delay: 0.7s; }

.hero-sub {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s var(--ease-out) 0.9s forwards;
}
.hero-sub strong { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s var(--ease-out) 1.1s forwards;
}

.hero-ticker {
  position: absolute;
  bottom: 5rem;
  left: 0;
  right: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  z-index: 1;
  opacity: 0;
  animation: revealUp 0.6s var(--ease-out) 1.4s forwards;
}
.hero-ticker-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ticker-dot { color: var(--accent); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  opacity: 0;
  animation: revealUp 0.6s var(--ease-out) 1.6s forwards;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  writing-mode: vertical-rl;
}

/* ── OVERTURE ── */
.overture {
  padding: 8rem 3rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.overture-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.overture-image-wrap {
  position: relative;
}
.overture-image-placeholder {
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.overture-svg-placeholder {
  width: 100%;
  height: 100%;
}
.overture-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,153,104,0.04) 0%, transparent 60%);
  z-index: 1;
}
.overture-image-label {
  position: absolute;
  bottom: -1px;
  left: -1px;
  padding: 0.4rem 0.8rem;
  background: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.overture-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--text);
}
.overture-headline em { font-style: italic; color: var(--accent); }
.overture-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 3rem;
}
.overture-body strong { color: var(--text); }
.overture-body em { font-style: italic; color: var(--text); }
.overture-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.stat-item {
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── SERVICES ── */
.services {
  padding: 8rem 3rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.services-header {
  max-width: 1300px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
}
.services-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}
.services-headline em { font-style: italic; color: var(--accent); }

.services-stack {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
  gap: 2rem;
}
.service-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(184,153,104,0.04), transparent);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease-out);
}
.service-item:hover::before { transform: translateX(0); }
.service-item:hover { border-color: var(--border-hover); }
.service-item:first-child { border-top: 1px solid var(--border); }
.service-item-inner { flex: 1; }
.service-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.service-num {
  color: var(--accent);
  font-size: 0.65rem;
}
.service-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 1px;
}
.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.service-item:hover .service-name { color: var(--accent-bright); }
.service-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 1rem;
}
.service-desc strong { color: var(--text); }
.service-desc em { font-style: italic; color: var(--text); }
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-tags span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  padding: 0.2rem 0.6rem;
  background: rgba(184,153,104,0.06);
  border: 1px solid var(--border);
  border-radius: 1px;
}
.service-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s var(--ease-out);
  flex-shrink: 0;
}
.service-item:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── PORTFOLIO ── */
.portfolio {
  padding: 8rem 3rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.portfolio-header {
  max-width: 1300px;
  margin: 0 auto 4rem;
}
.portfolio-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}
.portfolio-headline em { font-style: italic; color: var(--accent); }

.portfolio-stack {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.project-card {
  position: relative;
  background: var(--bg-3);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.project-card:hover { border-color: var(--border-hover); }
.project-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.project-card--last { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 0.8fr; }

.project-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.project-card--wide .project-card-image,
.project-card--last .project-card-image { aspect-ratio: auto; min-height: 320px; }

.project-card-img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .project-card-img-inner { transform: scale(1.03); }
.project-placeholder-svg { width: 100%; height: 100%; display: block; }

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,8,6,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
  backdrop-filter: blur(4px);
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-view-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-bright);
  padding: 0.8rem 2rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  transition: all 0.3s;
}
.project-card-view-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.project-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
.project-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-category, .project-year {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.project-category { color: var(--accent); }
.project-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}
.project-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.project-metrics {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.metric { display: flex; flex-direction: column; gap: 0.2rem; }
.metric-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── PROCESS ── */
.process {
  padding: 8rem 3rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.process-header {
  max-width: 1300px;
  margin: 0 auto 5rem;
}
.process-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}
.process-headline em { font-style: italic; color: var(--accent); }
.process-steps {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.process-step {
  padding: 3rem 2rem;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.3s;
}
.process-step:hover { background: rgba(184,153,104,0.03); }
.process-step:last-child { border-right: none; }
.process-step-num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 2.5rem;
  position: relative;
}
.process-step-num::after {
  content: '';
  position: absolute;
  bottom: -1.25rem;
  left: 0;
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}
.process-step-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.process-step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.process-step-content p strong { color: var(--text); }
.process-step-content p em { font-style: italic; color: var(--text); }

/* ── TESTIMONIALS ── */
.testimonials {
  padding: 8rem 3rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.testimonials-header {
  max-width: 1300px;
  margin: 0 auto 3rem;
}
.testimonials-track {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.testimonial-card {
  display: none;
  padding: 3.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-3);
  position: relative;
}
.testimonial-card.active { display: block; }
.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 0.6;
  margin-bottom: 1.5rem;
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 2rem;
  font-weight: 400;
}
.testimonial-text em { font-style: italic; color: var(--accent-bright); }
.testimonial-text strong { color: var(--accent-bright); }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--accent);
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { display: block; font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-faint); letter-spacing: 0.1em; margin-top: 0.2rem; }

.testimonials-nav {
  max-width: 1300px;
  margin: 2.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.t-nav-btn {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  cursor: none;
}
.t-nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.t-dots { display: flex; gap: 0.5rem; }
.t-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
  cursor: none;
  border: none;
}
.t-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 3px;
}

/* ── CONTACT ── */
.contact {
  padding: 8rem 3rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.contact-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}
.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.contact-headline em { font-style: italic; color: var(--accent); }
.contact-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: color 0.2s;
}
.contact-detail-item:hover { color: var(--accent); }
.contact-detail-item .mono {
  color: var(--text-faint);
  font-size: 0.58rem;
}
.contact-detail-item span:last-child {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.contact-detail-item:hover span:last-child { color: var(--accent); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.req { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(184,153,104,0.03);
}
.form-group select {
  cursor: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b89968' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group select option { background: var(--bg-3); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 0.5rem; }
.form-feedback {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 0.8rem 1rem;
  border-radius: 2px;
  display: none;
}
.form-feedback.success {
  display: block;
  background: rgba(100,200,120,0.08);
  border: 1px solid rgba(100,200,120,0.2);
  color: #7ecb8e;
}
.form-feedback.error {
  display: block;
  background: rgba(200,80,80,0.08);
  border: 1px solid rgba(200,80,80,0.2);
  color: #e08080;
}

/* ── ABOUT STRIP ── */
.about-strip {
  padding: 8rem 3rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.about-strip::before {
  content: 'VISINEXUS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 16vw;
  color: rgba(184,153,104,0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.about-strip-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.about-strip-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 2rem;
}
.about-strip-text h2 em { font-style: italic; color: var(--accent); }
.about-strip-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-strip-text p strong { color: var(--text); }
.about-strip-tagline {
  display: inline-block;
  margin-top: 2rem;
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--accent-deep);
  border-radius: 2px;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 3rem 2rem;
}
.footer-inner { max-width: 1300px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text);
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col-title {
  color: var(--accent);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}
.footer-col a, .footer-col span {
  font-size: 0.85rem;
  color: var(--text-faint);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
}

/* ── REVEAL ANIMATION ── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .overture-inner { grid-template-columns: 1fr; gap: 3rem; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(3) { border-top: 1px solid var(--border); }
  .contact-inner { grid-template-columns: 1fr; gap: 4rem; }
  .footer-top { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav { padding: 1.25rem 1.5rem; }
  .nav.scrolled { padding: 0.9rem 1.5rem; }

  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-ticker { bottom: 4rem; }
  .hero-scroll { left: 1.5rem; }

  .overture { padding: 5rem 1.5rem; }
  .overture-stats { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  .services { padding: 5rem 1.5rem; }
  .portfolio { padding: 5rem 1.5rem; }
  .portfolio-stack { grid-template-columns: 1fr; }
  .project-card--wide, .project-card--last { grid-column: auto; grid-template-columns: 1fr; }

  .process { padding: 5rem 1.5rem; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--border); }
  .process-step:last-child { border-bottom: none; }

  .testimonials { padding: 5rem 1.5rem; }
  .testimonial-card { padding: 2rem; }

  .contact { padding: 5rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .about-strip { padding: 5rem 1.5rem; }
  .footer { padding: 3rem 1.5rem 2rem; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .cursor, .cursor-trail { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
  a { cursor: pointer; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .footer-links-grid { grid-template-columns: 1fr; }
}

/* ── NAV ACTIVE LINK ── */
.nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  width: 100%;
}

/* ── PAGE TRANSITION ── */
html { scroll-behavior: smooth; }
body {
  animation: pageIn 0.5s var(--ease-out) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
