/* gliderinnovations.com. Every colour, face, radius and spacing comes from tokens.css,
   which build.py writes from the chosen look file. Change the look there, never here. */

:root {
  --margin: clamp(20px, 4.2vw, 64px);
  --axis: 42%;
  --gap-section: clamp(96px, 11vw, 176px);
  --step-0: 17px;
  --step-small: 15px;
  --step-1: clamp(20px, 1.5vw, 23px);
  --step-2: clamp(28px, 2.6vw, 40px);
  --step-3: clamp(38px, 4.4vw, 68px);
  --step-4: clamp(40px, 5.6vw, 88px);
  --head-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --button-radius: 999px;
}
html[data-buttons="square"] { --button-radius: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--onaccent); }
h1, h2, h3 { font-family: var(--display); font-weight: var(--hw); letter-spacing: -0.015em; text-transform: var(--case); margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1.02; }
h2 { font-size: var(--step-3); line-height: 1.05; }
h3 { font-size: var(--step-2); line-height: 1.12; }
p { margin: 0 0 1em; max-width: 64ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--onaccent); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: 1480px; margin: 0 auto; padding-inline: var(--margin); }

/* Header: wordmark, plain links, one action. Pinned, on a solid ground. */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--head-h); }
.mark { font: var(--hw) 26px/1 var(--display); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.mark span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); font-size: var(--step-small); }
.nav a { text-decoration: none; color: var(--ink); opacity: .86; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--accent); }
.nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 10px 18px; border: 2px solid var(--ink); border-radius: var(--button-radius); font-size: var(--step-small); font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); display: flex; flex-direction: column; gap: 4px; min-width: 240px; padding: 14px; background: var(--tint); border-radius: calc(var(--radius) * .6); box-shadow: 0 18px 50px rgb(0 0 0 / .45); }
.menu nav a { padding: 12px 14px; text-decoration: none; font-size: 18px; border-radius: 10px; }
.menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--bg); color: var(--accent); }
.menu nav .btn { margin-top: 8px; justify-content: center; }
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* Buttons: one shape on the whole site, decided by the look. */
.btn, .btn-solid {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border: 2px solid var(--ink); border-radius: var(--button-radius); text-decoration: none;
  font: 600 var(--step-small)/1 var(--text); color: var(--ink); background: transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover, .btn[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.btn:active, .btn-solid:active { transform: translateY(1px) scale(.98); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--onaccent); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.nav .btn { min-height: 42px; padding: 0 20px; opacity: 1; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent); }

/* Masthead: a gutterless mosaic of real objects and flat colour, the top of the first screen. */
.masthead { display: grid; grid-template-columns: 1.15fr .8fr 1fr .7fr 1.1fr; height: clamp(200px, 33svh, 380px); overflow: hidden; }
.masthead > * { position: relative; overflow: hidden; margin: 0; min-width: 0; }
.masthead img { width: 100%; height: 100%; object-fit: cover; }
.masthead .field { background: var(--accent); }
.masthead .field.tint { background: var(--tint); }
.masthead .field p { position: absolute; left: 22px; right: 22px; bottom: 18px; margin: 0; font: 600 var(--step-small)/1.35 var(--text); color: var(--onaccent); }
.masthead .field.tint p { color: var(--ink); }
@media (max-width: 760px) {
  .masthead { grid-template-columns: 1.2fr .8fr 1fr; height: 30svh; }
  .masthead > :nth-child(n+4) { display: none; }
}

/* The sky: the home page's opening band. Lanes of words drift across in alternating directions,
   each sliding in from its own side, while a glider crosses on a slow rising and sinking line. */
.sky { position: relative; height: clamp(260px, 42svh, 440px); overflow: hidden; background: linear-gradient(180deg, var(--tint), var(--bg)); display: flex; flex-direction: column; justify-content: center; gap: clamp(6px, 1.2vw, 16px); }
.sky .lane { white-space: nowrap; transition: transform 1.6s var(--ease), opacity 1.6s var(--ease); }
.sky .track { display: inline-flex; width: max-content; animation: drift var(--dur, 70s) linear infinite; }
.sky .track span { padding-right: .9em; font-family: var(--display); font-weight: var(--hw); letter-spacing: -0.01em; text-transform: var(--case); }
.sky .track span::after { content: "\2022"; margin-left: .9em; color: var(--accent); opacity: .7; }
.sky .l1 { font-size: var(--step-3); --dur: 55s; color: var(--ink); }
.sky .l2 { font-size: var(--step-2); --dur: 44s; color: var(--accent-text); }
.sky .l3 { font-size: var(--step-1); --dur: 36s; color: var(--soft); }
.sky .l4 { font-size: var(--step-2); --dur: 66s; color: var(--ink); opacity: .45; }
.sky .l2 .track, .sky .l4 .track { animation-direction: reverse; }
html.js .sky .l1, html.js .sky .l3 { transform: translateX(-60%); opacity: 0; }
html.js .sky .l2, html.js .sky .l4 { transform: translateX(60%); opacity: 0; }
html.js .sky .l2 { transition-delay: .15s; } html.js .sky .l3 { transition-delay: .3s; } html.js .sky .l4 { transition-delay: .45s; }
html.js .sky.in .lane { transform: none; opacity: 1; }
html.js .sky.in .l4 { opacity: .45; }
.sky .track span { display: inline-block; transition: transform .5s var(--ease), color .5s; }
.sky .lane.hot .track span { transform: scale(1.07); }
.sky .lane.hot { filter: brightness(1.25); }
html.js .sky .track.live { animation: none; will-change: transform; }
.sky .lane { position: relative; z-index: 1; }
.sky .flight-layer { position: absolute; inset: 0; pointer-events: none; }
.sky .shade-layer { z-index: 0; }
.sky .plane-layer { z-index: 3; }
.sky .craft { position: absolute; left: 0; top: 0; will-change: transform; transform-origin: center; }
.sky .craft svg { display: block; width: 100%; height: auto; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sky .flight { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; animation: cross 34s linear infinite; }
.sky .glider { position: absolute; z-index: 2; top: 22%; width: clamp(96px, 9vw, 140px); height: auto; filter: drop-shadow(0 14px 22px rgb(0 0 0 / .5)); animation: soar 9s ease-in-out infinite alternate; }
.sky .glider .body { fill: #f4f1fb; }
.sky .glider .canopy { fill: var(--accent); }
@keyframes cross { from { transform: translateX(-12vw); } to { transform: translateX(108vw); } }
@keyframes soar { 0% { transform: translateY(-18%) rotate(-16deg); } 50% { transform: translateY(26%) rotate(-4deg); } 100% { transform: translateY(-30%) rotate(-12deg); } }

/* With script on, the glider flies a steered path: it turns, rolls into each turn, climbs and sinks, and its shadow follows below. */
html.js .sky .flight.live { animation: none; }
.sky .flight.live .craft { position: absolute; left: 0; top: 0; width: clamp(96px, 9vw, 140px); will-change: transform; }
.sky .flight.live .glider { position: relative; top: auto; width: 100%; animation: none; filter: none; transform-style: preserve-3d; will-change: transform, filter; }
.sky .flight.live .shade { position: absolute; left: 0; top: 0; width: 100%; height: auto; fill: #000; opacity: .38; filter: blur(5px); will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .sky .track, .sky .flight, .sky .glider { animation: none; }
  .sky .flight { transform: translateX(62vw); }
  html.js .sky .lane { transform: none; opacity: 1; transition: none; }
}
/* The glider card: the inner pages' picture. Rising rings of air, and the same flight as the home page: a new glider each time, from any side, at its own height, wandering, swooping, now and then looping, with its shadow on the ground. */
.sky-card { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 90% at 30% 85%, color-mix(in oklab, var(--accent) 35%, var(--tint)), var(--tint) 60%, var(--bg)); }
.sky-card .thermal { position: absolute; left: 50%; top: 58%; width: 40%; aspect-ratio: 1; border: 2px solid color-mix(in oklab, var(--accent) 50%, transparent); border-radius: 50%; transform: translate(-50%, -50%) scale(.3); opacity: 0; animation: rise-ring 6s ease-out infinite; }
.sky-card .t2 { animation-delay: 2s; } .sky-card .t3 { animation-delay: 4s; }
.sky-card .glider { position: absolute; left: 50%; top: 50%; width: 22%; height: auto; margin: -16% 0 0 -11%; filter: drop-shadow(0 14px 22px rgb(0 0 0 / .5)); }
.sky-card .glider .body { fill: #f4f1fb; } .sky-card .glider .canopy { fill: var(--accent); }
@keyframes rise-ring { 0% { transform: translate(-50%, -50%) scale(.3); opacity: .9; } 100% { transform: translate(-50%, -70%) scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sky-card .thermal, .sky-card .glider { animation: none; } }
.sky-card.live > .glider { display: none; }
.sky-card .flight-layer { position: absolute; inset: 0; pointer-events: none; }
.sky-card .craft { position: absolute; left: 0; top: 0; will-change: transform, filter; }
.sky-card .craft svg { display: block; width: 100%; height: auto; }
.sky-card.live .thermal { display: none; }
.sky-card .ring-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky-card .word-layer { position: absolute; inset: 0; pointer-events: none; }
.sky-card .cword { position: absolute; left: 0; top: 0; white-space: nowrap; font: 600 clamp(13px, 1.5vw, 19px)/1.1 var(--display, var(--text)); color: color-mix(in oklab, var(--fg, #fff) 70%, transparent); opacity: 0; filter: blur(6px); letter-spacing: .02em; transition: opacity 1.4s ease, filter 1.4s ease, letter-spacing 1.8s ease, color .5s ease, text-shadow .5s ease; }
.sky-card .cword.on { opacity: .75; filter: blur(0); }
.sky-card .cword.lit { color: var(--accent-text, #c9b6ff); opacity: 1; text-shadow: 0 0 18px color-mix(in oklab, var(--accent) 80%, transparent); }
.sky-card .cword.gone { opacity: 0; filter: blur(8px); letter-spacing: .5em; }
.sky-card .cword.sz-s { font-size: clamp(11px, 1.1vw, 14px); }
.sky-card .cword.sz-l { font-size: clamp(18px, 2.2vw, 28px); }
.sky-card .cword.sz-xl { font-size: clamp(24px, 3.4vw, 44px); font-weight: 800; }
.sky-card .cword.st-sans { font-family: var(--text); font-weight: 500; }
.sky-card .cword.st-italic { font-style: italic; font-weight: 500; }
.sky-card .cword.st-caps { font-family: var(--text); text-transform: uppercase; letter-spacing: .16em; font-size: .78em; font-weight: 600; }
.sky-card .cword.st-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 500; letter-spacing: 0; }
.sky-card .cword.sz-xl.on { opacity: .5; } .sky-card .cword.sz-l.on { opacity: .62; }
.sky-card .cword.find { font-family: var(--display, var(--text)); font-style: italic; font-weight: 800; font-size: clamp(18px, 2.4vw, 30px); color: #fff; text-shadow: 0 0 22px var(--accent), 0 0 4px var(--accent); }
.sky-card .cword.find.on { opacity: 1; }
.sky-card .cword.gone { transition: opacity .9s ease, filter .9s ease, letter-spacing 1s ease, color .5s ease, text-shadow .5s ease; }
.sky-card .cword.find.gone { transition: opacity .45s ease-in, filter .45s ease-in, letter-spacing .5s ease-out; }
.kicker { font: 600 var(--step-small)/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 14px; }

/* The title block: headline across the page, the standfirst and actions hanging from the axis. */
.title-block { padding-block: clamp(32px, 3.6vw, 56px) var(--gap-section); }
.title-block h1 { max-width: 22ch; }
.axis { display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 72px); }
.axis > .side { grid-column: 1; }
.axis > .main { grid-column: 2; }
.title-block .axis { margin-top: clamp(22px, 2.4vw, 36px); }
.title-block .actions { margin-top: 26px; }
.standfirst { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.side-note { font-size: var(--step-small); color: var(--soft); max-width: 30ch; }
@media (max-width: 860px) {
  .axis { grid-template-columns: 1fr; }
  .axis > .side, .axis > .main { grid-column: 1; }
}

/* Masked line reveal: the one loud move. */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; }
html.js .reveal-lines .line > span { transform: translateY(105%); transition: transform .9s var(--ease); }
html.js .reveal-lines .line:nth-child(2) > span { transition-delay: .11s; }
html.js .reveal-lines.in .line > span { transform: none; }

/* Sections */
.section { padding-block: 0 var(--gap-section); }
.section h2 { max-width: 18ch; }
.text-page .axis > .side h2 { position: sticky; top: calc(var(--head-h) + 24px); }
.text-page .main p, .text-page .main li { max-width: 62ch; }
.text-page .main > :first-child { margin-top: .35em; }
.lead { font-size: var(--step-1); line-height: 1.5; }

/* A colour page: one whole section in one flat field. */
.color-page { background: var(--tint); padding-block: var(--gap-section); margin-bottom: var(--gap-section); }
.color-page.accent { background: var(--accent); color: var(--onaccent); }
.color-page.accent a { color: var(--onaccent); }

/* Lines of work: a two-by-two set of entries, separated by space alone. */
.lines { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px) clamp(32px, 5vw, 96px); }
.lines h3 { margin-bottom: 14px; }
.lines p { margin: 0; }
.lines a { text-decoration: none; }
.lines a:hover h3 { color: var(--accent); }
.lines.three { grid-template-columns: repeat(3, 1fr); }
.lines.three h3 { font-size: var(--step-1); }
@media (max-width: 1100px) { .lines.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .lines, .lines.three { grid-template-columns: 1fr; } }

/* The live thing: pick who you are, and the view on the left changes to theirs. */
.views { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.view-picker { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; }
.view-picker button { min-height: 46px; padding: 0 20px; border: 2px solid var(--line); border-radius: var(--button-radius); background: transparent; color: var(--ink); font: 500 var(--step-small)/1 var(--text); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease); }
.view-picker button:hover { border-color: var(--accent); }
.view-picker button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--onaccent); }
.view-picker button:active { transform: scale(.97); }
.view-out { position: sticky; top: calc(var(--head-h) + 24px); background: var(--bg); border-radius: var(--radius); overflow: hidden; }
html[data-cards="shadow"] .view-out { box-shadow: 0 30px 80px rgb(0 0 0 / .35); }
.view-out img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.view-out .view-text { padding: 26px 30px 30px; }
.view-out h3 { font-size: var(--step-2); margin-bottom: 10px; }
.view-out p { margin-bottom: 14px; }
.view-out .text-link { font-size: var(--step-small); }
.view-panel[hidden] { display: none; }
html.js .view-panel { animation: view-in .45s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .views { grid-template-columns: 1fr; }
  .view-out { position: static; }
}

/* Showcase: two demos, each a large picture with its text beside it, alternating sides. */
.demo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; margin-top: clamp(48px, 6vw, 96px); }
.demo:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.demo:nth-of-type(even) .demo-pic { order: 2; }
.demo-pic { display: block; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
html[data-cards="shadow"] .demo-pic { box-shadow: 0 24px 70px rgb(0 0 0 / .32); }
.demo-pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform .8s var(--ease); }
.demo-pic:hover img { transform: scale(1.03); }
.demo h3 { margin-bottom: 14px; }
@media (max-width: 860px) {
  .demo, .demo:nth-of-type(even) { grid-template-columns: 1fr; }
  .demo:nth-of-type(even) .demo-pic { order: 0; }
}

/* Entries: the long lists on inner pages (methods, practices, work), heading left, text right. */
.entries { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: minmax(0, var(--axis)) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 72px); padding-block: clamp(36px, 4vw, 60px); }
.entry + .entry { border-top: 0; }
.entry:nth-child(even) { background: transparent; }
.entry h2, .entry h3 { font-size: var(--step-2); max-width: 16ch; }
/* What We Build: on wide screens let a section title run to one line, so the picture under it sits higher (James, Nov 7th, 2026). Opt-in by class. */
@media (min-width: 1100px) { .entries.wide-heads .entry h2 { max-width: 24ch; } }
.entry .status { display: block; margin-top: 12px; font: 600 var(--step-small)/1.3 var(--text); color: var(--accent); }
.entry figure { margin: 26px 0 0; max-width: 360px; }
.entry figure img { border-radius: calc(var(--radius) * .5); }
.entry .links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 4px; font-size: var(--step-small); }
@media (max-width: 860px) { .entry { grid-template-columns: 1fr; row-gap: 14px; } }

/* Page head for inner pages: the title on the left, a picture closing the right side. */
.page-head { padding-block: clamp(48px, 6vw, 96px) var(--gap-section); }
.page-head .axis { align-items: end; }
.page-head h1 { max-width: 14ch; }
.page-head .standfirst { margin-top: 26px; }
.page-head figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.page-head figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-head figcaption { padding: 12px 18px; font-size: var(--step-small); color: var(--soft); background: var(--tint); }
.page-head.flip .axis { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }

/* The close: three photographs butted together, then a flat field with the invitation. */
.close-strip { display: grid; grid-template-columns: repeat(3, 1fr); height: clamp(200px, 34svh, 380px); }
.close-strip img { width: 100%; height: 100%; object-fit: cover; }
.close-band { position: relative; background: var(--accent); color: var(--onaccent); padding-block: clamp(56px, 7vw, 104px); }
.close-band h2 { font-size: var(--step-3); max-width: 16ch; }
.close-band p { font-size: var(--step-1); max-width: 40ch; margin-top: 22px; }
.close-band a { color: var(--onaccent); }
.close-band .big-link { font: var(--hw) var(--step-2)/1.2 var(--display); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.close-band .big-link:hover { color: var(--bg); }
.close-band .who { position: absolute; right: var(--margin); bottom: clamp(40px, 5vw, 72px); width: clamp(96px, 11vw, 160px); margin: 0; }
.close-band .who img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) * .5); }
.close-band .who figcaption { font-size: 14px; margin-top: 8px; }
@media (max-width: 760px) {
  .close-strip { grid-template-columns: 1fr 1fr; height: auto; }
  .close-strip img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .close-strip img { aspect-ratio: 1; }
  .close-band .who { position: static; margin-top: 32px; }
}

