@import url("./palette.css?v=colorful-1");

:root {
  --bg: var(--color-linen);
  --paper: var(--color-paper);
  --beige: var(--color-stone);
  --sand: var(--color-sand);
  --ink: var(--color-ink);
  --charcoal: var(--color-charcoal);
  --radius: 9px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Work Sans", "Trebuchet MS", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.container {
  width: min(1280px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    backdrop-filter 0.28s ease;
}

.site-header.is-scrolled {
  background: var(--header-surface);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px var(--shadow-deep);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  color: var(--color-white);
  font-family: "Work Sans", "Trebuchet MS", sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  text-transform: uppercase;
}

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

.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: clamp(14px, 1.8vw, 34px);
}

.menu a {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Work Sans", "Trebuchet MS", sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: clamp(0.86rem, 0.98vw, 0.95rem);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.menu a:hover {
  color: var(--color-white);
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: transparent;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

.hero__image {
  position: absolute;
  inset: 0;
  background: url("./assets/images/hero-kitchen.webp") center center / cover no-repeat;
  transform: scale(1);
  animation: hero-ken-burns 22s ease-in-out infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    var(--hero-overlay-strong) 0%,
    var(--hero-overlay-mid) 36%,
    var(--hero-overlay-light) 68%,
    var(--hero-overlay-edge) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1180px, 92vw);
  margin: 0 auto;
  text-align: left;
  color: var(--color-white);
  padding: clamp(146px, 23vh, 204px) 16px clamp(62px, 11vh, 94px);
}

.hero__eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  animation: hero-fade-up 0.85s ease 0.05s both;
}

.hero__subheadline {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  animation: hero-fade-up 0.85s ease 0.2s both;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  opacity: 0.75;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Oswald", "Impact", sans-serif;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: "Work Sans", "Trebuchet MS", sans-serif;
  font-weight: 600;
  font-size: clamp(2.28rem, 5.5vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  text-wrap: balance;
  max-width: 14ch;
  animation: hero-fade-up 0.85s ease both;
}

.hero__actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  animation: hero-fade-up 0.85s ease 0.35s both;
}

.hero__metrics {
  margin-top: clamp(24px, 4.5vh, 44px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  animation: hero-fade-up 0.85s ease 0.48s both;
}

.hero-metric {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-radius: 14px;
  backdrop-filter: blur(4px);
  padding: 12px 14px;
}

.hero-metric strong {
  display: block;
  font-size: clamp(1.25rem, 2.1vw, 1.95rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.hero-metric span {
  display: block;
  font-size: clamp(0.72rem, 0.95vw, 0.82rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
}

.btn {
  padding: 13px 26px;
  border-radius: 999px;
  font-family: "Work Sans", "Trebuchet MS", sans-serif;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease,
    border-color 0.24s ease;
}

.btn:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px var(--shadow-deep);
}

.btn--solid {
  background: var(--color-cream);
  border: 1px solid var(--color-cream);
  color: var(--color-panel-raised);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: var(--color-white);
}

@keyframes hero-ken-burns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.085);
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__image,
  .hero__eyebrow,
  .hero h1,
  .hero__subheadline,
  .hero__actions,
  .hero__metrics {
    animation: none;
  }

  .process-step {
    transition: none;
  }
}

.section-space {
  padding: clamp(50px, 8vw, 94px) 0;
}

.process {
  background: var(--charcoal);
  color: var(--color-on-dark);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  position: relative;
}

.process .eyebrow {
  margin-bottom: 14px;
  color: var(--color-oak);
  opacity: 1;
}

.process h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  letter-spacing: 0.01em;
  line-height: 1.04;
  margin-bottom: 12px;
}

.process__intro {
  margin: 0 0 clamp(24px, 4vw, 36px);
  max-width: 720px;
  color: var(--color-muted-on-dark);
  line-height: 1.65;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  position: relative;
}

