/* ==========================================================================
   The four app websites: Tattvas, Body Clock, Luniphase and AyuWatcher.

   What the four sites share: the layout, the type and how every part of the
   page behaves. Each app brings its own look in source/<app>/theme.css,
   which the build adds after this file: its colours, its typeface for the
   headings and its picture at the top of the page. The defaults here are a
   dark canvas with white type, as ezomanager.com has, and Luniphase keeps
   them; a site on a light canvas sets the variables below and says so with
   "colorScheme": "light" in its site.json.

   The pages come in thirty-four languages, Arabic among them, so the layout
   uses the logical properties (inline start and end rather than left and
   right) wherever a side matters, and a right-to-left page mirrors itself.
   ========================================================================== */

:root{
  --bg:          #000000;
  --bg-raise:    #0a0a0a;
  --ink:         #ffffff;
  --muted:       rgba(255,255,255,.66);
  --faint:       rgba(255,255,255,.46);
  --ghost:       rgba(255,255,255,.42);
  --line:        rgba(255,255,255,.11);
  --line-soft:   rgba(255,255,255,.06);
  --panel:       rgba(255,255,255,.03);

  /* the accent, and the same colour as numbers for the translucent tints */
  --accent:      #ffd60a;
  --accent-rgb:  255,214,10;
  --on-accent:   #000000;
  --accent-text: var(--accent);   /* an accent that is also legible as small text */

  /* what the surfaces are tinted with: white on a dark canvas, ink on a light one */
  --tint-rgb:    255,255,255;
  --warn:        #ffb4a8;

  --r:       18px;
  --wrap:    1160px;
  --gutter:  clamp(16px,4vw,40px);
  --badge-h: 46px;
  --ease:    cubic-bezier(.22,.61,.36,1);

  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Noto Sans", "Helvetica Neue", Arial, sans-serif,
          "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --tight: -.03em;   /* headings; set to 0 for the scripts that must not be spaced */
  --display: var(--font);   /* the headings' typeface; a theme may give them their own */
}

/* ---------- reset ---------- */

*,*::before,*::after{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  scroll-padding-top:86px;
  scrollbar-gutter:stable;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

img,svg,picture{ max-width:100%; }
img{ height:auto; }

h1,h2,h3,h4{ margin:0; font-weight:700; letter-spacing:var(--tight); line-height:1.08; }
h1,h2,h3{ font-family:var(--display); }
p{ margin:0; }
a{ color:inherit; }
ul,ol{ margin:0; padding:0; }

::selection{ background:var(--accent); color:var(--on-accent); }

:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:8px;
}

.sprite{ position:absolute; width:0; height:0; overflow:hidden; }

.wrap{
  width:min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin-inline:auto;
}

/* the first stop for a keyboard, out of sight until it is reached */
.skip{
  position:absolute; inset-inline-start:12px; top:-60px; z-index:300;
  padding:10px 16px;
  border-radius:10px;
  background:var(--accent); color:var(--on-accent);
  font-weight:600; text-decoration:none;
}
.skip:focus{ top:12px; }


/* ---------- scripts that need their own type settings ---------- */

/* Arabic letters join, and the Indian scripts stack their vowel signs, so
   neither may be spaced out; capitals mean nothing to them either. They also
   need taller lines than the tight Latin headings give. */
:lang(ar), :lang(hi), :lang(bn), :lang(ta){ --tight:0; }
:lang(ar) *, :lang(hi) *, :lang(bn) *, :lang(ta) *{ letter-spacing:0 !important; }
:lang(ar) h1, :lang(hi) h1, :lang(bn) h1, :lang(ta) h1,
:lang(ar) h2, :lang(hi) h2, :lang(bn) h2, :lang(ta) h2,
:lang(ar) h3, :lang(hi) h3, :lang(bn) h3, :lang(ta) h3{ line-height:1.35; }
:lang(ar) body, :lang(hi) body, :lang(bn) body, :lang(ta) body{ line-height:1.75; }
:lang(ar){ --font: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, var(--font-base, sans-serif), system-ui; }
:lang(ja){ --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", "Meiryo", system-ui, sans-serif; }
:lang(ko){ --font: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
:lang(zh-Hans){ --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:lang(ja) h1, :lang(ko) h1, :lang(zh-Hans) h1,
:lang(ja) h2, :lang(ko) h2, :lang(zh-Hans) h2{ line-height:1.25; letter-spacing:0; }
/* Japanese breaks between phrases rather than inside a word, so "タットヴァ"
   is never split; Korean breaks at its spaces, as Korean is read; and no line
   of the three starts with a small kana or closing punctuation. */
:lang(ja), :lang(ko), :lang(zh-Hans){ line-break:strict; }
/* A theme's typeface for the headings is chosen for the Latin, Greek and
   Cyrillic letters. The scripts with fonts of their own keep them, and so
   does Vietnamese, whose stacked accents a typeface without them would take
   letter by letter from another. */
:lang(ar), :lang(hi), :lang(bn), :lang(ta), :lang(ja), :lang(ko), :lang(zh-Hans), :lang(vi){ --display: var(--font) !important; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .lede, :lang(ja) .section-lede,
:lang(ja) .eyebrow, :lang(ja) .lang-chip, :lang(ja) .hero-note,
:lang(ja) summary, :lang(ja) figcaption{ word-break:auto-phrase; }
:lang(ko){ word-break:keep-all; overflow-wrap:anywhere; }
/* Tamil words are long and the headings would break mid-word at display size */
:lang(ta) .hero h1{ font-size:clamp(2rem,5vw,3.4rem); }
:lang(ta) .band h2{ font-size:clamp(1.6rem,3.4vw,2.5rem); }


/* ---------- symbols ---------- */

.ico{
  width:1em; height:1em;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  vertical-align:-.15em;
}
.ico-md{ font-size:1.5rem;  stroke-width:1.6; }
.ico-lg{ font-size:2rem;    stroke-width:1.5; }
.ico-xl{ font-size:2.9rem;  stroke-width:1.3; }

/* the arrows point the way the page reads */
[dir=rtl] .flip-rtl{ transform:scaleX(-1); }


/* ---------- header ---------- */

.site-head{
  position:sticky; top:0; z-index:60;
  display:flex; align-items:center; gap:22px;
  padding:12px var(--gutter);
  background:color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
          backdrop-filter:blur(16px) saturate(150%);
  border-bottom:1px solid var(--line-soft);
}

.brand{
  display:inline-flex; align-items:center; gap:11px;
  flex:none;
  font-weight:700; font-size:1.04rem; letter-spacing:-.02em;
  text-decoration:none;
}
.brand img{ display:block; border-radius:9px; }

.site-nav{
  display:flex; flex-wrap:nowrap; gap:22px;
  margin-inline-start:auto; min-width:0;
  font-size:.9rem;
}
.site-nav a{
  color:var(--muted);
  flex:none;
  text-decoration:none;
  white-space:nowrap;
  transition:color .25s var(--ease);
}
.site-nav a:hover{ color:var(--accent-text); }

.nav-anchor{ position:fixed; top:0; left:0; width:0; height:0; }

.nav-btn{
  display:none;
  flex:none;
  align-items:center; justify-content:center;
  width:40px; height:40px;
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--muted);
  font-size:1.15rem;
  text-decoration:none;
  transition:color .25s var(--ease), border-color .25s var(--ease);
}
.nav-btn:hover,
.nav-btn:focus-visible{ color:var(--accent-text); border-color:rgba(var(--accent-rgb),.42); }

.btn-mini{
  flex:none;
  padding:9px 18px;
  border-radius:999px;
  background:var(--accent);
  color:var(--on-accent);
  font-size:.85rem; font-weight:650;
  text-decoration:none;
  white-space:nowrap;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-mini:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 26px rgba(var(--accent-rgb),.28);
}


/* ---------- language picker ---------- */

.lang-picker{
  position:relative;
  display:inline-flex; align-items:center; gap:8px;
  padding-inline:12px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  transition:border-color .25s var(--ease), color .25s var(--ease);
}
.lang-picker:hover,
.lang-picker:focus-within{ border-color:rgba(var(--accent-rgb),.42); color:var(--accent-text); }
.lang-picker .ico{ font-size:1.02rem; pointer-events:none; }

.lang-picker select{
  appearance:none; -webkit-appearance:none;
  padding-block:8px;
  padding-inline:0 22px;
  border:0;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:.86rem;
  line-height:1.2;
  cursor:pointer;
  outline:none;
}
.lang-picker::after{
  content:"";
  position:absolute; inset-inline-end:13px; top:50%;
  width:7px; height:7px;
  margin-top:-5px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);
  pointer-events:none;
}
.lang-picker select option{ background:var(--option-bg, #0b0b0b); color:var(--option-ink, #fff); }


/* ---------- hero ---------- */

.hero{
  position:relative;
  overflow:hidden;
  padding:clamp(56px,8vw,104px) 0 0;
  isolation:isolate;
}
/* the glow of the accent at the top of the page */
.hero::before{
  content:"";
  position:absolute; inset:-30% -10% auto; height:90%;
  background:radial-gradient(56% 100% at 50% 0, rgba(var(--accent-rgb),.16), transparent 70%);
  pointer-events:none;
  z-index:-1;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:clamp(24px,4vw,64px);
  align-items:center;
}

.eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  padding:7px 16px;
  padding-inline-start:13px;
  border:1px solid rgba(var(--accent-rgb),.32);
  border-radius:999px;
  background:rgba(var(--accent-rgb),.06);
  color:var(--accent-text);
  font-size:.78rem; font-weight:600;
  letter-spacing:.09em; text-transform:uppercase;
}
.eyebrow .ico{ font-size:.95rem; }

.hero h1{
  margin-top:24px;
  font-size:clamp(2.5rem,5.6vw,4.6rem);
  line-height:1.02;
}
.hero h1 span,
.hero h1 em{ display:block; }
.hero h1 em{
  width:fit-content;
  font-style:normal;
  color:var(--accent);
  text-shadow:0 0 70px rgba(var(--accent-rgb),.38);
}

.lede{
  max-width:600px;
  margin-top:24px;
  color:var(--muted);
  font-size:clamp(1.02rem,1.45vw,1.14rem);
  line-height:1.7;
}
.lede + .lede{ margin-top:12px; }

.hero .store-row{ justify-content:flex-start; margin-top:34px; }

.hero-note{
  margin-top:16px;
  color:var(--faint);
  font-size:.9rem;
}

/* the language of the page, said in it */
.lang-chip{
  display:inline-flex; align-items:center; gap:10px;
  margin-top:22px;
  padding:9px 18px;
  padding-inline-start:12px;
  border:1px solid rgba(var(--accent-rgb),.34);
  border-radius:24px;          /* a pill on one line, a soft card on two */
  text-align:start;
  text-wrap:balance;
  background:linear-gradient(90deg, rgba(var(--accent-rgb),.12), rgba(var(--accent-rgb),.03));
  color:var(--ink);
  font-size:.92rem; font-weight:550;
  text-decoration:none;
  transition:border-color .25s var(--ease), background .25s var(--ease);
}
.lang-chip:hover{ border-color:rgba(var(--accent-rgb),.6); }
.lang-chip .tick{
  display:grid; place-items:center;
  width:24px; height:24px;
  border-radius:50%;
  background:var(--accent);
  color:var(--on-accent);
  font-size:.85rem;
}
.lang-chip .tick .ico{ stroke-width:2.6; }

/* the phone, and the clock each app draws around it. The dial is sized
   once, as --dial, and the phone takes a share of it, so the ring always
   shows above and below the phone whatever the width of the window. The
   dial is often wider than its column, so it is centred by its own size:
   centred by auto margins it would stick to the column's start instead. */
.hero-visual{
  --dial: clamp(430px, 44vw, 640px);
  position:relative;
  display:grid; place-items:center;
  height:var(--dial);
}
.ornament{
  position:absolute;
  left:calc(50% - var(--dial) / 2);
  top:calc(50% - var(--dial) / 2);
  width:var(--dial);
  height:var(--dial);
  z-index:1;
  pointer-events:none;
}
.ornament svg{ display:block; width:100%; height:100%; overflow:visible; }
.hero-visual .phone{
  position:relative; z-index:2;
  width:calc(var(--dial) * .3);
  padding:calc(var(--dial) * .011);
  border-radius:calc(var(--dial) * .052);
}
.hero-visual .phone img,
.hero-visual .phone picture{ border-radius:calc(var(--dial) * .042); }

.phone{
  padding:9px;
  border-radius:40px;
  background:linear-gradient(150deg,#2b2b2e,#0c0c0e 60%,#1c1c1f);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.13),
    0 0 0 1px rgba(0,0,0,.7),
    var(--phone-drop, 0 40px 90px -16px rgba(0,0,0,.85)),
    var(--phone-glow, 0 0 80px -20px rgba(var(--accent-rgb),.35));
}
.phone img,
.phone picture{ display:block; width:100%; border-radius:31px; }
.phone .zoom{ border-radius:inherit; }

/* numbers under the hero */
.stats{
  position:relative; z-index:2;
  margin-top:clamp(48px,7vw,88px);
  list-style:none;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--line);
}
.stats li{
  padding:24px 16px 26px;
  border-inline-end:1px solid var(--line);
  text-align:center;
}
.stats li:last-child{ border-inline-end:0; }
.stats b{
  display:block;
  font-size:clamp(1.7rem,3.4vw,2.4rem);
  font-weight:700;
  letter-spacing:-.035em;
  line-height:1.1;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
}
.stats span{
  display:block;
  margin-top:6px;
  font-size:.84rem;
  color:var(--faint);
  line-height:1.4;
}


/* ---------- display text wraps evenly ---------- */

h1, .band h2, .lede, .section-lede, .eyebrow, .faq-item summary, .stats span, .hero-note{ text-wrap:balance; }
.card p, .faq-ans p, .note p, .tier li, .step p, .split-text p, .spot p{ text-wrap:pretty; }


/* ---------- sections ---------- */

.band{
  position:relative;
  padding:clamp(64px,8.5vw,120px) 0;
}
.band-alt{
  background:linear-gradient(180deg, rgba(var(--tint-rgb),.025), transparent 60%);
}

.kicker,
.band .kicker{
  color:var(--accent-text);
  font-size:.78rem; font-weight:650;
  letter-spacing:.14em; text-transform:uppercase;
}

.band h2{
  margin-top:14px;
  font-size:clamp(1.9rem,4vw,3rem);
}

.section-lede{
  max-width:660px;
  margin-top:18px;
  color:var(--muted);
  font-size:1.04rem;
  line-height:1.7;
}

.center{ text-align:center; }
.center .section-lede{ margin-inline:auto; }

/* a quiet wave across the top of a band */
.wave-rule{
  position:absolute; top:0; left:0; right:0;
  height:60px;
  overflow:hidden;
  pointer-events:none;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 18%,#000 82%,transparent);
          mask-image:linear-gradient(to right,transparent,#000 18%,#000 82%,transparent);
}
.wave-rule svg{ width:100%; height:100%; display:block; }
.w path{
  fill:none;
  stroke:var(--accent);
  stroke-width:1.4;
  vector-effect:non-scaling-stroke;
}
@keyframes drift{ to{ transform:translateX(-1200px); } }
.wave-rule .w{ opacity:.2; animation:drift 26s linear infinite; }


/* ---------- tags: what is free and what comes with a subscription ---------- */

.tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.tag{
  display:inline-flex; align-items:center; gap:6px;
  padding:3px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--faint);
  font-size:.72rem; font-weight:600;
  letter-spacing:.03em;
  white-space:nowrap;
}
.tag-free{
  border-color:rgba(var(--accent-rgb),.45);
  color:var(--accent-text);
  background:rgba(var(--accent-rgb),.07);
}
.tag .ico{ font-size:.85rem; }


/* ---------- steps: how it works, in three ---------- */

.steps{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:46px;
  counter-reset:step;
}
.step{
  position:relative;
  padding:26px 24px 28px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--panel);
}
.step-n{
  display:grid; place-items:center;
  width:36px; height:36px;
  border:1px solid rgba(var(--accent-rgb),.45);
  border-radius:50%;
  color:var(--accent-text);
  font-size:.9rem; font-weight:700;
}
.step h3{ margin:16px 0 8px; font-size:1.08rem; letter-spacing:-.02em; }
.step p{ color:var(--muted); font-size:.95rem; line-height:1.62; }


/* ---------- feature cards ---------- */

.grid-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:14px;
  margin-top:48px;
  list-style:none;
}

.card{
  position:relative;
  padding:26px 24px 26px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--panel);
  overflow:hidden;
  transition:border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}
