/* ===========================================================================
   pages.css — the pages beyond the film.
   Same palette, same type, same restraint. Stone is still the hero: the
   interface is a frame around photography, never a competitor to it.
   =========================================================================== */

/* ── Masthead ──────────────────────────────────────────────────────────── */
.masthead {
  position: relative;
  padding: calc(var(--nav-h) + clamp(4rem, 12vh, 9rem)) var(--gutter) clamp(3rem, 8vh, 6rem);
  border-bottom: 1px solid var(--ink-line);
}
.masthead__inner { max-width: 78rem; display: grid; gap: 1.5rem; }

.masthead__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--terra);
}
.masthead__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ivory);
  text-wrap: balance;
}
.masthead__lede {
  max-width: 46ch;
  font-size: clamp(1rem, 1.2vw, 1.1875rem);
  line-height: 1.65;
  color: var(--stone);
}
.masthead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-dim);
}

/* ── Collection: the controls ──────────────────────────────────────────── */
.controls {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  padding: 1.1rem var(--gutter);
  background: rgb(10 10 11 / 0.96);
  border-bottom: 1px solid var(--ink-line);
}
.controls__row {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  max-width: 100rem;
  margin-inline: auto;
}

.filters {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.filters::-webkit-scrollbar { display: none; }

.filters button {
  flex: 0 0 auto;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
  transition: color var(--med) var(--ease), border-color var(--med) var(--ease),
              background var(--med) var(--ease);
}
.filters button:hover { color: var(--ivory); }
.filters button[aria-pressed="true"] {
  color: var(--ivory);
  border-color: var(--terra);
  background: rgb(200 79 26 / 0.12);
}
.filters button i {
  font-style: normal;
  margin-left: 0.5rem;
  color: var(--stone-dim);
  font-size: 0.9em;
}

.search {
  margin-left: auto;
  flex: 0 1 18rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--ink-line);
  background: rgb(255 255 255 / 0.02);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 0.875rem;
  color: var(--ivory);
}
.search input::placeholder { color: var(--stone-dim); }
.search svg { flex: 0 0 auto; opacity: 0.5; }

/* ── Collection: the grid ──────────────────────────────────────────────────
   Big editorial plates, not product cards. No borders, no rounded corners,
   no price chips — the stone carries the row. */
.slabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(15rem, 22vw, 21rem), 1fr));
  gap: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
  padding: clamp(2.5rem, 6vh, 4.5rem) var(--gutter) clamp(4rem, 10vh, 7rem);
  max-width: 120rem;
  margin-inline: auto;
}

.slab {
  display: grid;
  gap: 0.9rem;
  text-align: left;
  color: inherit;

  /* 555 cards is far more than a browser should be styling and painting at
     once. Off-screen cards are skipped entirely; the intrinsic size keeps
     the scrollbar stable so nothing jumps as they come and go. */
  content-visibility: auto;
  contain-intrinsic-size: auto 22rem;
}
.slab__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-soft);
}
.slab__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s var(--ease), transform 1.6s var(--ease);
}
.slab__frame img.is-in { opacity: 1; transform: scale(1); }
.slab:hover .slab__frame img.is-in { transform: scale(1.05); }

.slab__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgb(226 219 206 / 0.08);
  transition: box-shadow var(--med) var(--ease);
}
.slab:hover .slab__frame::after,
.slab:focus-visible .slab__frame::after { box-shadow: inset 0 0 0 1px rgb(200 79 26 / 0.55); }

.slab__name {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  line-height: 1.15;
  color: var(--ivory);
}
.slab__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-dim);
}

.slabs__empty {
  grid-column: 1 / -1;
  padding: clamp(3rem, 10vh, 7rem) 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--stone-dim);
}
.slabs__sentinel { grid-column: 1 / -1; height: 1px; }

.count {
  padding: 0 var(--gutter);
  max-width: 120rem;
  margin: 0 auto;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-dim);
}

