/* ==========================================================================
   CONTENT CONNECT — Global Stylesheet
   Design tokens, layout primitives, shared components.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root{
  --black-950: #050505;
  --black-900: #0A0A0A;
  --black-800: #111111;
  --black-700: #181818;
  --grey-600: #2A2A2A;
  --grey-500: #4A4A4A;
  --grey-400: #7A7A7A;
  --grey-300: #A6A6A6;
  --off-white: #F5F5F5;
  --white: #FFFFFF;
  --gold: #C6A15B;
  --gold-dim: rgba(198,161,91,0.35);

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1280px;
  --gutter: clamp(24px, 5vw, 64px);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --ease-out: cubic-bezier(.16,.8,.28,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);

  --nav-h: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--black-950);
  color:var(--off-white);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button, input, textarea, select{ font-family:inherit; }
h1,h2,h3,h4,p{ margin:0; }

::selection{ background:var(--gold-dim); color:var(--white); }

/* Visible focus state for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:1px solid var(--gold);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Grain texture overlay ---------- */
.grain{
  position:fixed; inset:0; z-index:3; pointer-events:none;
  opacity:0.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 3D canvas ---------- */
#bg-canvas{
  position:fixed; inset:0; z-index:0;
  width:100%; height:100%;
  display:block;
}
.bg-overlay{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(5,5,5,0) 0%, rgba(5,5,5,0.55) 60%, rgba(5,5,5,0.92) 100%);
}

/* ---------- Layout helpers ---------- */
.container{
  max-width:var(--container);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}
main{ position:relative; z-index:2; }
section{ position:relative; padding:clamp(72px, 10vw, 160px) 0; }
.section-tight{ padding:clamp(48px, 6vw, 96px) 0; }

.eyebrow{
  font-size:0.72rem;
  letter-spacing:0.16em;
  color:var(--grey-300);
  font-weight:500;
}
.eyebrow .dot{ color:var(--gold); margin:0 0.5em; }

h1, .h1{
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(2.8rem, 7vw, 6rem);
  line-height:0.98;
  letter-spacing:-0.01em;
  color:var(--white);
}
h2, .h2{
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(2rem, 4.2vw, 3.4rem);
  line-height:1.05;
  letter-spacing:-0.01em;
  color:var(--white);
}
h3, .h3{
  font-family:var(--font-display);
  font-weight:500;
  font-size:clamp(1.35rem, 2.2vw, 1.8rem);
  line-height:1.2;
  color:var(--white);
}
.lede{
  font-size:clamp(1.05rem, 1.6vw, 1.3rem);
  color:var(--grey-300);
  max-width:640px;
  font-weight:400;
}
.body-copy{ color:var(--grey-300); max-width:60ch; }

.text-gold{ color:var(--gold); }
.text-grey{ color:var(--grey-400); }

.divider{
  height:1px;
  width:100%;
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0) 100%);
}

/* ---------- Buttons ---------- */
.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px 30px;
  border-radius:999px;
  font-size:0.92rem;
  font-weight:500;
  letter-spacing:0.01em;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform 0.4s var(--ease-out), background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--off-white);
  color:var(--black-950);
}
.btn-primary:hover{ background:var(--white); transform:translateY(-2px); }
.btn-outline{
  background:transparent;
  color:var(--off-white);
  border-color:rgba(255,255,255,0.22);
}
.btn-outline:hover{
  border-color:var(--gold);
  color:var(--gold);
  transform:translateY(-2px);
}
.btn-sm{ padding:12px 22px; font-size:0.82rem; }
.btn-group{ display:flex; gap:16px; flex-wrap:wrap; }

/* Magnetic wrapper (JS adds transform) */
.magnetic{ will-change:transform; }

