/* G2D company site: components added on top of the Nexus design system in styles.css.
   Same tokens, type and grid; new pieces for the company story (hero, discipline map, status chips, work). */

.nav a[aria-current="page"] { color: var(--bone); }

/* Status chips: one vocabulary for maturity across the site */
.chip { display: inline-block; font-family: var(--mono); font-size: 10.5px; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 7px; border: 1px solid currentColor; white-space: nowrap; }
.chip-work { color: var(--ok); }
.chip-proto { color: var(--signal); }
.chip-research { color: var(--text-2); border-style: dotted; }
.chip-planned { color: var(--dim); border-style: dashed; }

/* Hero */
.hero-g2d .h1-g2d { font-family: var(--display); font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, min(7.2vw, 10vh), 116px); line-height: 0.92; letter-spacing: -0.035em; margin-bottom: clamp(24px, 4.5vh, 48px); }
.hero-g2d .h1-g2d span { display: block; text-wrap: balance; }
.hero-g2d .tick .slash { color: var(--line-2); margin: 0 4px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; margin-bottom: clamp(32px, 6vh, 72px); }
.triad { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line-2); }
.triad::before { content: ""; position: absolute; top: -1px; left: -12%; width: 12%; height: 1px; background: var(--signal); box-shadow: 0 0 10px var(--signal-glow); animation: sweep 6s linear infinite; }
@keyframes sweep { from { left: -12%; } to { left: 100%; } }
.triad li { padding-top: 18px; }
.triad-n { display: block; font-family: var(--mono); font-size: 12px; color: var(--signal); margin-bottom: 6px; }
.triad b { display: block; font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 22px; margin-bottom: 4px; }
.triad li > span:last-child { color: var(--dim); font-size: 14.5px; }

/* Principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.principles li { padding: 28px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.principles li:hover { background: var(--panel); }
.principles li:hover .part-n { color: var(--signal); -webkit-text-stroke-color: var(--signal); }
.principles h3 { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 22px; margin-bottom: 10px; }
.principles p { color: var(--dim); font-size: 15.5px; max-width: 36ch; }

/* Discipline map */
.sec-map { background: var(--bg-2); }
.legend { list-style: none; margin: 0 0 48px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 13.5px; color: var(--dim); }
.legend .chip { margin-right: 10px; }

.map { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; --stem: 28px; }
.map-root { grid-column: 1 / -1; justify-self: center; display: flex; align-items: center; gap: 16px; padding: 16px 28px 16px 20px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--signal) 45%, var(--line)); }
.map-root b { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 22px; line-height: 1.2; }
.map-root span { font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* Spine: a stem from the root, then a bus across the four column centres */
.map-spine { grid-column: 1 / -1; position: relative; height: 48px; }
.map-spine::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.map-spine::after { content: ""; position: absolute; bottom: 0; left: calc((100% - 60px) / 8); right: calc((100% - 60px) / 8); height: 1px; background: var(--line-2); }
.map-token { position: absolute; bottom: 0; left: calc((100% - 60px) / 8); right: calc((100% - 60px) / 8); height: 1px; overflow: hidden; z-index: 1; }
.map-token::before { content: ""; position: absolute; top: 0; left: -15%; width: 15%; height: 1px; background: var(--signal); box-shadow: 0 0 10px var(--signal-glow); animation: sweep 5s linear infinite; }

.map-cols { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: subgrid; }
.disc { position: relative; margin-top: var(--stem); display: flex; flex-direction: column; padding: 22px 22px 14px; background: var(--panel); border: 1px solid var(--line); outline: none; transition: border-color .2s, background .2s; }
.disc::before { content: ""; position: absolute; left: 50%; top: calc(-1 * var(--stem) - 1px); height: var(--stem); width: 1px; background: var(--line-2); transition: background .2s; }
.disc[data-feeds]::after { content: ""; position: absolute; left: 50%; bottom: calc(-1 * var(--stem) - 1px); height: var(--stem); width: 1px; background: var(--line-2); transition: background .2s; }
.disc:not([data-feeds])::after { content: ""; position: absolute; left: 50%; bottom: calc(-1 * var(--stem) - 1px); height: var(--stem); width: 0; border-left: 1px dashed var(--line-2); }
.disc-n { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); margin-bottom: 18px; transition: color .2s, -webkit-text-stroke-color .2s; }
.disc h3 { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 20px; line-height: 1.15; margin-bottom: 10px; }
.disc > p { color: var(--dim); font-size: 14.5px; line-height: 1.5; margin-bottom: 16px; }
.disc-work { list-style: none; margin: auto 0 0; padding: 0; }
.disc-work li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--text-2); }

