/* ══════════════════════════════════════════════════════════════════════
   Habesha Market Research: the night skyline (Nov 2026)

   The coin, made a place. Its navy is the night sky, its champagne is the
   light (the moon, the lit windows, the zigzag under the ground line), and
   its three stelae stand in ivory in a skyline of Aksum stelae. The sky is
   only ever above the ground line: the hero and a page's header. Below it
   the page is the ground, and everything on it is a panel with a stela's
   rounded head.

   Colour carries meaning and nothing else: green is for, red is against.
   Gold with white type is the one thing to press.

   Motion: the page plays once on load (html.anim, set in the head when the
   visitor has not asked for reduced motion) and what is below the first
   screen rises as it is scrolled to (html.js, set by site.js). Without
   either class every element is in its finished state.
   ══════════════════════════════════════════════════════════════════════ */
:root {
  --night:    #0A1733;   /* the sky */
  --dusk:     #14306B;   /* the sky near the moon */
  --ground:   #071027;   /* below the ground line */
  --card:     #0D1E45;
  --raised:   #12295A;   /* the coin's disc */
  --line:     #263D75;
  --line-2:   #40588F;
  --ink:      #F6EEDC;   /* ivory: the stelae, and words */
  --ink-2:    #C9D2E6;
  --ink-3:    #AEB9D1;
  --accent:   #E6CF9C;   /* champagne: the rim, the light */
  --gold:     #86662A;   /* what is pressed */
  --gold-hi:  #9B7732;
  --on-gold:  #FFFFFF;
  --green:    #5CBF98;
  --red:      #E8746E;

  --display: 'Gloock', 'Noto Serif Ethiopic', Georgia, 'Times New Roman', serif;
  --body:    'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 40px;
  --wrap:   1200px;
  --sky-h:  max(220px, 25vw);      /* the skyline's height: its drawing is 1440 by 400 */
  --ease:   cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: rgba(230, 207, 156, 0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 14px; background: var(--ink); color: var(--night);
  font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 8px;
}
.skip:focus { top: 22px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 24px;
  border: 1px solid transparent; border-radius: 26px;
  font: 600 16px/1.25 var(--body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.btn-quiet { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-quiet:hover { border-color: var(--accent); background: rgba(230, 207, 156, 0.08); transform: translateY(-2px); }
.text-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { color: var(--ink); text-decoration-thickness: 2px; }

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 23, 51, 0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7, 16, 39, 0.9); }
.nav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand-emblem { display: block; height: 44px; width: 44px; transition: transform 0.8s var(--ease); }
.brand:hover .brand-emblem { transform: rotate(360deg); }
.brand-name { font: 400 22px/1.1 var(--display); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 10px 12px; font-size: 16px; white-space: nowrap; color: var(--ink-2); text-decoration: none; border-radius: 8px; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.nav-links .btn { margin-left: 10px; min-height: 44px; padding: 8px 20px; font-size: 15px; color: var(--on-gold); border-radius: 22px; }
.nav-links .btn:hover { color: var(--on-gold); text-decoration: none; }
.nav-burger {
  display: none; flex: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); cursor: pointer;
}

/* ─── The sky: stars, a shooting star, the moon, the skyline ─── */
.sky {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1100px 720px at 82% 4%, var(--dusk) 0%, var(--night) 62%);
  --p: 0;                      /* how far the sky has been scrolled past, 0 to 1 (site.js) */
}
.sky::before {
  content: ""; position: absolute; inset: 0 0 calc(var(--sky-h) * 0.4) 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 24px 36px, rgba(246, 238, 220, 0.75) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 150px 88px, rgba(246, 238, 220, 0.55) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 96px 190px, rgba(230, 207, 156, 0.7) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 228px 152px, rgba(246, 238, 220, 0.6) 0 0.7px, transparent 1.3px),
    radial-gradient(circle at 196px 22px, rgba(246, 238, 220, 0.45) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 48px 250px, rgba(246, 238, 220, 0.5) 0 0.7px, transparent 1.3px);
  background-size: 280px 280px;
  transform: translate3d(0, calc(var(--p) * 50px), 0);
}
/* The stars thin out lower in the sky, so none sits among the words like a stray full stop. */
.sky::before, .stars {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 46%, rgba(0, 0, 0, 0.25) 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 46%, rgba(0, 0, 0, 0.25) 100%);
}
.stars {
  position: absolute; inset: -80px 0 calc(var(--sky-h) * 0.5) 0; z-index: -1; pointer-events: none;
  transform: translate3d(0, calc(var(--p) * 90px), 0);
}
.stars-1 {
  background-image:
    radial-gradient(circle at 6% 22%, #F6EEDC 0 1.5px, transparent 2px),
    radial-gradient(circle at 17% 48%, #F6EEDC 0 1px, transparent 1.6px),
    radial-gradient(circle at 29% 15%, #E6CF9C 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 43% 34%, #F6EEDC 0 1px, transparent 1.6px),
    radial-gradient(circle at 56% 17%, #F6EEDC 0 1.4px, transparent 2px),
    radial-gradient(circle at 64% 52%, #E6CF9C 0 1px, transparent 1.6px),
    radial-gradient(circle at 73% 28%, #F6EEDC 0 1px, transparent 1.6px),
    radial-gradient(circle at 91% 44%, #F6EEDC 0 1.4px, transparent 2px),
    radial-gradient(circle at 97% 14%, #F6EEDC 0 1px, transparent 1.6px);
}
.stars-2 {
  transform: translate3d(0, calc(var(--p) * 150px), 0);
  background-image:
    radial-gradient(circle at 10% 66%, #F6EEDC 0 1px, transparent 1.6px),
    radial-gradient(circle at 23% 30%, #F6EEDC 0 1.4px, transparent 2px),
    radial-gradient(circle at 37% 60%, #E6CF9C 0 1px, transparent 1.6px),
    radial-gradient(circle at 50% 76%, #F6EEDC 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 61% 30%, #F6EEDC 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 70%, #F6EEDC 0 1.4px, transparent 2px),
    radial-gradient(circle at 85% 20%, #E6CF9C 0 1px, transparent 1.6px),
    radial-gradient(circle at 3% 40%, #F6EEDC 0 1px, transparent 1.6px);
}
.shoot {
  position: absolute; top: 96px; left: -190px; z-index: -1; pointer-events: none;
  width: 170px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  opacity: 0;
}
.moon {
  position: absolute; z-index: 0; pointer-events: none;
  width: 220px; aspect-ratio: 1 / 1;
  transform: translate3d(0, calc(var(--p) * 120px), 0);
}
.moon-in { position: absolute; inset: 0; }
.moon-halo {
  position: absolute; inset: -34%; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 207, 156, 0.42) 0%, rgba(230, 207, 156, 0.12) 42%, rgba(230, 207, 156, 0) 68%);
}
.moon-ring {
  position: absolute; inset: -9%; border-radius: 50%;
  border: 2px dotted rgba(230, 207, 156, 0.55);
}
.moon img { position: relative; display: block; width: 100%; height: 100%; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45)); }

.skyline {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: var(--sky-h); pointer-events: none;
}
.skyline svg { display: block; width: 100%; height: 100%; }
.sk-r { transform-box: fill-box; transform-origin: 50% 100%; }

/* ─── Hero ─── */
.hero { padding: 132px 0 calc(var(--sky-h) * 0.62); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: start; }
.hero h1 {
  font: 400 clamp(42px, 5.3vw, 80px)/1.02 var(--display);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero h1 .w { display: inline-block; }
.hero-lede { margin-top: 28px; font-size: 19.5px; line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.hero-lede strong { color: var(--ink); font-weight: 600; }
.hero-points { list-style: none; margin: 24px 0 0; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
/* A small stela for a bullet. */
.hero-points li::before { content: ""; position: absolute; left: 4px; top: 0.3em; width: 10px; height: 16px; border-radius: 5px 5px 0 0; background: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 15.5px; color: var(--ink-3); }
.hero-note .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.hero-side { position: relative; }
.hero-side .moon { top: -108px; right: -100px; width: 236px; }

/* Substack checks every sign-up in its own page (a captcha, a bot check), so the address is
   typed into its embed. Its card is ivory, which is our --ink. The frame is as tall as the
   card at each width (logo to terms: 416px from 400px wide, 438 at 360, 478 at 300 to 335,
   500 at 280), with room above and below; if it is ever taller, it scrolls, never clips. */
.signup {
  position: relative; z-index: 1; padding: 26px 26px 20px; border-radius: 34px 34px 14px 14px;
  background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(230, 207, 156, 0.16);
}
.signup-title { margin: 2px 0 6px; font: 400 30px/1.2 var(--display); color: var(--ink); text-align: center; }
.signup-sub { margin-bottom: 16px; font-size: 15.5px; color: var(--accent); text-align: center; }
.signup-frame { border-radius: 14px; overflow: hidden; background: var(--ink); }
.signup-frame iframe { display: block; width: 100%; height: 440px; border: 0; background: var(--ink); }
.signup-fine { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.signup-fine a { color: var(--ink-2); text-underline-offset: 3px; }

/* ─── The ground: sections ─── */
.section { position: relative; padding: 88px 0 96px; }
.section-tight { padding: 56px 0 64px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 44px; }
.section-title { font: 400 clamp(34px, 3.8vw, 52px)/1.1 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.section-lede { font-size: 18px; color: var(--ink-2); max-width: 52ch; }

/* The rule between sections: the ground line, with a few teeth of the zigzag. */
.rule { position: relative; height: 14px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.rule::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--line); }
.rule::after {
  content: ""; position: absolute; left: var(--gutter); top: 4px; width: 96px; height: 8px;
  background:
    linear-gradient(135deg, var(--accent) 25%, transparent 25%) -8px 0 / 16px 16px,
    linear-gradient(225deg, var(--accent) 25%, transparent 25%) -8px 0 / 16px 16px;
}

/* The letter: three panels, each with a stela's head. */
.posts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); gap: 20px; }
.post { display: flex; }
.post a {
  flex: 1; display: flex; flex-direction: column; gap: 8px;
  padding: 30px 26px 24px; border-radius: 34px 34px 10px 10px;
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.post a:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4); }
.post-kind { order: 1; font-size: 15px; color: var(--ink-3); }
.post-title { order: 2; font: 400 26px/1.2 var(--display); color: var(--ink); }
.post-desc { order: 3; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.post-go { order: 4; margin-top: auto; padding-top: 10px; font-size: 15.5px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.letter-bar { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.letter-bar p { font-size: 17px; color: var(--ink-2); max-width: 58ch; }
.letter-bar .btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Offers. */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.offer {
  display: flex; flex-direction: column; gap: 12px;
  padding: 32px 28px 26px; background: var(--card);
  border: 1px solid var(--line); border-radius: 34px 34px 10px 10px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.offers .offer:hover { transform: translateY(-6px); border-color: var(--accent); }
.report-buy[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }
.offer-tag { font-size: 15px; font-weight: 600; color: var(--accent); }
.offer-title { font: 400 26px/1.2 var(--display); color: var(--ink); }
.offer-what { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.offer-cta { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.offer-cta .text-link { font-size: 15px; }
.offer.offer-wide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; border-radius: 34px 34px 10px 10px; }
.offer-main { display: flex; flex-direction: column; gap: 14px; padding: 40px 44px 38px; }
.offer-title-lg { font-size: clamp(28px, 2.7vw, 36px); }
.offer-gets { list-style: none; margin: 4px 0 0; display: grid; gap: 10px; }
.offer-gets li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.offer-gets li::before { content: ""; position: absolute; left: 4px; top: 0.3em; width: 9px; height: 15px; border-radius: 5px 5px 0 0; background: var(--accent); }
.offer-main .offer-cta { padding-top: 18px; }
.offer-side { padding: 40px 44px 38px; background: var(--ground); border-left: 1px solid var(--line); }
.offer-side-h { font: 400 22px/1.2 var(--display); color: var(--ink); margin-bottom: 22px; }
.offer-steps { list-style: none; display: grid; gap: 0; }
.offer-steps li { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; padding-bottom: 24px; }
.offer-steps li:last-child { padding-bottom: 0; }
.offer-steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 1px; background: var(--line-2); }
/* A step's number, struck as a small coin. */
.step-n { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--accent); background: var(--raised); color: var(--ink); display: grid; place-items: center; font: 400 17px var(--display); }
.offer-steps b { display: block; font-size: 16.5px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.offer-steps div span { display: block; font-size: 15px; line-height: 1.5; color: var(--ink-3); margin-top: 3px; }

/* Tibeb, in brief: a small skyline of evidence. */
.tibeb-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: 30px 32px; border: 1px solid var(--line); border-radius: 34px 34px 10px 10px; background: var(--card);
}
.tibeb-words { flex: 1 1 360px; max-width: 62ch; display: flex; flex-direction: column; gap: 8px; }
.tibeb-title { font: 400 28px/1.2 var(--display); color: var(--ink); }
.tibeb-what { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.tibeb-art { flex: 0 1 260px; min-width: 200px; }
.tibeb-art svg { display: block; width: 100%; height: auto; }
.tibeb-art .ta-r { transform-box: fill-box; transform-origin: 50% 100%; }

/* The request form. */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact > div { padding-top: 10px; }
.request-note { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.mail { display: inline-block; margin-top: 14px; padding: 10px 0; font: 600 16px var(--body); color: var(--accent); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; overflow-wrap: anywhere; }
.mail:hover { color: var(--ink); text-decoration-color: var(--ink); }
.addr-grid { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 18px; }
.request-addr { font-style: normal; font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.request-addr a { color: var(--ink-2); text-underline-offset: 3px; }
.addr-label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.request { display: flex; flex-direction: column; gap: 16px; padding: 30px 28px 26px; background: var(--card); border: 1px solid var(--line); border-radius: 34px 34px 10px 10px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field-row[hidden], .field[hidden] { display: none; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px;
  background: var(--ground); color: var(--ink); border: 1px solid var(--line-2);
  font: 400 16px/1.4 var(--body);
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field ::placeholder { color: var(--ink-3); opacity: 1; }
.field select option { background: var(--night); color: var(--ink); }
.request .btn { align-self: flex-start; min-width: 180px; }
.request .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 15px; color: var(--ink-2); }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* ─── The About page ─── */
.about-sky { padding: 132px 0 calc(var(--sky-h) * 0.7); }
.about-sky .wrap { z-index: 1; }
.about-sky .moon { top: -30px; right: var(--gutter); }
.about-sky h1 { font: 400 clamp(42px, 5.6vw, 84px)/1.04 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.about-sky h1 .w { display: inline-block; }
.kicker { font-size: 17px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.lede { margin-top: 24px; font-size: 21px; line-height: 1.55; color: var(--ink); max-width: 44ch; }
.about { padding: 72px 0 104px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.prose { max-width: 62ch; }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--ink); }
.prose h2 { margin: 44px 0 14px; font: 400 30px/1.2 var(--display); color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.facts { padding: 10px 26px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 34px 34px 10px 10px; }
.fact { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact dt { font-size: 15px; font-weight: 600; color: var(--accent); }
.fact dd { margin-top: 2px; font-size: 17px; color: var(--ink); }
.fact a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; overflow-wrap: anywhere; }
.fact a:hover { text-decoration-color: var(--ink); }

/* ─── Footer: the zigzag, then the small print ─── */
.footer { position: relative; }
.footer::before {
  content: ""; display: block; height: 12px;
  background:
    linear-gradient(135deg, var(--accent) 25%, transparent 25%) -10px 0 / 20px 20px,
    linear-gradient(225deg, var(--accent) 25%, transparent 25%) -10px 0 / 20px 20px;
  border-top: 3px solid var(--ink);
}
.footer-in {
  max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 36px;
  display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: baseline;
  font-size: 15px; color: var(--ink-3);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-links a { padding: 10px 0; text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.footer-note { flex-basis: 100%; max-width: 78ch; }
.footer-addr { flex-basis: 100%; font-style: normal; color: var(--ink-3); }
.footer-addr a { color: var(--ink-2); text-underline-offset: 3px; }

/* ══════════ Motion ══════════ */
@keyframes word     { from { opacity: 0; transform: translateY(46px) rotate(3deg); } to { opacity: 1; transform: none; } }
@keyframes lift     { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes moonrise { from { opacity: 0; transform: translateY(150px); } to { opacity: 1; transform: none; } }
@keyframes halo     { from { opacity: 0.45; transform: scale(0.92); } to { opacity: 1; transform: scale(1.06); } }
@keyframes turn     { to { transform: rotate(360deg); } }
@keyframes glint    { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes twinkle  { 0%, 100% { opacity: 0.12; } 50% { opacity: 1; } }
@keyframes shoot    { 0% { opacity: 0; transform: translate(0, 0) rotate(18deg); } 3% { opacity: 1; } 13% { opacity: 0; transform: translate(130vw, 42vw) rotate(18deg); } 100% { opacity: 0; transform: translate(130vw, 42vw) rotate(18deg); } }
@keyframes march    { to { background-position: 10px 0, 10px 0; } }
@keyframes beat     { 0% { box-shadow: 0 0 0 0 rgba(230, 207, 156, 0.6); } 100% { box-shadow: 0 0 0 12px rgba(230, 207, 156, 0); } }

.anim .hero h1 .w, .anim .about-sky h1 .w { animation: word 0.9s var(--ease) both; animation-delay: var(--d, 0s); }
.anim .hero-lede   { animation: lift 0.8s ease-out 0.95s both; }
.anim .hero-points { animation: lift 0.8s ease-out 1.1s both; }
.anim .hero-cta    { animation: lift 0.8s ease-out 1.25s both; }
.anim .hero-note   { animation: lift 0.8s ease-out 1.4s both; }
.anim .signup      { animation: lift 0.9s var(--ease) 0.5s both; }
.anim .kicker      { animation: lift 0.8s ease-out 0.1s both; }
.anim .lede        { animation: lift 0.8s ease-out 0.9s both; }
.anim .moon-in     { animation: moonrise 1.9s var(--ease) 0.25s both; }
.anim .moon-halo   { animation: halo 4s ease-in-out infinite alternate; }
.anim .moon-ring   { animation: turn 80s linear infinite; }
.anim .stars-1     { animation: glint 2.6s ease-in-out infinite alternate; }
.anim .stars-2     { animation: glint 4.4s ease-in-out 1s infinite alternate; }
.anim .shoot       { animation: shoot 9s linear 2.5s infinite; }
.anim .hero-note .dot { animation: beat 1.8s ease-out infinite; }
.anim .footer::before { animation: march 2.4s linear infinite; }

/* The skyline rises when it comes into view; its windows never stop. */
.anim .sk-r { transition: transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.anim .skyline:not(.in) .sk-r { transform: scaleY(0); }
.anim .sk-t { animation: twinkle var(--t, 3.2s) ease-in-out var(--d, 0s) infinite; }
.anim .sk-z { transition: clip-path 2.2s ease-out 0.9s; }
.anim .skyline:not(.in) .sk-z { clip-path: inset(0 100% 0 0); }

/* Below the first screen, things rise as they are scrolled to. */
.anim.js .reveal.in { transition: opacity 0.8s ease-out, transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.anim.js .reveal:not(.in) { opacity: 0; transform: translateY(36px); }
.anim.js .posts.reveal:not(.in), .anim.js .offers.reveal:not(.in) { opacity: 1; transform: none; }
.anim.js .posts.reveal.in .post, .anim.js .offers.reveal.in .offer { transition: opacity 0.8s ease-out, transform 0.9s var(--ease); }
.anim.js .posts.reveal:not(.in) .post, .anim.js .offers.reveal:not(.in) .offer { opacity: 0; transform: translateY(60px); }
.anim.js .posts.reveal.in .post:nth-child(2), .anim.js .offers.reveal.in .offer:nth-child(2) { transition-delay: 0.14s; }
.anim.js .posts.reveal.in .post:nth-child(3) { transition-delay: 0.28s; }
.anim .tibeb-art .ta-r { transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.anim.js .tibeb-box:not(.in) .ta-r { transform: scaleY(0); }
.anim .tibeb-art .ta-t { animation: twinkle 2.8s ease-in-out var(--d, 0s) infinite; }

/* ─── Narrower screens ─── */
@media (max-width: 1080px) {
  /* One column: the words run the width of the sky, so the stars stop above them. */
  .sky::before, .stars {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 250px, transparent 470px);
            mask-image: linear-gradient(to bottom, #000 0, #000 250px, transparent 470px);
  }
  /* The row of links no longer fits beside the name: the menu folds. */
  .nav-burger { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 12px; right: 12px; margin-top: 6px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px; background: var(--card); border: 1px solid var(--line-2); border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 17px; }
  .nav-links .btn { margin: 6px 0 0; padding: 12px; font-size: 17px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero { padding-bottom: calc(var(--sky-h) * 0.92); }
  .hero-side { position: static; }
  .hero-side .moon { top: -34px; right: 0; width: 150px; }
  .hero h1 { max-width: calc(100% - 130px); }
  .signup { max-width: 520px; width: 100%; margin: 0 auto; }
  .section-head, .contact { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
  .contact > div { padding-top: 0; }
  .section-head { margin-bottom: 36px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .nav-in { height: 64px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-emblem { height: 38px; width: 38px; }
  .brand-name { font-size: 19px; }
  .hero, .about-sky { padding-top: 112px; }
  .section { padding: 64px 0 72px; }
  .about { padding: 56px 0 72px; }
  .offers, .field-row { grid-template-columns: minmax(0, 1fr); }
  .offer { padding: 28px 22px 22px; }
  .offer.offer-wide { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .offer-main, .offer-side { padding: 30px 22px 26px; }
  .offer-side { border-left: 0; border-top: 1px solid var(--line); }
  .tibeb-box, .request { padding: 28px 20px 24px; }
  .post a { padding: 28px 22px 22px; }
  .post-title { font-size: 24px; }
  .footer-in { padding-bottom: 30px; }
  .about-sky .moon { top: -20px; width: 130px; }
  .about-sky h1 { max-width: calc(100% - 110px); }
  .lede { font-size: 19px; }
  .cta .btn { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  .signup { padding: 22px 12px 16px; border-radius: 28px 28px 12px 12px; }
  .hero-side .moon { top: -40px; right: -14px; width: 112px; }
  .hero h1 { max-width: none; padding-top: 84px; }
  .about-sky .moon { top: -36px; right: 6px; width: 104px; }
  .about-sky h1 { max-width: none; }
  .about-sky .kicker { padding-top: 78px; }
}
@media (max-width: 439px) { .signup-frame iframe { height: 490px; } }
@media (max-width: 420px) {
  /* Sized so "The engineering" always fits on the first line. */
  .hero h1 { font-size: min(42px, calc((100vw - 40px) / 8.2)); }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (max-width: 399px) { .signup-frame iframe { height: 530px; } .brand-name { font-size: 17px; } }
@media (max-width: 339px) { .signup-frame iframe { height: 550px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .stars, .moon { transform: none; }
}
