/* Shared design tokens, base elements, navigation, and reusable sections. */
:root {
  --brown: #6F4E37;
  --silver: #E5E4E2;
  --lilac: #E6E0F0;
  --paper: #F8F7F5;
  --ink: #2E2926;
  --muted: #77716C;
  --line: rgba(111, 78, 55, .24);
  --heading: "Syne", sans-serif;
  --body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ── Header & Navigation ── */

.site-header {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 5.2vw;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(111, 78, 55, .12);
  background: rgba(248, 247, 245, .94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.wordmark {
  color: var(--brown);
  font-family: var(--heading);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -.08em;
  line-height: 1.2;
}

.wordmark span {
  color: #B9A2C9;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #655D57;
}

.nav-links a {
  padding: 9px 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--brown);
  transition: width .25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ── Layout ── */

.section-shell {
  padding-left: 7.5vw;
  padding-right: 7.5vw;
}

.eyebrow {
  font-size: 9px;
  letter-spacing: .16em;
  line-height: 1.6;
  font-weight: 700;
  color: var(--brown);
  text-transform: uppercase;
  margin: 0 0 20px;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--heading);
  font-weight: 500;
  letter-spacing: -.055em;
}

h1 em,
h2 em {
  font-weight: 400;
  color: #A58B78;
}

/* ── Buttons ── */

.button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 15px 19px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  transition: transform .2s, background .2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brown);
  color: #fff;
}

.button-primary:hover {
  background: #533927;
}

.button-secondary {
  background: var(--lilac);
  color: var(--brown);
}

/* ── AI Section ── */

.ai-section {
  padding-top: 110px;
  padding-bottom: 115px;
  background: #F0EDE9;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 46px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

h2 {
  color: var(--brown);
  font-size: clamp(38px, 5.1vw, 70px);
  line-height: 1.04;
  margin: 0;
}

.section-intro {
  max-width: 290px;
  color: #beb4ab;
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 4px;
}

/* ── Gallery ── */

.gallery-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.gallery-layout--interactive {
  display: block;
}

.gallery-layout--interactive .gallery-viewer {
  width: 100%;
  margin-left: auto;
}

.gallery-meta {
  padding-top: 3px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
}

.gallery-number {
  font-size: 10px;
  letter-spacing: .15em;
  color: #9B8A7D;
  margin-bottom: 36px;
}

.gallery-label {
  color: var(--brown);
  font-family: var(--heading);
  font-size: 18px;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--brown);
  padding-bottom: 7px;
  margin-bottom: 13px;
}

.gallery-meta p {
  font-size: 11px;
  line-height: 1.8;
  color: #81766D;
  max-width: 140px;
  margin: 0;
}

.gallery-controls {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 35px;
}

.round-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(111, 78, 55, .45);
  color: var(--brown);
  background: transparent;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px;
  transition: background .2s, color .2s;
}

.round-control:hover {
  background: var(--brown);
  color: #fff;
}

.round-control-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-viewer {
  min-width: 0;
}

.single-gallery-tag {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  padding: 10px 13px;
  background: rgba(248, 247, 245, .94);
  color: var(--brown);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}

.main-image-wrap {
  height: clamp(310px, 48vw, 590px);
  position: relative;
  background: #E1DCD6;
  overflow: hidden;
}

.main-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #e7e3df;
  transition: opacity .2s;
}

.image-corner-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 13px;
  background: rgba(248, 247, 245, .92);
  color: var(--brown);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  padding-top: 17px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #AFA39A transparent;
}

.thumbnail {
  width: clamp(115px, 15vw, 180px);
  flex: 0 0 auto;
  border: 1px solid transparent;
  padding: 0 0 10px;
  background: transparent;
  color: #83786E;
  text-align: left;
  cursor: pointer;
  opacity: .68;
  transition: opacity .2s, border-color .2s;
}

.thumbnail img {
  width: 100%;
  height: 83px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #E5E4E2;
  margin-bottom: 9px;
}

.thumbnail span {
  padding: 0 8px;
  display: flex;
  gap: 9px;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.thumbnail b {
  font-weight: 700;
}

.thumbnail.active {
  opacity: 1;
  border-bottom: 2px solid var(--brown);
  color: var(--brown);
}

.gallery-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 15px;
  font-size: 8px;
  letter-spacing: .14em;
  color: #998A7F;
}

.all-projects-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--brown);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--brown);
  padding-bottom: 6px;
  transition: gap .2s ease;
}

.all-projects-link:hover {
  gap: 21px;
}

/* ── Footer ── */

.site-footer {
  padding-top: 30px;
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: center;
  font-size: 9px;
  color: #8A7C70;
}

.footer-wordmark {
  font-family: var(--heading);
  color: var(--brown);
  font-size: 16px;
  letter-spacing: .02em;
}

.site-footer p {
  text-align: center;
}

.contact-link {
  text-align: right;
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 9px;
  letter-spacing: .1em;
}

.copyright {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  text-align: right;
  font-size: 8px;
}

/* ── Responsive: 800px ── */

@media (max-width: 800px) {
  .site-header {
    height: 70px;
    padding: 0 6vw;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 69px;
    left: 0;
    right: 0;
    padding: 20px 6vw;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .nav-links.open {
    display: flex;
  }

  .section-shell {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .ai-section {
    padding-top: 75px;
    padding-bottom: 80px;
  }

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-intro {
    margin-top: 18px;
    max-width: 440px;
  }

  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-layout--interactive {
    display: block;
  }

  .gallery-layout--interactive .gallery-viewer {
    width: 100%;
    margin-left: 0;
  }

  .gallery-meta {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 0;
  }

  .gallery-number,
  .gallery-label,
  .gallery-meta p {
    margin: 0;
  }

  .gallery-number {
    font-size: 8px;
  }

  .gallery-label {
    font-size: 13px;
    padding: 0;
    border: 0;
  }

  .gallery-meta p {
    max-width: none;
    font-size: 9px;
  }

  .gallery-controls {
    grid-column: 1/-1;
    margin: 0;
    padding: 0;
  }

  .round-control {
    width: 34px;
    height: 34px;
  }

  .main-image-wrap {
    height: clamp(250px, 65vw, 440px);
  }

  .thumbnail img {
    height: 150px;
  }

  .gallery-footer {
    align-items: flex-start;
  }

  .all-projects-link {
    text-align: right;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer p {
    display: none;
  }

  .contact-link {
    grid-column: 2;
  }
}

/* ── Responsive: 440px ── */

@media (max-width: 440px) {
  .button {
    font-size: 9px;
    padding: 13px 14px;
  }

  .gallery-meta {
    grid-template-columns: auto auto;
  }

  .gallery-meta p {
    grid-column: 1/-1;
  }

  .gallery-controls {
    margin-top: 4px;
  }

  .main-image-wrap {
    height: 260px;
  }

  .gallery-footer {
    font-size: 7px;
  }

  .copyright {
    text-align: left;
  }
}


/* Desktop: hide mobile menu button */
.menu-toggle {
  display: none;
}

/* Mobile: show mobile menu button */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}