/* About: the portrait as a drop capital beside the biography. */
.bio { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.45; max-width: 46ch; }
.bio img { float: left; width: 4.3em; height: 4.3em; object-fit: cover; margin: .3em .7em .2em 0; border-radius: calc(var(--radius) * .4); }
.bio::after { content: ""; display: block; clear: both; }

/* Contact */
.mail-big { display: inline-block; font: var(--hw) clamp(26px, 4.4vw, 64px)/1.1 var(--display); color: var(--accent); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; overflow-wrap: anywhere; }
.mail-big:hover { color: var(--ink); }

/* Footer: the name first, at full width, then ways to reach us and the links. */
.site-foot { background: var(--tint); padding-block: clamp(56px, 7vw, 104px) 40px; overflow: hidden; }
.foot-name { font: var(--hw) clamp(44px, 10.6vw, 168px)/.95 var(--display); letter-spacing: -0.03em; margin: 0 0 clamp(40px, 5vw, 72px); max-width: none; white-space: nowrap; }
.foot-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.foot-reach a { font: 600 clamp(20px, 2.2vw, 32px)/1.2 var(--text); color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.foot-reach a:hover { text-decoration: underline; }
.foot-reach p { margin-top: 14px; color: var(--soft); font-size: var(--step-small); }
.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-links a { text-decoration: none; font-size: var(--step-small); }
.foot-links a:hover { text-decoration: underline; }
.foot-last { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 6vw, 88px); font-size: 14px; color: var(--soft); }
.foot-last p { margin: 0; }
@media (max-width: 760px) {
  .foot-row { grid-template-columns: 1fr; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .foot-last { flex-direction: column; }
}

/* Entrances: heading, then text, then picture, as each section arrives. Content shows without script. */
html.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
html.js .rise.in { opacity: 1; transform: none; }
.masthead img { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-1.5%); } }