.process__grid::before {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  top: calc(40% + 20px);
  border-top: 1px dashed var(--line-on-dark-strong);
  pointer-events: none;
}

.process-step {
  background: linear-gradient(180deg, var(--color-panel-raised), var(--color-panel));
  border: 1px solid var(--line-on-dark);
  border-radius: 16px;
  padding: 12px 12px clamp(18px, 2vw, 22px);
  box-shadow: 0 16px 34px var(--shadow);
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.process-step:hover {
  transform: translateY(-3px);
  border-color: var(--color-oak);
  box-shadow: 0 22px 42px var(--shadow-deep);
}

.process-step__media {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}

.process-step__media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--charcoal);
  border: 1px solid var(--line-on-dark-strong);
  color: var(--color-cream);
  font-weight: 600;
  font-size: 0.79rem;
  letter-spacing: 0.11em;
  margin-bottom: 16px;
}

.process-step h3 {
  font-family: "Oswald", "Impact", sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 1.95vw, 1.42rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.process-step p {
  margin: 0;
  color: var(--color-muted-on-dark);
  line-height: 1.58;
  font-size: 0.92rem;
}

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

.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.card img {
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}

.track-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.track {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 99px;
  background: var(--sand);
}

.track--active {
  background: var(--color-walnut);
}

.service-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: clamp(500px, 62vh, 760px);
}

.service-feature__text {
  background: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 78px);
}

.service-feature h2 {
  font-size: clamp(2.2rem, 4.2vw, 4.7rem);
  margin-bottom: 12px;
}

.service-feature p {
  margin: 0 0 24px;
  opacity: 0.82;
}

.btn--dark {
  display: inline-block;
  width: fit-content;
  background: var(--color-walnut);
  color: var(--color-white);
}

.service-feature__media {
  overflow: hidden;
}

.service-feature__media img {
  height: 100%;
  object-fit: cover;
}

.slide-control {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 0;
  background: var(--floating-surface);
  color: var(--color-white);
  font-size: 1.3rem;
  transform: translateY(-50%);
}

.slide-control--left {
  left: 12px;
}

.slide-control--right {
  right: 12px;
}

.social-bar {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.social-bar__inner {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: var(--ink);
}

.policy-links {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
}

.policy-links a {
  color: var(--color-muted);
}

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

.masonry-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.site-footer {
  background: var(--charcoal);
  color: var(--color-muted-on-dark);
}

.site-footer__inner {
  min-height: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--floating-surface);
  color: var(--color-white);
  font-size: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1120px) {
  .hero h1 {
    font-size: clamp(1.95rem, 5.3vw, 4.2rem);
  }

  .hero__subheadline {
    font-size: clamp(0.95rem, 1.5vw, 1.14rem);
  }

  .service-feature h2 {
    font-size: clamp(1.9rem, 4vw, 3.9rem);
  }
}

