/* Volomics site, prototype. Layout: a paper page holding rounded panels 12 px apart; the brand gradient (L1, with grain)
   sits behind the film, the stills and the contact box. One light look by design: the page does not switch theme. */

/* fonts, served from this site (SIL OFL 1.1, assets/fonts/OFL.txt): latin and latin-ext subsets, the browser loads
   only what a page uses */
@font-face { font-family: "Antonio"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/antonio-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Antonio"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/antonio-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 200; font-display: swap; src: url("../assets/fonts/geist-latin-ext-200-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 200; font-display: swap; src: url("../assets/fonts/geist-latin-200-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/geist-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/geist-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/geist-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/geist-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --page: #F7F4EF; --panel: #FFFFFF;
  --ink: #14101A; --ink-2: #3B3441; --muted: #5F686D;
  --line: rgba(20, 16, 26, 0.22); --hair: rgba(20, 16, 26, 0.10);
  --accent: #EC8040; --accent-text: #A85B2D;          /* orange; the darker variant for orange text on light */
  --plum: #5B4560; --slate: #5F686D; --sand: #D5B598;
  /* the gradient's sampled colours, shown while its image loads */
  --stage-1: #E5EFF2; --stage-2: #A39185; --stage-3: #5C405F;
  --stage-fallback: linear-gradient(135deg, var(--stage-1) 0%, var(--stage-2) 55%, var(--stage-3) 100%);
  --logo-ink: var(--ink);
  --display: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --text: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wordmark: "Antonio", "Arial Narrow", Impact, sans-serif;
  --box-line: #DDD8D0; --box-line-dark: rgba(20, 16, 26, 0.55);
  --r-panel: 16px; --r-cell: 12px; --r-btn: 10px;
  --pad-x: clamp(16px, 2.6vw, 36px);
  --pad-y: clamp(32px, 3.4vw, 48px);
  --head-h: 56px;
  --fs-body: 14px; --fs-small: 12px; --fs-nav: calc(11px * 0.75); --fs-cap: 10.5px; --fs-input: 14px;
  --fs-lead: clamp(14px, 1.04vw, 15px);
  --fs-h2: clamp(20px, calc(18px + 0.4vw), 24px);
  --fs-h3: clamp(15px, 1.18vw, 17px);
  --sine: cubic-bezier(.37, 0, .63, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 300 var(--fs-body)/1.55 var(--text); -webkit-font-smoothing: antialiased;
  padding: 0 max(12px, env(safe-area-inset-right, 0px)) 12px max(12px, env(safe-area-inset-left, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--page); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--page); padding: 10px 14px; border-radius: var(--r-btn); z-index: 100; }
.skip:focus { left: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
h1 { font-weight: 200; }
h2 { font-weight: 300; font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-weight: 400; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.012em; }

/* the brand gradient: behind the film, the stills, the portrait block and the contact box */
.hero, .box-fig, .contact, .about .portrait { background: url("../assets/brand/hero_grad_L1_1600_grain.webp") center / cover no-repeat, var(--stage-fallback); }
@media (min-width: 1281px) { .hero { background-image: url("../assets/brand/hero_grad_L1_2560_grain.webp"), var(--stage-fallback); } }

/* uppercase labels, links and buttons: the monospace */
.label, .eyebrow, .btn, .top nav a, .menu { font-family: var(--mono); font-weight: 400; text-transform: uppercase; }
.eyebrow { margin: 0 0 12px; font-size: var(--fs-cap); letter-spacing: 0.06em; color: var(--accent-text); }
.label { font-size: var(--fs-cap); letter-spacing: 0.06em; color: var(--accent-text); }

/* the logo: the mark and the wordmark (Antonio 700) */
.logo, .brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo:hover, .brand:hover { color: var(--ink); }
.mark { display: block; height: 22px; width: auto; aspect-ratio: 58 / 64; }
.wordmark { font: 700 17px/1 var(--wordmark); letter-spacing: 0.1em; text-transform: uppercase; }

/* arrow-cell buttons */
.btn { display: inline-flex; align-items: stretch; text-decoration: none; border: 1px solid var(--ink); border-radius: var(--r-btn); overflow: hidden;
  font-size: var(--fs-nav); letter-spacing: 0.04em; line-height: 1; color: var(--ink); background: transparent; cursor: pointer; padding: 0;
  transition: color .2s, background-color .2s, border-color .2s; }
.btn > span { display: flex; align-items: center; padding: 8px 10px; }
.btn > .cell { padding: 8px 8px; border-left: 1px solid currentColor; transition: background-color .2s, color .2s; }
.btn:hover { color: var(--ink); }
.btn:hover > .cell { background: var(--ink); color: var(--page); }
.btn.solid { background: var(--ink); color: var(--page); }
.btn.solid > .cell { border-left-color: rgba(247, 244, 239, 0.3); }
.btn.solid:hover { background: var(--accent-text); border-color: var(--accent-text); color: #FFFFFF; }
.btn.solid:hover > .cell { background: transparent; color: #FFFFFF; }

/* header: sticky and transparent over a progressive blur (five backdrop blurs of 2 to 32 px, each masked to a band).
   Once the page scrolls, a light wash of the page colour under the blur keeps the links legible. */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--head-h); display: flex; align-items: center; gap: 20px;
  padding: 0 14px; margin: 0 -12px; }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: linear-gradient(rgba(247, 244, 239, 0.72), rgba(247, 244, 239, 0)); }
.top.scrolled::before { opacity: 1; }
.pblur, .pblur > i { position: absolute; inset: 0; pointer-events: none; }
.pblur { z-index: -1; }
.pblur > i { -webkit-mask-image: var(--m); mask-image: var(--m); }
.pblur > i:nth-child(1) { z-index: 1; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  --m: linear-gradient(rgba(0, 0, 0, 0) 40%, #000 60%, #000 80%, rgba(0, 0, 0, 0) 100%); }
.pblur > i:nth-child(2) { z-index: 2; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  --m: linear-gradient(rgba(0, 0, 0, 0) 20%, #000 40%, #000 60%, rgba(0, 0, 0, 0) 80%); }
.pblur > i:nth-child(3) { z-index: 3; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  --m: linear-gradient(rgba(0, 0, 0, 0) 0%, #000 20%, #000 40%, rgba(0, 0, 0, 0) 60%); }
.pblur > i:nth-child(4) { z-index: 4; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  --m: linear-gradient(#000 0%, #000 20%, rgba(0, 0, 0, 0) 40%); }
.pblur > i:nth-child(5) { z-index: 5; -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px);
  --m: linear-gradient(#000 0%, rgba(0, 0, 0, 0) 20%); }
.top .logo { margin-right: auto; }
.top nav { display: flex; gap: 22px; }
.top nav a { font-size: var(--fs-nav); letter-spacing: 0.04em; text-decoration: none; }
.top nav .in-menu { display: none; }
.menu { display: none; align-items: stretch; padding: 0; border: 1px solid var(--ink); border-radius: var(--r-btn); background: transparent; color: var(--ink);
  font-size: var(--fs-nav); letter-spacing: 0.04em; cursor: pointer; }
.menu > span { display: flex; align-items: center; padding: 8px 10px; }
.menu > .cell { border-left: 1px solid var(--ink); }
.menu svg { width: 13px; height: 13px; }
@media (max-width: 960px) {
  .top nav { display: none; position: absolute; top: calc(var(--head-h) - 4px); left: 12px; right: 12px; flex-direction: column; gap: 0;
    background: var(--panel); border-radius: var(--r-panel); padding: 6px 18px; box-shadow: 0 18px 40px rgba(20, 16, 26, 0.12); }
  .top nav.open { display: flex; }
  .top nav a { padding: 16px 0; font-size: var(--fs-nav); border-bottom: 1px solid var(--hair); }
  .top nav a:last-child { border-bottom: 0; }
  .top nav .in-menu { display: block; color: var(--accent-text); }
  .menu { display: inline-flex; }
}

/* panels */
.panel { background: var(--panel); border-radius: var(--r-panel); padding: var(--pad-y) var(--pad-x) clamp(24px, 2.6vw, 36px); }
main > * + * { margin-top: 12px; }
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 14px; align-items: end; margin-bottom: 32px; }
.head > :first-child { grid-column: 1 / span 7; min-width: 0; }
.head > p { grid-column: 8 / span 5; color: var(--muted); }
@media (max-width: 900px) { .head { grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; } .head > :first-child, .head > p { grid-column: 1 / -1; } }

/* boxes: a 1 px outline and 20 px corners; a monospace uppercase tag behind a dot and a light title at the top, the
   text at the foot, nothing bold */
.boxes { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.box { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; padding: 32px;
  border: 1px solid var(--box-line); border-radius: 20px; }
.box-top { display: grid; gap: 20px; justify-items: start; }
.tag { display: flex; align-items: center; gap: 7px; margin: 0; font: 400 11px/1 var(--mono); letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink); }
.tag::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.box h2 { font-family: var(--display); font-weight: 300; font-size: var(--fs-h2); line-height: 1.25; letter-spacing: -0.01em; }
.box h3:not(.tag) { font-family: var(--display); font-weight: 300; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.box > p, .box-body > p { font-family: var(--display); font-weight: 300; font-size: 14px; line-height: 1.5; letter-spacing: 0.005em; color: var(--ink-2); }
.flag { display: inline-block; margin-left: 2px; padding: 3px 6px; border: 1px solid var(--accent-text); border-radius: 5px; font: 400 9.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
/* a box led by a figure: the figure fills the top of the box out to its outline and ends on a straight line */
.fbox { padding: 0; gap: 0; overflow: hidden; justify-content: flex-start; }
.box-fig { position: relative; flex: none; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--box-line); }
/* the stills are 1600 x 900 frames; the subject lies in the safe box (x .369-.923, y .17-.715): the crop shows it at 150 %, centred */
.box-fig .crop { position: absolute; width: 150%; aspect-ratio: 16 / 9; left: -46.9%; top: -16.4%; }
.box-fig .crop img { width: 100%; height: 100%; }
.box-body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 20px 22px 24px; min-width: 0; }
.box-body .box-top { gap: 14px; }
@media (max-width: 767px) {
  .box { padding: 24px; gap: 40px; border-radius: 12px; }
  .box-top { gap: 14px; }
  .tag { font-size: 10px; letter-spacing: 0.7px; }
  .box h3:not(.tag) { font-size: 17px; }
  .box > p, .box-body > p { font-size: 13.5px; }
  .fbox { padding: 0; gap: 0; }
  .box-body { padding: 16px 16px 18px; gap: 20px; }
  .box-body .box-top { gap: 10px; }
}

/* hero: fills the screen below the header, 12 px from its edges; copy bottom left, caption bottom right. The film (a
   24 s loop of four molecules over the H&E and its transcript maps) is framed once: covering the hero, anchored to
   its bottom-right corner, where the molecules sit, so that wide or tall screens crop the tissue, not the molecule.
   Stacked (film, caption, copy) below 1080 px. */
.hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-panel);
  height: calc(100vh - var(--head-h) - 12px); height: calc(100svh - var(--head-h) - 12px); min-height: 440px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 36px 32px; }
.hero .media { position: absolute; inset: 0; z-index: -2; }
.hero .media img, .hero .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 100%; }
.hero .media video { opacity: 0; transition: opacity .6s ease; }
.hero .media video.on { opacity: 1; }
.hero .tagline { margin: 0 0 14px; color: var(--ink); }
/* the film's caption follows its chapters (main.js), in the lower right corner, level with the foot of the copy: the
   captions share one grid cell, so the box keeps the height of the longest, and cross-fade; without the film, the
   first stays */
.hero .caps { position: absolute; right: 36px; bottom: 32px; z-index: 1; display: grid; justify-items: end;
  max-width: min(440px, 36%); margin: 0; padding: 0; list-style: none; text-align: right; text-wrap: balance; color: var(--page);
  text-shadow: 0 1px 8px rgba(20, 16, 26, 0.55); }
.hero .caps > li { grid-area: 1 / 1; opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; }
.hero .caps > li.on, .hero .caps:not(.live) > li:first-child { opacity: 1; transform: none; transition-delay: .15s; }
.hero .copy { position: relative; max-width: clamp(300px, 29vw, 500px); }
.hero h1 { font-size: clamp(30px, 2.9vw, 54px); line-height: 1.04; letter-spacing: -0.03em; }
.hero .lead { margin: 16px 0 22px; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); max-width: 27em; }
.ctas { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1080px) {
  .hero { height: auto; min-height: 0; justify-content: flex-start; padding: 0; background: var(--panel); }
  .hero .media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 9; width: 100%;
    background: url("../assets/brand/hero_grad_L1_1600_grain.webp") center / cover no-repeat, var(--stage-fallback); }
  /* stacked, the caption is a line of its own right under the film, right-aligned, with the height of the longest */
  .hero .caps { position: relative; right: auto; bottom: auto; z-index: 2; max-width: none; padding: 12px 18px 0; color: var(--muted);
    font-family: var(--mono); font-size: var(--fs-cap); letter-spacing: 0.06em; text-transform: uppercase; text-shadow: none; }
  .hero .copy { z-index: 1; max-width: 640px; padding: 14px var(--pad-x) 28px; }
  .hero h1 { font-size: clamp(28px, 6vw, 44px); }
}
@media (max-width: 700px) { .hero .media { aspect-ratio: 4 / 3; } }
/* short landscape screens (phones turned sideways): the stacked film is no taller than the screen below the header,
   so the molecule in its bottom-right corner is in view; the tissue at the top is cropped instead */
@media (max-width: 1080px) and (orientation: landscape) and (max-height: 600px) {
  .hero .media { aspect-ratio: auto; height: calc(100svh - var(--head-h) - 24px); } }
.hero .caps { font-family: var(--mono); font-size: var(--fs-cap); letter-spacing: 0.06em; text-transform: uppercase; }
/* the data credit of the film: small, top right on the film; below 1080 px a line of its own under the caption */
.hero .credit { position: absolute; top: 14px; right: 16px; z-index: 1; margin: 0; padding: 3px 7px; border-radius: 5px;
  background: rgba(247, 244, 239, 0.78); font: 400 9px/1.4 var(--mono); letter-spacing: 0.03em; color: var(--ink-2); }
.hero .credit a { color: inherit; text-underline-offset: 2px; }
@media (max-width: 1080px) { .hero .credit { position: relative; top: auto; right: auto; align-self: flex-end; margin: 6px 18px 0;
  padding: 0; background: none; color: var(--muted); } }

/* technology: seven boxes, each led by its still, two per row; one per row below 768 px. The last box (.wide) spans
   the row, its still on the left half and its text on the right. */
.cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .cells > .wide { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells > .wide > .box-fig { border-bottom: 0; border-right: 1px solid var(--box-line); }
  .cells > .wide > .box-body { justify-content: flex-start; }
}
@media (max-width: 767px) { .cells { grid-template-columns: minmax(0, 1fr); } }
/* the live part (Train, #ch3-mount) is a crop like the stills: the animation draws on the gradient, with no label overlay */
.fineprint { margin-top: 18px; font-size: var(--fs-small); color: var(--muted); max-width: 52em; }

/* service: four steps, then five applications */
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 999px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps .box, .apps .box { gap: 36px; padding: 26px; }
.sub { margin: 40px 0 14px; }
.apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }                   /* four applications: two by two */
@media (max-width: 560px) { .apps { grid-template-columns: minmax(0, 1fr); } }

/* about */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.about > .portrait { grid-column: 1 / span 3; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-cell); background: var(--stage-fallback); }
.about > div:not(.portrait) { grid-column: 5 / span 7; min-width: 0; }
.about h2 { margin-bottom: 14px; }
.about .lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); margin: 0 0 12px; max-width: 36em; }
.about p { color: var(--muted); max-width: 44em; }
.about p + p { margin-top: 12px; }
.about .lead + p { margin-top: 0; }
.person { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hair); }
.person .label { margin: 0 0 8px; }
.person h3 { margin: 0 0 8px; }
.person p { color: var(--ink-2); }
.person p + p { margin-top: 10px; }
@media (max-width: 900px) { .about { grid-template-columns: minmax(0, 1fr); } .about > .portrait { grid-column: 1 / -1; max-width: 220px; width: 100%; } .about > div:not(.portrait) { grid-column: 1 / -1; } }

/* contact: one paper box on the gradient, with the address as a mailto link */
.contact { border-radius: var(--r-panel); padding: var(--pad-y) var(--pad-x); grid-template-columns: minmax(0, 1fr); }
.contact .box { border-color: var(--box-line); background: var(--page); max-width: 640px; }
.contact .box > p { max-width: 30em; }
.contact .box > p a { color: var(--ink); text-underline-offset: 3px; }
.contact .btn { align-self: flex-start; }

/* footer */
footer { --fs-small: calc(12px * 0.75); --fs-cap: calc(10.5px * 0.75); padding: 26px 14px 18px; display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, auto); gap: 18px 32px; font-size: var(--fs-small); color: var(--muted); }
footer > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
footer .mark { height: 20px; }
footer .wordmark { font-size: 15px; }
footer ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; list-style: none; margin: 0; padding: 0; align-self: end; }
footer ul a { text-decoration: none; font: 400 var(--fs-cap)/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
footer ul a:hover { color: var(--accent-text); }
footer .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: calc(11px * 0.75); }
footer .legal a, footer .credits a { color: inherit; text-underline-offset: 2px; }
footer .credits { grid-column: 1 / -1; display: grid; gap: 4px; font-size: calc(11px * 0.75); line-height: 1.5; }
footer .credits .label { margin: 0 0 2px; }
@media (max-width: 1000px) { footer { grid-template-columns: minmax(0, 1fr); } footer ul { justify-content: flex-start; } }

/* scroll reveal (main.js): a box below the fold starts 120 px low and transparent; once its top crosses the bottom of
   the viewport it rises into place in 0.4 s, and boxes entering together follow one another */
.rv { opacity: 0; transform: translateY(120px); }
.rv.in { opacity: 1; transform: none; transition: opacity .4s var(--sine) var(--rv-d, 0s), transform .4s var(--sine) var(--rv-d, 0s); }

@media print { .hero .media video { display: none; } .rv { opacity: 1; transform: none; } }
