
:root{--bg:#fff;--fg:#0e0f12;--muted:#60656f;--line:#e9eaee;--shadow:0 10px 30px rgba(0,0,0,.06);--max:1100px;--radius:18px}
*{box-sizing:border-box}html,body{margin:0;padding:0}
body{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial; color:var(--fg); background:var(--bg); line-height:1.45}
a{color:inherit;text-decoration:none}img{max-width:100%;display:block}
.container{max-width:var(--max);margin:0 auto;padding:0 22px}
.site-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.86);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line)}
.header__inner{display:flex;align-items:center;justify-content:space-between;padding:18px 0;gap:14px}
.brand__logo{height:80px;width:auto}
.nav{display:flex;gap:18px;align-items:center}
.nav a{font-size:14px;color:var(--muted)}.nav a:hover{color:var(--fg)}
.nav__toggle{display:none;border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 12px;font-size:14px}
.nav__drawer{display:none;flex-direction:column;gap:10px;padding:12px 22px 18px;border-top:1px solid var(--line)}
.nav__drawer a{padding:10px 0;color:var(--muted)}.nav__drawer a:hover{color:var(--fg)}
.hero{position:relative;border-bottom:1px solid var(--line)}
.hero__media{height:62vh;min-height:440px;max-height:720px;overflow:hidden}
.hero__media img{width:100%;height:100%;object-fit:cover;transform:scale(1.02)}
.hero__content{position:relative;margin-top:-120px;padding-bottom:40px}
.hero__content>*{max-width:740px}
.eyebrow{display:inline-block;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);background:rgba(255,255,255,.9);border:1px solid var(--line);padding:8px 12px;border-radius:999px}
h1{margin:14px 0 10px;font-size:44px;letter-spacing:-.02em}
.lede{font-size:18px;color:var(--muted);margin:0 0 14px}
.hero__meta{display:flex;gap:8px;flex-wrap:wrap}
.pill{font-size:12px;padding:8px 10px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--muted)}
.section{padding:64px 0;border-bottom:1px solid var(--line)}
.section__header{margin-bottom:18px}
.section__header--split{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
h2{margin:0;font-size:28px;letter-spacing:-.01em}
.muted{color:var(--muted)}.fineprint{font-size:12px;color:var(--muted);margin-top:16px}
.project{border:1px solid var(--line);border-radius:var(--radius);padding:22px;background:#fff;box-shadow:var(--shadow);margin-top:18px}
.project--featured{padding:26px}
.project__top{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;align-items:flex-start}
.project__sub{margin:6px 0 0;color:var(--muted)}
.project__copy{max-width:840px;opacity:.92;margin:14px 0}
.project__role{margin:0;color:var(--muted)}
.project__facts{display:flex;gap:14px;flex-wrap:wrap}
.fact{border:1px solid var(--line);border-radius:14px;padding:10px 12px;min-width:140px;background:#fff}
.fact__k{display:block;font-size:12px;color:var(--muted)}
.fact__v{display:block;font-size:14px;margin-top:4px}
.gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:10px;margin-top:18px}
.gallery__item{border-radius:14px;overflow:hidden;border:1px solid var(--line);background:#fff}
.gallery__item img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.gallery__item:hover img{transform:scale(1.03)}
.gallery__item:nth-child(1){grid-column:span 7;grid-row:span 2}
.gallery__item:nth-child(2){grid-column:span 5}
.gallery__item:nth-child(3){grid-column:span 5}
.gallery__item:nth-child(n+4){grid-column:span 4}
.cards{display:grid;grid-template-columns:repeat(12,1fr);gap:14px;margin-top:18px}
.card{grid-column:span 6;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;box-shadow:var(--shadow);transition:transform .2s ease, box-shadow .2s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 14px 38px rgba(0,0,0,.08)}
.card img{height:260px;width:100%;object-fit:cover}
.card__body{padding:14px 14px 16px}
.card__body h3{margin:0 0 4px;font-size:18px}
.card__body p{margin:0;color:var(--muted)}
.filters{display:flex;gap:8px;flex-wrap:wrap}
.filter{border:1px solid var(--line);background:#fff;color:var(--muted);padding:8px 10px;border-radius:999px;font-size:13px;cursor:pointer}
.filter.is-active{color:var(--fg);border-color:#cfd2da}
.list{margin:18px 0 0;padding-left:18px}
.list li{margin:8px 0}
.details{margin-top:22px}
.contact{border:1px solid var(--line);border-radius:var(--radius);padding:18px;background:#fff;box-shadow:var(--shadow)}
.contact__grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px;margin-top:12px}
.contact__item{grid-column:span 4;border:1px solid var(--line);border-radius:14px;padding:12px}
.footer{padding:38px 0}
.footer__inner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.footer__logo{height:80px;width:auto;opacity:.95}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.78);display:none;align-items:center;justify-content:center;padding:18px;z-index:50}
.lightbox.is-open{display:flex}
.lightbox__img{max-width:min(1100px,96vw);max-height:86vh;border-radius:16px;box-shadow:0 30px 80px rgba(0,0,0,.35)}
.lightbox__close{position:absolute;top:16px;right:16px;width:44px;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.12);color:#fff;font-size:26px;cursor:pointer}
@media(max-width:820px){
  h1{font-size:34px}.hero__content{margin-top:-86px}
  .nav{display:none}.nav__toggle{display:inline-flex}
  .card{grid-column:span 12}.card img{height:230px}
  .contact__item{grid-column:span 12}
  .gallery__item:nth-child(1){grid-column:span 12}
  .gallery__item:nth-child(2),.gallery__item:nth-child(3),.gallery__item:nth-child(n+4){grid-column:span 6}
}
@media(max-width:520px){
  .gallery__item:nth-child(2),.gallery__item:nth-child(3),.gallery__item:nth-child(n+4){grid-column:span 12}
}

/* Company blurb */
.company-blurb{
  margin-top:16px;
  padding:16px 16px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:16px;
  max-width:820px;
}
.company-blurb p{margin:0 0 10px}
.company-blurb p:last-child{margin-bottom:0}

/* HERO TEXT POSITION FIX */
.hero__content{
  margin-top: -60px; /* was -120px */
}
@media (max-width: 820px){
  .hero__content{
    margin-top: -40px;
  }
}

.hero__content{
  padding-top: 12px;
}
.hero__content::before{
  content:"";
  position:absolute;
  inset:-16px -16px auto -16px;
  height: calc(100% + 16px);
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.92),
    rgba(255,255,255,0.88),
    rgba(255,255,255,0)
  );
  z-index:-1;
}

/* Footer contact */
.site-footer{
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.footer-contact{
  font-size: 14px;
  color: var(--muted);
}
.footer-contact a{
  color: inherit;
  text-decoration: none;
}
.footer-contact a:hover{
  text-decoration: underline;
}

/* Footer logo sizing — match header logo */
.site-footer .brand__logo{
  height: 80px;
  width: auto;
}

/* Constrain hero banner to match portfolio width */
.hero {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero__media {
  border-radius: 16px;
  overflow: hidden;
}

/* Lightbox navigation */
.lightbox__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:34px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox__prev{left:16px}
.lightbox__next{right:16px}
@media (max-width: 520px){
  .lightbox__nav{width:44px;height:44px;font-size:30px}
}

/* Hamburger menu icon */
.hamburger{
  width:26px;
  height:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.hamburger span{
  display:block;
  height:2px;
  background:#111;
  border-radius:2px;
}
