@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#f5f4f0;
  --text:#111;
  --muted:#77746e;
  --line:#d8d6d0;
  --max:1360px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,Arial,sans-serif;
  font-size:14px;
  line-height:1.45;
}
a{color:inherit;text-decoration:none}
button{font:inherit}
.site-header{
  width:100%;
  padding:22px 4vw;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
  z-index:5;
}
.brand{display:flex;align-items:center;gap:10px}
.brand-mark{
  width:34px;
  height:48px;
  object-fit:contain;
  object-position:center;
  display:block;
}
.brand-name{
  font-size:16px;
  font-weight:800;
  letter-spacing:.22em;
  white-space:nowrap;
}
.nav{display:flex;gap:30px}
.nav a,.scroll-link,.eyebrow,.filter{
  font-size:10px;
  font-weight:700;
  letter-spacing:.16em;
}
.nav a{transition:opacity .2s}
.nav a:hover{opacity:.5}

.hero{
  max-width:var(--max);
  margin:0 auto;
  padding:20px 4vw 150px;
  min-height:790px;
  display:grid;
  grid-template-columns:43% 57%;
  align-items:center;
}
.hero-copy{padding-top:80px}
.eyebrow{margin:0 0 18px}
.hero h1{
  margin:0;
  font-size:clamp(100px,14vw,205px);
  line-height:.72;
  letter-spacing:-.085em;
  font-weight:800;
}
.intro{margin:44px 0 40px;font-size:14px;line-height:1.55}
.scroll-link{display:inline-block}

.hero-image{
  width:100%;
  aspect-ratio:1.08/1;
  min-height:520px;
  display:block;
  position:relative;
  overflow:hidden;
  background:#cbc9c2;
}
.hero-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.work-section{
  max-width:var(--max);
  margin:0 auto;
  padding:0 4vw 150px;
}
.section-heading h2,.projects-section h2{
  margin:0;
  font-size:clamp(88px,12vw,170px);
  line-height:.8;
  letter-spacing:-.075em;
}
.filters{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:20px;
  margin:20px 0 48px;
}
.filter{
  border:0;
  background:transparent;
  padding:6px 0;
  cursor:pointer;
}
.filter.active{
  border:1px solid #111;
  padding:7px 10px;
}
.work-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.work-card{
  min-height:360px;
  display:block;
}
.work-card.tall{min-height:560px}
.work-card.wide{grid-column:span 2}
.work-card span{font-size:9px}

.projects-section,.about-section,.contact-section{
  max-width:var(--max);
  margin:0 auto;
  padding:0 4vw 150px;
}
.project-list{
  margin-top:50px;
  border-top:1px solid var(--line);
}
.project-list a{
  display:flex;
  justify-content:space-between;
  padding:22px 0;
  border-bottom:1px solid var(--line);
  font-size:12px;
  font-weight:700;
  letter-spacing:.1em;
}
.about-grid,.contact-grid{
  margin-top:50px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8vw;
}
.about-grid h2,.contact-grid h2{
  margin:0;
  font-size:clamp(44px,6vw,84px);
  line-height:.9;
  letter-spacing:-.06em;
}
.about-grid p,.contact-grid p{max-width:420px}
.contact-grid a{font-weight:700;border-bottom:1px solid #111;padding-bottom:3px}
.site-footer{
  padding:25px 4vw 35px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  font-size:9px;
  font-weight:700;
  letter-spacing:.14em;
}

@media(max-width:800px){
  .site-header{padding:18px 22px}
  .brand-mark{width:28px;height:40px}
  .brand-name{font-size:13px}
  .nav{gap:14px}
  .nav a{font-size:8px}
  .hero{
    padding:30px 22px 100px;
    min-height:auto;
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }
  .hero-copy{padding-top:50px}
  .hero h1{font-size:clamp(82px,25vw,140px)}
  .hero-image{margin-top:60px;min-height:auto;aspect-ratio:1/1}
  .work-section,.projects-section,.about-section,.contact-section{padding-left:22px;padding-right:22px;padding-bottom:100px}
  .section-heading h2,.projects-section h2{font-size:clamp(78px,24vw,140px)}
  .filters{justify-content:flex-start;gap:14px;margin-top:30px}
  .work-grid{grid-template-columns:1fr 1fr}
  .work-card,.work-card.tall{min-height:280px}
  .work-card.wide{grid-column:span 2}
  .about-grid,.contact-grid{grid-template-columns:1fr;gap:35px}
  .site-footer{padding-left:22px;padding-right:22px}
}


/* V4 mobile navigation */
.menu-toggle{
  display:none;
  width:38px;
  height:38px;
  padding:8px 5px;
  border:0;
  background:transparent;
  cursor:pointer;
  flex-direction:column;
  justify-content:center;
  gap:5px;
}
.menu-toggle span{
  display:block;
  width:27px;
  height:2px;
  background:#111;
  transition:transform .2s, opacity .2s;
}
.mobile-menu{
  display:none;
}

@media(max-width:800px){
  .site-header{
    padding:18px 22px;
    min-height:76px;
  }
  .brand{
    gap:8px;
  }
  .brand-mark{
    width:27px;
    height:38px;
  }
  .brand-name{
    font-size:13px;
    letter-spacing:.18em;
  }
  .nav{
    display:none;
  }
  .menu-toggle{
    display:flex;
  }
  .mobile-menu{
    position:absolute;
    top:76px;
    left:0;
    right:0;
    z-index:10;
    display:flex;
    flex-direction:column;
    padding:8px 22px 20px;
    background:var(--bg);
    border-bottom:1px solid var(--line);
    opacity:0;
    visibility:hidden;
    transform:translateY(-8px);
    transition:opacity .2s, transform .2s, visibility .2s;
  }
  .mobile-menu.open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
  }
  .mobile-menu a{
    padding:16px 0;
    border-bottom:1px solid var(--line);
    font-size:11px;
    font-weight:700;
    letter-spacing:.16em;
  }
  .mobile-menu a:last-child{
    border-bottom:0;
  }
}


