@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Dancing+Script:wght@600&display=swap');
 
:root{
  --bg: #ffffff;
  --text: #0f0f0f;
  --text-muted: #707070;
  --text-faint: #ababab;
  --border: #ececec;
  --pill-bg: #f8f8f8;
  --dot-inactive: #d9d9d9;
  --dot-active: #06080f;
  --card-dark: #06080f;
  --card-orange: #fbb96e;
  --accent: #f98151;
  --radius-lg: 8px;
  --radius-md: 8px;
  --content-w: 645px;
  --card-w: min(var(--content-w), calc(100vw - 40px));
}
 
[data-theme="dark"]{
  --bg: #0b0b0d;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-faint: #6b6b6b;
  --border: #232323;
  --pill-bg: #17171a;
  --dot-inactive: #333333;
  --dot-active: #f5f5f5;
}
 
*{ box-sizing: border-box; }
 
html{ scroll-behavior: smooth; }
 
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
  overflow-x: hidden;
  letter-spacing: -.015em;
}
 
.wrap{
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0;
}
 
/* ---------- Nav ---------- */
.nav{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 64px;
}
 
.nav-menu{
  display: contents;
}
 
.menu-toggle{
  display: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--bg);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  flex: 0 0 auto;
  padding: 0;
}
.menu-toggle img{ width: 20px; height: 20px; }
.menu-toggle .icon-close{ display: none; }
.nav.open .menu-toggle .icon-burger{ display: none; }
.nav.open .menu-toggle .icon-close{ display: block; }
 
.logo{
  color: var(--text-muted);
}
 
.logo-avatar{
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}
.logo-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
.nav-pill{
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pill-bg);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
}
 
.nav-pill a{
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 400;
}
 
.nav-pill a.active{
  color: var(--text);
}
 
.nav-pill .dot{
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}
 
/* ---------- Desktop Theme Toggle ---------- */
.theme-toggle{
  width: 54px; 
  height: 34px;
  border-radius: 50%;
  border: 0px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  flex: 0 0 auto;
  padding: 0;
}
.theme-toggle img {
  width: 24px;
  height: 24px;
  display: block;
}
.theme-toggle .theme-toggle-label {
  display: none;  /* Hidden on desktop */
}

/* THEME ICON SWAPPING (NEW ADDITION) */
/* Show Day.svg by default (Light Mode) */
.theme-toggle .icon-sun {
  display: block;
}
.theme-toggle .icon-moon {
  display: none;
}

/* When in DARK mode: Hide Day.svg, Show Moon.svg */
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}
 
/* ---------- Profile header (shared) ---------- */
.avatar{
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #d9d9d9;
  margin: 16px 0 32px;
  display: block;
}
 
.name{
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 6px;
}
 
.name.profile-name{
  font-weight: 500;
}
 
.role{
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0 0 32px;
}
 
.contact-links{
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}
 
.contact-links a{
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
}
.contact-links a:hover{ color: var(--text); }
.contact-links svg{ width: 18px; height: 18px; fill: currentColor; opacity: .85; }
 
.divider{
  border: none;
  border-top: 1px dashed var(--border);
  margin: 0 0 40px;
}
 
