html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: linear-gradient(135deg, #EB9916 0%, #FFC04D 50%, #FFDB8A 100%); }
#granim-canvas { position: fixed; inset: 0; display: none; }


/* Typography */
body { font-family: 'Work Sans', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif; color: #0C0603; }
.hero-title { font-family: 'Gloock', Georgia, 'Times New Roman', serif; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.hero-lead { margin: 0; color: rgba(12,6,3,0.8); }
.fund-line { margin: 0 0 0.25em 0; opacity: 0.95; font-size: 2.2rem; }
.cta-line { margin: 0; font-size: 2.2rem; }

/* Layout primitives */
.page { position: relative; z-index: 1; width: 100%; max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; padding-top: 4rem; }
.site-header { position: relative; text-align: center; margin-bottom: 6rem; }
.brand { height: 72px; width: auto; display: block; margin: 0 auto; }
.content { position: relative; width: 100%; padding: 0 64px; text-align: center; }

/* Hero */
.hero { margin-bottom: 6rem; }
.hero-title { margin: 0; background: linear-gradient(90deg, #0C0603 0%, #2b2623 50%, #0C0603 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.02em; line-height: 1; text-align: center; }
.hero-line-1 { font-size: 8rem; display: block; margin-bottom: 0.25rem; }
.hero-line-2 { font-size: 5rem; display: block; font-weight: 300; }
.hero-lead { font-size: 1.75rem; font-weight: 300; margin-top: 2.5rem; color: rgba(12,6,3,0.85); text-shadow: none; text-align: center; line-height: 1.6; }

/* Glitch Effect */
.glitch-text {
  position: relative;
  display: inline-block;
  animation: glitch 1s linear infinite;
  z-index: 2;
}

.glitch-text .hero-line-1 {
  position: relative;
  z-index: 2;
}

.glitch-text:before,
.glitch-text:after {
  content: attr(title);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0C0603 0%, #2b2623 50%, #0C0603 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 8rem;
  font-family: 'Gloock', Georgia, 'Times New Roman', serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
  pointer-events: none;
  z-index: 1;
}

.glitch-text:before {
  animation: glitchTop 1s linear infinite;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.glitch-text:after {
  animation: glitchBottom 1.5s linear infinite;
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

@keyframes glitch {
  2%, 64% {
    transform: translate(2px, 0) skew(0deg);
  }
  4%, 60% {
    transform: translate(-2px, 0) skew(0deg);
  }
  62% {
    transform: translate(0, 0) skew(5deg);
  }
}

@keyframes glitchTop {
  2%, 64% {
    transform: translate(2px, -2px);
  }
  4%, 60% {
    transform: translate(-2px, 2px);
  }
  62% {
    transform: translate(13px, -1px) skew(-13deg);
  }
}

@keyframes glitchBottom {
  2%, 64% {
    transform: translate(-2px, 0);
  }
  4%, 60% {
    transform: translate(-2px, 0);
  }
  62% {
    transform: translate(-22px, 5px) skew(21deg);
  }
}

/* Portfolio cards */
.portfolio { margin-top: 15rem; margin-bottom: 15rem; }
.portfolio-label { font-family: 'Gloock', Georgia, serif; font-size: 1.25rem; color: rgba(12,6,3,0.5); margin: 2rem 0 0; text-align: center; }
.card-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; }
.card { width: 100%; height: 11rem; border-radius: 20px; border: 1px solid rgba(255,255,255,0.5); background: linear-gradient(180deg, rgba(255,200,120,0.32) 0%, rgba(255,255,255,0.22) 100%); box-shadow: 0 10px 24px rgba(12,6,3,0.1), 0 1px 0 rgba(255,255,255,0.4) inset; display: grid; place-items: center; backdrop-filter: blur(6px) saturate(110%); -webkit-backdrop-filter: blur(6px) saturate(110%); transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms cubic-bezier(.2,.8,.2,1); }
.card img { max-width: 70%; max-height: 55%; display: block; filter: contrast(1) saturate(0.9) brightness(0.95); }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(12,6,3,0.14), 0 1px 0 rgba(255,255,255,0.4) inset; }

/* CTA Section */
.cta-section { position: relative; text-align: center; color: #0C0603; font-size: 1.5rem; font-weight: 300; line-height: 1.6; width: 100%; margin: 0 auto 4rem; }
.cta-section .hero-lead { font-size: inherit; margin: 0 0 1.5rem 0; }
.cta-section .fund-line { font-size: inherit; opacity: 0.9; margin: 0 0 0.1em 0; }
.cta-section .cta-line { font-size: inherit; margin: 0; line-height: 1.6; }
.person { color: #0C0603; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin: 0 4px; vertical-align: middle; }
.person:hover { text-decoration: underline; }
.avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(12,6,3,0.3); vertical-align: middle; }

/* Footer */
.site-footer { position: fixed; left: 48px; bottom: 64px; transform: rotate(-90deg); transform-origin: bottom left; color: rgba(12,6,3,0.6); font-size: 14px; letter-spacing: 0.08em; text-transform: lowercase; z-index: 10; }
.site-footer span { display: inline-block; }

/* Decorative elements */
.decor-fox { position: absolute; right: clamp(-40px, -3vw, -12px); bottom: clamp(-30px, -2vw, -10px); width: min(46vh, 44vw); height: auto; opacity: 0; pointer-events: none; display: none; }
.decor-lines { position: absolute; right: 0; top: 0; width: 50%; height: 40%; opacity: 1; pointer-events: none; }

/* Allow scrolling */
html, body { overflow-x: hidden; overflow-y: auto; }
.page { overflow: visible; }

/* Mobile styles */
@media (max-width: 768px) {
  * { 
    box-sizing: border-box; 
  }
  
  /* Base layout */
  body { 
    overflow-x: hidden; 
    overflow-y: auto; 
  }
  
  .page { 
    width: 100%; 
    max-width: none; 
    margin: 0; 
    padding: 1rem; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh; 
  }
  
  /* Header */
  .site-header { 
    width: 100%; 
    text-align: center; 
    margin-bottom: 2rem; 
  }
  
  .brand { 
    height: 48px; 
    width: auto; 
    max-width: 100%; 
  }
  
  /* Content */
  .content { 
    width: 100%; 
    max-width: 100%; 
    padding: 0; 
    text-align: center; 
  }
  
  /* Hero - Responsive scaling */
  .hero { 
    width: 100%; 
    margin-bottom: 4rem; 
    text-align: center; 
  }
  
  .hero-title { 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
  }
  
  .hero-line-1 { 
    font-size: clamp(2.5rem, 8vw, 4rem); 
    margin-bottom: 0.5rem; 
    display: block; 
  }
  
  .hero-line-2 { 
    font-size: clamp(1.5rem, 5vw, 2.5rem); 
    display: block; 
    font-weight: 300; 
  }
  
  /* Glitch effect adjustments for mobile */
  .glitch-text:before,
  .glitch-text:after {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  
  /* Portfolio */
  .portfolio { 
    width: 100%; 
    margin: 4rem 0; 
  }
  
  .card-row { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
    width: 100%; 
  }
  
  .card { 
    width: 100%; 
    height: 120px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
  }
  
  .card img { 
    max-width: 80%; 
    max-height: 70%; 
    object-fit: contain; 
  }
  
  .portfolio-label { 
    font-size: 1rem; 
    margin-top: 1.5rem; 
  }
  
  /* CTA Section */
  .cta-section { 
    width: 100%; 
    text-align: center; 
    margin: 4rem 0; 
    font-size: 1rem; 
  }
  
  .cta-section .hero-lead { 
    font-size: 1rem; 
    margin-bottom: 1.5rem; 
    line-height: 1.5; 
  }
  
  .cta-section .fund-line { 
    font-size: 1rem; 
    margin-bottom: 0.5rem; 
    line-height: 1.4; 
  }
  
  .cta-section .cta-line { 
    font-size: 1rem; 
    line-height: 1.5; 
  }
  
  .person { 
    gap: 4px; 
    margin: 0 2px; 
  }
  
  .avatar { 
    width: 18px; 
    height: 18px; 
  }
  
  /* Footer */
  .site-footer { 
    position: static; 
    transform: none; 
    text-align: center; 
    margin: 4rem 0 0; 
    font-size: 0.75rem; 
    opacity: 0.7; 
  }
  
  /* Hide decorative elements on mobile */
  .decor-lines { 
    display: none; 
  }
}