/* ---------- Navigation ---------- */
.navbar{
  position:fixed; top:0; left:0; right:0; z-index:100;
  height:var(--nav-h);
  display:flex; align-items:center;
  background:rgba(5,5,5,0);
  border-bottom:1px solid rgba(255,255,255,0);
  transition:background 0.5s var(--ease-in-out), border-color 0.5s ease, backdrop-filter 0.5s ease;
}
.navbar.is-scrolled{
  background:rgba(8,8,8,0.62);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  border-bottom:1px solid rgba(255,255,255,0.07);
}
.nav-inner{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav-logo{
  display:flex; flex-direction:column;
  font-family:var(--font-display);
  font-size:0.95rem;
  letter-spacing:0.14em;
  line-height:1.15;
  font-weight:500;
  color:var(--white);
}
.nav-logo span:last-child{ color:var(--grey-300); }

.nav-links{
  display:flex;
  align-items:center;
  gap:2.1vw;
}
.nav-link{
  position:relative;
  font-size:0.88rem;
  color:var(--grey-300);
  padding:6px 0;
  transition:color 0.3s ease;
}
.nav-link::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width:0; height:1px;
  background:var(--gold);
  transition:width 0.35s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active{ color:var(--white); }
.nav-link:hover::after, .nav-link.is-active::after{ width:100%; }

.nav-cta{ margin-left:1.2vw; }

.nav-right{ display:flex; align-items:center; gap:2.4vw; }

.hamburger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:28px; height:22px;
  background:none; border:none; cursor:pointer;
  z-index:110;
}
.hamburger span{
  display:block; height:1px; width:100%;
  background:var(--off-white);
  transition:transform 0.4s var(--ease-in-out), opacity 0.3s ease;
}
.hamburger.is-open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2){ opacity:0; }
.hamburger.is-open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

.mobile-menu{
  position:fixed; inset:0; z-index:99;
  background:rgba(6,6,6,0.98);
  backdrop-filter:blur(20px);
  display:flex; flex-direction:column;
  align-items:flex-start; justify-content:center;
  gap:22px;
  padding:0 var(--gutter);
  transform:translateY(-100%);
  opacity:0;
  transition:transform 0.55s var(--ease-in-out), opacity 0.4s ease;
  pointer-events:none;
}
.mobile-menu.is-open{ transform:translateY(0); opacity:1; pointer-events:auto; }
.mobile-menu .nav-link{ font-size:1.9rem; color:var(--off-white); font-family:var(--font-display); }
.mobile-menu .btn{ margin-top:16px; }

/* ---------- Page transition overlay ---------- */
.page-transition{
  position:fixed; inset:0; z-index:200;
  background:var(--black-950);
  display:flex; align-items:center; justify-content:center;
  transform:translateY(0);
  pointer-events:none;
}
.page-transition span{
  font-family:var(--font-display);
  font-size:1.4rem;
  letter-spacing:0.2em;
  color:var(--off-white);
  opacity:0;
}

/* ---------- Hero ---------- */
.hero{
  min-height:100vh;
  display:flex; flex-direction:column;
  justify-content:center;
  padding-top:var(--nav-h);
}
.hero-label{ margin-bottom:28px; }
.hero-headline{ max-width:1100px; }
.hero-headline .line{ display:block; overflow:hidden; }
.hero-headline .line span{ display:inline-block; }
.hero-sub{ margin-top:30px; }
.hero-actions{ margin-top:44px; }
.scroll-indicator{
  position:absolute; bottom:40px; left:var(--gutter);
  display:flex; align-items:center; gap:12px;
  font-size:0.75rem; letter-spacing:0.1em; color:var(--grey-400);
}
.scroll-line{
  width:1px; height:44px; background:rgba(255,255,255,0.2);
  position:relative; overflow:hidden;
}
.scroll-line::after{
  content:""; position:absolute; top:-100%; left:0; width:100%; height:100%;
  background:var(--gold);
  animation:scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine{ 0%{ top:-100%; } 50%{ top:0; } 100%{ top:100%; } }

/* ---------- Marquee / process strip ---------- */
.flow-strip{
  padding:56px 0;
  border-top:1px solid rgba(255,255,255,0.08);
  border-bottom:1px solid rgba(255,255,255,0.08);
  overflow:hidden;
}
.flow-track{
  display:flex; align-items:center; gap:36px;
  white-space:nowrap;
  font-family:var(--font-display);
  font-size:clamp(1.4rem, 3.4vw, 2.6rem);
  color:var(--grey-500);
  width:max-content;
}
.flow-track .arrow{ color:var(--gold); font-size:0.7em; }
.flow-track .step.is-lit{ color:var(--white); }

/* ---------- Section head ---------- */
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:32px; margin-bottom:64px; flex-wrap:wrap;
}