/* ---------- Works carousel ---------- */
.carousel-viewport{
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-viewport::-webkit-scrollbar{ display: none; }
 
.carousel{
  display: flex;
  gap: 24px;
  padding-left: calc((100vw - var(--card-w)) / 2);
  padding-right: calc((100vw - var(--card-w)) / 2);
  width: max-content;
}
 
.card{
  flex: 0 0 auto;
  width: var(--card-w);
  scroll-snap-align: center;
}
 
.card-media{
  width: 100%;
  aspect-ratio: 645 / 455;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
 
.card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
 
.card-media.dark{ background: var(--card-dark); }
.card-media.orange{ background: var(--card-orange); }
.card-media.blue{ background: #2563ea; }
.card-media.navy{ background: #14134d; }
.card-media.pink{ background: #f7a8d6; }
.card-media.skyblue{ background: #0e9de5; }
 
.card-title{
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0 10px;
}
.card-desc{
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 100%;
}
 
.card-link{
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-link .card-media{ transition: opacity .15s ease; }
.card-link:hover .card-media{ opacity: .92; }
 
/* ---------- Case study page ---------- */
.case-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 48px;
}
.back-link{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}
.back-link:hover{ color: var(--text); }
.back-link svg{ width: 16px; height: 16px; }
 
.case-header{ margin-bottom: 40px; }
.case-header h1{
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 16px;
}
.case-header p{
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  max-width: 100%;
}
 
.case-image{
  width: 100%;
  border-radius:8px;
  overflow: hidden;
  margin: 40px 0;
  background: var(--pill-bg);
}
.case-image img{
  width: 100%;
  display: block;
}
 
.case-section{ margin: 56px 0; }
.case-section h2{
  font-size: 16px;
  font-weight: 400;
  line-height:1.7em;
  margin: 0 0 16px;
  color: var(--text-muted);
}
.case-section p{
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 20px;
}
.case-section p:last-child{ margin-bottom: 0; }
.case-section ol{
  margin: 0 0 20px;
  padding-left: 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
}
.case-section ol li{ margin-bottom: 4px; }
 
.case-next{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}
 
.case-next-card{
  display: flex;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  padding: 8px;
  margin: 0 0 40px;
  border-radius:8px;
  transition: background .15s ease;
}
.case-next-card:hover{ background: var(--pill-bg); }
.case-next-thumb{
  width: 120px;
  aspect-ratio: 645 / 455;
  border-radius:3px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--card-orange);
}
.case-next-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-next-info h3{
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--text);
}
.case-next-info p{
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.visit-link {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin: 20px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--pill-bg);
  transition: all 0.2s ease;
}
.visit-link:hover {
  background: var(--border);
}
 
/* ---------- Scroll indicator ---------- */
.dots{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  height: 22px;
  margin: 32px auto 80px;
  padding: 0 8px;
  background: var(--pill-bg);
  border-radius: 999px;
}
.dots .d{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dot-inactive);
  flex: 0 0 auto;
  cursor: pointer;
  transition: background .2s ease, width .2s ease, height .2s ease;
}
.dots .d.active{
  width: 10px; height: 10px;
  background: var(--dot-active);
}
 
footer{
  padding: 32px 0 60px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-faint);
}
 
/* ---------- About page ---------- */
.about-intro{
  margin: 0 0 32px;
}
.about-intro .greeting{
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--text);
}
 
.about-body{
  max-width: var(--content-w);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
}

.about-body p{ margin: 0 0 22px; }
.about-body p:last-child{ margin-bottom: 0; }
.about-body .highlight {
  color: #707070;
  text-decoration: underline;
  text-decoration-color: #d8d8d8;
  text-underline-offset: 2px;
}

.about-body a:hover{ color: var(--text); }
 
.photo-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.photo-grid img{
  width: 100%;
  aspect-ratio: 500 / 662;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
 
.currently-building{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0 40px;
  font-size: 16px;
  color: var(--text-muted);
}
.building-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pill-bg);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
}
.building-pill img{ width: 16px; height: 16px; display: block; }
 
/* ---------- Shots page ---------- */
.shots-wrap{
  max-width: 916px;
  margin: 0 auto;
  padding: 0 20px;
}
.shots-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 80px;
  width: 100%;
}
.shot{
  width: 100%;
  aspect-ratio: 450 / 400;
  border-radius: 4px;
  background: var(--pill-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 28px;
}
.shot img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0px;
  display: block;
}

/* ---------- Lightbox ---------- */
.lightbox-overlay{
  position: fixed;
  inset: 0;
  background: rgba(250,250,250,.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  padding: 24px;
}
.lightbox-overlay.open{
  opacity: 1;
  visibility: visible;
}
.lightbox-frame{
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 800px;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0;
}
.lightbox-img{
  width: 100%;
  height: 100%;
  max-height: 74vh;
  object-fit: contain;
  display: block;
}
.lightbox-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(55,55,55,.78);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close svg{ width: 15px; height: 15px; }
 
.lightbox-nav{
  display: flex;
  align-items: center;
  gap: 10px;
}
.lightbox-arrow{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(55,55,55,.78);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-arrow svg{ width: 16px; height: 16px; }
.lightbox-counter{
  background: rgba(55,55,55,.78);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  min-width: 56px;
  text-align: center;
}

/* ---------- MOBILE STYLES ---------- */
@media (max-width: 720px){
  .wrap{ padding: 0 20px; }
  .shots-wrap{ padding: 0 20px; }
  .nav{ padding-bottom: 40px; }
  .photo-grid{ grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .shots-grid{ grid-template-columns: 1fr; }
 
  /* Hamburger nav */
  .menu-toggle{ display: flex; }
 
  .nav-menu{
    display: none;
    position: absolute;
    top: calc(100% - 24px);
    right: 0;
    z-index: 50;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }
  .nav.open .nav-menu{ display: flex; }
 
  .nav-menu .nav-pill{
    display: flex;
    flex-direction: column;
    align-items: flex-end;  
    gap: 12px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    width: auto;             
  }
  .nav-menu .nav-pill .dot{ display: none; }
  .nav-menu .nav-pill a{
    background: var(--pill-bg);
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: 12px;
    text-align: right;
    font-size: 15px;
    display: inline-block; 
    width: auto;
    text-decoration: none;   
  }
  .nav-menu .nav-pill a.active{
    color: var(--text);
    font-weight: 500;
  }
 
  /* Mobile Theme Toggle - THIS IS WHERE THE LABEL SHOWS */
  .nav-menu .theme-toggle{
    width: auto; 
    height: auto;
    background: var(--pill-bg);
    border-radius: 12px;
    padding: 10px 12px;
    gap: 8px;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .nav-menu .theme-toggle img {
    width: 18px;
    height: 18px;
  }
  .nav-menu .theme-toggle .theme-toggle-label {
    display: inline-block !important;
    font-size: 15px;
    color: var(--text-muted);
  }

  /* Upnext text limit on mobile */
  .case-next-info p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}