:root{
  --gold: #fbbf24;
  --gold-light: #fef3c7;
  --gold-mid: #fcd34d;
  --gold-dark: #d97706;
  
  --ink: #050505; 
  --graphite: #0B0C0D; 
  --stone: #F4F2EC; 
  
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
*{box-sizing:border-box}

html,body{margin:0;padding:0;background:var(--ink);color:var(--stone);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale; overflow-x: clip;}
body{font-family:var(--sans);font-size:16px;line-height:1.6;}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}

/* --- Smooth Scroll Engine --- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* --- Custom Cursor --- */
@media (pointer: fine) { body, a, button, input, textarea { cursor: none !important; } }
.cursor {
  position: fixed; top: 0; left: 0; width: 6px; height: 6px;
  background-color: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s; will-change: transform;
}
.cursor-follower {
  position: fixed; top: 0; left: 0; width: 32px; height: 32px;
  border: 1px solid rgba(251, 191, 36, 0.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  will-change: transform;
}
.cursor.hover-active { width: 0; height: 0; }
.cursor-follower.hover-active { width: 60px; height: 60px; background-color: rgba(251, 191, 36, 0.1); border-color: transparent; backdrop-filter: blur(2px); }
@media (hover: none) and (pointer: coarse) { .cursor, .cursor-follower { display: none !important; } }

.wrap{width:100%;max-width:1440px;margin:0 auto;padding:0 48px}
@media(max-width:720px){.wrap{padding:0 22px}}
section{position:relative}

/* --- Utilities & Typography --- */
.italic { font-style: italic; font-weight: 300; }

.text-gradient {
  background: linear-gradient(110deg, var(--gold-light) 10%, var(--gold-mid) 50%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold); /* Fallback to prevent invisible text */
  display: inline-block;
  font-weight: 500;
}
.text-gold { color: var(--gold) !important; font-weight: 500; }

.kicker{display:flex;align-items:center;gap:12px;font-family:var(--sans);font-size:10px;letter-spacing:0.3em;text-transform:uppercase;color:rgba(255,255,255,0.4);margin-bottom:24px; font-weight: 600;}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }

.s-pad{padding:160px 0}
.mt-large { margin-top: 100px; }
.s-title{font-weight:300;font-size:clamp(40px,6vw,84px);line-height:0.9;letter-spacing:-0.04em;color:var(--stone);margin:0;max-width:20ch;}

/* --- Nav --- */
.nav{position:fixed;top:0;left:0;right:0;z-index:80;min-height:92px;padding:24px 56px;display:flex;align-items:center;justify-content:space-between;transition:all .4s ease;}
.nav.is-stuck{min-height:76px;padding-top:18px;padding-bottom:18px;background:rgba(5,5,5,0.8);backdrop-filter:saturate(150%) blur(18px);border-bottom:1px solid rgba(255,255,255,0.05)}
.nav-brand img{height:34px;display:block}
.nav-links{display:flex;gap:48px}
.nav-links a{font-size:13px;letter-spacing:0.02em;color:rgba(244,242,236,0.8);font-weight:400; transition: color 0.3s;}
.nav-links a:hover { color: var(--gold); }
.nav-cta{font-size:11px;letter-spacing:0.2em;text-transform:uppercase;padding:12px 24px;border:1px solid rgba(251, 191, 36, 0.4);color:var(--gold);border-radius:999px;font-weight:600; transition: all 0.3s;}
.nav-cta:hover { background: var(--gold); color: var(--ink); }

/* --- HERO & WebGL --- */
.hero{position:relative;min-height:100vh;overflow:hidden;display:flex;align-items:flex-end;padding:0 0 80px;background:var(--ink)}
#webgl-container { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#webgl-container canvas { width: 100%; height: 100%; display: block; opacity: 0.85; }
.hero-vignette{position:absolute;inset:0;z-index:2;pointer-events:none; background: linear-gradient(180deg,rgba(5,5,5,0.2) 0%,rgba(5,5,5,0.7) 60%,rgba(5,5,5,1) 100%);}
.hero-content{position:relative;z-index:3;width:100%}
.hero-content .wrap{display:grid;grid-template-columns:minmax(0,760px) 1fr;gap:72px;align-items:end}

.hero h1{font-family: var(--sans); font-weight:300;font-size:clamp(52px,8vw,120px);line-height:0.9;letter-spacing:-0.04em;margin:0;color:var(--stone);}

.hero-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;margin-top:40px;max-width:800px;border-top:1px solid rgba(255,255,255,0.1);padding-top:32px}
.hero-meta .cell{display:flex;flex-direction:column;gap:12px}
.hero-meta .k{font-family:var(--sans);font-size:10px;letter-spacing:0.3em;text-transform:uppercase;color:rgba(255,255,255,0.4); font-weight:600;}
.hero-meta .v{font-size:16px;color:rgba(255,255,255,0.8);line-height:1.625;font-weight:300; max-width:38ch;}

