/* The Signal: index and article pages (builds on main.css) */
.signal-page main { padding-top: 72px; }

/* Index */
.sig-hero { padding: clamp(70px, 10vw, 140px) 0 clamp(40px, 5vw, 64px); }
.sig-title { font-size: clamp(56px, 10vw, 150px); line-height: .9; letter-spacing: -.06em; font-weight: 650; }
.sig-lead { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); color: #c3c6cc; }

.card { display: flex; flex-direction: column; }
.card-img { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--bg-2); }
.card-img { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-img { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); }
.card:hover .card-img::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.card-meta { margin-top: 18px; display: flex; gap: 14px; font-size: 13px; color: var(--mute); }
.card-meta span { color: var(--ink); }
.card h3 { margin-top: 10px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.card h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.card:hover h3 a { background-size: 100% 1px; }
.card p { margin-top: 10px; color: var(--mute); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.sig-lead-story { padding-bottom: clamp(70px, 9vw, 120px); }
.card-big { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 clamp(28px, 4vw, 60px); align-items: end; }
.card-big .card-img { grid-row: span 4; border-radius: 24px; }
.card-big h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.035em; line-height: 1.1; }
.card-big p { font-size: 17px; -webkit-line-clamp: 4; }

.sig-list { padding-bottom: clamp(100px, 12vw, 160px); }
.sig-list-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; color: var(--mute); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: color .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease); }
.chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, .35); }
.chip.is-on { background: #eceef0; color: #0b0c0e; border-color: #eceef0; }
.grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 28px; }
.grid .card { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.grid .card.is-out { display: none; }

/* Article */
.read-line { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.read-line span { display: block; height: 100%; background: #eceef0; transform: scaleX(var(--read, 0)); transform-origin: left; }
.art-head { padding: clamp(56px, 8vw, 110px) 0 clamp(36px, 5vw, 56px); max-width: 900px; margin-left: max(var(--gutter), (100vw - var(--max)) / 2); }
.back { display: inline-block; font-size: 14px; color: var(--mute); text-decoration: none; margin-bottom: 36px; transition: color .3s, transform .5s var(--ease); }
.back::before { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; transition: width .5s var(--ease); }
.back:hover { color: var(--ink); }
.back:hover::before { width: 30px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--mute); }
.art-meta span:first-child { color: var(--ink); }
.art-title { margin-top: 18px; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.03; letter-spacing: -.045em; font-weight: 650; }
.art-title .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.art-title .wd > span { display: inline-block; }
.art-intro { margin-top: 24px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: #c3c6cc; max-width: 36em; }
.art-by { margin-top: 22px; font-size: 14px; color: var(--mute); }
.art-by a { color: var(--ink); text-decoration: none; }
.art-cover { margin-top: 0; margin-bottom: clamp(50px, 7vw, 90px); }
.art-cover-in { border-radius: 24px; overflow: hidden; aspect-ratio: 1600 / 840; background: var(--bg-2); }
.art-cover-in img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.art-cover figcaption { margin-top: 12px; font-size: 13px; color: var(--dim); }

.art-layout { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: clamp(40px, 7vw, 120px); padding-bottom: clamp(80px, 10vw, 130px); }
.art-aside { position: relative; }
.art-aside-in { position: sticky; top: 110px; }
.art-aside p { font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.toc { display: flex; flex-direction: column; gap: 2px; }
.toc a { font-size: 14px; color: var(--mute); text-decoration: none; padding: 6px 0 6px 14px; border-left: 1px solid var(--line); transition: color .3s, border-color .3s; }
.toc a:hover, .toc a.is-on { color: var(--ink); border-left-color: #eceef0; }

.prose { font-size: 18px; line-height: 1.75; color: #c9ccd2; }
.prose > * + * { margin-top: 28px; }
.prose p + p { margin-top: 20px; }
.prose h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.03em; color: var(--ink); margin-bottom: 14px; }
.prose section > h2:first-child { margin-top: 0; }
.prose section[id^="section-"], .prose .practice { padding-top: 18px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 255, 255, .35); transition: text-decoration-color .3s; }
.prose a:hover { text-decoration-color: #fff; }
.prose ol, .prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 10px; }

.prose .brief { padding: 24px 28px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); font-size: 20px; line-height: 1.5; color: var(--ink); letter-spacing: -.015em; }
.prose .opening p:first-child { font-size: 20px; line-height: 1.6; color: var(--ink); }
.prose .intro-p { color: var(--mute); }
.prose .evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.prose .evidence > div { background: var(--bg); padding: 22px 24px; font-size: 16px; line-height: 1.6; }
.prose .evidence strong { display: block; margin-bottom: 8px; }
.prose .insight { margin-top: 28px; padding: 22px 24px; border-radius: 18px; background: #eceef0; color: #0f1012; font-size: 19px; line-height: 1.5; letter-spacing: -.015em; font-weight: 500; }

.more { padding: clamp(80px, 10vw, 130px) 0; border-top: 1px solid var(--line); }
.signal-foot { padding-top: clamp(90px, 11vw, 150px); }
.contact-title.small { font-size: clamp(36px, 5vw, 72px); }

@media (max-width: 960px) {
  .signal-page main { padding-top: 64px; }
  .card-big { grid-template-columns: 1fr; }
  .card-big .card-img { grid-row: auto; }
  .grid { grid-template-columns: 1fr 1fr; gap: 44px 20px; }
  .art-layout { grid-template-columns: 1fr; }
  .art-aside { display: none; }
  .art-cover-in { border-radius: 16px; }
  .prose .evidence { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
}

/* Opening: a live signal behind the title */
.sig-hero { position: relative; overflow: hidden; }
.wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.wave.is-on { opacity: 1; }
.sig-hero .wrap { position: relative; }
.sig-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--mute); }
.sig-meta a { color: var(--ink); text-decoration: none; }
.sig-meta a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Images fade in once loaded */
.card-img img, .art-cover-in img { opacity: 0; transition: opacity .9s var(--ease); }
.card-img img.is-loaded, .art-cover-in img.is-loaded { opacity: 1; }
.card-img { position: relative; }
.card-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; transition: box-shadow .5s var(--ease); }


/* Article devices, written to read like an edited feature */
.art-main { min-width: 0; }
.prose .brief { padding: 0 0 0 22px; border: 0; border-left: 2px solid #eceef0; border-radius: 0; background: none; font-size: clamp(21px, 2vw, 26px); line-height: 1.4; letter-spacing: -.02em; font-weight: 550; }
.prose .facts-strip ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; counter-reset: f; }
.prose .facts-strip li { margin: 0; padding: 22px 20px; background: var(--bg); font-size: 15px; line-height: 1.55; color: #d4d7dc; counter-increment: f; }
.prose .facts-strip li::before { content: counter(f, decimal-leading-zero); display: block; margin-bottom: 12px; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.prose .explain p { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.45; letter-spacing: -.02em; color: var(--ink); font-weight: 500; }
.prose .explain { padding: 6px 0; }
.prose .question { margin-top: 56px; padding: 40px 0 0; border-top: 1px solid var(--line); }
.prose .question p:first-of-type { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.03em; color: var(--ink); font-weight: 600; }
.prose .question p + p { margin-top: 10px; font-size: 15px; color: var(--dim); }
.prose .sources { margin-top: 48px; }
.prose .sources h2 { font-size: 15px; font-weight: 500; color: var(--mute); letter-spacing: 0; margin-bottom: 14px; }
.prose .sources ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.prose .sources li { margin: 0; }
.prose .sources a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); text-decoration: none; transition: border-color .4s var(--ease), background-color .4s var(--ease), transform .5s var(--ease); }
.prose .sources a:hover { border-color: var(--line-2); background: var(--bg-3); transform: translateY(-2px); }
.src-t { font-size: 16px; line-height: 1.45; color: var(--ink); }
.src-d { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); }
.src-d svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .5s var(--ease); }
.prose .sources a:hover .src-d svg { transform: translate(2px, -2px); }

