/* ========================================================================
   THE SILVER SINGULARITY — shared stylesheet
   v2 "black synthesis" direction: near-black ground, extreme type scale,
   ceramic/installation imagery as huge backgrounds, pink used sparingly.
   ======================================================================== */

:root {
  --bg: #070d0a;
  --ink: #eaf3ec;
  --ink-soft: #8fa896;
  --green: #2e6b46;
  --green-mid: #36c97a;
  --green-light: #1fe077;
  --pink: #ff5fa8;
  --hair: #114a2c;
  --paper-2: #0d1c14;
  --max: 1180px;
  --mono: 'Courier New', monospace;
  --serif: Georgia, 'Times New Roman', serif;
  --sans-black: 'Arial Narrow', Arial, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration-color: var(--green-mid); text-underline-offset: 0.15em; }
a:hover { text-decoration-color: var(--pink); }

img { display: block; width: 100%; height: auto; background: var(--paper-2); }

.wrap {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

/* ---------- labels / kicker text ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
}

/* ---------- header / nav ---------- */
header.site {
  border-bottom: 1px solid var(--hair);
  padding: 18px 0 16px;
  position: relative;
  z-index: 8;
  background: var(--bg);
}

header.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.brand {
  font-family: var(--sans-black);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}

.brand .fork { color: var(--ink); font-weight: 900; }

nav.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav.primary a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

nav.primary a:hover,
nav.primary a.active {
  color: var(--ink);
  border-bottom-color: var(--pink);
}

.tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tool-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--ink-soft);
  padding: 6px 10px;
  cursor: pointer;
}
.tool-btn:hover { border-color: var(--pink); color: var(--pink); }
.tool-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
a.tool-btn { text-decoration: none; display: inline-block; }

/* ---------- hero / typestack ---------- */
.hero {
  padding: 70px 0 44px;
  position: relative;
}

.hero h1 {
  font-family: var(--sans-black);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 0.82;
  font-size: clamp(2.4rem, 6.4vw, 5.2rem);
  margin: 10px 0 24px;
  max-width: 920px;
  text-transform: uppercase;
  color: var(--ink);
}

.hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 0;
}

.hero-image {
  margin: 38px 0 6px;
  border: 1px solid var(--hair);
  position: relative;
}

.hero-image img { filter: saturate(0.85) contrast(1.05); }

.hero-image figcaption,
figure figcaption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  padding-top: 8px;
}

/* full-bleed hero variant — huge ceramic/install image behind the typestack */
.stage {
  position: relative;
  margin: 0 0 0;
  min-height: 86vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--hair);
  background: #000;
}
.stage-bg { position: absolute; inset: 0; z-index: 0; }
.stage-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: saturate(0.85) contrast(1.05); }
.stage-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,9,7,0.5) 0%, rgba(5,9,7,0.22) 30%, rgba(5,9,7,0.55) 62%, rgba(5,9,7,0.95) 100%);
}
.stage .wrap { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 56px; }
.stage .kicker { color: var(--green-light); }
.stage h1 {
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  line-height: 0.8;
  text-shadow: 0 12px 60px rgba(0,0,0,0.7);
}
.stage .lede { color: var(--ink-soft); }

/* ---------- vertical ceramic filmstrip (right edge, index.html only) ---------- */
.vert-filmstrip {
  position: fixed; right: 0; top: 0; height: 100vh; width: 110px; z-index: 6;
  border-left: 1px solid var(--hair); overflow: hidden; background: #000;
}
.vert-filmstrip .frames { display: flex; flex-direction: column; height: 100%; }
.vert-filmstrip .frames div { flex: 1; overflow: hidden; }
.vert-filmstrip .frames img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) brightness(0.75); }
.vert-filmstrip .overlay-text {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(5,9,7,0.35), rgba(5,9,7,0.6) 50%, rgba(5,9,7,0.35));
  pointer-events: none;
}
.vert-filmstrip .overlay-text span {
  display: inline-block; transform: rotate(90deg); white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--ink-soft);
}
.vert-filmstrip .overlay-text span .pink { color: var(--pink); }
body.has-filmstrip header.site .wrap,
body.has-filmstrip .wrap,
body.has-filmstrip footer.site .wrap { padding-right: 0; }
body.has-filmstrip header.site,
body.has-filmstrip .wall,
body.has-filmstrip footer.site,
body.has-filmstrip .stage,
body.has-filmstrip .hero,
body.has-filmstrip .fork-prompt,
body.has-filmstrip .break,
body.has-filmstrip section.block {
  margin-right: 110px;
}
@media (max-width: 900px) {
  .vert-filmstrip { display: none; }
  body.has-filmstrip header.site,
  body.has-filmstrip .wall,
  body.has-filmstrip footer.site,
  body.has-filmstrip .stage,
  body.has-filmstrip .hero,
  body.has-filmstrip .fork-prompt,
  body.has-filmstrip .break,
  body.has-filmstrip section.block { margin-right: 0; }
}