/* ---------- Service cards ---------- */
.service-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:1px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius-lg);
  overflow:hidden;
}
.service-card{
  position:relative;
  background:var(--black-900);
  padding:44px 40px;
  min-height:250px;
  display:flex; flex-direction:column; justify-content:space-between;
  transition:background 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  overflow:hidden;
}
.service-card::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(198,161,91,0.08), transparent 60%);
  opacity:0; transition:opacity 0.4s ease;
  pointer-events:none;
}
.service-card:hover::before{ opacity:1; }
.service-card:hover{ background:var(--black-800); transform:translateY(-6px); }
.service-num{
  font-family:var(--font-display);
  font-size:0.9rem;
  color:var(--gold);
  letter-spacing:0.05em;
}
.service-title{ margin-top:26px; }
.service-desc{
  margin-top:14px;
  color:var(--grey-400);
  font-size:0.95rem;
  max-width:36ch;
}
.service-more{
  margin-top:24px;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height 0.5s var(--ease-out), opacity 0.4s ease;
  font-size:0.88rem;
  color:var(--grey-300);
}
.service-card:hover .service-more{ max-height:120px; opacity:1; }

/* ---------- Stats ---------- */
.stats-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:1px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius-lg);
  overflow:hidden;
}
.stat-cell{ background:var(--black-900); padding:40px 28px; text-align:left; }
.stat-num{
  font-family:var(--font-display);
  font-size:clamp(2.4rem, 4.2vw, 3.6rem);
  color:var(--white);
}
.stat-label{ margin-top:8px; color:var(--grey-400); font-size:0.85rem; }

/* ---------- Value / why grid ---------- */
.value-list{ display:flex; flex-direction:column; }
.value-row{
  display:grid; grid-template-columns:60px 1fr 2fr;
  gap:24px;
  padding:30px 0;
  border-top:1px solid rgba(255,255,255,0.08);
  align-items:center;
}
.value-list .value-row:last-child{ border-bottom:1px solid rgba(255,255,255,0.08); }
.value-index{ font-family:var(--font-display); color:var(--gold); font-size:1rem; }

/* ---------- Cards (glass) ---------- */
.glass-card{
  background:linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border:1px solid rgba(255,255,255,0.09);
  border-radius:var(--radius-lg);
  backdrop-filter:blur(10px);
}

/* ---------- Work / portfolio ---------- */
.work-grid{ display:flex; flex-direction:column; gap:2px; }
.work-item{
  display:grid; grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
  padding:56px 0;
  border-top:1px solid rgba(255,255,255,0.08);
}
.work-grid .work-item:last-child{ border-bottom:1px solid rgba(255,255,255,0.08); }
.work-media{
  aspect-ratio:4/3;
  border-radius:var(--radius-md);
  overflow:hidden;
  background:linear-gradient(135deg, var(--black-700), var(--black-900));
  position:relative;
  display:flex; align-items:center; justify-content:center;
}
.work-media .work-tag{
  position:absolute; top:20px; left:20px;
  font-size:0.72rem; letter-spacing:0.1em; color:var(--grey-300);
  border:1px solid rgba(255,255,255,0.2); padding:6px 12px; border-radius:999px;
}
.work-media svg{ width:46%; opacity:0.35; }
.work-info .work-cat{ color:var(--gold); font-size:0.8rem; letter-spacing:0.08em; }
.work-info h3{ margin-top:14px; }
.work-info p{ margin-top:14px; color:var(--grey-400); max-width:42ch; }
.work-info .btn{ margin-top:26px; }
.work-item:nth-child(even) .work-media{ order:2; }

