/* ===== Base ===== */
:root{
  --bg: #0b0c10;
  --bg2:#0f1118;
  --card:#121524;
  --text:#e9ecf1;
  --muted:#a4abbb;
  --line: rgba(255,255,255,.10);
  --shadow: 0 18px 60px rgba(0,0,0,.55);

  --accent: #7c5cff;
  --accent2:#23d5ab;

  --radius: 18px;
  --max: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% 0%, rgba(124,92,255,.18), transparent 60%),
              radial-gradient(900px 500px at 95% 10%, rgba(35,213,171,.12), transparent 60%),
              var(--bg);
  color: var(--text);
}

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

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Topbar ===== */
.topbar{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(11,12,16,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}
.brand img {
  height: 64px; 
  width: auto;
  display: block;
}

.nav{
  display:flex;
  gap: 16px;
  align-items:center;
}
.nav a{
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  transition: 160ms ease;
}
.nav a:hover{ color: var(--text); background: rgba(255,255,255,.06); }
.nav .pill{
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 750;
  letter-spacing: .2px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border 180ms ease, opacity 180ms ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); opacity: .92; }

.btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#0b0c10;
}
.btn-ghost{
  background: rgba(255,255,255,.06);
  border-color: var(--line);
  color: var(--text);
}
.btn-submit{ margin-top: 10px; width: 180px; }

/* ===== Hero ===== */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  padding-top: 76px; /* for fixed topbar */
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

/* @media (max-width: 768px){
  .hero{
    min-height: 90vh;
  }
} */

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.70), rgba(0,0,0,.40)),
    radial-gradient(900px 500px at 20% 10%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(35,213,171,.12), transparent 60%);
}
.hero-inner{
  position:relative;
  width:100%;
  padding: 40px 0 80px;
}

.hero-top-actions{
  position:absolute;
  top: 22px;
  right: 0;
  display:flex;
  gap: 10px;
}
.hero-content{
  max-width: 760px;
  margin: clamp(240px, 36vh, 400px) auto 0;
  text-align: center;
}

.hero h1{
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.6px;
}
.hero p{
  color: rgba(233,236,241,.82);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  margin: 0 0 20px;
  max-width: 58ch;
}
.hero-cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Hero CTA buttons ===== */
.hero-cta .btn{
  padding: 18px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;

  background: transparent;
  color: #fff;
  border: 2px solid #fff;

  border-radius: 999px;
}

/* Hover effect (subtle, not cheesy) */
.hero-cta .btn:hover{
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* Optional: slightly stronger primary */
.hero-cta .btn-primary{
  border-width: 2px;
}

.hero-cta .btn-primary{
  background: rgba(255,255,255,0.12);
}

/* Mobile tweak */
@media (max-width: 640px){
  .hero-cta .btn{
    padding: 16px 28px;
    font-size: 0.95rem;
  }
}


/* scroll hint */
.scroll-hint{
  position:absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 34px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.04);
}
.scroll-hint span{
  width: 6px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  animation: bob 1.3s infinite ease-in-out;
}
@keyframes bob{
  0%,100%{ transform: translateY(-5px); opacity:.5; }
  50%{ transform: translateY(6px); opacity:1; }
}

/* ===== Sections ===== */
.section{
  padding: 90px 0;
}
.section-alt{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head{
  margin-bottom: 26px;
}
.section h2{
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.section .muted{
  font-size: 1.1rem;
  line-height: 1.7;
}


.muted{ color: var(--muted); }

/* ===== About (header centered) ===== */
/* .section-head-center{
  text-align: center;
  max-width: 820px;
  margin: 0 auto 32px;
} */



/* ===== Team side-by-side ===== */
.team-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: start;
}

.team-card{
  max-width: 460px;
}

.team-card--alec{
  justify-self: end;
}

.team-card--sunny{
  justify-self: start;
}

.team-card img{
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}

/* About section header sizing */
#about .section-head-center h2{
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin-bottom: 14px;
}

#about .section-head-center p{
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 80ch;
  margin: 0 auto 2rem;
}