@media (max-width: 980px) {
  .hero__content {
    padding-top: clamp(138px, 23vh, 194px);
  }

  .hero__metrics {
    max-width: 620px;
  }

  .process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process__grid::before {
    display: none;
  }

  .process-step:last-child {
    grid-column: 1 / -1;
  }

  .cards-grid,
  .track-grid,
  .masonry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-feature {
    grid-template-columns: 1fr;
  }

  .service-feature__media {
    min-height: 320px;
  }

  .slide-control {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .social-bar__inner {
    min-height: 110px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    min-height: 76px;
    padding: 10px 0;
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--header-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-header.is-open .site-nav {
    max-height: 360px;
  }

  .site-header.is-open {
    background: var(--header-surface);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
  }

  .menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .menu a {
    display: block;
    width: 100%;
    padding: 12px 4vw;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu li:last-child a {
    border-bottom: 0;
  }

}

@media (max-width: 640px) {
  .container {
    width: min(1280px, 94vw);
  }

  .hero__content {
    text-align: center;
    padding: 124px 14px 64px;
  }

  .hero__eyebrow {
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: clamp(1.72rem, 9.2vw, 2.75rem);
    max-width: 13ch;
    margin-inline: auto;
    margin-bottom: 16px;
  }

  .hero__subheadline {
    font-size: 0.94rem;
    line-height: 1.5;
    margin-inline: auto;
  }

  .hero__actions {
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
  }

  .hero__metrics {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
    margin-top: 20px;
  }

  .process h2 {
    margin-bottom: 18px;
  }

  .process__intro {
    margin-bottom: 18px;
    font-size: 0.92rem;
  }

  .process__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-step:last-child {
    grid-column: auto;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding-inline: 16px;
  }

  .cards-grid,
  .track-grid,
  .masonry-grid {
    grid-template-columns: 1fr;
  }

  .service-feature {
    min-height: auto;
  }

  .service-feature__text {
    padding: 30px 18px;
  }

  .service-feature h2 {
    font-size: clamp(1.8rem, 11vw, 2.9rem);
  }

  .service-feature__media {
    min-height: 260px;
  }

  .slide-control {
    width: 30px;
    height: 30px;
    bottom: 12px;
  }

  .slide-control--left {
    left: 8px;
  }

  .slide-control--right {
    right: 8px;
  }

  .social-bar__inner {
    min-height: 110px;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 14px 0;
  }

  .policy-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.78rem;
  }

  .site-footer__inner {
    padding: 18px 0;
    justify-content: center;
    text-align: center;
  }

  .to-top {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
  }
}

/* Shared material palette across the sections below the hero. */
.eyebrow {
  color: var(--color-walnut);
  opacity: 1;
}

.process-step__number {
  color: var(--color-oak);
}

.btn--solid:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.btn--dark {
  color: var(--color-on-dark);
}

.btn--dark:hover {
  background: var(--color-walnut-dark);
}

.btn--ghost:hover {
  background: var(--overlay);
  border-color: var(--color-cream);
}

.service-feature__text > p:not(.eyebrow) {
  color: var(--color-muted);
  opacity: 1;
  line-height: 1.6;
}

.social-links a:hover,
.slide-control:hover,
.to-top:hover {
  background: var(--color-walnut);
  color: var(--color-on-dark);
}

.social-links a:hover svg {
  fill: currentColor;
}

.policy-links a:hover {
  color: var(--color-walnut);
}

:is(a, button):focus-visible {
  outline: 3px solid var(--color-walnut);
  outline-offset: 5px;
}

:is(.site-header, .hero, .process, .site-footer) :is(a, button):focus-visible,
.to-top:focus-visible {
  outline-color: var(--color-cream);
}

button {
  cursor: pointer;
}

/* Project gallery */
.home-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.home-gallery-heading h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.home-gallery-heading > a { color: var(--color-walnut); border-bottom: 1px solid var(--color-walnut); padding-bottom: 6px; }
.projects-page .site-header { background: var(--charcoal); }
.menu a[aria-current="page"] { color: var(--color-cream); text-decoration: underline; text-underline-offset: 7px; }
.gallery-section { padding-top: clamp(108px, 10vw, 140px); }
.gallery-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 32px; padding: 20px 0; border-block: 1px solid var(--line); }
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-filter { padding: 11px 22px; border: 1px solid transparent; border-radius: 99px; background: transparent; font: inherit; font-size: .88rem; color: var(--color-muted); transition: background .2s, color .2s; }
.gallery-filter:hover { border-color: var(--line-strong); color: var(--ink); }
.gallery-filter[aria-pressed="true"] { background: var(--charcoal); color: var(--color-on-dark); }
.gallery-count { margin: 0; color: var(--color-muted); font-size: .8rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; align-items: start; }
.gallery-card { min-width: 0; }
.gallery-card[hidden] { display: none; }
.gallery-card__open { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; font: inherit; color: inherit; }
.gallery-card__image { display: block; position: relative; overflow: hidden; border-radius: 4px; background: var(--sand); }
.gallery-card__image img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s cubic-bezier(.2,.65,.3,1); }
.gallery-card:nth-child(3n + 1) .gallery-card__image img { aspect-ratio: 4 / 3.7; }
.gallery-card__open:hover img { transform: scale(1.035); }
.gallery-card__expand { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 44px; height: 44px; background: var(--color-paper); color: var(--ink); border-radius: 50%; font-size: 1.4rem; transition: background .2s, color .2s; }
.gallery-card__open:hover .gallery-card__expand { background: var(--color-walnut); color: var(--color-on-dark); }
.gallery-card.is-pending { opacity: 0; transform: translateY(35px); }
.gallery-card.is-revealed { animation: gallery-reveal .8s cubic-bezier(.2,.65,.3,1) both; }
@keyframes gallery-reveal { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: translateY(0); } }
.gallery-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; padding: 48px 0 0; margin-top: 64px; border-top: 1px solid var(--line); }
.gallery-cta h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(2rem, 4vw, 3.5rem); }
/* Casual-save deterrents only: displayed images can still be captured. */
img, .hero__image { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
body.has-lightbox { overflow: hidden; }
.lightbox { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; padding: 0; border: 0; color: var(--color-on-dark); background: var(--header-surface); }
.lightbox::backdrop { background: var(--charcoal); }
.lightbox[open] { display: grid; place-items: center; animation: lightbox-in .25s ease; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__shell { position: relative; width: 100%; height: 100%; min-height: 0; }
.lightbox__toolbar, .lightbox__toolbar > div, .lightbox__caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lightbox__brand { font-size: .7rem; letter-spacing: .12em; color: var(--color-muted-on-dark); }
.lightbox button { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-on-dark-strong); border-radius: 50%; background: transparent; color: var(--color-on-dark); font: inherit; font-size: 1.5rem; }
.lightbox button:hover { background: var(--color-panel-raised); }
.lightbox button:focus-visible { outline-color: var(--color-cream); }
.lightbox__stage { position: absolute; inset: 0; min-height: 0; }
.lightbox__viewport { width: 100%; height: 100%; min-height: 0; overflow: auto; position: relative; overscroll-behavior: contain; background: var(--charcoal); }
.lightbox__image { width: 100%; height: 100%; object-fit: contain; }
.lightbox__viewport.is-zoomed .lightbox__image { width: 180%; max-width: none; height: auto; min-height: 100%; object-fit: cover; }
.lightbox__zoom[aria-pressed="true"] { background: var(--color-walnut); }
.lightbox__category { margin: 0 0 5px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-oak); }
.lightbox__caption h2 { font: 500 clamp(1.1rem, 2vw, 1.5rem) "Work Sans", sans-serif; line-height: 1.4; }
.lightbox__count { font-size: .85rem; white-space: nowrap; color: var(--color-muted-on-dark); }
.lightbox__hint { margin: 0; text-align: center; font-size: .72rem; color: var(--color-muted-on-dark); }
.lightbox__error { position: absolute; inset: 35% 20px auto; text-align: center; color: var(--color-muted-on-dark); }
@media (max-width: 700px) {
  .gallery-filter { padding: 10px 15px; }
  .gallery-grid { gap: 28px 16px; }
  .gallery-card__expand { width: 36px; height: 36px; right: 10px; bottom: 10px; }
  .lightbox__stage button { width: 40px; height: 44px; }
  .lightbox__brand, .lightbox__hint { display: none; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card__image img, .gallery-card:nth-child(3n + 1) .gallery-card__image img { aspect-ratio: 4 / 3; }
  .gallery-count { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-card.is-pending { opacity: 1; transform: none; }
  .gallery-card.is-revealed, .lightbox[open] { animation: none; }
  .gallery-card__image img, .gallery-filter, .gallery-card__expand { transition: none; }
}

.lightbox__image[hidden] { display: none; }

/* Keep accessible page and image names without visible captions. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Let the fitted photo use the full viewport; controls float above it. */
.lightbox__toolbar {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  z-index: 3;
  pointer-events: none;
}
.lightbox__toolbar > div { margin-left: auto; pointer-events: auto; }
.lightbox button { background: var(--floating-surface); }
.lightbox__brand, .lightbox__count, .lightbox__hint {
  padding: 8px 12px;
  border-radius: 99px;
  background: var(--floating-surface);
}
.lightbox__previous, .lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.lightbox__previous { left: max(12px, env(safe-area-inset-left)); }
.lightbox__next { right: max(12px, env(safe-area-inset-right)); }
.lightbox__caption {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2;
  pointer-events: none;
}
.lightbox__hint {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

/* Language options stay visible outside the mobile menu. */
.language-switch {
  display: inline-flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-on-dark-strong);
  border-radius: 99px;
}
.language-switch[hidden] { display: none; }
.language-switch button {
  min-width: 36px;
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--color-on-dark);
  font: 500 .72rem "Work Sans", sans-serif;
  letter-spacing: .04em;
}
.language-switch button[aria-pressed="true"] {
  background: var(--color-cream);
  color: var(--color-ink);
}
.language-switch button:hover { background: var(--color-walnut); color: var(--color-on-dark); }
.site-nav { margin-left: auto; }
@media (max-width: 900px) {
  .site-header__inner { gap: 12px; }
  .site-header .logo { margin-right: auto; }
  .language-switch { order: 2; }
  .site-header .menu-toggle { order: 3; flex-shrink: 0; }
  .site-nav { margin-left: 0; }
}

/* A tactile sample deck that opens with the page's natural scroll. */
.materials {
  --material-progress: 1;
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.materials.is-scroll-ready { height: 190svh; }
.materials__sticky { padding: 112px 0 32px; }
.materials.is-scroll-ready .materials__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
}
.materials__inner { height: 100%; display: flex; flex-direction: column; }
.materials__heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; position: relative; z-index: 8; }
.materials__heading h2 { max-width: 12ch; font: 500 clamp(2.6rem, 4.6vw, 4.6rem)/1.02 "Cormorant Garamond", Georgia, serif; letter-spacing: -.03em; text-wrap: balance; }
.materials__intro { margin: 0; max-width: 340px; color: var(--color-muted); font-size: .95rem; line-height: 1.75; }
.material-deck {
  --sample-width: clamp(126px, 16vw, 184px);
  --sample-spread: clamp(44px, 12vw, 148px);
  position: relative;
  flex: 1;
  min-height: 370px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  perspective: 1100px;
}
.material-sample {
  position: absolute;
  left: 50%;
  top: 44%;
  width: var(--sample-width);
  aspect-ratio: .68;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
  background: var(--color-paper);
  box-shadow: 0 3px 3px var(--line), 0 24px 38px var(--shadow);
  transform-origin: 50% 90%;
  transform: translate(-50%, -50%) translateX(calc(var(--offset) * var(--sample-spread) * var(--material-progress))) translateY(calc(var(--lift) * var(--material-progress) * 1px)) rotate(calc(var(--angle) * var(--material-progress) * 1deg)) rotateY(calc((1 - var(--material-progress)) * -12deg));
  z-index: var(--layer);
}
.materials.is-scroll-ready .material-sample { will-change: transform; }
.material-sample__surface { flex: 1; min-height: 0; border-radius: 2px; position: relative; background-size: cover; background-position: center; }
.material-sample__surface::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; background: linear-gradient(125deg, rgba(255,255,255,.12), transparent 55%, rgba(34,31,28,.06)); }
.material-sample--walnut .material-sample__surface { background-image: url('./assets/images/material-walnut.svg'); }
.material-sample--marble .material-sample__surface { background-image: url('./assets/images/material-marble.svg'); }
.material-sample--oak .material-sample__surface { background-image: url('./assets/images/material-oak.svg'); }
.material-sample--clay .material-sample__surface { background-color: var(--color-sand); background-image: repeating-linear-gradient(105deg, transparent 0 2px, rgba(255,255,255,.06) 2px 3px); }
.material-sample--graphite .material-sample__surface { background-color: var(--color-charcoal); background-image: repeating-linear-gradient(25deg, transparent 0 2px, rgba(255,255,255,.025) 2px 3px); }
.material-sample__label { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 12px 3px 4px; font-size: .76rem; color: var(--ink); }
.material-sample__label small { color: var(--color-muted); font-size: .62rem; }
.materials__footer { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; color: var(--color-muted); font-size: .65rem; letter-spacing: .12em; }
.materials__scroll { letter-spacing: .02em; }
.materials__progress { height: 2px; background: var(--sand); overflow: hidden; }
.materials__progress span { display: block; width: 100%; height: 100%; background: var(--color-walnut); transform: scaleX(var(--material-progress)); transform-origin: left; }
@media (max-width: 700px) {
  .materials__sticky { padding-top: 104px; padding-bottom: 24px; }
  .materials__heading { display: block; }
  .materials__heading h2 { max-width: 16ch; font-size: clamp(2.4rem, 7vw, 3.3rem); }
  .materials__intro { max-width: 440px; margin-top: 18px; font-size: .87rem; line-height: 1.65; }
  .material-deck { min-height: 270px; margin-top: 16px; }
  .materials__footer { font-size: .58rem; letter-spacing: .04em; }
}
@media (max-width: 380px) {
  .material-deck { --sample-width: 112px; --sample-spread: 40px; }
  .material-sample__label { font-size: .64rem; }
}
@media (max-height: 650px) {
  .materials.is-scroll-ready { height: auto; }
  .materials.is-scroll-ready .materials__sticky { position: relative; height: auto; min-height: 0; }
  .material-sample { --material-progress: 1; }
  .materials__progress, .materials__scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .materials.is-scroll-ready { height: auto; }
  .materials.is-scroll-ready .materials__sticky { position: relative; height: auto; min-height: 0; }
  .material-sample { --material-progress: 1; will-change: auto; }
  .materials__progress, .materials__scroll { display: none; }
}

