:root {
  --ink: #141210;
  --ink-raised: #1e1b18;
  --ink-soft: #26221e;
  --hairline: #332c26;
  --copper: #b4763c;
  --copper-bright: #c98a4f;
  --rust: #c4442a;
  --steel: #6d8a99;
  --slate: #9db3bc;
  --bone: #ede7dd;
  --bone-muted: #c9c0b4;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --header-height: 88px;
  --max-width: 1180px;
  --ease: 0.22s ease;
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--bone);
  background: var(--ink);
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--copper-bright);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--bone);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--bone);
  line-height: 1.18;
  margin: 0 0 0.85rem;
}

p {
  margin: 0 0 1rem;
}

code {
  font-size: 0.88em;
  background: var(--ink-soft);
  color: var(--slate);
  padding: 0.12em 0.4em;
  border-radius: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
}

.container.narrow {
  max-width: 760px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--ease), box-shadow var(--ease), backdrop-filter var(--ease);
}

.site-header.is-scrolled,
body:not(.page-home) .site-header {
  background: rgba(20, 18, 16, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--bone);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--bone);
}

.logo-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-name {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--slate);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hairline);
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bone);
  margin: 0 auto;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: var(--header-height);
  padding: 0 0.95rem;
  color: var(--bone-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--ease);
}

.nav-link:hover,
.nav-link.is-current,
.nav-item.is-active > .nav-link,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link {
  color: var(--bone);
  text-decoration: none;
}

.nav-item.is-active > .nav-link::after,
.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 1.35rem;
  height: 1px;
  background: var(--copper);
}

.nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.dropdown {
  position: absolute;
  top: calc(100% - 0.5rem);
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: var(--ink-raised);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.7rem 1.15rem;
  color: var(--bone-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.dropdown-link:hover,
.dropdown-link.is-current {
  color: var(--copper-bright);
  background: rgba(180, 118, 60, 0.08);
  text-decoration: none;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-primary {
  background: var(--copper);
  color: var(--ink);
  border-color: var(--copper);
}

.btn-primary:hover {
  background: var(--copper-bright);
  border-color: var(--copper-bright);
  color: var(--ink);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(237, 231, 221, 0.35);
}

.btn-ghost:hover {
  border-color: var(--bone);
  color: var(--bone);
  text-decoration: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--copper-bright);
}

.text-link:hover {
  color: var(--bone);
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section-eyebrow {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 500;
  max-width: 18ch;
}

.section-lead {
  max-width: 42rem;
  color: var(--bone-muted);
  font-size: 1.05rem;
}

.section-rule {
  display: block;
  width: 3rem;
  height: 2px;
  margin: 0 0 1.5rem;
  background: var(--copper);
}

.section-heading {
  margin-bottom: 2.5rem;
}

.page-hero {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 4rem;
}

.page-title {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  padding: calc(var(--header-height) + 2rem) 0 5rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 18, 16, 0.45) 0%, rgba(20, 18, 16, 0.2) 35%, rgba(20, 18, 16, 0.82) 100%),
    linear-gradient(90deg, rgba(20, 18, 16, 0.7) 0%, rgba(20, 18, 16, 0.2) 55%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
  max-width: 640px;
  margin-left: max(1.25rem, calc((100vw - var(--max-width)) / 2));
}

.hero-logo {
  width: 110px;
  height: 110px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-content h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  color: var(--bone);
  font-weight: 500;
  max-width: 14ch;
}

.hero-content p {
  font-size: 1.08rem;
  color: var(--bone-muted);
  margin-bottom: 2rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Home sections ---------- */
.overview-section {
  background: var(--ink);
}

.overview-section p {
  color: var(--bone-muted);
  max-width: 42rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.overview-aside {
  padding: 1.75rem;
  background: var(--ink-raised);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--copper);
}

.overview-aside h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.overview-aside p {
  color: var(--bone-muted);
  margin-bottom: 0;
  font-size: 0.98rem;
}

.services-section {
  background: var(--ink-raised);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  padding: 1.5rem 1.35rem;
  background: var(--ink);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--steel);
  transition: border-color var(--ease), transform var(--ease);
}

.service-card:hover {
  border-top-color: var(--copper);
  transform: translateY(-2px);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.service-card p {
  margin: 0;
  color: var(--bone-muted);
  font-size: 0.95rem;
}

.projects-section {
  background: var(--ink);
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--bone);
  background: var(--ink-raised);
  border: 1px solid var(--hairline);
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease);
}

.project-card:hover {
  border-color: var(--copper);
  color: var(--bone);
  text-decoration: none;
  transform: translateY(-3px);
}

.project-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-soft);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover .project-card-media img {
  transform: scale(1.04);
}

.project-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.project-card-category {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.project-card-summary {
  margin: 0;
  color: var(--bone-muted);
  font-size: 0.95rem;
}

.home-testimonial {
  background: var(--ink-raised);
  border-top: 1px solid var(--hairline);
}

.quote-block {
  max-width: 720px;
}

.quote-block blockquote {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: var(--bone);
  font-weight: 400;
}

.quote-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.quote-author {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.quote-context {
  font-size: 0.85rem;
  color: var(--bone-muted);
}

.cta-section {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(180, 118, 60, 0.12), transparent 50%),
    var(--ink);
  border-top: 1px solid var(--hairline);
  text-align: left;
}

.cta-section .section-title {
  max-width: 16ch;
}

.cta-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
}

.cta-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cta-contact-item span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.cta-contact-item a {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--bone);
}

.cta-contact-item a:hover {
  color: var(--copper-bright);
}