@media (prefers-reduced-motion: reduce) {
  html.js .rise, html.js .reveal-lines .line > span { opacity: 1; transform: none; transition: none; }
  .masthead img, html.js .view-panel { animation: none; }
  .demo-pic img { transition: none; }
}

/* Home: the approved headline is two sentences, so each sentence is one line on a wide screen. */
.home-title h1 { font-size: clamp(30px, 3.75vw, 62px); line-height: 1.08; max-width: none; letter-spacing: -0.02em; }

/* inner pages */
.demo.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.demo.flip .demo-pic { order: 2; }
.demo .demo-h { font-size: var(--step-2); margin-bottom: 14px; }
@media (max-width: 860px) {
  .demo.flip { grid-template-columns: 1fr; }
  .demo.flip .demo-pic { order: 0; }
}
.text-page .main > img { width: 100%; max-width: 720px; height: auto; border-radius: calc(var(--radius) * .5); margin-top: 12px; }
.page-head figure img { max-height: 70svh; }
.entry .links { margin-top: 14px; }

/* fixes after the first look, Oct 28th */
.page-head figure img { object-position: left top; }
main > :last-child.color-page, main > section:last-child .color-page { margin-bottom: 0; }
@media (max-width: 760px) { .foot-name { white-space: normal; font-size: clamp(36px, 12vw, 64px); } }

/* Contrast (red team, Oct 28th): the look's accent is too dark for small text on the dark ground and
   too light under dark text. Both are derived from the look's own accent, so a new look carries them. */
:root {
  --accent-text: color-mix(in oklab, var(--accent) 62%, white);
  --accent-fill: color-mix(in oklab, var(--accent) 78%, white);
}
a:hover, .nav a:hover, .nav a[aria-current="page"], .btn:hover, .btn[aria-current="page"], .mark span,
.entry .status, .foot-reach a, .mail-big, .lines a:hover h3 { color: var(--accent-text); }
.btn:hover, .btn[aria-current="page"] { border-color: var(--accent-text); }
.text-link { text-decoration-color: var(--accent-text); }
.btn-solid, .view-picker button[aria-selected="true"] { background: var(--accent-fill); border-color: var(--accent-fill); }
.close-band, .color-page.accent, .masthead .field:not(.tint) { background: var(--accent-fill); }
.close-band .big-link:hover { color: var(--bg); }

/* The view panel keeps one height, so the page below it does not jump between views. */
.view-out .view-text { min-height: 15.5em; }

/* On a phone the photo credit follows the call to action instead of preceding it. */
@media (max-width: 860px) { .title-block .axis > .side { order: 2; margin-top: 28px; } }
.title-block .axis { display: grid; }

/* Nav with seven links needs a little more room before it folds into the menu. */
@media (max-width: 1240px) { .nav { display: none; } .menu { display: block; } }

/* Denser scale (James, Oct 28th: "too much whitespace ... GIANT other words"). Body text unchanged. */
:root {
  --gap-section: clamp(56px, 6vw, 96px);
  --step-2: clamp(21px, 1.7vw, 26px);
  --step-3: clamp(26px, 2.6vw, 38px);
  --step-4: clamp(32px, 3.6vw, 54px);
}
.home-title h1 { font-size: clamp(28px, 3.1vw, 50px); }
.title-block { padding-block: clamp(28px, 3vw, 44px) var(--gap-section); }
.page-head { padding-block: clamp(32px, 3.4vw, 56px) var(--gap-section); }
.page-head .axis { align-items: center; }
.page-head figure img { max-height: 420px; }
.entry { padding-block: clamp(22px, 2.4vw, 36px); }
.lines { margin-top: clamp(24px, 3vw, 40px); gap: clamp(28px, 3.4vw, 52px) clamp(28px, 4vw, 72px); }
.lines h3 { margin-bottom: 8px; }
.demo { margin-top: clamp(32px, 4vw, 56px); }
.views { gap: clamp(28px, 4vw, 64px); }
.close-band { padding-block: clamp(44px, 5vw, 72px); }
.close-band .big-link { font-size: var(--step-2); }
.close-strip { height: clamp(160px, 26svh, 300px); }
.masthead { height: clamp(180px, 28svh, 320px); }
.mail-big { font-size: clamp(24px, 3vw, 44px); }
.foot-name { font-size: clamp(36px, 6.4vw, 104px); margin-bottom: clamp(28px, 3.4vw, 48px); }
.site-foot { padding-block: clamp(44px, 5vw, 72px) 32px; }
.foot-last { margin-top: clamp(32px, 4vw, 56px); }
.standfirst { font-size: clamp(19px, 1.35vw, 21px); }
.lead { font-size: clamp(18px, 1.3vw, 20px); }
@media (max-width: 760px) { .foot-name { font-size: clamp(32px, 10vw, 56px); } }

