/* public website v2: quiet, editorial, monochrome. the photos carry the colour */

:root {
  --white: #ffffff;
  --gray-bg: #f1f1f1;
  --black: #000000;
  --gray-text: #4f4f4f;
  --gray-light: #6f6f6f;
  --hairline: #d6d6d6;

  /* placeholders until the photos are chosen */
  --ph-bw: #4a4a4a;
  --ph-color: #cfcfcf;

  --font-display: "Noto Serif Display", "Times New Roman", serif;
  --font-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Pinyon Script", cursive;

  --header-h: 96px;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --gallery-max: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- type tiers ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0;
}

.display em {
  font-style: italic;
}

.editorial {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.6;
  margin: 0;
}

.label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gray-text);
  margin: 0;
}

/* big serif title that opens a section; quotes and subtitles stay smaller */
.section-title {
  font-size: clamp(29px, 3.7vw, 51px);
  text-align: center;
  margin-bottom: 56px;
}

.signature {
  font-family: var(--font-script);
  font-size: 34px;
  line-height: 1;
  margin: 28px 0 0;
}

/* text link with a hairline arrow, the only kind of call to action */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--black);
}

.text-link .arrow {
  width: 40px;
  height: 10px;
  transition: transform 0.3s ease;
}

.text-link:hover .arrow {
  transform: translateX(6px);
}

.text-link--light {
  color: var(--white);
}

/* ---------- placeholders ---------- */

.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--ph-color);
}

.ph-bw {
  background: var(--ph-bw);
}

.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(0, 0, 0, 0.45);
}

.ph-bw::after {
  color: rgba(255, 255, 255, 0.55);
}

/* a slot with a real photo (the server puts the <img> in): fills it, no label */
.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph:has(> img)::after {
  content: none;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  padding: 0 var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--gray-bg);
}

/* links gather next to the logo, not at the edges */
.nav {
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
}

.nav-left {
  justify-content: flex-end;
}

.nav a,
.footer-nav a {
  font-size: 10.5px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gray-text);
  transition: color 0.2s ease;
}

.nav a:hover,
.footer-nav a:hover {
  color: var(--black);
}

/* the logo file is white (made for the old dark header): render it black */
.logo img,
.footer-logo {
  filter: brightness(0);
}

.logo img {
  height: 60px;
  width: auto;
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 28px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
}

.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--black);
}

.menu-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.menu-dialog[open] {
  display: flex;
}

.menu-dialog a {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 30px;
}

.menu-close {
  position: absolute;
  top: 36px;
  right: var(--gutter);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* ---------- collage photo preview ---------- */

.ph--preview {
  cursor: pointer;
}

.ph--preview:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 4px;
}

/* the page behind doesn't scroll while the preview is open */
html:has(.lightbox[open]) {
  overflow: hidden;
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #0b0b0b;
  color: var(--white);
  /* one finger is ours (swipes), two are the browser's (zoom); zoomed in, all of it is the browser's */
  touch-action: pinch-zoom;
}

.lightbox.is-zoomed {
  touch-action: auto;
}

.lightbox[open] {
  display: block;
  animation: lightbox-in 0.25s ease;
}

.lightbox::backdrop {
  background: transparent;
}

@keyframes lightbox-in {
  from { opacity: 0; }
}

.lightbox-stage {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 72px 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* hidden until loaded; the slides between photos are js animations (Home_Page_v2.js) */
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-stage img.is-loaded {
  opacity: 1;
}

.lightbox button {
  position: absolute;
  z-index: 1;
  padding: 12px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  opacity: 1;
}

.lightbox-close {
  top: 24px;
  right: calc(var(--gutter) - 12px);
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: calc(var(--gutter) - 12px);
}

.lightbox-next {
  right: calc(var(--gutter) - 12px);
}

.lightbox-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  margin: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.24em;
  opacity: 0.75;
}

.lightbox.is-single .lightbox-nav {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  /* bar + hero fill the first screen; svh = the height with the phone's browser bars shown */
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 520px;
}

.hero > .ph {
  position: absolute;
  inset: 0;
}

