@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600&family=Instrument+Serif:ital@0;1&display=swap");
/* Styles for the published site and the editor canvas. */
:root {
  --s-text: #1a1a1a;
  --s-muted: #666;
  --s-border: #e6e6e6;
  --s-bg: #fff;
  --s-bg-alt: #f6f6f7;
  --s-primary: #1976d2;
  --s-primary-text: #fff;
  --s-radius: 10px;
  --s-max: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--s-text);
  background: var(--s-bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.s-page { display: flex; flex-direction: column; min-height: 100vh; }
.s-main { flex: 1; }
.s-container { max-width: var(--s-max); margin: 0 auto; padding: 0 24px; }
.s-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Header / footer */
.s-header {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 32px; border-bottom: 1px solid var(--s-border); background: var(--s-bg);
}
/* Menu on the right: brand ... menu + button */
.s-header--right .s-header__nav { margin-left: auto; }
/* Menu centered: brand | menu | button, menu truly centered in the bar */
.s-header--center { display: grid; grid-template-columns: 1fr auto 1fr; }
.s-header--center .s-header__nav { justify-content: center; }
.s-header--center .s-header__actions { justify-self: end; }
.s-header__actions:empty { display: none; }
.s-header--center .s-header__actions:empty { display: block; }
/* Desktop: the menu wrapper doesn't box its children; mobile-only parts are hidden. */
.s-nav__panel { display: contents; }
.s-nav__toggle, .s-nav__burger, .s-nav__close, .s-nav__backdrop { display: none; }

/* ---------- Mobile: hamburger menu ---------- */
@media (max-width: 720px) {
  .s-header, .s-header--center { display: flex; padding: 12px 16px; position: relative; }
  .s-header--sticky { position: sticky; }

  /* Visually hidden but focusable checkbox drives the menu. */
  .s-nav__toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .s-nav__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; margin-left: auto; padding: 0 9px; cursor: pointer; border-radius: 8px;
  }
  .s-nav__burger span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .s-nav__toggle:focus-visible + .s-nav__burger { outline: 2px solid var(--s-primary); }

  .s-nav__panel {
    display: flex; flex-direction: column; gap: 4px; padding: 16px;
    /* Same background as the header (including a custom header color). */
    background-color: inherit; color: inherit;
    visibility: hidden; opacity: 0; transition: transform .25s ease, opacity .2s ease, visibility .25s;
    z-index: 50;
  }
  .s-header .s-nav__panel .s-header__nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; flex-wrap: nowrap; justify-content: flex-start; }
  .s-header .s-nav__panel .s-header__nav a { padding: 12px 4px; border-bottom: 1px solid var(--s-border); font-size: 16px; }
  .s-header .s-nav__panel .s-header__actions { display: flex; justify-self: auto; padding-top: 12px; }
  .s-header .s-nav__panel .s-header__actions:empty { display: none; }
  .s-nav__toggle:checked ~ .s-nav__panel { visibility: visible; opacity: 1; transform: none; }

  /* From the top: drops down under the header; the icon turns into an ×. */
  .s-header--m-top .s-nav__panel {
    position: absolute; top: 100%; left: 0; right: 0; transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12); border-bottom: 1px solid var(--s-border);
  }
  .s-header--m-top .s-nav__toggle:checked + .s-nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .s-header--m-top .s-nav__toggle:checked + .s-nav__burger span:nth-child(2) { opacity: 0; }
  .s-header--m-top .s-nav__toggle:checked + .s-nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* From the left / right: a drawer over a dimmed backdrop. */
  .s-header--m-left .s-nav__panel, .s-header--m-right .s-nav__panel {
    position: fixed; top: 0; bottom: 0; width: min(82vw, 320px); padding-top: 56px; overflow-y: auto;
    box-shadow: 0 0 32px rgba(0, 0, 0, .2);
  }
  .s-header--m-left .s-nav__panel { left: 0; transform: translateX(-100%); }
  .s-header--m-right .s-nav__panel { right: 0; transform: translateX(100%); }
  .s-nav__close {
    display: flex; align-items: center; justify-content: center; position: absolute; top: 10px; right: 10px;
    width: 36px; height: 36px; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 8px;
  }
  .s-nav__backdrop {
    display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 40;
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .s-nav__toggle:checked ~ .s-nav__backdrop { visibility: visible; opacity: 1; }
}
.s-header--sticky { position: sticky; top: 0; z-index: 10; }
.s-header__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; color: inherit; text-decoration: none;
}
.s-header__brand img { height: 32px; width: auto; }
.s-header__nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.s-header__actions { display: flex; align-items: center; }
.s-header__nav a { color: inherit; text-decoration: none; }
.s-header__nav a.is-active { font-weight: 600; }

