/* ===========================================
   adil.sh — Dark Crimson
   =========================================== */

:root {
  --bg: #0A0A0E;
  --bg2: #101015;
  --surface: #16161D;
  --surface-h: #1E1E28;
  --border: rgba(255,60,60,.06);
  --border-h: rgba(255,60,60,.14);
  --text: #EAEAEA;
  --sub: #787880;
  --accent: #DC2626;
  --accent2: #991B1B;
  --glow: #FF3333;
  --glow-dim: rgba(255,51,51,.08);

  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', monospace;
  --ease: cubic-bezier(.22,1,.36,1);
  --r: 16px;
  --pad: clamp(20px, 6vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; overflow-x: hidden }
body { font-family: var(--font); background: var(--bg); color: var(--text); overflow-x: hidden; width: 100%; line-height: 1.55 }
::selection { background: var(--accent); color: #fff }
a { color: inherit; text-decoration: none }
img { display: block; max-width: 100%; height: auto }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit }

/* ===== AMBIENT ===== */
.grain { position: fixed; inset: 0; z-index: 9999; pointer-events: none !important; touch-action: none; 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)'/%3E%3C/svg%3E"); opacity: .03; mix-blend-mode: soft-light }
body::before, body::after { content: ''; position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(140px) }
body::before { width: 700px; height: 700px; top: -20%; left: -15%; background: var(--glow); opacity: .04; animation: orb1 30s ease-in-out infinite }
body::after { width: 500px; height: 500px; bottom: -10%; right: -15%; background: var(--accent); opacity: .035; animation: orb2 25s ease-in-out infinite }
@keyframes orb1 { 0%,100% { transform: translate(0,0) } 50% { transform: translate(100px,80px) } }
@keyframes orb2 { 0%,100% { transform: translate(0,0) } 50% { transform: translate(-80px,-60px) } }

/* ===== NAV ===== */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad); background: rgba(10,10,14,.8); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--border) }
.logo { font-weight: 700; font-size: 1.3rem; letter-spacing: -.04em }
.logo span { color: var(--accent) }
.nav-right { display: flex; align-items: center; gap: 8px }
.nav-link { font-size: .82rem; font-weight: 500; color: var(--sub); padding: 8px 16px; border-radius: 100px; transition: all .25s }
.nav-link:hover { color: var(--text); background: rgba(255,51,51,.05) }
.nav-cta { font-size: .82rem; font-weight: 700; padding: 8px 20px; border-radius: 100px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; transition: transform .2s var(--ease), box-shadow .2s }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(255,51,51,.2) }

/* ===== HERO ===== */
.hero { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--pad) 60px; max-width: 1200px; margin: 0 auto; overflow: hidden }
/* Hero red wave */
.hero::before { content: ''; position: absolute; top: 20%; left: 50%; width: 800px; height: 400px; background: radial-gradient(ellipse, var(--glow), transparent 70%); opacity: .025; filter: blur(100px); transform: translateX(-50%); animation: hero-wave 20s ease-in-out infinite; pointer-events: none }
@keyframes hero-wave { 0%,100% { transform: translateX(-50%) scaleX(1) } 50% { transform: translateX(-30%) scaleX(1.3) } }
.hero-top { margin-bottom: 40px }
.hero-availability { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; color: var(--sub); padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border); opacity: 0 }
.avail-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 10px rgba(74,222,128,.5); animation: pulse 2s infinite }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
.hero-headline { margin-bottom: 40px }
.line { overflow: hidden; font-size: clamp(3rem, 8vw, 7rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05 }
.word { display: inline-block; transform: translateY(110%); will-change: transform }
/* ===== "14 Günde" animated dashed border ===== */
.hlt {
  position: relative;
  display: inline-block;
  padding: .08em .35em;
}
.hlt-border {
  position: absolute;
  inset: -4px -10px;
  width: calc(100% + 20px);
  height: calc(100% + 8px);
  pointer-events: none;
}
.hlt-border rect {
  animation: dash-move 8s linear infinite;
}
@keyframes dash-move {
  to { stroke-dashoffset: -100; }
}
.cursor-block { display: inline-block; color: var(--accent); -webkit-text-stroke: 0 !important; animation: blink .8s step-end infinite; font-weight: 400; margin-left: 4px }
@keyframes blink { 50% { opacity: 0 } }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap }
.hero-desc { font-size: clamp(.88rem, 1.1vw, 1rem); color: var(--sub); line-height: 1.7; max-width: 380px; opacity: 0 }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0 }
.hero-stats { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; opacity: 0 }
.stat { padding: 20px 24px; text-align: right; border-right: 2px solid var(--accent) }
.stat-num { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.04em; color: var(--accent); line-height: 1 }
.stat-label { font-family: var(--mono); font-size: .65rem; color: var(--sub); text-transform: uppercase; letter-spacing: .08em }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border-radius: 100px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 700; font-size: .88rem; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 4px 20px rgba(255,51,51,.1) }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(255,51,51,.25) }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 100px; border: 1px solid var(--border); font-weight: 600; font-size: .88rem; color: var(--sub); transition: all .25s var(--ease) }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent) }

