/* Image-led covers unfold into the three canonical project stories. */
.grid:has(> .yahoo-trio:not([hidden])) { grid-template-rows: auto auto; }
.grid > .yahoo-trio { grid-column: 1 / -1; grid-row: 2; aspect-ratio: auto; padding: 28px; border-color: #665582; background: #101219; }
.trio-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.trio-eyebrow { margin: 0 0 8px; color: #b8a2e6; font: 500 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.trio-heading h2 { margin: 0; font: 700 clamp(26px, 3cqw, 42px)/1.08 var(--sans); letter-spacing: -.04em; }
.trio-toggle { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; flex: none; padding: 10px 16px; border: 1px solid #c1a2ff; border-radius: 10px 0 10px 0; background: #b895ff0a; color: #e1cfff; font: 500 14px/1.3 var(--sans); cursor: pointer; }
.trio-toggle b { font-size: 26px; font-weight: 400; }
.trio-toggle:hover { background: #b895ff1a; }
.trio-summary, .trio-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.trio-preview, .trio-project[data-slug="drop"] { --trio-ink: #ba97ff; }
.trio-preview[data-product="ocean"], .trio-project[data-slug="ocean"] { --trio-ink: #67dfbb; }
.trio-preview[data-product="cuss"], .trio-project[data-slug="cuss"] { --trio-ink: #ffdc58; }
.trio-preview { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid #343844; border-radius: 16px 16px 16px 0; background: #0a0e14; transition: border-color .18s; }
.trio-cover { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 15px 15px 0 0; background: #090b10; border-bottom: 1px solid #343844; cursor: pointer; }
.trio-cover img { width: 100%; height: 100%; object-fit: contain; }
.trio-preview-body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 46px 20px 18px; }
.trio-crayon { display: inline-block; flex: none; width: 28px; height: 28px; background: currentColor; -webkit-mask: var(--trio-drawing) center / contain no-repeat; mask: var(--trio-drawing) center / contain no-repeat; }
.trio-crayon--drop { --trio-drawing: url('/icons/trio-drop-v1.svg'); }
.trio-crayon--ocean { --trio-drawing: url('/icons/trio-ocean-v1.svg'); }
.trio-crayon--cuss { --trio-drawing: url('/icons/trio-cuss-v1.svg'); }
.trio-crayon--web { --trio-drawing: url('/icons/trio-web-v1.svg'); }
.trio-crayon--slack { --trio-drawing: url('/icons/trio-slack-v1.svg'); }
.trio-crayon--agent { --trio-drawing: url('/icons/trio-agent-v1.svg'); }
.trio-crayon--arrow { --trio-drawing: url('/icons/trio-arrow-v1.svg'); }
.trio-sticker { position: absolute; top: -39px; left: 16px; width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: #0a0e14; color: var(--trio-ink); transform: rotate(-8deg); transition: transform .2s; pointer-events: none; }
.trio-sticker::before { content: ""; position: absolute; inset: -1px; background: currentColor; -webkit-mask: url('/icons/trio-ring-v1.svg') center / contain no-repeat; mask: url('/icons/trio-ring-v1.svg') center / contain no-repeat; }
.trio-sticker .trio-crayon { width: 52px; height: 52px; }
.trio-preview[data-product="ocean"] .trio-sticker { transform: rotate(6deg); }
.trio-preview[data-product="cuss"] .trio-sticker { transform: rotate(-4deg); }
.trio-preview:hover, .trio-preview:focus-within { border-color: var(--trio-ink); }
.trio-preview:hover .trio-sticker, .trio-preview:focus-within .trio-sticker { transform: rotate(0); }
.trio-kind { display: block; color: #abb4c3; font: 500 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.trio-preview h3, .trio-project-heading h3 { width: fit-content; margin: 6px 0 13px; font: 700 clamp(32px, 3.7cqw, 52px)/1 var(--sans); letter-spacing: -.055em; }
.trio-preview h3::after, .trio-project-heading h3::after { content: ""; display: block; width: 100%; height: 15px; margin-top: 1px; background: var(--trio-ink); -webkit-mask: url('/icons/trio-swash-v1.svg') left center / 100% 100% no-repeat; mask: url('/icons/trio-swash-v1.svg') left center / 100% 100% no-repeat; }
.trio-card-open { display: flex; align-items: center; gap: 18px; font: inherit; letter-spacing: inherit; color: inherit; padding: 0; border: 0; background: none; }
.trio-card-open::after { content: ""; position: absolute; z-index: 2; inset: 0; border-radius: 16px 16px 16px 0; }
.trio-card-open .trio-crayon { width: 29px; height: 29px; color: var(--trio-ink); }
.trio-card-open:focus-visible { outline: none !important; }
.trio-card-open:focus-visible::after { outline: 2px solid var(--trio-ink); outline-offset: 4px; }
.trio-preview p, .trio-description { margin: 0; color: #d1d6df; font: 400 16px/1.5 var(--sans); max-width: 34ch; }
.trio-preview p { min-height: 3em; }
.trio-usage { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 22px; }
.trio-usage strong { color: var(--trio-ink); font: 700 clamp(30px, 3.2cqw, 44px)/1 var(--sans); letter-spacing: -.04em; }
.trio-usage span { color: #e0e4ec; font: 500 15px/1.4 var(--sans); }
.trio-preview .trio-usage { margin-top: 18px; margin-bottom: 20px; }
.trio-preview .trio-usage strong { font-size: clamp(30px, 2.7cqw, 38px); }
.trio-surfaces { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 0; list-style: none; }
.trio-preview .trio-surfaces { margin-top: auto; padding-top: 14px; border-top: 1px solid #29303b; }
.trio-surfaces li { display: flex; align-items: center; gap: 5px; color: #c6cdd8; font: 400 12px/1.4 var(--sans); }
.trio-surfaces .trio-crayon--web { color: #ba97ff; }
.trio-surfaces .trio-crayon--slack { color: #67dfbb; }
.trio-surfaces .trio-crayon--agent { color: #ffdc58; }
.trio-secondary { display: block; margin: 9px 0 0; color: #a5b0bf; font: 400 14px/1.5 var(--sans); }
.trio-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; color: #d6d0e2; font: 400 13px/1.5 var(--sans); }
.trio-footnote span { color: #a4a9b8; font-size: 12px; }
.trio-panels { gap: 16px; align-items: stretch; }
.trio-panels .tile.trio-project { grid-column: auto; grid-row: auto; aspect-ratio: auto; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px 18px 18px 0; background: #0a0e14; border-color: #343844; animation: trioReveal .3s ease both; }
.trio-panels .tile.trio-project:hover { transform: none; border-color: var(--trio-ink); }
.trio-project { scroll-margin-top: 18px; }
.trio-project-heading { position: relative; padding: 22px 20px 20px; }
.trio-project-heading .trio-sticker { top: 23px; left: auto; right: 16px; width: 60px; height: 60px; }
.trio-project-heading .trio-sticker .trio-crayon { width: 40px; height: 40px; }
.trio-project-heading h3 { margin-block: 8px 12px; font-size: clamp(34px, 3.2cqw, 48px); }
.trio-project-heading small { color: #a5b0bf; font: 400 12px/1.5 var(--mono); }
.trio-film { position: relative; display: block; aspect-ratio: 4 / 3; width: 100%; border-block: 1px solid #242b36; background: #040608; }
.trio-project .trio-film .stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.trio-project .trio-film .stage .cat, .trio-project .trio-film .stage .cap { display: none; }
.trio-film-label { position: absolute; z-index: 2; bottom: 12px; left: 12px; padding: 8px 10px; color: #eef1f7; background: #080b10e6; border: 1px solid #657080; font: 500 13px/1.3 var(--sans); }
.trio-film:hover .trio-film-label { color: var(--trio-ink); border-color: var(--trio-ink); }
.trio-project-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.trio-description { min-height: 4.5em; }
.trio-build { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 22px 0; padding-top: 18px; border-top: 1px solid #2c3440; }
.trio-build > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 7px; }
.trio-build dt { color: #9dabbc; font: 400 12px/1.4 var(--sans); }
.trio-build dd { margin: 0; color: #f1f3f7; font: 600 clamp(18px, 1.8cqw, 24px)/1 var(--sans); letter-spacing: -.03em; }
.trio-project-body .trio-surfaces { margin-bottom: 16px; }
.trio-story { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: auto; color: var(--trio-ink); font: 500 15px/1.4 var(--sans); }
.trio-story span { font-size: 24px; }
.trio-source-date { display: block; margin-top: 12px; color: #97a4b6; font: 400 11px/1.5 var(--sans); }
.yahoo-trio :is(button,a,h3):focus-visible { outline: 2px solid #ffdc58; outline-offset: 4px; }
.tile[data-slug="claude-code"] .cap b::before, .sheet[data-slug="claude-code"] #sheet-name::before { content: ""; display: inline-block; width: 38px; height: 28px; margin-right: 8px; vertical-align: -.1em; background: url('/ai-crayon-pill.svg') center / contain no-repeat; }
.tile[data-slug="claude-code"] .cap b { font-size: clamp(21px, 1.6vw, 27px); }
@keyframes trioReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
  .grid > .yahoo-trio { padding: 24px 18px; }
  .trio-summary { gap: 12px; }
  .trio-preview-body { padding: 38px 14px 16px; }
  .trio-sticker { width: 66px; height: 66px; top: -33px; left: 10px; }
  .trio-sticker .trio-crayon { width: 44px; height: 44px; }
  .trio-preview h3 { font-size: 32px; }
  .trio-card-open { gap: 10px; }
  .trio-card-open .trio-crayon { width: 24px; height: 24px; }
  .trio-preview p { font-size: 15px; min-height: 4.5em; }
  .trio-surfaces { gap: 8px 10px; }
}
@media (max-width: 900px) {
  .trio-panels { grid-template-columns: 1fr; }
  .trio-panels .tile.trio-project { display: grid; grid-template-columns: 1fr 1fr; }
  .trio-project-heading { grid-column: 1 / -1; }
  .trio-project .trio-film { align-self: center; }
  .trio-description { min-height: 0; }
  .trio-project-body { padding-top: 0; }
}
@media (max-width: 650px) {
  .trio-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .trio-toggle { width: 100%; }
  .trio-summary { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .trio-preview-body { padding: 40px 18px 18px; }
  .trio-preview h3 { font-size: 38px; }
  .trio-preview p { min-height: 0; max-width: none; }
  .trio-preview .trio-usage { margin-block: 16px; }
  .trio-usage { margin-top: 16px; }
  .trio-usage strong { font-size: 34px; }
  .trio-panels .tile.trio-project { display: flex; }
  .trio-project-body { padding: 20px; }
  .trio-build dd { font-size: 21px; }
  .trio-footnote { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .trio-panels .tile.trio-project { animation: none; opacity: 1; }
  .trio-preview, .trio-sticker { transition: none; }
}

/* A portfolio premiere; the original post metrics stay attached to their date. */
.tile-thunder .cat { color: #ffe27b; border-color: #a9924b; }
.tile-thunder .cap { min-height: 180px; padding-top: 68px; }
.tile-thunder .cap b { font-size: clamp(26px, 2.7vw, 39px); max-width: 17ch; }
.tile-thunder .cap .thunder-reach { color: #e7dc8c; font-size: clamp(13px, 1.1vw, 15px); margin-top: 5px; }
.thunder-reach small { display: block; margin-top: 4px; color: #adb7c5; font: 400 11px/1.4 var(--mono); }
@media (max-width: 600px) { .tile-thunder .cap b { font-size: 27px; } .tile-thunder .cap { min-height: 165px; } }

/* Keep the first read to one purpose and one outcome per product. */
#grid > .yahoo-trio {
  background: transparent;
  padding: clamp(22px, 3vw, 40px) 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.trio-heading { padding-bottom: 14px; border-bottom: 1px solid #313740; }
.trio-heading h2 { font-size: clamp(27px, 3.4vw, 48px); }
.trio-eyebrow { margin-bottom: 6px; font-size: 11px; color: #b9c1d0; }
.trio-summary, .trio-panels { gap: clamp(12px, 1.7vw, 25px); margin-top: 18px; }
.trio-summary .trio-preview { border: 0; border-radius: 0; background: transparent; }
.trio-summary .trio-cover { aspect-ratio: 2.35; border: 1px solid #303740; border-radius: 10px 10px 10px 0; }
.trio-summary .trio-cover img { object-fit: cover; }
.trio-summary .trio-preview-body { padding: 15px 0 0; }
.trio-summary h3 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 34px); }
.trio-summary h3::after { content: none; }
.trio-summary .trio-card-open { gap: 8px; align-items: center; }
.trio-summary .trio-card-open i { color: var(--trio-ink); width: 24px; height: 24px; }
.trio-summary .trio-card-open i:last-child { width: 16px; margin-left: 4px; }
.trio-summary .trio-preview p { min-height: 0; max-width: 36ch; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.42; }
.trio-summary .trio-usage { gap: 5px; margin: auto 0 0; padding-top: 10px; }
.trio-summary .trio-usage strong { font: 600 15px/1.4 var(--sans); letter-spacing: normal; }
.trio-summary .trio-usage span { color: #b5c1cc; font: 400 14px/1.4 var(--sans); }
.trio-footnote { margin-top: 20px; color: #aeb8c6; }
.trio-toggle { min-height: 44px; padding: 8px 12px; gap: 12px; font-size: 14px; border-color: #495162; color: #edf0f5; background: none; }
.trio-toggle b { font-size: 19px; }
@media (max-width: 650px) {
  #grid > .yahoo-trio { padding-top: 16px; }
  .trio-heading { flex-direction: row; align-items: end; gap: 13px; }
  .trio-heading h2 { max-width: 13ch; }
  .trio-heading .trio-toggle { flex: none; width: auto; font-size: 12px; gap: 4px; }
  .trio-summary { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .trio-summary .trio-preview { display: grid; grid-template-columns: minmax(75px,27%) minmax(0,1fr); align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid #2b313a; }
  .trio-summary .trio-cover { aspect-ratio: 4 / 3; }
  .trio-summary .trio-preview-body { padding: 0; }
  .trio-summary .trio-card-open i { width: 19px; height: 19px; }
  .trio-summary .trio-preview p { font-size: 15px; }
  .trio-summary .trio-usage { padding-top: 6px; }
  .trio-footnote { margin-top: 12px; }
}
