/* Layout: one quiet left-aligned column. The hero is a lamp lit in a dark room; every section after it reads by that light. Stages are lamps along a path. */
:root {
  color-scheme: dark;
  --ink: #10141B;        /* night ground, blue-black */
  --ink-2: #171D26;      /* raised surface: form fields, ribbon */
  --paper: #ECE5D8;      /* lamp-lit text */
  --dim: #98A0AA;        /* secondary text, blue-grey */
  --brass: #E3AC55;      /* the flame */
  --rule: rgba(236, 229, 216, .14);
  --glow: rgba(227, 172, 85, .30);
  --display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Albert Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter-l: max(clamp(16px, 5vw, 44px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 5vw, 44px), env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --ink: #EDEFF1; --ink-2: #E1E5EA; --paper: #151B24; --dim: #56606C;
    --brass: #855913; --rule: rgba(21, 27, 36, .15); --glow: rgba(214, 150, 52, .26);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #EDEFF1; --ink-2: #E1E5EA; --paper: #151B24; --dim: #56606C;
  --brass: #855913; --rule: rgba(21, 27, 36, .15); --glow: rgba(214, 150, 52, .26);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.label {
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass);
}

/* Site bar */
.bar { border-bottom: 1px solid var(--rule); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.4rem; padding-block: .8rem; }
.bar .brand { font-family: var(--display); font-size: 1rem; letter-spacing: .3em; text-decoration: none; color: var(--paper); }
.bar nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.bar nav a { color: var(--dim); text-decoration: none; padding-block: .3rem; }
.bar nav a:hover { color: var(--brass); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.glow {
  position: absolute;
  top: -38%;
  left: -14%;
  width: min(980px, 150vw);
  aspect-ratio: 1;
  max-width: none;
  background: radial-gradient(circle at 50% 50%, var(--glow) 0%, transparent 62%);
  pointer-events: none;
  animation: kindle 3.6s cubic-bezier(.2,.8,.2,1) both, breathe 9s ease-in-out 3.6s infinite alternate;
}
@keyframes kindle { from { opacity: .2; transform: scale(.88); } to { opacity: 1; transform: scale(1); } }
@keyframes breathe { from { opacity: 1; } to { opacity: .82; } }
.hero-in {
  position: relative;
  padding-block: clamp(4rem, 12vw, 8.5rem) clamp(3.5rem, 9vw, 6.5rem);
  display: grid;
  gap: 1.6rem;
}
.wick { width: 1px; height: 56px; background: linear-gradient(var(--brass), transparent); }
.mark {
  font-family: var(--display);
  font-size: clamp(3.1rem, 12vw, 7rem);
  line-height: .95;
  letter-spacing: .26em;
}
.mark span {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--body);
  font-size: clamp(.78rem, 1.6vw, .95rem);
  font-weight: 500;
  letter-spacing: .62em;
  text-transform: uppercase;
  color: var(--dim);
}
.lede {
  max-width: 34ch;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  font-weight: 300;
}
.where { font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* Sections */
section { border-top: 1px solid var(--rule); }
section > .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); display: grid; gap: 2.4rem; }
.head { display: grid; gap: .8rem; max-width: 62ch; }
h2 { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; }
.intro { color: var(--dim); max-width: 60ch; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4.5rem); }
.svc { border-top: 1px solid var(--rule); padding-block: 1.5rem 1.7rem; display: grid; gap: .5rem; min-width: 0; }
.svc h3 { font-size: 1.15rem; font-weight: 500; }
.svc p { color: var(--dim); }

