/* ─────────────────────────────────────────────
   Shared components — placeholder blocks, quiet text
   links, and reveal-on-scroll. Mirrors the patterns
   established in home.css (kept duplicate so the
   homepage stays untouched).
   ───────────────────────────────────────────── */

/* Placeholder block — Surface tone, subtle inner Rule frame,
   centered uppercase Hanken micro-label. Swap with real image
   markup later; this class will retire. */
.placeholder {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  width: 100%;
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: var(--space-3);
  border: 1px solid var(--rule);
  pointer-events: none;
  z-index: 1;
}
.placeholder::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.42;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

/* When content.js has set a background-image from an uploaded URL,
   hide the inner Rule frame and the centered micro-label so only the
   image shows through. Applies to visitors and admin alike. */
.placeholder.has-uploaded {
  background-color: transparent;
}
.placeholder.has-uploaded::before,
.placeholder.has-uploaded::after {
  display: none;
}

/* Quiet text link — Newsreader body, sienna underline.
   Counts as the viewport's one accent. */
.text-link {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
}
.text-link:hover,
.text-link:active {
  text-decoration-color: var(--accent);
}

/* Reveal-on-scroll — gentle fade-up. JS sets html.reveal-enabled
   before paint, so without JS nothing is hidden. */
html.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}
html.reveal-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-enabled [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Investment anchor — single quiet line rendered into
   [data-investment-anchor] slots by pricing.js when
   SHOW_INVESTMENT_ANCHOR is true. Absent (no DOM) when false. */
.investment-anchor {
  text-align: center;
  margin: var(--space-5) auto var(--space-6);
  max-width: 40ch;
  color: var(--ink);
}
.investment-anchor__label {
  display: block;
  margin-bottom: var(--space-1);
  opacity: 0.6;
}
.investment-anchor__value {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: 1.3;
  opacity: 0.92;
}

/* Image hover — scale on pointer hover. Desktop/pointer only. */
.img-hover {
  overflow: hidden;
  display: block;
}
@media (hover: hover) and (pointer: fine) {
  .img-hover img {
    transition: transform 700ms cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
  }
  .img-hover:hover img {
    transform: scale(1.03);
  }
}

/* ── Animated section label — hairline (0→120px) + ◇ on scroll-in ──
   Defined here so pages that don't load about.css can reuse the pattern.
   about.css overrides color + gap + margin for its own context. */
.about-section-label {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(168, 92, 54, 0.55);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
}
.about-section-rule {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.about-section-rule::before {
  content: '';
  display: block;
  height: 1px;
  width: 120px;
  background: rgba(168, 92, 54, 0.55);
  flex-shrink: 0;
}
.about-section-rule-diamond {
  color: rgba(168, 92, 54, 0.55);
  font-size: 0.65em;
  line-height: 1;
}
html.reveal-enabled .about-section-rule::before {
  width: 0;
  transition: width 700ms cubic-bezier(0.25, 0.1, 0.25, 1) 200ms;
}
html.reveal-enabled [data-reveal].is-revealed .about-section-rule::before {
  width: 120px;
}
@media (prefers-reduced-motion: reduce) {
  html.reveal-enabled .about-section-rule::before {
    width: 120px;
    transition: none;
  }
}

/* ── Detail rail — hairlines at 30% + fact items in small caps ──
   Defined here so pages that don't load experience.css can reuse it.
   experience.css re-declares identical rules; no conflict. */
.experience-stage__rail-line {
  height: 1px;
  background: rgba(168, 92, 54, 0.3);
}
.experience-stage__rail-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 1.25rem;
  margin: 0;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink);
  opacity: 0.65;
}
.experience-stage__rail-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.experience-stage__rail-solo {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
}
.experience-stage__rail-diamond {
  color: rgba(168, 92, 54, 0.55);
  font-size: 0.7em;
  opacity: 1;
  line-height: 1;
}