/* ---------- Social page ---------- */
.social-grid{
  display:grid; grid-template-columns:repeat(2, 1fr); gap:24px;
}
.social-card{
  padding:40px; display:flex; flex-direction:column; gap:18px;
}
.social-icon{ width:42px; height:42px; color:var(--gold); }
.social-handle{ color:var(--grey-400); font-size:0.9rem; }
.social-desc{ color:var(--grey-300); font-size:0.95rem; }

/* ---------- Pricing ---------- */
.currency-bar{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap;
  margin-bottom:56px;
}
.currency-select-wrap{ position:relative; }
.currency-select{
  appearance:none;
  background:var(--black-800);
  border:1px solid rgba(255,255,255,0.14);
  color:var(--off-white);
  padding:12px 40px 12px 16px;
  border-radius:999px;
  font-size:0.88rem;
  cursor:pointer;
}
.currency-select-wrap::after{
  content:"▾"; position:absolute; right:16px; top:50%; transform:translateY(-50%);
  color:var(--grey-400); pointer-events:none; font-size:0.75rem;
}
.currency-note{ color:var(--grey-500); font-size:0.82rem; max-width:340px; }

.budget-box{
  padding:40px; margin-bottom:64px;
}
.budget-top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:22px; flex-wrap:wrap; gap:10px;}
.budget-amount{ font-family:var(--font-display); font-size:clamp(1.8rem,3vw,2.6rem); color:var(--white); }
.budget-controls{ display:flex; align-items:center; gap:18px; }
.budget-step{
  width:42px; height:42px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.18);
  background:transparent; color:var(--off-white);
  font-size:1.2rem; cursor:pointer;
  transition:border-color 0.3s ease, color 0.3s ease;
}
.budget-step:hover{ border-color:var(--gold); color:var(--gold); }
.budget-slider{
  -webkit-appearance:none; appearance:none;
  width:100%; height:2px; background:rgba(255,255,255,0.16);
  border-radius:2px; margin:26px 0 14px;
}
.budget-slider::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:16px; height:16px; border-radius:50%;
  background:var(--gold); cursor:pointer;
  border:3px solid var(--black-950);
}
.budget-slider::-moz-range-thumb{
  width:16px; height:16px; border-radius:50%;
  background:var(--gold); cursor:pointer; border:3px solid var(--black-950);
}
.budget-manual{ display:flex; align-items:center; gap:10px; margin-top:18px; }
.budget-manual input{
  background:var(--black-950); border:1px solid rgba(255,255,255,0.14);
  color:var(--off-white); padding:10px 14px; border-radius:8px; width:180px;
}
.budget-manual label{ color:var(--grey-400); font-size:0.85rem; }

.plans-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
.plan-card{
  padding:44px 36px;
  display:flex; flex-direction:column;
  position:relative;
}
.plan-card.is-featured{ border-color:var(--gold-dim); }
.plan-card.is-featured::before{
  content:"Most chosen";
  position:absolute; top:24px; right:24px;
  font-size:0.68rem; letter-spacing:0.08em; color:var(--gold);
  border:1px solid var(--gold-dim); padding:5px 10px; border-radius:999px;
}
.plan-name{ font-size:0.85rem; letter-spacing:0.1em; color:var(--grey-300); }
.plan-desc{ margin-top:10px; color:var(--grey-400); font-size:0.9rem; min-height:44px; }
.plan-price{ font-family:var(--font-display); font-size:clamp(2rem,3vw,2.6rem); color:var(--white); margin-top:26px; }
.plan-price sub{ font-size:0.85rem; color:var(--grey-400); }
.plan-features{ margin-top:26px; display:flex; flex-direction:column; gap:12px; flex:1; }
.plan-features li{ font-size:0.9rem; color:var(--grey-300); padding-left:20px; position:relative; }
.plan-features li::before{ content:"—"; position:absolute; left:0; color:var(--gold); }
.plan-card .btn{ margin-top:32px; width:100%; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:64px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.field{ margin-bottom:22px; display:flex; flex-direction:column; gap:8px; }
.field label{ font-size:0.82rem; color:var(--grey-400); }
.field input, .field select, .field textarea{
  background:transparent;
  border:none; border-bottom:1px solid rgba(255,255,255,0.16);
  color:var(--off-white); padding:12px 2px;
  transition:border-color 0.3s ease;
  font-size:0.98rem;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--gold); outline:none; }