/* ── Editorial galleries (finished work) ───────────────────────────────── */
.gallery {
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  border-top: 1px solid var(--ink-line);
}
.gallery__head { max-width: 60rem; display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.gallery__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

/* Deliberately uneven: a plate every few items runs wide, so the page reads
   like a spread rather than a product listing. */
.plates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(16rem, 26vw, 26rem), 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  max-width: 120rem;
  margin-inline: auto;
}
.plate {
  position: relative;
  overflow: hidden;
  background: var(--ink-soft);
  aspect-ratio: 3 / 2;
  cursor: zoom-in;
  content-visibility: auto;
  contain-intrinsic-size: auto 20rem;
}
.plate--wide { grid-column: span 2; }
.plate--tall { aspect-ratio: 3 / 4; }

.plate img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s var(--ease), transform 2s var(--ease);
}
.plate img.is-in { opacity: 1; transform: scale(1); }
.plate:hover img.is-in { transform: scale(1.04); }

.plate__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.25rem 1.1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--bone);
  background: linear-gradient(transparent, rgb(6 6 7 / 0.85));
  opacity: 0;
  transition: opacity var(--med) var(--ease);
}
.plate:hover .plate__cap, .plate:focus-visible .plate__cap { opacity: 1; }

@media (max-width: 44rem) {
  .plate--wide { grid-column: span 1; }
}

/* ── Lightbox ──────────────────────────────────────────────────────────── */
.lightbox[open] {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgb(6 6 7 / 0.96);
}
.lightbox img {
  max-width: 100%;
  max-height: 84svh;
  width: auto;
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 0.7);
}
.lightbox__cap {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--stone);
}
.lightbox__close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  width: 3rem; height: 3rem;
  font-size: 1.6rem;
  color: var(--stone);
}
.lightbox__close:hover { color: var(--ivory); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5rem; height: 5rem;
  font-size: 1.5rem;
  color: var(--stone);
}
.lightbox__nav:hover { color: var(--ivory); }
.lightbox__nav--prev { left: 0.5rem; }
.lightbox__nav--next { right: 0.5rem; }

/* ── Editorial prose columns ───────────────────────────────────────────── */
.prose {
  padding: clamp(3rem, 9vh, 7rem) var(--gutter);
  border-top: 1px solid var(--ink-line);
}
.prose__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 100rem;
  margin-inline: auto;
  align-items: start;
}
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.prose__body { display: grid; gap: 1.4rem; max-width: 50ch; }
.prose__body p { color: var(--stone); font-size: clamp(1rem, 1.15vw, 1.125rem); line-height: 1.7; }
.prose__body strong { color: var(--bone); font-weight: 400; }

@media (max-width: 60rem) { .prose__grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Capability / finish cards ─────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 100rem;
  margin: clamp(2.5rem, 6vh, 4rem) auto 0;
}
.card { display: grid; gap: 0.85rem; align-content: start; }
.card__num {
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  color: var(--terra);
}
.card h3 {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.1;
  color: var(--ivory);
}
.card p { color: var(--stone); font-size: 0.9375rem; line-height: 1.65; }

.card--finish { gap: 0; }
.card--finish .card__frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.card--finish img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s var(--ease), transform 2s var(--ease);
  transform: scale(1.04);
}
.card--finish img.is-in { opacity: 1; transform: scale(1); }

/* ── Careers ───────────────────────────────────────────────────────────── */
.roles { border-top: 1px solid var(--ink-line); max-width: 100rem; margin-inline: auto; }

.role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem clamp(1rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3.5vh, 2.5rem) 0;
  border-bottom: 1px solid var(--ink-line);
  align-items: baseline;
}
.role__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.05;
  color: var(--ivory);
}
.role__blurb { grid-column: 1 / -1; max-width: 58ch; color: var(--stone); font-size: 0.9375rem; line-height: 1.65; }
.role__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-dim);
}
.role__apply { justify-self: end; align-self: center; }

