/* ============ iHeartMedia Digital — Landing Page ============ */
:root {
  --bg: #04060F;
  --bg-2: #0A0E1A;
  --bg-3: #11162A;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --ink: #F5F7FF;
  --ink-2: rgba(245,247,255,0.62);
  --ink-3: rgba(245,247,255,0.38);
  --blue: #3D7BFF;
  --blue-2: #8AB4FF;
  --blue-glow: rgba(61,123,255,0.35);
  --neon: #0AFFD0;
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: 'Clash Display', 'General Sans', system-ui, sans-serif;
  --font-body: 'General Sans', 'Satoshi', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; position: relative; font-feature-settings: 'ss01', 'cv01'; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none; z-index: 9999; mix-blend-mode: overlay; opacity: 0.55;
}

/* Background gradient glows */
.bg-glow {
  position: fixed; pointer-events: none; z-index: 0; filter: blur(120px);
  will-change: transform;
}
.bg-glow.a { width: 600px; height: 600px; background: radial-gradient(circle, var(--blue) 0%, transparent 70%); top: -200px; left: -100px; opacity: 0.35; }
.bg-glow.b { width: 700px; height: 700px; background: radial-gradient(circle, #6D28D9 0%, transparent 70%); top: 30%; right: -200px; opacity: 0.22; }
.bg-glow.c { width: 500px; height: 500px; background: radial-gradient(circle, var(--neon) 0%, transparent 70%); bottom: 20%; left: 30%; opacity: 0.08; }

/* Type */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 0.92; }
p { line-height: 1.55; color: var(--ink-2); }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-2); }
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--blue); }

