/* He Becomes — site styles
   Type: Courier Prime (body/nav), Futura (display; Jost as free fallback) */

:root {
  --ink: #000;
  --paper: #fff;
  --muted: #757575;
  --placeholder: #d9d9d9;
  --mono: "Courier Prime", "Courier New", monospace;
  --display: Futura, "Futura PT", "Jost", "Century Gothic", sans-serif;
  --gutter: 89px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* film grain over everything, like the design's overlay texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- header ---------- */
.site-header {
  padding: 40px 86px 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 10;
}
.logo { display: block; width: 222px; height: 42px; padding-left: 6px; }
.logo svg { width: 100%; height: 100%; display: block; }
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav a {
  font-size: 18px;
  letter-spacing: 0.18em;
  line-height: 1.2;
  font-weight: 400;
}
.nav a[aria-current="page"] { font-weight: 700; font-size: 20px; letter-spacing: 0.14em; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* mobile header pieces (hidden on desktop) */
.mobile-bar, .page-label, .menu-overlay { display: none; }

/* ---------- display titles (spread letters) ---------- */
.spread {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-weight: 500;
  margin: 0;
}
.spread span { display: inline-block; min-width: 0.5ch; }

/* justified body copy, single lines spread to full width */
.justify p {
  margin: 0;
  text-align: justify;
  text-align-last: justify;
}

/* ---------- placeholder photos ---------- */
.ph {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.05) 14px 15px),
    var(--placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,.45);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- HOME / GALLERY ---------- */
.gallery {
  position: relative;
  height: calc(100vh - 140px);
  min-height: 640px;
  max-height: 920px;
  overflow: hidden;
}
.gallery .stage { position: absolute; inset: 0; }
.gallery .side {
  position: absolute;
  top: 50%;
  width: 565px;
  height: 548px;
  transform: translateY(-50%);
  opacity: 0.42;
  filter: blur(12px) grayscale(100%);
  overflow: hidden;
}
.gallery .side.prev { left: -230px; }
.gallery .side.next { right: -230px; }
.gallery .side .ph { width: 100%; height: 100%; }
.frame {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(770px, calc(100vh - 290px));
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame .photo { width: calc(100% - 68px); height: calc(100% - 68px); }
.frame .photo .ph, .card .img .ph { width: 100%; height: 100%; }
.frame .corner { position: absolute; width: 36px; height: 36px; border: 0 solid var(--ink); }
.frame .tl { left: 0; top: 0; border-top-width: 2px; border-left-width: 2px; }
.frame .tr { right: 0; top: 0; border-top-width: 2px; border-right-width: 2px; }
.frame .bl { left: 0; bottom: 0; border-bottom-width: 2px; border-left-width: 2px; }
.frame .br { right: 0; bottom: 0; border-bottom-width: 2px; border-right-width: 2px; }
.arrow {
  position: absolute;
  top: 50%;
  width: 27px;
  height: 52px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translateY(-50%);
}
.arrow svg { width: 100%; height: 100%; display: block; }
.arrow.prev { left: -37px; }
.arrow.next { right: -37px; }
.arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.caption {
  position: absolute;
  bottom: 40px;
  left: 91px;
  right: 86px;
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  letter-spacing: 0.3em;
  line-height: 20px;
  font-style: italic;
}
.caption .right { text-align: right; }
.caption b { font-weight: 700; }

/* ---------- ABOUT ---------- */
.about {
  width: min(884px, calc(100% - 2 * var(--gutter)));
  margin: 90px auto 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about .big-logo { width: 320px; height: 62px; }
.about .big-logo svg { width: 100%; height: 100%; }
.about .spread { width: 100%; padding-top: 50px; font-size: 24px; line-height: 30px; }
.about .copy {
  width: 100%;
  padding-top: 66px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-size: 21px;
  line-height: 32px;
}
.about .credit { padding-top: 34px; }

/* ---------- WORK FOR SALE ---------- */
.work { padding: 66px 86px 140px 98px; max-width: 1440px; }
.work .spread { font-size: 42px; line-height: 48px; max-width: 1250px; }
.work .intro {
  padding-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16px;
  letter-spacing: 0.16em;
  line-height: 20px;
  max-width: 1256px;
}
.work .intro p { text-align-last: left; }
.grid {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 440px));
  column-gap: 18px;
  row-gap: 80px;
}
.card { display: flex; flex-direction: column; font-style: italic; }
.card .img { height: 298px; display: flex; align-items: flex-start; }
.card .img .ph { height: 298px; }
.card h3 {
  margin: 0;
  padding-top: 20px;
  font-size: 18px;
  letter-spacing: 0.08em;
  line-height: 22px;
  font-weight: 700;
}
.card .size { font-size: 15px; line-height: 20px; letter-spacing: 0.04em; }
.card .prices { padding-top: 20px; display: flex; flex-direction: column; }
.card .row { display: flex; font-size: 15px; line-height: 20px; letter-spacing: 0.04em; }
.card .row .price { width: 108px; flex-shrink: 0; }
.card .row + .row { margin-top: 2px; }
.card .note { font-size: 15px; line-height: 20px; letter-spacing: 0.04em; }
.card .cta { flex-grow: 1; display: flex; align-items: flex-end; padding-top: 24px; padding-bottom: 4px; }
.btn {
  display: inline-block;
  padding: 12px 16px 11px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--mono);
  font-style: normal;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

/* ---------- CONTACT ---------- */
.contact {
  width: min(514px, calc(100% - 48px));
  margin: 240px auto 160px;
}
.contact .spread { font-size: 44px; line-height: 50px; }
.contact .lines { padding-top: 20px; font-size: 21px; line-height: 32px; }
.contact .line { display: flex; justify-content: space-between; }
.contact .vals { display: flex; flex-direction: column; align-items: flex-end; }
.contact .vals a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact .copy { padding-top: 32px; display: flex; flex-direction: column; gap: 32px; font-size: 21px; line-height: 32px; }

/* ---------- tablet ---------- */
@media (max-width: 1240px) {
  :root { --gutter: 48px; }
  .site-header { padding-right: 48px; }
  .nav a { font-size: 15px; letter-spacing: 0.14em; }
  .nav a[aria-current="page"] { font-size: 16px; }
  .work { padding-left: 48px; padding-right: 48px; }
  .work .spread { font-size: 34px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 440px)); }
}

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .site-header { padding: 27px 20px 0; gap: 14px; }
  .site-header .logo, .site-header .nav { display: none; }
  .mobile-bar { display: flex; justify-content: space-between; align-items: center; }
  .mobile-bar .logo { display: block; width: 150px; height: 28px; padding-left: 0; }
  .menu-btn {
    display: flex; align-items: center; gap: 8px;
    background: none; border: 0; padding: 6px 0; cursor: pointer;
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; font-weight: 700; color: var(--ink);
  }
  .menu-btn svg { width: 16px; height: 12px; }
  .page-label {
    display: block;
    font-size: 13px; letter-spacing: 0.18em; font-weight: 700; line-height: 1.2;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ink);
  }
  .menu-overlay {
    position: fixed; inset: 0; z-index: 50;
    background: var(--paper);
    flex-direction: column; justify-content: center;
    padding: 0 28px; gap: 28px;
  }
  .menu-overlay.open { display: flex; }
  .menu-overlay a { font-size: 20px; letter-spacing: 0.18em; line-height: 1.2; }
  .menu-overlay a[aria-current="page"] { font-weight: 700; }
  .menu-close {
    position: absolute; right: 20px; top: 32px;
    background: none; border: 0; padding: 6px; cursor: pointer;
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; font-weight: 700; color: var(--ink);
  }

  .gallery { height: auto; min-height: 0; max-height: none; padding: 34px 0 40px; }
  .gallery .stage { position: relative; height: 248px; margin: 0 auto; }
  .gallery .side { width: 290px; height: 248px; }
  .gallery .side.prev { left: -254px; }
  .gallery .side.next { right: -254px; }
  .frame { top: 50%; width: 222px; }
  .frame .photo { width: calc(100% - 20px); height: calc(100% - 20px); }
  .frame .corner { width: 14px; height: 14px; }
  .frame .corner { border-width: 0; }
  .frame .tl { border-top-width: 1.5px; border-left-width: 1.5px; }
  .frame .tr { border-top-width: 1.5px; border-right-width: 1.5px; }
  .frame .bl { border-bottom-width: 1.5px; border-left-width: 1.5px; }
  .frame .br { border-bottom-width: 1.5px; border-right-width: 1.5px; }
  .arrow { width: 12px; height: 23px; }
  .arrow.prev { left: -26px; }
  .arrow.next { right: -26px; }
  .caption { position: static; margin: 28px auto 0; width: 222px; font-size: 10px; letter-spacing: 0.25em; line-height: 13px; }

  .about { width: auto; margin: 40px 20px 80px; }
  .about .big-logo { width: 220px; height: 43px; }
  .about .spread { padding-top: 30px; font-size: 16px; line-height: 22px; }
  .about .copy { padding-top: 34px; gap: 20px; font-size: 13px; line-height: 20px; }
  .about .credit { padding-top: 18px; }

  .work { padding: 40px 20px 80px; }
  .work .spread { font-size: 22px; line-height: 28px; }
  .work .intro { padding-top: 28px; font-size: 12px; line-height: 17px; letter-spacing: 0.08em; }
  .grid { margin-top: 48px; grid-template-columns: 1fr; row-gap: 56px; }
  .card .img, .card .img .ph { height: 240px; }

  .contact { margin: 56px auto 80px; width: auto; padding: 0 20px; }
  .contact .spread { font-size: 26px; line-height: 32px; }
  .contact .lines, .contact .copy { font-size: 13px; line-height: 20px; }
  .contact .copy { gap: 20px; padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