.card::after{
  content:"";
  position:absolute; inset-inline-start:-30%; bottom:-45%;
  width:210px; height:210px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(var(--accent-rgb),.13), transparent 70%);
  opacity:0;
  transition:opacity .45s var(--ease);
  pointer-events:none;
}
.card:hover{
  transform:translateY(-3px);
  border-color:rgba(var(--accent-rgb),.34);
  background:rgba(var(--accent-rgb),.03);
}
.card:hover::after{ opacity:1; }
.card .ico-lg{ color:var(--accent-text); }
.card h3{ margin:16px 0 8px; font-size:1.07rem; letter-spacing:-.02em; line-height:1.3; }
.card p{ color:var(--muted); font-size:.93rem; line-height:1.62; }
.grid-3{ grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); }
.card-accent{
  border-color:rgba(var(--accent-rgb),.34);
  background:linear-gradient(160deg, rgba(var(--accent-rgb),.08), rgba(var(--accent-rgb),.015) 60%);
}


/* ---------- a spotlight: words beside two phones ---------- */

.split{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:clamp(34px,5vw,76px);
  align-items:center;
}
.split-rev .split-shots{ order:-1; }

.split-text p{ margin-top:16px; color:var(--muted); font-size:1rem; line-height:1.72; }
.split-text .section-lede{ margin-top:18px; }

.points{
  list-style:none;
  display:grid;
  gap:12px;
  margin-top:26px;
}
.points li{
  display:flex; align-items:flex-start; gap:12px;
  color:var(--muted);
  font-size:.97rem; line-height:1.6;
}
.points .ico{ margin-top:.2em; color:var(--accent-text); font-size:1.05rem; }

.split-shots{
  position:relative;
  width:100%;
  max-width:520px;
  margin-inline:auto;
  aspect-ratio:1 / 1.08;
}
.split-shots::before{
  content:"";
  position:absolute; inset:8% 6%;
  background:radial-gradient(circle at 50% 45%, rgba(var(--accent-rgb),.18), transparent 66%);
  filter:blur(22px);
}
.split-shots .phone{
  position:absolute;
  width:47%;
  padding:7px;
  border-radius:32px;
}
.split-shots .phone img,
.split-shots .phone picture{ border-radius:25px; }
.split-shots .shot-back{
  inset-inline-end:0; top:0;
  rotate:6deg;
  opacity:.9;
}
.split-shots .shot-front{
  inset-inline-start:0; bottom:0;
  z-index:2;
  rotate:-5deg;
}
.split-shots .one{
  inset-inline-start:25%; top:0;
  width:52%;
}

.callout{
  display:flex; align-items:center; gap:14px;
  margin-top:28px;
  padding:15px 20px;
  border:1px solid rgba(var(--accent-rgb),.32);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(var(--accent-rgb),.09), rgba(var(--accent-rgb),.03));
  color:var(--ink);
  font-size:.98rem; font-weight:500;
  line-height:1.55;
  text-wrap:pretty;
}
.callout .ico{ color:var(--accent-text); font-size:1.3rem; }


/* ---------- spotlight lists: the tattvas, the organs, the calendars ---------- */

.spot-list{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
  gap:12px;
  margin-top:44px;
}
.spot{
  display:flex; align-items:flex-start; gap:16px;
  padding:20px 20px 21px;
  border:1px solid var(--line-soft);
  border-radius:16px;
  background:rgba(var(--tint-rgb),.025);
  transition:border-color .3s var(--ease), background .3s var(--ease);
}
.spot:hover{ border-color:rgba(var(--accent-rgb),.3); background:rgba(var(--accent-rgb),.03); }
@media (min-width:1080px){
  .spot-list.four{ grid-template-columns:repeat(4,1fr); }
  .spot-list.three{ grid-template-columns:repeat(3,1fr); }
}
/* five things in a row, each standing upright, once there is room for it */
@media (min-width:1080px){
  .spot-list.five{ grid-template-columns:repeat(5,1fr); }
  .spot-list.five .spot{ flex-direction:column; gap:14px; padding:22px 20px 22px; }
}
.spot-mark{
  flex:none;
  display:grid; place-items:center;
  width:52px; height:52px;
  border-radius:50%;
  border:1px solid var(--line);
  background:rgba(var(--tint-rgb),.03);
}
.spot-mark svg{ width:28px; height:28px; display:block; }
.spot-body{ display:grid; gap:4px; min-width:0; }
.spot h3{ font-size:1.08rem; letter-spacing:-.015em; line-height:1.3; }
.spot p{ color:var(--muted); font-size:.92rem; line-height:1.55; }
.spot .warn{
  display:inline-flex; align-items:center; gap:7px;
  margin-top:4px;
  color:var(--warn);
  font-size:.86rem;
}
.spot .warn .ico{ font-size:.95rem; }
.spot .meta{ color:var(--faint); font-size:.82rem; }


