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

:root {
  --bg:      #000000;
  --surface: #0a0a0a;
  --card:    #0f0f0f;
  --border:  rgba(201,168,76,0.18);
  --gold:    #C9A84C;
  --white:   #ffffff;
  --muted:   rgba(255,255,255,0.4);
  --dim:     rgba(255,255,255,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  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='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)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.3;
}

/* Top gold line */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 1000;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled { border-bottom-color: var(--border); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-wordmark {
  font-family: 'Bebas Neue', cursive;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--bg);
  background: var(--gold);
  padding: 10px 24px;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.1s;
  display: inline-block;
}

.nav-cta:hover { opacity: 0.85; }

@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 48px 80px;
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(72px, 12vw, 160px);
  line-height: 0.9;
  letter-spacing: 2px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-title-accent { color: var(--gold); }

.hero-tagline {
  font-family: 'IBM Plex Sans', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--gold);
  margin-top: 20px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
  margin-top: 20px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  animation: fadeUp 0.6s 0.4s ease both;
}

.btn-primary {
  font-family: 'Bebas Neue', cursive;
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--bg);
  background: var(--gold);
  padding: 16px 44px;
  text-decoration: none;
  border: 2px solid var(--gold);
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}

.btn-ghost {
  font-family: 'Bebas Neue', cursive;
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--muted);
  padding: 16px 44px;
  text-decoration: none;
  border: 1px solid var(--dim);
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 48px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--dim);
  text-transform: uppercase;
  animation: fadeUp 0.6s 0.7s ease both;
}

.hero-scroll-hint::before {
  content: '— ';
}

@media (max-width: 768px) {
  .hero { padding: 100px 20px 60px; }
  .hero-actions { flex-direction: column; }
  .hero-scroll-hint { left: 20px; }
}

/* ── LAYOUT ── */
.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 48px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: 2px;
  line-height: 1;
}

.section-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
}

/* ── FEATURED CARD ── */
.card-featured {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 40px;
  text-decoration: none;
  color: var(--white);
  margin-bottom: 2px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.card-featured:hover { background: #141414; }

.card-featured-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.card-featured .card-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 52px;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 6px;
  cursor: pointer;
}

.card-featured .card-arrow {
  font-size: 24px;
  color: var(--gold);
}

/* ── GRID CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
  text-decoration: none;
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.card:hover { background: #141414; border-color: rgba(201,168,76,0.3); }
.card:hover::before { transform: scaleX(1); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card .card-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 28px;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 6px;
  cursor: pointer;
}

.card-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.card-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.card-arrow {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}

.card:hover .card-arrow, .card-featured:hover .card-arrow {
  transform: translate(3px,-3px);
  color: var(--gold);
}

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--dim);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 3px 8px;
}

/* ── BADGES ── */
.badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 3px 9px;
  text-transform: uppercase;
}

.badge-live    { background: rgba(0,200,80,0.08);   color: #00c850; border: 1px solid rgba(0,200,80,0.2); }
.badge-build   { background: rgba(201,168,76,0.08); color: var(--gold); border: 1px solid rgba(201,168,76,0.2); }
.badge-client  { background: rgba(80,120,255,0.08); color: #5078ff; border: 1px solid rgba(80,120,255,0.2); }
.badge-inhouse { background: rgba(150,80,255,0.08); color: #9650ff; border: 1px solid rgba(150,80,255,0.2); }

@media (max-width: 768px) {
  .section-wrap { padding: 60px 20px; }
  .card-featured { padding: 24px; }
  .card-featured .card-name { font-size: 36px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── ABOUT ── */
.about-wrap {
  display: flex;
  gap: 80px;
  align-items: center;
}

.about-quote {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 100;
  line-height: 1.2;
  color: var(--white);
  min-width: 300px;
  flex: 1;
}

.about-quote em {
  font-style: italic;
  color: var(--gold);
}

.about-body {
  flex: 1;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 300;
}

/* ── CONTACT ── */
.contact-wrap { padding-bottom: 80px; }

.contact-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  margin-top: 20px;
  font-weight: 300;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── FOOTER ── */
footer { background: var(--surface); }

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-wordmark {
  font-family: 'Bebas Neue', cursive;
  font-size: 18px;
  letter-spacing: 4px;
}

.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 1px;
}

.footer-email a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
}

@media (max-width: 768px) {
  .about-wrap { flex-direction: column; gap: 32px; }
  .footer-inner { padding: 32px 20px; flex-direction: column; align-items: flex-start; }
}
