@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Inter-700.woff2") format("woff2");
}

:root {
  --max-width: 1400px;
  --gutter: clamp(20px, 4vw, 60px);
  --module-gap: clamp(50px, 10vw, 140px);
  --color-text: #111;
  --color-muted: #aaa;
  --color-border: #eee;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* header */

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 40px;
  position: relative;
}

.logo a {
  display: block;
  width: clamp(140px, 16vw, 210px);
}

.logo img {
  width: 100%;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .site-nav {
    margin-bottom: 0;
  }
}

.nav-close {
  display: none;
}

.site-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-text);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 1px;
  background: var(--color-text);
  width: 100%;
}

@media (max-width: 700px) {
  .hamburger {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }

  .site-nav a {
    font-size: 20px;
  }

  .site-nav.open {
    transform: translateY(0);
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 40px;
    right: var(--gutter);
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }
}

/* gallery */

.gallery {
  padding-bottom: var(--module-gap);
}

.gallery-item {
  margin: 0 auto var(--module-gap);
  width: var(--w, 100%);
  max-width: 100%;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  background: rgba(0, 0, 0, 0.03);
}

@media (max-width: 700px) {
  .gallery-item {
    width: 100% !important;
  }
}

/* work overview grid */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(4px, 1vw, 12px);
  padding-bottom: var(--module-gap);
}

.work-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
}

.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-tile:hover img {
  transform: scale(1.045);
}

.work-tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.work-tile-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-tile-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

/* project detail page */

.project-header {
  padding: 10px 0 var(--module-gap);
  max-width: 760px;
}

.project-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  margin: 0 0 10px;
}

.project-meta {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.project-video {
  margin: 0 auto var(--module-gap);
  width: 80%;
  max-width: 100%;
}

.project-video video {
  width: 100%;
  display: block;
  background: #000;
}

@media (max-width: 700px) {
  .project-video {
    width: 100%;
  }
}

.back-to-work {
  display: inline-block;
  margin-bottom: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.back-to-work:hover {
  color: var(--color-text);
}

/* two-column "tree" layout used by about/contact */

.split {
  display: flex;
  gap: clamp(30px, 6vw, 90px);
  align-items: flex-start;
  padding: 20px 0 var(--module-gap);
}

.split > * {
  flex: 1;
  min-width: 0;
}

.split.split-image-heavy > :first-child {
  flex: 1.05;
}

@media (max-width: 700px) {
  .split {
    flex-direction: column;
  }
}

.prose p {
  line-height: 1.75;
  margin: 0 0 1.4em;
  font-size: 16px;
}

.prose a {
  border-bottom: 1px solid var(--color-text);
}

.columns {
  display: flex;
  gap: clamp(30px, 6vw, 90px);
  padding-bottom: var(--module-gap);
}

.columns > * {
  flex: 1;
}

@media (max-width: 700px) {
  .columns {
    flex-direction: column;
    gap: 40px;
  }
}

.sub-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.columns p,
.columns div {
  line-height: 1.75;
}

/* retouching before/after pairs */

.compare {
  padding-bottom: var(--module-gap);
}

.compare-images {
  display: flex;
  gap: 20px;
}

.compare-images img {
  width: 50%;
  background: rgba(0, 0, 0, 0.03);
}

@media (max-width: 700px) {
  .compare-images {
    flex-direction: column;
  }

  .compare-images img {
    width: 100%;
  }
}

.compare-caption {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

.compare-caption > * {
  flex: 1;
}

@media (max-width: 700px) {
  .compare-caption {
    flex-direction: column;
    gap: 8px;
  }
}

/* contact form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  background: transparent;
  color: var(--color-text);
  resize: vertical;
}

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

.contact-form button {
  align-self: flex-start;
  margin-top: 10px;
  padding: 12px 34px;
  border: 1px solid var(--color-text);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-form button:hover {
  background: var(--color-text);
  color: #fff;
}

.form-note {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 4px;
}

/* footer */

.site-footer {
  text-align: center;
  padding: 60px 0 50px;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}

.back-to-top {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.back-to-top:hover {
  color: var(--color-text);
}

.footer-text {
  font-size: 12px;
  color: var(--color-muted);
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 80px);
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.lightbox-close {
  position: fixed;
  top: 30px;
  right: var(--gutter);
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
}
