:root {
  --bg: #f1f1ef;
  --placeholder: #d8d8d4;
  --ink: #111111;
  --line: #d2d2d0;
  --hover-overlay: rgba(0, 0, 0, 0.3);
  --muted: rgba(17, 17, 17, 0.55);
  --page-padding: 36px;
  --page-gap: 34px;
  --section-gap: 24px;

  --type-h1: clamp(5rem, 9vw, 12rem);
  --type-h2: clamp(2.4rem, 3vw, 4rem);
  --type-h3: clamp(1.2rem, 1.6vw, 2rem);
  --type-body-1: clamp(1.6rem, 2vw, 2.2rem);
  --type-body-2: clamp(1.2rem, 1.5vw, 1.7rem);
  --type-body-3: clamp(1rem, 1.2vw, 1.35rem);
  --type-nav: 1.05rem;
  --type-brand: 1.1rem;

  --type-letter-h1: -0.03em;
  --type-letter-h2: -0.01em;
  --type-letter-h3: -0.01em;
  --type-letter-body: 0em;
  --type-letter-small: 0em;

  --type-weight-heavy: 800;
  --type-weight-bold: 700;
  --type-weight-medium: 500;
  --type-weight-regular: 400;

  --type-display-xl: var(--type-h1);
  --type-display-lg: var(--type-h1);
  --type-display-md: var(--type-h2);
  --type-display-sm: clamp(6.5rem, 12vw, 19rem);
  --type-heading-1: var(--type-h3);
  --type-heading-2: var(--type-h3);
  --type-heading-3: var(--type-body-1);
  --type-body-md: var(--type-body-2);
  --type-body-lg: var(--type-body-1);
  --type-body-sm: var(--type-body-3);
  --type-label: var(--type-body-3);
  --type-letter-tight: var(--type-letter-h1);
  --type-letter-mid: var(--type-letter-h2);
  --type-letter-loose: var(--type-letter-h3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, sans-serif;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: var(--type-h1);
  line-height: 0.85;
  letter-spacing: var(--type-letter-h1);
  font-weight: var(--type-weight-heavy);
  max-width: 100%;
}

h2 {
  font-size: var(--type-h2);
  line-height: 1;
  letter-spacing: var(--type-letter-h2);
  font-weight: var(--type-weight-heavy);
}

h3 {
  font-size: var(--type-h3);
  line-height: 1.2;
  letter-spacing: var(--type-letter-h3);
  font-weight: var(--type-weight-bold);
}

p,
.body-1,
.body-lg {
  font-size: var(--type-body-1);
  line-height: 1.2;
  letter-spacing: var(--type-letter-body);
  font-weight: var(--type-weight-medium);
}

.body-2 {
  font-size: var(--type-body-2);
  line-height: 1.3;
  letter-spacing: var(--type-letter-body);
  font-weight: var(--type-weight-regular);
}

.body-3,
.body-sm,
.project-metadata .value,
.contact-method p,
.contact-row p:not(.meta-label),
.project-nav-link,
.meta-label {
  font-size: var(--type-body-3);
  line-height: 1.35;
  letter-spacing: var(--type-letter-body);
  font-weight: var(--type-weight-medium);
}

.meta-label {
  font-weight: var(--type-weight-bold);
}

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

.contact-row a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1px;
  font: inherit;
}

.contact-row a:hover {
  opacity: 0.7;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px 12px;
  background: var(--bg);
}

.brand-lockup {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  font-size: var(--type-brand);
  font-weight: var(--type-weight-bold);
  letter-spacing: var(--type-letter-small);
  padding: 10px 8px 8px;
  line-height: 1;
  transition: none;
}

.brand:hover {
  color: var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--type-nav);
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 12px 8px;
  letter-spacing: var(--type-letter-small);
  font-weight: var(--type-weight-medium);
  color: var(--ink);
  transition: color 0.2s ease;
}

.nav-tab:hover {
  color: var(--muted);
}

.nav-tab.active {
  background: #000000;
  color: #ffffff;
  font-weight: 700;
}

.page-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 var(--page-padding) 50px;
}

.landing-shell {
  padding-top: 0;
}

.landing-scroll-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 8px;
}