/* ===== MARQUEE ===== */
.marquee { position: relative; z-index: 2; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden }
.marquee-track { display: flex; width: max-content; animation: scroll 30s linear infinite }
.mq-item { font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--sub); padding: 0 20px; white-space: nowrap }
.mq-dot { color: var(--accent); font-size: .5rem; display: flex; align-items: center; padding: 0 4px; opacity: .4 }
@keyframes scroll { to { transform: translateX(-33.333%) } }

/* ===== SECTIONS ===== */
.section { position: relative; z-index: 2; padding: clamp(80px, 10vw, 140px) var(--pad); overflow: hidden }
/* Animated red glow behind each section */
.section::before {
  content: ''; position: absolute; border-radius: 50%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  opacity: .03; filter: blur(80px); pointer-events: none;
  animation: section-glow 15s ease-in-out infinite alternate;
}
.section:nth-child(odd)::before { top: -100px; right: -150px }
.section:nth-child(even)::before { bottom: -100px; left: -150px }
@keyframes section-glow { 0% { transform: scale(1) translate(0,0) } 100% { transform: scale(1.5) translate(30px, -20px) } }
.section-header { margin-bottom: clamp(40px, 5vw, 64px) }
.tag { display: inline-block; font-family: var(--mono); font-size: .7rem; color: var(--accent); letter-spacing: .06em; margin-bottom: 12px }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1 }
.accent { color: var(--accent) }

/* ===== PROCESS ===== */
.section-process { padding: 0; min-height: 100vh; overflow: hidden }
.process-layout { display: flex; align-items: center; min-height: 100vh; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); gap: clamp(40px, 6vw, 100px) }
.process-sidebar { flex-shrink: 0; width: 280px }
.process-sidebar h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 32px }
.step-counter { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px }
.counter-num { font-family: var(--mono); font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1 }
.counter-sep, .counter-total { font-family: var(--mono); font-size: 1.2rem; color: var(--sub); opacity: .3 }
.progress-bar { position: relative; width: 3px; height: 180px; background: var(--border); border-radius: 3px; display: flex; flex-direction: column; justify-content: space-between; align-items: center }
.progress-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: linear-gradient(180deg, var(--accent), var(--glow)); border-radius: 3px; transition: height .1s linear; box-shadow: 0 0 16px rgba(255,51,51,.2) }
.progress-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-h); transition: all .3s var(--ease); z-index: 2 }
.steps-track { flex: 1; position: relative; display: grid; place-items: center; min-height: 400px }
.step-card { position: absolute; width: 100%; max-width: 520px; background: linear-gradient(145deg, var(--surface), var(--bg2)); border: 1px solid var(--border); border-radius: 20px; padding: clamp(28px, 4vw, 44px); opacity: 0; will-change: transform, opacity; overflow: hidden; box-shadow: 0 8px 40px rgba(220,38,38,.04) }
.step-glow { position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--step-color); opacity: .1; filter: blur(60px); pointer-events: none; animation: glow-drift 6s ease-in-out infinite alternate }
@keyframes glow-drift { 0% { transform: translate(0,0) scale(1); opacity: .06 } 100% { transform: translate(-30px,20px) scale(1.3); opacity: .14 } }
.step-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,51,51,.03), transparent); transform: skewX(-20deg); animation: sweep 5s ease-in-out infinite; pointer-events: none; z-index: 1 }
@keyframes sweep { 0%,100% { left: -100% } 50% { left: 150% } }
.step-card::after { content: ''; position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--step-color), transparent); opacity: .25; animation: bpulse 3s ease-in-out infinite }
@keyframes bpulse { 0%,100% { opacity: .12 } 50% { opacity: .35 } }
.step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px }
.step-num { font-family: var(--mono); font-size: .75rem; font-weight: 700; color: var(--step-color); padding: 4px 12px; border-radius: 100px; border: 1px solid var(--step-color); opacity: .7 }
.step-emoji { font-size: 2.4rem }
.step-card h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; margin-bottom: 10px }
.step-card p { font-size: .9rem; color: var(--sub); line-height: 1.7; max-width: 400px }
.step-line { height: 2px; margin-top: 20px; border-radius: 2px; opacity: .4 }

