:root {
  color-scheme: dark;
  --ink: #090a0b;
  --black: #030304;
  --charcoal: #101112;
  --graphite: #181a1c;
  --paper: #f4efe6;
  --bone: #d6cebf;
  --muted: #a99f91;
  --gold: #d0a85d;
  --moss: #74835d;
  --clay: #b45a45;
  --teal: #529b95;
  --plum: #826b90;
  --line-dark: rgba(244, 239, 230, 0.15);
  --line-light: rgba(244, 239, 230, 0.11);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  --texture:
    repeating-linear-gradient(0deg, rgba(244, 239, 230, 0.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(244, 239, 230, 0.02) 0 1px, transparent 1px 9px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(208, 168, 93, 0.035), transparent 22rem),
    var(--black);
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--texture);
  opacity: 0.12;
  mix-blend-mode: soft-light;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 4vw;
  color: var(--paper);
  background: rgba(3, 3, 4, 0.72);
  border-bottom: 1px solid rgba(244, 239, 230, 0.11);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.92rem;
  background: rgba(244, 239, 230, 0.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex: 0 0 auto;
  padding: 0.72rem 0.82rem;
  border-radius: 6px;
  color: rgba(244, 239, 230, 0.82);
  font-size: 0.86rem;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 9.4rem 4vw 5rem;
  background: var(--black);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 3, 4, 0.96) 0%, rgba(3, 3, 4, 0.78) 35%, rgba(3, 3, 4, 0.36) 68%, rgba(3, 3, 4, 0.58) 100%),
    linear-gradient(0deg, rgba(3, 3, 4, 0.9) 0%, rgba(3, 3, 4, 0.16) 48%, rgba(3, 3, 4, 0.54) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 3, 4, 0.72) 0%, transparent 23%, transparent 68%, rgba(3, 3, 4, 0.96) 100%),
    var(--texture);
  opacity: 0.78;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: brightness(0.88) contrast(1.08);
  transform: scale(1.012);
}

.hero-content {
  position: relative;
  width: min(940px, 100%);
  padding-left: clamp(1.15rem, 2vw, 1.9rem);
}

.hero-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.28rem;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold) 17%, rgba(208, 168, 93, 0.64) 72%, transparent);
}

.eyebrow,
.section-kicker,
.timeline,
.service-label {
  margin: 0 0 1rem;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: 5.1rem;
  line-height: 0.86;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 22px 55px rgba(0, 0, 0, 0.66);
}

.hero h1 span {
  display: block;
}

.hero-copy {
  width: min(690px, 100%);
  margin: 1.4rem 0 0;
  color: rgba(244, 239, 230, 0.9);
  font-size: 1.24rem;
  font-weight: 650;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.58);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button,
.filter-button,
.lightbox-close,
.lightbox-nav {
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.84rem 1.08rem;
}

.button-primary {
  background: var(--paper);
  color: var(--ink);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
}

.button:hover,
.button:focus-visible,
.filter-button:hover,
.filter-button:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.work-card button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.section {
  padding: 6.25rem 4vw;
}

.about-section {
  background: #0b0c0d;
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.about-section .section-kicker {
  color: var(--gold);
}

.about-section > .section-kicker {
  width: min(1180px, 100%);
  margin: 0 auto 1rem;
}

.about-layout,
.contact-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: 4rem;
  align-items: center;
}

h2,
h3,
p {
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 980px;
  font-size: 3rem;
  line-height: 0.98;
  font-weight: 930;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.06;
}

.about-copy p {
  max-width: 850px;
  margin: 1.55rem 0 0;
  color: rgba(244, 239, 230, 0.78);
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.68;
}

.about-copy p:first-of-type {
  color: rgba(244, 239, 230, 0.9);
  font-size: 1.3rem;
}

.portrait-block {
  margin: 0;
}

.portrait-block img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow);
}