.landing-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--placeholder);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.card-fade,
.card-title {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.card-fade {
  background: var(--hover-overlay);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: #ffffff;
  font-size: var(--type-h2);
  line-height: 1.05;
  letter-spacing: var(--type-letter-h2);
  font-weight: var(--type-weight-bold);
}

.landing-card:hover .card-fade,
.landing-card:hover .card-title {
  opacity: 1;
}

.coming-soon-card {
  cursor: default;
}

.about-page {
  padding-top: 2px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 1.65fr;
  gap: var(--page-gap);
  align-items: end;
  min-height: 340px;
  padding-top: 12px;
}

.about-photo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  background: transparent;
  border: none;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.about-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  height: 360px;
  text-align: left;
}

.about-intro h1 {
  margin: 0;
  width: 100%;
  font-size: var(--type-display-lg);
  line-height: 0.83;
  letter-spacing: var(--type-letter-tight);
  font-weight: var(--type-weight-heavy);
  text-align: left;
}

.about-intro p {
  margin: 18px 0 0;
  width: 100%;
  max-width: 550px;
  font-size: var(--type-body-1);
  line-height: 1.15;
  letter-spacing: var(--type-letter-body);
  font-weight: var(--type-weight-medium);
  text-align: left;
}

.services-row,
.philosophy-row,
.contact-row {
  border-top: 1px solid var(--line);
  margin-top: var(--section-gap);
  padding-top: 28px;
}

.services-row,
.philosophy-row {
  display: grid;
  grid-template-columns: 1.15fr 1.65fr;
  gap: var(--page-gap);
  align-items: start;
}

.services-row h2,
.philosophy-row h2 {
  margin: 0;
  font-size: var(--type-display-md);
  line-height: 0.94;
  letter-spacing: var(--type-letter-tight);
  font-weight: var(--type-weight-heavy);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.services-list p {
  margin: 0;
  font-size: var(--type-body-2);
  line-height: 1.2;
  letter-spacing: var(--type-letter-body);
  font-weight: var(--type-weight-regular);
}

.philosophy-row p {
  margin: 0;
  max-width: 600px;
  font-size: var(--type-body-2);
  line-height: 1.3;
  letter-spacing: var(--type-letter-body);
  font-weight: var(--type-weight-regular);
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 28px;
  padding-bottom: 16px;
}

.contact-row p {
  margin: 0;
}

.meta-label {
  margin-bottom: 8px !important;
  font-size: 1rem;
  font-weight: 700;
}

.contact-row p:not(.meta-label) {
  font-size: 1.02rem;
  line-height: 1.4;
  font-weight: 500;
}

.contact-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 88px);
  padding-top: 12px;
}

.contact-hero {
  margin-top: 14px;
}

.contact-heading {
  margin: 0;
  font-size: var(--type-display-sm);
  line-height: 0.8;
  letter-spacing: -0.04em;
  font-weight: var(--type-weight-heavy);
  color: #000000;
}

.contact-heading span {
  display: block;
}

.contact-lower {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-top: auto;
  padding-bottom: 20px;
}

.contact-message {
  margin: 0;
  max-width: 780px;
  font-size: var(--type-body-1);
  line-height: 1.2;
  letter-spacing: var(--type-letter-body);
  font-weight: var(--type-weight-medium);
  color: #111111;
}

.contact-info {
  display: flex;
  align-items: flex-end;
  gap: 64px;
  margin-left: auto;
}

.contact-method {
  min-width: 180px;
}

.contact-method h2 {
  margin: 0 0 4px;
  font-size: var(--type-heading-1);
  line-height: 1.1;
  letter-spacing: var(--type-letter-mid);
  font-weight: var(--type-weight-bold);
}

.contact-method p {
  margin: 0;
  font-size: var(--type-body-2);
  line-height: 1.2;
  letter-spacing: var(--type-letter-body);
  font-weight: var(--type-weight-medium);
}

.project-page {
  padding-top: 8px;
}

.project-hero {
  display: block;
}

.hero-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 240px;
  background: var(--placeholder);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.project-heading {
  margin: 0;
  font-size: var(--type-display-xl);
  line-height: 0.87;
  letter-spacing: var(--type-letter-tight);
  font-weight: var(--type-weight-heavy);
}

.project-divider {
  border-top: 1px solid var(--line);
  margin: 18px 0 22px;
}

.project-details {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr;
  gap: var(--page-gap);
  align-items: start;
}

.project-description-wrap h2 {
  margin: 0 0 18px;
  font-size: var(--type-h2);
  line-height: 1;
  letter-spacing: var(--type-letter-h2);
}

.project-description {
  margin: 0;
  font-size: var(--type-body-2);
  line-height: 1.3;
  letter-spacing: var(--type-letter-body);
  font-weight: var(--type-weight-regular);
  max-width: 420px;
}

