:root{
  --black:#000000;
  --white:#ffffff;
  --grey:#777777;
  --line:#cccccc;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;scroll-padding-top:90px;}
body{
  font-family:'Roboto',Helvetica,Arial,sans-serif;
  color:#222;
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:#000;color:#fff;padding:10px 18px;font-size:14px;
}
.skip-link:focus{left:0;}

/* ============ HEADER ============ */
header{
  background:var(--white);
  position:sticky;top:0;z-index:50;
  box-shadow:0 1px 0 rgba(0,0,0,.06);
  transition:box-shadow .25s ease;
}
header.scrolled{box-shadow:0 2px 14px rgba(0,0,0,.14);}
.header-inner{
  max-width:1300px;margin:0 auto;
  padding:18px 30px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.logo{display:flex;align-items:center;gap:2px;}
.logo img{height:44px;width:auto;}
.logo .logo-fallback{display:none;align-items:center;gap:6px;}
.logo.no-img .logo-fallback{display:flex;}
.logo.no-img img{display:none;}
.logo-mark{width:46px;height:34px;}
.logo-word{font-size:34px;font-weight:400;color:#111;letter-spacing:.5px;}

nav{display:flex;align-items:center;gap:34px;}
nav a{
  font-size:14px;font-weight:700;color:#303133;
  display:flex;align-items:center;gap:7px;
  padding:6px 0;letter-spacing:.2px;
  border-bottom:2px solid transparent;
  transition:color .15s ease;
}
nav a svg{width:15px;height:15px;flex:none;}
nav a:hover{color:#000;}
nav a.active{border-bottom-color:#000;}
.menu-btn{display:none;background:none;border:0;cursor:pointer;padding:6px;}
.menu-btn svg{width:26px;height:26px;}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress{
  position:fixed;top:0;left:0;z-index:100;
  width:100%;height:3px;
  background:var(--black);
  transform:scaleX(0);transform-origin:0 50%;
  pointer-events:none;
}

/* ============ HERO (Home) ============ */
.hero{
  background:var(--black);color:var(--white);
  padding:110px 30px 130px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:14px;
  background:linear-gradient(to right, transparent 0 33.33%, var(--white) 33.33% 66.66%, transparent 66.66%) bottom/100% 14px no-repeat;
}
.hero h1{
  font-size:clamp(34px,5.2vw,64px);
  font-weight:900;line-height:1.12;
  max-width:1150px;margin:0 auto 26px;
}
.hero p.sub{
  font-size:clamp(15px,1.4vw,18px);
  font-weight:400;color:#e8e8e8;
  max-width:1100px;margin:0 auto;
}
html.js .hero h1{animation:rise .7s ease both;}
html.js .hero p.sub{animation:rise .7s ease .15s both;}
html.js .hero .scroll-cue{animation:rise .7s ease .4s both;}
@keyframes rise{
  from{opacity:0;transform:translateY(26px);}
  to{opacity:1;transform:none;}
}
.scroll-cue{
  display:inline-flex;flex-direction:column;align-items:center;gap:8px;
  margin-top:56px;color:#fff;
  font-size:12px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;
  opacity:.85;transition:opacity .2s ease;
}
.scroll-cue:hover{opacity:1;}
.scroll-cue svg{width:22px;height:22px;animation:cue-bob 1.7s ease-in-out infinite;}
@keyframes cue-bob{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(7px);}
}
.cards{
  max-width:1180px;margin:70px auto 0;
  display:grid;grid-template-columns:repeat(3,1fr);gap:36px;
  text-align:center;
}
.card{
  border:1px solid var(--white);
  padding:42px 30px 46px;
  transition:box-shadow .2s ease, transform .2s ease;
}
.card:hover{box-shadow:0 6px 24px rgba(255,255,255,.18);transform:translateY(-3px);}
.card svg{width:52px;height:52px;margin:0 auto 18px;fill:var(--white);}
.card h2{font-size:24px;font-weight:700;margin-bottom:14px;}
.card p{font-size:17px;line-height:1.55;color:#f0f0f0;}

/* ============ REVEAL ON SCROLL ============ */
html.js .reveal{
  opacity:0;transform:translateY(26px);
  transition:opacity .65s ease,transform .65s ease;
  transition-delay:var(--reveal-delay,0s);
}
html.js .reveal.in{opacity:1;transform:none;}
/* Cards animate transform on hover — once revealed, hand transform back to hover */
html.js .card.reveal.in{transition:box-shadow .2s ease, transform .2s ease;}

/* ============ PORTFOLIO SECTION ============ */
.portfolio-section{padding:70px 30px 60px;background:var(--white);}
.portfolio-section h1,
.portfolio-section h2{
  text-align:center;color:#000;
  font-size:clamp(28px,3.4vw,42px);font-weight:900;
  margin-bottom:20px;
}
.section-intro{
  text-align:center;color:#555;
  max-width:720px;margin:0 auto 44px;
  font-size:17px;line-height:1.6;
}
.embed-wrap{max-width:1300px;margin:0 auto;}
.airtable-embed{background:transparent;border:1px solid var(--line);width:100%;}

/* ============ MISSION ============ */
.mission{max-width:1200px;margin:0 auto;padding:60px 30px 70px;}
.mission-row{display:grid;grid-template-columns:1fr 2fr;gap:50px;align-items:center;}
.mission-row.flip{grid-template-columns:2fr 1fr;}
.statement{
  font-size:clamp(24px,3vw,38px);font-weight:900;line-height:1.25;
  color:#222;margin:18px 0;
}
.mission-img{display:flex;align-items:center;justify-content:center;}
.mission-img img{max-width:100%;height:auto;}
.img-fallback{
  display:none;width:100%;aspect-ratio:1/1;max-width:340px;
  align-items:center;justify-content:center;
  border:2px solid #000;font-size:90px;
}
.mission-img.no-img img{display:none;}
.mission-img.no-img .img-fallback{display:flex;}
.mission-sep{border:0;border-top:5px solid #000;margin:55px 0;}

/* ============ WORK WITH US ============ */
.work{max-width:1200px;margin:0 auto;padding:60px 30px 70px;}
.work h1{
  text-align:center;color:#000;
  font-size:clamp(28px,3.4vw,42px);font-weight:900;
  margin-bottom:20px;
}

/* ============ BACK TO TOP ============ */
.to-top{
  position:fixed;right:22px;bottom:22px;z-index:90;
  width:46px;height:46px;border-radius:50%;
  background:var(--black);color:#fff;border:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.25);
  opacity:0;visibility:hidden;transform:translateY(12px);
  transition:opacity .25s ease,transform .25s ease,visibility .25s;
}
.to-top.show{opacity:1;visibility:visible;transform:none;}
.to-top:hover{transform:translateY(-2px);}
.to-top svg{width:20px;height:20px;}

/* ============ 404 ============ */
.not-found{
  min-height:100vh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;
  background:var(--black);color:var(--white);padding:40px 24px;
}
.not-found .nf-emoji{font-size:80px;margin-bottom:24px;}
.not-found h1{font-size:clamp(28px,4.5vw,52px);font-weight:900;margin-bottom:16px;}
.not-found .sub{color:#e8e8e8;font-size:17px;margin-bottom:36px;}
.not-found .nf-home{
  border:2px solid #fff;padding:13px 30px;
  font-weight:700;letter-spacing:.5px;
  transition:background .2s ease,color .2s ease;
}
.not-found .nf-home:hover{background:#fff;color:#000;}

/* ============ FOOTER ============ */
footer{
  background:var(--black);color:#ddd;text-align:center;
  padding:10px 30px;font-size:13px;
}
.footer-nav{
  display:flex;flex-wrap:wrap;justify-content:center;gap:10px 26px;
  padding:16px 0 4px;
}
.footer-nav a{color:#ddd;font-size:13px;font-weight:700;letter-spacing:.4px;transition:color .15s ease;}
.footer-nav a:hover{color:#fff;}
footer .footer-center{padding-top:10px;padding-bottom:10px;}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px){
  .cards{grid-template-columns:1fr;max-width:520px;}
  .mission-row,.mission-row.flip{grid-template-columns:1fr;}
  .mission-row.flip .mission-img{order:-1;}
  nav{
    position:absolute;top:100%;right:0;left:0;
    background:var(--white);flex-direction:column;gap:0;
    box-shadow:0 12px 24px rgba(0,0,0,.12);
    display:none;padding:8px 0;
  }
  nav.open{display:flex;}
  nav a{padding:14px 30px;width:100%;border-bottom:1px solid #eee;}
  .menu-btn{display:block;}
  .hero{padding:70px 22px 90px;}
  .to-top{right:16px;bottom:16px;}
}
@media (prefers-reduced-motion: reduce){
  *{transition:none !important;animation:none !important;}
  html{scroll-behavior:auto;}
  html.js .reveal{opacity:1;transform:none;}
  html.js .hero h1,html.js .hero p.sub,html.js .hero .scroll-cue{opacity:1;transform:none;}
}
a:focus-visible,button:focus-visible{outline:2px solid #000;outline-offset:3px;}
.hero a:focus-visible,.to-top:focus-visible,.not-found a:focus-visible{outline-color:#fff;}
