@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;1,400&family=Roboto+Flex:wght@300&display=swap');

:root {
  --bg: #000000;
  --fg: #ffffff;
  --navy: #0a1a3f;
  --heading-font: 'Instrument Serif', serif;
  --body-font: 'Roboto Flex', 'Times New Roman', Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 103.5%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

/* Scroll reveal */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body-font);
  font-weight: 300;
}

button, input, textarea {
  font-weight: 300;
}

h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: 300;
  margin: 0;
}

a {
  color: var(--fg);
}

p {
  line-height: 1.6;
}

/* Nav */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem 5vw;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-nav .brand {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.4025rem;
  text-decoration: none;
}

.port-icon {
  display: block;
  height: 2.53rem;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Layout */
/* --nav-height is measured in script.js since the nav now floats
   transparently over the top section instead of taking up flow space. */
main {
  padding: calc(var(--nav-height, 5rem) + 2rem) 5vw 6rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
}

.hero p {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.hero-centered {
  text-align: center;
}

.hero-centered p {
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

.hero p.business-subheader {
  font-size: 0.825rem;
}

section {
  margin-top: 6.25rem;
}

.contact-section {
  margin-top: 7.8125rem;
}

.bio-section {
  margin-top: 6.5625rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.bio-section h2 {
  text-align: center;
}

.contact-page-section {
  margin-top: 5.3125rem;
}

.projects-section {
  margin-top: 7.5rem;
}

.reach-out-heading {
  font-size: clamp(2.34rem, 5.2vw, 3.25rem);
}

.reach-out-icon {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 2.5rem auto 0;
}

section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.quote {
  font-style: italic;
  font-size: 1.3rem;
  margin: 2rem 0;
  text-align: center;
}

/* Placeholder photo box */
.placeholder-box {
  background: var(--navy);
  width: 100%;
  aspect-ratio: 4 / 3;
}

img.placeholder-box {
  display: block;
  object-fit: cover;
}

.gallery-item {
  display: block;
  margin-top: 3rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.gallery-item:hover {
  opacity: 0.8;
}

.gallery-item h3 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--body-font);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
  min-height: 2.8em;
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 2rem auto 0;
  max-width: 70%;
}

/* Business photography grid: 2 columns, caption overlaid on the photo */
.business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 3rem auto 0;
  max-width: 80%;
}

/* Static, non-clickable box just showcasing a graphic (not a client) */
.coming-soon-box {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coming-soon-box img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

@media (max-width: 700px) {
  .business-grid {
    grid-template-columns: 1fr;
  }
}

.overlay-item {
  position: relative;
  display: block;
  text-decoration: none;
}

.overlay-item .placeholder-box {
  aspect-ratio: 4 / 3;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.overlay-item:hover .placeholder-box {
  opacity: 1;
}

.overlay-item h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  text-align: center;
  width: 100%;
  padding: 0 1rem;
  transition: opacity 0.4s ease;
}

.overlay-item:hover h3 {
  opacity: 0;
}

/* Legal notices */
.legal-notice {
  margin-top: 5rem;
  padding-top: 2rem;
  font-size: 0.7225rem;
  color: var(--fg);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.legal-notice h3 {
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 1rem;
  font-family: var(--body-font);
  letter-spacing: 0.05em;
  text-align: center;
}

.legal-notice p {
  line-height: 1.5;
  text-align: justify;
}

.legal-notice-top {
  margin-top: 0;
  padding-top: 0;
}

.legal-notice-spaced {
  margin-top: 20rem;
}

/* Plain centered category list (no photos yet) */
.category-list-section {
  text-align: center;
  margin-top: 12rem;
}

.category-list {
  font-family: var(--heading-font);
  font-size: clamp(2.6rem, 6.5vw, 3.575rem);
  line-height: 1.6;
}

.category-list .dot {
  color: var(--fg);
  margin: 0 0.3em;
}

.category-list a {
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.3s ease, text-shadow 0.3s ease;
  cursor: pointer;
}

.category-list:hover a:not(:hover) {
  opacity: 0.4;
}

.category-list a:hover {
  opacity: 1;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
}

/* Accent italic heading (matches Instrument Serif italic cut used for accent moments) */
.accent-heading {
  font-style: italic;
  font-size: clamp(2.61rem, 5.8vw, 3.625rem);
  text-align: center;
}

.projects-intro {
  max-width: 700px;
  margin: 1.5rem auto 0;
  text-align: center;
}

/* Split two-column layout: media/content left, text/form right, both stretched to equal height */
.bio-grid,
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: stretch;
}

.bio-grid .placeholder-box {
  height: 100%;
  aspect-ratio: auto;
}

@media (max-width: 700px) {
  .bio-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .bio-grid .placeholder-box {
    aspect-ratio: 3 / 4;
    height: auto;
  }

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

@media (max-width: 900px) and (min-width: 701px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Pill CTA buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.btn-pill {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #000;
  text-decoration: none;
  font-family: var(--body-font);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -8px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-pill:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 -8px 14px rgba(0, 0, 0, 0.1);
}

.explore-buttons .btn-row {
  margin-top: 0;
  justify-content: center;
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.contact-form .name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .contact-form .name-row {
    grid-template-columns: 1fr;
  }
}

.contact-form label,
.contact-form span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 0.765rem 1.3rem;
  color: var(--fg);
  font-family: var(--body-font);
  font-size: 1rem;
}

.contact-form textarea {
  border-radius: 14px;
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  cursor: pointer;
  border: none;
}

/* Full-bleed hero for individual location/client pages */
.location-hero {
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  margin-top: calc(-1 * (var(--nav-height, 5rem) + 2rem));
  min-height: 60vh;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.location-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.location-hero-content {
  position: relative;
  z-index: 1;
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 5vw;
}

.location-hero-content h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
}

.location-hero-content p {
  margin-top: 2rem;
  font-size: 0.88rem;
  line-height: 1.8;
}

/* Masonry photo gallery: images keep their native aspect ratio and pack
   into columns, newest photo first. initMasonryGallery() in script.js
   builds the .masonry-column divs and fills them from files named
   1, 2, 3... in a folder, always placing the next photo into whichever
   column is currently shortest. */
.masonry-gallery {
  display: flex;
  gap: 1.5rem;
  margin-top: 5rem;
}

.masonry-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* Temporary "work in progress" notice shown when a location's folder has
   no numbered photos yet. initMasonryGallery()'s return count decides
   whether this is displayed; remove the notice once real photos exist. */
.wip-notice {
  display: none;
  margin: 5rem auto 0;
  max-width: 420px;
  text-align: center;
}

.wip-notice img {
  display: block;
  width: 100%;
  height: auto;
}

/* Prev/next pager, sits above the footer on sub-pages */
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5vw;
  margin-top: 4rem;
  font-family: var(--heading-font);
  font-style: normal;
  font-size: 1.68rem;
}

.pager a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.pager a:hover {
  opacity: 0.6;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 5vw;
  font-size: 0.9rem;
}

footer p {
  margin: 0;
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 2.25rem;
}

footer p:last-child {
  font-style: normal;
}

footer p:last-child a {
  text-decoration: none;
}

/* ==========================================================
   PHONES (<= 700px)
   Everything in this block only applies on small screens, so
   the desktop layout defined above is untouched by design.
   ========================================================== */
@media (max-width: 700px) {
  /* Photo grids. The desktop width caps (70% / 80%) were never
     lifted for mobile, so photos rendered inside 236px of a
     375px screen with dead gutters either side. */
  .gallery-grid,
  .business-grid {
    max-width: 100%;
    gap: 2rem;
  }

  /* clamp() sets a floor, and on a phone the floor is what wins —
     so these headings never actually shrank. Overridden outright. */
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .accent-heading {
    font-size: 2rem;
  }

  .reach-out-heading {
    font-size: 1.9rem;
  }

  section h2 {
    font-size: 1.6rem;
  }

  .location-hero-content h1 {
    font-size: 2.4rem;
  }

  /* Category list. The page's own markup groups these three-to-a-line
     with <br> and bullet spans, which is too wide here, so both are
     hidden and the breaks and separators are regenerated two-to-a-line:
     New York City alone, then pairs, then Belgium. */
  .category-list {
    font-size: 1.52rem;
    line-height: 2.1;
  }

  .category-list br,
  .category-list .dot {
    display: none;
  }

  /* A line break after every odd link and a bullet after every even
     one gives 1 / 2 3 / 4 5 / 6 7 / 8. */
  .category-list a:nth-of-type(odd)::after {
    content: "\A";
    white-space: pre;
  }

  .category-list a:nth-of-type(even)::after {
    content: " \2022 ";
  }

  /* ...except the last one, which would trail a stray bullet. */
  .category-list a:last-of-type::after {
    content: none;
  }

  /* Vertical rhythm. Desktop spacing reads as several swipes of
     empty black on a phone. */
  section {
    margin-top: 3.5rem;
  }

  .projects-section {
    margin-top: 4rem;
  }

  .contact-section {
    margin-top: 4.5rem;
  }

  .bio-section {
    margin-top: 4rem;
  }

  .category-list-section {
    margin-top: 5rem;
  }

  .legal-notice-spaced {
    margin-top: 7rem;
  }

  /* Pager and footer are both space-between rows of large serif
     text, which collide once the screen is this narrow. */
  .pager {
    font-size: 1.15rem;
    padding: 1.5rem 5vw;
    margin-top: 2.5rem;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  footer p {
    font-size: 1.4rem;
  }
}

/* ==========================================================
   MOBILE MENU
   The button lives in the HTML on every page but is hidden on
   desktop, where the full link list is shown instead.
   ========================================================== */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  /* Padding gives a ~44px tap target; the negative margin keeps
     that target from shifting the surrounding layout. */
  padding: 0.75rem;
  margin: -0.75rem;
  position: relative;
  z-index: 30;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span + span {
  margin-top: 6px;
}

/* Open: the outer bars cross into an X and the middle one fades. */
.site-nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  /* The brand and icon stay put on the left at all times, sitting
     above the overlay rather than being covered by it. */
  .brand-group {
    position: relative;
    z-index: 30;
  }

  .site-nav .brand {
    font-size: 1.15rem;
  }

  .port-icon {
    height: 2rem;
  }

  /* The link list becomes a full-screen overlay. position: fixed
     takes it out of normal flow, which is also why it does not
     inflate --nav-height while open. */
  .site-nav ul {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    margin: 0;
    padding: 6rem 2rem;
    z-index: 25;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
  }

  .site-nav.is-open ul {
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul li {
    width: 100%;
  }

  .site-nav ul a {
    display: block;
    font-family: var(--heading-font);
    font-size: 1.6rem;
    letter-spacing: 0.01em;
    text-align: center;
    padding: 0.4rem 0;
  }

  /* Stop the page behind the overlay from scrolling. */
  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 700px) {
  /* Justified text at this width opens rivers of whitespace between
     words, because there are too few words per line to absorb it. */
  .legal-notice p {
    text-align: left;
  }
}
