* { box-sizing: border-box; }

body { 
  margin: 0;
   font-family: system-ui, sans-serif; 
  }

html { scroll-behavior: smooth; }

/* Nav */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.nav-links { display: flex; 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  gap: 24px; 
}

.nav-logo {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.nav-item {
   position: relative; 
  }
  
.nav-item a {
   text-decoration: none; 
   color: #333;
    transition: color 0.2s; 
    background: #ffffff; }

.nav-item a:hover {
  color: #111;
  background: #f5f5f5;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #ddd;
  min-width: 180px;
}

.nav-item.has-dropdown:hover .dropdown { 
  display: block;
 }

.dropdown li { 
  padding: 0; 
  width: 100%;
 }
.dropdown a { 
  display: block; 
  width: 100%; 
  padding: 8px 16px;
 }
.dropdown a:hover { 
  background: #eee; 
  color: #111; 
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: #333;
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav open */
.nav.open .hamburger span:nth-child(1) {
   transform: rotate(45deg) translate(5px, 5px);
   }
.nav.open .hamburger span:nth-child(2) { 
  opacity: 0;
 }
.nav.open .hamburger span:nth-child(3) { 
  transform: rotate(-45deg) translate(5px, -5px); 
}

/* Hero */
.hero { 
  padding: 64px; 
  text-align: center;
   min-height: 40vh; 
  }

.hero-name { 
  font-size: 32px; 
  margin: 0 0 40px; 
}

.hero-name .cursor { 
  animation: blink 0.8s step-end infinite; 
}

.hero-name .cursor.hide { 
  opacity: 0; 
}


@keyframes blink { 
  50% { opacity: 0; } 
}


.hero-sub { 
  margin: 0; 
  color: #555; cursor: none; }


.pill-cursor { 
  position: fixed; 
  pointer-events: none; 
  display: none; padding: 15px 10px; 
  background: #333; color: #fff; 
  border-radius: 999px; 
  font-size: 12px; 
  z-index: 9999;
   transform: translate(-50%, -50%); 
  }

/* Sections */
.section { padding: 32px 24px; 
  max-width: 800px;
  margin: 0 auto; 
}
.section h2 { 
  margin-top: 0; 
}

.section .scroll-reveal{
  height: fit-content;
  padding-bottom: 50px;
}
/* Case studies: */
.case-study { 
  width: 100%; 
  padding: 48px 24px; 
  border-bottom: 
  1px solid #eee; 
  margin-right: 8px;
  margin-left: 8px;
}
.case-study h2 { 
  margin-top: 0;
 }

/* Gallery */
.gallery { 
  display: flex;
  flex-wrap: wrap;
gap: 16px; }

.gallery-img { width: 100%; 
  max-width: 300px; 
  height: 200px; 
  object-fit: cover;
   cursor: pointer; 
  }

/* Accordion */
.accordion { 
  border: 1px solid #ddd; 
}
.accordion-item { 
  border-bottom: 1px solid #ddd;
 }
.accordion-item:last-child { 
  border-bottom: none;
 }
.accordion-trigger { 
  width: 100%; 
  text-align: left; 
  padding: 16px; 
  background: #f5f5f5;
   border: none; 
   cursor: pointer; 
   font-size: 16px; 
  }
.accordion-panel { display: none; 
  padding: 16px;
 }
.accordion-panel p { 
  margin: 0; 
}

/* Lightbox */
.lightbox-overlay { display: none; 
  position: fixed; 
  inset: 0;
   background: rgba(0,0,0,0.8); 
   z-index: 1000; 
   align-items: center;
    justify-content: center;
   }

.lightbox-overlay.open { 
  display: flex; 
}

.lightbox-img { 
  max-width: 90%; 
  max-height: 90%; 
}

.lightbox-close { 
  position: absolute; 
  top: 16px;
  right: 16px; 
  background: #fff; 
  width: 40px;
  height: 40px; 
  font-size: 24px; 
  cursor: pointer; 
  border-radius: 4px; 
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.5);
  z-index: 1000; align-items: 
  center; justify-content:
  center; 
   }
.modal-overlay.open { 
  display: flex;
 }
.modal-box { 
  background: #fff;
padding: 32px;
 max-width: 400px;
position: relative; 
}

.modal-close { 
  position: absolute; 
  top: 8px; 
  right: 8px; 
  font-size: 18px;
   cursor: pointer; }

/* Scroll reveal (initial state) */
.scroll-reveal { opacity: 0; transform: translateY(20px); }

@media (max-width: 600px) {
  .hamburger {
     display: flex; 
    }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 8px;
    gap: 0;
  }

  .nav.open .nav-links {
    display: flex !important;
    flex-direction: column;
  }
  .nav-item { 
    width: 100%; }
  .nav-item  a { 
    display: block; 
    padding: 12px 16px;
   }

  .nav-item  a:hover { 
    background: #f0f0f0; 
  }
  .nav-item.has-dropdown .dropdown { 
    position: static; 
    border: none; 
    padding-left: 16px; 
    margin-top: 4px; 
  }
  .nav-item.has-dropdown:hover .dropdown { 
    display: none; 
  }
  .nav-item.has-dropdown.open .dropdown { 
    display: block; 
  }
  .nav-item.has-dropdown.open .dropdown a {
     padding: 8px 16px; 
  }
  .nav-item.has-dropdown.open .dropdown a:hover {
     background: #f0f0f0; 
    }
}

/* Contact page */
.contact-page {
  background: #fff;
  color: #333;
}

.contact-shell {
  padding: 32px 0;
}

.contact-simple {
  max-width: 760px;
}

.contact-heading {
  margin-bottom: 24px;
}

.contact-eyebrow {
  margin: 0 0 6px;
  font-size: 14px;
  color: #555;
}

.contact-heading h1,
.welcome-row h2 {
  margin: 0 0 8px;
}

.contact-intro {
  margin: 0;
  color: #555;
}

.auth-panel,
.profile-panel {
  border: 1px solid #ddd;
  background: #fff;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
}

.auth-tab {
  border: none;
  border-right: 1px solid #ddd;
  background: #f7f7f7;
  padding: 13px 16px;
  font: inherit;
  cursor: pointer;
}

.auth-tab:last-child {
  border-right: none;
}

.auth-tab.active {
  background: #fff;
  color: #111;
}

.auth-view {
  display: none;
  padding: 16px;
}

.auth-view.active {
  display: block;
}

.auth-form,
.profile-form {
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 6px;
}

.field-group label,
.choice-group legend {
  font-weight: 600;
}

.field-group input,
.field-group select {
  width: 100%;
  border: 1px solid #ccc;
  padding: 11px 13px;
  font: inherit;
  background: #fff;
  outline: none;
}

.field-group input:focus,
.field-group select:focus {
  border-color: #777;
}

.field-group input.is-valid,
.field-group select.is-valid {
  border-color: #22c55e;
}

.field-group input.is-invalid,
.field-group select.is-invalid {
  border-color: #ef4444;
}

.auth-message,
.field-message,
.form-status {
  min-height: 16px;
  margin: 0;
  font-size: 14px;
}

.message-error {
  color: #dc2626;
}

.message-success {
  color: #15803d;
}

.primary-btn,
.secondary-btn,
.page-link-btn,
.modal-trigger {
  border: 1px solid #555;
  background: #555;
  color: #fff;
  padding: 11px 16px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.secondary-btn,
.alt-btn {
  background: #fff;
  color: #333;
  border-color: #ccc;
}

.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 0;
}

.profile-form {
  padding: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-span {
  grid-column: 1 / -1;
}

.choice-group {
  margin: 0;
  border: 1px solid #ddd;
  padding: 16px;
}

.choice-row,
.checkbox-stack,
.form-actions,
.page-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice-option,
.check-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox-stack {
  flex-direction: column;
}

.site-footer {
  border-top: 1px solid #ddd;
  margin-top: 100px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.footer-links a {
  color: #333;
  text-decoration: none;
}

.footer-links a:hover,
.nav-logo:hover {
  color: #111;
}

@media (max-width: 720px) {
  .welcome-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-form,
  .auth-view {
    padding: 16px;
  }

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

  .field-span {
    grid-column: auto;
  }

  .form-actions,
  .page-links {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .page-link-btn,
  .modal-trigger {
    width: 100%;
    text-align: center;
  }
}