/* Layout */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
section { position: relative; padding: 140px 0; z-index: 1; }
.section-head { margin-bottom: 80px; }
.section-head h2 { font-size: clamp(40px, 6vw, 88px); max-width: 900px; margin-top: 24px; }
#why .section-head { text-align: center; }
#why .section-head h2 { margin-left: auto; margin-right: auto; }
#testimonials .section-head { text-align: center; }
#testimonials .section-head h2 { margin-left: auto; margin-right: auto; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 40px; display: flex; align-items: center; justify-content: space-between;
  transition: all .4s var(--ease);
}
.nav.scrolled {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(4,6,15,0.65);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; position: relative;
  background: conic-gradient(from 180deg, var(--blue), var(--blue-2), var(--neon), var(--blue));
  border-radius: 10px; box-shadow: 0 0 24px var(--blue-glow);
  animation: spin 8s linear infinite;
  flex-shrink: 0;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 2px; background: var(--bg); border-radius: 8px;
  z-index: 1;
}
.logo-mark::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238AB4FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-7-4.5-7-11a4.5 4.5 0 0 1 8-3 4.5 4.5 0 0 1 8 3c0 6.5-7 11-7 11z'/><path d='M12 14l-2-2 2-2 2 2-2 2z' stroke='%230AFFD0' stroke-width='1.2' opacity='0.9'/></svg>") center / 60% no-repeat;
  z-index: 2;
}
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 36px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 100px;
  font-size: 14px; font-weight: 500;
  background: var(--ink); color: var(--bg);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: all .3s var(--ease);
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,255,255,0.12); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { background: rgba(255,255,255,0.04); border-color: var(--ink-2); }
.btn.primary {
  background: var(--blue); color: white;
  box-shadow: 0 8px 32px var(--blue-glow);
}
.btn.primary:hover { box-shadow: 0 16px 48px var(--blue-glow); transform: translateY(-2px); }
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; padding-top: 120px; padding-bottom: 80px;
  display: flex; align-items: center; overflow: hidden; position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(61,123,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(10,255,208,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 10%, rgba(61,123,255,0.12) 0%, transparent 60%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; right: -10%; top: 50%; transform: translateY(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,123,255,0.25) 0%, transparent 65%);
  filter: blur(80px); pointer-events: none; z-index: 0;
  animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow {
  0%,100% { transform: translate(0,-50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-20px,-50%) scale(1.1); opacity: 1; }
}
.hero .container { position: relative; z-index: 2; }
.hero-right { z-index: 1; }
.hero-left { position: relative; z-index: 2; }
.hero-centered {
  min-height: 100vh; padding: 160px 0 100px;
  text-align: center; justify-content: center;
}
.hero-centered #canvas-3d {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0.85;
  pointer-events: none;
}
.hero-centered::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at center, transparent 0%, var(--bg) 80%);
  z-index: 1;
}
.hero-center {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.hero-center .hero-sub {
  margin-top: 36px; max-width: 580px; font-size: 18px; color: var(--ink-2);
  opacity: 0; transform: translateY(20px);
}
.hero-centered .hero-meta { border-top: 1px solid var(--line-strong); max-width: 720px; }
.hero-centered .hero-meta .stat-n { font-size: 42px; }
.hero-centered .hero-meta > div { text-align: center; }
.hero-centered .hero-orbit-label { z-index: 3; }
.hero-centered .hero-orbit-label.a { top: 14%; right: 8%; }
.hero-centered .hero-orbit-label.b { bottom: 22%; left: 6%; }
.hero-centered .hero-orbit-label.c { top: 22%; left: 10%; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; width: 100%;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-left .hero-title {
  font-size: clamp(28px, 3.6vw, 60px);
  font-weight: 600; letter-spacing: -0.04em;
  line-height: 1.02;
  font-family: 'Clash Display', 'General Sans', system-ui, sans-serif;
}
.hero-left .hero-title .line { white-space: nowrap; }
.hero-left .hero-title .word { white-space: nowrap; }
.hero-grid { align-items: center; }
.hero-title .line { display: block; overflow: hidden; white-space: nowrap; }
.hero-title .word {
  display: inline-block; transform: translateY(110%);
  opacity: 0;
}
.hero-title em {
  font-style: normal; font-family: 'Instrument Serif', serif;
  color: var(--blue-2); font-weight: 400;
}
.hero-title .outline {
  -webkit-text-stroke: 1.5px var(--ink-2); color: transparent;
}
.hero-sub {
  margin-top: 36px; max-width: 540px; font-size: 18px; color: var(--ink-2);
  opacity: 0; transform: translateY(20px);
}
.hero-ctas { margin-top: 44px; display: flex; gap: 14px; opacity: 0; transform: translateY(20px); }
.hero-meta {
  margin-top: 80px; padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  opacity: 0; transform: translateY(20px);
}
.hero-meta .stat-n { font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: -0.02em; }
.hero-meta .stat-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.hero-right {
  position: relative; height: 600px;
  display: flex; align-items: center; justify-content: center;
}
#canvas-3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-orbit-label {
  position: absolute; font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px;
  backdrop-filter: blur(10px); background: rgba(4,6,15,0.4);
}
.hero-orbit-label.a { top: 15%; right: 8%; }
.hero-orbit-label.b { bottom: 20%; left: 5%; }
.hero-orbit-label.c { top: 50%; right: 0%; }

/* Ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 24px 0;
  background: var(--bg-2);
}
.ticker-track {
  display: flex; gap: 60px; white-space: nowrap;
  animation: ticker 40s linear infinite;
  width: max-content;
}
.ticker-item {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 56px);
  font-weight: 500; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 60px;
}
.ticker-item .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 20px var(--blue-glow);
}
.ticker-item em {
  -webkit-text-stroke: 1.5px var(--ink); color: transparent;
  font-style: normal;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ ABOUT ============ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-lead {
  font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink);
}
.about-lead em { font-family: 'Instrument Serif', serif; color: var(--blue-2); font-style: italic; font-weight: 400; }
.about-body { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.about-body p + p { margin-top: 20px; }
.about-marquee {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px;
}
.about-chip {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 13px; color: var(--ink-2); background: rgba(255,255,255,0.02);
}
.about-chip.active { border-color: var(--blue); color: var(--blue-2); background: var(--blue-glow); }

/* ============ WHY CHOOSE US ============ */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  padding: 44px 36px; background: var(--bg); min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; transition: background .4s;
}
.why-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), var(--blue-glow) 0%, transparent 40%);
  opacity: 0; transition: opacity .4s;
}
.why-card:hover::before { opacity: 1; }
.why-card .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--ink-3); }
.why-card h3 { font-size: 28px; font-weight: 500; margin: 20px 0 14px; line-height: 1.1; }
.why-card p { font-size: 14px; color: var(--ink-2); }
.why-card .why-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(61,123,255,0.18), rgba(61,123,255,0.02));
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}

