/* =========================================================
   Silent Studio — Shared site CSS
   Extracted from website/index.html (authoritative)
   Import on all canonical pages: ../systems/design-system/site.css
   ========================================================= */

@import url("colors_and_type.css");
@import url("site-theme.css");

/* ---- Base (index.html) ---- */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  background-color: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--signal);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--signal);
}

/* ---- Layout ---- */
.frame {
  margin-inline: auto;
  width: calc(100vw - 2rem);
  max-width: 1600px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 2.5rem;
}

@media (min-width: 768px) {
  .grid-12 {
    column-gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .grid-12 {
    column-gap: 2rem;
  }
}

.copy-lockup {
  max-width: 34rem;
}

.copy-measure {
  max-width: 30rem;
}

.section-rule {
  border-top: 0;
}

/* Global section-separator reset: no full-width top/bottom rules between sections */
main > section {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* Remove footer seam that visually acts like a section divider */
footer > .frame > .mt-14.grid-12 {
  border-top: 0 !important;
}

/* ---- Typography (index.html) ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ash);
}

.eyebrow::before {
  content: "";
  display: block;
  height: 1px;
  width: 2.5rem;
  background: var(--signal);
}

.silent-mark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 1.28rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink);
}

@media (min-width: 768px) {
  .silent-mark {
    font-size: 1.45rem;
  }
}

.silent-mark-angle {
  color: var(--signal);
}

.footer-tagline {
  margin-left: auto;
  max-width: 20ch;
  font-size: clamp(1.75rem, 3.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: right;
  text-wrap: balance;
}

.footer-tagline > span {
  display: block;
}

.display {
  font-size: clamp(3rem, 6.2vw, 7rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.section-title {
  font-size: clamp(1.95rem, 3vw, 3.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.lede {
  font-size: 1.04rem;
  line-height: 2rem;
  color: var(--ink-muted);
}

@media (min-width: 768px) {
  .lede {
    font-size: 1.12rem;
  }
}

.hero-subtitle {
  max-width: 52rem;
  font-size: clamp(1.18rem, 1.9vw, 2rem);
  line-height: 1.32;
  color: var(--ink-muted);
}

.hero-composition {
  display: grid;
  gap: 3rem;
}

.hero-copy {
  max-width: 86rem;
}

.hero-copy .display,
.hero-copy .hero-subtitle {
  text-shadow: 0 1px 28px rgba(0, 0, 0, 0.55);
}

.hero-intelligence {
  display: grid;
  gap: 1px;
  max-width: 34rem;
  border: 1px solid var(--softline);
  background: var(--softline);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.intelligence-card {
  background: rgba(10, 10, 10, 0.78);
  padding: 1.25rem;
  backdrop-filter: blur(18px);
}

.intelligence-card-primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    rgba(10, 10, 10, 0.82);
}

.intelligence-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ash);
}

.intelligence-signal {
  display: inline-flex;
  height: 0.48rem;
  width: 0.48rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 0 6px rgba(255, 32, 38, 0.12);
}

.intelligence-title {
  margin-top: 1rem;
  max-width: 18rem;
  font-size: clamp(1.25rem, 1.9vw, 1.72rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.intelligence-copy {
  margin-top: 0.85rem;
  max-width: 25rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.intelligence-metric {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: end;
  border-top: 1px solid var(--softline);
  padding-top: 1rem;
}

.intelligence-metric span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ash);
}

.intelligence-metric strong {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .hero-composition {
    grid-template-columns: minmax(0, 8fr) minmax(22rem, 4fr);
    align-items: center;
    min-height: min(720px, calc(100vh - 78px));
  }

  .hero-intelligence {
    justify-self: end;
  }
}

.hero-cta {
  width: 100%;
  padding: 1rem 2rem;
  text-align: center;
  line-height: 1.375;
  letter-spacing: 0.22em;
}

@media (min-width: 640px) {
  .hero-cta {
    padding: 1.125rem 2.5rem;
  }
}

/* ---- Components ---- */
.meta-card {
  border: 1px solid var(--softline);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.editorial-image {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
}

.editorial-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03) brightness(0.78);
}

.hero-photo {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) brightness(0.72);
  object-position: 72% center;
}

.problem-shell {
  overflow: hidden;
}

.problem-grid {
  display: grid;
  gap: 1px;
  background: var(--softline);
}

@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.problem-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--surface);
  padding: 2rem;
}

@media (min-width: 768px) {
  .problem-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 2.5rem;
  }
}

.problem-card-icon {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
}

.problem-card-content {
  min-width: 0;
  flex: 1;
}

.problem-number {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ash);
  transition: color 200ms ease;
}

/* ---- Motion ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

html.figma-capture .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ---- Problem icons (homepage) ---- */
.ss-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
}

.ss-icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.problem-card:hover .ss-icon {
  color: #ff2a1f;
}

.problem-card:hover .problem-number {
  color: #ff2a1f;
}

@media (max-width: 768px) {
  .ss-icon {
    width: 48px;
    height: 48px;
  }
}
