* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: #f6f5f2;
  color: #171715;
  font-family: Arial,Helvetica,sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.site-header {
  height: 82px;
  padding: 0 6.2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #deddd8;
  background: #f6f5f2;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  width: 64px;
  height: 56px;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 42px;
  margin-left: auto;
  margin-right: 44px;
}

.main-nav a,.language {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.main-nav a {
  transition: opacity .2s;
}

.main-nav a:hover {
  opacity: .5;
}

.language {
  border: 0;
  background: none;
  padding: 10px;
  cursor: pointer;
  font-weight: 700;
}

.hero {
  min-height: 660px;
  padding: 72px 9vw 78px;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 7vw;
  align-items: center;
  position: relative;
}

.hero-copy {
  padding: 10px 0 30px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .19em;
  font-weight: 700;
  color: #77766f;
  margin: 0 0 22px;
}

.hero h1 {
  font-family: Arial,Helvetica,sans-serif;
  font-size: clamp(76px,10vw,150px);
  line-height: .83;
  letter-spacing: -.095em;
  font-weight: 600;
  margin: 0 0 38px;
}

.hero h1 span {
  font-weight: 400;
}

.hero-intro {
  font-size: 16px;
  line-height: 1.8;
  color: #5e5d58;
  max-width: 370px;
  margin: 0 0 35px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #1d1d1a;
  padding: 0 0 11px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}


.hero-image {
  height: 490px;
  position: relative;
  display: block;
  background: #e4e2dc;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform .8s;
}

.hero-image:hover img {
  transform: scale(1.025);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent,rgba(0,0,0,.58));
  color: white;
  padding: 45px 22px 17px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-index {
  position: absolute;
  right: 3vw;
  bottom: 35px;
  color: #9a9992;
  font-size: 10px;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}

.section-wrap {
  padding-left: 9vw;
  padding-right: 9vw;
}

.work-section {
  padding-top: 105px;
  padding-bottom: 125px;
}

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

.section-heading h2,.about-copy h2,.contact-layout h2 {
  font-family: Arial,Helvetica,sans-serif;
  font-weight: 500;
  letter-spacing: -.065em;
}

.section-heading h2 {
  font-size: clamp(38px,5vw,64px);
  margin: 0;
  line-height: 1;
}

.section-note {
  max-width: 280px;
  font-size: 12px;
  line-height: 1.8;
  color: #77766f;
  margin: 0 0 4px;
}

.filters {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid #d8d7d1;
  margin-bottom: 28px;
  overflow-x: auto;
}

.filter {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0 0 13px;
  color: #85847d;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.filter.active {
  color: #171715;
  border-color: #171715;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: 24px;
  row-gap: 55px;
}

.project-card {
  min-width: 0;
  cursor: pointer;
}

.project-card:nth-child(even) {
  margin-top: 72px;
}

.project-image {
  height: clamp(260px,38vw,510px);
  background: #e7e5df;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s;
}

.project-card:hover .project-image img {
  transform: scale(1.035);
}

.project-card:nth-child(1) .project-image img,.project-card:nth-child(5) .project-image img {
  object-position: center 35%;
}

.project-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 15px;
  align-items: baseline;
}

.project-caption h3 {
  font-family: Arial,Helvetica,sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -.04em;
  margin: 0;
}

.project-caption span {
  font-size: 10px;
  color: #77766f;
  letter-spacing: .1em;
  white-space: nowrap;
}

.project-type {
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #88877f;
  margin-top: 7px;
}

.about-section {
  background: #e9e7e1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.about-image {
  min-height: 600px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: grayscale(100%);
}

.about-copy {
  padding: 100px 10vw 80px 8vw;
  align-self: center;
}

.about-copy h2 {
  font-size: clamp(42px,5vw,66px);
  line-height: 1.02;
  margin: 0 0 30px;
  max-width: 470px;
}

