/* ============================================
   Studio BIGS — The Monument
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --paper: #FFFCF0;
  --ink: #100F0F;
  --ink-warm: #1C1B1A;
  --tx-2: #6F6E69;
  --tx-3: #878580;
  --ui-1: #E6E4D9;
  --ui-2: #DAD8CE;
  --ui-3: #CECDC3;
  --warm-bg: #E8E2D0;
  --warm-bg-2: #DDD7C7;

  --gold: #C4A882;
  --gold-hover: #B89B75;
  --gold-glow: rgba(196, 168, 130, 0.15);
  --gold-deep: #8B7355;
  --slate: #434E58;

  --surface: var(--paper);
  --surface-raised: #F5F1E6;

  --max-width: 1100px;
  --radius: 20px;
  --radius-sm: 14px;
}

/* ============================================
   Reset
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

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

h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  line-height: 1.1;
}

/* ============================================
   Reveals
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  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: none;
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.5s; }

/* ============================================
   Container
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}

/* ============================================
   Hero — The Monument
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Warm radial glow behind wordmark */
.hero-glow {
  position: absolute;
  width: 900px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-breathe 8s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 0 1rem;
}

/* STUDIO label */
.studio-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 1rem;
}

/* BIGS — massive, centered, fills width */
.bigs-mark {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(8rem, 26vw, 22rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.82;
  color: var(--gold-deep);
  will-change: transform, opacity;
}

/* Full-bleed gold rule */
.hero-rule {
  width: 100vw;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem 0 2.5rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  animation: rule-expand 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes rule-expand {
  from { transform: translateX(-50%) scaleX(0); }
  to { transform: translateX(-50%) scaleX(1); }
}

/* Tagline */
.tagline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--tx-2);
  font-weight: 300;
  letter-spacing: -0.005em;
}

/* ============================================
   Projects
   ============================================ */

.projects {
  padding: 6rem 0 4rem;
  background: var(--warm-bg);
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--warm-bg));
  pointer-events: none;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 2rem;
}

/* Side-by-side cards */
.project-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Gold left accent — hidden, slides in on hover */
.card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .card-accent {
  transform: scaleY(1);
}

.card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.card-icon-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-placeholder svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-body {
  flex: 1;
}

.card-name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--tx-2);
  font-weight: 300;
  line-height: 1.5;
}

.card-arrow {
  width: 22px;
  height: 22px;
  color: var(--tx-3);
  align-self: flex-end;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s ease;
}

.project-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--gold);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 2.5rem 0;
  background: var(--warm-bg);
  border-top: 1px solid var(--ui-3);
  text-align: center;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--tx-3);
}

.footer-bigs {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-sep {
  opacity: 0.4;
}

/* ============================================
   Responsive — Tablet
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .project-cards {
    grid-template-columns: 1fr;
  }

  .hero-glow {
    width: 600px;
    height: 400px;
  }
}

/* ============================================
   Responsive — Mobile
   ============================================ */

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero {
    min-height: 85vh;
  }

  .bigs-mark {
    font-size: 5rem;
  }

  .hero-rule {
    margin: 1rem 0 1.75rem;
  }

  .hero-glow {
    display: none;
  }

  .projects {
    padding: 3.5rem 0 2.5rem;
  }

  .projects::before {
    top: -48px;
    height: 48px;
  }

  .project-card {
    padding: 1.5rem;
  }

  .card-icon,
  .card-icon-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
}

/* ============================================
   Dark Mode
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #100F0F;
    --ink: #E6E4D9;
    --ink-warm: #CECDC3;
    --tx-2: #A09F97;
    --tx-3: #878580;
    --ui-1: rgba(255, 252, 240, 0.06);
    --ui-2: rgba(255, 252, 240, 0.08);
    --ui-3: rgba(255, 252, 240, 0.12);
    --warm-bg: #181716;
    --warm-bg-2: #201F1E;
    --gold-glow: rgba(196, 168, 130, 0.12);

    --surface: #1E1D1C;
    --surface-raised: #262524;
  }

  .bigs-mark {
    color: var(--gold);
  }

  body::after {
    mix-blend-mode: soft-light;
    opacity: 0.2;
  }

  .card-icon {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }

  .project-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .project-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .footer {
    border-top-color: rgba(255, 252, 240, 0.06);
  }

  .footer-bigs {
    color: var(--gold);
  }
}