/* Sharing: one button that opens the device share sheet (or a small menu on desktop) */
.share-side { margin-top: 40px; }
.sharebox { position: relative; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sharebox svg { width: 17px; height: 17px; display: block; }
.sharebox .sh-main svg, .sharebox .sh-copy svg, .sharebox .sh-item[data-net="email"] svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sharebox .sh-item svg { fill: currentColor; }
.sh-main, .sh-copy { font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); }
.sh-main { background: #eceef0; color: #0b0c0e; border: 1px solid #eceef0; font-weight: 550; }
.sh-main:hover { background: #fff; transform: translateY(-1px); }
.sh-copy { background: none; color: var(--ink); border: 1px solid var(--line-2); }
.sh-copy:hover { border-color: rgba(255, 255, 255, .4); }
.sharebox.is-list { flex-direction: column; align-items: flex-start; }
.sh-menu { position: absolute; z-index: 30; left: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px; border-radius: 18px; background: #17181c; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.sh-menu.is-open { opacity: 1; transform: none; }
.sh-menu[hidden] { display: block; visibility: hidden; pointer-events: none; }
.sh-menu.is-open[hidden] { visibility: visible; pointer-events: auto; }
.sh-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 14px; color: var(--ink); text-decoration: none; transition: background-color .3s; }
.sh-item:hover, .sh-item:focus-visible { background: rgba(255, 255, 255, .07); }
.share-end { margin-top: 64px; padding: 30px; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); }
.share-end > p { font-size: 20px; letter-spacing: -.02em; color: var(--ink); font-weight: 550; margin-bottom: 18px; }
.share-end .sh-menu { top: auto; bottom: calc(100% + 10px); transform-origin: bottom left; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #eceef0; color: #0b0c0e; font-size: 14px; font-weight: 550; padding: 12px 20px; border-radius: 999px; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 960px) { .prose .facts-strip ol { grid-template-columns: 1fr; } .share-end { padding: 22px; } }
