:root {
  --cream: #f2e9da;
  --cream-alt: #e8d9be;
  --charcoal: #2b2013;
  --walnut: #7a4a26;
  --walnut-dark: #3b2414;
  --walnut-light: #c68a4a;
  --amber: #b06a2e;
  --pine: #55603f;
  --border: #d9c39a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(122, 74, 38, 0.035) 0px,
      rgba(122, 74, 38, 0.035) 1px,
      transparent 1px,
      transparent 3px
    ),
    var(--cream);
  color: var(--charcoal);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}

h1, h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--walnut-dark);
  margin: 0;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--walnut-dark);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--walnut); }

.nav-cta {
  background: var(--walnut-dark);
  color: var(--cream) !important;
  padding: 9px 16px;
  border-radius: 3px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--amber); }

/* Hero */
.hero {
  position: relative;
  height: 78vh;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 17, 9, 0.8) 0%, rgba(27, 17, 9, 0.25) 55%, rgba(27, 17, 9, 0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px 56px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  color: var(--cream);
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.hero-sub {
  font-size: 1.15rem;
  margin: 10px 0 24px;
  color: var(--cream);
  opacity: 0.92;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(242, 233, 218, 0.55);
  color: var(--cream);
  text-decoration: none;
  animation: scrollBounce 2.2s ease-in-out infinite;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.scroll-cue:hover {
  background: var(--amber);
  border-color: var(--amber);
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.btn {
  display: inline-block;
  background: var(--walnut-dark);
  color: var(--cream);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--amber); }

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-outline {
  background: transparent;
  color: var(--walnut-dark);
  border: 1px solid var(--walnut-dark);
}

.btn-outline:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--cream);
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Past Work section */
.work-section {
  background: var(--cream-alt);
  padding: 64px 0;
}

.work-inner {
  max-width: 680px;
}

.work-section h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}

.work-section p {
  font-size: 1.05rem;
}

.work-section .btn {
  margin-top: 12px;
}

/* Gallery / Carousel */
.gallery-section {
  padding: 72px 0 88px;
  text-align: center;
}

.gallery-section h2 {
  font-size: 1.75rem;
  margin-bottom: 40px;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  align-items: center;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.slide {
  flex: 0 0 auto;
  width: min(45vw, 450px);
  margin: 0 14px;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.4;
  transform: scale(0.78);
  transition: transform 0.4s ease, opacity 0.4s ease;
  cursor: pointer;
  background: var(--cream-alt);
}

.slide.is-active {
  opacity: 1;
  transform: scale(1.08);
  cursor: default;
}

.slide img {
  display: block;
  width: 100%;
  height: min(39vw, 390px);
  object-fit: cover;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--walnut-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease;
}

.carousel-arrow:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--cream);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.is-active {
  background: var(--walnut-dark);
}

#expandGalleryBtn {
  margin-top: 32px;
}

/* Expanded gallery */
.gallery-expand {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--cream);
  overflow-y: auto;
  padding: 96px 0 64px;
}

.gallery-expand.is-open {
  display: block;
}

.expand-close {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--walnut-dark);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 51;
  transition: background 0.15s ease;
}

.expand-close:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--cream);
}

.expand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.expand-item {
  overflow: hidden;
  border-radius: 6px;
}

.expand-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}

.expand-item:hover img {
  transform: scale(1.08);
}

@media (max-width: 640px) {
  .expand-grid {
    gap: 8px;
  }
}

/* Contact */
.contact-section {
  background: var(--cream-alt);
  padding: 80px 0;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-sub {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.contact-direct {
  font-size: 0.95rem;
  margin: 0 0 32px;
  color: var(--walnut);
}

.contact-direct a {
  color: var(--walnut-dark);
  text-decoration: none;
  font-style: italic;
}

.contact-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.hp-field {
  display: none;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--walnut-dark);
}

.form-row label .optional {
  font-weight: 400;
  color: var(--walnut-light);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--cream);
  color: var(--charcoal);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--charcoal);
  opacity: 0.4;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--walnut);
}

.contact-form .btn {
  width: 100%;
  border: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--walnut-light);
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { height: 62vh; }

  .slide {
    width: 74vw;
    margin: 0 8px;
  }
  .slide img { height: 64vw; }
  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
}
