/* ==========================================================================
   Akash Azad homepage theme
   Dark, near-black surface with coral + violet gradient accents.
   Homepage-only stylesheet. Case studies keep styles.css.
   ========================================================================== */

:root {
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --bg-elevated: #161616;
  --text-primary: #f0f0f0;
  --text-secondary: #888888;
  --text-muted: #555555;
  --text-faint: #333333;
  --accent: #FF6B5B;
  --accent-violet: #A78BFA;
  --accent-glow: rgba(255, 107, 91, 0.08);
  --accent-violet-glow: rgba(167, 139, 250, 0.06);
  --border: #1a1a1a;
  --border-light: #222222;
  --success: #7BC67E;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: auto;
  cursor: none;
}
@media (pointer: coarse) {
  html { cursor: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a, button { cursor: none; }
@media (pointer: coarse) {
  a, button { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; border: none; background: none; padding: 0; color: inherit; }

::selection {
  background-color: rgba(255, 107, 91, 0.12);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
p { margin: 0; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.section-padding {
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 640px) {
  .section-padding { padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 1024px) {
  .section-padding { padding-left: 80px; padding-right: 80px; }
}
@media (min-width: 1280px) {
  .section-padding { padding-left: 112px; padding-right: 112px; }
}

.container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.section-tag {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 500;
}

.section-heading {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.glass {
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.accent-glow {
  box-shadow: 0 0 60px var(--accent-glow), 0 0 120px var(--accent-violet-glow);
}

/* ==========================================================================
   Global overlays: grain, gradient mesh, scroll progress, cursor
   ========================================================================== */

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#gradient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

main, .nav, .footer { position: relative; z-index: 1; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255,107,91,0.5), rgba(167,139,250,0.7));
  box-shadow: 0 0 10px rgba(255,107,91,0.15);
  transition: width 0.1s linear;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot .inner {
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
  transition: opacity 0.3s ease;
}
.cursor-ring .inner {
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo),
              margin 0.4s var(--ease-out-expo), border-color 0.4s ease;
}
body.cursor-hover .cursor-dot .inner { opacity: 0; }
body.cursor-hover .cursor-ring .inner {
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border-color: rgba(255,255,255,0.8);
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   Buttons, chips, links
   ========================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 450;
  transition: all 0.5s var(--ease-out-expo);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 107, 91, 0.06);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 12px;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
  font-weight: 550;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-violet));
  opacity: 0;
  transition: opacity 0.5s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 107, 91, 0.15), 0 0 0 1px rgba(255, 107, 91, 0.2);
  border-color: transparent;
  color: #fff;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  font-weight: 450;
}
.btn-secondary:hover {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  background: rgba(167, 139, 250, 0.04);
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.08);
}

.btn-sm { padding: 10px 20px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.arrow-link svg { transition: transform 0.3s ease; }
.arrow-link:hover { color: var(--text-primary); }
.arrow-link:hover svg { transform: translateX(4px); }

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-violet));
  transition: width 0.5s var(--ease-out-expo);
}
.link-underline:hover::after { width: 100%; }

.magnetic { display: inline-block; }