/* ---------- gallery ---------- */

.gallery{
  width:min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin:48px auto 0;
  padding-bottom:14px;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
  direction:ltr;   /* the screenshots are English, in any language */
  --gap:20px;
  --fade:clamp(26px,4vw,52px);
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
          mask-image:linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
}
.gallery::-webkit-scrollbar{ display:none; }
.gallery .track{ display:flex; gap:var(--gap); width:max-content; }
.is-rolling{ scroll-behavior:auto; }

.gallery figure{
  flex:0 0 220px;
  margin:0;
  display:flex; flex-direction:column;
}
.gallery img{
  display:block;
  width:100%; height:auto;
  border:1px solid rgba(var(--tint-rgb),.12);
  border-radius:24px;
  box-shadow:var(--shot-shadow, 0 26px 60px rgba(0,0,0,.7));
  transition:transform .4s var(--ease), border-color .4s var(--ease);
}
.gallery figure:hover img{
  transform:translateY(-5px);
  border-color:rgba(var(--accent-rgb),.38);
}
.gallery figcaption{
  margin-top:13px;
  color:var(--faint);
  font-size:.86rem;
  line-height:1.45;
  text-align:center;
  unicode-bidi:plaintext;
}

.zoom{ display:block; cursor:zoom-in; }

.strip-wrap{ position:relative; }
.gallery-wrap{
  width:min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin:48px auto 0;
}
.gallery-wrap > .gallery{ width:100%; margin:0; }

.strip-arrow{
  position:absolute; top:42%; z-index:3;
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; margin-top:-22px;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:color-mix(in srgb, var(--bg) 78%, transparent);
  color:var(--ink);
  font-size:1.05rem;
  cursor:pointer;
  opacity:0; pointer-events:none;
  transition:opacity .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.strip-arrow:hover,
.strip-arrow:focus-visible{ color:var(--accent-text); border-color:rgba(var(--accent-rgb),.5); }
.strip-prev{ left:8px; }
.strip-next{ right:8px; }
.strip-wrap:focus-within .strip-arrow{ opacity:1; pointer-events:auto; }
@media (hover:hover){
  .strip-wrap:hover .strip-arrow{ opacity:1; pointer-events:auto; }
}

.gallery-foot{
  width:min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin:18px auto 0;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:10px 24px;
}
.gallery-hint{
  color:var(--ghost);
  font-size:.8rem;
  letter-spacing:.04em;
}
/* the screenshots are English: this says so, and names the page's language */
.lang-note{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  color:var(--muted);
  font-size:.86rem; line-height:1.5;
}
.lang-note .ico{ color:var(--accent-text); font-size:1.05rem; }


/* ---------- price ---------- */

.tiers{
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:16px;
  margin-top:48px;
  align-items:start;
}
.tier{
  padding:30px 28px 32px;
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--panel);
}
.tier-sub{
  border-color:rgba(var(--accent-rgb),.32);
  background:
    radial-gradient(120% 90% at 50% 0, rgba(var(--accent-rgb),.10), transparent 62%),
    rgba(var(--tint-rgb),.02);
}
.tier-head{ display:flex; align-items:center; gap:12px; }
.tier-head .ico{ font-size:1.5rem; color:var(--accent-text); }
.tier h3{ font-size:1.3rem; letter-spacing:-.02em; }
.tier p.tier-lede{ margin-top:10px; color:var(--muted); font-size:.95rem; line-height:1.6; }
.tier ul{
  list-style:none;
  display:grid;
  gap:11px;
  margin-top:22px;
}
.tier li{
  display:flex; align-items:flex-start; gap:11px;
  color:var(--muted);
  font-size:.95rem; line-height:1.55;
}
.tier li .ico{ margin-top:.22em; font-size:1rem; color:var(--accent-text); stroke-width:2.2; }
.tier-sub ul{ grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); column-gap:24px; }

.terms{
  margin-top:16px;
  padding:22px 26px;
  border:1px solid var(--line-soft);
  border-radius:18px;
  color:var(--faint);
  font-size:.88rem; line-height:1.7;
}
.terms b{ display:block; margin-bottom:4px; color:var(--muted); font-size:.9rem; }

.get{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:22px 36px;
  margin-top:40px;
  padding:30px clamp(22px,4vw,48px);
  border:1px solid rgba(var(--accent-rgb),.3);
  border-radius:26px;
  background:
    radial-gradient(100% 140% at 0 50%, rgba(var(--accent-rgb),.11), transparent 60%),
    rgba(var(--tint-rgb),.02);
}
.get-copy{ flex:1 1 300px; }
.get-copy h3{ font-size:1.45rem; letter-spacing:-.02em; }
.get-copy p{ margin-top:6px; color:var(--muted); font-size:.98rem; }
.get .store-row{ margin-top:16px; justify-content:flex-start; }
.qr-box{
  display:flex; align-items:center; gap:18px;
  flex:none;
}
.qr-code{
  width:128px; height:128px;
  display:block;
  border-radius:12px;
}
.qr-box p{
  max-width:18ch;
  color:var(--faint);
  font-size:.86rem; line-height:1.5;
}


/* ---------- store badge ---------- */

.store-row{
  display:flex; flex-wrap:wrap;
  align-items:center; justify-content:center;
  gap:10px 14px;
}
.badge{
  display:inline-flex; align-items:center;
  /* Google asks for clear space a quarter of the badge's height all round;
     the picture is cropped to the badge itself, so the space is added here */
  padding:calc(var(--badge-h) * .14) 0;
  border-radius:12px;
  transition:transform .3s var(--ease), filter .3s var(--ease);
}
.badge img{ display:block; width:auto; height:var(--badge-h); }
.badge:hover{
  transform:translateY(-2px);
  filter:drop-shadow(0 10px 26px rgba(var(--accent-rgb),.25));
}


/* ---------- privacy ---------- */

.grid-adv{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
  gap:12px;
  margin-top:48px;
  list-style:none;
}
.adv{
  display:grid;
  align-content:start;
  gap:7px;
  padding:24px 22px 26px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel);
  transition:border-color .35s var(--ease), background .35s var(--ease);
}
.adv:hover{ border-color:rgba(var(--accent-rgb),.3); background:rgba(var(--accent-rgb),.03); }
.adv .ico-md{ color:var(--accent-text); margin-bottom:8px; }
.adv b{ font-size:1rem; font-weight:650; letter-spacing:-.015em; }
.adv span{ color:var(--muted); font-size:.9rem; line-height:1.58; }
.adv-wide{ grid-column:1 / -1; }
.adv-wide span{ max-width:80ch; }


/* ---------- languages ---------- */

.lang-band{ overflow:hidden; }
.lang-band::before{
  content:"";
  position:absolute; inset:auto -10% -40%; height:80%;
  background:radial-gradient(50% 60% at 50% 100%, rgba(var(--accent-rgb),.10), transparent 70%);
  pointer-events:none;
}
.lang-here{
  display:inline-flex; align-items:center; gap:14px;
  margin-top:30px;
  padding:14px 26px;
  padding-inline-start:16px;
  border:1px solid rgba(var(--accent-rgb),.5);
  border-radius:999px;
  background:linear-gradient(90deg, rgba(var(--accent-rgb),.16), rgba(var(--accent-rgb),.04));
  font-size:clamp(1.3rem,2.6vw,1.75rem);
  font-weight:700;
  letter-spacing:-.02em;
}
.lang-here .tick{
  display:grid; place-items:center;
  width:38px; height:38px;
  border-radius:50%;
  background:var(--accent);
  color:var(--on-accent);
  font-size:1.2rem;
}
.lang-here .tick .ico{ stroke-width:2.6; }

.lang-list{
  list-style:none;
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:8px;
  max-width:900px;
  margin:34px auto 0;
}
.lang-list a{
  display:inline-block;
  padding:6px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--faint);
  font-size:.84rem;
  text-decoration:none;
  transition:border-color .25s var(--ease), color .25s var(--ease);
}
.lang-list a:hover{ color:var(--accent-text); border-color:rgba(var(--accent-rgb),.42); }
.lang-list a.is-active{
  color:var(--on-accent);
  background:var(--accent);
  border-color:var(--accent);
  font-weight:650;
}


/* ---------- FAQ ---------- */

.faq{
  max-width:780px;
  margin:40px auto 0;
}
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item:first-child{ border-top:1px solid var(--line); }
.faq-item summary{
  display:flex; align-items:flex-start; gap:13px;
  padding:17px 2px;
  color:var(--ink);
  font-size:1.02rem; font-weight:550;
  line-height:1.5;
  cursor:pointer;
  list-style:none;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::before{
  content:"";
  flex:none;
  width:9px; height:9px;
  margin-top:.45em;
  border-right:2px solid var(--accent);
  border-bottom:2px solid var(--accent);
  transform:rotate(-45deg);
  transition:transform .2s ease;
}
[dir=rtl] .faq-item summary::before{ transform:rotate(135deg); }
.faq-item[open] summary::before{ transform:rotate(45deg); }
.faq-item summary:hover{ color:var(--accent-text); }
.faq-ans{
  padding-block:0 18px;
  padding-inline:24px 2px;
  color:var(--muted);
  font-size:.96rem;
  line-height:1.7;
}
.faq-ans p + p{ margin-top:10px; }


/* ---------- the note at the end ---------- */

.note{
  display:flex; align-items:flex-start; gap:20px;
  max-width:880px;
  margin-inline:auto;
  padding:26px clamp(20px,3vw,34px);
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--panel);
}
.note .ico-md{ color:var(--accent-text); margin-top:2px; }
.note b{ display:block; margin-bottom:5px; color:var(--ink); }
.note p{ color:var(--muted); font-size:.96rem; line-height:1.7; }
.band-note{ padding-top:0; }


/* ---------- footer ---------- */

.site-foot{
  position:relative;
  padding-top:clamp(56px,7vw,90px);
  border-top:1px solid var(--line-soft);
}
.foot-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:40px 36px;
  padding-bottom:48px;
}
.foot-brand .brand img{ border-radius:10px; }
.foot-brand p{
  max-width:38ch;
  margin-top:16px;
  color:var(--faint);
  font-size:.9rem;
  line-height:1.6;
}
.foot-brand .store-row{ --badge-h:40px; justify-content:flex-start; margin-top:18px; }
.foot-col h4{
  font-size:.76rem; font-weight:650;
  letter-spacing:.13em; text-transform:uppercase;
  color:var(--ghost);
}
.foot-col ul{
  list-style:none;
  margin-top:18px;
  display:grid;
  gap:11px;
}
.foot-col a{
  color:var(--muted);
  font-size:.92rem;
  text-decoration:none;
  transition:color .25s var(--ease);
}
.foot-col a:hover{ color:var(--accent-text); }
.foot-col .ext::after{
  content:"↗";
  display:inline-block;
  margin-inline-start:.3em;
  font-size:.8em;
  opacity:.6;
}
[dir=rtl] .foot-col .ext::after{ transform:scaleX(-1); }

