/* ═══════════════════════════════════════════
   XIIMO STUDIO — style.css
   Warm Charcoal / Editorial / Premium
═══════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #191920;
  --surface:    #212129;
  --surface-2:  #2a2a34;
  --surface-3:  #33333f;
  --border:     rgba(255,255,255,0.12);
  --border-mid: rgba(255,255,255,0.22);
  --border-hi:  rgba(255,255,255,0.38);
  --white:      #f0f0eb;
  --white-85:   rgba(240,240,235,0.92);
  --white-60:   rgba(240,240,235,0.72);
  --white-35:   rgba(240,240,235,0.48);
  --white-14:   rgba(240,240,235,0.18);
  --white-07:   rgba(240,240,235,0.10);
  --white-03:   rgba(240,240,235,0.05);

  --c-tableline: #63b3ed;
  --c-catering:  #9ae6b4;
  --c-vendor:    #d69ff6;
  --c-nestor:    #f6ad55;
  --c-askzoe:    #76a9fa;
  --c-madeproof: #a0c4a0;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-logo: 'League Spartan', var(--font-sans);

  --max-w:   1200px;
  --nav-h:   68px;
  --r-sm:    8px;
  --r-md:    12px;
  --r-lg:    16px;
  --r-xl:    20px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--white); line-height: 1.6; overflow-x: hidden; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--white-14); border-radius: 4px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 36px; }

/* ═══ NAV ═══ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.nav.scrolled { background: rgba(25,25,32,0.92); border-color: var(--border); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 36px; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-text { font-family: var(--font-logo); font-size: 22px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--white); }
.logo-dot { color: var(--white-35); }
.footer-brand .logo-text { font-size: 18px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link { color: var(--white-60); text-decoration: none; font-size: 14px; font-weight: 450; padding: 8px 14px; border-radius: var(--r-sm); transition: color 0.18s, background 0.18s; }
.nav-link:hover { color: var(--white); background: var(--white-07); }
.nav-link--cta { color: var(--white); border: 1px solid var(--border-mid); background: var(--white-07); }
.nav-link--cta:hover { background: var(--white-14); border-color: var(--border-hi); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white-60); border-radius: 2px; transition: all 0.3s; }
.mobile-menu { display: none; flex-direction: column; padding: 12px 24px 24px; border-top: 1px solid var(--border); background: rgba(25,25,32,0.98); backdrop-filter: blur(24px); }
.mobile-link { color: var(--white-60); text-decoration: none; font-size: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); transition: color 0.18s; }
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--white); }

/* ═══ HERO ═══ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 60px) 36px 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.orb { position: absolute; border-radius: 50%; filter: blur(100px); animation: orbFloat 10s ease-in-out infinite; }
.orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(245,245,240,0.035) 0%, transparent 65%); top: -220px; right: -120px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(245,245,240,0.025) 0%, transparent 65%); bottom: -80px; left: 5%; animation-delay: -5s; }
@keyframes orbFloat { 0%, 100% { transform: translate(0,0); } 40% { transform: translate(16px,-24px); } 70% { transform: translate(-8px,14px); } }

.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, black 15%, transparent 65%); }

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; text-align: center; }

.hero-badge { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.10em; text-transform: uppercase; color: var(--white-35); background: var(--white-03); border: 1px solid var(--border); padding: 6px 18px; border-radius: 100px; margin-bottom: 36px; }

.hero-heading { font-size: clamp(44px, 6.5vw, 84px); font-weight: 800; line-height: 1.06; letter-spacing: -0.04em; color: var(--white); margin-bottom: 24px; }
.hero-heading-accent { color: var(--white-60); }

.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--white-35); line-height: 1.7; max-width: 560px; margin: 0 auto 44px; }

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 72px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 500; font-size: 15px; border-radius: var(--r-md); padding: 12px 26px; cursor: pointer; text-decoration: none; transition: all 0.2s; white-space: nowrap; border: none; }
.btn-primary { background: var(--white); color: #0d0d0f; }
.btn-primary:hover { background: #e8e8e3; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(245,245,240,0.14); }
.btn-ghost { background: var(--white-07); color: var(--white-60); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--white-14); color: var(--white); border-color: var(--border-mid); }
.btn-lg { padding: 16px 34px; font-size: 16px; }

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--white); }
.stat-label { font-size: 11px; color: var(--white-35); text-transform: uppercase; letter-spacing: 0.09em; }
.stat-divider { width: 1px; height: 38px; background: var(--border-mid); }

.scroll-hint { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); }
.scroll-line { width: 1px; height: 56px; background: linear-gradient(to bottom, transparent, var(--white-35)); animation: scrollPulse 2.4s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.8; } }

/* ─── SECTION SHARED ─── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; color: var(--white-35); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.section-heading { font-size: clamp(30px, 4vw, 50px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.14; margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--white-35); max-width: 480px; margin: 0 auto; }

/* ═══ WORK ═══ */
.work { padding: 128px 0; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.project-card { position: relative; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: border-color 0.25s, transform 0.25s; cursor: default; }
.project-card:hover { border-color: var(--border-mid); transform: translateY(-3px); }
.project-card--featured { grid-column: 1 / -1; }
@media (min-width: 900px) { .project-card--featured { grid-column: span 2; } }

.project-card-inner { position: relative; z-index: 1; padding: 28px; height: 100%; display: flex; flex-direction: column; gap: 20px; }
.project-meta { display: flex; align-items: center; justify-content: space-between; }
.project-number { font-family: var(--font-mono); font-size: 11px; color: var(--white-35); letter-spacing: 0.1em; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 500; color: var(--white-35); background: var(--white-03); border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; letter-spacing: 0.03em; }

.project-icon { width: 52px; height: 52px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); transition: transform 0.2s; }
.project-card:hover .project-icon { transform: scale(1.06); }
.project-icon--tableline { background: rgba(99,179,237,0.12); color: var(--c-tableline); }
.project-icon--catering  { background: rgba(154,230,180,0.12); color: var(--c-catering); }
.project-icon--vendor    { background: rgba(214,158,246,0.12); color: var(--c-vendor); }
.project-icon--nestor    { background: rgba(246,173,85,0.12);  color: var(--c-nestor); }
.project-icon--askzoe    { background: rgba(118,169,250,0.12); color: var(--c-askzoe); }
.project-icon--madeproof { background: rgba(160,196,160,0.12); color: var(--c-madeproof); }