.s-footer { border-top: 1px solid var(--s-border); padding: 40px 32px 24px; color: var(--s-muted); font-size: 14px; }
.s-footer__inner {
  max-width: var(--s-max); margin: 0 auto; display: flex; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.s-footer strong { color: var(--s-text); font-size: 16px; }
.s-footer__tagline { margin: 4px 0 0; }
.s-footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.s-footer__nav a { color: inherit; text-decoration: none; }
.s-footer__copy { max-width: var(--s-max); margin: 32px auto 0; text-align: center; }

/* Buttons */
.s-btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--s-primary); transition: opacity .15s;
}
.s-btn:hover { opacity: .85; }
.s-btn--primary { background: var(--s-primary); color: var(--s-primary-text); }
.s-btn--secondary { background: transparent; color: var(--s-primary); }
.s-btn--sm { padding: 6px 16px; font-size: 14px; }

/* Blocks */
.s-section { padding: 48px 0; }
.s-section--alt { background: var(--s-bg-alt); }
.s-section--dark { background: #111; color: #fff; }
.s-section--primary { background: var(--s-primary); color: var(--s-primary-text); }

.s-hero { padding: 96px 24px; text-align: center; background-size: cover; background-position: center; position: relative; }
.s-hero--left { text-align: left; }
.s-hero--image { color: #fff; }
.s-hero--image::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.s-hero__inner { position: relative; max-width: 800px; margin: 0 auto; }
.s-hero--left .s-hero__inner { margin: 0; max-width: var(--s-max); }
.s-hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.1; margin: 0 0 16px; }
.s-hero p { font-size: 20px; opacity: .85; margin: 0 0 32px; }
.s-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.s-hero--left .s-hero__actions { justify-content: flex-start; }

.s-heading { padding-top: 32px; padding-bottom: 8px; }
.s-heading h1, .s-heading h2, .s-heading h3 { margin: 0; line-height: 1.2; }
.s-heading h1 { font-size: 44px; }
.s-heading h2 { font-size: 32px; }
.s-heading h3 { font-size: 24px; }

.s-text { padding-top: 12px; padding-bottom: 12px; }
.s-text p:first-child { margin-top: 0; }

.s-image { padding-top: 16px; padding-bottom: 16px; }
.s-image img { border-radius: var(--s-radius); width: 100%; object-fit: cover; }
.s-image figcaption { color: var(--s-muted); font-size: 14px; margin-top: 8px; text-align: center; }

.s-buttons { padding-top: 16px; padding-bottom: 16px; display: flex; gap: 12px; flex-wrap: wrap; }

.s-columns { display: grid; gap: 32px; padding: 16px 0; }
@media (max-width: 720px) { .s-columns { grid-template-columns: 1fr !important; } }

.s-divider { border: 0; border-top: 1px solid var(--s-border); margin: 24px auto; }

.s-features { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 24px 0; }
.s-feature { padding: 24px; border: 1px solid var(--s-border); border-radius: var(--s-radius); background: var(--s-bg); color: var(--s-text); }
.s-feature__icon { font-size: 32px; line-height: 1; }
.s-feature h3 { margin: 12px 0 8px; }
.s-feature p { margin: 0; color: var(--s-muted); }

.s-stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; padding: 24px 0; }
.s-stat__value { font-size: 44px; font-weight: 800; line-height: 1; }
.s-stat__label { opacity: .7; margin-top: 8px; }

