/* EverDone Studio. The system copies Office Commun's (officecommun.com, read 2026-11-23 with
   read-reference-site; values in research/ref/oc-home.json): one face at one weight, 15 on 24, a 96 px label
   column beside a 528 px text column, a pill nav, and a 4-column grid of covers.
   The one change: every cover and project film is a looping HyperFrames film of the app's own screens.
   Muted text is 0.58 black instead of their 0.45, so it passes WCAG AA on the paper colour. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --mute: rgba(0, 0, 0, .58);
  --paper: #fcfcfc;
  --soft: #f0f0ee;
  --soft-hover: #e8e8e6;
  --media: rgba(0, 0, 0, .04);
  --line-nav: #eeeeed;
  --line-on: #c8c8c6;
  --font: "Inter", -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t: 15px;
  --lh: 24px;
  --m: 24px;
  --ctl: 32px;
  --label: 96px;
  --gutter: 40px;
  --col: 528px;
  --page: calc(var(--label) + var(--gutter) + var(--col));
  --page-w: min(var(--page), 100% - 2 * var(--m));
  --wide: 960px;
  --wide-w: min(var(--wide), 100% - 2 * var(--m));
  --nav-room: 96px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-ui: .15s;
  --t-in: .7s;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t) / var(--lh) var(--font);
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
p { margin: 0; }
img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: var(--line-on); transition: text-decoration-color var(--t-ui) ease, color var(--t-ui) ease; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* One sentence per line, everywhere on the site. */
.s { display: block; }
p, .s { text-wrap: pretty; }
.muted { color: var(--mute); }
.muted a:hover { color: var(--ink); }

/* Nav: a floating pill, centred at the top. */
.nav { position: fixed; z-index: 10; top: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 3px var(--paper), inset 0 0 0 1px rgba(0, 0, 0, .06); white-space: nowrap; }
.nav a { display: inline-flex; align-items: center; gap: 8px; height: var(--ctl); padding: 0 12px; border-radius: 999px;
  color: var(--mute); text-decoration: none; transition: color var(--t-ui) ease, background-color var(--t-ui) ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .home { color: var(--ink); padding-left: 10px; }
.nav .mark { width: 16px; height: 16px; flex: none; }
.nav .pill { background: var(--soft); color: var(--ink); margin-left: 6px; }
.nav .pill:hover { background: var(--soft-hover); }
.at { font-size: 13px; line-height: 1; position: relative; top: -1px; }

/* The page column: label on the left, text on the right. */
.page { width: var(--page-w); margin: 0 auto; }
main { padding-top: var(--nav-room); }
.row { display: grid; grid-template-columns: var(--label) 1fr; column-gap: var(--gutter); }
.row + .row { margin-top: 24px; }
.label { color: var(--mute); }
.rows-tight .row + .row { margin-top: 0; }

.actions { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-left: calc(var(--label) + var(--gutter)); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: var(--ctl); padding: 0 12px; border-radius: 999px;
  background: var(--soft); color: var(--ink); text-decoration: none; transition: background-color var(--t-ui) ease; }
.btn:hover { background: var(--soft-hover); }
.plain { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; height: var(--ctl); padding: 0 4px; }
.plain:hover { text-decoration: underline; text-decoration-color: var(--ink); }

/* Grid of covers: four across, two on a phone. */
.grid { width: min(952px, 100% - 2 * var(--m)); margin: 80px auto 0; display: grid;
  grid-template-columns: repeat(4, 1fr); column-gap: 8px; row-gap: 24px; }
.cover { display: block; text-decoration: none; color: var(--ink); }
.cover .media, .film-box { position: relative; overflow: hidden; border-radius: 4px; background: var(--media); }
.cover .media { aspect-ratio: 704 / 800; }
.cover video, .cover img, .film-box video, .film-box img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease); }
.cover:hover video, .cover:hover img { transform: scale(1.03); }
.cover > span { display: block; margin-top: 8px; }
.cover:hover > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Project page */
.hero { width: var(--wide-w); margin: 0 auto; }
.hero .film-box { aspect-ratio: 16 / 9; }
.intro { margin-top: 64px; }
.intro .text p + p { margin-top: 24px; }
.facts { margin-top: 24px; }
.section { margin-top: 48px; }
.list > div + div { margin-top: 12px; }
.pair { width: var(--wide-w); margin: 96px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.pair .film-box { aspect-ratio: 704 / 800; }
.next > span { display: block; margin-top: 8px; }

/* About: a short letter in the text column. */
.letter { padding-left: calc(var(--label) + var(--gutter)); padding-top: 120px; }
.letter p + p { margin-top: 24px; }

footer { width: var(--page-w); margin: 120px auto 0; padding: 24px 0 48px; color: var(--mute); font-size: 13px; line-height: 20px; }
footer .s + .s { margin-top: 2px; }

/* Arrival: things rise and fade in once, in order. Without script everything simply shows. */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity var(--t-in) var(--ease), transform var(--t-in) var(--ease);
  transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  :root { --m: 16px; --nav-room: 88px; }
  .row { grid-template-columns: 1fr; }
  .label { margin-bottom: 4px; }
  .rows-tight .row { grid-template-columns: var(--label) 1fr; column-gap: 16px; }
  .rows-tight .label { margin-bottom: 0; }
  .actions, .letter { padding-left: 0; }
  .letter { padding-top: 48px; }
  .grid { grid-template-columns: repeat(2, 1fr); margin-top: 64px; }
  .pair { grid-template-columns: 1fr; gap: 24px; margin-top: 64px; }
  .intro { margin-top: 40px; }
}
@media (max-width: 440px) {
  .nav .name { display: none; }
  .nav a { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cover video, .cover img, .film-box video, .film-box img { transition: none; }
  .cover:hover video, .cover:hover img { transform: none; }
}
