/* PRIMARY RESIDENCE — minimal editorial styles
   Avenir on Apple devices; Nunito Sans (free, similar) everywhere else. */

:root {
  --ink: #1a1a1a;
  --muted: #8a857e;
  --line: #e4e0da;
  --sans: "Avenir Next", "Avenir", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  background: #fff; color: var(--ink);
  font-family: var(--sans); font-weight: 400;
  font-size: 10px; line-height: 1.7;
  text-transform: uppercase; letter-spacing: .03em;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* ---------- One-line header ---------- */
.site-header { padding: 40px 24px 0; }
.nav {
  list-style: none;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 26px;
}
.nav a { opacity: 1; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: .45; }

/* ---------- Socials (end of page, right-aligned like the reference) ---------- */
.socials {
  max-width: 1010px; margin: 0 auto; padding: 0 24px 60px;
  text-align: right; font-size: 9px; line-height: 1.6;
}
.socials a { display: block; width: max-content; margin-left: auto; }
.socials a:hover { opacity: .45; }

/* ---------- Media ---------- */
.ph { position: relative; overflow: hidden; background: #f3f1ee; }
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Home ---------- */
.hero {
  min-height: calc(100vh - 170px);
  display: flex; align-items: center; justify-content: center;
  padding: 50px 24px 90px;
}
.hero .ph { height: 74vh; width: auto; max-width: 100%; }

/* ---------- Page wrapper ---------- */
.page { max-width: 1010px; margin: 0 auto; padding: 90px 24px 120px; }

/* ---------- About ---------- */
.about { text-align: center; }
.about .ph { width: min(420px, 100%); margin: 0 auto; }
.about .lines { margin-top: 40px; display: grid; gap: 16px; }
.about .bio { max-width: 540px; margin: 0 auto; color: var(--ink); }

/* ---------- Work grid (project covers, large like Freja) ---------- */
.work-page { padding: 50px 0 100px; }
.grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 50px 20px;
}
.tile .ph { aspect-ratio: 4 / 5; }
.tile .ph img, .tile .ph video { transition: opacity .3s; }
.tile:hover .ph img, .tile:hover .ph video { opacity: .85; }
.caption { margin-top: 12px; padding: 0 22px; font-size: 10px; line-height: 1.4; }

/* ---------- Project page ---------- */
.project-title { text-align: center; margin-bottom: 50px; }
.project-title p + p { color: var(--muted); margin-top: 4px; }
.masonry { columns: 3; column-gap: 14px; }
.masonry .ph { margin-bottom: 14px; break-inside: avoid; }
.back { display: block; text-align: center; margin-top: 50px; }
.back:hover { opacity: .45; }

/* ---------- Inquire ---------- */
.inquire { max-width: 460px; margin: 0 auto; text-align: center; }
.inquire .intro { display: grid; gap: 14px; margin-bottom: 50px; }
.inquire .intro a { border-bottom: 1px solid var(--ink); }
form { display: grid; gap: 26px; text-align: left; }
label { display: block; font-size: 9px; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  text-transform: none; letter-spacing: .02em; font-size: 12px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 6px 0; border-radius: 0; outline: none; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; min-height: 80px; }
.btn {
  justify-self: center; cursor: pointer;
  background: none; color: var(--ink);
  border: 1px solid var(--ink); padding: 10px 34px;
  font: inherit; font-size: 9px; text-transform: uppercase; letter-spacing: .03em;
}
.btn:hover { background: var(--ink); color: #fff; }
.hidden { display: none; }

/* ---------- Thanks ---------- */
.center { text-align: center; padding-top: 22vh; display: grid; gap: 14px; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .site-header { padding-top: 28px; }
  .nav { gap: 8px 18px; }
  .socials { text-align: center; padding: 0 20px 40px; }
  .socials a { display: inline-block; margin: 0 8px; }
  .hero { min-height: auto; padding: 36px 20px 50px; }
  .hero .ph { height: auto; width: 100%; }
  .page { padding: 56px 20px 70px; }
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .caption { padding: 0 20px; }
  .masonry { columns: 2; column-gap: 10px; }
  .masonry .ph { margin-bottom: 10px; }
}

/* ---------- Project story page (Freja-inspired) ---------- */
.story { padding: 50px 0 100px; }
.story-hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
}
.story-hero .ph { height: min(calc(100vh - 110px), 860px); }
.story-text { padding: 40px 12%; text-transform: none; letter-spacing: .01em; }
.story-text h1 {
  font-weight: 400; font-size: 20px; line-height: 1.35;
  text-transform: uppercase; letter-spacing: .04em;
}
.story-text .meta { margin-top: 14px; font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.story-text p.lede { margin-top: 18px; font-size: 11.5px; line-height: 1.75; max-width: 46ch; }
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 20px;
}
.story-grid .ph { aspect-ratio: 4 / 5; }
.story-grid .ph.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.story-grid figcaption {
  position: absolute; left: 22px; bottom: 18px; right: 22px; z-index: 3;
  color: #fff; font-size: 10px; text-transform: none; letter-spacing: .02em;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.note {
  aspect-ratio: 4 / 5; background: #faf9f7;
  display: flex; align-items: center; padding: 0 12%;
  text-transform: none; font-size: 11.5px; line-height: 1.7; letter-spacing: .01em;
}
.story-foot { display: flex; justify-content: space-between; padding: 40px 24px 0; }
.story-foot a:hover { opacity: .45; }

@media (max-width: 760px) {
  .story { padding-top: 30px; }
  .story-hero { grid-template-columns: 1fr; min-height: auto; }
  .story-hero .ph { height: auto; aspect-ratio: 4 / 5; }
  .story-text { padding: 32px 20px 10px; }
  .story-grid { grid-template-columns: 1fr; gap: 10px; }
  .note { aspect-ratio: auto; padding: 40px 20px; }
}

/* ---------- Home slideshow ---------- */
.slideshow { height: 74vh; display: flex; align-items: center; justify-content: center; }
.slideshow img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 760px) {
  .slideshow { height: auto; }
  .slideshow img { height: 70vh; width: 100%; object-fit: cover; }
}