/* ===== WORK ===== */
.section-work { max-width: 1200px; margin: 0 auto }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px }
.project-card { background: linear-gradient(160deg, var(--surface), var(--bg2)); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .35s, transform .45s var(--ease), box-shadow .4s; cursor: pointer }
.project-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 16px 48px rgba(220,38,38,.1), 0 6px 20px rgba(0,0,0,.3) }
.pc-img { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg2) }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease) }
.project-card:hover .pc-img img { transform: scale(1.06) }
.pc-overlay { position: absolute; inset: 0; background: rgba(10,10,14,.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .35s }
.project-card:hover .pc-overlay { opacity: 1 }
.pc-view { font-family: var(--mono); font-size: .7rem; font-weight: 700; color: var(--accent); padding: 6px 16px; border-radius: 100px; border: 1px solid var(--accent) }
.pc-info { padding: 12px 14px 14px }
.pc-meta { font-family: var(--mono); font-size: .58rem; color: var(--accent); text-transform: uppercase; letter-spacing: .06em }
.pc-info h3 { font-size: .88rem; font-weight: 700; margin: 4px 0 2px }
.pc-info p { font-size: .74rem; color: var(--sub) }
.pc-techs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px }
.pc-techs span { font-family: var(--mono); font-size: .55rem; font-weight: 700; padding: 3px 8px; border-radius: 100px; border: 1px solid var(--border); color: var(--sub) }

/* ===== CTA + CHAT ===== */
.section-cta { display: flex; gap: clamp(40px, 6vw, 80px); align-items: flex-start; flex-wrap: wrap; max-width: 1100px; margin: 0 auto }
.cta-content { flex: 1; min-width: 280px }
.cta-desc { font-size: .95rem; color: var(--sub); line-height: 1.65; max-width: 340px }
.chat-terminal { flex: 1; min-width: 320px; max-width: 500px; background: linear-gradient(160deg, var(--surface), var(--bg2)); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: 0 8px 40px rgba(220,38,38,.04) }
.ct-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border) }

.ct-dots { display: flex; gap: 6px }
.ct-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-h) }
.ct-dots span:first-child { background: var(--accent2) }
.ct-dots span:nth-child(2) { background: var(--accent) }
.ct-dots span:last-child { background: #4ADE80 }
.ct-title { font-family: var(--mono); font-size: .68rem; color: var(--sub) }
.ct-body { padding: 16px; min-height: 180px; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px }
.ct-body::-webkit-scrollbar { width: 2px }
.ct-body::-webkit-scrollbar-thumb { background: var(--surface-h); border-radius: 2px }
.chat-message { max-width: 85% }
.chat-message.bot { align-self: flex-start }
.chat-message.user { align-self: flex-end }
.chat-message p { padding: 10px 16px; border-radius: 14px; font-size: .84rem; line-height: 1.55 }
.chat-message.bot p { background: var(--surface-h); border-bottom-left-radius: 4px }
.chat-message.user p { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border-bottom-right-radius: 4px }
.chat-message.typing p { display: flex; gap: 5px; align-items: center; padding: 12px 16px }
.typing-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sub); animation: bounce 1.4s infinite }
.typing-dot:nth-child(2) { animation-delay: .2s }
.typing-dot:nth-child(3) { animation-delay: .4s }
@keyframes bounce { 0%,60%,100% { transform: none } 30% { transform: translateY(-4px) } }
.typewriter-cursor { animation: blink .7s step-end infinite; color: var(--accent) }
.ct-suggestions { padding: 0 16px 8px; display: flex; gap: 6px; flex-wrap: wrap }
.sg { padding: 6px 14px; border-radius: 100px; font-family: var(--mono); font-size: .72rem; font-weight: 700; border: 1px solid var(--border); color: var(--sub); transition: all .2s; cursor: pointer }
.sg:hover { border-color: var(--accent); color: var(--accent) }
.ct-input { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border) }
.ct-prompt { font-family: var(--mono); font-size: .9rem; color: var(--accent); font-weight: 700 }
.ct-input input { flex: 1; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,51,51,.03); font-family: var(--font); font-size: .84rem; color: var(--text); outline: none; transition: border-color .2s }
.ct-input input:focus { border-color: var(--accent) }
.ct-input input::placeholder { color: var(--surface-h) }
.ct-input button { padding: 10px 20px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: .82rem; transition: transform .2s }
.ct-input button:hover { transform: scale(1.03) }

