@font-face {
  font-family: 'More Sugar';
  src: url('/more-sugar-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:  #FFFFF8;
  --blue:   #0522FF;
  --lime:   #AAFF0C;
  --black:  #0A0A0A;
  --muted:  #888882;
  --border: rgba(10,10,10,0.09);
  --ms:     'More Sugar', serif;
  --sans:   'Inter', sans-serif;
  --av:     'Avenir Next', 'Avenir', 'Nunito', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── LOGO ─── */
.site-logo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 64px;
  border-bottom: 1px solid var(--border);
}
.site-mark { justify-self: start; display: block; line-height: 0; }
.site-mark img { height: 56px; width: auto; display: block; }
.site-logo a.site-name {
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
}

/* ─── HERO ─── */
.hero {
  padding: 80px 64px 72px;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero-headline {
  font-family: var(--sans);
  font-size: clamp(42px, 6.5vw, 84px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  ;
  margin-bottom: 28px;
  max-width: 860px;
}
.hero-headline em {
  color:#0522FF;
  font-family: 'More Sugar', serif;
  font-style: normal;
  font-weight: normal;
}
.hero-sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
}
:root {
    --cream: #FFFFF8;
    --blue: #0522FF;
    --lime: #AAFF0C;
  }
.hero-logos {
  min-width: 0;
}
  /* Hero links */
.hero-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0A0A0A;
  padding-bottom: 12px;
  border-bottom: 3px solid #0A0A0A;
  transition: color .2s ease, border-color .2s ease, transform .15s ease;
}

.hero-link:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* Press feedback */
.hero-link:active {
  transform: translateY(2px);
}

/* Clicked state, added by the script */
.hero-link.is-clicked {
  color: var(--blue);
  border-bottom-color: var(--lime);
}

/* Keyboard focus */
.hero-link:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 6px;
}

 

/* ─── CLIENT LOGO GRID ─── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  align-items: center;
  justify-items: center;
}
.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
}
.client-logo-item img {
  max-height: 72px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  mix-blend-mode: multiply; /* hides white logo backgrounds on the cream page */
  opacity: 0.45;
  transition: filter 0.3s ease, opacity 0.3s ease;
  display: block;
}
.client-logo-item:hover img {
  filter: none;
  opacity: 1;
}

/* ─── SELECTED WORKS ─── */
.works-section {
  padding: 64px 80px 80px;
  max-width: 1360px;
  margin: 0 auto;
}
.works-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 28px;
}
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
}
.proj-card {
  cursor: pointer;
  overflow: visible;
  background: transparent;
}
.proj-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #E6E6E0;
}
.proj-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.proj-card:hover .proj-thumb img { transform: scale(1.04); }
.proj-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0 0;
  gap: 16px;
}
.proj-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
}
.proj-cat {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── CONTACT CTA ─── */
.cta-section {
  padding: 80px 64px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-heading {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 10px;
}
.cta-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}
.btn-blue {
  display: inline-block;
  background: var(--blue);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-blue:hover { background: var(--black); }

/* ─── FOOTER ─── */
footer {
  background: #0522FF;
  padding: 56px 64px 0;
  overflow: hidden;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,248,0.1);
  flex-wrap: wrap;
}
.footer-tagline {
  font-size: 14px;
  color: #AAFF0C;
  line-height: 1.8;
  max-width: 320px;
}
.footer-links { display: flex; gap: 52px; flex-wrap: wrap; }
.footer-col span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,248,0.3);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: rgba(255,255,248,0.7);
  text-decoration: none;
  line-height: 2;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }
.footer-name-row {
  display: flex;
  align-items: baseline;
  line-height: 0.85;
  padding-top: 28px;
}
.footer-mbithe {
  font-family: var(--av);
  font-weight: 900;
  font-size: clamp(72px, 12vw, 160px);
  color: #AAFF0C;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.footer-mutavi {
  font-family: 'More Sugar', serif;
  font-size: clamp(72px, 12vw, 160px);
  color: #AAFF0C;
  letter-spacing: -0.01em;
}