#about{
  padding-bottom: 30px;
}



/* Mobile */
@media (max-width: 920px){
  .team-grid{
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .team-card--alec,
  .team-card--sunny{
    justify-self: center;
  }
}

/* ===== Approach (tight + stylized) ===== */

.section-tight{
  padding-top: 32px;   /* pulls it closer to the photos above */
  padding-bottom: 48px;
}

.approach-intro{
  margin: 0 auto 0;    /* removes extra bottom spacing from the header block */
  max-width: min(900px, 92vw);
}

.approach-kicker{
  margin: 10px 0 14px;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.approach-quote{
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
}

.approach-body{
  margin: 0 auto;
  max-width: 70ch;
  line-height: 1.7;
}

/* Mobile tightening */
@media (max-width: 640px){
  .section-tight{
    padding-top: 22px;
    padding-bottom: 36px;
  }
  .approach-quote{
    font-size: 1.45rem;
  }
}





#services .container{
  width: min(1240px, calc(100% - 40px));
}

/* ===== Services cards ===== */
/* Services grid */
.cards{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

/* Each service is a unit: card + text below */
.service-item{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-text{
  margin-top: 14px;
  max-width: 420px;
  text-align: center;
}

.service-text h3{
  margin: 0 0 6px;
  font-size: 1.25rem;
  letter-spacing: -0.2px;
}

.service-text p{
  margin: 0;
  color: rgba(233,236,241,.78);
  font-size: .98rem;
  line-height: 1.5;
}

/* Optional: hover ties text+card together */
.service-item:hover .card{
  border-color: rgba(124,92,255,.35);
}

/* Force uniform card size */
#services .card{
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 42px rgba(0,0,0,.45);
}

#services .card-media{
  aspect-ratio: 16 / 9;
  width: 100%;
}

/* #services .card{
  border: 1px solid var(--line);
  background: rgba(18,21,36,.6);
} */

#services .section-head{
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}


 #services .service-item:hover .card{
  transform: translateY(-2px);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  border-color: rgba(124,92,255,.35);
  transition: 180ms ease;
}



#services .card-media img,
#services .card-media video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.services-intro{
  max-width: min(900px, 92vw);
  margin: 0 auto 32px;
}

.services-kicker{
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 14px;
}

.services-quote{
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 18px;
  color: var(--text);
}

.services-context{
  margin: 0 0 26px;
}

.services-body{
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 18px;
}

@media (max-width: 640px){
  .services-body{ font-size: 1rem; }
  .services-quote{ font-size: 1.35rem; }
}


/* Fix anchor scrolling under fixed topbar */
[id]{
  scroll-margin-top: 96px;
}

/* Responsive */
@media (max-width: 920px){
  .cards{ grid-template-columns: 1fr; }
}