.portrait-block figcaption {
  margin-top: 0.85rem;
  color: rgba(244, 239, 230, 0.64);
  font-size: 0.9rem;
  font-weight: 780;
}

.services-section {
  background: #080909;
  border-bottom: 1px solid var(--line-dark);
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 2rem;
  align-items: end;
}

.section-heading.compact {
  display: block;
}

.section-heading > p {
  margin: 0;
  color: rgba(244, 239, 230, 0.7);
  font-size: 1rem;
}

.gallery-section .section-heading {
  display: block;
}

.service-grid {
  width: min(1180px, 100%);
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 18rem;
  padding: 1.45rem;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #121416;
}

.service-card h3 {
  font-size: 1.85rem;
  text-transform: uppercase;
}

.service-card p:last-child {
  margin: 1.1rem 0 0;
  color: rgba(244, 239, 230, 0.66);
}

.accent-gold {
  border-top: 5px solid var(--gold);
}

.accent-moss {
  border-top: 5px solid var(--moss);
}

.accent-clay {
  border-top: 5px solid var(--clay);
}

.dark-section {
  background: var(--black);
  border-bottom: 1px solid var(--line-dark);
}

.filter-bar {
  width: min(1180px, 100%);
  margin: 0 auto 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-bottom: 0.25rem;
}

.filter-button {
  flex: 0 0 auto;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(244, 239, 230, 0.22);
  color: rgba(244, 239, 230, 0.78);
  background: rgba(244, 239, 230, 0.045);
}

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

.gallery-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.work-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(244, 239, 230, 0.08);
  background: var(--graphite);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
}

.work-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: inherit;
  background: transparent;
  text-align: left;
  overflow: hidden;
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #111111;
  transition: transform 280ms ease, filter 280ms ease;
}

.work-card.is-design img {
  object-fit: contain;
  padding: 0.85rem;
  background: #121212;
}

.work-card:hover img,
.work-card:focus-within img {
  transform: scale(1.018);
  filter: saturate(1.05) contrast(1.02);
}

.experience-section {
  background: #0b0c0d;
  border-bottom: 1px solid var(--line-dark);
}

.experience-list {
  width: min(1180px, 100%);
  margin: 2rem auto 0;
  display: grid;
  gap: 1rem;
}

.experience-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #121416;
}

.logo-panel {
  min-height: 13rem;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  border-radius: 6px;
  background: #050506;
  border: 1px solid rgba(244, 239, 230, 0.08);
}

.logo-panel img {
  width: 100%;
  max-height: 11rem;
  object-fit: contain;
}

.logo-square img {
  max-width: 10rem;
}

.experience-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1rem 1rem 0;
}

.experience-copy h3 {
  text-transform: uppercase;
  font-size: 2rem;
}

.experience-copy p {
  max-width: 780px;
  margin: 1rem 0 0;
  color: rgba(244, 239, 230, 0.68);
}

.experience-copy .role {
  margin-top: 0.3rem;
  color: var(--gold);
  font-weight: 850;
}

.contact-section {
  background: #090a0b;
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.contact-section .section-kicker {
  color: var(--gold);
}

.contact-actions {
  display: grid;
  gap: 0.8rem;
}

.contact-link {
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.2rem;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #121416;
}

.contact-link span {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 850;
}

.contact-link strong {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.site-footer {
  padding: 2rem 4vw 1.4rem;
  border-top: 1px solid var(--line-dark);
  color: rgba(244, 239, 230, 0.72);
  background: var(--black);
  font-size: 0.86rem;
  font-weight: 720;
}

.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.6fr));
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.footer-brand strong {
  display: block;
  color: var(--paper);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.footer-brand span,
.footer-column span,
.footer-column a {
  display: block;
  margin-top: 0.42rem;
  line-height: 1.45;
}

.footer-column a:hover,
.footer-column a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--paper);
  outline: none;
}

