/* ============================================
   Studio BIGS — Industrial Editorial
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&family=Outfit:wght@300;400;500;600;700;800&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);
  --slate: #434E58;

  --card-bg: var(--paper);
  --card-border: var(--ui-2);

  --ring-color: rgba(16, 15, 15, 0.08);

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

/* ============================================
   Reset & Base
   ============================================ */

*, *::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;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain overlay */
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;
}

/* ============================================
   Typography
   ============================================ */

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

/* ============================================
   Scroll Reveal — Clip Path
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-clip {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.reveal-clip.visible {
  clip-path: inset(0 0 0% 0);
  opacity: 1;
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

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

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

/* ============================================
   Hero
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

/* Floating ring — top right */
.hero-ring {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid var(--ring-color);
  top: -8%;
  right: -12%;
  pointer-events: none;
  animation: ring-drift 20s ease-in-out infinite;
}

.hero-ring::before {
  content: '';
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  border: 1px solid var(--ring-color);
}

.hero-ring::after {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid var(--ring-color);
}

@keyframes ring-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 15px); }
}

/* Gold bar — vertical accent */
.hero-bar {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-65%);
  width: 3px;
  height: 200px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0;
  animation: bar-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes bar-in {
  from { opacity: 0; height: 0; }
  to { opacity: 1; height: 200px; }
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-left: 5rem;
}

/* ============================================
   BIGS Wordmark — Oversized, Left-Aligned
   ============================================ */

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  margin-bottom: 2rem;
}

.wordmark-label {
  font-family: 'IBM Plex Mono', 'Archivo Narrow', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 0.75rem;
  margin-left: 0.25rem;
}

.wordmark-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.85;
  margin-left: -0.06em;
  color: #8B7355;
}

/* Gold underline on wordmark */
.wordmark-rule {
  width: 100%;
  max-width: 280px;
  height: 2px;
  background: var(--gold);
  margin-top: 1.25rem;
  border: none;
  transform-origin: left;
  opacity: 0;
  animation: rule-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes rule-in {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

/* ============================================
   Tagline
   ============================================ */

.tagline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  color: var(--tx-2);
  font-weight: 300;
  letter-spacing: -0.01em;
  max-width: 440px;
  line-height: 1.45;
}

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

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

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

.projects-header {
  margin-bottom: 3rem;
}

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

.projects-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}

/* Project entries — editorial style */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--ui-3);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease;
  position: relative;
}

.project-entry:last-child {
  border-bottom: 1px solid var(--ui-3);
}

.project-entry:hover {
  background: rgba(196, 168, 130, 0.06);
}

.project-entry:hover .project-num {
  color: var(--gold);
}

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

/* Left column: number + icon */
.project-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.project-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--tx-3);
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  min-width: 2ch;
}

.project-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.project-icon-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  background: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Center: text */
.project-text {
  flex: 1;
  min-width: 0;
}

.project-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

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

/* Right: arrow */
.project-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--tx-3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s ease;
}

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

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

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-size: 0.8125rem;
  color: var(--tx-3);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--tx-3);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-links a:hover::after {
  width: 100%;
}

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

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

  .hero .container {
    padding-left: 2rem;
  }

  .hero-bar {
    left: 2rem;
  }

  .hero-ring {
    width: 360px;
    height: 360px;
    top: -5%;
    right: -20%;
  }

  .hero-ring::before {
    inset: -40px;
  }

  .hero-ring::after {
    inset: 30px;
  }

  .project-entry {
    gap: 1.25rem;
    padding: 1.5rem 0;
  }

  .project-left {
    gap: 1rem;
  }
}

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

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

  .hero {
    min-height: 80vh;
    padding: 4rem 0;
  }

  .hero .container {
    padding-left: 1.25rem;
  }

  .hero-bar {
    display: none;
  }

  .hero-ring {
    display: none;
  }

  .wordmark-name {
    font-size: 4.5rem;
  }

  .wordmark-rule {
    max-width: 160px;
  }

  .tagline {
    font-size: 1.125rem;
  }

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

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

  .project-entry {
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1.25rem 0;
  }

  .project-left {
    grid-column: 1 / -1;
    gap: 1rem;
  }

  .project-text {
    grid-column: 1;
  }

  .project-arrow {
    grid-column: 2;
    align-self: center;
  }

  .project-icon,
  .project-icon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .project-name {
    font-size: 1.0625rem;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    justify-content: center;
  }
}

/* ============================================
   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.2);

    --card-bg: #1E1D1C;
    --card-border: rgba(255, 252, 240, 0.08);

    --ring-color: rgba(196, 168, 130, 0.06);
  }

  .wordmark-name {
    color: var(--gold);
  }

  /* Grain — soften on dark */
  body::after {
    mix-blend-mode: soft-light;
    opacity: 0.2;
  }

  /* Project icon — deeper shadow */
  .project-icon {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .project-entry:hover {
    background: rgba(196, 168, 130, 0.04);
  }

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

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

  .footer-links a:hover {
    color: #FFFCF0;
  }
}