.tag {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tag--open { background: var(--terra); color: var(--ivory); }
.tag--archive { border: 1px solid var(--ink-line); color: var(--stone-dim); }

.roles--archive .role { opacity: 0.62; }
.roles--archive .role:hover { opacity: 1; }

@media (max-width: 44rem) {
  .role { grid-template-columns: minmax(0, 1fr); }
  .role__apply { justify-self: start; }
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 38rem;
}
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}
.field input, .field textarea, .field select {
  padding: 0.9rem 1rem;
  border: 1px solid var(--ink-line);
  background: rgb(255 255 255 / 0.02);
  color: var(--ivory);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--med) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--terra); }
.field textarea { min-height: 8rem; resize: vertical; }

.form__note {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--stone-dim);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 100rem;
  margin-inline: auto;
  padding: clamp(3rem, 9vh, 7rem) var(--gutter);
  border-top: 1px solid var(--ink-line);
  align-items: start;
}
@media (max-width: 60rem) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ── Location blocks ───────────────────────────────────────────────────── */
.places {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 100rem;
  margin-inline: auto;
}
.place { display: grid; gap: 0.6rem; align-content: start; }
.place__label {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  color: var(--ivory);
}
.place address { font-style: normal; color: var(--bone); line-height: 1.6; }
.place__note { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-dim); }

/* ── SDS list ──────────────────────────────────────────────────────────── */
.sds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 60rem;
}
.sds span {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink-line);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ── Full footer ───────────────────────────────────────────────────────── */
.foot--full { justify-items: stretch; text-align: left; }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  width: 100%;
  max-width: 100rem;
  margin-inline: auto;
  text-align: left;
}
.foot__col { display: grid; gap: 0.5rem; align-content: start; }
.foot__col--brand { gap: 1.25rem; }
.foot--full .foot__mark { width: min(15rem, 60vw); margin: 0; }
.foot--full .foot__tag { font-size: clamp(1rem, 1.6vw, 1.25rem); text-align: left; }
.foot__label {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.35rem;
}
.foot__col a { color: var(--bone); font-size: 0.9375rem; line-height: 1.55; transition: color var(--med) var(--ease); }
.foot__col a:hover { color: var(--ivory); }
.foot__note { font-size: 0.75rem; color: var(--stone-dim); line-height: 1.5; }
.foot--full .foot__legal { width: 100%; max-width: 100rem; margin: clamp(3rem, 7vh, 5rem) auto 0; text-align: left; }

@media (max-width: 60rem) {
  .foot__grid { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .slab__frame img, .plate img, .card--finish img { opacity: 1 !important; transform: none !important; }
  .plate__cap { opacity: 1; }
}

/* ═══════════════════  CONCEPT DISCLOSURE  ═════════════════════════════
   Permanent, legible, and deliberately not dismissible — this study carries
   a real company's name, so a visitor must always be able to see that it is
   not that company's site. Held back over the full-bleed film and brought in
   with the grounded nav, so it never sits on top of the opening shot. */

.concept-badge {
  position: fixed;
  left: var(--gutter);
  bottom: 1.1rem;
  z-index: 200;
  max-width: min(26rem, calc(100vw - var(--gutter) * 2));
  padding: 0.6rem 0.9rem;
  font-size: 0.625rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--stone);
  background: rgb(10 10 11 / 0.9);
  border-left: 2px solid var(--terra);
  pointer-events: none;

  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.concept-badge span {
  display: block;
  color: var(--terra);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

/* Visible everywhere the nav is grounded — which is every page except the
   film, where it waits until the cinematic has finished. */
.nav.is-grounded ~ .concept-badge {
  opacity: 1;
  transform: none;
}

.foot__legal--concept {
  max-width: 68ch;
  line-height: 1.6;
  color: var(--stone-dim);
}
.foot__legal--concept strong {
  color: var(--terra);
  font-weight: 400;
  letter-spacing: 0.06em;
}

@media (max-width: 44rem) {
  .concept-badge { font-size: 0.5625rem; bottom: 0.75rem; padding: 0.5rem 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .concept-badge { transition: none; }
}