/* ---------- Projects pages ---------- */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 2.5rem;
}

.filter-tab {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--hairline);
  color: var(--bone-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all var(--ease);
}

.filter-tab:hover {
  border-color: var(--copper);
  color: var(--bone);
  text-decoration: none;
}

.filter-tab.is-active {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--ink);
}

.empty-state {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--ink-raised);
  border: 1px dashed var(--hairline);
  color: var(--bone-muted);
}

/* Project detail */
.project-detail-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1rem 0 0;
  color: var(--slate);
  font-size: 0.85rem;
}

.project-meta span {
  letter-spacing: 0.04em;
}

.project-detail-summary {
  color: var(--bone-muted);
  font-size: 1.05rem;
}

.gallery-stage {
  margin-bottom: 2.5rem;
}

.gallery-stage-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-stage-label h2 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.gallery-stage-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  align-items: start;
}

.gallery-item {
  position: relative;
  padding: 0;
  border: 1px solid var(--hairline);
  background: var(--ink-raised);
  cursor: pointer;
  overflow: hidden;
  width: 100%;
  transition: border-color var(--ease);
}

.gallery-item:hover {
  border-color: var(--copper);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.3rem 0.55rem;
  background: rgba(20, 18, 16, 0.82);
  color: var(--bone);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.project-nav a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-muted);
}

.project-nav a:hover {
  color: var(--copper-bright);
}

.project-nav .is-disabled {
  visibility: hidden;
}

/* ---------- About ---------- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.prose p {
  color: var(--bone-muted);
  max-width: 42rem;
}

.sidebar-card {
  padding: 1.75rem;
  background: var(--ink-raised);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--copper);
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.sidebar-card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-card p {
  margin-bottom: 0.75rem;
  color: var(--bone-muted);
  font-size: 0.95rem;
}

.sidebar-card a {
  color: var(--bone);
}

.sidebar-card a:hover {
  color: var(--copper-bright);
}

/* ---------- Testimonials ---------- */
.stub-note {
  font-size: 0.88rem;
  color: var(--steel);
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  padding: 1.5rem;
  background: var(--ink-raised);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--steel);
}

.testimonial-quote {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--bone);
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-author {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.testimonial-context {
  font-size: 0.85rem;
  color: var(--slate);
}

/* ---------- Contact ---------- */
.contact-form {
  margin-top: 2rem;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-status {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--hairline);
  max-width: 32rem;
  font-size: 0.95rem;
}

.form-status-success {
  border-color: var(--steel);
  color: var(--bone);
  background: var(--ink-raised);
}

.form-status-error {
  border-color: var(--rust);
  color: var(--bone);
  background: rgba(196, 68, 42, 0.12);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.form-field .required {
  color: var(--copper);
}

.form-field .optional {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--bone-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bone);
  background: var(--ink-raised);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 0.75rem 0.9rem;
  transition: border-color var(--ease);
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

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

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--rust);
}

.field-error {
  margin: 0;
  font-size: 0.88rem;
  color: var(--rust);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.contact-list {
  margin-top: 2.5rem;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h2 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--slate);
}

.contact-item p {
  margin: 0;
}

.contact-item a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--bone);
}

.contact-item a:hover {
  color: var(--copper-bright);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-raised);
  border-top: 1px solid var(--hairline);
  color: var(--bone-muted);
  padding: 3rem 0 2rem;
}

.footer-inner {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--bone);
  margin: 0 0 0.25rem;
}

.footer-tagline,
.footer-locale {
  margin: 0;
  font-size: 0.9rem;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-bottom: 1.5rem;
}

.footer-contact a {
  color: var(--bone);
}

.footer-contact a:hover {
  color: var(--copper-bright);
}

.footer-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--slate);
  border-top: 1px solid var(--hairline);
  padding-top: 1.25rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 7, 0.94);
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  text-align: center;
}

.lightbox-image {
  max-height: 80vh;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 0.85rem;
  color: var(--bone-muted);
  font-size: 0.9rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--bone);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.lightbox-close {
  top: 1rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hairline);
  background: var(--ink-raised);
  color: var(--bone);
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease), border-color var(--ease);
}

.back-to-top:hover {
  border-color: var(--copper);
  color: var(--copper-bright);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-grid,
  .project-detail-header,
  .split-layout {
    grid-template-columns: 1fr;
  }

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

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
  }

  .logo-mark {
    width: 64px;
    height: 64px;
  }

  .logo-text {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    display: none;
    background: rgba(20, 18, 16, 0.98);
    padding: 1.5rem 0 2rem;
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: min(100% - 2rem, 420px);
    margin: 0 auto;
  }

  .nav-link {
    height: auto;
    padding: 1rem 0.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--hairline);
  }

  .nav-item.is-active > .nav-link::after,
  .nav-link.is-current::after {
    display: none;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: none;
    min-width: 0;
    padding: 0 0 0.5rem 0.75rem;
  }

  .nav-item.is-expanded .dropdown {
    display: block;
  }

  .dropdown-link {
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid rgba(51, 44, 38, 0.6);
  }

  .hero {
    min-height: 85vh;
    align-items: flex-end;
    padding-bottom: 3.5rem;
  }

  .hero-content {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    width: auto;
  }

  .hero-logo {
    width: 88px;
    height: 88px;
  }

  .project-card-grid {
    grid-template-columns: 1fr;
  }

  .project-card-media {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  .services-grid,
  .testimonial-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo {
    width: 80px;
    height: 80px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .cta-contact-row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .project-nav {
    flex-direction: column;
  }
}