.about-copy>p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.95;
  color: #5d5c56;
  max-width: 470px;
  margin: 0 0 17px;
}

.about-meta {
  border-top: 1px solid #cfcdc6;
  margin-top: 34px;
  padding-top: 17px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 9px;
  letter-spacing: .15em;
  color: #5f5e58;
}

.contact-section {
  padding-top: 125px;
  padding-bottom: 130px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 8vw;
  align-items: start;
}

.contact-layout h2 {
  font-size: clamp(54px,7vw,94px);
  line-height: .98;
  margin: 0;
}

.contact-details {
  padding-top: 12px;
}

.contact-details p {
  font-size: 13px;
  line-height: 1.8;
  color: #66655f;
  max-width: 310px;
  margin: 0 0 28px;
}

.contact-email {
  display: flex;
  justify-content: space-between;
  max-width: 370px;
  padding: 0 0 13px;
  border-bottom: 1px solid #222;
  font-size: 16px;
}

.contact-email span,.social-link span {
  font-size: 16px;
}

.social-link {
  display: flex;
  justify-content: space-between;
  max-width: 370px;
  padding: 15px 0;
  border-bottom: 1px solid #d7d6d0;
  font-size: 12px;
  color: #66655f;
}

.site-footer {
  border-top: 1px solid #deddd8;
  padding: 25px 6.2vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: .14em;
  color: #77766f;
}

.site-footer a {
  font-weight: 700;
  color: #171715;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,17,16,.78);
}

.modal-panel {
  position: relative;
  z-index: 1;
  background: #f6f5f2;
  width: min(1050px,100%);
  max-height: 92vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
}

.modal-photo {
  min-height: 520px;
  background: #deddd7;
}

.modal-photo img {
  width: 100%;
  height: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  background: #e4e2dc;
}

.modal-info {
  padding: 75px 50px;
  align-self: center;
}

.modal-info h2 {
  font-family: Arial,Helvetica,sans-serif;
  font-size: clamp(35px,4vw,55px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1.02;
  margin: 0 0 25px;
}

.modal-info>p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  color: #5e5d58;
}

.modal-location {
  margin-top: 28px !important;
  font-size: 9px !important;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  color: #222;
}

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

  .main-nav {
    gap: 19px;
    margin-right: 16px;
  }

  .main-nav a,.language {
    font-size: 9px;
  }

  .brand {
    width: 52px;
    height: 48px;
  }

  .hero {
    padding: 65px 7vw 70px;
    grid-template-columns: 1fr;
    gap: 35px;
    min-height: auto;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(82px,19vw,130px);
    margin-bottom: 27px;
  }

  .hero-intro {
    font-size: 14px;
    max-width: 420px;
  }

  .hero-image {
    height: 58vw;
    min-height: 290px;
    max-height: 490px;
  }

  .hero-index {
    display: none;
  }

  .section-wrap {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .work-section {
    padding-top: 80px;
    padding-bottom: 85px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-bottom: 15px;
  }

  .section-note {
    max-width: 380px;
  }

  .project-grid {
    column-gap: 14px;
    row-gap: 38px;
  }

  .project-card:nth-child(even) {
    margin-top: 42px;
  }

  .project-image {
    height: 48vw;
    min-height: 200px;
  }

  .project-caption {
    display: block;
  }

  .project-caption h3 {
    font-size: 17px;
  }

  .project-caption span {
    display: block;
    margin-top: 5px;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 0;
    height: 75vw;
    max-height: 520px;
  }

  .about-copy {
    padding: 70px 7vw 75px;
  }

  .contact-section {
    padding-top: 85px;
    padding-bottom: 90px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-layout h2 {
    font-size: clamp(58px,13vw,82px);
  }

  .site-footer {
    padding: 22px 7vw;
    gap: 12px;
    flex-wrap: wrap;
  }

  .modal-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .modal-photo {
    min-height: 0;
    height: 48vh;
  }

  .modal-photo img {
    height: 100%;
    max-height: none;
  }

  .modal-info {
    padding: 32px 27px 38px;
  }

  .modal-info h2 {
    font-size: 40px;
  }
}

@media (max-width:430px) {
  .main-nav {
    gap: 13px;
    margin-right: 8px;
  }

  .main-nav a {
    font-size: 8px;
    letter-spacing: .08em;
  }

  .language {
    padding: 8px 4px;
  }

  .hero {
    padding-top: 52px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .project-card:nth-child(even) {
    margin-top: 0;
  }

  .project-image {
    height: 78vw;
    max-height: 430px;
  }

  .project-caption {
    display: flex;
  }

  .project-caption h3 {
    font-size: 19px;
  }

  .project-caption span {
    margin-top: 0;
  }

  .filters {
    gap: 20px;
  }

  .site-footer {
    font-size: 8px;
  }

  .about-image {
    height: 95vw;
  }
}

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

  *,*::before,*::after {
    transition: none !important;
  }
}

.selected-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
}