/* ===== OVERLAY — horizontal layout ===== */
.ov { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity .3s }
.ov.open { pointer-events: auto; opacity: 1 }
.ov-bg { position: absolute; inset: 0; background: rgba(10,10,14,.8); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px) }
.ov-card {
  position: relative; z-index: 2;
  width: min(900px, 92vw); max-height: 84vh;
  background: linear-gradient(160deg, var(--surface), var(--bg2));
  border: 1px solid var(--border); border-radius: 20px;
  transform: translateY(20px) scale(.97); transition: transform .4s var(--ease);
  box-shadow: 0 32px 80px rgba(220,38,38,.06), 0 16px 60px rgba(0,0,0,.5);
  display: flex; overflow: hidden;
}
.ov.open .ov-card { transform: none }
.ov-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-h); border: 1px solid var(--border); font-size: 1.1rem; color: var(--sub); display: flex; align-items: center; justify-content: center; z-index: 5; transition: all .2s }
.ov-x:hover { background: var(--accent); color: #fff }
/* Left: gallery */
.ov-gal {
  flex: 0 0 40%; max-width: 360px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; padding: 16px;
  scrollbar-width: none; background: rgba(0,0,0,.15);
}
.ov-gal::-webkit-scrollbar { display: none }
.ov-gal img { width: 100%; border-radius: 10px; flex-shrink: 0 }
/* Right: info */
.ov-nfo { flex: 1; padding: 28px 28px 28px 24px; overflow-y: auto; max-height: 84vh }
.ov-nfo .nfo-cat { font-family: var(--mono); font-size: .68rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px }
.ov-nfo h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px }
.ov-nfo .nfo-tag { font-size: .88rem; color: var(--sub); margin-bottom: 14px }
.ov-nfo .nfo-desc { font-size: .84rem; color: var(--sub); line-height: 1.65; margin-bottom: 16px }
.ov-feats { list-style: none; margin-bottom: 16px }
.ov-feats li { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--sub); padding: 6px 0; border-bottom: 1px solid var(--border) }
.ov-feats li:last-child { border: none }
.ov-feats li svg { color: var(--accent); flex-shrink: 0 }
.ov-techs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px }
.ov-techs span { font-family: var(--mono); font-size: .62rem; font-weight: 700; padding: 4px 11px; border-radius: 100px; border: 1px solid var(--border); color: var(--sub); text-transform: uppercase }
.ov-lnk { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 100px; background: var(--accent); color: #fff; font-weight: 700; font-size: .82rem; transition: transform .2s }
.ov-lnk:hover { transform: translateY(-2px) }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 40px var(--pad) }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px }
.footer-logo { font-size: 1.1rem }
.footer-links { display: flex; gap: 24px }
.footer-links a { font-family: var(--mono); font-size: .72rem; color: var(--sub); transition: color .2s }
.footer-links a:hover { color: var(--accent) }
.footer-contact { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .72rem }
.footer-contact span { color: var(--sub) }
.footer-contact a { color: var(--accent); transition: opacity .2s }
.footer-contact a:hover { opacity: .7 }
.footer small { font-size: .68rem; color: var(--sub); opacity: .4 }