.hero-text {
  position: absolute;
  left: var(--gutter);
  bottom: 7%;
  max-width: calc(100% - 2 * var(--gutter));
  color: var(--white);
}

/* dark see-through panel keeps the headline readable on light photos */
.hero .hero-title {
  width: fit-content;
  max-width: 100%;
  padding: clamp(12px, 1.5vw, 20px) clamp(14px, 2vw, 24px);
  font-size: clamp(38px, 5vw, 64px);
  margin-bottom: 32px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* the link is a white pill button */
.hero .text-link {
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  transition: background 0.3s ease;
}

.hero .text-link:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hero-title span,
.hero-title em {
  display: block;
}

/* ---------- intro: the page's h1, a quiet line between the hero and the services ---------- */

.intro {
  padding: 96px var(--gutter) 0;
  text-align: center;
}

.intro-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.6;
  color: var(--gray-text);
}

.intro + .featured {
  padding-top: 48px;
}

/* ---------- featured cards ---------- */

.featured {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 36px);
}

.card {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.card .ph {
  transition: transform 0.8s ease;
}

.card:hover .ph {
  transform: scale(1.03);
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: var(--white);
  transition: background 0.4s ease;
}

.card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  margin: 0;
}

.card-text,
.card-more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease, margin 0.4s ease;
}

.card-text {
  max-width: 260px;
  font-size: 13px;
  line-height: 1.6;
}

.card-more {
  color: var(--white);
}

.card:hover .card-overlay {
  background: rgba(0, 0, 0, 0.35);
}

.card:hover .card-text,
.card:hover .card-more {
  max-height: 120px;
  opacity: 1;
  margin-top: 16px;
}

/* no hover on touch screens: keep the overlay text visible */
@media (hover: none) {
  .card-overlay {
    background: rgba(0, 0, 0, 0.3);
  }

  .card-text,
  .card-more {
    max-height: 120px;
    opacity: 1;
    margin-top: 16px;
  }
}

/* ---------- gray bands (philosophy, testimonial) ---------- */

.band {
  padding: clamp(80px, 11vw, 150px) var(--gutter);
  text-align: center;
}

.band-gray {
  background: var(--gray-bg);
}

.band blockquote {
  max-width: 760px;
  margin: 0 auto;
}

.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 120px;
  line-height: 0.6;
  height: 50px;
  color: var(--black);
}

/* ---------- full-bleed statement photo ---------- */

.statement-photo {
  position: relative;
  height: 90vh;
  min-height: 480px;
}

.statement-photo > .ph {
  position: absolute;
  inset: 0;
}

.statement-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  text-align: center;
  color: var(--white);
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.6vw, 96px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin: 0;
}

.statement-text .editorial {
  margin-top: 18px;
}

/* ---------- bio ---------- */

.bio {
  padding: 120px var(--gutter);
}

.bio-text {
  max-width: 640px;
  margin: 0 auto;
  color: #333;
}

.bio-text p {
  margin: 0 0 20px;
}

.bio-lead {
  color: var(--black);
  text-align: center;
  margin-bottom: 40px !important;
}

/* ---------- galleries: asymmetric collage ---------- */

.gallery {
  max-width: var(--gallery-max);
  margin: 0 auto;
  padding: 120px var(--gutter);
}

.gallery-head {
  text-align: center;
  margin-bottom: 80px;
}

.gallery-head .section-title {
  margin-bottom: 0;
}

.gallery-subtitle {
  color: var(--gray-text);
  margin-top: 14px;
}

/* 12 columns, rows of a quarter column so spans give the aspect ratio
   (square = 4 rows per column, 3:2 = ~2.7, 2:3 = 6) and a 1-row gap ≈ the column gap */
.collage {
  --u: calc((min(100vw, var(--gallery-max)) - 2 * var(--gutter)) / 48);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: var(--u);
  column-gap: clamp(14px, 1.8vw, 26px);
}

