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

:root {
  --black: #0a0a0a;
  --white: #f5f5f5;
  --gray-dark: #141414;
  --gray-mid: #2a2a2a;
  --gray-light: #888;
  --accent: #f5f5f5;
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  cursor: none;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(245,245,245,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(a:hover) .cursor, body:has(button:hover) .cursor { width: 16px; height: 16px; }
body:has(a:hover) .cursor-follower, body:has(button:hover) .cursor-follower {
  width: 56px; height: 56px;
  border-color: rgba(245,245,245,0.8);
}

/* ── Noise overlay ── */
.noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: all 0.25s;
  cursor: none;
  border: none;
}
.btn-primary {
  background: var(--white);
  color: var(--black);
}
.btn-primary:hover { background: #d4d4d4; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(245,245,245,0.3);
}
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Section labels ── */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--gray-mid);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 3rem;
}
.section-title em { font-style: normal; color: var(--gray-light); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, backdrop-filter 0.3s;
}
#navbar.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-mid);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.logo span { color: var(--gray-light); }
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-light);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--gray-dark);
  border-top: 1px solid var(--gray-mid);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-menu.open { max-height: 300px; }
.mob-link {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-mid);
  transition: background 0.2s;
}
.mob-link:hover { background: var(--gray-mid); }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

/* grid bg */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,245,245,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,245,245,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* radial glow */
#hero::after {
  content: '';
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,245,245,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(245,245,245,0.2);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  color: var(--gray-light);
}

.hero-title {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--gray-light); }

.reveal-line {
  opacity: 0;
  transform: translateY(60px);
  display: block;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-line.visible { opacity: 1; transform: translateY(0); }
.reveal-line:nth-child(2) { transition-delay: 0.1s; }
.reveal-line:nth-child(3) { transition-delay: 0.2s; }

.hero-sub {
  max-width: 520px;
  font-size: 1.125rem;
  color: var(--gray-light);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 5rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  z-index: 2;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gray-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ── MARQUEE ── */
.hero-marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--gray-mid);
  padding: 0.9rem 0;
  background: var(--gray-dark);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  padding-right: 2rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── ABOUT ── */
#about {
  padding: 8rem 0;
  border-top: 1px solid var(--gray-mid);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}
.stat {}
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}
.stat-num::after { content: '+'; }
.stat-label {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-top: 0.25rem;
}
.about-body {
  font-size: 1.1rem;
  color: var(--gray-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-body strong, .about-body em { color: var(--white); font-style: normal; }

/* ── SERVICES ── */
#services {
  padding: 8rem 0;
  background: var(--gray-dark);
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-mid);
  border: 1px solid var(--gray-mid);
}
.service-card {
  background: var(--gray-dark);
  padding: 2.5rem;
  transition: background 0.3s;
}
.service-card:hover { background: var(--gray-mid); }
.service-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.7;
}

/* ── PRICING ── */
#pricing {
  padding: 8rem 0;
  border-top: 1px solid var(--gray-mid);
}
.pricing-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  overflow: hidden;
}
.pricing-left {
  padding: 3.5rem;
  border-right: 1px solid var(--gray-mid);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.price-tag {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  line-height: 1;
}
.price-currency {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.75rem;
  color: var(--gray-light);
}
.price-amount {
  font-family: var(--font-mono);
  font-size: 7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.price-period {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--gray-light);
  align-self: flex-end;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.price-desc {
  font-size: 1rem;
  color: var(--gray-light);
  line-height: 1.7;
  max-width: 340px;
}
.pricing-right {
  padding: 3.5rem;
  background: var(--gray-dark);
  display: flex;
  align-items: center;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--gray-light);
}
.pf-check {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white);
  background: var(--gray-mid);
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .pricing-card { grid-template-columns: 1fr; }
  .pricing-left { border-right: none; border-bottom: 1px solid var(--gray-mid); padding: 2.5rem; }
  .pricing-right { padding: 2.5rem; }
  .price-amount { font-size: 5rem; }
}

