/* ============================================================
   PAGE-SPECIFIC STYLES — extends main.css
   ============================================================ */

/* ---- SUBPAGE HERO ------------------------------------------- */
/* Matched to the homepage .hero: full viewport height, bottom-anchored copy, the
   same scrim ramp and the same text-shadow. Interior pages previously ran at
   78svh here and then overrode it inline down to 46–60svh, so every page read as
   a different, smaller treatment than the one on the home page. */
.subhero {
  position: relative;
  min-height: 100svh;
  padding-top: 9rem;
  padding-bottom: clamp(3rem, 8vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.subhero .bg {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
}
.subhero .bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* brightness(0.66) removed — it was the heaviest reduction on the site, and it
     sat on the page heroes, which are the first image a visitor from an ad sees. */
  filter: saturate(1.04);
  transform: scale(1.04);
  will-change: transform;
}
/* Same ramp as .hero-bg::after so the two treatments read identically. */
.subhero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0)    0%,
    rgba(5, 5, 5, 0.10) 25%,
    rgba(5, 5, 5, 0.28) 45%,
    rgba(5, 5, 5, 0.46) 62%,
    rgba(5, 5, 5, 0.74) 82%,
    rgba(5, 5, 5, 0.92) 100%
  );
}
.subhero .crumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver-400);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.subhero .crumb a { color: var(--silver-300); }
.subhero .crumb a:hover { color: var(--bone); }
.subhero h1 {
  font-size: clamp(3.5rem, 11.5vw, 12rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  /* 16ch rather than 14ch: interior headlines are longer than the home page's
     two-word display line, and at this size a tighter measure stacked them into
     four or five lines. */
  max-width: 16ch;
  /* Same two-layer shadow as .hero-headline — a tight layer for edge definition
     over busy detail, a wide diffuse one for separation. This is what lets the
     photograph stay bright underneath. */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.34),
    0 4px 30px rgba(0, 0, 0, 0.42);
}
/* The breadcrumb and lede sit over the photograph too. */
.subhero .crumb,
.subhero .lede {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.subhero .lede { margin-top: 2rem; max-width: 60ch; }
.subhero .key-meta {
  display: flex; flex-wrap: wrap; gap: 2rem 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.subhero .key-meta .lbl { color: var(--silver-500); }
.subhero .key-meta .val { color: var(--bone); margin-top: 0.4rem; display: block; }

/* ---- TWO-TRACK PROCESS (commercial unique) ------------------ */
.tracks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.track {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-right: 1px solid var(--rule);
  background: var(--obsidian);
  position: relative;
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  transition: background var(--dur-base) var(--ease-power);
}
.track:last-child { border-right: 0; }
.track:hover { background: var(--graphite); }
.track .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule-hi);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-200);
  width: fit-content;
}
.track .badge.metal {
  background: var(--platinum-soft);
  color: var(--ink);
  border-color: transparent;
  font-weight: 600;
}
.track h3 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 0.95;
}
.track p { color: var(--silver-200); font-size: 1rem; }
.track ol {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.track ol li {
  counter-increment: step;
  padding: 0.55rem 0 0.55rem 3rem;
  position: relative;
  color: var(--silver-200);
  font-size: 0.95rem;
}
.track ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--silver-500);
}
@media (max-width: 880px) {
  .tracks { grid-template-columns: 1fr; }
  .track { border-right: 0; border-bottom: 1px solid var(--rule); }
  .track:last-child { border-bottom: 0; }
}

/* ---- SYSTEM DEEP DIVE -------------------------------------- */
.system-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--rule);
}
.system-row:last-child { border-bottom: 1px solid var(--rule); }
.system-row.reverse > *:first-child { order: 2; }
.system-row.reverse > *:last-child { order: 1; }
/* Landscape, not portrait. Every photograph Blackstone owns is 16:9 or 4:3, and
   the previous 4:5 portrait slot cover-cropped roughly 64% of each frame's width
   away — reducing a drone shot of a finished roof to a narrow vertical keyhole.
   At 3:2 the same photo loses about 11%. Roofs are wide; the frame should be too. */
.system-row .media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.system-row .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.04);
  transform: scale(1.02);
  transition: transform var(--dur-epic) var(--ease-out-expo);
}
.system-row:hover .media img { transform: scale(1.06); }
.system-row .copy h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 0.95; }
.system-row .copy .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver-500);
  display: block;
  margin-bottom: 1rem;
}
.system-row .copy p { font-size: var(--fs-md); color: var(--silver-200); max-width: 50ch; }
.system-row .copy ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.system-row .copy ul li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-200);
  padding-left: 1.5rem;
  position: relative;
  padding-block: 0.4rem;
}
.system-row .copy ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--silver-500);
}
@media (max-width: 880px) {
  .system-row { grid-template-columns: 1fr; gap: 2rem; }
  .system-row.reverse > *:first-child,
  .system-row.reverse > *:last-child { order: initial; }
  .system-row .copy ul { grid-template-columns: 1fr; }
}