/* V5 fixes */
.work-card{
  border:0;
  padding:0;
  width:100%;
  font:inherit;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.projects-section h2{
  font-size:clamp(70px, 10vw, 140px);
  max-width:100%;
  overflow-wrap:break-word;
  word-break:normal;
}
.lightbox{
  position:fixed;
  inset:0;
  z-index:100;
  width:100vw;
  height:100vh;
  display:grid;
  place-items:center;
  padding:clamp(16px, 5vw, 64px);
  background:rgba(10,10,10,.88);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .2s ease, visibility .2s ease;
}
.lightbox.open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.lightbox-content{
  width:min(92vw, 1500px);
  max-height:88vh;
  margin:0 auto;
  justify-self:center;
}
.lightbox-image{
  width:100%;
  height:min(78vh, 760px);
  background:
    radial-gradient(circle at 76% 22%, #e7e4dd 0 17%, transparent 17.2%),
    radial-gradient(circle at 16% 82%, #aaa79f 0 14%, transparent 14.2%),
    #cbc9c2;
}
.lightbox-caption{
  margin:12px 0 0;
  color:#fff;
  font-size:10px;
  font-weight:700;
  letter-spacing:.16em;
}

.lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:58px;
  height:58px;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.28);
  color:#fff;
  font-size:52px;
  line-height:48px;
  font-family:Arial, sans-serif;
  font-weight:300;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 0 6px;
  transition:background .15s ease, opacity .15s ease;
}
.lightbox-nav:hover{background:rgba(0,0,0,.55)}
.lightbox-nav[hidden]{display:none}
.lightbox-prev{left:24px}
.lightbox-next{right:24px}
@media(max-width:800px){
  .lightbox-nav{width:46px;height:46px;font-size:42px;line-height:38px}
  .lightbox-prev{left:8px}
  .lightbox-next{right:8px}
}
.lightbox-close{
  position:absolute;
  top:20px;
  right:28px;
  z-index:2;
  border:0;
  background:transparent;
  color:#fff;
  font-size:38px;
  line-height:1;
  cursor:pointer;
}
@media(max-width:800px){
  .projects-section h2{
    font-size:clamp(48px, 16vw, 88px);
    letter-spacing:-.07em;
    white-space:normal;
  }
  .lightbox{
    padding:22px;
  }
  .lightbox-content{
    width:100%;
  }
  .lightbox-image{
    height:70vh;
  }
  
.lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:58px;
  height:58px;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.28);
  color:#fff;
  font-size:52px;
  line-height:48px;
  font-family:Arial, sans-serif;
  font-weight:300;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 0 6px;
  transition:background .15s ease, opacity .15s ease;
}
.lightbox-nav:hover{background:rgba(0,0,0,.55)}
.lightbox-nav[hidden]{display:none}
.lightbox-prev{left:24px}
.lightbox-next{right:24px}
@media(max-width:800px){
  .lightbox-nav{width:46px;height:46px;font-size:42px;line-height:38px}
  .lightbox-prev{left:8px}
  .lightbox-next{right:8px}
}
.lightbox-close{
    top:12px;
    right:18px;
    font-size:34px;
  }
}