.foot-legal{
  display:grid;
  gap:12px;
  padding:24px 0 42px;
  border-top:1px solid var(--line-soft);
}
.foot-legal p{ color:var(--ghost); font-size:.8rem; }
.legal-tm{ max-width:90ch; font-size:.74rem !important; line-height:1.6; color:var(--ghost) !important; opacity:.8; }


/* ---------- gallery overlay ---------- */

/* Which shot is open lives in the address bar, so the overlay needs no
   script; the script only adds the keys and the swipe. */
.lb{ display:none; position:fixed; inset:0; z-index:200; direction:ltr; }
.lb:target{ display:flex; align-items:center; justify-content:center; }
.lb-back{ position:absolute; inset:0; background:rgba(0,0,0,.94); }
.lb-fig{
  position:relative; z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:14px;
  margin:0;
  max-width:92vw;
}
.lb-fig img{
  display:block;
  width:auto; height:auto;
  max-width:92vw;
  max-height:84vh;
  max-height:84dvh;
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  box-shadow:0 40px 90px rgba(0,0,0,.8);
}
.lb-fig figcaption{
  display:flex; align-items:baseline; justify-content:center;
  flex-wrap:wrap; gap:6px 12px;
  max-width:min(640px,88vw);
  color:var(--muted);
  font-size:.94rem; line-height:1.5;
  text-align:center;
  unicode-bidi:plaintext;
}
.lb-n{ color:var(--ghost); font-size:.8rem; font-variant-numeric:tabular-nums; }
.lb-btn{
  position:absolute; z-index:3;
  display:inline-flex; align-items:center; justify-content:center;
  width:46px; height:46px;
  border:1px solid var(--line);
  border-radius:50%;
  background:rgba(0,0,0,.55);
  color:var(--ink);
  font-size:1.1rem;
  text-decoration:none;
  transition:color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.lb-btn:hover,
.lb-btn:focus-visible{ color:var(--accent-text); border-color:rgba(var(--accent-rgb),.5); background:rgba(0,0,0,.85); }
.lb-prev{ left:clamp(8px,3vw,34px);  top:50%; margin-top:-23px; }
.lb-next{ right:clamp(8px,3vw,34px); top:50%; margin-top:-23px; }
.lb-x{ top:clamp(10px,2.4vw,26px); right:clamp(8px,3vw,34px); }
html:has(.lb:target){ overflow:hidden; }


/* ---------- the header when the links do not fit ---------- */

.site-head.is-tight .nav-btn{ display:inline-flex; }
.site-head.is-tight .nav-close{ display:none; }
#menu:target ~ .site-head.is-tight .nav-open{ display:none; }
#menu:target ~ .site-head.is-tight .nav-close{ display:inline-flex; }

.site-head.is-tight .site-nav{
  display:none;
  position:absolute; top:100%; left:0; right:0;
  z-index:2;
  flex-direction:column; flex-wrap:nowrap; gap:0;
  margin:0;
  padding:2px var(--gutter) 12px;
  max-height:calc(100vh - 66px);
  max-height:calc(100dvh - 66px);
  overflow-y:auto;
  overscroll-behavior:contain;
  background:var(--bg);
  border-bottom:1px solid var(--line);
  font-size:1rem;
}
#menu:target ~ .site-head.is-tight .site-nav{ display:flex; }
.site-head.is-tight .site-nav a{ padding:14px 2px; border-top:1px solid var(--line-soft); }
.site-head.is-tight .site-nav a:first-child{ border-top:0; }
.site-head.is-tight .lang-picker{ margin-inline-start:auto; }

.nav-backdrop{
  display:none;
  position:absolute; top:100%; left:0; right:0;
  z-index:1;
  height:100vh; height:100dvh;
  background:rgba(0,0,0,.6);
}
#menu:target ~ .site-head .nav-backdrop{ display:block; }


/* ---------- narrower screens ---------- */

@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-copy{ text-align:center; }
  .hero h1 em{ margin-inline:auto; }
  .hero-copy .lede{ margin-inline:auto; }
  .hero .store-row{ justify-content:center; }
  .hero-visual{ --dial: min(600px, calc(100vw - 8px)); margin-top:20px; }

  .split{ grid-template-columns:1fr; }
  .split-shots,
  .split-rev .split-shots{ order:-1; max-width:420px; }

  .tiers{ grid-template-columns:1fr; }
  .foot-grid{ grid-template-columns:1fr 1fr; }
  .foot-brand{ grid-column:1 / -1; }
}

@media (max-width:720px){
  .steps{ grid-template-columns:1fr; }
}

@media (max-width:620px){
  :root{ --badge-h:44px; }
  .site-head{ gap:12px; }
  .site-head .brand span{ display:none; }
  .site-head .btn-mini{ display:none; }

  .hero{ padding-top:44px; }
  .hero h1{ font-size:clamp(2.2rem,10vw,3rem); }

  .stats{ grid-template-columns:1fr 1fr; }
  .stats li{ border-bottom:1px solid var(--line); }
  .stats li:nth-child(2n){ border-inline-end:0; }
  .stats li:nth-last-child(-n+2){ border-bottom:0; }

  .gallery figure{ flex-basis:190px; }
  /* on a phone the dial is narrow, so the phone in it grows and covers its
     top and bottom, leaving the sides */
  .hero-visual .phone{ width:calc(var(--dial) * .4); }
  .note{ flex-direction:column; gap:12px; }
  .foot-grid{ grid-template-columns:1fr; gap:34px; }
  .qr-box{ display:none; }   /* a code to scan means nothing on the phone itself */
  .lang-here{ font-size:1.25rem; }
}


/* ---------- motion ---------- */

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
  }
}

