/* ========================================================================
   SKUDWEB — Landing premium
   Black & white, minimalist, premium
   ======================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: #fff; color: #000; }

:root {
  --bg: #0a0a0a;
  --bg-elevated: #0f0f0f;
  --bg-card: #111;
  --border: #1a1a1a;
  --border-strong: #2a2a2a;
  --text: #f5f5f5;
  --text-muted: #999;
  --text-dim: #666;
  --text-faint: #444;
  --accent: #fff;
  --radius: 12px;
  --radius-pill: 100px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

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

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

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--text-muted); display: inline-block; }

.italic-accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--text-dim); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(0px);
  background: transparent;
}
.nav.scrolled {
  padding: 14px 0;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 10, 10, 0.75);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; letter-spacing: 0.02em; }
.logo svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 36px; font-size: 13px; color: var(--text-muted); }
.nav-links a { transition: color 0.3s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; bottom: -6px; left: 0; right: 0; height: 1px;
  background: var(--text); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--accent); color: #000; padding: 10px 20px;
  border-radius: var(--radius-pill); font-size: 13px; font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,0.15); }
.menu-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; padding: 120px 0 80px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
  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 80%);
}
.hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 60px; position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 0.98; font-weight: 500;
  letter-spacing: -0.035em;
  margin: 28px 0 32px; max-width: 14ch;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; }
.hero p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-muted); max-width: 520px;
  margin-bottom: 48px; font-weight: 300; line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  padding: 15px 28px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,255,255,0.15); }
.btn-primary .arrow { transition: transform 0.3s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-secondary { background: transparent; color: var(--text); border: 0.5px solid var(--border-strong); }
.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: var(--text-faint); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 0.5px solid var(--border); border-radius: 8px; overflow: hidden;
  margin-top: 80px; position: relative; z-index: 2;
}
.stat-item { background: var(--bg); padding: 24px 28px; transition: background 0.3s; }
.stat-item:hover { background: var(--bg-elevated); }
.stat-value { font-size: clamp(28px, 3vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; }
.stat-value .sub { font-size: 0.55em; color: var(--text-dim); }
.stat-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 24px 0; overflow: hidden;
  background: var(--bg-elevated);
}
.marquee-track {
  display: flex; gap: 60px; white-space: nowrap;
  animation: scroll 40s linear infinite;
}
.marquee-item {
  font-size: clamp(20px, 3vw, 32px); font-weight: 500;
  color: var(--text-faint); letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 60px;
}
.marquee-item::after { content: "✦"; color: var(--text-dim); font-size: 0.7em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ SECTION ============ */
.section { padding: 120px 0; position: relative; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; gap: 40px; flex-wrap: wrap; }
.section-title { font-size: clamp(36px, 5vw, 64px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; margin-top: 20px; }
.section-intro { font-size: 15px; color: var(--text-muted); max-width: 320px; line-height: 1.7; }

/* ============ ABOUT ============ */
.about { border-top: 0.5px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text { font-size: 17px; line-height: 1.75; color: var(--text-muted); }
.about-text p { margin-bottom: 24px; }
.about-text strong { color: var(--text); font-weight: 500; }
.about-features { display: grid; gap: 1px; background: var(--border); border: 0.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.about-feature { background: var(--bg); padding: 20px 24px; display: flex; gap: 16px; align-items: flex-start; }
.about-feature-num { font-family: var(--font-serif); font-style: italic; color: var(--text-dim); font-size: 18px; }
.about-feature-text { font-size: 14px; }
.about-feature-text strong { display: block; margin-bottom: 4px; font-weight: 500; }
.about-feature-text span { color: var(--text-muted); font-size: 13px; line-height: 1.6; }

/* ============ SERVICES ============ */
.services { border-top: 0.5px solid var(--border); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 0.5px solid var(--border); border-radius: 8px; overflow: hidden;
}
.service-card {
  background: var(--bg); padding: 40px 32px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.4s;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.04), transparent 50%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.service-card:hover { background: var(--bg-elevated); }
.service-card:hover::after { opacity: 1; }
.service-num { font-size: 11px; color: var(--text-dim); font-weight: 500; letter-spacing: 0.08em; }
.service-title { font-size: 22px; font-weight: 500; margin: 32px 0 12px; letter-spacing: -0.01em; line-height: 1.2; }
.service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.service-arrow {
  margin-top: 28px; font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.3s, gap 0.3s;
}
.service-card:hover .service-arrow { color: var(--text); gap: 12px; }

/* ============ PROCESS ============ */
.process { border-top: 0.5px solid var(--border); }
.process-timeline { position: relative; padding-left: 24px; }
.process-timeline::before {
  content: ""; position: absolute; left: 24px; top: 24px; bottom: 24px; width: 1px;
  background: linear-gradient(180deg, var(--border-strong) 0%, var(--border) 80%, transparent 100%);
}
.process-step {
  display: flex; gap: 48px; align-items: flex-start;
  padding: 40px 0; position: relative;
  border-bottom: 0.5px dashed var(--border);
}
.process-step:last-child { border-bottom: none; }
.process-num {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 500; font-size: 14px;
  background: var(--bg); border: 0.5px solid var(--border-strong);
  z-index: 1; transition: all 0.4s; margin-left: -28px;
}
.process-step:hover .process-num { background: var(--accent); color: #000; border-color: var(--accent); transform: scale(1.05); }
.process-content { flex: 1; padding-top: 12px; }
.process-content h3 { font-size: 24px; font-weight: 500; margin-bottom: 12px; letter-spacing: -0.01em; }
.process-content p { font-size: 15px; color: var(--text-muted); max-width: 580px; line-height: 1.7; }
.process-meta { font-size: 12px; color: var(--text-dim); margin-top: 14px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ============ PORTFOLIO ============ */
.portfolio { border-top: 0.5px solid var(--border); }
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.portfolio-card {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; cursor: pointer;
}
.portfolio-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.portfolio-image {
  aspect-ratio: 16/10; background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.portfolio-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.02));
}
.portfolio-mockup {
  width: 75%; height: 75%; background: #050505;
  border-radius: 6px; border: 0.5px solid var(--border);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  position: relative; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-card:hover .portfolio-mockup { transform: scale(1.05) rotate(-1deg); }
.mockup-bar { height: 6px; border-radius: 2px; background: var(--border-strong); }
.mockup-bar.short { width: 30%; }
.mockup-bar.medium { width: 60%; background: var(--text-faint); }
.mockup-bar.large { width: 85%; background: var(--text-dim); height: 12px; }
.mockup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; flex: 1; }
.mockup-block { background: var(--border); border-radius: 4px; }
.portfolio-body { padding: 24px 28px; }
.portfolio-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.portfolio-title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.portfolio-year { font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; }
.portfolio-cat { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: 14px; }
.portfolio-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.portfolio-link { font-size: 12px; letter-spacing: 0.1em; color: var(--text); display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s; }
.portfolio-card:hover .portfolio-link { gap: 14px; }

.portfolio-footer { margin-top: 40px; text-align: center; }

/* ============ TESTIMONIALS ============ */
.testimonials { border-top: 0.5px solid var(--border); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px; transition: all 0.4s;
  display: flex; flex-direction: column;
}
.testimonial:hover { background: var(--bg-card); border-color: var(--border-strong); }
.testimonial-quote { font-family: var(--font-serif); font-size: 48px; line-height: 0; color: var(--text-faint); height: 30px; }
.testimonial-text { font-size: 15px; line-height: 1.7; color: var(--text); flex: 1; margin-bottom: 24px; font-weight: 300; }
.testimonial-author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 0.5px solid var(--border); }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--border-strong); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.author-info { flex: 1; }
.author-name { font-size: 14px; font-weight: 500; }
.author-role { font-size: 12px; color: var(--text-muted); }

/* ============ FAQ ============ */
.faq { border-top: 0.5px solid var(--border); }
.faq-grid { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 0.5px solid var(--border); }
.faq-question {
  width: 100%; padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 17px; font-weight: 500; text-align: left;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--text-muted); }
