* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #ffffff; }
::selection { background: #141414; color: #ffffff; }
input::placeholder, textarea::placeholder { color: #b8b8b8; }

body {
  color: #141414;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.serif { font-family: 'EB Garamond', Georgia, serif; }

button.reset, .tile {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

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

/* ── Header ── */
.hdr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px) 30px;
}
.hdr-brand { font-family: 'EB Garamond', Georgia, serif; font-size: 22px; letter-spacing: 0.02em; }
.hdr nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.hdr-link { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.hdr-link:hover { opacity: 0.45; }

/* ── Shared ── */
/* Full-bleed content with a fixed 30px gutter (design uses no centered column). */
.section { padding: 0 30px; margin-bottom: clamp(30px, 5vh, 52px); }
.frame { position: relative; width: 100%; background: #ececec; overflow: hidden; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile { display: block; width: 100%; }
.tile:hover .frame { opacity: 0.92; }
.cap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 14px; }
.cap h3 { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: clamp(19px, 2.2vw, 24px); margin: 0; }
.cap .meta { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #a0a0a0; white-space: nowrap; }

/* ── Home: rotating feature ── */
.home-feat-btn { display: block; width: 100%; }
.home-feat { aspect-ratio: 16 / 9; }
.home-feat-btn:hover .home-feat { opacity: 0.96; }
@media (min-width: 1024px) { .home-feat { max-height: calc(100vh - 185px); } }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide.on { opacity: 1; }
.hero-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 18px; }
.hero-title { font-weight: 400; font-size: clamp(24px, 3vw, 34px); margin: 0; }
.hero-meta { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #a0a0a0; white-space: nowrap; }

/* ── Work ── */
.work-wrap { margin: 0 auto; }
.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #ededed;
  padding: clamp(18px, 4vh, 44px) 0 16px;
  margin-bottom: clamp(30px, 4vh, 48px);
}
.work-head .label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.work-head .count { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #a0a0a0; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(34px, 5vh, 56px) clamp(22px, 3vw, 32px);
}
.work-grid .frame { aspect-ratio: 3 / 2; }

/* ── Project ── */
.proj-wrap { margin: 0 auto; }
.proj-head { max-width: 760px; padding: clamp(20px, 5vh, 60px) 0 clamp(34px, 6vh, 72px); }
.eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #a0a0a0; margin-bottom: 18px; }
.proj-head h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.proj-meta2 { font-size: 13px; letter-spacing: 0.06em; color: #8a8a8a; margin-bottom: 26px; }
.proj-blurb { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.6; color: #3a3a3a; margin: 0; max-width: 62ch; }
.masonry { columns: 3 280px; column-gap: 22px; }
.masonry .tile { margin: 0 0 22px; break-inside: avoid; cursor: zoom-in; }
.masonry .tile:hover .frame { opacity: 0.9; }
.proj-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #ededed;
  margin-top: clamp(20px, 3vh, 40px);
  padding-top: clamp(24px, 3vh, 38px);
}
.proj-nav .side { flex: 1; min-width: 0; }
.proj-nav .side.right { text-align: right; }
/* Nav links size to their content (not full width) so All Work stays centered
   between the two equal flex:1 sides, matching the design. */
.proj-nav .side .tile { width: auto; }
.proj-nav .dir { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #a0a0a0; margin-bottom: 8px; }
.proj-nav .name { font-family: 'EB Garamond', Georgia, serif; font-size: 20px; }
.proj-nav .side .tile:hover { opacity: 0.55; }
.proj-nav .all { width: auto; flex: 0 0 auto; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.proj-nav .all:hover { opacity: 0.5; }

/* ── Lightbox ── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 16, 0.96);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 60px);
}
#lightbox[hidden] { display: none; }
#lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; display: block; }
/* #lightbox prefix keeps these ahead of the global button.reset rule, which
   would otherwise force color:inherit (dark on dark) and padding:0. */
#lightbox .lb-close { position: absolute; top: 18px; right: 22px; padding: 10px; font-size: 22px; line-height: 1; color: #c8c8c8; }
#lightbox .lb-prev, #lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); padding: 16px 14px; font-size: 30px; line-height: 1; color: #c8c8c8; }
#lightbox .lb-prev { left: 6px; }
#lightbox .lb-next { right: 6px; }
#lightbox .lb-close:hover, #lightbox .lb-prev:hover, #lightbox .lb-next:hover { color: #ffffff; }
.lb-cap { display: flex; align-items: baseline; gap: 18px; margin-top: 18px; }
.lb-counter { font-size: 11px; letter-spacing: 0.1em; color: #6e6e6e; }

/* ── About ── */
.about-wrap { max-width: 1120px; margin: 0 auto; }
.page-head { padding: clamp(20px, 5vh, 60px) 0 clamp(34px, 5vh, 60px); border-bottom: 1px solid #ededed; margin-bottom: clamp(40px, 6vh, 70px); }
.page-head h1 { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: clamp(32px, 5vw, 58px); line-height: 1.08; margin: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(34px, 5vw, 80px); align-items: start; }
.about-grid .frame { aspect-ratio: 4 / 5; }
.about-lead { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.5; margin: 0 0 30px; max-width: 44ch; }
.about-p { font-size: clamp(15px, 1.15vw, 19px); line-height: 1.75; color: #555; margin: 0 0 22px; max-width: 56ch; }
.about-p.last { margin-bottom: 44px; }
.facts { border-top: 1px solid #ededed; }
.fact { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid #ededed; }
.fact .k { flex: 0 0 140px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #a0a0a0; }
.fact .v { font-size: clamp(14px, 1vw, 17px); }

/* ── Contact ── */
.contact-wrap { max-width: 720px; margin: 0 auto; }
.contact-head { padding: clamp(20px, 5vh, 60px) 0 clamp(30px, 4vh, 50px); border-bottom: 1px solid #ededed; margin-bottom: clamp(32px, 5vh, 56px); }
.contact-head h1 { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: clamp(34px, 6vw, 66px); line-height: 1.05; margin: 0 0 20px; }
.contact-intro { font-size: 14.5px; line-height: 1.7; color: #8a8a8a; margin: 0; max-width: 52ch; }
.contact-intro a { color: #141414; text-decoration: none; border-bottom: 1px solid #cfcfcf; }
.contact-intro a:hover { border-color: #141414; }
.contact-done { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; }
.contact-form { display: flex; flex-direction: column; gap: clamp(24px, 3.5vh, 36px); }
.contact-form label { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #a0a0a0; margin-bottom: 12px; }
.contact-form label span { color: #141414; }
.contact-form input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #141414;
  padding: 0 0 12px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(18px, 2vw, 22px);
  color: #141414;
  outline: none;
}
.contact-form textarea {
  width: 100%;
  background: none;
  border: 1px solid #e0e0e0;
  padding: 14px 16px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: #141414;
  outline: none;
  resize: vertical;
}
.contact-form textarea:focus { border-color: #141414; }
.send-btn {
  background: #141414;
  border: none;
  padding: 15px 34px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}
.send-btn:hover { opacity: 0.82; }

/* ── Privacy ── */
.privacy-wrap { max-width: 680px; margin: 0 auto; }
.privacy-head { padding: clamp(20px, 5vh, 60px) 0 clamp(28px, 4vh, 44px); border-bottom: 1px solid #ededed; margin-bottom: clamp(30px, 4vh, 48px); }
.privacy-head h1 { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1; margin: 0 0 14px; }
.privacy-date { font-size: 12px; letter-spacing: 0.06em; color: #a0a0a0; }
.privacy-body { display: flex; flex-direction: column; gap: 34px; }
.privacy-body h2 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #141414; margin: 0 0 12px; font-weight: 400; font-family: inherit; }
.privacy-body p { font-size: 15px; line-height: 1.75; color: #555; margin: 0; }
.privacy-body a { color: #141414; text-decoration: none; border-bottom: 1px solid #cfcfcf; }

/* ── Footer: newsletter + social ── */
footer { border-top: 1px solid #ededed; padding: clamp(32px, 5vh, 60px) 30px clamp(22px, 3vh, 32px); }
.ftr-wrap { max-width: 640px; margin: 0 auto; text-align: center; }
.ftr-eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #a0a0a0; margin-bottom: 16px; }
.ftr-head { font-weight: 400; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 26px; }
.ftr-thanks { font-size: 20px; }
.ftr-form { max-width: 420px; margin: 0 auto; }
.ftr-form input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #141414;
  padding: 0 0 12px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(18px, 2vw, 22px);
  text-align: center;
  color: #141414;
  outline: none;
}
.ftr-actions { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 18px; }
.ftr-actions button { background: none; border: none; padding: 0; margin: 0; cursor: pointer; font-family: inherit; }
.ftr-actions button[type="submit"] { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #141414; }
.ftr-actions button[type="submit"]:hover { opacity: 0.5; }
.ftr-actions .dot { color: #d0d0d0; }
.ftr-actions [data-nav-path] { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #a0a0a0; }
.ftr-actions [data-nav-path]:hover { color: #141414; }
.ftr-social { display: flex; justify-content: center; gap: clamp(40px, 8vw, 96px); margin-top: 20px; }
.ftr-social a { display: flex; flex-direction: column; align-items: center; gap: 11px; text-decoration: none; color: #141414; }
.ftr-social a:hover { opacity: 0.5; }
.ftr-social span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #8a8a8a; }

/* ── Large desktop (≥1440): roomier masonry gutter ── */
@media (min-width: 1440px) {
  .masonry { column-gap: 32px; }
  .masonry .tile { margin-bottom: 32px; }
}

/* ── Mobile ── */
@media (max-width: 759px) {
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