.hero-side{display:flex;flex-direction:column;gap:24px;align-items:flex-end;min-width:280px;align-self:end}
.hero-readout{font-family:var(--mono);font-size:10px;letter-spacing:.2em;color:rgba(244,242,236,0.5);text-align:right;line-height:1.8;text-transform:uppercase}
.hero-readout .gold{color:var(--gold)}
.hero-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;}
.btn{display:inline-flex;align-items:center;gap:12px;padding:16px 28px;font-size:12px;letter-spacing:0.1em;font-weight:600;border-radius:999px; text-transform:uppercase; transition: background .3s, border .3s; will-change: transform;}
.btn-primary{background:var(--gold);color:var(--ink)}
.btn-primary:hover{background:var(--gold-mid);}

/* --- ABOUT SECTION --- */
.about{background:var(--ink); position:relative;}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start;}
.about-text p{font-size:18px;color:rgba(255,255,255,0.7);line-height:1.6;margin:0 0 24px 0;font-weight:300;}
.about-text p:last-child{margin-bottom:0;}
@media(max-width:980px){.about-grid{grid-template-columns:1fr;gap:40px;}}

/* --- MANIFESTO SECTION --- */
.manifesto { background: var(--ink); }
.manifesto-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.manifesto-row.reverse { grid-template-columns: 1.2fr 1fr; }
.manifesto-row.reverse .manifesto-text { order: 2; }
.manifesto-row.reverse .manifesto-visual { order: 1; }
.massive-title { font-size: clamp(50px, 7vw, 110px); font-weight: 300; line-height: 0.9; letter-spacing: -0.04em; margin: 0 0 24px 0; }
.manifesto-desc { font-size: 18px; line-height: 1.625; color: rgba(255,255,255,0.6); font-weight: 300; max-width: 450px; }
.manifesto-desc.small { font-size: 14px; color: rgba(255,255,255,0.4); margin-top: 24px; }
.img-mask { border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.img-mask img { width: 100%; height: auto; object-fit: cover; filter: contrast(1.1) brightness(0.9); }
@media(max-width: 980px) { .manifesto-row, .manifesto-row.reverse { grid-template-columns: 1fr; gap: 40px; } .manifesto-row.reverse .manifesto-text { order: 1; } .manifesto-row.reverse .manifesto-visual { order: 2; } }

/* --- PLATFORM --- */
.cap-section{background:var(--ink);}
.cap-grid{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:minmax(120px,auto);gap:16px;margin-top:80px; position:relative;}
.cap{background:var(--graphite); border:1px solid rgba(255,255,255,0.05);border-radius:24px;padding:40px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;transition:border-color .4s;}

.cap::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(251,191,36,0.25), transparent 40%); transition: opacity 0.4s ease; }
.cap:hover::before { opacity: 1; }

.cap .label{font-family:var(--sans);font-size:10px;font-weight:600;letter-spacing:.25em;text-transform:uppercase;color:var(--gold);display:flex;align-items:center;gap:12px}
.cap h3{font-size:28px;line-height:1.2;font-weight:400;letter-spacing:-0.02em;margin:16px 0 12px;color:var(--stone)}
.cap p{font-size:15px;color:rgba(255,255,255,0.5);line-height:1.6;margin:0;max-width:40ch}

.cap-img{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;opacity:0.3;filter:grayscale(40%);transition:opacity .6s ease, filter .6s ease, transform 10s linear; pointer-events:none;}
.cap:hover .cap-img{opacity:0.9; filter:grayscale(0%); transform:scale(1.05);}
.cap > *:not(.cap-img){position:relative;z-index:2}
.cap.span4{grid-column:span 4}
.cap.span6{grid-column:span 6}
.cap.span8{grid-column:span 8}
.cap.tall{grid-row:span 2}
@media(max-width:980px){.cap.span4,.cap.span6,.cap.span8{grid-column:span 12}.cap.tall{grid-row:auto}}

/* --- APPLICATIONS (NATIVE HORIZONTAL SCROLL) --- */
.apps-h-wrapper { overflow: hidden; position: relative; background: var(--ink); padding: 80px 0; }
.apps-h-track { display: flex; width: 500vw; height: 85vh; align-items: center; } /* 1 Intro + 4 Panels = 500vw */