.s-quote { max-width: 760px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.s-quote blockquote { font-size: 24px; margin: 0 0 24px; font-style: italic; }
.s-quote__author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.s-quote__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.s-quote__role { color: var(--s-muted); font-size: 14px; }

.s-faq { max-width: 760px; margin: 0 auto; padding: 24px; }
.s-faq details { border-bottom: 1px solid var(--s-border); padding: 16px 0; }
.s-faq summary { font-weight: 600; cursor: pointer; font-size: 18px; }
.s-faq details p { margin: 12px 0 0; color: var(--s-muted); }

.s-cta { margin: 48px auto; max-width: var(--s-max); padding: 56px 32px; border-radius: 20px; text-align: center; background: var(--s-primary); color: var(--s-primary-text); }
.s-cta h2 { font-size: 36px; margin: 0 0 12px; }
.s-cta p { opacity: .9; margin: 0 0 24px; }
.s-cta .s-btn { background: #fff; color: var(--s-primary); border-color: #fff; }

.s-video { padding-top: 16px; padding-bottom: 16px; }
.s-video__frame { position: relative; padding-top: 56.25%; border-radius: var(--s-radius); overflow: hidden; background: #000; }
.s-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Blog */
.s-posts { display: grid; gap: 32px; padding: 24px 0 48px; }
.s-posts--grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.s-post-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.s-posts--list .s-post-card { flex-direction: row; gap: 24px; align-items: flex-start; }
.s-post-card__img { aspect-ratio: 16/10; border-radius: var(--s-radius); background: var(--s-bg-alt); overflow: hidden; flex-shrink: 0; }
.s-posts--list .s-post-card__img { width: 240px; }
/* Blog posts: fixed column count (Grid columns field), for grid and list layouts */
.s-posts--cols-1 { grid-template-columns: minmax(0, 1fr); }
.s-posts--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.s-posts--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-posts--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.s-posts--list.s-posts--cols:not(.s-posts--cols-1) .s-post-card__img { width: 40%; }
@media (max-width: 1024px) {
  .s-posts--cols-3, .s-posts--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .s-posts--cols { grid-template-columns: minmax(0, 1fr); }
}
.s-post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.s-post-card h3 { margin: 4px 0 0; font-size: 20px; }
.s-post-card p { margin: 0; color: var(--s-muted); }
.s-meta { color: var(--s-muted); font-size: 14px; }
/* Blog posts paginator */
.s-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 0 0 48px; }
.s-pager a, .s-pager span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--s-radius); font-size: 14px; text-decoration: none; color: inherit; }
.s-pager a { border: 1px solid var(--s-border); }
.s-pager a:hover { background: var(--s-bg-alt); }
.s-pager .is-current { background: var(--s-primary); color: var(--s-primary-text); font-weight: 600; }
.s-pager .is-disabled { color: var(--s-muted); opacity: .5; }
.s-pager__gap { color: var(--s-muted); min-width: 20px !important; padding: 0 !important; }
.s-pager__note { flex-basis: 100%; height: auto !important; color: var(--s-muted); font-size: 12px !important; }
.s-empty { padding: 32px; text-align: center; color: var(--s-muted); border: 1px dashed var(--s-border); border-radius: var(--s-radius); }

.s-article-header { padding-top: 48px; padding-bottom: 24px; }
.s-article-header a { color: var(--s-muted); text-decoration: none; font-size: 14px; }
.s-article-header h1 { font-size: 44px; line-height: 1.15; margin: 12px 0; }
.s-article-cover { margin-bottom: 24px; }
.s-article-cover img { border-radius: var(--s-radius); width: 100%; }