/* ---------- timeline fork prompt (home) ---------- */
.fork-prompt {
  margin: 0;
  padding: 36px 0 60px;
  border-top: 1px solid var(--hair);
}

.fork-prompt .kicker { margin-bottom: 10px; }

.fork-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hair);
  margin-top: 18px;
  border: 1px solid var(--hair);
}

.fork-grid a {
  display: block;
  background: var(--paper-2);
  padding: 18px 18px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
}

.fork-grid a .name { font-family: var(--serif); font-size: 19px; display: block; margin-bottom: 4px; color: var(--ink); }
.fork-grid a .city { color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.fork-grid a:hover { background: #122119; }
.fork-grid a:hover .city { color: var(--pink); }

@media (min-width: 700px) {
  .fork-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- sections / content ---------- */
main { padding-bottom: 0; }

section.block {
  padding: 50px 0;
  border-bottom: 1px solid var(--hair);
}
section.block:last-child { border-bottom: none; }

section.block h2 {
  font-family: var(--sans-black);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  margin: 0 0 24px;
  color: var(--ink);
}

section.block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 30px 0 10px;
  color: var(--green-light);
}

.prose { max-width: 700px; }
.prose p { margin: 0 0 18px; color: var(--ink-soft); }
.prose p.lead { font-size: 1.1rem; color: var(--ink); }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 760px) {
  .two-col { grid-template-columns: 1.3fr 1fr; gap: 50px; }
}

.meta-table {
  font-family: var(--mono);
  font-size: 13px;
}
.meta-table dt {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  margin-top: 18px;
}
.meta-table dd { margin: 4px 0 0; color: var(--ink); }

/* ---------- card grids (society, etc) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
@media (min-width: 620px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--paper-2);
  padding: 22px 22px 24px;
}
.card .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
.card h4 {
  font-family: var(--sans-black);
  text-transform: uppercase;
  font-size: 1.3rem;
  margin: 6px 0 2px;
  font-weight: 900;
  color: var(--ink);
}
.card .city {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-light);
  margin: 0 0 10px;
  display: block;
}
.card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.card a.readlink {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--pink);
}

/* ---------- mid-page break — huge installation/garden bg + extreme type ---------- */
.break {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hair);
}
.break img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.7); }
.break::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,9,7,0.92) 0%, rgba(5,9,7,0.35) 45%, rgba(5,9,7,0.85) 100%);
}
.break-copy { position: relative; z-index: 2; padding: 0 16px; max-width: 780px; }
.break-copy .label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pink); margin-bottom: 14px; }
.break-copy .big { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(2.2rem, 6vw, 6rem); line-height: 0.96; margin: 0 0 6px; color: var(--ink); }
.break-copy .small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-soft); max-width: 420px; margin-top: 18px; line-height: 1.7; }
.break-copy .small em { color: var(--green-light); font-style: normal; }

/* ---------- photo grid (installation) — doubles as thumbnail wall ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin: 28px 0;
  background: #050a07;
}
@media (min-width: 700px) {
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
}
.photo-grid figure { margin: 0; position: relative; }
.photo-grid img { aspect-ratio: 3/2; object-fit: cover; filter: grayscale(0.2) brightness(0.78); transition: filter 0.2s, transform 0.2s; }
.photo-grid figure:hover img { filter: none; transform: scale(1.04); }

/* ---------- video grid (installation videos) — full-size, no chrome ---------- */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin: 28px 0;
}
@media (min-width: 820px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
.video-grid figure { margin: 0; }
.video-grid .video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.video-grid .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.download-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: -10px;
  margin-bottom: 18px;
}
.download-note a { color: var(--ink-soft); }

/* ---------- pull quote ---------- */
blockquote.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  margin: 30px 0;
  padding-left: 22px;
  border-left: 2px solid var(--pink);
  max-width: 640px;
  color: var(--ink);
}
blockquote.pull cite {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  font-style: normal;
}

/* ---------- excerpt ---------- */
.excerpt {
  font-size: 1rem;
  max-width: 660px;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  padding: 28px 30px;
  margin: 26px 0;
}
.excerpt h3 { margin-top: 0; }
.excerpt p { margin: 0 0 16px; }
.excerpt p:last-child { margin-bottom: 0; }

/* ---------- press list ---------- */
.press-list { list-style: none; margin: 0; padding: 0; max-width: 700px; }
.press-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.press-list li:first-child { padding-top: 0; }
.press-list .src {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-light);
  display: block;
  margin-bottom: 4px;
}
.press-list a.title { font-size: 1.05rem; color: var(--ink); }
.press-list p.note { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--hair);
  padding: 28px 0 50px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--pink); }

/* ---------- buttons / cta ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--green-mid);
  background: var(--green);
  color: var(--ink);
  padding: 11px 18px;
  margin-top: 10px;
}
.btn:hover { background: var(--green-mid); color: var(--bg); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 28px; }
  .stage { min-height: 70vh; }
  section.block { padding: 36px 0; }
}
