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

:root {
  --ivory:   #f7f4ef;
  --cream:   #ede8e0;
  --sand:    #d6cfc4;
  --clay:    #b89a7c; 
  --bark:    #3c2f23;
  --ink:     #1a1410;
  --smoke:   #8a847c;
  --white:   #fdfcfa;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-weight: 100;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--bark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .1s, width .3s, height .3s, background .3s;
}
.cursor-ring {
  position: fixed;
  width: 34px; height: 34px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .18s ease-out, width .3s, height .3s, opacity .3s;
  opacity: .6;
}
body.hovering .cursor { width: 14px; height: 14px; background: var(--clay); }
body.hovering .cursor-ring { width: 56px; height: 56px; opacity: .3; }

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 3px 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
transition: background .3s, backdrop-filter .3s;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 100;
  font-size: 60px;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
}
  .nav-logo img {
  height: 160px; 
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  opacity: .6;
  transition: opacity .25s;
}
.nav-links a:hover { opacity: 1; }

 /* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all .3s;
}

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
    height: 60px;
  }
  .nav-logo img {
    height: 110px;
    margin-top: 10px;
    margin-left: -10px;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: rgba(247,244,239,0.97);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0 30px;
    list-style: none;
    z-index: 99;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    padding: 8px 0;
    font-size: 12px;
    letter-spacing: .22em;
    opacity: 0.7;
  }
}

/* Hero */
.hero {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 52px 80px 52px;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .9s .3s forwards;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp .9s .5s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--clay);
}
.hero-sub {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--smoke);
  max-width: 340px;
  opacity: 0;
  animation: fadeUp .9s .75s forwards;
}
.hero-cta {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  animation: fadeUp .9s .95s forwards;
  transition: gap .3s;
}
.hero-cta:hover { gap: 22px; }
.hero-cta::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--clay);
  transition: width .3s;
}
.hero-cta:hover::after { width: 60px; }

.hero-image {
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 1.2s .2s forwards;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-image.loaded img { transform: scale(1); }
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ivory) 0%, transparent 30%);
}
.hero-number {
  position: absolute;
  bottom: 80px;
  left: -10px;
  font-family: 'Playfair Display', serif;
  font-size: 140px;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(60,47,35,.08);
  line-height: 1;
  z-index: 1;
  user-select: none;
}

/* Marquee */
.marquee-bar {
  background: var(--bark);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-inner {
  display: inline-flex;
  gap: 0;
  animation: marquee 22s linear infinite;
}
.marquee-item {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sand);
  padding: 0 36px;
}
.marquee-dot {
  color: var(--clay);
  padding: 0 4px;
}

/* Section base */
section { padding: 120px 52px; }
.section-label {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.15;
  color: var(--ink);
}
.section-title em { font-style: italic; }

/* Work section */
#work { background: var(--white); }
.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
}
.work-header p {
  font-size: 14px;
  color: var(--smoke);
  max-width: 280px;
  line-height: 1.8;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.filter-btn {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--sand);
  background: transparent;
  color: var(--smoke);
  cursor: none;
  transition: all .25s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--bark);
  border-color: var(--bark);
  color: var(--ivory);
}

/* Masonry grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.grid-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  cursor: none;
}
.grid-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.25,.1,.25,1);
}
.grid-item:hover img { transform: scale(1.04); }
.grid-item-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(26,20,16,.75));
  opacity: 0;
  transition: opacity .4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
}
.grid-item:hover .grid-item-info { opacity: 1; }
.grid-item-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  color: var(--ivory);
  line-height: 1.2;
}
.grid-item-meta {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 6px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26,20,16,.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-height: 88vh;
  max-width: 80vw;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 32px; right: 40px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand);
  cursor: none;
  opacity: .6;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 52px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ivory);
  opacity: .7;
}

/* About */
#about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
  margin-top: 64px;
}
.about-image {
  position: relative;
  height: 630px;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  right: 16px; bottom: 16px;
  border: 1px solid var(--clay);
  opacity: .4;
  z-index: -1;
}
.about-body p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--smoke);
  margin-bottom: 20px;
}
.about-body p strong {
  font-weight: 400;
  color: var(--bark);
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--sand);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 42px;
  color: var(--clay);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-top: 8px;
}

/* Services */
#services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 72px;
  border: 1px solid var(--cream);
}
.service-card {
  padding: 48px 36px;
  border: 1px solid var(--cream);
  transition: background .3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--clay);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s;
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover { background: var(--ivory); }
.service-num {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--clay);
  letter-spacing: .1em;
  margin-bottom: 28px;
}
.service-name {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.3;
}
.service-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--smoke);
}

/* Contact */
#contact { background: var(--bark); }
#contact .section-label { color: var(--clay); }
#contact .section-title { color: var(--ivory); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin-top: 72px;
}
.contact-info p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(245,240,232,.55);
  margin-bottom: 48px;
}
.contact-detail {
  margin-bottom: 28px;
}
.contact-detail-label {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 6px;
}
.contact-detail-value {
  color: white !important;
}

.contact-detail-value a {
  color: white !important;
  text-decoration: none !important;
}
  
/* Form */
.form-group {
  margin-bottom: 28px;
  position: relative;
}
.form-group label {
  display: block;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(245,240,232,.07);
  border: none;
  border-bottom: 1px solid rgba(245,240,232,.2);
  padding: 12px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--ivory);
  outline: none;
  transition: border-color .3s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select { border-bottom-color: var(--clay); }
.form-group textarea { resize: none; height: 100px; }
.form-group select option { background: var(--bark); }
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ivory);
  background: transparent;
  border: 1px solid rgba(245,240,232,.3);
  padding: 16px 36px;
  cursor: none;
  transition: all .3s;
}
.form-submit:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--ink);
}
.form-success {
  display: none;
  font-size: 13px;
  color: var(--clay);
  letter-spacing: .1em;
  margin-top: 16px;
}

/* Footer */
footer {
  background: var(--ink);
  padding: 40px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--clay);
}
.footer-copy {
  font-size: 11px;
  color: rgba(245,240,232,.3);
  letter-spacing: .1em;
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,240,232,.4);
  text-decoration: none;
  transition: color .25s;
}
.footer-links a:hover { color: var(--clay); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.hamburger { display: none; }
  
  @media (max-width: 768px) {
  nav {
    padding: 20px 24px;
  }
  .nav-links { display: none; }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
  }
  .hamburger span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    display: block;
    transition: all .3s;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0px; 
    left: 0;
    right: 0;
    bottom: auto; 
    background: var(--ivory);
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
    z-index: 150;
  }
    .nav-links.open a {
    font-size: 12px; 
  }
  .hero {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-text {
    padding: 120px 24px 48px;
  }
  .hero-title {
    font-size: 42px;
  }
  .hero-image {
    height: 50vh;
  }
  section {
    padding: 80px 24px;
  }
  .work-header {
    flex-direction: column;
    gap: 20px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 40px 24px;
  }
  .grid-item img {
    height: 200px;
    object-fit: cover;
  }
}

/* WP port additions */
a.grid-item { display: block; color: inherit; text-decoration: none; }