/* Stages: lamps along a path */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.6rem 1.4rem; counter-reset: stage; }
.stage { position: relative; padding-top: 1.9rem; display: grid; gap: .45rem; align-content: start; min-width: 0; }
.stage::before {
  content: "";
  position: absolute; top: 5px; left: 0; right: -1.4rem;
  height: 1px; background: var(--rule);
}
.stage:last-child::before { right: 0; }
.stage::after {
  content: "";
  position: absolute; top: 1px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 14px 3px var(--glow);
}
.stage .n { counter-increment: stage; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.stage .n::before { content: "Stage " counter(stage); }
.stage h3 { font-family: var(--display); font-size: 1.3rem; }
.stage p { color: var(--dim); font-size: .95rem; line-height: 1.55; }
.stage .out { color: var(--paper); font-size: .86rem; line-height: 1.45; padding-top: .35rem; border-top: 1px dotted var(--rule); margin-top: .3rem; }

/* Principal + name */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.pair > div { display: grid; gap: 1rem; min-width: 0; }
.who { font-family: var(--display); font-size: 1.6rem; }
.role { color: var(--dim); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
.body-text { max-width: 58ch; display: grid; gap: 1rem; }
.hebrew { font-family: "SBL Hebrew", "Times New Roman", serif; font-size: 2.6rem; line-height: 1.2; color: var(--brass); }
blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.4; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact > div { display: grid; gap: 1.1rem; min-width: 0; }
.addr { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.addr code { font-family: var(--body); font-size: 1.1rem; user-select: all; overflow-wrap: anywhere; }
button {
  font: inherit; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); background: var(--brass);
  border: 0; border-radius: 2px; padding: .7rem 1.2rem; cursor: pointer;
}
button.ghost { color: var(--brass); background: transparent; border: 1px solid var(--brass); padding: .45rem .8rem; font-size: .7rem; }
button:hover { filter: brightness(1.08); }
.small { color: var(--dim); font-size: .9rem; }

/* Plan it → Run it: three lamps on one wick. Fixed prices, read at a glance. */
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; }
.hero-cta a { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--brass); text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: .2rem; }
.hero-cta a:hover { filter: brightness(1.12); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem clamp(1.6rem, 3.5vw, 3rem); }
.tier { position: relative; border-top: 1px solid var(--rule); padding-top: 1.9rem; display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.tier::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 14px 3px var(--glow); }
.tier .step { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.tier h3 { font-family: var(--display); font-size: 1.75rem; line-height: 1.1; }
.tier .what { color: var(--dim); }
.product { display: grid; gap: .45rem; padding-top: 1rem; border-top: 1px dotted var(--rule); }
.product h4 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; font-variant-numeric: tabular-nums; }
.price b { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.1; color: var(--brass); }
.price .unit { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.price s { color: var(--dim); font-size: 1rem; }
.launch { font-size: .86rem; color: var(--paper); }
.launch strong { color: var(--brass); font-weight: 500; }
.product ul { margin: 0; padding-left: 1.05rem; color: var(--dim); font-size: .95rem; line-height: 1.55; display: grid; gap: .2rem; }
.meta { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.bundle { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 1.2rem 2rem; align-items: center; background: var(--ink-2); border: 1px solid var(--rule); border-left: 2px solid var(--brass); border-radius: 2px; padding: clamp(1.3rem, 3vw, 2rem); }
.bundle > div { display: grid; gap: .45rem; min-width: 0; }
.bundle h3 { font-family: var(--display); font-size: 1.45rem; }
.bundle p { color: var(--dim); }
.bundle .price b { font-size: 2.2rem; }
.btn { display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--ink); background: var(--brass); border-radius: 2px; padding: .75rem 1.25rem; text-decoration: none; white-space: nowrap; }
.btn.line { color: var(--brass); background: transparent; border: 1px solid var(--brass); }
.btn:hover { filter: brightness(1.08); }
.fine { color: var(--dim); font-size: .86rem; max-width: 78ch; }
.steps .stage .n::before { content: "Step " counter(stage); }
.steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.faq { display: grid; border-bottom: 1px solid var(--rule); max-width: 860px; }
.faq details { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.2rem 1.15rem 0; position: relative; font-size: 1.05rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .95rem; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--brass); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.3rem; color: var(--dim); max-width: 70ch; display: grid; gap: .6rem; }
.cta-band { display: grid; gap: 1.2rem; justify-items: start; }
.cta-band h2 { max-width: 24ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

footer { border-top: 1px solid var(--rule); }
footer a { text-decoration: none; }
footer a:hover { color: var(--brass); }
footer .wrap { padding-block: 2rem 2.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

@media (max-width: 980px) {
  .stages, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tier:first-of-type { grid-column: 1 / -1; }
  .stage:nth-child(3n)::before { right: 0; }
}
@media (max-width: 760px) {
  .services, .pair, .contact, .tiers, .bundle { grid-template-columns: minmax(0, 1fr); }
  .tier:first-of-type { grid-column: auto; }
  .stages, .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage { padding: 0 0 1.8rem 1.8rem; }
  .stage::before { top: 6px; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }
  .stage:last-child::before { display: none; }
  .stage:nth-child(3n)::before { right: auto; }
  .stage::after { top: 2px; }
  .mark { letter-spacing: .18em; }
}
@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
}

/* Enquiry links */
.mail-list { list-style: none; margin: 0; padding: 0; display: grid; border-bottom: 1px solid var(--rule); }
.mail-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); text-decoration: none; }
.mail-list a span:last-child { color: var(--brass); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.mail-list a:hover span:first-child { color: var(--brass); }
.addr a { font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--brass); overflow-wrap: anywhere; }
/* Plain pages (privacy, 404) */
.page { padding-block: clamp(3.5rem, 9vw, 6.5rem); display: grid; gap: 1.4rem; max-width: 70ch; }
.page h1 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.page h2 { font-size: 1.35rem; margin-top: 1rem; }
.page p, .page li { color: var(--dim); }
.page ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
.page a:not(.btn) { color: var(--brass); }

/* ---------- Motion (v04) ----------
   Only transform and opacity animate. Anything hidden before it is revealed
   needs both the .js class and a class that site.js adds, so the page reads in
   full without JavaScript. prefers-reduced-motion switches all of it off. */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --bar-bg: rgba(16, 20, 27, .72); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --bar-bg: rgba(237, 239, 241, .74); } }
:root[data-theme="light"] { --bar-bg: rgba(237, 239, 241, .74); }

