/* arogo site: seven pictures cut from one painting, shown one per scene with a dissolve between them. The words sit
   in one column at the left, the picture's light on the right. Thin frame lines at the edge, a chapter list, nothing
   else. */
:root {
  --bg: #d6c8ba;
  --cream: #261c1a;
  --muted: rgba(38, 28, 26, 0.66);
  --faint: rgba(38, 28, 26, 0.34);
  --line: rgba(38, 28, 26, 0.22);
  --accent: #b01e1a;
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --text: "EB Garamond", "Times New Roman", Times, serif;
  --gutter: clamp(24px, 6vw, 96px);
  --shadow: 0 1px 2px rgba(214, 200, 186, 0.8), 0 0 40px rgba(214, 200, 186, 0.6);
}
* { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; scroll-snap-type: y mandatory; }
body { margin: 0; color: var(--cream); font: 400 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

/* loading: the wordmark on black until the first picture is ready */
.loading { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: var(--bg); transition: opacity 0.9s ease; }
.loading span { font: 500 44px var(--serif); letter-spacing: -0.01em; }
.loading i { position: absolute; left: 50%; bottom: 15vh; width: 120px; height: 1px; margin-left: -60px; background: var(--line); overflow: hidden; }
.loading i::after { content: ""; position: absolute; inset: 0; background: var(--cream); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 0.3s; }
.loading.done { opacity: 0; pointer-events: none; }

.stage { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; }
/* the frame: a thin line inset from the edge, with ticks at the corners */
.frame { position: fixed; inset: 18px; z-index: 2; pointer-events: none; border: 1px solid rgba(38, 28, 26, 0.1); }
.frame::before, .frame::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid rgba(38, 28, 26, 0.4); }
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.nav { position: fixed; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 34px var(--gutter); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nav .home { color: var(--cream); font: 500 26px var(--serif); letter-spacing: 0; text-transform: none; }
.nav a:hover { color: var(--accent); }

/* chapters: tiny caps down the left, a short rule before the current one */
.chapters { position: fixed; z-index: 3; left: var(--gutter); bottom: 44px; display: grid; gap: 9px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.chapters a { display: flex; align-items: center; gap: 10px; transition: color 0.3s; }
.chapters a::before { content: ""; width: 10px; height: 1px; background: currentColor; transition: width 0.3s; }
.chapters a[aria-current] { color: var(--accent); }
.chapters a[aria-current]::before { width: 22px; }
.chapters a:hover { color: var(--accent); }

/* scenes: tall, the words pinned to the screen inside each */
main { position: relative; z-index: 1; }
.scene { height: 100vh; scroll-snap-align: start; }
.pin { position: relative; height: 100vh; display: grid; align-content: center; justify-items: start; padding: 0 var(--gutter); max-width: 620px; opacity: 0; }
.pin > * { will-change: opacity, transform; }
.hero .pin, .end .pin { max-width: none; justify-items: center; text-align: center; }

/* the type system: eyebrow, two-line serif headline, two-line body */
small { display: block; margin-bottom: 22px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
/* the wordmark fills the screen on open; the lead line comes up under it after the first scroll */
h1 { margin: 0; font: 500 clamp(120px, 24vw, 420px)/0.9 var(--serif); letter-spacing: -0.035em; text-shadow: var(--shadow); }
.lead { margin: 20px 0 0; font: 500 clamp(22px, 2.6vw, 34px)/1.3 var(--serif); color: var(--cream); text-shadow: var(--shadow); }
.hint { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
h2 { margin: 0 0 20px; max-width: 11ch; font: 500 clamp(44px, 5.2vw, 76px)/1.02 var(--serif); letter-spacing: -0.01em; text-shadow: var(--shadow); }
h2.big { max-width: none; font-size: clamp(64px, 10vw, 140px); margin-bottom: 10px; }
em { font-style: italic; }
.pin p { margin: 0; max-width: 34ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--cream); text-shadow: var(--shadow); }

dl { margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 28px; }
dt { font: 500 clamp(36px, 3.6vw, 52px)/1 var(--serif); text-shadow: var(--shadow); }
dd { margin: 8px 0 0; max-width: 18ch; font-size: 15px; color: var(--muted); }
/* the plan terms under the prices (cancellation and refunds) */
.pin p.terms { margin-top: 26px; max-width: 46ch; font-size: 13px; color: var(--muted); }

.go { display: inline-block; margin-top: 22px; padding: 13px 26px; border: 1px solid var(--line); border-radius: 100px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); background: rgba(214, 200, 186, 0.4); backdrop-filter: blur(3px); transition: background 0.2s, border-color 0.2s, color 0.2s; }
.go:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.foot { position: absolute; bottom: 44px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.foot a:hover { color: var(--accent); }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* long text (privacy): a still picture behind */
.bg { position: fixed; inset: 0; z-index: 0; background: url("scenes/hero.webp") center / cover no-repeat; }
.shade { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: rgba(214, 200, 186, 0.78); }
.page { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 140px var(--gutter) 80px; }
.page h1 { font-size: clamp(44px, 7vw, 80px); }
.page h2 { font-size: 30px; max-width: none; margin: 40px 0 8px; text-shadow: none; }
.page p, .page li { color: var(--muted); font-size: 17px; line-height: 1.6; }
.page a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.page strong { color: var(--cream); font-weight: 500; }
.page + .foot { position: relative; z-index: 1; padding: 28px var(--gutter) 40px; left: auto; right: auto; bottom: auto; }

@media (max-width: 760px) {
  .nav { padding: 22px var(--gutter); }
  .nav .home { font-size: 22px; }
  .chapters { display: none; }
  .frame { inset: 10px; }
  .pin { max-width: none; align-content: end; padding-bottom: 14vh; }
  /* on a phone the picture crops to its centre, so the words get a soft dark backing */
  .pin::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(214, 200, 186, 0.88) 0%, rgba(214, 200, 186, 0.6) 45%, transparent 75%); }
  .hero .pin, .end .pin { align-content: center; padding-bottom: 0; }
  h2 { font-size: clamp(38px, 10vw, 56px); max-width: none; }
  dl { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .loading { transition: none; } }

/* the particle landing: the field is black, the titles are drawn by particles.js and kept transparent here */
.particles { --bg: #d6c8ba; }
.particles html, html:has(.particles) { background: #d6c8ba; }
/* the wordmark is the points; a chapter's title is solid type that comes up as the points that carried it fade */
.particles .scene h1 { color: var(--cream); text-shadow: none; opacity: 0; }
.particles .scene h2 { color: var(--cream); text-shadow: none; opacity: 0; transition: opacity 0.55s ease; }
/* the chapter list sits in the bottom band; the words centre in the space above it */
.particles .scene:not(.hero) .pin { padding-bottom: 150px; }
.particles .chapters { gap: 6px; font-size: 9px; }
.particles .pin p.terms { font-size: 15px; max-width: 56ch; margin-top: 20px; }
@media (max-height: 600px) { .particles .chapters { display: none; } .particles .scene:not(.hero) .pin { padding-bottom: 0; } }
.particles .pin { opacity: 1; }
.particles .pin::before { display: none; }
.particles .lead { margin-top: clamp(64px, 10vh, 104px); }
.particles .scene h2 { max-width: 12ch; font-size: clamp(60px, 8vw, 128px); margin-bottom: 28px; }
.particles .end h2.big { font-size: clamp(72px, 11vw, 180px); max-width: none; }
.particles .pin { max-width: 760px; }
.particles .pin p { max-width: 36ch; font-size: clamp(18px, 1.5vw, 23px); }
.particles small { font-size: 12px; }
.particles dt { font-size: clamp(44px, 4.4vw, 64px); }
.particles dd { font-size: 16px; }
.particles .lead { font-size: clamp(24px, 2.9vw, 40px); }
.particles .hero .pin, .particles .end .pin { max-width: none; }
.particles .lead, .particles .pin p, .particles dt { text-shadow: none; }
.particles .page h1 { font-size: clamp(44px, 6vw, 80px); }

/* beside the example card the words stop short of it */
@media (min-width: 1001px) { .particles .pin > p, .particles .pin > dl { max-width: min(760px, calc(62vw - var(--gutter))); } }
/* a word while its letters are jumbled */
.w { display: inline; }
.w.on { color: var(--accent); }

/* the closing chapter: a search box that goes to the app */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.try { display: flex; gap: 10px; width: min(720px, 100%); margin-top: 10px; }
.try input { flex: 1 1 auto; min-width: 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 100px; background: rgba(222, 210, 197, 0.6); color: var(--cream); font: 500 clamp(17px, 1.6vw, 22px) var(--serif); }
.try input::placeholder { color: var(--faint); }
.try input:focus { outline: none; border-color: var(--accent); }
.try button { padding: 0 24px; border: 1px solid var(--line); border-radius: 100px; background: var(--cream); color: var(--bg); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background 0.2s, border-color 0.2s; }
.try button:hover { background: var(--accent); border-color: var(--accent); }
@media (max-width: 720px) { .try { flex-direction: column; } .try button { padding: 14px 24px; } }

/* the example sheet: one real result card beside the copy */
.sheet { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: min(400px, 34vw); padding: 22px 24px; border: 1px solid var(--line); border-radius: 6px; background: rgba(222, 210, 197, 0.7); color: var(--cream); font-size: 14px; line-height: 1.5; }
.sheet h3 { margin: 0 0 10px; font: 500 22px/1.15 var(--serif); }
.sheet p { margin: 0 0 6px; max-width: none; font-size: 14px; color: var(--muted); }
.sheet b { color: var(--cream); font-weight: 500; }
.sheet ol { margin: 8px 0 14px; padding-left: 18px; color: var(--muted); }
.sheet .copy { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); }
.particles .pin { max-width: none; }
.particles .pin > h2, .particles .pin > p, .particles .pin > dl { max-width: 760px; }
@media (max-width: 1000px) {
  .sheet { display: none; }
  .sheet.console-mock { display: block; position: static; transform: none; width: 100%; margin-top: 16px; padding: 12px 14px; font-size: 13px; }
  .console-mock .mock-head { font-size: 16px; margin-bottom: 4px; }
  .console-mock li { padding: 6px 0; }
  .console-mock li:nth-child(n+4) { display: none; }
}

/* the team console, pictured */
.console-mock { padding: 18px 20px; }
.console-mock .mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font: 500 18px var(--serif); }
.console-mock ul { list-style: none; margin: 0; padding: 0; }
.console-mock li { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); }
.console-mock li b { font-weight: 500; color: var(--cream); }
.console-mock li span { font-size: 12px; color: var(--muted); }
/* for developers */
.dev pre { margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; overflow: auto; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); white-space: pre; }
.terms a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.terms a:hover { color: var(--accent); }

