* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.6 var(--sans); }
a { color: var(--link); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.skip { position: absolute; top: -8rem; left: 1rem; background: white; padding: .75rem; z-index: 5; }
.skip:focus { top: 1rem; }
.wrap { width: min(var(--max-width), 100% - 2 * var(--gutter)); margin-inline: auto; }
header { color: var(--paper); background: var(--ink); }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 1.6rem; border-bottom: 1px solid #35416b; }
.wordmark { font-family: var(--sans); font-size: 1.9rem; font-weight: 650; letter-spacing: -.07em; color: inherit; text-decoration: none; }
.wordmark span { color: var(--sky); }
nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
nav a { color: inherit; font-size: .875rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { color: var(--paper); background: var(--ink); overflow: hidden; }
.hero-main { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 37rem; position: relative; }
.hero-copy { position: relative; z-index: 1; padding-block: 5rem; }
.kicker { font-size: .75rem; font-weight: 550; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1.5rem; }
.hero .kicker { color: var(--on-dark); }
h1, h2, h3, .display { font-family: var(--sans); font-weight: 500; line-height: 1.05; letter-spacing: -.055em; }
h1 { font-size: clamp(3.5rem, 6.8vw, 6.25rem); max-width: 12ch; margin: 0 0 2rem; }
h1 span { color: var(--sky); }
.hero-intro { max-width: 33ch; font-size: 1.05rem; line-height: 1.65; color: var(--on-dark); }
.hero-link { display: inline-block; color: var(--paper); margin-top: 1.4rem; font-size: .875rem; }
.globe-stage { position: relative; width: min(43vw, 36rem); aspect-ratio: 1; margin: 0 auto; }
.globe-stage canvas, .globe-fallback { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.globe-stage canvas { opacity: 0; }
.globe-ready canvas { opacity: 1; }
.globe-ready .globe-fallback { visibility: hidden; }
.hero-bottom { display: flex; justify-content: space-between; gap: 2rem; align-items: center; border-top: 1px solid #35416b; padding-block: 1.4rem; color: var(--on-dark); font-size: .75rem; }
.hero-bottom p { margin: 0; }
.hero-bottom span { color: var(--paper); }
section { padding-block: var(--section-space); scroll-margin-top: 1rem; }
h2 { font-size: clamp(2rem, 3.7vw, 3.5rem); margin: 0 0 1.5rem; }
h3 { font-size: 1.35rem; margin: 0 0 1rem; letter-spacing: -.025em; }
p { max-width: var(--reading-width); }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; margin-bottom: 3rem; }
.section-head .kicker { margin-top: .5rem; color: var(--muted); }
.rule { border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.panel { border-top: 1px solid var(--line); padding: 1.5rem 0 0; }
.panel p { color: var(--muted); font-size: .95rem; }
.color-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.swatch { height: 5rem; margin-bottom: 1rem; }
.color-grid code { font-size: .75rem; }
.color-grid strong { display: block; font-size: .8rem; font-weight: 500; }
.specimen { padding-block: 2rem; border-block: 1px solid var(--line); }
.display { font-size: clamp(2.3rem, 4.8vw, 4.5rem); margin: 0 0 1.5rem; }
.mono, code { font-family: var(--mono); }
.small { font-size: .875rem; color: var(--muted); }
.meta { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 550; letter-spacing: .015em; padding: .2rem 0; background: none; border: 0; border-bottom: 1px solid currentColor; }
.explicit { color: #185b4f; }
.inferred { color: #76550f; }
.speculative { color: #644084; }
.brief { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(14rem, 1fr); gap: 4rem; margin-top: 2rem; }
.brief h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 1rem; }
.why { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.why h4 { margin: 0; font-size: .8rem; font-weight: 600; }
.why p { font-size: .9rem; color: var(--muted); }
.table-scroll { overflow: auto; margin-top: 3rem; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; text-align: left; }
caption { text-align: left; margin-bottom: .75rem; color: var(--muted); font-size: .8rem; }
th, td { padding: 1.25rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .7rem; font-weight: 550; text-transform: uppercase; letter-spacing: .06em; border-top: 1px solid var(--line); }
td:first-child, th:first-child { padding-left: 0; }
.dark { background: var(--paper); color: var(--ink); }
.dark .wrap { border-top: 1px solid var(--line); padding-top: var(--section-space); }
.dark { padding-top: 0; }
.dark p { color: var(--muted); }
.share { aspect-ratio: 1200/630; background: var(--ink); padding: clamp(1.25rem, 5vw, 4rem); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; max-width: 60rem; margin-top: 2rem; }
.share .display { max-width: 18ch; font-size: clamp(1.8rem, 4.5vw, 4rem); }
.share .wordmark { font-size: 1.5rem; }
.share .meta { color: var(--on-dark); font-size: clamp(.7rem, 1.3vw, .875rem); }
.note { margin-top: 2rem; font-size: .875rem; color: var(--muted); }
footer { padding-block: 3rem; border-top: 1px solid var(--line); }
footer p { font-size: .8rem; color: var(--muted); }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.list { padding-left: 1.2rem; }
.list li { margin-bottom: .6rem; }
@media (max-width: 850px) {
  header .wrap { gap: 1rem; }
  nav { gap: 1rem; }
  .hero-main { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-block: 4rem 0; }
  h1 { font-size: clamp(3.4rem, 10vw, 5.8rem); max-width: 13ch; }
  .globe-stage { width: min(85%, 30rem); margin: 1rem auto 2rem; }
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .section-head, .brief, .pairs { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid { grid-template-columns: 1fr; gap: 1rem; }
  .color-grid { grid-template-columns: repeat(3, 1fr); }
  .why { padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .share { min-height: 20rem; aspect-ratio: auto; }
  th, td { min-width: 9rem; }
}
@media (max-width: 520px) {
  header .wrap { align-items: flex-start; flex-direction: column; }
  nav a { font-size: .8rem; }
  .globe-stage { width: 90%; margin: 1rem auto 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .globe-stage canvas { display: none; }
  .globe-ready .globe-fallback { visibility: visible; }
  section { break-inside: avoid; padding-block: 2rem; }
  .hero-main { min-height: 0; }
  .hero-copy { padding-block: 2rem; }
  h1 { font-size: 3rem; }
  body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}



.globe-method { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .875rem; }
.globe-method summary { cursor: pointer; }

.globe-toggle { margin-top: 1rem; padding: .4rem 0; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; cursor: pointer; }

.globe-layers { margin-block: 1rem; border: 1px solid var(--line); padding: 1rem; }
.globe-layers label { display: block; margin-block: .5rem; }

/* Editorial briefs: full-width reading, close attribution, compact action. */
.agent-brief {
  --brief-space: 1rem;
  padding-block: calc(2 * var(--brief-space));
  border-top: 1px solid var(--line);
}
.brief-panel { min-width: 0; }
.brief-anchor { display: block; scroll-margin-top: 2rem; }
.brief-copy { max-width: none; margin: 0; }
.brief-copy h3, .brief-instructions > h3 {
  max-width: none;
  font-size: clamp(1.65rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0 0 var(--brief-space);
}
.brief-copy p { max-width: calc(100% - 9rem); margin: 0; font-size: 1.05rem; line-height: 1.65; }
.brief-attribution {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .5rem 1.5rem; flex-wrap: wrap; margin-top: 1.25rem;
  color: var(--muted); font-size: .8125rem; line-height: 1.7;
}
.brief-citations { display: flex; flex-wrap: wrap; gap: .25rem 1rem; flex: 1 1 30rem; min-width: 0; max-width: none; margin: 0; font: inherit; }
.brief-citations a { color: inherit; text-decoration: none; }
.brief-citations a:hover { color: var(--link); text-decoration: underline; }
.citation-group { display: flex; align-items: baseline; gap: .4rem; min-width: 0; }
.citation-label { flex: none; }
.citation-links { display: flex; flex-wrap: wrap; gap: .25rem .75rem; list-style: none; padding: 0; margin: 0; min-width: 0; }
.citation-links li { min-width: 0; }
.citation-links a { overflow-wrap: anywhere; }
.brief-date { margin-left: auto; white-space: nowrap; text-align: right; }
.brief-actions { display: flex; justify-content: flex-end; margin-top: .25rem; }
.brief-explore, .brief-back {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 44px;
  color: var(--link); background: none; border: 0; padding: .5rem 0;
  font: inherit; font-size: .875rem; cursor: pointer; text-align: left;
}
.brief-explore:hover, .brief-back:hover { text-decoration: underline; text-underline-offset: .25em; }
.brief-explore:active, .brief-back:active { color: var(--ink); }
.brief-back { margin-bottom: var(--brief-space); }
.brief-slider .brief-viewport { overflow: hidden; transition: height 380ms ease; }
.brief-slider .brief-track { display: flex; align-items: flex-start; transition: transform 380ms ease; }
.brief-slider .brief-panel { flex: 0 0 100%; padding: 4px; }
.brief-slider.is-exploring .brief-track { transform: translateX(-100%); }
.agent-brief :is(a, button):focus-visible { outline-offset: 2px; }
.skill-content { max-width: none; }
button.skill-prompt {
  display: block; width: 100%; padding: 1.25rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  font: inherit; font-size: .95rem; line-height: 1.65; text-align: left;
  cursor: pointer; user-select: text;
}
button.skill-prompt:hover { border-color: var(--link); background: var(--mist); }
button.skill-prompt:active { border-color: var(--ink); }
.prompt-action { display: flex; justify-content: space-between; gap: 1rem; color: var(--link); font-size: .8125rem; font-weight: 600; margin-bottom: 1rem; }
.prompt-text { display: block; }
.copy-status { min-height: 1.6em; margin: .5rem 0 0; }
.agent-brief ::selection { background: var(--ink); color: var(--paper); }
@media (max-width: 850px) {
  .brief-copy p { max-width: none; }
}
@media (max-width: 600px) {
  .brief-attribution { display: block; }
  .brief-citations { display: grid; gap: .75rem; font-size: .875rem; }
  .citation-group { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); gap: .5rem; align-items: baseline; }
  .citation-links { gap: .5rem 1rem; }
  .citation-links a { display: inline-block; padding-block: .2rem; }
  .citation-label { padding-top: .2rem; }
  .brief-date { margin-top: .75rem; font-size: .8125rem; }
}
@media (max-width: 520px) {
  .agent-brief { padding-block: 1.5rem; }
  .brief-copy p { font-size: 1rem; }
  .brief-attribution { margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .brief-slider .brief-viewport, .brief-slider .brief-track { transition: none; }
}
@media print {
  .brief-slider .brief-viewport { height: auto !important; overflow: visible; }
  .brief-slider .brief-track { display: block; transform: none; }
  .brief-actions, .brief-back { display: none; }
}

/* Two maintained 1200:630 sharing compositions. */
.share-editions { display: grid; gap: 3rem; }
.share-example { margin: 0; container-type: inline-size; }
.share-art { aspect-ratio: 1200 / 630; overflow: hidden; }
.share-photo { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); background: var(--paper); color: var(--ink); }
.share-photo-copy { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 4cqi 3.2cqi; }
.share-photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 30% center; }
.share-brand { font-size: 2.1cqi; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; }
.share-art h3 { font-size: 7cqi; font-weight: 500; line-height: 1.02; letter-spacing: -.04em; margin: 0 0 2.25cqi; }
.share-art .share-deck { font-size: 1.8cqi; line-height: 1.5; margin: 0; max-width: 29ch; color: var(--on-dark); }
.share-signature { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.3cqi; line-height: 1.2; }
.share-type { display: flex; flex-direction: column; justify-content: space-between; padding: 5.34cqi; color: var(--paper); background: var(--ink); }
.share-type-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.3cqi; }
.share-type h3 { font-size: 8.4cqi; }
.share-type .share-deck { color: var(--paper); font-size: 2.1cqi; max-width: none; }
.share-type .share-signature { color: var(--paper); }
.share-example figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-top: 1rem; font-size: .8125rem; }
.caption-note, .share-example figcaption a { color: var(--muted); }
@media (max-width: 520px) {
  .share-editions { gap: 2rem; }
  .share-example figcaption { font-size: .75rem; }
  .caption-note { display: none; }
}

.share-photo .share-deck { color: var(--ink); max-width: none; }

/* Separate complete examples, keeping each caption attached to its image. */
.share-example + .share-example { border-top: 1px solid var(--line); padding-top: 2rem; }
@media (max-width: 520px) {
  .share-example + .share-example { padding-top: 1.5rem; }
}

#sharing > .section-head { border-bottom: 1px solid var(--line); padding-bottom: 2rem; }

.share-example .share-photo-caption { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); column-gap: 0; }
.share-photo-caption > span { padding-left: 3.2cqi; }
.share-photo-copy h3, .share-art .share-deck { word-break: normal; overflow-wrap: normal; }

.share-photo-credit { margin-top: .75cqi; font-size: 1.05cqi; line-height: 1.4; }
.share-photo-credit a { color: var(--muted); text-underline-offset: .2em; }

/* Persistent navigation with a separate, scrollable section row. */
.site-header { position: sticky; top: 0; z-index: 20; }
.site-header .header-top { padding-block: 1rem; border-bottom: 0; }
.site-header .document-nav { gap: 1.25rem; }
.site-header .document-nav a { font-size: .75rem; color: var(--on-dark); }
.site-header .section-nav { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 1.75rem; padding-block: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--sky) var(--ink); border-bottom: 1px solid #35416b; }
.section-nav a { flex: none; padding: .65rem 0; border-bottom: 2px solid transparent; color: var(--on-dark); }
.section-nav a[aria-current="location"] { color: var(--paper); border-bottom-color: var(--sky); }
.section-nav a:hover { color: var(--paper); }
.section-nav a:focus-visible { outline-offset: -2px; }
main, section[id] { scroll-margin-top: calc(var(--header-height, 8rem) + 1rem); }
.skip { z-index: 30; }
@media (max-width: 600px) {
  .site-header .header-top { flex-direction: column; align-items: flex-start; gap: .5rem; padding-block: .75rem .25rem; }
  .site-header .wordmark { font-size: 1.5rem; }
  .site-header .document-nav { flex-direction: row; gap: 1.25rem; }
  .site-header .section-nav { gap: 1.25rem; }
}
@media print { .site-header { position: static; } }

.hero-bottom a, .hero-bottom .globe-toggle { color: var(--on-dark); }
.hero-bottom .globe-toggle { margin-top: 0; padding-block: .25rem; border-bottom-color: #35416b; }