.footer-label {
  margin: 0 0 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 880;
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(0.9rem, 3vw, 2rem);
  background: rgba(3, 3, 4, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(208, 168, 93, 0.07), transparent 34%),
    var(--texture);
  opacity: 0.4;
  pointer-events: none;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: calc(100svh - 2rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.85rem;
}

.lightbox-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.lightbox-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.38rem 0.8rem;
}

.lightbox-meta span {
  color: rgba(244, 239, 230, 0.64);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.lightbox-meta strong {
  color: var(--paper);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.lightbox-close {
  flex: 0 0 auto;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  background: var(--paper);
}

.lightbox img {
  justify-self: center;
  width: auto;
  max-width: 100%;
  max-height: min(78svh, 820px);
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  background: #050506;
  box-shadow: 0 28px 85px rgba(0, 0, 0, 0.52);
}

.lightbox-nav {
  position: absolute;
  top: calc(50% + 1.4rem);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(3, 3, 4, 0.7);
  backdrop-filter: blur(12px);
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  transform: translateY(-50%);
}

.lightbox-prev {
  left: clamp(0.45rem, 2vw, 1.25rem);
}

.lightbox-next {
  right: clamp(0.45rem, 2vw, 1.25rem);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  color: var(--ink);
  background: var(--gold);
  outline: none;
}

@media (min-width: 1020px) {
  .hero h1 {
    font-size: 8.4rem;
  }
}

@media (min-width: 1320px) {
  .hero h1 {
    font-size: 9.6rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    max-width: calc(100vw - 6.3rem);
  }

  .hero {
    min-height: 88svh;
  }

  .hero-image {
    object-position: 62% center;
  }

  .about-layout,
  .contact-layout,
  .section-heading,
  .experience-item {
    grid-template-columns: 1fr;
  }

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

  .experience-copy {
    padding: 0.3rem 0.2rem 0.5rem;
  }

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

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

@media (max-width: 680px) {
  .site-header {
    gap: 0.45rem;
    padding: 0.62rem 0.5rem;
  }

  .brand {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.78rem;
  }

  .nav-links {
    max-width: calc(100vw - 3.35rem);
    gap: 0.08rem;
  }

  .nav-links a {
    padding: 0.55rem 0.36rem;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 90svh;
    padding: 7.5rem 1rem 3rem;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(5, 5, 6, 0.9), rgba(5, 5, 6, 0.58)),
      linear-gradient(0deg, rgba(5, 5, 6, 0.84), rgba(5, 5, 6, 0.08) 52%);
  }

  .hero-image {
    object-position: 64% center;
  }

  .hero-content {
    padding-left: 1rem;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section {
    padding: 4.4rem 1rem;
  }

  h2 {
    font-size: 2.18rem;
  }

  .about-layout,
  .contact-layout {
    gap: 2.4rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .about-copy p {
    font-size: 1.05rem;
    line-height: 1.62;
  }

  .about-copy p:first-of-type {
    font-size: 1.13rem;
  }

  .experience-copy h3 {
    font-size: 1.45rem;
  }

  .logo-panel {
    min-height: 10rem;
  }

  .site-footer {
    padding: 1.6rem 1rem 1.2rem;
  }

  .footer-bottom {
    margin-top: 1.4rem;
  }

  .lightbox {
    padding: 0.75rem;
  }

  .lightbox-shell {
    max-height: calc(100svh - 1.5rem);
    gap: 0.7rem;
  }

  .lightbox-topbar {
    gap: 0.75rem;
  }

  .lightbox-meta strong {
    flex-basis: 100%;
    font-size: 1rem;
  }

  .lightbox-close {
    padding: 0.65rem 0.75rem;
  }

  .lightbox img {
    max-height: 72svh;
  }

  .lightbox-nav {
    top: auto;
    bottom: 0.85rem;
    width: 2.45rem;
    height: 2.45rem;
    transform: none;
  }

  .lightbox-prev {
    left: 0.85rem;
  }

  .lightbox-next {
    right: 0.85rem;
  }
}

@media (max-width: 360px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