.selected-grid .project-card:nth-child(even) {
  margin-top: 0;
}

.selected-grid .project-image {
  height: clamp(220px,27vw,360px);
}

.all-work-link {
  margin-top: 42px;
}

@media (max-width:800px) {
  .selected-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .selected-grid .project-image {
    height: 48vw;
  }
}

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

  .selected-grid .project-image {
    height: 78vw;
  }
}

/* Multi-page portfolio refinements */

.main-nav a {
  text-decoration: none;
}

.project-card a {
  color: inherit;
  text-decoration: none;
}

.page-intro {
  padding: 110px 7vw 42px;
}

.page-intro h1 {
  font-size: clamp(48px,8vw,108px);
  letter-spacing: -.065em;
  line-height: .95;
  margin: 16px 0;
}

.page-intro p {
  color: #5f5e58;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 56px 28px;
  padding: 0 7vw 100px;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.gallery-item:nth-child(even) {
  margin-top: 70px;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}

.gallery-meta h2 {
  font-size: 23px;
  font-weight: 500;
  margin: 0;
}

.gallery-meta span,.gallery-kind {
  color: #888;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-kind {
  padding-top: 8px;
}

.detail-page {
  padding: 120px 7vw 80px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}

.detail-head h1 {
  font-size: clamp(42px,7vw,86px);
  letter-spacing: -.06em;
  line-height: .95;
  margin: 0;
}

.detail-head p {
  color: #888;
  letter-spacing: .1em;
  font-size: 13px;
}

.detail-image {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #e9e8e4;
  display: block;
}

.detail-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}

.detail-caption p {
  margin: 0;
  color: #777;
}

.detail-back {
  display: inline-block;
  margin-top: 28px;
}

.simple-copy {
  max-width: 660px;
  margin: 120px auto 140px;
  padding: 0 28px;
}

.simple-copy h1 {
  font-size: clamp(48px,8vw,90px);
  letter-spacing: -.06em;
}

.simple-copy p {
  font-size: 18px;
  line-height: 1.65;
  color: #666;
}

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

  .gallery-item:nth-child(even) {
    margin-top: 0;
  }

  .page-intro {
    padding-top: 90px;
  }

  .detail-page {
    padding-top: 95px;
  }

  .detail-head {
    display: block;
  }

  .detail-head p {
    margin-top: 12px;
  }
}

/* Final refinements */

.language {
  border: 1px solid #d8d7d1;
  padding: 9px 12px;
  min-width: 42px;
}

.main-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 7px;
}

.home-selected {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
  padding: 0;
}

.home-selected .gallery-item {
  display: block;
  min-width: 0;
}

.home-selected .gallery-item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.home-selected .gallery-meta h3 {
  font-size: 21px;
  font-weight: 500;
  margin: 0;
}

.home-selected .gallery-meta {
  align-items: baseline;
}

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

.gallery-item img {
  aspect-ratio: 4/5;
}