.project-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 18px 40px;
}

.project-metadata .label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--type-label);
  font-weight: var(--type-weight-bold);
  line-height: 1.3;
}

.project-metadata .value {
  display: block;
  font-size: var(--type-body-sm);
  line-height: 1.35;
  font-weight: var(--type-weight-medium);
}

.project-gallery {
  --gallery-gap: 16px;
  display: flex;
  gap: var(--gallery-gap);
  align-items: flex-start;
  margin-bottom: 42px;
}

.gallery-column {
  display: flex;
  flex-direction: column;
  gap: var(--gallery-gap);
  width: calc(50% - (var(--gallery-gap) / 2));
}

.gallery-item {
  appearance: none;
  display: block;
  width: 100%;
  border: 1px solid #c3bfb9;
  background: #d7d3cf;
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease;
  min-height: 0;
  overflow: hidden;
}

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

.gallery-thumb {
  display: block;
  width: 100%;
  height: auto;
  background: #d7d3cf;
  object-fit: cover;
  object-position: center;
}

.size-2x2,
.size-2x1,
.size-4x2 {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

.thumb-one {
  background: #d3d0cd;
}

.thumb-two {
  background: #d9d6d1;
}

.thumb-three {
  background: #cfcac5;
}

.thumb-four {
  background: #d7d2ce;
}

.gallery-item:nth-child(1) .gallery-thumb,
.gallery-item:nth-child(2) .gallery-thumb,
.gallery-item:nth-child(3) .gallery-thumb,
.gallery-item:nth-child(4) .gallery-thumb {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.project-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: min(100%, 520px);
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.project-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--type-nav);
  line-height: 1;
  letter-spacing: var(--type-letter-small);
  font-weight: var(--type-weight-bold);
  text-decoration: none;
  min-height: 40px;
  padding: 0 18px;
  white-space: nowrap;
}

.project-nav-link.is-prev {
  justify-content: flex-end;
  border-right: 1px solid var(--line);
  padding-right: 26px;
}

.project-nav-link.is-next {
  justify-content: flex-start;
  padding-left: 26px;
}

.project-nav-link.is-ghost {
  opacity: 0.6;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1000;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  width: min(90vw, 900px);
  background: #f2f2f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px;
}

.lightbox-image {
  width: 100%;
  height: min(68vh, 620px);
  background: var(--placeholder);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
}

.lightbox-meta {
  padding-top: 14px;
}

.lightbox-title {
  margin: 0 0 4px;
  font-size: var(--type-h3);
  line-height: 1;
  letter-spacing: var(--type-letter-h3);
}

.lightbox-text {
  margin: 0;
  font-size: 1rem;
  color: #222222;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .about-layout,
  .services-row,
  .philosophy-row,
  .project-details,
  .contact-row {
    grid-template-columns: 1fr;
  }

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

  .project-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .gallery-column {
    width: 100%;
  }

  .contact-lower {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-info {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  h1,
  .about-intro h1,
  .project-heading,
  .contact-heading {
    font-size: clamp(2.7rem, 11vw, 4.7rem);
    line-height: 0.88;
    max-width: 82vw;
  }

  h2,
  .services-row h2,
  .philosophy-row h2,
  .project-description-wrap h2,
  .contact-method h2 {
    font-size: clamp(2rem, 7vw, 3.2rem);
    line-height: 1;
  }

  .contact-page {
    gap: 18px;
  }

  .contact-hero {
    margin-top: 0;
  }

  .contact-lower {
    margin-top: 0;
    gap: 24px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px 10px;
  }

  .page-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .landing-scroll-group {
    grid-template-columns: 1fr;
  }

  .about-layout,
  .services-row,
  .philosophy-row,
  .project-details,
  .contact-row,
  .contact-lower,
  .contact-info {
    grid-template-columns: 1fr;
    display: grid;
  }

  .about-intro {
    height: auto;
  }

  .contact-lower,
  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .project-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: min(100%, 420px);
    margin: 18px auto 0;
  }

  .project-nav-link {
    min-width: 0;
    width: 100%;
    padding: 0 16px;
    white-space: nowrap;
  }

  .project-nav-link.is-prev {
    padding-right: 18px;
  }

  .project-nav-link.is-next {
    padding-left: 18px;
    margin-left: 0;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .nav-tab {
    padding: 8px 10px 6px;
  }
}