.faq-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 0.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-muted);
  transition: all 0.3s; flex-shrink: 0;
}
.faq-item.open .faq-toggle { background: var(--accent); color: #000; border-color: var(--accent); transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer-inner { padding: 0 0 28px; color: var(--text-muted); font-size: 15px; line-height: 1.7; max-width: 620px; }

/* ============ CTA ============ */
.cta-section {
  border-top: 0.5px solid var(--border);
  padding: 140px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04), transparent 60%);
}
.cta-content { position: relative; z-index: 2; }
.cta-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500; letter-spacing: -0.035em; line-height: 0.98;
  margin: 32px 0 28px;
}
.cta-sub { font-size: 17px; color: var(--text-muted); max-width: 460px; margin: 0 auto 48px; line-height: 1.6; }

/* ============ FOOTER ============ */
.footer { border-top: 0.5px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 320px; margin-top: 20px; }
.footer-col h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.3s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { padding-top: 32px; border-top: 0.5px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-dim); flex-wrap: wrap; gap: 16px; }

/* ============ REVEAL ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ============ CUSTOM CURSOR ============ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; background: #fff; transition: opacity 0.2s; }
.cursor-ring {
  width: 32px; height: 32px; border: 1px solid #fff;
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}
.cursor-ring.expand { width: 60px; height: 60px; }

@media (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0.5px solid var(--border-strong); }
  .menu-toggle span { width: 16px; height: 1px; background: var(--text); position: relative; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: var(--text); }
  .menu-toggle span::before { top: -5px; }
  .menu-toggle span::after { top: 5px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 80px 0; }
  .hero { padding: 100px 0 60px; }
  .process-step { gap: 24px; padding: 32px 0; }
  .process-num { width: 44px; height: 44px; font-size: 13px; margin-left: -22px; }
  .process-timeline::before { left: 22px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-section { padding: 100px 0; }
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }