/* The research page: personal models, by The Intention Company. A moonrise opening drawn in WebGL (research.js),
   the article on the brand's day paper, and a footer where the phrases of AI writing rewrite themselves as one sentence. */
/* The landing: a moonlit sea of everyone's writing. One wave rolls in and breaks, and its spray becomes the i of Intent, whose dot is the moon. */
@font-face { font-family: "Intent Own Hand"; src: url("fonts/IntentOwnHand-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Variable.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
:root { --sky: #04060D; --moon: #F6ECD2; --moon2: rgba(246, 236, 210, .68); --moon3: rgba(246, 236, 210, .42); --ease: cubic-bezier(.2, .7, .1, 1); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--sky); color: var(--moon); font-family: "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.hero { position: relative; height: 100vh; min-height: 700px; overflow: hidden; background: var(--sky); }   /* the night, also when WebGL is unavailable */
canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
nav { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 40px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--moon); }
.wordmark { width: 84px; height: 21px; fill: currentColor; align-self: center; }
.brand span { font-size: 15px; font-weight: 500; color: var(--moon2); }
nav a.lab { font-family: "Intent Own Hand", Georgia, serif; font-size: 21px; font-weight: 400; letter-spacing: 0; color: var(--moon); text-decoration: none; }
nav a.out { font-size: 14px; font-weight: 500; color: var(--moon2); text-decoration: none; }
.title::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 45%; width: min(980px, 100vw); height: 150%; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(4, 6, 13, .78), rgba(4, 6, 13, 0)); }
.title { position: absolute; z-index: 2; left: 0; right: 0; bottom: 8vh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; pointer-events: none; }
.title a { pointer-events: auto; }
.date { font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 252, 244, .86); margin: 0 0 20px; }
h1 { font-family: "Intent Own Hand", Georgia, serif; font-weight: 400; font-size: clamp(54px, 6.4vw, 92px); line-height: 1; margin: 0 0 20px; color: #FFFCF4; }
.line { font-size: clamp(21px, 1.9vw, 27px); color: rgba(255, 252, 244, .9); margin: 0 0 36px; }
.toc { list-style: none; margin: 0; padding: 0; width: min(430px, 86vw); font-size: 16.5px; }
.toc li { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; color: rgba(255, 252, 244, .86); }
.toc li::after { content: ""; order: 2; flex: 1; border-bottom: 1px dotted rgba(255, 252, 244, .38); transform: translateY(-3px); }
.toc span { order: 1; color: rgba(255, 252, 244, .6); }
.toc a { order: 3; color: #FFFCF4; text-decoration: none; }
html.motion .title > * { opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform 1.1s var(--ease); }
html.motion.formed .title > * { opacity: 1; transform: none; }
html.motion.formed .title > :nth-child(2) { transition-delay: .12s; }
html.motion.formed .title > :nth-child(3) { transition-delay: .26s; }
html.motion.formed .title > :nth-child(4) { transition-delay: .4s; }
/* A fine, still film grain over the whole frame. */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.next { height: 60vh; display: grid; place-items: center; color: var(--moon3); font-size: 14px; }
@media (max-width: 640px) { nav { padding: 0 20px; } .toc { display: none; } }

/* ---------- Below the moonrise: the article on Intent's day paper ----------
   Type: Newsreader for reading (a book face for a writing lab), Intent Own Hand for section heads, IBM Plex Mono for
   figure labels. Colour: the brand's paper and ink, with the night navy of the opening as the only colour that means Intent. */
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader-Variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; font-style: italic; src: url("fonts/Newsreader-Italic-Variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root { --paper: #F9FAF7; --ink: #202A2E; --ink2: rgba(32, 42, 46, .78); --ink3: rgba(32, 42, 46, .56); --ink4: rgba(32, 42, 46, .32);
  --hair: rgba(32, 42, 46, .12); --line: rgba(32, 42, 46, .22); --night: #141F40; --sky2: #C7DEEC;
  --claude: #D97757; --chatgpt: #10A37F; --gemini: #6F8FDE;
  --serif: "Newsreader", Georgia, serif; --mono: "Plex Mono", ui-monospace, Menlo, monospace; --hand: "Intent Own Hand", Georgia, serif; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); }
.toc a { cursor: pointer; }

.page { background: var(--paper); color: var(--ink); font-family: var(--serif); display: grid; grid-template-columns: 1fr minmax(0, 600px) 1fr; column-gap: 56px; padding: 96px 32px 0; }
.page > * { grid-column: 2; }
.page p { font-size: 17px; line-height: 1.62; color: var(--ink2); margin: 0 0 18px; text-wrap: pretty; font-optical-sizing: auto; }
.page p strong { color: var(--ink); font-weight: 600; }
.page .byline { margin: 40px 0 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--ink3); }
.page .lede { font-size: 19.5px; line-height: 1.55; color: var(--ink); }
.page h2 { font-family: var(--hand); font-weight: 400; font-size: 27px; line-height: 1.15; color: var(--ink); margin: 72px 0 16px; scroll-margin-top: 40px; }
.page sup a { font-family: var(--mono); font-size: 10.5px; color: var(--night); text-decoration: none; margin-left: 1px; }
.page a.inline { color: var(--ink); text-decoration-color: var(--ink4); text-underline-offset: .18em; }