.gallery-item:nth-child(even) {
  margin-top: 0;
}

.gallery-meta h2 {
  font-size: 22px;
}

.gallery-place {
  padding-top: 7px;
  color: #888;
  font-size: 11px;
  letter-spacing: .04em;
}

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

.detail-image {
  object-fit: contain;
}

.detail-caption {
  align-items: start;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: center;
}

.about-layout img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.about-text {
  max-width: 520px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.75;
  color: #666;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}

@media (max-width:760px) {
  .home-selected {
    grid-template-columns: 1fr 1fr;
  }

  .home-selected .gallery-item:last-child {
    grid-column: 1/-1;
  }

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

  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width:430px) {
  .home-selected {
    grid-template-columns: 1fr;
  }

  .home-selected .gallery-item:last-child {
    grid-column: auto;
  }
}

/* Accessibility and responsive refinements */

img {
  height: auto;
}

@media (max-width:700px) {
  .site-header {
    height: 72px;
    padding: 0 5vw;
  }

  .main-nav {
    gap: 18px;
    margin-right: 12px;
  }

  .main-nav a,.language {
    font-size: 10px;
  }

  .hero {
    min-height: 0;
    padding: 52px 6vw 65px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(72px,19vw,120px);
  }

  .hero-image {
    height: auto;
    aspect-ratio: 4/5;
  }

  .hero-index {
    display: none;
  }

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

  .work-section {
    padding-top: 65px;
    padding-bottom: 75px;
  }

  .home-selected {
    gap: 14px;
  }

  .page-intro {
    padding: 75px 6vw 34px;
  }

  .gallery-grid {
    padding: 0 6vw 70px;
  }

  .detail-page {
    padding: 85px 6vw 65px;
  }

  .simple-copy {
    margin: 85px auto 95px;
  }
}

/* Final accessibility and project-contact refinements */

:focus-visible {
  outline: 2px solid #171715;
  outline-offset: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 30px;
  align-items: center;
}

.secondary-link {
  border-bottom-color: #aaa9a2;
  color: #66655f;
}

.about-cta {
  margin-top: 12px;
}

.process-link {
  margin-top: 22px;
}

/* Pre-launch refinements: preserve complete artwork and improve accessibility. */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 12px 16px;
  background: #171715;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow,.section-note,.filter,.project-caption span,.project-type,
.gallery-meta span,.gallery-kind,.gallery-place,.detail-head p,
.detail-caption p,.site-footer,.hero-index,.language {
  color: #6f6e68;
}

.hero-image {
  height: auto;
  aspect-ratio: 4/3;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #e4e2dc;
}

.home-selected .gallery-item img,
.gallery-grid .gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #e9e8e4;
}

.gallery-grid .gallery-item {
  min-width: 0;
}


.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

@media (max-width:700px) {
  .hero-image {
    height: auto;
    aspect-ratio: 4/3;
    min-height: 0;
    max-height: none;
  }

  .hero-image img {
    height: 100%;
    object-fit: contain;
  }

  .gallery-grid .gallery-item img,.home-selected .gallery-item img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

/* Final visual refinement: quieter gallery typography and consistent text links. */

.gallery-meta h2,
.home-selected .gallery-meta h3 {
  color: #555555;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.text-link {
  gap: 0;
}

.contact-links a {
  width: fit-content;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #b8b6ae;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: opacity .2s, text-decoration-color .2s;
}

.contact-links a:hover {
  opacity: .68;
  text-decoration-color: currentColor;
}

/* Give project information room to breathe on narrow screens. */
@media (max-width: 700px) {
  .gallery-meta h2,
  .home-selected .gallery-meta h3 {
    font-size: 18px;
  }

  .detail-caption {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 17px 0 20px;
  }

  .detail-caption p {
    line-height: 1.65;
  }

  .detail-caption .process-link {
    margin-top: 5px;
    width: fit-content;
  }
}