.project-body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.project-name { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.project-name-sub { font-size: 18px; font-weight: 400; color: var(--white-35); }
.project-tagline { font-size: 12px; font-weight: 500; color: var(--white-35); text-transform: uppercase; letter-spacing: 0.07em; }
.project-desc { font-size: 14px; color: var(--white-60); line-height: 1.65; }
.project-features { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.project-features li { font-size: 13px; color: var(--white-35); padding-left: 14px; position: relative; }
.project-features li::before { content: '—'; position: absolute; left: 0; color: var(--white-14); }

.project-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.project-tech { display: flex; gap: 6px; flex-wrap: wrap; }
.tech-pill { font-family: var(--font-mono); font-size: 11px; color: var(--white-35); background: var(--white-03); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; }
.project-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--white-60); text-decoration: none; padding: 6px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--white-03); transition: all 0.2s; white-space: nowrap; }
.project-link:hover { color: var(--white); background: var(--white-07); border-color: var(--border-mid); }
.project-link-row { display: flex; align-items: center; gap: 10px; }
.acquired-badge { font-size: 11px; font-weight: 500; color: var(--c-nestor); background: rgba(246,173,85,0.10); border: 1px solid rgba(246,173,85,0.22); border-radius: 6px; padding: 4px 10px; white-space: nowrap; }