/* Kantan CMS post body (rendered from Markdown) */
.s-article-excerpt { font-size: 18px; color: var(--s-muted); margin: 12px 0 0; }
.s-prose { padding-bottom: 64px; font-size: 17px; }
.s-prose h1, .s-prose h2, .s-prose h3 { line-height: 1.25; margin: 1.6em 0 .5em; }
.s-prose p, .s-prose ul, .s-prose ol { margin: 0 0 1.1em; }
.s-prose a { color: var(--s-primary); }
.s-prose img { border-radius: var(--s-radius); margin: 1.5em 0; }
.s-prose blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--s-border); color: var(--s-muted); }
.s-prose code { background: var(--s-bg-alt); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.s-prose pre { background: #111; color: #eee; padding: 16px 20px; border-radius: var(--s-radius); overflow-x: auto; }
.s-prose pre code { background: none; padding: 0; }

/* Editor: header/footer editing mode (canvas only) */
.s-chrome-edit { min-height: auto; background: #f4f5f7; }
.s-chrome-edit__placeholder {
  margin: 24px; padding: 48px 24px; border: 2px dashed #d0d4da; border-radius: 12px;
  text-align: center; color: #8a9099; font-size: 14px;
}
.s-chrome-edit > header, .s-chrome-edit > footer { opacity: .45; transition: opacity .15s; }
.s-chrome-edit--header > header, .s-chrome-edit--footer > footer {
  opacity: 1; outline: 2px solid #2c6ecb; outline-offset: -2px;
}

/* Form block */
.hidden { display: none !important; }
.s-form-wrap { max-width: 640px; margin: 0 auto; }
.s-form { max-width: 640px; margin: 0 auto; padding: 32px 0; display: flex; flex-direction: column; gap: 16px; }
.s-form__title { margin: 0; font-size: 32px; line-height: 1.2; }
.s-form__desc { margin: -8px 0 0; color: var(--s-muted); }
.s-form__field { display: flex; flex-direction: column; gap: 6px; }
.s-form__field label { font-weight: 600; font-size: 14px; }
.s-form__field input, .s-form__field textarea {
  font: inherit; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 8px; background: #fff; color: inherit;
}
.s-form__field input:focus, .s-form__field textarea:focus { outline: 2px solid color-mix(in srgb, var(--s-primary) 30%, transparent); border-color: var(--s-primary); }
.s-form__field--check label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.s-form__field--check input { margin-top: 4px; }
.s-form__req { color: #d72c0d; }
.s-form__field.has-error input, .s-form__field.has-error textarea { border-color: #d72c0d; }
.s-form__field-error { color: #d72c0d; font-size: 13px; }
.s-form__error { color: #d72c0d; background: #fde8e4; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.s-form__note { color: #7a5b00; background: #fff6e5; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.s-form__success { background: #e8f6ec; color: #1e6b34; border-radius: 10px; padding: 20px; font-weight: 500; }
.s-form__submit { align-self: flex-start; cursor: pointer; font: inherit; font-weight: 600; }
.s-form__submit:disabled { opacity: .6; cursor: default; }
.s-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Custom HTML block */
.s-html { padding-top: 8px; padding-bottom: 8px; }
.s-html__frame { display: block; width: 100%; border: 0; border-radius: var(--s-radius); background: transparent; }

/* Post hero (blog posts) */
.s-hero2 { position: relative; overflow: hidden; }
.s-hero2__bg { position: absolute; inset: 0; }
.s-hero2__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s-hero2__img--placeholder {
  display: flex; align-items: center; justify-content: center; color: #8a9099; font-size: 14px;
  background: linear-gradient(135deg, #2b3445, #4a5568);
}
.s-hero2__shade { position: absolute; inset: 0; pointer-events: none; }
.s-hero2__inner { position: relative; }
.s-hero2__text { max-width: 820px; }
.s-hero2__text.is-center { margin: 0 auto; text-align: center; }
.s-hero2__crumbs { font-size: 13px; opacity: .8; margin-bottom: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-hero2__crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.s-hero2__eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.18); margin-bottom: 14px;
}
.s-hero2__title { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.2; margin: 0 0 12px; font-weight: 700; }
.s-hero2__subtitle { font-size: 18px; opacity: .9; margin: 0 0 14px; }
.s-hero2__meta { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: .85; flex-wrap: wrap; }
.s-hero2__text.is-center .s-hero2__meta { justify-content: center; }
.s-hero2__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.s-hero2__author { font-weight: 600; }
.s-hero2__hint { font-size: 12px; opacity: .6; margin: 12px 0 0; }

/* Text on the image (bottom / centered) */
.s-hero2--overlay, .s-hero2--overlay-center { display: flex; background: #1f2633; }
.s-hero2--overlay .s-hero2__inner { align-self: flex-end; width: 100%; padding-top: 48px; padding-bottom: 44px; }
.s-hero2--overlay-center .s-hero2__inner { align-self: center; width: 100%; padding-top: 48px; padding-bottom: 48px; }
.s-hero2--light { color: #fff; }
.s-hero2--dark { color: #111; }
.s-hero2--dark .s-hero2__eyebrow { background: rgba(0,0,0,.08); }

/* Text left, image right */
.s-hero2--split .s-hero2__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.s-hero2--split .s-hero2__media { aspect-ratio: 4 / 3; border-radius: var(--s-radius); overflow: hidden; }
.s-hero2--split .s-hero2__eyebrow, .s-hero2--stacked .s-hero2__eyebrow { background: var(--s-bg-alt); }

/* Text above image */
.s-hero2--stacked .s-hero2__inner { padding-top: 56px; padding-bottom: 24px; }
.s-hero2--stacked .s-hero2__text { margin-bottom: 28px; }
.s-hero2--stacked .s-hero2__text.is-center { margin-left: auto; margin-right: auto; }
.s-hero2--stacked .s-hero2__media { border-radius: var(--s-radius); overflow: hidden; }

@media (max-width: 720px) {
  .s-hero2--split .s-hero2__inner { grid-template-columns: 1fr; gap: 24px; }
}

/* Post template blocks */
.s-post-header__back { color: var(--s-muted); text-decoration: none; font-size: 14px; }
/* Editor-only placeholders for values filled per post */
.s-token-placeholder {
  border: 2px dashed #c9d3e0; border-radius: var(--s-radius); padding: 20px; color: #6b7a90;
  background: #f6f8fb; font-size: 14px; text-align: center;
}
.s-token-placeholder--image { aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center; }
.s-token-placeholder code { font-family: ui-monospace, Menlo, monospace; }
.s-token-hint { max-width: 720px; margin: 8px auto 0; padding: 0 24px; font-size: 12px; color: #8a9099; }


/* Motion — MotionSites craft rules: near-black/off-white, one grotesk + an italic
   serif accent, pill buttons, quiet UI, film grain, choreographed entrances. */
:root {
  --s-text: #0c0c0c; --s-muted: #5f5d58; --s-border: rgba(12,12,12,.12); --s-bg: #f7f5f0; --s-bg-alt: #efece4;
  --s-primary: #0c0c0c; --s-primary-text: #f7f5f0; --s-radius: 24px; --s-max: 1200px;
  --m-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html, body { background: var(--s-bg); }
body { font-family: "Inter Tight", system-ui, sans-serif; font-weight: 400; letter-spacing: -0.005em; overflow-x: clip; }
::selection { background: var(--s-primary); color: var(--s-primary-text); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
h1 em, h2 em, h3 em, .m-hero__title em, .m-split__title em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--s-muted); }
/* Film grain: unifies photos and UI. */
body::after { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Header: quiet, glassy. */
.s-header { background: color-mix(in srgb, var(--s-bg) 78%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--s-border); }
.s-header__brand { font-weight: 600; letter-spacing: -0.03em; font-size: 19px; }
.s-header__nav a { font-size: 14px; color: var(--s-muted); transition: color .2s; }
.s-header__nav a:hover, .s-header__nav a.is-active { color: var(--s-text); }

/* Buttons are pills; primary is solid and inverse. */
.s-btn { border-radius: 999px; padding: 11px 24px; font-weight: 500; font-size: 14px; transition: transform .2s var(--m-ease), background .2s; }
.s-btn:active { transform: scale(.97); }
.s-btn--primary { background: var(--s-primary); color: var(--s-primary-text); }
.s-btn--secondary { background: transparent; border: 1px solid var(--s-border); color: var(--s-text); }
.m-pill { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; transition: transform .2s var(--m-ease), background .2s; }
.m-pill:active { transform: scale(.97); }
.m-pill__arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; transition: transform .25s var(--m-ease); }
.m-pill:hover .m-pill__arrow { transform: translateX(2px) rotate(-45deg); }
.m-pill--primary { background: var(--s-primary); color: var(--s-primary-text); }
.m-pill--primary .m-pill__arrow { background: var(--s-primary-text); color: var(--s-primary); }
.m-pill--secondary { background: color-mix(in srgb, var(--s-bg) 60%, transparent); border: 1px solid var(--s-border); color: var(--s-text); backdrop-filter: blur(10px); }
.m-pill--secondary .m-pill__arrow { background: var(--s-text); color: var(--s-bg); }

/* Cinematic hero. */
.m-hero { position: relative; overflow: hidden; display: flex; color: var(--s-text); }
.m-hero--full { min-height: 100vh; min-height: 100dvh; }
.m-hero--tall { min-height: 82vh; }
.m-hero--media { color: #f7f5f0; background: #0c0c0c; margin: 16px; border-radius: 32px; min-height: calc(82vh - 32px); }
.m-hero--media.m-hero--full { min-height: calc(100dvh - 32px); }
.m-hero__media { position: absolute; inset: 0; }
.m-hero__media img, .m-hero__media video { width: 100%; height: 100%; object-fit: cover; animation: m-settle 1.8s var(--m-ease) both; }
.m-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, #0c0c0c 0%, rgba(12,12,12,.35) 55%, rgba(12,12,12,.15) 100%); }
.m-hero__inner { position: relative; z-index: 1; width: 100%; max-width: var(--s-max); margin: 0 auto; padding: 120px 48px 64px; display: flex; flex-direction: column; gap: 22px; }
.m-hero--bottom .m-hero__inner { justify-content: flex-end; }
.m-hero--left .m-hero__inner { justify-content: center; }
.m-hero--center .m-hero__inner { justify-content: center; align-items: center; text-align: center; }
.m-hero__title { font-size: clamp(44px, 7.2vw, 104px); line-height: .95; letter-spacing: -0.045em; margin: 0; max-width: 14ch; font-weight: 500; }
.m-hero--center .m-hero__title { max-width: 16ch; }
.m-hero--media .m-hero__title em { color: rgba(247,245,240,.7); }
.m-hero__sub { margin: 0; max-width: 36rem; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; opacity: .78; }
.m-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.m-hero--center .m-hero__actions { justify-content: center; }
.m-hero--media .m-pill--secondary { color: #f7f5f0; border-color: rgba(247,245,240,.28); background: rgba(247,245,240,.08); }
.m-hero--media .m-pill--secondary .m-pill__arrow { background: #f7f5f0; color: #0c0c0c; }
.m-hero--media .m-pill--primary { background: #f7f5f0; color: #0c0c0c; }
.m-hero--media .m-pill--primary .m-pill__arrow { background: #0c0c0c; color: #f7f5f0; }
.m-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 13px; border: 1px solid var(--s-border); background: color-mix(in srgb, var(--s-bg) 60%, transparent); backdrop-filter: blur(10px); }
.m-hero--center .m-badge { align-self: center; }
.m-hero--media .m-badge { border-color: rgba(247,245,240,.25); background: rgba(247,245,240,.1); }
.m-badge i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); }
.m-hero__stats { display: flex; gap: 40px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent); }
.m-hero__stats dt { font-size: 30px; font-weight: 300; letter-spacing: -0.03em; }
.m-hero__stats dd { margin: 2px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; opacity: .55; }

/* Entrance choreography (CSS, so it also runs in the static export). */
.m-in-1, .m-in-2, .m-in-3, .m-in-4, .m-in-5 { animation: m-rise .9s var(--m-ease) both; }
.m-in-1 { animation-delay: .15s; } .m-in-2 { animation-delay: .28s; } .m-in-3 { animation-delay: .42s; } .m-in-4 { animation-delay: .56s; } .m-in-5 { animation-delay: .7s; }
@keyframes m-rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes m-settle { from { transform: scale(1.06); } to { transform: none; } }

/* Image + text. */
.m-split { max-width: var(--s-max); margin: 0 auto; padding: 72px 48px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.m-split--right .m-split__media { order: 2; }
.m-split__media { border-radius: var(--s-radius); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--s-bg-alt); }
.m-split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--m-ease); }
.m-split:hover .m-split__media img { transform: scale(1.03); }
.m-split__index { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: var(--s-muted); }
.m-split__title { font-size: clamp(32px, 4vw, 54px); margin: 14px 0 18px; }
.m-split__body { color: var(--s-muted); font-size: 17px; line-height: 1.65; margin: 0 0 20px; max-width: 34rem; }
.m-split__points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.m-split__points li { padding-left: 26px; position: relative; }
.m-split__points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 1px; background: var(--s-text); }

/* Marquee. */
.m-marquee { overflow: hidden; border-block: 1px solid var(--s-border); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.m-marquee--inverse { background: var(--s-text); color: var(--s-bg); border: 0; }
.m-marquee__track { display: flex; width: max-content; animation: m-marquee 36s linear infinite; }
.m-marquee--slow .m-marquee__track { animation-duration: 60s; } .m-marquee--fast .m-marquee__track { animation-duration: 20s; }
.m-marquee__row { display: flex; list-style: none; margin: 0; padding: 0; }
.m-marquee__item { font-size: clamp(22px, 3vw, 40px); letter-spacing: -0.03em; padding: 0 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.m-marquee__item::after { content: "✦"; font-size: .45em; opacity: .4; }
@keyframes m-marquee { to { transform: translateX(-50%); } }

/* Default blocks, restyled. */
.s-hero { padding: 140px 24px 96px; }
.s-hero h1 { font-weight: 500; letter-spacing: -0.045em; line-height: .98; font-size: clamp(44px, 6.5vw, 92px); }
.s-heading h1 { font-size: clamp(40px, 5vw, 68px); letter-spacing: -0.045em; }
.s-heading h2 { font-size: clamp(30px, 3.4vw, 46px); }
.s-text { font-size: 17px; color: #2b2a27; }
.s-feature { background: #fff; border: 1px solid var(--s-border); border-radius: 22px; padding: 28px; transition: transform .3s var(--m-ease), box-shadow .3s; }
.s-feature:hover { transform: translateY(-3px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.s-feature__icon { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: var(--s-muted); }
.s-feature h3 { font-size: 22px; letter-spacing: -0.02em; margin-top: 18px; }
.s-stat__value { font-size: clamp(44px, 5vw, 72px); font-weight: 300; letter-spacing: -0.04em; }
.s-stat__label { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--s-muted); }
.s-quote blockquote { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.2; font-style: italic; letter-spacing: -0.01em; }
.s-quote__author strong { font-weight: 500; }
.s-faq summary { font-weight: 500; font-size: 19px; letter-spacing: -0.015em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.s-faq summary::after { content: "+"; font-weight: 300; font-size: 24px; line-height: 1; transition: transform .25s var(--m-ease); }
.s-faq details[open] summary::after { transform: rotate(45deg); }
.s-cta { margin: 32px 16px; max-width: none; border-radius: 32px; padding: 96px 32px; background: var(--s-text); color: var(--s-bg); }
.s-cta h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.045em; font-weight: 500; }
.s-cta .s-btn { background: var(--s-bg); color: var(--s-text); border-color: var(--s-bg); padding: 13px 28px; }
.s-image img, .s-post-card__img { border-radius: 22px; }
.s-post-card h3 { font-weight: 500; letter-spacing: -0.02em; }
.s-form { background: #fff; border: 1px solid var(--s-border); border-radius: 28px; padding: 36px; }
.s-form input, .s-form textarea { border-radius: 14px; }
.s-form__submit { border-radius: 999px; }
.s-section--dark { background: #0c0c0c; }
.s-footer { border-top: 1px solid var(--s-border); }
.s-footer strong { font-weight: 600; letter-spacing: -0.03em; }

/* Scroll reveals (scripts/reveal.js adds .m-js and .m-in). Without JS everything shows. */
.m-js .s-main [data-block] { transition: opacity .8s var(--m-ease), transform .8s var(--m-ease); }
.m-js .s-main [data-block]:not(.m-in) { opacity: 0; transform: translateY(28px); }

@media (max-width: 860px) {
  .m-hero__inner { padding: 104px 22px 40px; }
  .m-hero--media { margin: 8px; border-radius: 22px; }
  .m-split { grid-template-columns: 1fr; gap: 28px; padding: 48px 22px; }
  .m-split--right .m-split__media { order: 0; }
  .m-hero__stats { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .m-in-1, .m-in-2, .m-in-3, .m-in-4, .m-in-5, .m-hero__media img, .m-hero__media video, .m-marquee__track { animation: none !important; }
  .m-js .s-main [data-block]:not(.m-in) { opacity: 1; transform: none; }
}