.field select{ appearance:none; }
.field select option{ background:var(--black-800); }
.field textarea{ resize:vertical; min-height:110px; }
.form-status{ margin-top:18px; font-size:0.88rem; color:var(--grey-400); min-height:1.4em; }

.contact-info{ display:flex; flex-direction:column; gap:0; }
.info-row{ display:flex; flex-direction:column; gap:6px; padding:24px 0; border-top:1px solid rgba(255,255,255,0.08); }
.contact-info .info-row:last-child{ border-bottom:1px solid rgba(255,255,255,0.08); }
.info-label{ font-size:0.75rem; letter-spacing:0.08em; color:var(--grey-500); }
.info-value{ font-size:1.05rem; color:var(--off-white); }

/* ---------- Footer ---------- */
footer{
  position:relative; z-index:2;
  border-top:1px solid rgba(255,255,255,0.08);
  padding:80px 0 32px;
}
.footer-top{
  display:flex; justify-content:space-between; gap:48px; flex-wrap:wrap;
  padding-bottom:56px;
}
.footer-brand{ max-width:340px; }
.footer-brand .nav-logo{ font-size:1.1rem; margin-bottom:16px; }
.footer-tagline{ color:var(--grey-400); font-size:0.95rem; }
.footer-cols{ display:flex; gap:72px; flex-wrap:wrap; }
.footer-col h4{ font-size:0.78rem; letter-spacing:0.1em; color:var(--grey-500); margin-bottom:18px; }
.footer-col a{ display:block; color:var(--grey-300); font-size:0.92rem; padding:6px 0; transition:color 0.3s ease; }
.footer-col a:hover{ color:var(--gold); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:28px; border-top:1px solid rgba(255,255,255,0.08);
  color:var(--grey-500); font-size:0.82rem; flex-wrap:wrap; gap:12px;
}
.footer-socials{ display:flex; gap:18px; }
.footer-socials a{ color:var(--grey-400); transition:color 0.3s ease; }
.footer-socials a:hover{ color:var(--gold); }

/* ---------- Utilities for JS-driven reveals ---------- */
.reveal{ opacity:0; transform:translateY(28px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .nav-links, .nav-right .btn{ display:none; }
  .hamburger{ display:flex; }
  .service-grid{ grid-template-columns:1fr; }
  .stats-grid{ grid-template-columns:repeat(2, 1fr); }
  .social-grid{ grid-template-columns:1fr; }
  .plans-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; gap:48px; }
  .work-item{ grid-template-columns:1fr; }
  .work-item:nth-child(even) .work-media{ order:0; }
  .value-row{ grid-template-columns:40px 1fr; }
  .value-row > .body-copy{ grid-column:1 / -1; }
  .footer-top{ flex-direction:column; gap:40px; }
}
@media (max-width: 620px){
  .form-row{ grid-template-columns:1fr; }
  .stats-grid{ grid-template-columns:1fr 1fr; }
  .currency-bar{ flex-direction:column; align-items:flex-start; }
  section{ padding:64px 0; }
  .budget-manual input{ width:130px; }
}

html, body{ max-width:100%; overflow-x:hidden; }