/* ============ SERVICES ============ */
.services-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 80px 1fr 2fr 180px; gap: 40px; align-items: center;
  padding: 36px 0; border-bottom: 1px solid var(--line);
  position: relative; cursor: pointer;
  transition: padding .4s var(--ease);
}
.service-row::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--blue-glow), transparent);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.service-row:hover::before { opacity: 0.4; }
.service-row:hover { padding-left: 20px; }
.service-row:hover h3 { color: var(--blue-2); }
.service-row .s-num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.18em; }
.service-row h3 { font-size: clamp(24px, 2.4vw, 38px); font-weight: 500; transition: color .3s; }
.service-row p { font-size: 14px; color: var(--ink-2); }
.service-row .s-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  justify-self: end; transition: all .3s var(--ease);
}
.service-row:hover .s-arrow { background: var(--blue); border-color: var(--blue); transform: rotate(-45deg); }
.service-row:hover .s-arrow svg { stroke: white; }
@media (max-width: 900px) {
  .service-row { grid-template-columns: 40px 1fr 60px; gap: 20px; }
  .service-row p { display: none; }
}

/* ============ PORTFOLIO ============ */
.portfolio { padding: 140px 0 140px; }
.portfolio-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 60px; padding: 0 40px; }
.portfolio-head h2 { font-size: clamp(40px, 6vw, 88px); max-width: 800px; }
.portfolio-track-wrap {
  overflow: hidden; position: relative;
  padding-left: 40px;
}
.portfolio-track {
  display: flex; gap: 24px; will-change: transform;
}
.portfolio-card {
  flex: 0 0 480px; height: 620px;
  background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transition: transform .6s var(--ease);
}
.portfolio-card:hover { transform: translateY(-8px); }
.portfolio-visual {
  flex: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.portfolio-visual::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-2) 100%);
  z-index: 2;
}
.portfolio-visual.v1 {
  background: linear-gradient(135deg, #0F2A5C 0%, #1E4FBD 50%, #3D7BFF 100%);
}
.portfolio-visual.v2 {
  background: radial-gradient(ellipse at center, #1a1f3a 0%, #04060F 100%);
}
.portfolio-visual.v3 {
  background: linear-gradient(160deg, #001219 0%, #005F73 50%, #0A9396 100%);
}
.portfolio-visual.v4 {
  background: linear-gradient(135deg, #240046 0%, #3C096C 50%, #7B2CBF 100%);
}
.portfolio-visual.v5 {
  background: linear-gradient(135deg, #0B132B 0%, #1C2541 50%, #3A506B 100%);
}
.portfolio-visual .placeholder-device {
  width: 75%; aspect-ratio: 9/16; border-radius: 30px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.portfolio-visual .placeholder-device::before {
  content: ''; position: absolute; top: 12%; left: 10%; right: 10%; height: 18%;
  background: rgba(255,255,255,0.1); border-radius: 8px;
}
.portfolio-visual .placeholder-device::after {
  content: ''; position: absolute; top: 34%; left: 10%; right: 10%; bottom: 12%;
  background:
    linear-gradient(rgba(255,255,255,0.08), rgba(255,255,255,0.08)) 0 0/100% 8px no-repeat,
    linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0.06)) 0 16px/80% 8px no-repeat,
    linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1)) 0 40px/100% 60px no-repeat;
  border-radius: 8px;
}
.portfolio-visual .placeholder-browser {
  width: 85%; aspect-ratio: 16/10; border-radius: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
.portfolio-visual .placeholder-browser::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 24px;
  background: rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.portfolio-visual .placeholder-browser::after {
  content: ''; position: absolute; top: 36px; left: 20px; right: 20px; bottom: 20px;
  background:
    linear-gradient(rgba(255,255,255,0.14), rgba(255,255,255,0.14)) 0 0/40% 18px no-repeat,
    linear-gradient(rgba(255,255,255,0.08), rgba(255,255,255,0.08)) 0 30px/90% 10px no-repeat,
    linear-gradient(rgba(255,255,255,0.08), rgba(255,255,255,0.08)) 0 46px/70% 10px no-repeat,
    linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12)) 0 72px/55% 44px no-repeat;
}
.portfolio-meta {
  padding: 24px 28px 28px; position: relative; z-index: 3;
}
.portfolio-meta .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.portfolio-meta .tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 100px;
}
.portfolio-meta h3 { font-size: 24px; font-weight: 500; margin-bottom: 6px; }
.portfolio-meta p { font-size: 14px; color: var(--ink-2); }
.portfolio-meta .stat-bar {
  display: flex; gap: 28px; margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.portfolio-meta .stat-bar span { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase; }
.portfolio-meta .stat-bar strong { font-family: var(--font-display); font-size: 22px; color: var(--ink); display: block; margin-top: 2px; font-weight: 500; }
.portfolio-meta .stat-bar strong em { font-style: normal; color: var(--blue-2); }

/* ============ TESTIMONIALS ============ */
.test-marquee { overflow: hidden; padding: 20px 0; }
.test-track {
  display: flex; gap: 24px; width: max-content;
  animation: marquee 60s linear infinite;
}
.test-track.reverse { animation: marquee-r 70s linear infinite; margin-top: 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.test-card {
  flex: 0 0 440px; padding: 32px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 20px;
  min-height: 240px;
}
.test-card .quote { font-size: 17px; line-height: 1.55; color: var(--ink); }
.test-card .quote::before { content: '"'; font-family: 'Instrument Serif', serif; font-size: 48px; color: var(--blue); line-height: 0; vertical-align: -0.3em; margin-right: 4px; }
.test-card .meta { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.test-card .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500; color: var(--bg); font-size: 16px;
}
.test-card .meta div strong { font-size: 14px; color: var(--ink); font-weight: 500; }
.test-card .meta div span { font-size: 13px; color: var(--ink-3); }

/* ============ CONTACT ============ */
.contact {
  padding: 140px 0;
  position: relative;
}
.contact-inner {
  background: linear-gradient(135deg, rgba(61,123,255,0.1) 0%, rgba(10,14,26,0.8) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  padding: 80px 60px;
  position: relative; overflow: hidden;
}
.contact-inner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, var(--blue-glow) 0%, transparent 50%);
  pointer-events: none;
}
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px;
  position: relative; z-index: 1;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } .contact-inner { padding: 44px 28px; } }