@media print{
  body{ background:#fff; color:#000; }
  .site-head,.ornament,.wave-rule,.lightbox,.scene,.dawn-sun,.noon-sun,.cloud,.sky-sun{ display:none; }
}


/* ==========================================================================
   EgyPlanner: ancient Egyptian time, in the light of a morning on the Nile.

   The page opens on the river: a sky that turns from lapis to gold over the
   desert cliffs, the pyramids catching the sun, date palms and green fields
   along a turquoise Nile, papyrus and blue lotus at the water's edge. The sun
   rises behind the dial, which is the app's three clocks one inside the
   other, set like enamel in gold: the year with its three seasons, the
   thirty-six decans as stars, and the twenty-four hours. Sirius stands at
   the top, where its return at dawn begins the year.

   Below, the page is papyrus cream with the colours of Egyptian jewellery:
   lapis, turquoise, gold and carnelian. A small winged sun, as on the app's
   icon, stands before the kickers; the hieroglyph for water takes the place
   of the wave; a strip of tomb ceiling, gold stars on lapis, crowns the
   screens; a wheel of the decans turns behind the decans; and a blue lotus
   and papyrus stand beside the questions.

   The colours are the app's own: its gold, lapis and paper (Palette in
   ui/theme/Theme.kt), the hours as its dial paints them (EgyColors.hour),
   turquoise for a good part of a day and carnelian for a bad one
   (EgyColors.fill), and the seasons as the decan wheel paints them, made a
   little brighter so the flood's blue shows on lapis enamel.

   The drawings are plain SVG files in source/egyplanner/art; the build puts
   each one in where this file names it (art: and the file's name, in double
   braces), and where page.html says @art.
   ========================================================================== */

:root{
  --bg:          #fbf6ea;     /* the app's paper */
  --bg-raise:    #ffffff;
  --ink:         #1b1a22;
  --muted:       rgba(27,26,34,.8);
  --faint:       rgba(27,26,34,.7);
  --ghost:       rgba(27,26,34,.66);
  --line:        rgba(27,26,34,.13);
  --line-soft:   rgba(27,26,34,.08);
  --panel:       rgba(255,255,255,.84);
  --tint-rgb:    36,50,121;
  --warn:        #a8331a;
  --option-bg:   #ffffff;
  --option-ink:  #1b1a22;

  --accent:      #e6b54a;     /* the app's gold */
  --accent-rgb:  230,181,74;
  --on-accent:   #2a1d05;
  --accent-text: #8a6512;

  --lapis:       #243279;
  --lapis-rgb:   36,50,121;
  --lapis-ink:   #2a3c9a;
  --turquoise:   #1fa79c;
  --turq-rgb:    31,167,156;
  --turq-ink:    #14705f;
  --carnelian:   #d9512c;
  --carn-rgb:    217,81,44;
  --carn-ink:    #a8331a;
  --gold:        #d9a43a;
  --gold-hi:     #f2c14e;
  --nile:        #2a8fd8;
  --enamel:      36,50,121;

  --phone-drop:  0 34px 70px -26px rgba(36,50,121,.45);
  --phone-glow:  0 0 0 0 transparent;
  --shot-shadow: 0 22px 44px -20px rgba(36,50,121,.4);

  --display: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --tight: -.01em;

  /* the seasons, as the decan wheel paints them */
  --akhet: #2f86e0;
  --peret: #2fa865;
  --shemu: #e8a72c;
  --upon:  #e2604a;
}

.s-akhet{ --c: var(--akhet); }
.s-peret{ --c: var(--peret); }
.s-shemu{ --c: var(--shemu); }
.s-upon { --c: var(--upon); }

h1, .band h2{ font-weight:700; }
.site-head{ background:color-mix(in srgb, #eaf3fd 84%, transparent); }


/* ---------- morning on the Nile ---------- */

.hero{
  --range-h: max(clamp(360px, 32vw, 500px), 31.25vw);
  background:
    radial-gradient(60% 50% at var(--light-x, 78%) 34%, rgba(255,236,190,.55), transparent 70%),
    linear-gradient(180deg, #2a5bc9 0, #3f7fdc 18%, #6aaeea 38%, #a7d6f3 56%, #d8eef6 68%, #ffe9c2 82%, #ffdca6 100%);
}
.hero::before{ display:none; }
[dir=rtl] .hero{ --light-x: 22%; }

.scene{
  position:absolute; inset:0;
  z-index:-1;
  pointer-events:none;
}
.scene .range{
  position:absolute; left:0; right:0; bottom:0;
  width:100%; height:var(--range-h);
  display:block;
}
[dir=rtl] .scene .range{ transform:scaleX(-1); }

/* a haze of light round the words, so the sky and the cliffs soften where
   the text stands and the coloured words keep their contrast */
.hero-copy{ position:relative; }
.hero-copy::before{
  content:"";
  position:absolute;
  inset-block:-24% -18%;
  inset-inline:-30% -24%;
  z-index:-1;
  background:radial-gradient(closest-side at 46% 47%, rgba(246,250,253,.93), rgba(246,250,253,.76) 50%, rgba(246,250,253,.38) 78%, rgba(246,250,253,0));
  pointer-events:none;
}

.hero h1 em{
  background:linear-gradient(100deg, #9a5a06 0%, #b8410f 46%, #2a3c9a 100%);
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
  text-shadow:none;
  filter:drop-shadow(0 0 22px rgba(255,210,120,.6));
}
.eyebrow{ background:rgba(255,255,255,.9); border-color:rgba(var(--accent-rgb),.6); }
.eyebrow .ico{ color:var(--carn-ink); }
.hero-note{ color:var(--muted); }
.lang-chip{ background:linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.68)); }


/* ---------- the sun behind the clocks ----------
   The light of the rising sun spreads from the middle of the dial over the
   sky, its rays turning as slowly as the day goes by. It stands behind the
   landscape; a softer disc of light in front of it lets the rings read. */

.sky-sun{
  position:absolute;
  z-index:-2;
  left:50%; top:50%;
  width:calc(var(--dial) * 1.9);
  aspect-ratio:1;
  translate:-50% -50%;
  border-radius:50%;
  background:radial-gradient(circle closest-side,
    #fffef6 0, rgba(255,246,212,.96) 20%, rgba(255,222,150,.66) 34%,
    rgba(255,190,96,.3) 50%, rgba(255,170,90,.12) 66%, rgba(255,170,90,0) 82%);
  pointer-events:none;
}
.sky-sun .rays{
  position:absolute; inset:0;
  border-radius:50%;
  background:repeating-conic-gradient(from 0deg, rgba(255,238,190,.55) 0 2.4deg, transparent 2.4deg 10deg);
  -webkit-mask-image:radial-gradient(circle closest-side, transparent 30%, #000 36%, rgba(0,0,0,.45) 56%, transparent 80%);
          mask-image:radial-gradient(circle closest-side, transparent 30%, #000 36%, rgba(0,0,0,.45) 56%, transparent 80%);
  animation:turn 240s linear infinite;
}
@keyframes turn{ to{ transform:rotate(360deg); } }

.hero-visual::before{
  content:"";
  position:absolute;
  width:calc(var(--dial) * 1.04);
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle closest-side,
    rgba(255,253,240,.7) 0, rgba(255,249,228,.42) 55%, rgba(255,244,214,.3) 85%, rgba(255,244,214,0) 100%);
  pointer-events:none;
}
.hero-visual .phone{
  width:calc(var(--dial) * .27);
  --phone-glow: 0 0 70px -8px rgba(255,206,110,.85);
}


/* ---------- the three clocks ----------
   Outermost, the year: 1 Thoth at the top, the three seasons of four
   months clockwise, and the five days upon the year just before the top
   again. Then the thirty-six decans, a star in the middle of each one's ten
   days. Innermost, the twenty-four hours as the app's dial paints them:
   noon at the top, sunrise on the left, the horizon across the middle. The
   year's light goes round once in three minutes, lighting each season and
   each decan's star as it passes; the sun goes round the hours in 72
   seconds, three for each hour. */

.ornament .track{ fill:none; stroke:rgba(var(--enamel),.8); }
.ornament .year .track  { stroke-width:28; }
.ornament .decans .track{ stroke-width:30; }
.ornament .hours .track { stroke-width:22; }
.ornament .rim{ fill:none; stroke:rgba(217,164,58,.9); stroke-width:1.4; }
.ornament .month{ stroke:rgba(255,236,190,.75); stroke-width:1.6; }
.ornament .horizon{ stroke:rgba(27,26,34,.3); stroke-width:1.4; stroke-dasharray:4 6; }

.ornament .arc{ fill:none; stroke:var(--c); opacity:.85; }
.ornament .year .arc{ stroke-width:20; animation:lit-season 180s linear infinite; }
.ornament .year .arc.s-upon{ animation-name:lit-upon; }
.ornament .hours .arc{ stroke-width:15; stroke-linecap:round; animation:lit-hour 72s linear infinite; }
@keyframes lit-season{
  0%, 32.8%{ opacity:1; filter:drop-shadow(0 0 5px var(--c)) drop-shadow(0 0 12px color-mix(in srgb, var(--c) 70%, transparent)); }
  32.9%, 100%{ opacity:.85; filter:none; }
}
@keyframes lit-upon{
  0%, 1.36%{ opacity:1; filter:drop-shadow(0 0 5px var(--c)) drop-shadow(0 0 12px color-mix(in srgb, var(--c) 70%, transparent)); }
  1.37%, 100%{ opacity:.85; filter:none; }
}
@keyframes lit-hour{
  0%, 4.1%{ opacity:1; filter:drop-shadow(0 0 5px var(--c)) drop-shadow(0 0 11px color-mix(in srgb, var(--c) 70%, transparent)); }
  4.2%, 100%{ opacity:.85; filter:none; }
}

/* the signs of the seasons, white on their colours */
.ornament .sign{ fill:#ffffff; stroke:#ffffff; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.ornament .sign.s-akhet{ fill:none; }
.ornament .sign .stem{ fill:none; }

/* the decans' stars, gold on the enamel, each glowing while its ten days
   pass */
.ornament .dstar{
  fill:#f2c14e;
  opacity:.62;
  animation:lit-decan 180s linear infinite;
}
@keyframes lit-decan{
  0%, 2.7%{ opacity:1; fill:#fff4c2; filter:drop-shadow(0 0 4px #ffe38a) drop-shadow(0 0 10px rgba(255,214,100,.9)); }
  2.8%, 100%{ opacity:.62; fill:#f2c14e; filter:none; }
}

/* Sirius, white and glowing, where the year begins */
.ornament .sirius .halo{ fill:rgba(214,232,255,.55); filter:blur(5px); }
.ornament .sirius .rays{ stroke:rgba(255,255,255,.85); stroke-width:1.6; stroke-linecap:round; }
.ornament .sirius .body{ fill:#ffffff; filter:drop-shadow(0 0 6px #cfe4ff) drop-shadow(0 0 14px rgba(170,205,255,.95)); }
.ornament .sirius{ animation:twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle{ from{ opacity:.82; } to{ opacity:1; } }

/* the lights that go round */
.ornament .hand{
  transform-origin:320px 320px;
  animation:sweep 72s linear infinite;
}
.ornament .year .hand{ animation-duration:180s; }
.ornament .bead{
  fill:#fffdf2; stroke:var(--accent); stroke-width:2.4;
  filter:drop-shadow(0 0 6px rgba(255,214,120,.95));
}
.ornament .sun circle{ fill:#ffc23d; }
.ornament .sun path{ stroke:#f0a020; stroke-width:2.6; stroke-linecap:round; }
.ornament .sun{
  filter:drop-shadow(0 0 8px rgba(255,190,60,.9));
  animation:daylight 72s linear infinite;
}
@keyframes sweep{ to{ transform:rotate(360deg); } }
/* the sun rises on the left; it dims while it is below the horizon, the
   second half of the turn */
@keyframes daylight{
  0%, 48%{ opacity:1; }
  52%, 96%{ opacity:.4; }
  100%{ opacity:1; }
}


/* ---------- the numbers, each with the colours of its ring ---------- */

.stats{
  border:1px solid rgba(255,255,255,.9);
  border-radius:22px;
  background:rgba(255,255,255,.86);
  -webkit-backdrop-filter:blur(5px);
          backdrop-filter:blur(5px);
  box-shadow:0 22px 44px -30px rgba(36,50,121,.5), 0 0 0 1px rgba(var(--accent-rgb),.16);
}
.stats li{ border-inline-end-color:var(--line); }
.stats b{ color:var(--lapis-ink); }
.stats li:nth-child(-n+3) b::after{
  content:"";
  display:block;
  width:var(--n);
  height:8px;
  margin:10px auto 2px;
  border:2px solid var(--lapis);
  border-radius:6px;
  background:var(--legend) padding-box, var(--lapis) border-box;
}
.stats li:nth-child(1){
  --n:84px;
  --legend:linear-gradient(90deg, #f2a65a 0, #f4cc4e 25%, #e0703f 49.5%, var(--lapis) 49.5% 50.5%, #8a62b5 50.5%, #2a3a9c 75%, #4f78c4 100%);
}
.stats li:nth-child(2){
  --n:84px;
  --legend:radial-gradient(circle, #f2c14e 0 1.6px, transparent 2.2px) 0 50% / 7px 8px repeat-x, var(--lapis);
}
.stats li:nth-child(3){
  --n:72px;
  --legend:linear-gradient(90deg, var(--akhet) 0 31%, transparent 31% 33%, var(--peret) 33% 64%, transparent 64% 66%, var(--shemu) 66% 97%, transparent 97% 98%, var(--upon) 98%);
}


/* ---------- below the hero: papyrus, lapis, turquoise and gold ---------- */

.band-alt{
  background:
    radial-gradient(48% 60% at 0 18%, rgba(var(--turq-rgb),.12), transparent 70%),
    radial-gradient(42% 50% at 100% 40%, rgba(var(--accent-rgb),.16), transparent 70%),
    linear-gradient(180deg, var(--bg), #f6ecd6 140px, #fbf6ea 75%);
}
.step, .card, .tier, .adv, .note, .terms, .spot, .get, .seasons li, .hour-names li, .sky-names li{
  background:#ffffff;
  box-shadow:0 18px 40px -30px rgba(36,50,121,.45);
}
.card, .tier, .adv, .spot, .get, .step{ border-radius:20px; }
.card:hover{ background:#fffdf8; border-color:rgba(var(--accent-rgb),.55); box-shadow:0 26px 50px -30px rgba(var(--accent-rgb),.8); }
.card-accent{ background:linear-gradient(160deg, rgba(var(--accent-rgb),.18), #ffffff 62%); }
.qr-code{ box-shadow:0 0 0 1px var(--line); }
.callout{
  border-color:rgba(var(--accent-rgb),.45);
  background:linear-gradient(100deg, rgba(var(--accent-rgb),.18), rgba(var(--turq-rgb),.07) 55%, rgba(var(--lapis-rgb),.05));
}
.callout .ico{ color:var(--lapis-ink); }
.points .ico{ color:var(--turq-ink); }
.adv .ico-md{
  box-sizing:content-box;
  padding:9px;
  border-radius:50%;
  color:var(--ic);
  background:radial-gradient(circle at 32% 28%, #ffffff, var(--ic-bg) 75%);
  box-shadow:0 0 0 1px color-mix(in srgb, var(--ic) 22%, transparent), 0 8px 20px -10px color-mix(in srgb, var(--ic) 60%, transparent);
}
.grid-adv .adv:nth-child(5n+1){ --ic:#14705f; --ic-bg:#cff1ea; }
.grid-adv .adv:nth-child(5n+2){ --ic:#2a3c9a; --ic-bg:#dde3fb; }
.grid-adv .adv:nth-child(5n+3){ --ic:#a8331a; --ic-bg:#ffdccf; }
.grid-adv .adv:nth-child(5n+4){ --ic:#8a6512; --ic-bg:#fbe8b4; }
.grid-adv .adv:nth-child(5n+5){ --ic:#1e6fb8; --ic-bg:#d6eafc; }
.note{
  border-color:rgba(var(--accent-rgb),.45);
  background:linear-gradient(100deg, #fbefd2, #ffffff 60%);
}
.note .ico{ color:var(--lapis-ink); }

/* the phones stand in a glow of gold and turquoise */
.split-shots::before{ background:radial-gradient(circle at 50% 45%, rgba(255,200,100,.4), rgba(var(--turq-rgb),.12) 45%, transparent 68%); }
/* the hours: the phones in the light of the sun, its rays turning */
#hours .split-shots::before{
  inset:-6% -10%;
  background:radial-gradient(circle closest-side, rgba(255,236,170,.95), rgba(255,200,100,.5) 38%, rgba(255,170,90,.16) 66%, transparent 100%);
  filter:blur(6px);
}
#hours .split-shots::after{
  content:"";
  position:absolute; inset:-14% -18%;
  border-radius:50%;
  background:repeating-conic-gradient(from 0deg, rgba(255,190,80,.42) 0 2.6deg, transparent 2.6deg 11deg);
  -webkit-mask-image:radial-gradient(circle closest-side, transparent 24%, #000 32%, rgba(0,0,0,.4) 60%, transparent 92%);
          mask-image:radial-gradient(circle closest-side, transparent 24%, #000 32%, rgba(0,0,0,.4) 60%, transparent 92%);
  animation:turn 240s linear infinite;
  z-index:-1;
  pointer-events:none;
}
#hours .split-shots{ isolation:isolate; }
/* the light reaches past the phones, but never past the edge of the page */
#hours, #sky, #decans{ overflow:hidden; }
/* the sky: the phones in a night of their own, Sirius's blue-white light */
#sky .split-shots::before{
  inset:-8% -10%;
  border-radius:50%;
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0 1.5px, transparent 2px) 0 0 / 46px 52px,
    radial-gradient(circle at 70% 60%, #fff4c2 0 1.2px, transparent 1.8px) 0 0 / 38px 44px,
    radial-gradient(circle closest-side, rgba(42,60,154,.55), rgba(42,91,201,.3) 55%, transparent 100%);
  filter:none;
}
/* the screens, under a strip of tomb ceiling */
#screens{
  border-top:0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 30' width='44' height='30'%3E%3Crect width='44' height='30' fill='%2324357f'/%3E%3Cpath d='M22 5.2L24 11.6 30.6 11.6 25.3 15.5 27.3 21.9 22 18 16.7 21.9 18.7 15.5 13.4 11.6 20 11.6Z' fill='%23f2c14e'/%3E%3C/svg%3E") 0 0 / 44px 30px repeat-x,
    radial-gradient(70% 46% at 50% 64%, rgba(255,201,60,.18), transparent 70%),
    radial-gradient(40% 40% at 18% 70%, rgba(var(--turq-rgb),.1), transparent 70%),
    radial-gradient(40% 40% at 84% 60%, rgba(var(--lapis-rgb),.08), transparent 70%),
    var(--bg);
  padding-top:calc(clamp(64px,8.5vw,120px) + 30px);
}

/* the kickers start with a small winged sun */
.kicker::before{
  content:"";
  display:inline-block;
  width:2.3em; height:.9em;
  margin-inline-end:.55em;
  vertical-align:-.12em;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 24'%3E%3Cpath d='M25 8C17 4.6 9 3.6 1.5 5.6C7.6 7.2 15 9.4 25 11.4Z' fill='%232c4bb3'/%3E%3Cpath d='M25 11.4C16 9.6 8.6 9.6 2.8 11.6C8.8 12.8 16 13.8 25 14.6Z' fill='%231fa79c'/%3E%3Cpath d='M25 14.6C18 13.8 12 14.4 6.4 16.4C12.4 16.6 18.4 17.4 25 17.8Z' fill='%23e8a72c'/%3E%3Cpath d='M39 8C47 4.6 55 3.6 62.5 5.6C56.4 7.2 49 9.4 39 11.4Z' fill='%232c4bb3'/%3E%3Cpath d='M39 11.4C48 9.6 55.4 9.6 61.2 11.6C55.2 12.8 48 13.8 39 14.6Z' fill='%231fa79c'/%3E%3Cpath d='M39 14.6C46 13.8 52 14.4 57.6 16.4C51.6 16.6 45.6 17.4 39 17.8Z' fill='%23e8a72c'/%3E%3Ccircle cx='32' cy='12' r='7' fill='%23f2b52e'/%3E%3Ccircle cx='30' cy='10' r='2.6' fill='%23ffe7a6'/%3E%3Ccircle cx='32' cy='12' r='7' fill='none' stroke='%23c9861a' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* the feature icons, each in a glowing bead of its own colour */
.card .ico-lg{
  box-sizing:content-box;
  padding:11px;
  border-radius:50%;
  font-size:1.55rem;
  color:var(--ic);
  background:radial-gradient(circle at 32% 28%, #ffffff, var(--ic-bg) 75%);
  box-shadow:0 0 0 1px color-mix(in srgb, var(--ic) 22%, transparent), 0 10px 24px -10px color-mix(in srgb, var(--ic) 60%, transparent);
}
.grid-cards .card:nth-child(6n+1){ --ic:#8a6512; --ic-bg:#fbe8b4; }
.grid-cards .card:nth-child(6n+2){ --ic:#2a3c9a; --ic-bg:#dde3fb; }
.grid-cards .card:nth-child(6n+3){ --ic:#14705f; --ic-bg:#cff1ea; }
.grid-cards .card:nth-child(6n+4){ --ic:#a8331a; --ic-bg:#ffdccf; }
.grid-cards .card:nth-child(6n+5){ --ic:#1e6fb8; --ic-bg:#d6eafc; }
.grid-cards .card:nth-child(6n+6){ --ic:#7a4ab0; --ic-bg:#ece0fb; }

/* the subscription glows, framed in gold, carnelian, lapis and turquoise */
.tier-sub{
  border:1.5px solid transparent;
  background:
    radial-gradient(120% 90% at 50% 0, rgba(var(--accent-rgb),.16), transparent 62%) padding-box,
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--gold-hi), var(--carnelian) 35%, var(--lapis) 70%, var(--turquoise)) border-box;
  box-shadow:0 28px 60px -36px rgba(var(--lapis-rgb),.6), 0 0 50px -24px rgba(var(--accent-rgb),.8);
}
.get{
  background:
    radial-gradient(100% 140% at 0 50%, rgba(var(--accent-rgb),.2), transparent 60%),
    radial-gradient(80% 140% at 100% 50%, rgba(var(--turq-rgb),.12), transparent 60%),
    #ffffff;
}
.lang-band::before{ background:radial-gradient(50% 60% at 50% 100%, rgba(var(--accent-rgb),.2), transparent 70%); }

/* the hieroglyph for water in place of the wave */
.wave-rule{
  top:-4px;
  height:40px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40' width='48' height='40'%3E%3Cpath d='M0 9l6-5 6 5 6-5 6 5 6-5 6 5 6-5 6 5' fill='none' stroke='%232c4bb3' stroke-width='2.6' stroke-linejoin='round'/%3E%3Cpath d='M0 20l6-5 6 5 6-5 6 5 6-5 6 5 6-5 6 5' fill='none' stroke='%231fa79c' stroke-width='2.6' stroke-linejoin='round'/%3E%3Cpath d='M0 31l6-5 6 5 6-5 6 5 6-5 6 5 6-5 6 5' fill='none' stroke='%233aa6e6' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0 / 48px 40px repeat-x;
  opacity:.75;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image:linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.wave-rule svg{ display:none; }

/* the footer stands by the river */
.site-foot{
  border-top:0;
  margin-top:40px;
  background:linear-gradient(180deg, #dff3f1, #eef7f2 220px, var(--bg) 420px);
}
.site-foot .wave-rule{ top:-20px; }

/* the overlay stays dark, with light type */
.lb{
  --ink:   #fbf6ee;
  --muted: rgba(251,246,238,.76);
  --ghost: rgba(251,246,238,.56);
  --line:  rgba(251,246,238,.2);
}


/* ---------- the hours ---------- */

.hour-names{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:22px;
}
.hour-names li{
  display:grid; gap:2px;
  padding:11px 14px 12px;
  padding-inline-start:20px;
  border:1px solid color-mix(in srgb, var(--h) 45%, transparent);
  border-radius:14px;
  border-inline-start:6px solid var(--h);
  background:linear-gradient(135deg, color-mix(in srgb, var(--h) 16%, #ffffff), #ffffff 80%);
}
.hour-names span{ color:var(--faint); font-size:.82rem; }
.hour-names b{ color:var(--ink); font-size:.98rem; font-family:var(--display); font-style:italic; font-weight:600; }
.hour-names .h-dawn { --h:#f2a65a; }
.hour-names .h-noon { --h:#f4cc4e; }
.hour-names .h-eve  { --h:#8a62b5; }
.hour-names .h-night{ --h:#2a3a9c; }


/* ---------- the lucky and unlucky days ---------- */

@media (min-width:700px){
  .spot-list.two{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .spot-list.two .spot{ flex-direction:column; gap:12px; }
}
.split-text .spot-list{ margin-top:26px; }
.verdicts .spot, .models .spot{
  position:relative;
  overflow:hidden;
  border-color:color-mix(in srgb, var(--t) 34%, transparent);
  background:linear-gradient(180deg, color-mix(in srgb, var(--t) 12%, #ffffff), #ffffff 62%);
}
.verdicts .spot-mark, .models .spot-mark{
  width:48px; height:48px;
  border:0;
  color:#ffffff;
  background:radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--t) 55%, #ffffff), var(--t) 78%);
  box-shadow:0 0 0 5px color-mix(in srgb, var(--t) 16%, transparent), 0 10px 24px -8px var(--t);
}
.verdicts .spot-mark svg, .models .spot-mark svg{ width:24px; height:24px; }
.verdicts h3, .models h3{ color:var(--t-ink); }
.v-good   { --t:var(--turquoise); --t-ink:var(--turq-ink); }
.v-parts  { --t:var(--gold);      --t-ink:var(--accent-text); }
.v-stories{ --t:var(--lapis-ink); --t-ink:var(--lapis-ink); }
.v-lost   { --t:var(--carnelian); --t-ink:var(--carn-ink); }
.m-sirius { --t:#3d6fd6;          --t-ink:#2a4fa8; }
.m-civil  { --t:var(--gold);      --t-ink:var(--accent-text); }
.m-coptic { --t:var(--turquoise); --t-ink:var(--turq-ink); }


/* ---------- the Egyptian date ---------- */

.seasons{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:34px;
}
.seasons li{
  position:relative;
  display:grid; gap:2px;
  padding:13px 14px 14px;
  padding-inline-start:56px;
  border:1px solid color-mix(in srgb, var(--c) 55%, transparent);
  border-radius:16px;
  background:linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, #ffffff), #ffffff 85%);
}
.seasons li::before{
  content:"";
  position:absolute;
  inset-inline-start:12px; top:50%;
  width:32px; height:32px;
  margin-top:-16px;
  border-radius:50%;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 28' width='112' height='28'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5q2-2.6 4 0t4 0 4 0 4 0M6 14.5q2-2.6 4 0t4 0 4 0 4 0M6 19.5q2-2.6 4 0t4 0 4 0 4 0'/%3E%3Cpath d='M42 22V12'/%3E%3Cpath d='M70 23V6'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cpath d='M42 14C41.4 9.4 37.6 7.2 34.8 7.8C35 11.6 38.2 14.4 42 14ZM42 12C42.8 7.8 46.2 5.8 49.2 6.4C48.8 10 45.8 12.4 42 12Z'/%3E%3Cellipse cx='67.6' cy='10.4' rx='1.8' ry='3' transform='rotate(-24 67.6 10.4)'/%3E%3Cellipse cx='72.4' cy='10.4' rx='1.8' ry='3' transform='rotate(24 72.4 10.4)'/%3E%3Cellipse cx='67.6' cy='15.6' rx='1.8' ry='3' transform='rotate(-24 67.6 15.6)'/%3E%3Cellipse cx='72.4' cy='15.6' rx='1.8' ry='3' transform='rotate(24 72.4 15.6)'/%3E%3Cellipse cx='70' cy='5.6' rx='1.5' ry='2.6'/%3E%3Cpath d='M98 4.6l1 3 3.1 0-2.5 1.9 1 3-2.6-1.9-2.6 1.9 1-3-2.5-1.9 3.1 0Z'/%3E%3Cpath d='M90.4 11l.8 2.4 2.5 0-2 1.5.8 2.4-2.1-1.5-2.1 1.5.8-2.4-2-1.5 2.5 0Z'/%3E%3Cpath d='M105.6 11l.8 2.4 2.5 0-2 1.5.8 2.4-2.1-1.5-2.1 1.5.8-2.4-2-1.5 2.5 0Z'/%3E%3Cpath d='M93 18.4l.8 2.4 2.5 0-2 1.5.8 2.4-2.1-1.5-2.1 1.5.8-2.4-2-1.5 2.5 0Z'/%3E%3Cpath d='M103 18.4l.8 2.4 2.5 0-2 1.5.8 2.4-2.1-1.5-2.1 1.5.8-2.4-2-1.5 2.5 0Z'/%3E%3C/g%3E%3C/svg%3E") var(--sx) 2px / 128px 32px no-repeat, var(--c);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent), 0 6px 14px -6px var(--c);
}
.seasons .s-akhet{ --sx:2px; }
.seasons .s-peret{ --sx:-30px; }
.seasons .s-shemu{ --sx:-62px; }
.seasons .s-upon { --sx:-94px; }
.seasons b{ color:var(--ink); font-size:1.02rem; font-family:var(--display); }
.seasons span{ color:var(--faint); font-size:.86rem; }

.sub-head{
  margin-top:54px;
  font-family:var(--display);
  font-size:1.32rem;
  letter-spacing:-.01em;
  color:var(--ink);
}
.models{ margin-top:18px; }
.festivals{ margin-top:30px; }
.festivals .sub-head{ margin-top:0; }


/* ---------- Sirius and the sky ---------- */

.sky-names{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:22px;
}
.sky-names li{
  display:grid; gap:1px;
  padding:10px 13px 11px;
  border:1px solid rgba(var(--lapis-rgb),.18);
  border-radius:14px;
  background:linear-gradient(135deg, rgba(var(--lapis-rgb),.07), #ffffff 80%);
}
.sky-names b{ color:var(--lapis-ink); font-family:var(--display); font-size:1rem; }
.sky-names span{ color:var(--faint); font-size:.84rem; }


/* ---------- the planner ---------- */

.presets{
  list-style:none;
  display:flex; flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}
.presets li{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 14px 7px 10px;
  border:1px solid rgba(var(--accent-rgb),.5);
  border-radius:999px;
  background:linear-gradient(135deg, rgba(var(--accent-rgb),.16), #ffffff 70%);
  color:var(--ink);
  font-size:.93rem;
}
.presets i{ font-style:normal; font-size:1.1rem; line-height:1; }


/* ---------- the drawings behind the sections ---------- */

/* a wheel of the decans turning behind them */
#decans::before{
  content:"";
  position:absolute;
  width:min(640px, 84vw);
  aspect-ratio:1;
  inset-inline-end:max(-180px, calc(50% - 820px));
  top:-60px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Ccircle cx='300' cy='300' r='280' fill='none' stroke='%23d9a43a' stroke-width='2'/%3E%3Ccircle cx='300' cy='300' r='250' fill='none' stroke='%2324357f' stroke-opacity='.5' stroke-width='44'/%3E%3Ccircle cx='300' cy='300' r='220' fill='none' stroke='%23d9a43a' stroke-width='2'/%3E%3Cpath d='M300 72L300 28M339.6 75.5L347.2 32.1M378 85.8L393 44.4M414 102.5L436 64.4M446.6 125.3L474.8 91.6M474.7 153.4L508.4 125.2M497.5 186L535.6 164M514.2 222L555.6 207M524.5 260.4L567.9 252.8M528 300L572 300M524.5 339.6L567.9 347.2M514.2 378L555.6 393M497.5 414L535.6 436M474.7 446.6L508.4 474.8M446.6 474.7L474.8 508.4M414 497.5L436 535.6M378 514.2L393 555.6M339.6 524.5L347.2 567.9M300 528L300 572M260.4 524.5L252.8 567.9M222 514.2L207 555.6M186 497.5L164 535.6M153.4 474.7L125.2 508.4M125.3 446.6L91.6 474.8M102.5 414L64.4 436M85.8 378L44.4 393M75.5 339.6L32.1 347.2M72 300L28 300M75.5 260.4L32.1 252.8M85.8 222L44.4 207M102.5 186L64.4 164M125.3 153.4L91.6 125.2M153.4 125.3L125.2 91.6M186 102.5L164 64.4M222 85.8L207 44.4M260.4 75.5L252.8 32.1' stroke='%23d9a43a' stroke-width='1.6'/%3E%3Cpath d='M321.8 40L324.4 47.4L332.3 47.6L326 52.3L328.3 59.9L321.8 55.4L315.3 59.9L317.6 52.3L311.3 47.6L319.2 47.4ZM364.7 47.5L367.3 55L375.2 55.1L368.9 59.9L371.2 67.4L364.7 62.9L358.2 67.4L360.5 59.9L354.2 55.1L362.1 55ZM405.7 62.4L408.2 69.9L416.1 70L409.8 74.8L412.1 82.3L405.7 77.8L399.2 82.3L401.5 74.8L395.2 70L403.1 69.9ZM443.4 84.2L446 91.7L453.9 91.8L447.6 96.6L449.9 104.1L443.4 99.6L436.9 104.1L439.2 96.6L432.9 91.8L440.8 91.7ZM476.8 112.2L479.4 119.7L487.2 119.8L481 124.6L483.2 132.1L476.8 127.6L470.3 132.1L472.6 124.6L466.3 119.8L474.2 119.7ZM504.8 145.6L507.4 153L515.2 153.2L509 158L511.3 165.5L504.8 161L498.3 165.5L500.6 158L494.3 153.2L502.2 153ZM526.6 183.3L529.2 190.8L537 190.9L530.8 195.7L533 203.2L526.6 198.7L520.1 203.2L522.4 195.7L516.1 190.9L524 190.8ZM541.5 224.3L544.1 231.7L551.9 231.9L545.7 236.7L547.9 244.2L541.5 239.7L535 244.2L537.3 236.7L531 231.9L538.9 231.7ZM549 267.2L551.6 274.7L559.5 274.8L553.2 279.6L555.5 287.1L549 282.6L542.6 287.1L544.9 279.6L538.6 274.8L546.5 274.7ZM549 310.8L551.6 318.2L559.5 318.4L553.2 323.1L555.5 330.7L549 326.2L542.6 330.7L544.9 323.1L538.6 318.4L546.5 318.2ZM541.5 353.7L544.1 361.1L551.9 361.3L545.7 366.1L547.9 373.6L541.5 369.1L535 373.6L537.3 366.1L531 361.3L538.9 361.1ZM526.6 394.7L529.2 402.1L537 402.3L530.8 407L533 414.6L526.6 410.1L520.1 414.6L522.4 407L516.1 402.3L524 402.1ZM504.8 432.4L507.4 439.8L515.2 440L509 444.8L511.3 452.3L504.8 447.8L498.3 452.3L500.6 444.8L494.3 440L502.2 439.8ZM476.8 465.8L479.4 473.2L487.2 473.4L481 478.1L483.2 485.7L476.8 481.2L470.3 485.7L472.6 478.1L466.3 473.4L474.2 473.2ZM443.4 493.8L446 501.2L453.9 501.4L447.6 506.1L449.9 513.7L443.4 509.2L436.9 513.7L439.2 506.1L432.9 501.4L440.8 501.2ZM405.7 515.6L408.2 523L416.1 523.2L409.8 527.9L412.1 535.5L405.7 531L399.2 535.5L401.5 527.9L395.2 523.2L403.1 523ZM364.7 530.5L367.3 537.9L375.2 538.1L368.9 542.8L371.2 550.4L364.7 545.9L358.2 550.4L360.5 542.8L354.2 538.1L362.1 537.9ZM321.8 538L324.4 545.5L332.3 545.6L326 550.4L328.3 557.9L321.8 553.4L315.3 557.9L317.6 550.4L311.3 545.6L319.2 545.5ZM278.2 538L280.8 545.5L288.7 545.6L282.4 550.4L284.7 557.9L278.2 553.4L271.7 557.9L274 550.4L267.7 545.6L275.6 545.5ZM235.3 530.5L237.9 537.9L245.8 538.1L239.5 542.8L241.8 550.4L235.3 545.9L228.8 550.4L231.1 542.8L224.8 538.1L232.7 537.9ZM194.3 515.6L196.9 523L204.8 523.2L198.5 527.9L200.8 535.5L194.3 531L187.9 535.5L190.2 527.9L183.9 523.2L191.8 523ZM156.6 493.8L159.2 501.2L167.1 501.4L160.8 506.1L163.1 513.7L156.6 509.2L150.1 513.7L152.4 506.1L146.1 501.4L154 501.2ZM123.2 465.8L125.8 473.2L133.7 473.4L127.4 478.1L129.7 485.7L123.2 481.2L116.8 485.7L119 478.1L112.8 473.4L120.6 473.2ZM95.2 432.4L97.8 439.8L105.7 440L99.4 444.8L101.7 452.3L95.2 447.8L88.7 452.3L91 444.8L84.8 440L92.6 439.8ZM73.4 394.7L76 402.1L83.9 402.3L77.6 407L79.9 414.6L73.4 410.1L67 414.6L69.2 407L63 402.3L70.8 402.1ZM58.5 353.7L61.1 361.1L69 361.3L62.7 366.1L65 373.6L58.5 369.1L52.1 373.6L54.3 366.1L48.1 361.3L55.9 361.1ZM51 310.8L53.5 318.2L61.4 318.4L55.1 323.1L57.4 330.7L51 326.2L44.5 330.7L46.8 323.1L40.5 318.4L48.4 318.2ZM51 267.2L53.5 274.7L61.4 274.8L55.1 279.6L57.4 287.1L51 282.6L44.5 287.1L46.8 279.6L40.5 274.8L48.4 274.7ZM58.5 224.3L61.1 231.7L69 231.9L62.7 236.7L65 244.2L58.5 239.7L52.1 244.2L54.3 236.7L48.1 231.9L55.9 231.7ZM73.4 183.3L76 190.8L83.9 190.9L77.6 195.7L79.9 203.2L73.4 198.7L67 203.2L69.2 195.7L63 190.9L70.8 190.8ZM95.2 145.6L97.8 153L105.7 153.2L99.4 158L101.7 165.5L95.2 161L88.7 165.5L91 158L84.8 153.2L92.6 153ZM123.2 112.2L125.8 119.7L133.7 119.8L127.4 124.6L129.7 132.1L123.2 127.6L116.8 132.1L119 124.6L112.8 119.8L120.6 119.7ZM156.6 84.2L159.2 91.7L167.1 91.8L160.8 96.6L163.1 104.1L156.6 99.6L150.1 104.1L152.4 96.6L146.1 91.8L154 91.7ZM194.3 62.4L196.9 69.9L204.8 70L198.5 74.8L200.8 82.3L194.3 77.8L187.9 82.3L190.2 74.8L183.9 70L191.8 69.9ZM235.3 47.5L237.9 55L245.8 55.1L239.5 59.9L241.8 67.4L235.3 62.9L228.8 67.4L231.1 59.9L224.8 55.1L232.7 55ZM278.2 40L280.8 47.4L288.7 47.6L282.4 52.3L284.7 59.9L278.2 55.4L271.7 59.9L274 52.3L267.7 47.6L275.6 47.4Z' fill='%23f2c14e'/%3E%3Ccircle cx='300' cy='300' r='176' fill='none' stroke='%231fa79c' stroke-width='1.6' stroke-dasharray='3 7'/%3E%3Cpath d='M350.7 104.7L352.1 108.7L356.4 108.8L353 111.4L354.3 115.5L350.7 113.1L347.2 115.5L348.4 111.4L345 108.8L349.3 108.7ZM438.6 155.4L440 159.5L444.3 159.6L440.9 162.1L442.1 166.3L438.6 163.8L435.1 166.3L436.3 162.1L432.9 159.6L437.2 159.5ZM489.3 243.3L490.7 247.3L495 247.4L491.6 250L492.8 254.1L489.3 251.7L485.8 254.1L487 250L483.6 247.4L487.9 247.3ZM489.3 344.7L490.7 348.8L495 348.9L491.6 351.5L492.8 355.6L489.3 353.1L485.8 355.6L487 351.5L483.6 348.9L487.9 348.8ZM438.6 432.6L440 436.7L444.3 436.7L440.9 439.3L442.1 443.4L438.6 441L435.1 443.4L436.3 439.3L432.9 436.7L437.2 436.7ZM350.7 483.3L352.1 487.4L356.4 487.5L353 490.1L354.3 494.2L350.7 491.7L347.2 494.2L348.4 490.1L345 487.5L349.3 487.4ZM249.3 483.3L250.7 487.4L255 487.5L251.6 490.1L252.8 494.2L249.3 491.7L245.7 494.2L247 490.1L243.6 487.5L247.9 487.4ZM161.4 432.6L162.8 436.7L167.1 436.7L163.7 439.3L164.9 443.4L161.4 441L157.9 443.4L159.1 439.3L155.7 436.7L160 436.7ZM110.7 344.7L112.1 348.8L116.4 348.9L113 351.5L114.2 355.6L110.7 353.1L107.2 355.6L108.4 351.5L105 348.9L109.3 348.8ZM110.7 243.3L112.1 247.3L116.4 247.4L113 250L114.2 254.1L110.7 251.7L107.2 254.1L108.4 250L105 247.4L109.3 247.3ZM161.4 155.4L162.8 159.5L167.1 159.6L163.7 162.1L164.9 166.3L161.4 163.8L157.9 166.3L159.1 162.1L155.7 159.6L160 159.5ZM249.3 104.7L250.7 108.7L255 108.8L251.6 111.4L252.8 115.5L249.3 113.1L245.7 115.5L247 111.4L243.6 108.8L247.9 108.7Z' fill='%231fa79c'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity:.22;
  animation:turn 480s linear infinite;
  pointer-events:none;
}
#decans .wrap{ position:relative; }

/* the questions, between a blue lotus and papyrus, where the window is wide
   enough for them */
#faq .wrap{ position:relative; }
@media (min-width:1200px){
  #faq .wrap::before,
  #faq .wrap::after{
    content:"";
    position:absolute;
    pointer-events:none;
  }
  #faq .wrap::before{
    inset-inline-start:10px; top:170px;
    width:140px; height:200px;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 200'%3E%3Cpath d='M70 196C70 160 66 128 70 96' fill='none' stroke='%233c9a46' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M70 170C88 160 100 140 104 118' fill='none' stroke='%233c9a46' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M104 118C98 108 98 96 104 86C110 96 110 108 104 118Z' fill='%237d9cf2'/%3E%3Cpath d='M70 182C50 176 26 178 12 188C30 198 56 198 70 182Z' fill='%234fae4a'/%3E%3Cpath d='M70 182C44 186 24 188 12 188' fill='none' stroke='%233c8f3e' stroke-width='1.4'/%3E%3Cg transform='translate(70 96)'%3E%3Cpath d='M0 0C-16-10-28-30-30-52C-14-44-4-26 0 0Z' fill='%235f84ea'/%3E%3Cpath d='M0 0C16-10 28-30 30-52C14-44 4-26 0 0Z' fill='%235f84ea'/%3E%3Cpath d='M0 0C-10-14-16-36-12-60C0-48 4-26 0 0Z' fill='%2386a6f8'/%3E%3Cpath d='M0 0C10-14 16-36 12-60C0-48-4-26 0 0Z' fill='%2386a6f8'/%3E%3Cpath d='M0 0C-5-18-5-44 0-66C5-44 5-18 0 0Z' fill='%23aac2ff'/%3E%3Cellipse cx='0' cy='-6' rx='9' ry='5' fill='%23f2c14e'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  }
  #faq .wrap::after{
    inset-inline-end:16px; top:150px;
    width:130px; height:230px;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 230'%3E%3Cg fill='none' stroke='%233c9a46' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M64 226C62 170 60 110 62 52'/%3E%3Cpath d='M56 226C44 180 30 140 22 96'/%3E%3Cpath d='M72 226C86 184 100 150 108 112'/%3E%3C/g%3E%3Cg fill='none' stroke='%235cbc4e' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M62 52L40 22M62 52L46 16M62 52L53 12M62 52L62 10M62 52L71 12M62 52L78 16M62 52L84 22M62 52L36 30M62 52L88 30'/%3E%3Cpath d='M22 96L4 74M22 96L8 68M22 96L15 64M22 96L23 63M22 96L30 65M22 96L36 70M22 96L39 78'/%3E%3Cpath d='M108 112L92 88M108 112L97 83M108 112L104 80M108 112L111 79M108 112L118 82M108 112L124 88M108 112L127 96'/%3E%3C/g%3E%3Cg fill='%232f8a3c'%3E%3Cpath d='M56 54Q62 44 68 54Z'/%3E%3Cpath d='M17 98Q22 89 27 98Z'/%3E%3Cpath d='M103 114Q108 105 113 114Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  }
}

@media (max-width:980px){
  .seasons{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px){
  .hour-names, .sky-names{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hero-visual .phone{ width:calc(var(--dial) * .34); }
}
@media (max-width:420px){
  .hour-names, .seasons{ grid-template-columns:1fr; }
}

/* on a phone the hero is one tall column: the landscape rises behind the
   lower half of the dial, above the strip with the numbers */
@media (max-width:700px){
  .hero{ --range-h:520px; }
}
/* in one column the text stands above the landscape and needs no mist, but
   the heading still needs light behind it where the sky is deepest */
@media (max-width:980px){
  .hero{
    background:
      radial-gradient(60% 40% at 50% 46%, rgba(255,236,190,.5), transparent 70%),
      linear-gradient(180deg, #3d73d6 0, #6aa6e8 150px, #a9d4f3 340px, #d6ecf7 600px, #ffe6bc 900px, #ffdca6 100%);
  }
  .hero-copy::before{ display:none; }
  .hero h1{ position:relative; }
  .hero h1::before{
    content:"";
    position:absolute;
    inset:-46% -34%;
    z-index:-1;
    background:radial-gradient(closest-side, rgba(246,250,253,.96), rgba(246,250,253,.9) 62%, rgba(246,250,253,0));
    pointer-events:none;
  }
}

@media (prefers-reduced-motion:reduce){
  .ornament .arc, .ornament .dstar{ animation:none; opacity:1; }
  .ornament .hand, .ornament .sun, .ornament .sirius, .sky-sun .rays, #decans::before, #hours .split-shots::after{ animation:none; }
}

@media print{
  #decans::before, #hours .split-shots::after, #faq .wrap::before, #faq .wrap::after{ display:none; }
}