/* Motion in the pictures (Oct 28th): demo clips recorded from the live demos, and masthead cells
   that cross-fade through several instruments. Both stop for reduced motion. */
video.clip { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--tint); }
.page-head figure video.clip { max-height: 420px; }
.masthead .cycle { position: relative; }
.masthead .cycle img { position: absolute; inset: 0; opacity: 0; animation: cycle 18s infinite, drift 24s ease-in-out infinite alternate; }
.masthead .cycle img:nth-child(1) { animation-delay: 0s, 0s; }
.masthead .cycle img:nth-child(2) { animation-delay: 6s, -8s; }
.masthead .cycle img:nth-child(3) { animation-delay: 12s, -16s; }
.masthead figure.cycle:nth-of-type(2) img { animation-delay: 2s, 0s; }
.masthead figure.cycle:nth-of-type(2) img:nth-child(2) { animation-delay: 8s, -8s; }
.masthead figure.cycle:nth-of-type(2) img:nth-child(3) { animation-delay: 14s, -16s; }
.masthead figure.cycle:nth-of-type(3) img { animation-delay: 4s, 0s; }
.masthead figure.cycle:nth-of-type(3) img:nth-child(2) { animation-delay: 10s, -8s; }
.masthead figure.cycle:nth-of-type(3) img:nth-child(3) { animation-delay: 16s, -16s; }
@keyframes cycle { 0% { opacity: 0; } 5% { opacity: 1; } 33% { opacity: 1; } 39% { opacity: 0; } 100% { opacity: 0; } }
.masthead .cycle img:first-child { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .masthead .cycle img { animation: none; opacity: 0; }
  .masthead .cycle img:first-child { opacity: 1; }
}