.disc:hover, .disc:focus-visible { border-color: var(--signal); }
.disc:hover::before, .disc:focus-visible::before, .disc[data-feeds]:hover::after, .disc[data-feeds]:focus-visible::after { background: var(--signal); }
.disc:hover .disc-n, .disc:focus-visible .disc-n { color: var(--signal); -webkit-text-stroke-color: var(--signal); }

.map-product, .map-next { margin-top: var(--stem); padding: 22px 24px; }
.map-product { grid-column: 1 / span 2; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "label label label" "name desc go"; column-gap: 24px; row-gap: 6px; align-items: baseline; text-decoration: none; background: var(--panel); border: 1px solid color-mix(in srgb, var(--signal) 55%, var(--line)); transition: border-color .2s, background .2s; }
.map-product-label { grid-area: label; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--signal); }
.map-product b { grid-area: name; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; letter-spacing: -0.02em; }
.map-product > span:nth-of-type(2) { grid-area: desc; color: var(--text-2); font-size: 15px; }
.map-product-go { grid-area: go; font-family: var(--mono); font-size: 13px; color: var(--signal); white-space: nowrap; }
.map-next { grid-column: 3 / span 2; border: 1px dashed var(--line-2); color: var(--dim); font-size: 14.5px; }
.map-next .map-product-label { display: block; color: var(--dim); margin-bottom: 6px; }

/* Product ⇄ its sources light together */
.map-product:hover, .map-product:focus-visible { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 6%, var(--panel)); }
.map:has(.map-product:hover) .disc[data-feeds], .map:has(.map-product:focus-visible) .disc[data-feeds] { border-color: var(--signal); }
.map:has(.map-product:hover) .disc[data-feeds]::after, .map:has(.map-product:focus-visible) .disc[data-feeds]::after { background: var(--signal); }
.map:has(.disc[data-feeds]:hover) .map-product, .map:has(.disc[data-feeds]:focus-visible) .map-product { border-color: var(--signal); }

/* Reveal: the map assembles once when it scrolls into view (script adds .is-live; without JS it is simply shown) */
.js .map:not(.is-live) .disc, .js .map:not(.is-live) .map-product, .js .map:not(.is-live) .map-next { opacity: 0; transform: translateY(10px); }
.map .disc, .map .map-product, .map .map-next { transition: opacity .5s ease, transform .5s ease, border-color .2s, background .2s; }
.map.is-live .disc:nth-child(2) { transition-delay: .08s, .08s, 0s, 0s; }
.map.is-live .disc:nth-child(3) { transition-delay: .16s, .16s, 0s, 0s; }
.map.is-live .disc:nth-child(4) { transition-delay: .24s, .24s, 0s, 0s; }
.map.is-live .map-product, .map.is-live .map-next { transition-delay: .36s, .36s, 0s, 0s; }

/* Nexus feature */
.sec-nexus { background: var(--bg); }
.nexus-feature { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: center; }
.sec-head-tight { margin-bottom: 28px; }
.nexus-claim { font-family: var(--display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 44px); line-height: 0.98; letter-spacing: -0.02em; }
.nexus-claim span { display: block; color: var(--signal); }
.nexus-body { color: var(--text-2); font-size: 18px; max-width: 52ch; margin: 20px 0 24px; }
.loop-inline { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.loop-inline li + li::before { content: "→"; margin: 0 10px; color: var(--line-2); }
.nexus-status { margin: 0 0 32px; border-top: 1px solid var(--line); }
.nexus-status > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nexus-status dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); padding-top: 3px; }
.nexus-status dd { margin: 0; color: var(--text-2); font-size: 15px; }