.contact-grid h2 { font-size: clamp(36px, 5vw, 72px); line-height: 0.95; }
.contact-grid h2 em { font-family: 'Instrument Serif', serif; font-weight: 400; color: var(--blue-2); font-style: italic; }
.contact-info { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; gap: 14px; align-items: center; color: var(--ink-2); font-size: 15px; }
.contact-info-item .i {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 14px 18px; font: inherit; font-size: 15px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--blue); background: rgba(61,123,255,0.06);
}
.form-field textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-success {
  padding: 14px 18px; border-radius: 12px; background: rgba(10,255,208,0.08);
  border: 1px solid rgba(10,255,208,0.2); color: var(--neon);
  font-size: 14px; margin-top: 14px; display: none;
}
.form-success.show { display: block; }

/* ============ FOOTER ============ */
.footer {
  position: relative; padding: 120px 0 32px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--blue-glow) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.6;
}
.footer-cta {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center;
  padding: 40px 0 100px; margin-bottom: 100px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.footer-cta::after {
  content: ''; position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  filter: blur(40px); opacity: 0.6; pointer-events: none; z-index: -1;
}
@media (max-width: 900px) { .footer-cta { grid-template-columns: 1fr; gap: 40px; } }
.footer-cta h3 {
  font-family: var(--font-display); font-size: clamp(44px, 6.5vw, 92px);
  font-weight: 600; letter-spacing: -0.045em; line-height: 0.9;
}
.footer-cta h3 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-cta-meta { display: flex; flex-direction: column; gap: 18px; align-items: flex-end; text-align: right; justify-self: end; margin-right: -40px; }
.footer-cta-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 100px;
  background: rgba(255,255,255,0.02); backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-2); text-transform: uppercase;
}

/* Big CTA button */
.btn-big {
  display: inline-flex; align-items: center; gap: 24px;
  padding: 12px 12px 12px 28px; min-width: 360px;
  background: linear-gradient(135deg, var(--blue) 0%, #2563EB 100%);
  color: white; text-decoration: none;
  border-radius: 100px;
  box-shadow: 0 20px 60px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  position: relative; overflow: hidden;
  transition: all .4s var(--ease);
}
.btn-big::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 50%);
  opacity: 0; transition: opacity .4s;
}
.btn-big:hover { transform: translateY(-3px); box-shadow: 0 28px 80px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-big:hover::before { opacity: 1; }
.btn-big-label { display: flex; flex-direction: column; flex: 1; }
.btn-big-label > span:first-child { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.btn-big-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 2px; }
.btn-big-arrow {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease);
}
.btn-big:hover .btn-big-arrow { transform: rotate(-45deg); }
.footer-cta-email { color: var(--ink-3); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-cta-email:hover { color: var(--ink); }

/* Brand wordmark — center it */
.footer-brand-wordmark {
  text-align: center !important;
  margin-bottom: 80px;
}

/* Improved social icons */
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.footer-social {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); text-decoration: none;
  transition: all .3s var(--ease);
  position: relative; overflow: hidden;
}
.footer-social::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  opacity: 0; transition: opacity .3s;
}
.footer-social:hover { border-color: transparent; color: white; transform: translateY(-3px); box-shadow: 0 10px 24px var(--blue-glow); }
.footer-social:hover::before { opacity: 1; }
.footer-social svg { width: 18px; height: 18px; position: relative; z-index: 1; }