/* Captions under work pictures, and a status line inside a demo block */
.demo-pic figcaption { padding: 10px 16px 12px; font-size: 14px; color: var(--soft); background: var(--tint); }
.color-page .demo-pic figcaption { background: var(--bg); }
.demo .status { display: block; margin: 6px 0 14px; font: 600 var(--step-small)/1.3 var(--text); color: var(--accent-text); }
figure.demo-pic { margin: 0; }
.work-list .demo:first-child { margin-top: 0; }

/* Living pictures on the Work page: the picture rebuilt from its own bright pixels, which shimmer, drift in a slow wave, and scatter from the pointer before settling back. The original stays underneath, dimmed, so its labels still read. */
figure[data-live] { position: relative; }
figure[data-live] canvas.live-pic { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: calc(var(--radius) * .5); touch-action: pan-y; }
figure[data-live].live img { opacity: .38; transition: opacity 1.2s ease; }

/* The Governance X-Ray picture on the Work page: five views of the system, each easing in, panning slowly, and handing over to the next. */
.gx-cycle .cycle-stage { position: relative; aspect-ratio: 16 / 10; border-radius: calc(var(--radius) * .5); overflow: hidden; background: #0d121c; }
.gx-cycle .cycle-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.06) translate(1.5%, 1%); transition: opacity 1.1s ease, transform 7s ease-out; border-radius: 0; }
.gx-cycle .cycle-stage img.on { opacity: 1; transform: scale(1) translate(0, 0); }
.gx-cycle .cycle-dots { display: flex; gap: 8px; margin-top: 10px; }
.gx-cycle .cycle-dots button { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: color-mix(in oklab, var(--fg, #fff) 25%, transparent); cursor: pointer; }
.gx-cycle .cycle-dots button[aria-current="true"] { background: var(--accent); }
.gx-cycle figcaption { min-height: 3em; }