/* Hero on load: wick, label, wordmark, lede, place and link rise in turn */
.hero-in > * { animation: rise 1.5s var(--ease) both; }
.hero-in > .wick { transform-origin: top; animation-name: grow; animation-delay: .1s; }
.hero-in > .label { animation-delay: .3s; }
.hero-in > .mark { animation-delay: .45s; animation-duration: 1.8s; }
.hero-in > .lede { animation-delay: .75s; }
.hero-in > .where { animation-delay: .95s; }
.hero-in > .hero-cta { animation-delay: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: none; } }

/* Hero on scroll: the content settles back and fades as the next section rises */
main { position: relative; background: var(--ink); }
.js .hero-in {
  transform-origin: 50% 0;
  transform: translateY(calc(var(--hp, 0) * 22%)) scale(calc(1 - var(--hp, 0) * .08));
  opacity: calc(1 - var(--hp, 0) * 1.15);
}
@keyframes hero-out { to { transform: translateY(22%) scale(.92); opacity: 0; } }

/* Nav: sticky; turns translucent with a blur once the page moves */
/* Sticky from tablet width up; on phones the wrapped nav is too tall to pin */
.js .bar { position: relative; isolation: isolate; }
@media (min-width: 761px) { .js .bar { position: sticky; top: 0; z-index: 20; } }
.js .bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bar-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  opacity: 0; transition: opacity .5s var(--ease);
}
.js .bar.scrolled::before { opacity: 1; }

/* Section reveals: fade and rise, staggered by site.js, each element once */
.js .rv { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* Big type: words light up one by one as the line reaches the centre */
#offer-h { font-size: clamp(2.3rem, 6.4vw, 4.6rem); line-height: 1.04; }
.js .split .w { display: inline-block; opacity: .12; transform: translateY(.18em) scale(.94); transform-origin: 50% 80%; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js .split.lit .w { opacity: 1; transform: none; }

/* Plan it -> Run it: a brass line draws across the three tiers */
.tiers { position: relative; }
.wickline { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--brass); box-shadow: 0 0 10px var(--glow); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); pointer-events: none; }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Stages: the path fills with light as you scroll through it */
.js .stages { position: relative; }
.js .stages::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--brass); box-shadow: 0 0 10px var(--glow); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); pointer-events: none; z-index: 1; }
.stage::after { z-index: 2; }

/* Scroll-driven where supported; site.js covers other browsers with --hp / --p */
@supports (animation-timeline: view()) {
  .js .hero { view-timeline: --hero block; }
  .js .hero-in { animation: hero-out linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
  .js .tiers { view-timeline: --tiers block; }
  .js .wickline { animation: draw-x linear both; animation-timeline: --tiers; animation-range: entry 30% cover 50%; }
  .js .stages { view-timeline: --path block; view-timeline-inset: 0 20%; }
  .js .stages::before { animation: draw-x linear both; animation-timeline: --path; animation-range: entry 0% cover 55%; }
}

/* Hover: a quiet lift and a lamp-lit panel, no bounce */
.svc, .tier { position: relative; isolation: isolate; transition: transform .6s var(--ease); }
.svc::before, .tier::before { content: ""; position: absolute; inset: -.2rem -.9rem -.9rem; z-index: -1; border-radius: 3px; background: var(--ink-2); box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .55); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.btn, .bundle { position: relative; transition: transform .45s var(--ease); }
.btn::after, .bundle::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6), 0 0 22px -6px var(--glow); opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.mail-list a span:last-child { transition: transform .45s var(--ease); }
@media (hover: hover) {
  .svc:hover, .tier:hover { transform: translateY(-4px); }
  .svc:hover::before, .tier:hover::before { opacity: 1; }
  .btn:hover, .bundle:hover { transform: translateY(-2px); }
  .btn:hover::after, .bundle:hover::after { opacity: 1; }
  .mail-list a:hover span:last-child { transform: translateX(4px); }
}

@media (max-width: 980px) {
  .wickline { display: none; }
  .js .stages::before { display: none; }
}
@media (max-width: 760px) {
  .js .stage:last-child::before { display: block; bottom: 1.8rem; }
  .js .stages::before { display: block; top: 6px; bottom: 1.8rem; left: 4px; right: auto; width: 1px; height: auto; transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
  @supports (animation-timeline: view()) {
    .js .stages::before { animation-name: draw-y; animation-range: entry 0% entry 100%; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (min-width: 761px) { html { scroll-padding-top: 4.5rem; } }
@media (max-width: 380px) { .btn { white-space: normal; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .split .w, .js .hero-in, .hero-in > * { opacity: 1 !important; transform: none !important; }
  .wickline, .js .stages::before { transform: none !important; }
}
@media print {
  .js .rv, .js .split .w, .js .hero-in { opacity: 1 !important; transform: none !important; }
  .js .bar { position: static; }
}
.demo-link a { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--brass); text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: .15rem; }
.demo-link a:hover { filter: brightness(1.12); }