/* the task pages */
.crumbs { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.lead-page { font: 500 clamp(20px, 2.2vw, 28px)/1.3 var(--serif); color: var(--cream); margin: 0 0 28px; }
.sheet-page { padding: 22px 26px; border: 1px solid var(--line); border-radius: 6px; background: rgba(222, 210, 197, 0.7); margin: 0 0 40px; }
.sheet-page p { margin: 0 0 8px; color: var(--muted); }
.sheet-page b { color: var(--cream); font-weight: 500; }
.sheet-page ol { margin: 10px 0 18px; padding-left: 20px; color: var(--muted); }
.sheet-page .go { margin-top: 4px; }
.sheet-page .small { margin: 12px 0 0; font-size: 13px; color: var(--faint); }
.page h2 { font-size: clamp(28px, 3vw, 40px); margin: 36px 0 12px; }
.page h3 { font: 500 20px var(--serif); margin: 20px 0 6px; }
.tasks, .related { list-style: none; padding: 0; margin: 0; }
.tasks li { padding: 14px 0; border-top: 1px solid rgba(38, 28, 26, 0.14); display: flex; flex-direction: column; gap: 3px; }
.tasks li a { text-decoration: none; color: var(--cream); font: 500 20px var(--serif); }
.tasks li a:hover { color: var(--accent); }
.tasks li span { color: var(--muted); font-size: 15px; }
.related li { padding: 6px 0; }
.related a { color: var(--cream); }
.page .foot { position: static; margin-top: 60px; display: flex; justify-content: space-between; }
.wf-h { font-size: 22px !important; margin: 18px 0 8px !important; }
.wf { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: rgba(38, 28, 26, 0.04); color: var(--cream); font: 14px/1.55 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* v40: the line under the hero tagline */
.hero .sub { max-width: 54ch; margin: 18px 0 0; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.5; color: var(--muted); text-shadow: none; }
.particles .hero .sub { margin-top: 22px; }

/* v40: tables on the plain pages (how we test) */
.page table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 15px; }
.page th, .page td { padding: 9px 10px; text-align: left; border-top: 1px solid var(--line); color: var(--muted); }
.page th { color: var(--cream); font-weight: 500; border-top: 0; }
.page td:first-child { color: var(--cream); }
@media (max-width: 720px) { .page table { font-size: 13px; } .page th, .page td { padding: 7px 6px; } }

/* v40: on a phone the example card is a short list and the proof line is smaller, so the chapter fits one screen */
@media (max-width: 760px) {
  .particles .pin p { font-size: 17px; }
  #tools .console-mock .mock-head { font-size: 14px; }
  #tools .console-mock li { padding: 5px 0; }
  #tools .console-mock li span { font-size: 11.5px; }
  #tools .console-mock { padding: 10px 12px; margin-top: 10px; }
  .particles .pin p.terms { font-size: 13px; margin-top: 12px; }
}

/* v44: the hero fits one screen on a laptop: a one-line sub, tighter gaps */
.particles .hero .lead { margin-top: 28px; }
.particles .hero .sub { margin-top: 12px; font-size: clamp(15px, 1.25vw, 18px); max-width: 76ch; }

/* v46: beside the example card the chapter text stops well short of it */
@media (min-width: 1001px) { #tools .pin > p:not(.terms), #workflow .pin > p, #console .pin > p, #run .pin > p { max-width: min(600px, 46vw); } }

/* v47: on a wide screen the chapter list owns the bottom-left corner, so the closing footer keeps to the right */
@media (min-width: 1001px) { .particles .foot > span:first-child { display: none; } .particles .foot { justify-content: flex-end; } }