/* ===== FAB ===== */
.fab { position: fixed; bottom: 24px; right: 24px; z-index: 150; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 4px 24px rgba(255,51,51,.15) }
.fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 36px rgba(255,51,51,.3) }

/* =============================================================
   TABLET
   ============================================================= */
@media (max-width: 900px) {
  .hero-stats { position: relative; right: auto; top: auto; transform: none; flex-direction: row; gap: 0; margin-top: 40px; width: 100% }
  .stat { flex: 1; border-right: none; border-bottom: 2px solid var(--accent); text-align: center; padding: 14px 24px }
  .stat-num { font-size: 1.8rem }
  .process-layout { gap: 40px }
  .process-sidebar { width: 200px }
  .work-grid { grid-template-columns: repeat(3, 1fr) }
}

/* =============================================================
   MOBILE — COMPLETELY DIFFERENT LAYOUT
   ============================================================= */
@media (max-width: 768px) {
  :root { --pad: 20px }

  body::before { width: 300px; height: 300px; opacity: .05 }
  body::after { width: 200px; height: 200px; opacity: .04 }

  /* === MOBILE NAV — top bar === */
  nav {
    top: 0; bottom: auto; left: 0; right: 0;
    padding: 12px var(--pad);
    border-bottom: 1px solid var(--border);
    border-top: none;
    background: rgba(10,10,14,.92);
    display: flex; align-items: center; justify-content: space-between;
  }
  .logo { font-size: 1.1rem }
  .nav-right { display: flex; gap: 4px }
  .nav-link {
    font-size: .72rem; padding: 8px 12px; border-radius: 100px;
    color: var(--sub);
  }
  .nav-cta { display: none }

  /* === MOBILE HERO === */
  .hero {
    padding: 80px var(--pad) 40px;
    min-height: auto;
    justify-content: center;
    text-align: center;
    align-items: center;
  }
  .hero-top { margin-bottom: 24px }
  .hero-availability { font-size: .62rem; padding: 5px 12px }
  .hero-headline { margin-bottom: 24px }
  .line { font-size: clamp(2.4rem, 11vw, 3.8rem); line-height: 1.06 }
  .hlt { padding: .06em .25em }
  .hlt-border { inset: -3px -8px; width: calc(100% + 16px); height: calc(100% + 6px) }
  .hero-desc { font-size: .9rem; max-width: 300px; text-align: center; line-height: 1.6 }
  .hero-desc br { display: none }
  .hero-bottom { flex-direction: column; align-items: center; gap: 20px; width: 100% }
  .hero-desc { opacity: 1 }
  .hero-actions { flex-direction: column; gap: 10px; width: 100%; max-width: 320px; opacity: 1 }
  .hero-stats { opacity: 1 }
  .hero-availability { opacity: 1 }
  .btn-primary, .btn-ghost { justify-content: center; width: 100%; padding: 16px; min-height: 52px; font-size: .9rem }

  /* Stats — horizontal glass card */
  .hero-stats {
    position: relative; right: auto; top: auto; transform: none;
    flex-direction: row; gap: 0; margin-top: 24px; width: 100%; max-width: 320px;
    background: var(--surface); border-radius: 16px;
    border: 1px solid var(--border); overflow: hidden;
  }
  .stat { flex: 1; border-right: 1px solid var(--border); border-bottom: none; text-align: center; padding: 16px 8px }
  .stat:last-child { border-right: none }
  .stat-num { font-size: 1.5rem; color: var(--accent) }
  .stat-label { font-size: .56rem }

  /* Marquee */
  .marquee { padding: 10px 0; margin-bottom: 0 }
  .mq-item { font-size: .58rem; padding: 0 10px }

  .section { padding: 40px var(--pad) }

  /* === MOBILE PROCESS — horizontal swipe cards === */
  .section-process { min-height: auto !important; overflow: visible !important; padding: 0 !important; height: auto !important }
  .section-process [style] { min-height: auto !important; height: auto !important }
  .process-layout {
    flex-direction: column; gap: 16px;
    padding: 40px var(--pad) 32px; min-height: auto !important; height: auto !important;
  }
  .process-sidebar {
    width: 100%; text-align: center;
    padding: 0 var(--pad);
  }
  .process-sidebar .tag { margin-bottom: 8px }
  .process-sidebar h2 { font-size: 1.5rem; margin-bottom: 0 }
  .process-sidebar br { display: none }
  .step-counter, .progress-bar { display: none }

  /* Numbered list — clean, compact, reliable */
  .steps-track {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    min-height: auto !important;
    overflow: visible !important;
    padding: 0 var(--pad);
    place-items: unset !important;
  }
  .step-card,
  .step-card[style] {
    position: relative !important;
    width: 100% !important; max-width: 100% !important;
    opacity: 1 !important; transform: none !important; filter: none !important;
    scale: none !important;
    padding: 16px;
    border-radius: 12px;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    overflow: hidden;
    box-shadow: none !important;
    margin-bottom: 8px;
  }
  .step-card::before, .step-card::after { display: none !important }
  .step-glow { display: none !important }
  .step-line { display: none !important }

  .step-head {
    flex-direction: column; align-items: center; gap: 4px;
    margin: 0; min-width: 44px; flex-shrink: 0;
  }
  .step-num {
    font-size: .56rem; padding: 2px 7px;
    background: var(--bg2); border-color: var(--border);
  }
  .step-emoji { font-size: 1.4rem }
  .step-card h3 { font-size: .9rem; margin-bottom: 3px; line-height: 1.3 }
  .step-card p { font-size: .76rem; line-height: 1.5; color: var(--sub) }

  /* === MOBILE WORK — full-width horizontal scroll === */
  .section-work { padding-left: 0; padding-right: 0 }
  .section-work .section-header { padding: 0 var(--pad) }
  .work-grid {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--pad) 16px;
    scrollbar-width: none;
  }
  .work-grid::-webkit-scrollbar { display: none }
  .project-card { flex: 0 0 75vw; max-width: 280px; scroll-snap-align: center }
  .pc-overlay { display: none }
  .pc-info { padding: 14px 16px 16px }
  .pc-info h3 { font-size: .95rem }
  .pc-info p { font-size: .78rem }
  .pc-techs span { font-size: .56rem; padding: 3px 8px }

  /* === MOBILE CTA — stacked, centered === */
  .section-cta { flex-direction: column; gap: 24px; text-align: center }
  .cta-content { min-width: 0 }
  .cta-content h2 { font-size: 1.5rem }
  .cta-desc { font-size: .88rem; max-width: 100%; margin: 0 auto 0 }
  .chat-terminal { min-width: 0; max-width: 100%; width: 100%; border-radius: 18px }
  .ct-body { min-height: 160px; max-height: 240px; padding: 12px }
  .ct-input { padding: 10px 12px }
  .ct-input input { padding: 12px 14px; font-size: .88rem; min-height: 48px; border-radius: 12px }
  .ct-input button { padding: 12px 18px; min-height: 48px; font-size: .84rem; border-radius: 12px }
  .sg { padding: 8px 14px; font-size: .7rem; min-height: 36px; display: inline-flex; align-items: center }

  /* Overlay — bottom sheet */
  .ov-card { width: 100vw; max-height: 90dvh; border-radius: 24px 24px 0 0; flex-direction: column; overflow-y: auto }
  .ov-gal { flex: none; max-width: 100%; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 12px 16px 8px; background: none }
  .ov-gal img { width: auto; height: min(200px, 28vh) }
  .ov-nfo { padding: 12px 16px 24px }
  .ov-nfo { padding: 4px 16px 20px }
  .ov-lnk { width: 100%; justify-content: center; padding: 14px; min-height: 48px; border-radius: 14px }

  /* Footer — above bottom nav */
  .footer { padding: 32px var(--pad) }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px }
  .footer-links { justify-content: center; gap: 16px; flex-wrap: wrap }
  .footer-links a { font-size: .7rem; min-height: 44px; display: flex; align-items: center }

  /* FAB — above bottom nav */
  .fab { bottom: 20px; right: 16px; width: 50px; height: 50px; z-index: 9998 }

  /* Grain kills touch on some mobile browsers — hide it */
  .grain { display: none }
}

@media (max-width: 380px) {
  :root { --pad: 16px }
  .line { font-size: 2rem }
  .step-card { padding: 14px !important; gap: 10px }
  .project-card { flex: 0 0 80vw }
  .btn-primary, .btn-ghost { font-size: .84rem; padding: 14px }
}