/* ─── CONTACT MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(6px);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 0.3s ease; }
.modal-box {
  background: var(--cream);
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 48px 44px;
  position: relative;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.3s;
}
.modal-overlay.open .modal-box { transform: translateY(0); opacity: 1; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px;
  background: transparent; border: 1px solid var(--border);
  font-size: 14px; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--black); color: var(--cream); border-color: var(--black); }
.modal-title { font-family: var(--sans); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--black); margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--sans); font-size: 14px; color: var(--black);
  background: #F0F0EA; border: 1.5px solid transparent;
  padding: 12px 14px; outline: none; width: 100%;
  transition: border-color 0.2s; appearance: none; border-radius: 0;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); background: var(--cream); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.submit-btn {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream); background: var(--blue); border: none;
  padding: 14px 32px; align-self: flex-start;
  cursor: pointer; transition: background 0.2s;
}
.submit-btn:hover { background: var(--black); }
.form-success { display: none; padding: 14px 16px; background: #EAFAF1; border: 1px solid #B7E9CC; font-size: 13px; color: #2d6a4f; }

/* ─── PROJECT OVERLAY ─── */
.proj-overlay {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 800;
  overflow-y: auto;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0.5s;
}
.proj-overlay.open { transform: translateY(0); visibility: visible; transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }

.proj-page-logo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 64px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--cream);
  z-index: 10;
}
.proj-page-logo a.site-name {
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--black); cursor: pointer;
}
.proj-page-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 64px 80px;
}
.proj-page-title {
  font-family: var(--av);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 28px;
}
.proj-page-meta {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 36px; padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.proj-meta-row { font-size: 14px; color: var(--black); line-height: 1.7; }
.proj-meta-row strong { font-weight: 600; }
.proj-meta-row a { color: var(--blue); text-decoration: none; }
.proj-meta-row a:hover { text-decoration: underline; }
.proj-page-desc {
  font-family: var(--av);
  font-size: 16px; line-height: 1.85;
  color: #3A3A38; margin-bottom: 52px;
}
.proj-page-desc p { margin-bottom: 20px; }

/* Gallery images */
.proj-page-image-group { margin-bottom: 52px; }
.proj-page-image {
  width: 100%;
  background: #E6E6E0;
  overflow: hidden;
  margin-bottom: 4px;
}
.proj-page-image img { width: 100%; display: block; height: auto; }

/* ─── CAPTIONS ─── */
.proj-caption {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 24px;
}
.proj-caption svg { flex-shrink: 0; margin-top: 4px; opacity: 0.6; }
.proj-caption-text {
  font-family: 'More Sugar', serif;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.3;
}

/* Testimonial */
.proj-testimonial {
  background: white;
  border: 1px solid var(--border);
  padding: 36px 40px;
  margin-bottom: 52px;
}
.proj-testimonial blockquote {
  font-family: var(--av);
  font-size: 15px; font-style: italic;
  line-height: 1.8; color: var(--black);
  margin-bottom: 16px;
}
.proj-testimonial cite {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  color: var(--black); font-style: normal; display: block;
}
.proj-testimonial cite span {
  display: block; font-size: 12px;
  font-weight: 400; color: var(--muted); margin-top: 2px;
}
.proj-page-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.proj-nav-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--black); background: none; border: none;
  cursor: pointer; padding: 0; letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.proj-nav-btn:hover { opacity: 0.5; }
.piece { position: relative; }

.piece::after {
  content: '';
  position: absolute;
  inset: 0;
}

.piece img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none; 
}

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
  .hero { padding: 48px 24px; grid-template-columns: 1fr; gap: 40px; }
  .clients-grid { gap: 24px 16px; }
  .client-logo-item { height: 72px; }
  .client-logo-item img { max-height: 56px; max-width: 96px; }
  .works-section { padding: 48px 24px; }
  .works-grid { display: block; min-width: none; max-width: 100%; }
  .cta-section { padding: 56px 24px; }
  footer { padding: 44px 24px 0; }
  .footer-links { gap: 28px; }
  .peek-header { padding: 0 24px 28px; }
  .proj-page-inner { padding: 48px 24px 56px; }
  .proj-page-img { display: block; width: 100%; max-width: 100%; height: auto; }
  .project-meta { display: flex; flex-direction: column; gap: 6px; }
  .proj-testimonial { padding: 24px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .modal-box { padding: 32px 22px; }
  .site-logo, .proj-page-logo { padding: 14px 24px; }
  .site-mark img { height: 44px; }
  html, body {
  overflow-x: clip;
}
}


/* ─── ADDED FOR SEPARATE PAGES ─── */
a.proj-card { display: block; text-decoration: none; color: inherit; }
a.proj-nav-btn { text-decoration: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