.collage > :nth-child(1) { grid-column: 1 / 8;  grid-row: 1 / 20; }
.collage > :nth-child(2) { grid-column: 8 / 13; grid-row: 4 / 34; }
.collage > :nth-child(3) { grid-column: 2 / 6;  grid-row: 21 / 37; }
.collage > :nth-child(4) { grid-column: 6 / 13; grid-row: 35 / 54; }
.collage > :nth-child(5) { grid-column: 1 / 6;  grid-row: 38 / 68; }
.collage > :nth-child(6) { grid-column: 6 / 13; grid-row: 55 / 74; }
.collage > :nth-child(7) { grid-column: 7 / 12; grid-row: 75 / 95; }
.collage > :nth-child(8) { grid-column: 1 / 6;  grid-row: 69 / 99; }

/* same layout flipped left to right */
.collage--mirror {
  direction: rtl;
}

.collage--mirror > * {
  direction: ltr;
}

/* ---------- closing statement ---------- */

.closing {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px var(--gutter);
  text-align: center;
}

.closing h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  margin-bottom: 32px;
}

.closing .editorial {
  color: #333;
  margin-bottom: 40px;
}

/* ---------- contact ---------- */

.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}

.contact-grid > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-grid .label {
  margin-bottom: 10px;
}

.contact-grid a:hover {
  color: var(--gray-text);
}

.map {
  height: 420px;
  margin-top: 64px;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--gray-bg);
  padding: 90px var(--gutter) 48px;
  text-align: center;
}

.footer-logo {
  height: 80px;
  width: auto;
  margin: 0 auto;
}

.footer-tagline {
  margin-top: 20px;
  font-size: 17px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-top: 40px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  color: var(--gray-text);
}

.footer-social a:hover {
  color: var(--black);
}

.footer-seo {
  margin: 48px 0 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray-light);
}

.footer-seo span {
  margin: 0 10px;
}

.footer-seo a {
  color: var(--gray-text);
}

.footer-seo a:hover {
  color: var(--black);
}

.footer-copy {
  margin: 16px 0 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gray-light);
}

/* ---------- fade in on scroll (Home_Page_v2.js adds .is-visible) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lightbox[open] {
    animation: none;
  }
}

/* ---------- tablet ---------- */

@media (max-width: 960px) {
  :root {
    --header-h: 76px;
  }

  .site-header {
    grid-template-columns: 1fr auto 1fr;
  }

  .nav {
    display: none;
  }

  .logo {
    grid-column: 2;
  }

  .logo img {
    height: 48px;
  }

  .menu-toggle {
    display: flex;
    grid-column: 3;
  }

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

/* ---------- phone ---------- */

@media (max-width: 680px) {
  :root {
    --header-h: 60px;
  }

  .logo img {
    height: 38px;
  }

  .menu-close {
    top: 20px;
  }

  /* preview: the photo runs edge to edge, the arrows sit at the bottom beside the count (swipes do the rest) */
  .lightbox-stage {
    padding: 64px 0 80px;
  }

  .lightbox-close {
    top: 10px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .lightbox-count {
    bottom: 30px;
  }

  .hero {
    min-height: 420px;
  }

  /* headline and button centered; the headline panel runs edge to edge */
  .hero-text {
    left: 0;
    right: 0;
    max-width: none;
    text-align: center;
  }

  /* each sentence fits on one line from 390px wide (wraps on narrower phones), bolder so it stays clear */
  .hero .hero-title {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 24px;
    font-size: 26px;
    font-weight: 500;
  }

  .featured,
  .bio,
  .gallery {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .intro {
    padding-top: 64px;
  }

  .intro + .featured {
    padding-top: 40px;
  }

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

  /* collage becomes a simple two-column flow */
  .collage,
  .collage--mirror {
    direction: ltr;
    /* minmax(0, …): plain 1fr won't shrink below the photos' size and pushes the page wider than the screen */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    grid-auto-flow: dense;
    gap: 16px;
  }

  .collage > * {
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto;
  }

  .collage > .landscape {
    grid-column: 1 / -1 !important;
    aspect-ratio: 3 / 2;
  }

  .collage > .portrait {
    aspect-ratio: 2 / 3;
  }

  .collage > .square {
    aspect-ratio: 1;
  }

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

  .map {
    height: 320px;
  }

  .footer-seo span {
    display: block;
    height: 0;
    overflow: hidden;
  }

  .footer-seo a {
    display: block;
    margin-top: 8px;
  }
}