.material-sample--clay .material-sample__label,
.material-sample--graphite .material-sample__label { flex-direction: row-reverse; }
.materials:not(.is-scroll-ready) .materials__scroll,
.materials:not(.is-scroll-ready) .materials__progress { display: none; }

/* Optional palette experiment: preview finishes without changing the site theme. */
.material-sample__pick { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; padding: 0; border: 0; border-radius: 2px; background: transparent; color: inherit; text-align: left; font: inherit; }
.material-sample__pick .material-sample__surface { width: 100%; }
.material-sample__pick .material-sample__label { width: 100%; }
.material-sample__pick[aria-pressed="true"] .material-sample__surface { outline: 2px solid var(--color-walnut); outline-offset: -2px; }
.material-sample:focus-within { z-index: 10; }
.palette-studio { background: var(--color-linen); scroll-margin-top: 92px; }
.palette-studio__heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.palette-studio__heading h2 { font: 500 clamp(2.5rem, 4.5vw, 4.5rem)/1.05 "Cormorant Garamond", Georgia, serif; letter-spacing: -.025em; }
.palette-studio__heading > p { margin: 0; max-width: 360px; font-size: .95rem; line-height: 1.75; color: var(--color-muted); }
.palette-studio__layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 54px); align-items: center; }
.palette-options { display: grid; gap: 12px; }
.palette-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 14px; text-align: left; color: var(--ink); font: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; transition: border-color .2s, background .2s; }
.palette-option:hover { border-color: var(--color-walnut); }
.palette-option[aria-pressed="true"] { border-color: var(--color-walnut); background: var(--color-cream); }
.palette-option.is-pending { border-style: dashed; }
.palette-option__swatches { display: flex; flex-shrink: 0; padding-left: 0; }
.palette-option__swatches i { width: 25px; height: 36px; display: block; margin-left: -9px; border: 2px solid var(--paper); border-radius: 99px; background-position: center; background-size: cover; box-shadow: 0 2px 3px var(--line); }
.palette-option__swatches i:first-child { margin-left: 0; }
.swatch-walnut { background-image: url('./assets/images/material-walnut.svg'); }
.swatch-oak { background-image: url('./assets/images/material-oak.svg'); }
.swatch-marble { background-image: url('./assets/images/material-marble.svg'); }
.swatch-stone { background-color: var(--color-stone); }
.swatch-sand { background-color: var(--color-sand); }
.swatch-graphite { background-color: var(--color-charcoal); }
.palette-option__text { display: grid; gap: 6px; min-width: 0; }
.palette-option__text strong { font-size: .93rem; font-weight: 500; }
.palette-option__text small { font-size: .68rem; line-height: 1.5; color: var(--color-muted); }
.palette-option__check { margin-left: auto; font-size: .85rem; color: var(--color-walnut); visibility: hidden; }
.palette-option[aria-pressed="true"] .palette-option__check { visibility: visible; }
.palette-studio__description { margin: 22px 0 18px; color: var(--color-muted); font-size: .85rem; line-height: 1.7; min-height: 4.8em; }
.palette-studio__reset { border: 0; padding: 5px 0; background: transparent; color: var(--color-walnut); font: inherit; font-size: .8rem; border-bottom: 1px solid var(--line-strong); }
.palette-studio__figure { margin: 0; min-width: 0; }
.palette-studio__images { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; background: var(--color-stone); box-shadow: 0 20px 40px var(--shadow); }
.palette-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.palette-scene.is-current { opacity: 1; }
.palette-studio__figure figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; }
.palette-studio__selected { font-size: .95rem; }
.palette-studio__figure figcaption > span:last-child { color: var(--color-muted); font-size: .65rem; }
.palette-studio__message { margin: 8px 0 0; min-height: 1.5em; font-size: .75rem; color: var(--color-muted); }
@media (max-width: 980px) {
  .palette-studio__layout { grid-template-columns: 1fr; gap: 28px; }
  .palette-studio__figure { grid-row: 1; }
  .palette-options { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .palette-option { flex-direction: column; align-items: start; padding: 16px 12px; gap: 12px; position: relative; }
  .palette-option__check { position: absolute; top: 14px; right: 12px; }
  .palette-studio__description { min-height: 0; margin: 18px 0 12px; }
}
@media (max-width: 700px) {
  .palette-studio__heading { display: block; margin-bottom: 26px; }
  .palette-studio__heading > p { margin-top: 18px; max-width: 460px; font-size: .88rem; }
}
@media (max-width: 420px) {
  .palette-options { gap: 7px; }
  .palette-option { padding: 14px 9px; }
  .palette-option__text strong { font-size: .78rem; line-height: 1.4; }
  .palette-option__text small { font-size: .6rem; }
  .palette-option__swatches i { width: 23px; height: 32px; }
  .palette-option__check { right: 6px; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .palette-scene, .palette-option { transition: none; }
}

/* Colorful finish options, alongside the original wood and neutral looks. */
.swatch-sage { background-color: var(--color-sage); }
.swatch-blue { background-color: var(--color-blue); }
.swatch-terracotta { background-color: var(--color-terracotta); }
.swatch-cream { background-color: var(--color-cream); }
@media (min-width: 981px) {
  .palette-studio__layout { grid-template-columns: minmax(320px, .95fr) minmax(0, 2fr); gap: 32px; }
  .palette-options { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .palette-option { flex-direction: column; align-items: start; padding: 16px 12px; gap: 12px; position: relative; }
  .palette-option__check { position: absolute; top: 14px; right: 12px; }
}
@media (max-width: 480px) {
  .palette-options { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