.project-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.project-card:hover .project-glow { opacity: 1; }
.project-glow--tableline { background: radial-gradient(ellipse at 0% 0%, rgba(99,179,237,0.07), transparent 55%); }
.project-glow--catering  { background: radial-gradient(ellipse at 0% 0%, rgba(154,230,180,0.07), transparent 55%); }
.project-glow--vendor    { background: radial-gradient(ellipse at 0% 0%, rgba(214,158,246,0.07), transparent 55%); }
.project-glow--nestor    { background: radial-gradient(ellipse at 0% 0%, rgba(246,173,85,0.07),  transparent 55%); }
.project-glow--askzoe    { background: radial-gradient(ellipse at 0% 0%, rgba(118,169,250,0.07), transparent 55%); }
.project-glow--madeproof { background: radial-gradient(ellipse at 0% 0%, rgba(160,196,160,0.07), transparent 55%); }

/* ═══ ABOUT ═══ */
.about { padding: 128px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-left { display: flex; flex-direction: column; gap: 28px; }
.about-body { font-size: 16px; color: var(--white-60); line-height: 1.78; }

.about-values { display: flex; flex-direction: column; }
.value-item { display: flex; align-items: flex-start; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.value-item:last-child { border-bottom: none; }
.value-num { font-family: var(--font-mono); font-size: 11px; color: var(--white-35); letter-spacing: 0.08em; flex-shrink: 0; padding-top: 3px; min-width: 24px; }
.value-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--white-85); }
.value-desc { font-size: 14px; color: var(--white-35); line-height: 1.55; }

.about-right { display: flex; flex-direction: column; }
.about-manifesto { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 40px; display: flex; flex-direction: column; gap: 36px; }
.manifesto-quote { font-size: 17px; line-height: 1.7; color: var(--white-60); font-style: italic; font-weight: 400; border-left: 2px solid var(--border-mid); padding-left: 20px; }
.manifesto-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.m-stat { display: flex; flex-direction: column; gap: 4px; }
.m-num { font-family: var(--font-logo); font-size: 30px; font-weight: 800; letter-spacing: -0.04em; color: var(--white); }
.m-label { font-size: 12px; color: var(--white-35); line-height: 1.4; }

/* ═══ STACK ═══ */
.stack { padding: 128px 0; }
.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.stack-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 16px; text-align: center; transition: border-color 0.2s, transform 0.2s, background 0.2s; cursor: default; }
.stack-item:hover { border-color: var(--border-mid); background: var(--surface-2); transform: translateY(-2px); }
.stack-abbr { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--white-35); margin-bottom: 10px; letter-spacing: 0.05em; }
.stack-name { font-size: 13px; font-weight: 600; color: var(--white-85); margin-bottom: 4px; }
.stack-role { font-size: 11px; color: var(--white-35); text-transform: uppercase; letter-spacing: 0.06em; }

/* ═══ CONTACT ═══ */
.contact { padding: 128px 0; }
.contact-box { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.contact-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% -10%, rgba(245,245,240,0.04), transparent 55%); }
.contact-inner { position: relative; z-index: 1; padding: 88px; text-align: center; }
.contact-heading { font-size: clamp(30px, 4vw, 50px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.14; margin: 16px 0 20px; }
.contact-sub { font-size: 16px; color: var(--white-35); max-width: 480px; margin: 0 auto 44px; line-height: 1.7; }
.contact-actions { margin-bottom: 36px; }
.contact-domains { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.domain-pill { font-family: var(--font-mono); font-size: 12px; color: var(--white-35); text-decoration: none; background: var(--white-03); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 6px 14px; transition: all 0.2s; }
.domain-pill:hover { color: var(--white-85); background: var(--white-07); border-color: var(--border-mid); }

/* ═══ FOOTER ═══ */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; }
.footer-copy { font-size: 13px; color: var(--white-35); text-align: center; flex: 1; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-link { font-size: 13px; color: var(--white-35); text-decoration: none; transition: color 0.18s; }
.footer-link:hover { color: var(--white-60); }

/* ─── FADE-IN ─── */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .contact-inner { padding: 56px 40px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: calc(var(--nav-h) + 24px) 20px 72px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
  .hero-heading { font-size: 38px; }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card--featured { grid-column: 1; }
  .work, .about, .stack, .contact { padding: 88px 0; }
  .section-header { margin-bottom: 44px; }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .manifesto-stats { grid-template-columns: 1fr 1fr; }
  .contact-inner { padding: 44px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-copy { order: 3; }
}