/* ---- SECTOR LIST ------------------------------------------- */
.sectors {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-top: 3rem;
}
.sectors li {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--bone);
  transition: background var(--dur-base) var(--ease-power),
              color var(--dur-base) var(--ease-power);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.sectors li::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--bone);
  transform: translateY(101%);
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.sectors li:hover { color: var(--ink); }
.sectors li:hover::before { transform: translateY(0); }
.sectors li .arrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity var(--dur-base), transform var(--dur-base);
}
.sectors li:hover .arrow { opacity: 1; transform: translateX(6px); }
@media (max-width: 880px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sectors { grid-template-columns: 1fr; } }

/* ---- BIG QUOTE / PULL ------------------------------------- */
.pull {
  padding-block: clamp(5rem, 10vw, 9rem);
  text-align: center;
  border-block: 1px solid var(--rule);
}
.pull blockquote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 24ch;
  margin: 0 auto;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--bone);
  position: relative;
}
.pull blockquote::before, .pull blockquote::after {
  content: "“";
  display: block;
  font-size: 4em;
  line-height: 0;
  color: var(--silver-500);
  margin-bottom: 0.4em;
  height: 0;
}
.pull blockquote::after {
  content: "”";
  text-align: right;
  margin-top: 0.5em;
}
.pull cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-400);
  font-style: normal;
}

/* ---- CONTACT FORM ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.contact-grid .form-wrap {
  background: var(--obsidian);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(2rem, 4vw, 3rem);
}
.contact-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-400);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-hi);
  padding: 0.85rem 0;
  color: var(--bone);
  font-size: 1rem;
  outline: 0;
  transition: border-color var(--dur-base) var(--ease-power);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--bone);
}
.field textarea { min-height: 8rem; resize: vertical; font-family: var(--font-sans); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver-300) 50%), linear-gradient(135deg, var(--silver-300) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2rem; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.form-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-400);
}
.file-input { cursor: pointer; color: var(--silver-200); }
.file-input::file-selector-button {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--rule-hi);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  margin-right: 1rem;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-power),
              color var(--dur-fast) var(--ease-power),
              border-color var(--dur-fast) var(--ease-power);
}
.file-input::file-selector-button:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.field-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: var(--silver-500);
  margin-top: 0.25rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-info .group {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.contact-info h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-400);
  margin-bottom: 0.75rem;
}
.contact-info .name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--bone);
}
.contact-info a { color: var(--silver-100); display: block; margin-top: 0.4rem; font-size: 1rem; transition: color var(--dur-fast); }
.contact-info a:hover { color: var(--bone); }
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---- ABOUT — TEAM/STORY ----------------------------------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.story p { font-size: var(--fs-md); color: var(--silver-200); }
.story p + p { margin-top: 1.2rem; }
.story .pillars {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  margin-top: 2rem;
}
.story .pillars li {
  background: var(--obsidian);
  padding: clamp(1.5rem, 2vw, 2.25rem) clamp(1.25rem, 2vw, 2rem);
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 1.6vw, 1.75rem);
  transition: background var(--dur-base) var(--ease-power);
}
.story .pillars li:hover { background: var(--graphite); }
.story .pillars li .n {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--silver-500);
  min-width: 3.25rem;
  flex-shrink: 0;
}
.story .pillars li h4 {
  font-size: clamp(1.5rem, 1.7vw, 1.9rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.story .pillars li p {
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.55;
  margin-top: 0.55rem;
  color: var(--silver-200);
  max-width: 48ch;
}
@media (max-width: 880px) { .story { grid-template-columns: 1fr; } }


/* ---- PROJECT GALLERY + FILTER ------------------------------
   Moved out of an inline <style> block in projects.html so it is cached with
   the rest of the stylesheet rather than re-sent with the document. */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--rule);
  font-family: var(--font-mono);
}
.filter-bar button {
  padding: 0.55rem 1rem;
  border: 1px solid var(--rule-hi);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-200);
  transition: background var(--dur-base) var(--ease-power),
              color var(--dur-base) var(--ease-power),
              border-color var(--dur-base) var(--ease-power);
}
.filter-bar button:hover { color: var(--bone); border-color: var(--bone); }
.filter-bar button.active {
  background: var(--bone); color: var(--ink); border-color: var(--bone); font-weight: 600;
}
.filter-status {
  /* Announced to screen readers via aria-live when a filter changes; the count
     is otherwise only conveyed visually by tiles appearing and disappearing. */
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-500);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  margin-top: 1.5rem;
}
.gallery .proj { transition: opacity var(--dur-base) var(--ease-power); }
.gallery .proj.hidden { display: none; }
.g-1  { grid-column: span 8; grid-row: span 2; }
.g-2  { grid-column: span 4; }
.g-3  { grid-column: span 4; }
.g-4  { grid-column: span 6; }
.g-5  { grid-column: span 6; }
.g-6  { grid-column: span 4; }
.g-7  { grid-column: span 4; }
.g-8  { grid-column: span 4; }
.g-9  { grid-column: span 7; grid-row: span 2; }
.g-10 { grid-column: span 5; }
.g-11 { grid-column: span 5; }
.g-12 { grid-column: span 6; }
.g-13 { grid-column: span 6; }
@media (max-width: 880px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery > * { grid-column: span 2; grid-row: auto; }
}
/* The gallery tiles are buttons, not links — they open the lightbox. Reset the
   button chrome so they still read as image cards. */
.gallery button.proj {
  border: 0;
  padding: 0;
  background: var(--graphite);
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
}
.gallery button.proj:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}