/* Selected work */
.work { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.work-item { padding: 26px; border: 1px solid var(--line); background: var(--panel); }
.work-disc { font-family: var(--mono); font-size: 12px; color: var(--dim); margin: 16px 0 8px; }
.work-item h3 { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 21px; line-height: 1.2; margin-bottom: 10px; }
.work-item p:last-child { color: var(--text-2); font-size: 15px; }
.more { display: inline-block; margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--signal); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Footer */
.foot-nav { display: flex; gap: 20px; }
.foot-nav a { color: var(--dim); text-decoration: none; }
.foot-nav a:hover { color: var(--bone); }

/* Inner pages */
.page-hero { padding: clamp(56px, 10vh, 112px) 0 clamp(48px, 8vh, 88px); }
.page-hero h1 { font-family: var(--display); font-stretch: 106%; font-weight: 700; text-transform: none; font-size: clamp(38px, min(5.6vw, 9vh), 76px); line-height: 1.02; letter-spacing: -0.028em; margin-bottom: 24px; }
.page-hero h1 span { display: block; text-wrap: balance; }
.page-hero .lede { max-width: 60ch; }

.disc-block { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.disc-block:first-of-type { border-top-color: var(--line-2); }
.disc-block .disc-n { margin-bottom: 14px; }
.disc-block h3 { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 26px; line-height: 1.12; margin-bottom: 12px; }
.disc-block > div:first-child p { color: var(--dim); font-size: 15.5px; }
.disc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.disc-items li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 18px 20px; border: 1px solid var(--line); background: var(--panel); }
.disc-items .chip { justify-self: start; align-self: start; margin-top: 3px; }
.disc-items h4 { margin: 0 0 6px; font-family: var(--sans); font-weight: 600; font-size: 16.5px; }
.disc-items p { color: var(--text-2); font-size: 15px; }
.disc-block:hover .disc-n { color: var(--signal); -webkit-text-stroke-color: var(--signal); }

.routes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.routes li { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); background: var(--panel); }
.routes h3 { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 21px; }
.routes p { color: var(--text-2); font-size: 15px; flex: 1; }
.routes .btn { align-self: flex-start; margin-top: 8px; }

.founder { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; border-top: 1px solid var(--line-2); padding-top: 36px; }
.founder h3 { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 26px; }
.founder .role { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--signal); margin-top: 6px; }
.founder-mail { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); overflow-wrap: anywhere; }
.founder-mail:hover, .founder-mail:focus-visible { color: var(--signal); }
.founder-body p { color: var(--text-2); font-size: 17px; max-width: 62ch; }
.founder-body p + p { margin-top: 16px; }

/* Responsive */
@media (max-width: 1080px) {
  .hero-row { grid-template-columns: 1fr; gap: 28px; }
  .map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-spine { display: none; }
  .map-cols { gap: 20px; }
  .disc { margin-top: 0; }
  .map-cols .disc:nth-child(n+3) { margin-top: 0; }
  .disc::before, .disc::after { display: none; }
  .map-root { justify-self: stretch; margin-bottom: 20px; }
  .map-product, .map-next { grid-column: 1 / -1; margin-top: 20px; }
  .nexus-feature { grid-template-columns: 1fr; gap: 48px; }
  .disc-block, .founder { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .triad { grid-template-columns: 1fr; gap: 0; }
  .triad li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .principles { grid-template-columns: 1fr; }
  .map { grid-template-columns: 1fr; }
  .map-cols { padding-left: 16px; border-left: 1px solid var(--line-2); gap: 14px; }
  .disc::before { display: block; left: -17px; top: 30px; width: 16px; height: 1px; }
  .disc-n { font-size: 36px; margin-bottom: 12px; }
  .map-product { grid-template-columns: 1fr; grid-template-areas: "label" "name" "desc" "go"; }
  .legend { gap: 10px 20px; margin-bottom: 32px; }
  .work, .routes { grid-template-columns: 1fr; }
  .disc-items li { grid-template-columns: 1fr; gap: 8px; }
  .foot-nav { order: 3; }
}
.org dd b { font-weight: 600; color: var(--bone); }
.org > div { grid-template-columns: 110px 1fr; }
.status-grid > * { min-width: 0; }

/* Keyboard: skip straight past the header. */
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--signal); color: var(--on-signal); font-family: var(--mono); font-size: 13px; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* Home: plain-English first sentence, read before the technical one */
.lede-plain { display: block; color: var(--text); margin-bottom: 10px; }

/* Company: founder's direct line under the contact routes */
.routes-note { margin-top: 28px; color: var(--dim); font-size: 15.5px; }
.routes-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.routes-note a:hover, .routes-note a:focus-visible { color: var(--signal); }