/* ===== Portfolio ===== */
.portfolio-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.portfolio-item{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(18,21,36,.55);
  transition: transform 180ms ease, border 180ms ease, background 180ms ease;
}
.portfolio-item:hover{
  transform: translateY(-2px);
  border-color: rgba(35,213,171,.35);
  background: rgba(18,21,36,.75);
}
.portfolio-thumb{
  aspect-ratio: 16 / 10;
  display:grid;
  place-items:center;
  color: rgba(233,236,241,.55);
  font-weight: 800;
  letter-spacing:.3px;
  background: radial-gradient(700px 300px at 20% 20%, rgba(124,92,255,.18), transparent 60%),
              radial-gradient(600px 260px at 80% 40%, rgba(35,213,171,.12), transparent 60%),
              rgba(255,255,255,.02);
}
.portfolio-cap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  gap: 12px;
}
.tag{
  font-size: .78rem;
  color: rgba(233,236,241,.8);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

/* ===== Contact ===== */
/* ===== Contact ===== */

.contact-wrap{
  display: grid;
  gap: 28px;
}

/* Centered section header */
.section-head-center{
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.section-head-center h2{
  margin-bottom: 10px;
}
.section-head-center p{
  font-size: 1.05rem;
}

/* Outer panel */
.contact-panel{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18,21,36,.45);
  box-shadow: 0 14px 48px rgba(0,0,0,.25);
  padding: 32px;
}

/* Two-column layout */
.contact-grid{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

/* LEFT: info */
.contact-info{
  padding-top: 6px;
}

.contact-info-item{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
}

.contact-info-item + .contact-info-item{
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 16px;
  padding-top: 22px;
}

.contact-ico{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-size: 1.05rem;
}

.contact-kicker{
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(233,236,241,.6);
  margin-bottom: 6px;
}

.contact-link{
  font-weight: 700;
  color: rgba(233,236,241,.95);
}
.contact-link:hover{
  text-decoration: underline;
}

.contact-small{
  margin-top: 26px;
  font-size: .95rem;
  line-height: 1.5;
}

/* RIGHT: form */
.contact-form{
  display: grid;
  gap: 22px;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-row.single{
  grid-template-columns: 1fr;
}

label span{
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: rgba(233,236,241,.85);
}

input, textarea{
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px;
  color: var(--text);
}

textarea{
  resize: vertical;
}

input:focus, textarea:focus{
  border-color: rgba(124,92,255,.6);
  box-shadow: 0 0 0 4px rgba(124,92,255,.15);
}

/* Message spacing */
.message-block{
  margin-top: 6px;
}

/* Button: match hero pill buttons */
.btn-pill{
  border-radius: 999px;
  padding: 14px 34px;
  font-weight: 800;
  letter-spacing: .02em;
}

.btn-outline{
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.85);
}
.btn-outline:hover{
  background: rgba(255,255,255,.08);
}

.form-alert{
  display:none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(233,236,241,.92);
}

.form-alert.is-error{
  display:block;
  border-color: rgba(255,90,90,.28);
  background: rgba(255,90,90,.08);
}

.form-alert.is-success{
  display:block;
  border-color: rgba(80,200,140,.28);
  background: rgba(80,200,140,.08);
}

.field-error{
  display:block;
  margin: 8px 2px 0;
  font-size: .92rem;
  line-height: 1.2;
  color: rgba(255,150,150,.95);
  min-height: 1.2em; /* keeps layout stable */
}

.has-error input,
.has-error textarea{
  border-color: rgba(255,90,90,.55);
  box-shadow: 0 0 0 4px rgba(255,90,90,.10);
}


/* Responsive */
@media (max-width: 920px){
  .contact-panel{ padding: 22px; }
  .contact-grid{ grid-template-columns: 1fr; gap: 32px; }
}




/* ===== Footer ===== */
.footer{
  padding: 22px 0;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.25);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

/* ===== Reveal animation ===== */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 920px){
  .about-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .portfolio-grid{ grid-template-columns: 1fr; }
  .hero-top-actions{ position: static; margin-top: 10px; justify-content:flex-end; }
}
@media (max-width: 640px){
  .nav{ display:none; } /* simple: hide links on tiny screens */
  .form-row{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){

  .section h2{
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .section .muted{
    font-size: 1rem;
    line-height: 1.6;
  }

  .section-head-center{
    margin-bottom: 48px;
  }
}


#approach .approach-quote{
  font-size: clamp(2rem, 3.5vw, 2.5rem) !important;
  line-height: 1.15 !important;
}


/* ===== Mobile spacing fixes: About → Approach → Services ===== */
@media (max-width: 640px){

  /* Make all sections less tall on phones */
  .section{
    padding: 56px 0;
  }

  /* About: remove extra space below the team photos */
  #about{
    padding-bottom: 14px; /* was 30px (and also inherited big .section padding) */
  }

  .team-grid{
    gap: 28px;            /* was 48px on mobile */
  }

  /* Approach: pull it up closer to the photos + reduce bottom spacing */
  #approach.section-tight{
    padding-top: 10px;    /* was 22px */
    padding-bottom: 28px; /* was 36px */
  }

  /* If the approach block itself has extra space, tighten it */
  .approach-intro{
    margin-top: 0;
  }
}