/* V7 nested Work portfolio */
.portfolio-browser{
  margin-top:38px;
}
.portfolio-level{
  display:none;
}
.portfolio-level.active{
  display:block;
}
.level-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:28px;
  border-bottom:1px solid var(--line);
  padding-bottom:16px;
}
.level-note{
  margin:0;
  color:var(--muted);
  font-size:12px;
}
.back-button{
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  font-size:10px;
  font-weight:700;
  letter-spacing:.15em;
}
.folder-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.folder-card{
  border:0;
  padding:0;
  width:100%;
  min-height:390px;
  cursor:pointer;
  text-align:left;
  color:var(--text);
  font:inherit;
}
.folder-card span{
  font-size:10px;
  font-weight:700;
  letter-spacing:.16em;
}
.subcategory-grid .folder-card{
  min-height:330px;
}
.photo-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.photo-item{
  border:0;
  padding:0;
  width:100%;
  min-height:420px;
  cursor:pointer;
  color:var(--text);
  text-align:left;
}
.photo-item span{
  font-size:9px;
  font-weight:700;
  letter-spacing:.14em;
}
@media(max-width:800px){
  .portfolio-browser{
    margin-top:30px;
  }
  .level-header{
    align-items:flex-start;
    flex-direction:column;
    gap:14px;
  }
  .folder-grid,
  .photo-grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .folder-card{
    min-height:260px;
  }
  .subcategory-grid .folder-card{
    min-height:230px;
  }
  .photo-item{
    min-height:260px;
  }
}
@media(max-width:520px){
  .folder-grid,
  .photo-grid{
    grid-template-columns:1fr;
  }
  .folder-card,
  .subcategory-grid .folder-card{
    min-height:320px;
  }
  .photo-item{
    min-height:360px;
  }
}

/* About Sonstar heading: match WORK / PROJECTS typography with tighter tracking */
#about .section-head .eyebrow {
  margin: 0;
  font-size: clamp(70px, 10vw, 140px);
  line-height: .8;
  letter-spacing: -.075em;
  font-weight: 800;
}

/* Prevent mobile browsers from auto-detecting phone numbers in the About copy */
#about .about-copy,
#about .about-copy * {
  -webkit-text-size-adjust: 100%;
}

/* V11 social media links */
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 28px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: inherit;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: opacity .2s ease, transform .2s ease;
}
.social-links a:hover { opacity: .55; transform: translateY(-1px); }
@media (max-width: 768px) {
  .social-links { margin: 24px 0 0; gap: 18px; }
  .social-links a { width: 30px; height: 30px; font-size: 19px; }
}

/* V13 dynamic portfolio browser */
.portfolio-browser{margin-top:34px}
.portfolio-level{display:none}
.portfolio-level.active{display:block}
.level-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:26px;
}
.level-note{margin:0;color:var(--muted);font-size:11px}
.back-button{
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
}
.folder-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.folder-card{
  min-height:330px;
  border:0;
  cursor:pointer;
  text-align:left;
  padding:0;
  color:var(--text);
}
.folder-card.has-image{
  background-size:cover;
  background-position:center;
}
.folder-card.has-image span{
  background:rgba(245,244,240,.9);
  padding:8px 10px;
  left:12px;
  bottom:12px;
}
.photo-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.photo-item{
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  overflow:hidden;
}
.photo-item img{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  transition:transform .35s ease;
}
.photo-item:hover img{transform:scale(1.025)}
.empty-note{padding:60px 0}
.lightbox-img{
  display:block;
  max-width:100%;
  max-height:88vh;
  width:auto;
  height:auto;
  margin-inline:auto;
  object-fit:contain;
}
@media(max-width:800px){
  .folder-grid,.photo-grid{grid-template-columns:1fr 1fr;gap:10px}
  .folder-card{min-height:250px}
  .level-header{align-items:flex-start;flex-direction:column;gap:12px}
}

/* V16: separate ongoing projects browser */
.project-list { display: grid; gap: 0; }
.project-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line, #ddd);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.project-link:last-child { border-bottom: 1px solid var(--line, #ddd); }
.project-link span:first-child { font-size: 14px; letter-spacing: .04em; }
.project-link span:last-child { font-size: 18px; }
.ongoing-detail { margin-top: 28px; }
.ongoing-detail[hidden], .project-list[hidden] { display: none; }

/* Mobile: keep project folders square like the desktop layout */
@media (max-width: 800px) {
  .subcategory-grid .folder-card {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
  }
}


/* Mobile: main WORK category cards should follow the wider desktop proportion */
@media (max-width: 800px) {
  .category-grid .folder-card {
    aspect-ratio: 1.15 / 1;
    height: auto;
    min-height: 0;
  }
}