/* ── PROJECTS ── */
#projects { padding: 8rem 0; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.project-card {
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.project-card:hover {
  border-color: rgba(245,245,245,0.3);
  transform: translateY(-4px);
}
.project-img { aspect-ratio: 16/9; overflow: hidden; }
.project-info { padding: 1.75rem; }
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 0.75rem;
  display: block;
}
.project-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.project-info p {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.project-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: letter-spacing 0.3s;
}
.project-link:hover { letter-spacing: 0.1em; }
.project-soon { color: var(--gray-light); cursor: default; }

/* tech tags */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  border: 1px solid var(--gray-mid);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
  display: inline-block;
}

/* project placeholder themes */
.project-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  background: #111;
}
.project-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(245,245,245,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,245,245,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}
.pp-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  font-weight: 700;
}
.pp-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}
.pp-features span {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: 1px solid currentColor;
  opacity: 0.75;
}

/* individual card accent colours */
.project-nussy-co   { background: #0a160a; }
.project-nussy-co   .pp-label { color: #22c55e; }
.project-nussy-co   .pp-features span { color: #22c55e; }
.project-nussy-co::after   { content:''; position:absolute; inset:0; z-index:1; background: radial-gradient(ellipse at 50% 70%, rgba(34,197,94,0.22) 0%, transparent 65%); }

.project-motorsport { background: #070a02; }
.project-motorsport .pp-label { color: #aaff00; }
.project-motorsport .pp-features span { color: #aaff00; }
.project-motorsport::after { content:''; position:absolute; inset:0; z-index:1; background: radial-gradient(ellipse at 50% 70%, rgba(170,255,0,0.2) 0%, transparent 65%); }

.project-store      { background: #100800; }
.project-store      .pp-label { color: #f59e0b; }
.project-store      .pp-features span { color: #f59e0b; }
.project-store::after      { content:''; position:absolute; inset:0; z-index:1; background: radial-gradient(ellipse at 50% 70%, rgba(245,158,11,0.2) 0%, transparent 65%); }

.project-rapidly    { background: #00060f; }
.project-rapidly    .pp-label { color: #38bdf8; }
.project-rapidly    .pp-features span { color: #38bdf8; }
.project-rapidly::after    { content:''; position:absolute; inset:0; z-index:1; background: radial-gradient(ellipse at 50% 70%, rgba(56,189,248,0.2) 0%, transparent 65%); }

.project-prl        { background: #08001a; }
.project-prl        .pp-label { color: #a78bfa; }
.project-prl        .pp-features span { color: #a78bfa; }
.project-prl::after        { content:''; position:absolute; inset:0; z-index:1; background: radial-gradient(ellipse at 50% 70%, rgba(167,139,250,0.2) 0%, transparent 65%); }

.project-aspl       { background: #060010; }
.project-aspl       .pp-label { color: #f43f5e; }
.project-aspl       .pp-features span { color: #f43f5e; }
.project-aspl::after       { content:''; position:absolute; inset:0; z-index:1; background: radial-gradient(ellipse at 50% 70%, rgba(244,63,94,0.2) 0%, transparent 65%); }

/* ── CTA BAND ── */
#cta-band {
  padding: 6rem 0;
  background: var(--white);
  color: var(--black);
}
.band-inner {
  text-align: center;
}
.band-inner h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--black);
}
.band-inner p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2.5rem;
}
#cta-band .btn-primary {
  background: var(--black);
  color: var(--white);
}
#cta-band .btn-primary:hover { background: #222; }

/* ── CONTACT ── */
#contact { padding: 8rem 0; border-top: 1px solid var(--gray-mid); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}
.contact-item { margin-bottom: 2rem; }
.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 0.35rem;
}
.contact-val {
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s;
}
a.contact-val:hover { color: var(--gray-light); }
.contact-socials {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}
.social-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-light);
  transition: color 0.2s;
}
.social-link:hover { color: var(--white); }

/* ── FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gray-light);
}
.form-group input,
.form-group textarea {
  background: var(--gray-dark);
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s;
  resize: none;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--white); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #444; }
.form-note {
  font-size: 0.85rem;
  color: var(--gray-light);
  min-height: 1.2em;
  text-align: center;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--gray-mid);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy, .footer-tagline {
  font-size: 0.8rem;
  color: var(--gray-light);
  font-family: var(--font-mono);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 2rem; }
  .hero-cta { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
  .hero-title { font-size: 2.5rem; }
}