/* ==========================================================================
   Navbar
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: 24px;
  padding-bottom: 24px;
  background: transparent;
  transition: padding 0.5s ease, background 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
  transform: translateY(-100px);
  animation: nav-in 0.8s var(--ease-out-expo) 0.2s forwards;
}
@keyframes nav-in { to { transform: translateY(0); } }
.nav.scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  border-bottom-color: rgba(255, 255, 255, 0.03);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-size: 15px;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.nav__logo:hover { color: var(--text-secondary); }
.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
}
.nav__link {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.nav__link:hover { color: var(--text-primary); }
.nav__link--cta {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.nav__link--cta:hover { border-color: var(--text-secondary); color: var(--text-secondary); }
.nav__canvas-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  background: linear-gradient(135deg, rgba(255,107,91,0.12), rgba(167,139,250,0.12));
  color: var(--accent-violet);
  border: 1px solid rgba(167,139,250,0.2);
  vertical-align: middle;
}
.nav__playground-wrap { position: relative; display: inline-block; }
.nav__playground-note {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: 190px;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  color: var(--accent-violet);
  pointer-events: none;
}
.nav__playground-note svg {
  width: 34px;
  height: 26px;
  flex-shrink: 0;
  transform: translateY(-2px);
}
.nav__playground-note em {
  font-family: 'Caveat', cursive;
  font-style: normal;
  font-size: 17px;
  line-height: 1.15;
  transform: rotate(-3deg);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .nav__playground-note { display: none; }
}

.nav__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 91, 0.08);
  border: 1px solid rgba(255, 107, 91, 0.15);
  font-size: 11px;
  color: var(--accent);
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.nav__burger {
  display: block;
  color: var(--text-primary);
  padding: 4px;
  position: relative;
  z-index: 60;
}
@media (min-width: 768px) {
  .nav__burger { display: none; }
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 20px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 112px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__orb--1 {
  top: 5%; right: 10%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.02);
  filter: blur(200px);
  animation: pulse 12s ease-in-out infinite;
}
.hero__orb--2 {
  bottom: 15%; left: 5%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.015);
  filter: blur(150px);
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.01;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 100px 100px;
}
.hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.hero__content { order: 2; }
.hero__visual { order: 1; display: flex; justify-content: center; }
@media (min-width: 1024px) {
  .hero__content { order: 1; }
  .hero__visual { order: 2; justify-content: flex-end; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 91, 0.08);
  margin-bottom: 32px;
}
.hero__badge span:last-child {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.hero__sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 32rem;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .hero__sub { font-size: 16px; }
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.stat-number {
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__portrait-wrap { position: relative; }
.hero__portrait-glow {
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  background: rgba(255,255,255,0.03);
  filter: blur(50px);
  transform: scale(1.1);
}
.hero__portrait {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  width: min(400px, 80vw);
}
.hero__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 40%, rgba(0,0,0,0.1));
}
.hero__portrait-card {
  position: absolute;
  bottom: -20px; left: -20px;
  border-radius: 16px;
  padding: 16px 20px;
}
.hero__portrait-card .role {
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.hero__portrait-card .place {
  font-size: 13px;
  color: var(--text-primary);
}
.hero__portrait-deco {
  position: absolute;
  top: -12px; right: -12px;
  width: 80px; height: 80px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 128px;
  z-index: 10;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}
.marquee__item:hover { transform: scale(1.05); }
.marquee__item img {
  width: auto; height: 22px;
  max-width: 130px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(0.3);
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.marquee__item:hover img { opacity: 1; filter: grayscale(0); }
.marquee__item span {
  font-size: 15px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.5s ease;
}
.marquee__item:hover span { color: var(--text-secondary); }

/* ==========================================================================
   Sections shared
   ========================================================================== */

section { position: relative; }

.section {
  padding-top: 112px;
  padding-bottom: 112px;
}
@media (min-width: 1024px) {
  .section { padding-top: 160px; padding-bottom: 160px; }
}
.section--alt { background: var(--bg-secondary); }

.section-head { margin-bottom: 80px; }
.section-head .section-tag { margin-bottom: 20px; }
.section-head p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 20px;
  max-width: 28rem;
}

.reveal { opacity: 0; transform: translateY(40px); }

/* ==========================================================================
   About + Berlin diorama
   ========================================================================== */

.about__grid {
  display: grid;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: 96px; }
}
.about__text h2 { margin: 20px 0 40px; }
.about__text .para { margin-bottom: 20px; font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding: 28px;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: border-color 0.5s ease;
  text-align: center;
}
.about__stats:hover { border-color: rgba(255, 107, 91, 0.2); }
.about__stats .num { font-size: 1.5rem; letter-spacing: -0.02em; }
.about__stats .lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 8px;
}
.about__bio-link { margin-top: 40px; }

.berlin-scene {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--bg-secondary);
}
.berlin-scene canvas,
.berlin-scene .berlin-scene__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.berlin-scene .berlin-scene__fallback {
  object-fit: cover;
}
.berlin-scene__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
  z-index: 2;
}
.berlin-scene__caption span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.berlin-scene__hint {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(5,5,5,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.berlin-scene--loaded:hover .berlin-scene__hint { opacity: 1; }
.about__visual { position: relative; }
.about__visual .deco-1 {
  position: absolute;
  top: -16px; right: -16px;
  width: 96px; height: 96px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
}
.about__visual .deco-2 {
  position: absolute;
  bottom: -16px; left: -16px;
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
}

/* ==========================================================================
   AI agent demo
   ========================================================================== */

.agent__intro { max-width: 48rem; margin-bottom: 56px; }
.agent__intro h2 { margin: 20px 0 24px; }
.agent__intro > p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

.agent__video-wrap {
  max-width: 896px;
  margin: 0 auto 64px;
}
.agent__video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}
.agent__video iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  z-index: 3;
}
.agent__video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.agent__video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.75), rgba(5,5,5,0.25));
  z-index: 1;
}
.agent__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}
.agent__play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease-out-expo);
  color: var(--bg-primary);
}
.agent__play-btn:hover { transform: scale(1.1); }
.agent__play-btn svg { margin-left: 4px; }
.agent__play p { font-size: 13px; color: var(--text-secondary); }

.agent__cols {
  display: grid;
  gap: 48px;
  margin-bottom: 56px;
}
@media (min-width: 1024px) {
  .agent__cols { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.agent__story { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px; }
.agent__specs {
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
}
.agent__steps { display: flex; flex-direction: column; gap: 16px; }
.agent__step {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  transition: border-color 0.5s ease;
}
.agent__step:hover { border-color: rgba(255, 107, 91, 0.2); }
.agent__step-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: all 0.5s ease;
}
.agent__step:hover .agent__step-icon {
  background: linear-gradient(135deg, rgba(255,107,91,0.1), rgba(167,139,250,0.1));
  color: var(--accent);
}
.agent__step-title { font-size: 14px; color: var(--text-primary); margin-bottom: 4px; }
.agent__step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.agent__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   Speaking
   ========================================================================== */

.speaking__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .speaking__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.speaking__photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.speaking__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.speaking__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 50%);
}
.speaking__photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  z-index: 2;
}
.speaking__photo-label .t1 { font-size: 15px; color: var(--text-primary); margin-bottom: 2px; }
.speaking__photo-label .t2 { font-size: 13px; color: rgba(240,240,240,0.7); }
.speaking__visual { position: relative; }
.speaking__visual .deco {
  position: absolute;
  top: -16px; left: -16px;
  width: 128px; height: 128px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
}
.speaking__text h2 { margin: 20px 0 24px; }
.speaking__text > p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 40px; }
.quote-card {
  position: relative;
  padding: 28px;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}
.quote-card .mark {
  position: absolute;
  top: 12px; left: 24px;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.04);
  font-family: Georgia, serif;
  line-height: 1;
}
.quote-card blockquote {
  margin: 0 0 20px;
  padding: 24px 0 0 8px;
  font-size: 15px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}
.quote-card .who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 8px;
}
.quote-card .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  flex-shrink: 0;
}
.quote-card .name { font-size: 13px; color: var(--text-primary); }
.quote-card .role { font-size: 11px; color: var(--text-muted); }

/* ==========================================================================
   Selected work
   ========================================================================== */

.work__list {
  display: flex;
  flex-direction: column;
  gap: 96px;
}
@media (min-width: 1024px) {
  .work__list { gap: 128px; }
}
.project {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .project { grid-template-columns: 1fr 1fr; gap: 64px; }
  .project--flip .project__visual { order: 2; }
  .project--flip .project__info { order: 1; }
}
.project__visual { position: relative; }
.project__card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  transition: transform 0.2s ease-out;
  will-change: transform;
  display: block;
}
.project__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s ease;
}
.project:hover .project__card img { transform: scale(1.05); }
.project__badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-violet));
  color: var(--bg-primary);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.project__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.project__role { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.project__desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.project__metric { font-size: 13px; letter-spacing: 0.02em; margin-bottom: 24px; }

/* ==========================================================================
   More work
   ========================================================================== */

.more-work { padding: 80px 0 96px; }
.more-work__rows {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}
.more-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}
.more-row:hover { padding-left: 16px; background: rgba(255,255,255,0.01); }
.more-row__thumb {
  width: 132px;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
}
.more-row__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.more-row:hover .more-row__thumb img { transform: scale(1.06); }
.more-row__body { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .more-row__thumb { width: 96px; }
}
.more-row__title {
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.more-row:hover .more-row__title { color: var(--accent); }
.more-row__meta { font-size: 12px; color: var(--text-muted); }
.more-row svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}
.more-row:hover svg { transform: translateX(4px); color: var(--accent); }
.more-work__note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials__grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
}
.tcard {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 28px;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: border-color 0.5s ease;
}
@media (min-width: 1024px) {
  .tcard { padding: 32px; }
}
.tcard:hover { border-color: rgba(255,255,255,0.08); }
.tcard__spotlight {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tcard__mark {
  font-size: 2.5rem;
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 16px;
}
.tcard__quote { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.tcard__who { display: flex; align-items: center; gap: 12px; }
.tcard__photo {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.tcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.tcard__name { font-size: 13px; color: var(--text-primary); }
.tcard__company { font-size: 11px; color: var(--text-muted); }

/* ==========================================================================
   Now strip
   ========================================================================== */

.now {
  padding: 64px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .now { padding: 80px 0; }
}
.now__text {
  max-width: 48rem;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
}
@media (min-width: 640px) {
  .now__text { font-size: 17px; }
}
.now__text strong { color: var(--text-primary); font-weight: 500; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact__card {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 32px;
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
}
@media (min-width: 768px) {
  .contact__card { padding: 72px 80px; }
}
.contact__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,107,91,0.35), rgba(167,139,250,0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.contact__card::after {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 420px; height: 240px;
  background: radial-gradient(closest-side, rgba(255,107,91,0.12), transparent);
  pointer-events: none;
}
.contact__card .section-tag { margin-bottom: 20px; }
.contact__card .section-heading { margin-bottom: 20px; }
.contact__lede {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 34rem;
  margin: 0 auto 36px;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.contact__meta {
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.contact__socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 56px;
}
.social-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.social-btn:hover {
  color: var(--accent);
  border-color: rgba(255, 107, 91, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 640px) {
  .footer__inner { flex-direction: row; }
}
.footer p { font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em; }
.footer__links { display: flex; align-items: center; gap: 24px; }
.footer__links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.footer__links a:hover { color: var(--text-primary); }

/* ==========================================================================
   Portfolio chatbot
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portfolio-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.chat-tooltip {
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  animation: chat-tooltip-in 0.6s var(--ease-out-expo) 2.5s backwards;
}
@keyframes chat-tooltip-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.portfolio-chat.chat-open .chat-tooltip { display: none; }
.chat-launcher {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: visible;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 0 rgba(255,107,91,0.3);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.4s ease;
}
.chat-launcher:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55), 0 0 24px rgba(255,107,91,0.15);
}
.chat-launcher-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.chat-online-dot {
  position: absolute;
  right: 2px; bottom: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-primary);
}
.chat-panel[hidden] { display: none !important; }
.chat-panel {
  width: min(360px, calc(100vw - 40px));
  height: min(520px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  border: 1px solid var(--border-light);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.chat-header-person { display: flex; align-items: center; gap: 10px; }
.chat-header-avatar-wrap { position: relative; }
.chat-header-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-header-dot {
  position: absolute;
  right: 0; bottom: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-tertiary);
}
.chat-title { font-size: 14px; color: var(--text-primary); }
.chat-status { font-size: 11px; color: var(--text-muted); }
.chat-close {
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.chat-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-message { display: flex; }
.chat-message--assistant { justify-content: flex-start; }
.chat-message--user { justify-content: flex-end; }
.chat-message-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
}
.chat-message--assistant .chat-message-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}
.chat-message--assistant .chat-message-bubble strong { color: var(--text-primary); font-weight: 550; }
.chat-message--assistant .chat-message-bubble ul { margin: 6px 0; padding-left: 18px; }
.chat-message--user .chat-message-bubble {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-bottom-right-radius: 4px;
}
.chat-typing .chat-message-bubble {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: chat-typing 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}
.chat-suggestion {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}
.chat-suggestion:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,107,91,0.06);
}
.chat-suggestion:disabled { opacity: 0.5; }
.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1;
  resize: none;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.3s ease;
}
.chat-input:focus { border-color: var(--accent-violet); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.chat-send:hover:not(:disabled) { transform: scale(1.06); }
.chat-send:disabled { opacity: 0.5; }
.chat-send svg {
  width: 16px; height: 16px;
  fill: #fff;
}
@media (max-width: 640px) {
  .portfolio-chat { right: 14px; bottom: 14px; }
  .chat-tooltip { display: none; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .marquee__track { animation: none; }
}

/* ==========================================================================
   Language switch (EN/DE)
   ========================================================================== */

.nav__lang {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.nav__lang-btn {
  background: none;
  border: none;
  padding: 4px 2px;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}
.nav__lang-btn:hover { color: var(--text-secondary); }
.nav__lang-btn.is-active { color: var(--text-primary); }
.nav__lang-sep { color: var(--text-faint); }
.nav__lang--mobile { justify-content: center; font-size: 14px; margin-top: 8px; }