.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 60px;
  margin-bottom: 100px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.footer-col h4::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.footer-col a {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-2); text-decoration: none; font-size: 15px;
  padding: 8px 0; transition: all .3s var(--ease);
  position: relative;
}
.footer-col a::before {
  content: '→'; opacity: 0; transform: translateX(-8px);
  color: var(--blue-2); transition: all .3s var(--ease);
}
.footer-col a:hover { color: var(--ink); padding-left: 4px; }
.footer-col a:hover::before { opacity: 1; transform: translateX(0); }
.footer-col p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }

.footer-brand-wordmark {
  font-family: var(--font-display); font-size: clamp(80px, 16vw, 240px);
  font-weight: 700; letter-spacing: -0.06em; line-height: 0.85;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(245,247,255,0.1) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 60px; user-select: none;
  position: relative;
}
.footer-brand-wordmark em {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  background: linear-gradient(180deg, var(--blue-2) 0%, rgba(138,180,255,0.2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.footer-socials {
  display: flex; gap: 10px; margin-top: 24px;
}
.footer-social-legacy-placeholder {}

.footer-newsletter {
  margin-top: 20px; display: flex; gap: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  border-radius: 100px; padding: 6px; max-width: 320px;
}
.footer-newsletter input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--ink); font: inherit; font-size: 14px; padding: 8px 16px;
}
.footer-newsletter input::placeholder { color: var(--ink-3); }
.footer-newsletter button {
  padding: 10px 18px; border-radius: 100px;
  background: var(--ink); color: var(--bg); border: 0;
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: transform .2s;
}
.footer-newsletter button:hover { transform: scale(1.05); }

.footer-bottom {
  padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--ink-3); text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--ink); }
.footer-status { display: flex; align-items: center; gap: 8px; }
.footer-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); animation: pulse 2s ease-in-out infinite; }
.big-mark {
  font-family: var(--font-display); font-size: clamp(60px, 14vw, 200px);
  font-weight: 600; letter-spacing: -0.05em;
  text-align: center; padding: 60px 40px;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 0.9;
  user-select: none;
}

/* Utility: reveal */
[data-reveal] { opacity: 0; transform: translateY(30px); }

/* ============ TWEAKS PANEL ============ */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  width: 300px; max-height: 80vh; overflow: auto;
  background: rgba(10,14,26,0.92); backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 20px; display: none;
  font-family: var(--font-body);
}
.tweaks-panel.on { display: block; }
.tweaks-panel h5 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 400; }
.tweak-group { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tweak-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tweak-label { font-size: 11px; color: var(--ink-2); margin-bottom: 8px; display: block; }
.tweak-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-chip {
  padding: 6px 10px; border: 1px solid var(--line); background: transparent;
  color: var(--ink-2); font-size: 11px; border-radius: 100px; cursor: pointer;
  font-family: inherit; transition: all .2s;
}
.tweak-chip.on { background: var(--blue); border-color: var(--blue); color: white; }
.tweak-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); cursor: pointer; transition: transform .2s;
}
.tweak-swatch.on { border-color: var(--ink); transform: scale(1.15); }

/* Light mode */
body.light {
  --bg: #F2F3F7;
  --bg-2: #FFFFFF;
  --bg-3: #E8EAF2;
  --line: rgba(0,0,0,0.08);
  --line-strong: rgba(0,0,0,0.16);
  --ink: #0B1020;
  --ink-2: rgba(11,16,32,0.65);
  --ink-3: rgba(11,16,32,0.42);
}
body.light .bg-glow.a, body.light .bg-glow.b { opacity: 0.15; }
body.light .big-mark { background: linear-gradient(180deg, var(--ink) 0%, transparent 100%); -webkit-background-clip: text; }
body.light .portfolio-visual .placeholder-browser, body.light .portfolio-visual .placeholder-device { background: rgba(255,255,255,0.15); }

/* Motion intensity */
body.motion-low .ticker-track, body.motion-low .test-track { animation: none !important; }
body.motion-low .logo-mark { animation: none; }

/* Font variants */
body.font-editorial { --font-display: 'Fraunces', serif; }
body.font-techy { --font-display: 'Geist', sans-serif; --font-body: 'Geist Mono', monospace; }
body.font-mono-all h1, body.font-mono-all h2, body.font-mono-all h3 { font-family: 'Geist Mono', monospace; letter-spacing: -0.03em; }
