/* Etak Labs · watercolour lighthouse
   Type: Newsreader only (humanist serif; deliberate exception to the skill's font list).
   Sizes snap to the Tailwind scale, spacing to the B2 tokens. */

:root {
  --paper: #F4EFE4;
  --ink: #1D2232;
  --ink-2: #444B5E;
  --ochre-ink: #765619;
  --cream: #F7F1E3;
  --cream-2: #E4DDCD;
  --gold: #E8B75A;
  --night: #232A44;
  --e: cubic-bezier(0.22, 1, 0.36, 1);
  --e-move: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --gutter: clamp(24px, 8.33vw, 120px);
}

* { box-sizing: border-box; }
html {
  /* cold-press paper, generated by src/pack.py */
  background: var(--paper) url(../assets/paper.jpg) 0 0 / 512px repeat;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 24px;
  overflow-x: hidden;
}
a { color: inherit; }
b { font-weight: 600; }

.skip {
  position: absolute; left: 16px; top: 16px; z-index: 50;
  padding: 8px 12px; border-radius: 9999px;
  background: var(--cream); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 600;
  transform: translateY(-200%);
  transition: transform 300ms var(--e);
}
.skip:focus { transform: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
main:focus { outline: none; }

/* ---------- header: compact floating bar ---------- */
.bar {
  position: absolute; z-index: 20; top: 16px; left: 50%;
  display: flex; align-items: center; gap: 20px;
  padding: 8px 8px 8px 16px;
  border-radius: 9999px;
  color: var(--cream);
  background: rgba(24, 29, 48, 0.42);
  border: 1px solid rgba(247, 241, 227, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  transform: translateX(-50%);
  white-space: nowrap;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 18px; line-height: 28px; font-weight: 500; letter-spacing: -0.005em; }
.mark { width: 24px; height: 24px; flex: none; }
.mark-tower { fill: currentColor; }
.mark-line { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.mark-beam { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; opacity: 0.85; }
.mark-lamp { fill: var(--gold); }
.bar-nav { display: flex; align-items: center; gap: 14px; } /* spacing as on the site's bar (watercolour.css) */
.bar-link, .bar-cta {
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  transition: background-color 300ms var(--e), color 300ms var(--e), transform 300ms var(--e);
}
.bar-link { opacity: 0.8; padding: 4px 2px; }
.bar-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.bar-cta { padding: 8px 12px; border-radius: 9999px; background: var(--cream); color: var(--ink); }
.bar-cta:hover { background: #FFFFFF; }
.bar-cta:active, .bar-link:active { transform: scale(0.98); }
/* Method opens under How it works, as on the site's own bar (watercolour.css) */
.bar-menu { position: relative; display: inline-flex; }
.bar-menu > .bar-link::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 1px 3px 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.7; }
.bar-sub { position: absolute; z-index: 5; top: 100%; left: -13px; padding-top: 14px; visibility: hidden; opacity: 0; transition: opacity 150ms ease, visibility 150ms; }
.bar-menu:hover .bar-sub, .bar-menu:focus-within .bar-sub { visibility: visible; opacity: 1; }
.bar-sub .bar-link { display: block; padding: 8px 14px; border-radius: 12px; opacity: 1; color: var(--cream); background: rgba(24, 29, 48, 0.94); border: 1px solid rgba(247, 241, 227, 0.12); }

/* ---------- fold 1 ---------- */
.fold {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 600px;
  overflow: hidden;
}
.fold-art { position: absolute; inset: 0; }
.fold-art.live { background: none; }
.fold-canvas, .fold-video {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.fold-canvas { opacity: 0; }
.fold-canvas.on { opacity: 1; }
.fold-video { object-fit: cover; object-position: 66% 50%; visibility: hidden; }
.fold-art.fallback .fold-video { visibility: visible; }
.fold-art.fallback .fold-canvas { opacity: 0; }

.fold-copy {
  position: absolute; z-index: 5;
  left: var(--gutter);
  top: max(22vh, 150px);
  width: min(680px, calc(100% - 2 * var(--gutter)));
  color: var(--cream);
}
.ink { text-shadow: 0 1px 18px rgba(18, 22, 40, 0.55), 0 0 2px rgba(18, 22, 40, 0.35); }
.wordmark {
  margin: 0;
  font-size: 72px; line-height: 1; font-weight: 500; letter-spacing: -0.02em;
  color: var(--cream);
}
/* skill B5: left to right gradient on the hero heading, warm cream to stone */
.wordmark {
  background: linear-gradient(90deg, #F8F2E4 0%, #F8F2E4 35%, #CDC5B3 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  padding-bottom: 4px;
}
.thesis {
  margin: 24px 0 0;
  font-size: 36px; line-height: 40px; font-weight: 400; letter-spacing: -0.01em;
  text-wrap: balance;
}
.support {
  margin: 24px 0 0;
  max-width: 480px;
  font-size: 18px; line-height: 28px;
  color: var(--cream-2);
  text-wrap: pretty;
}
.arrow {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 4px 16px 4px 4px; border: 0; border-radius: 9999px;
  background: transparent; color: var(--cream);
  font: inherit; font-size: 16px; line-height: 24px; font-weight: 400;
  cursor: pointer; text-align: left;
}
.arrow-ring {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 9999px;
  border: 1.5px solid rgba(232, 183, 90, 0.85);
  background: rgba(24, 29, 48, 0.35);
  transition: background-color 300ms var(--e), transform 500ms var(--e);
}
.arrow-ring svg { width: 20px; height: 20px; fill: var(--gold); transition: transform 500ms var(--e); }
.arrow-label { text-shadow: 0 1px 14px rgba(18, 22, 40, 0.6); }
.arrow-label b { font-weight: 600; }
.arrow:hover .arrow-ring { background: rgba(232, 183, 90, 0.18); }
.arrow:hover .arrow-ring svg { transform: translateY(2px); }
.arrow:active .arrow-ring { transform: scale(0.98); }
.arrow:focus-visible { outline-offset: 2px; }

/* hero appear: rise 6px, resolve from blur (ink settling as the paper dries) */
.js .rv {
  opacity: 0; transform: translateY(6px); filter: blur(2px);
  transition: opacity 600ms var(--e), transform 800ms var(--e-move), filter 800ms var(--e);
}
.js .fold-copy .rv { filter: blur(8px); transition: opacity 800ms var(--e), transform 900ms var(--e-move), filter 900ms var(--e); }
.js .rv.in { opacity: 1; transform: none; filter: blur(0); }
.js .bar.rv { transform: translate(-50%, 6px); }
.js .bar.rv.in { transform: translate(-50%, 0); }

/* ---------- closing ---------- */
.closing {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}
.close-inner {
  position: relative; z-index: 2;
  padding: 96px var(--gutter) 32px;
  max-width: calc(680px + 2 * var(--gutter));
}
.eyebrow {
  margin: 0;
  font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ochre-ink);
}
.close-h {
  margin: 16px 0 0;
  font-size: 56px; line-height: 1.02; font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink);
  background: linear-gradient(90deg, #1D2232, #4A5166);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}
.close-h span { display: block; text-wrap: balance; } /* one sentence a line, each balanced on its own */
.close-h:focus { outline: none; }
.close-lede {
  margin: 24px 0 0; max-width: 560px;
  font-size: 20px; line-height: 28px; color: var(--ink-2);
  text-wrap: pretty;
}
.close-invite { margin: 16px 0 0; font-size: 18px; line-height: 28px; color: var(--ink); font-weight: 500; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center;
  padding: 8px 12px; min-height: 40px; border-radius: 9999px;
  font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none;
  transition: background-color 300ms var(--e), color 300ms var(--e), transform 300ms var(--e), border-color 300ms var(--e);
}
.btn-primary { background: var(--night); color: var(--cream); padding: 8px 16px; }
.btn-primary:hover { background: #151A2D; transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1px solid rgba(29, 34, 50, 0.35); padding: 7px 16px; }
.btn-ghost:hover { background: rgba(29, 34, 50, 0.06); border-color: rgba(29, 34, 50, 0.6); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline-color: var(--ochre-ink); }

.close-art {
  position: relative; flex: 1 0 auto;
  min-height: 320px; height: 50vh;
  margin-top: auto;
  pointer-events: none;
}
.dawn {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 50%;
  /* the video is pigment on white: multiply glazes it onto the page's paper */
  mix-blend-mode: multiply;
}

/* scroll reveal: rise 32px, once */
.js .sr { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--e), transform 800ms var(--e); }
.js .sr-art .dawn { opacity: 0; transition: opacity 1200ms var(--e); }
.js .closing.seen .sr, .js .closing.seen .sr-art .dawn { opacity: 1; transform: none; }
.js .closing.seen .close-h { transition-delay: 60ms; }
.js .closing.seen .close-lede { transition-delay: 120ms; }
.js .closing.seen .close-invite { transition-delay: 180ms; }
.js .closing.seen .actions { transition-delay: 240ms; }

/* ---------- footer ---------- */
.foot { padding: 24px var(--gutter) 40px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.foot p { margin: 0; }
.foot a { text-underline-offset: 4px; }
.foot a:hover { color: var(--ink); }
.closing :focus-visible, .foot :focus-visible { outline-color: var(--ochre-ink); }
.bar-mobile { display: none; position: relative; }
.bar-mobile summary { list-style: none; cursor: pointer; }
.bar-mobile summary::-webkit-details-marker { display: none; }
.bar-mobile-list { position: absolute; right: 0; top: calc(100% + 10px); min-width: 170px; padding: 6px;
  border-radius: 12px; background: rgba(24, 30, 50, 0.96); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(10, 14, 26, 0.35); display: flex; flex-direction: column; z-index: 40; }
.bar-mobile-list a { color: #f4efe4; text-decoration: none; padding: 10px 12px; min-height: 44px;
  display: flex; align-items: center; border-radius: 8px; font-size: 15px; line-height: 20px; }
.bar-mobile-list a:hover, .bar-mobile-list a:focus-visible { background: rgba(255, 255, 255, 0.1); }

/* ---------- capture / og modes (used by src/capture.mjs) ---------- */
.capture .bar, .capture .fold-copy, .capture .closing, .capture .foot, .capture .skip { display: none !important; }
.capture .fold { height: 100vh; min-height: 0; }
.og .bar, .og .support, .og .arrow, .og .closing, .og .foot { display: none !important; }
.og .fold-copy { top: 31%; left: 72px; }
.og .wordmark { font-size: 72px; }
.og .rv { transition: none !important; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .bar { top: 12px; gap: 10px; padding: 4px 4px 4px 12px; }
  .brand { font-size: 16px; line-height: 24px; gap: 4px; }
  .brand span { display: none; }
  .bar-nav { gap: 10px; }
  .bar-link, .bar-cta { font-size: 13px; }
  .bar-menu { display: none; }
  .bar-mobile { display: inline-block; }
  @media (max-width: 350px) { .bar-dataset { display: none; } } /* the narrowest phones */
  .bar-link { padding: 8px 4px; }
  .bar-cta { padding: 7px 11px; }
  .fold-copy { top: 112px; left: 24px; width: calc(100% - 48px); }
  .wordmark { font-size: 48px; }
  .thesis { margin-top: 16px; font-size: 24px; line-height: 32px; }
  .support { margin-top: 16px; font-size: 16px; line-height: 24px; max-width: 320px; }
  .arrow { margin-top: 24px; }
  .close-inner { padding: 80px 24px 24px; }
  .close-h { font-size: 36px; line-height: 40px; }
  .close-lede { font-size: 18px; line-height: 28px; }
  .close-art { height: 40vh; min-height: 260px; }
  .dawn { object-position: 78% 50%; }
}
@media (max-width: 360px) {
  .brand span { font-size: 14px; line-height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .fold-copy .rv, .js .sr, .js .sr-art .dawn { transform: none !important; filter: none !important; transition: opacity 300ms linear; }
  .js .bar.rv { transform: translateX(-50%) !important; }
  .fold-canvas { transition: none; }
}

/* ---------- 10 Nov 2026: the hero says what the product does; its two actions; About in the closing section ---------- */
.wordmark.headline { font-size: 60px; line-height: 1.04; text-wrap: balance; padding-bottom: 6px; }
.fold-copy { width: min(760px, calc(100% - 2 * var(--gutter))); }
.fold-copy .support { max-width: 600px; }
.fold-actions { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; color: var(--ink); }
.btn-line { color: var(--cream); border: 1px solid rgba(247, 241, 227, 0.45); background: rgba(18, 22, 40, 0.25); }
.btn-line:hover { color: var(--cream); background: rgba(247, 241, 227, 0.12); }
.close-invite { max-width: 560px; font-size: 17px; line-height: 26px; font-weight: 400; color: var(--ink-2); }
.about { margin-top: 72px; padding-top: 32px; border-top: 1px solid rgba(29, 34, 50, 0.16); max-width: 600px; color: var(--ink-2); font-size: 18px; line-height: 28px; }
.about p { margin: 12px 0 0; }
.about .about-lead { margin-top: 12px; font-size: 26px; line-height: 32px; color: var(--ink); }
.about a { color: inherit; text-underline-offset: 3px; }
.og .fold-actions { display: none !important; }
@media (max-width: 640px) {
  .wordmark.headline { font-size: 38px; line-height: 1.06; }
  .fold-copy .support { max-width: none; }
  .about .about-lead { font-size: 22px; line-height: 28px; }
}

/* ---------- 10 Nov 2026 (Alex): below the fold the text sits in the middle of the page, centred. The fold and the
   bar are as they were (the bar a pill centred at the top). ---------- */
.close-inner { margin: 0 auto; max-width: calc(760px + 2 * var(--gutter)); text-align: center; }
.close-lede, .close-invite { margin-left: auto; margin-right: auto; }
.actions { justify-content: center; }
.about { margin-left: auto; margin-right: auto; }