/* Contents in the left margin, beside the article; it follows the reader. */
.side { grid-column: 1; grid-row: 1 / span 30; justify-self: end; position: sticky; top: 40px; align-self: start; width: 190px; list-style: none; margin: 4px 0 0; padding: 0; }
.side a { display: block; padding: 4px 0; font-size: 13.5px; line-height: 1.35; color: var(--ink3); text-decoration: none; transition: color .25s ease; }
.side a:hover { color: var(--ink); }
.side a.now { color: var(--night); }
.side a.now::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--night); margin: 0 8px 2px -13px; }
@media (max-width: 1100px) { .page { grid-template-columns: 1fr minmax(0, 600px) 1fr; } .side { display: none; } }

/* Figures: the lab grammar. A plot, then a caption that starts with the figure's finding in bold. */
figure { margin: 34px 0 36px; }
.plot { position: relative; height: 270px; margin: 0 0 0 38px; border-bottom: 1px solid var(--ink); display: flex; align-items: flex-end; justify-content: space-around; gap: 18px; padding: 0 12px; }
.plot .grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--hair); bottom: calc(var(--y) * 1%); }
.plot .grid span { position: absolute; right: calc(100% + 8px); top: -7px; font: 11px var(--mono); color: var(--ink3); }
.plot .ref { position: absolute; left: 0; right: 0; bottom: calc(var(--y) * 1%); border-top: 1.5px dashed var(--night); z-index: 2; }
.plot .ref span { position: absolute; right: 0; bottom: 5px; font: 11.5px var(--mono); color: var(--night); background: var(--paper); padding-left: 6px; }
.plot .floor { border-top: 1px dotted var(--ink3); }
.plot .floor span { color: var(--ink3); }
.col { position: relative; flex: 0 1 72px; height: 100%; display: flex; align-items: flex-end; }
.col .bar { width: 100%; height: calc(var(--v) * 1%); background: var(--c); transform-origin: bottom; z-index: 1; }
.col .val { position: absolute; left: 50%; translate: -50% 0; bottom: calc(var(--v) * 1% + 6px); font: 500 12.5px var(--mono); color: var(--ink); white-space: nowrap; z-index: 3; }
.col.us .val { color: var(--night); font-size: 13.5px; }
.names { display: flex; justify-content: space-around; gap: 18px; margin: 10px 0 0 38px; padding: 0 12px; }
.names div { flex: 0 1 72px; text-align: center; font: 11.5px/1.35 var(--mono); color: var(--ink2); }
.names svg { display: block; width: 15px; height: 15px; margin: 0 auto 5px; }
.names .us { color: var(--night); font-weight: 500; }
.names small { display: block; color: var(--ink3); font-size: 10.5px; }
.logo-intent { fill: var(--night); width: 9px !important; height: 18px !important; }
.logo-claude { fill: var(--claude); } .logo-chatgpt { fill: var(--chatgpt); } .logo-gemini { fill: url(#gemini-fill); }
.gemini-a { stop-color: #4796e3; } .gemini-b { stop-color: #9177c7; }
figcaption { margin: 18px auto 0; max-width: 520px; text-align: center; font-size: 14.5px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
figcaption b { color: var(--ink); font-weight: 600; }

/* The range figure: from 3 examples to 50, against Intent from 25. */
.ranges { margin: 0; }
.rrow { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 16px; height: 34px; }
.rname { font: 12px var(--mono); color: var(--ink2); }
.rname.us { color: var(--night); font-weight: 500; }
.rtrack { position: relative; height: 100%; --x: calc((var(--a) - 30) / 60 * 100%); --z: calc((var(--b) - 30) / 60 * 100%); }
.rtrack::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dotted var(--hair); }
.rtrack .seg { position: absolute; top: 50%; height: 2px; translate: 0 -50%; left: var(--x); width: calc(var(--z) - var(--x)); background: var(--c); opacity: .55; transform-origin: left; }
.rtrack i { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%; translate: -50% -50%; }
.rtrack .a { left: var(--x); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--c); }
.rtrack .b { left: var(--z); background: var(--c); }
.rtrack em { position: absolute; top: 50%; translate: 0 -50%; font: 11.5px var(--mono); color: var(--ink3); font-style: normal; white-space: nowrap; }
.rtrack .ea { left: var(--x); translate: calc(-100% - 10px) -50%; }
.rtrack .eb { left: var(--z); translate: 10px -50%; color: var(--ink); font-weight: 500; }
.rtrack.us .eb { color: var(--night); }
.rref { position: absolute; top: -6px; bottom: -6px; left: calc((82 - 30) / 60 * 100%); border-left: 1.5px dashed var(--night); }
.raxis { display: grid; grid-template-columns: 130px 1fr; gap: 16px; }
.raxis div { position: relative; height: 22px; border-top: 1px solid var(--ink); }
.raxis div span { position: absolute; top: 5px; left: calc((var(--t) - 30) / 60 * 100%); translate: -50% 0; font: 11px var(--mono); color: var(--ink3); }
.rkey { display: flex; gap: 18px; justify-content: center; margin: 0 0 14px; font: 11.5px var(--mono); color: var(--ink3); }
.rkey i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* The table. */
.table { overflow-x: auto; margin: 22px 0 10px; }
table { width: 100%; border-collapse: collapse; font: 13px var(--mono); min-width: 560px; }
th, td { text-align: right; padding: 10px 10px; border-bottom: 1px solid var(--hair); font-weight: 400; }
th:first-child, td:first-child { text-align: left; font-family: var(--serif); font-size: 15px; color: var(--ink); }
thead th { color: var(--ink3); border-bottom: 1px solid var(--ink); font-size: 12px; }
td { color: var(--ink2); }
.t-us { color: var(--night); font-weight: 500; background: rgba(20, 31, 64, .05); }
.page .tnote { font-size: 14px; color: var(--ink3); }

/* Notes. */
.notes { margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--hair); }
.notes ol { margin: 0; padding-left: 1.2em; }
.notes li { font-size: 13.5px; line-height: 1.55; color: var(--ink3); margin-bottom: 8px; }
.notes li:target { color: var(--ink); }

/* The footer: one closing line in Intent Own Hand, quiet links, then the lab's name across the full width, fading from a
   soft grey into the paper and cut off by the page's edge. Own Hand sets the name 12.66 font-sizes wide; drawn slightly
   closer it fills the width at 12.4. The line, links and name rise once into place when the footer arrives. */
.site-foot { background: var(--paper); margin-top: 140px; overflow: hidden; text-align: center; }
.foot-line { margin: 0 auto; padding: 0 24px; font-family: var(--hand); font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; color: var(--ink); text-wrap: balance; }
/* The waitlist, inside the footer: one email field and button on a single ruled line, two choices beneath. */
.wait { max-width: 600px; margin: 0 auto 72px; padding: 0 24px; text-align: left; scroll-margin-top: 120px; }
.wait-lede { margin: 0 0 18px; text-align: center; font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink2); }
.wait-row { max-width: 560px; margin: 0 auto; display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 4px; transition: border-color .2s ease, box-shadow .2s ease; }
.wait-row:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(32, 42, 46, .08); }
.wait-email { flex: 1; min-width: 0; display: flex; }   /* Safari keeps an input at its built-in width unless its box may shrink */
.wait-email input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; padding: 0 16px; font-family: var(--serif); font-size: 17px; color: var(--ink); }
.wait-email input::placeholder { color: var(--ink3); }
.wait button { flex: none; white-space: nowrap; border: 0; border-radius: 999px; padding: 12px 22px; background: var(--ink); color: var(--paper); font-family: var(--hand); font-size: 18px; cursor: pointer; transition: opacity .2s ease; }
.wait button:hover { opacity: .88; }
.wait button:disabled { opacity: .5; cursor: default; }
.wait-status { min-height: 1.5em; margin: 14px 0 0; text-align: center; font-family: var(--serif); font-size: 15px; color: var(--ink2); }
.wait-status.is-error { color: #A13A2A; }
.wait.is-done .wait-row, .wait.is-done .wait-lede { display: none; }
.wait.is-done .wait-status { font-family: var(--hand); font-size: 22px; color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot-name { margin: 64px 0 -0.22em; white-space: nowrap; font-family: var(--hand); font-size: calc((100vw - 28px) / 12.4); letter-spacing: -.012em; line-height: 1; }
.foot-name span { display: inline-block; background: linear-gradient(180deg, rgba(32, 42, 46, .16) 0%, rgba(32, 42, 46, .06) 55%, rgba(32, 42, 46, 0) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
html.motion .site-foot:not(.in) .foot-line, html.motion .site-foot:not(.in) .wait, html.motion .site-foot:not(.in) .foot-name span { opacity: 0; transform: translateY(14px); }
html.motion .site-foot .foot-line, html.motion .site-foot .wait, html.motion .site-foot .foot-name span { transition: opacity 1.1s ease, transform 1.3s cubic-bezier(.16, 1, .3, 1); }
html.motion .site-foot .wait { transition-delay: .1s; }
html.motion .site-foot .foot-name span { transition-delay: .3s; }
/* Motion: each figure draws once as it arrives. */
html.motion figure:not(.in) .bar { transform: scaleY(0); }
html.motion figure:not(.in) .val, html.motion figure:not(.in) .rtrack em { opacity: 0; }
html.motion figure .bar { transition: transform 1s var(--ease) calc(var(--i, 0) * 90ms); }
html.motion figure .us .bar { transition-duration: 1.4s; transition-delay: .35s; }
html.motion figure .val, html.motion figure .rtrack em { transition: opacity .5s ease calc(var(--i, 0) * 90ms + .75s); }
html.motion figure:not(.in) .rtrack .seg { transform: scaleX(0); }
html.motion figure .rtrack .seg { transition: transform 1s var(--ease) calc(var(--i, 0) * 110ms + .15s); }
html.motion figure:not(.in) .rtrack .b { left: var(--x); }
html.motion figure .rtrack .b { transition: left 1s var(--ease) calc(var(--i, 0) * 110ms + .15s); }

@media (max-width: 640px) {
  .page { padding: 64px 20px 0; column-gap: 0; grid-template-columns: 0 1fr 0; }
  .page .lede { font-size: 18px; }
  .plot { height: 220px; gap: 8px; margin-left: 30px; padding: 0 4px; }
  .names { gap: 8px; margin-left: 30px; padding: 0 4px; }
  .names div { font-size: 10px; }
  .rrow, .raxis { grid-template-columns: 82px 1fr; gap: 10px; }
  .rname { font-size: 10.5px; }
  .site-foot { margin-top: 72px; padding: 24px 0 16px; }
  .wait { margin-bottom: 56px; padding: 0 20px; }
  .wait button { padding: 11px 15px; font-size: 15.5px; }
  .wait-email input { padding: 0 10px 0 14px; font-size: 16px; }
}