.app-panel {
  width: 100vw; 
  height: 100%; 
  flex-shrink: 0;
  display: flex; 
  flex-direction: column; 
  justify-content: center;
  padding: 0 10vw;
  background-size: cover; 
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* Gradient overlay to ensure text is ALWAYS legible over images */
.app-panel::before {
  content: ""; 
  position: absolute; 
  inset: 0;
  background: linear-gradient(to right, rgba(5,5,5,0.95) 20%, rgba(5,5,5,0.7) 60%, rgba(5,5,5,0.2) 100%);
  z-index: 1;
}

.intro-panel { background: var(--ink); }
.intro-panel::before { display: none; } /* No gradient on intro */

.app-content { position: relative; z-index: 2; max-width: 700px; }
.app-panel .app-num { font-family: var(--sans); font-weight:600; color: var(--gold); font-size: 12px; margin-bottom: 24px; letter-spacing: 0.25em;}
.app-panel .app-name { font-size: clamp(40px, 6vw, 72px); font-weight: 300; color: var(--stone); margin-bottom: 24px; line-height: 1; letter-spacing:-0.04em;}
.app-panel .app-desc { font-size: 22px; font-weight: 300; color: rgba(255,255,255,0.8); line-height: 1.6;}
.scroll-instruction { font-size: 14px; color: var(--gold); margin-top: 40px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7;}

@media(max-width: 800px) { 
  .app-panel { padding: 0 8vw; }
  .app-panel::before { background: linear-gradient(to bottom, rgba(5,5,5,0.95) 40%, rgba(5,5,5,0.4) 100%); }
}

/* --- ARCHITECTURE --- */
.approach{background:var(--ink);overflow:hidden}
.approach-grid{margin-top:100px;display:grid;grid-template-columns:repeat(5,1fr);gap:0;border-top:1px solid rgba(255,255,255,0.1);border-bottom:1px solid rgba(255,255,255,0.1);position:relative}
.approach-grid::after{content:"";position:absolute;top:-2px;left:0;width:calc(var(--progress,0)*1%);height:2px;background:var(--gold);}
.ap-step{padding:48px 32px;border-right:1px solid rgba(255,255,255,0.05);position:relative}
.ap-step:last-child{border-right:0}
.ap-step .num{font-family:var(--sans);font-weight:600;font-size:11px;letter-spacing:.25em;color:var(--gold);display:flex;align-items:center;gap:12px;margin-bottom:32px}
.ap-step h4{font-size:32px;font-weight:300;letter-spacing:-0.03em;line-height:1.1;margin:0 0 16px;}
.ap-step p{font-size:14px;color:rgba(255,255,255,0.5);line-height:1.6;margin:0}
@media(max-width:920px){.approach-grid{grid-template-columns:1fr}.ap-step{border-right:0;border-bottom:1px solid rgba(255,255,255,0.05)}.ap-step:last-child{border-bottom:0}}

/* --- CONTACT --- */
.contact{background:var(--graphite);position:relative;overflow:hidden}
.contact-bg{position:absolute;inset:0;z-index:0;opacity:.5}
.contact-bg canvas{width:100%;height:100%;display:block}
.contact .wrap{position:relative;z-index:1}
.contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:60px;margin-top:60px;align-items:stretch;}
@media(max-width:980px){.contact-grid{grid-template-columns:1fr;gap:48px}}

.contact-info { display: flex; flex-direction: column; justify-content: flex-start; }
.contact-meta{display:flex;flex-direction:column;gap:16px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px;}
.contact-meta .row{display:grid;grid-template-columns:80px 1fr;gap:16px;align-items:baseline;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,0.05)}
.contact-meta .k{font-family:var(--sans);font-weight:600;font-size:10px;letter-spacing:.25em;text-transform:uppercase;color:rgba(255,255,255,0.4)}
.contact-meta .v{font-size:15px;color:rgba(255,255,255,0.8)}

.form{display:grid;grid-template-columns:1fr 1fr;gap:24px;border:1px solid rgba(255,255,255,0.08);border-radius:24px;background:rgba(255,255,255,0.02); padding: 48px;}
.field{display:flex;flex-direction:column;gap:12px}
.field.full{grid-column:1/-1}
.field label{font-family:var(--sans);font-weight:600;font-size:10px;letter-spacing:.25em;text-transform:uppercase;color:rgba(255,255,255,0.4)}
.field input,.field textarea{background:rgba(0,0,0,0.4);border:1px solid rgba(255,255,255,0.1);border-radius: 12px; padding:16px;font-family: var(--sans); font-size: 15px;color:var(--stone);outline:none;transition:border-color .3s}
.field input:focus,.field textarea:focus{border-bottom-color:var(--gold)}
.field textarea{min-height:140px;resize:vertical}
.submit{grid-column:1/-1;display:flex;justify-content:flex-end;margin-top:16px}
.btn-submit{background:var(--gold);color:var(--ink);padding:16px 32px;border-radius:999px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:600;display:inline-flex;align-items:center; transition: background .3s;}
.btn-submit:hover {background:var(--gold-mid);}

/* --- FOOTER --- */
.footer{padding:80px 0 40px;background:var(--ink);color:rgba(255,255,255,0.4);border-top:1px solid rgba(255,255,255,0.05)}
.footer-bot{padding-top:32px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;font-family:var(--mono);font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,255,255,0.3)}

@media(prefers-reduced-motion:reduce){ * { transition: none !important; animation: none !important; } }