/* ==========================================================================
   Silent Flow — School of Awareness
   Built on Bootstrap 5.3. Tokens first, then layout, components, motion.
   ========================================================================== */

:root {
  /* Palette — warm ivory, charcoal, one restrained earthy accent */
  --sf-ivory: #f2f2e2;
  --sf-paper: #f9f9f0;
  --sf-sand: #e6e6d1;
  --sf-line: #d5d5bf;
  --sf-charcoal: #1f1d1a;
  --sf-ink: #3d3933;
  --sf-muted: #5c574f;       /* 5.6:1 or better on every light surface, incl. sand */
  --sf-clay: #9a4e2b;        /* accent — 5.9:1 on ivory */
  --sf-clay-deep: #7d3d20;
  --sf-sage: #6c7360;

  /* Type */
  --sf-display: "Sansita Swashed", Georgia, serif;   /* headings */
  --sf-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sf-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --sf-section: clamp(5rem, 11vw, 9.5rem);
  --sf-radius: 4px;
  --sf-ease: cubic-bezier(.22, .61, .36, 1);

  /* Bootstrap overrides */
  --bs-body-bg: var(--sf-ivory);
  --bs-body-color: var(--sf-ink);
  --bs-body-font-family: var(--sf-sans);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.7;
  --bs-link-color-rgb: 154, 78, 43;
  --bs-link-hover-color-rgb: 125, 61, 32;
  --bs-border-color: var(--sf-line);
}

html { scroll-behavior: smooth; }
body {
  background: var(--sf-ivory);
  color: var(--sf-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--sf-clay); color: var(--sf-paper); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .display-serif {
  font-family: var(--sf-display);
  color: var(--sf-charcoal);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
  text-wrap: balance;
}
/* No single-word last lines in running text */
p, li, blockquote { text-wrap: pretty; }
.sf-display {
  font-size: clamp(3.1rem, 9vw, 7.75rem);
  font-weight: 500;
  line-height: 1.02;
}
.sf-h1 { font-size: clamp(2.6rem, 6.4vw, 5.25rem); }
.sf-h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.sf-h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; }
/* Heading and quote accents read as plain text */
h1 em, h2 em, h3 em, h4 em, .sf-quote em, .sf-footer__title em { font-style: normal; font-weight: inherit; color: inherit; }

.sf-eyebrow {
  font-family: var(--sf-sans);
  font-size: .8125rem;
  font-weight: 600;
  line-height: var(--bs-body-line-height);   /* same as a <p> when the eyebrow is a section's <h2> */
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sf-muted);
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.sf-eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}
.sf-eyebrow.no-rule::before { display: none; }

.sf-lead {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--sf-ink);
  max-width: 38ch;
}
.sf-body { max-width: 60ch; }
.text-muted-sf { color: var(--sf-muted) !important; }

.sf-quote {
  font-family: var(--sf-display);
  font-size: clamp(2rem, 5vw, 4.1rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--sf-charcoal);
  text-wrap: pretty;   /* wrap as a <p> does, also when the quote is a section's <h2> */
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.sf-nav {
  padding-block: 1.4rem;
  background: transparent;
  box-shadow: 0 1px 0 var(--sf-line);
  transition: padding .4s var(--sf-ease), background-color .4s var(--sf-ease),
              box-shadow .4s var(--sf-ease);
}
.sf-nav.is-scrolled {
  padding-block: .7rem;
  background: rgba(242, 242, 226, .88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--sf-line);
}
.sf-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--sf-charcoal);
  text-decoration: none;
}
.sf-brand:hover { color: var(--sf-charcoal); }
.sf-brand { align-items: flex-start; }
.sf-brand__logo {
  display: block;
  height: 3.4rem;
  width: auto;
  transition: height .4s var(--sf-ease);
}
.sf-nav.is-scrolled .sf-brand__logo { height: 2.75rem; }
.sf-footer .sf-brand__logo { height: 3rem; }
@media (max-width: 575.98px) {
  .sf-brand__logo { height: 2.9rem; }
}
.sf-nav .nav-link {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  color: var(--sf-ink);
  padding-inline: .85rem !important;
  white-space: nowrap;
}
.sf-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .3rem;
  height: 1px;
  background: var(--sf-clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--sf-ease);
}
.sf-nav .nav-link:hover,
.sf-nav .nav-link.active { color: var(--sf-charcoal); }
.sf-nav .nav-link:hover::after,
.sf-nav .nav-link.active::after { transform: scaleX(1); }

/* Contact Us — outlined pill with a soft outer ring */
.sf-contact-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.4rem;
  border: 1.5px solid var(--sf-charcoal);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--sf-charcoal);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .35s var(--sf-ease), color .35s var(--sf-ease);
}
.sf-contact-btn::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1.5px solid var(--sf-line);
  border-radius: inherit;
  pointer-events: none;
}
.sf-contact-btn:hover,
.sf-contact-btn.active {
  background: var(--sf-charcoal);
  color: var(--sf-paper);
}
/* On the Contact page the pill is already filled, so hover moves it to the accent */
.sf-contact-btn.active:hover { background: var(--sf-clay); border-color: var(--sf-clay); }
.sf-contact-btn:focus-visible { outline: 2px solid var(--sf-clay); outline-offset: 10px; }
@media (max-width: 1199.98px) {
  .sf-contact-btn { margin: 1.25rem 0 .5rem 7px; }
}

.sf-toggler {
  border: 0;
  padding: .5rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
}
.sf-toggler span {
  display: block;
  width: 1.6rem;
  height: 1.5px;
  background: var(--sf-charcoal);
  transition: transform .35s var(--sf-ease);
}
.sf-toggler[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.sf-toggler[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 1199.98px) {
  .sf-nav .navbar-collapse {
    padding-block: 1.5rem 1rem;
  }
  .sf-nav:has(.navbar-collapse.show),
  .sf-nav:has(.navbar-collapse.collapsing) {
    background: var(--sf-ivory);
    box-shadow: 0 1px 0 var(--sf-line);
  }
  .sf-nav .nav-link {
    font-family: var(--sf-serif);
    font-size: 1.6rem;
    padding: .4rem 0 !important;
  }
  .sf-nav .nav-link::after { display: none; }
  .sf-nav .nav-link.active { color: var(--sf-clay); }
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn-sf {
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: .95rem;
  --bs-btn-font-size: .95rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: 999px;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  transition: background-color .35s var(--sf-ease), color .35s var(--sf-ease),
              border-color .35s var(--sf-ease), transform .35s var(--sf-ease);
}
.btn-sf .arrow { transition: transform .35s var(--sf-ease); }
.btn-sf:hover .arrow { transform: translateX(4px); }

.btn-sf-dark {
  --bs-btn-bg: var(--sf-charcoal);
  --bs-btn-color: var(--sf-paper);
  --bs-btn-border-color: var(--sf-charcoal);
  --bs-btn-hover-bg: var(--sf-clay);
  --bs-btn-hover-color: var(--sf-paper);
  --bs-btn-hover-border-color: var(--sf-clay);
  --bs-btn-active-bg: var(--sf-clay-deep);
  --bs-btn-active-color: var(--sf-paper);
  --bs-btn-active-border-color: var(--sf-clay-deep);
  --bs-btn-focus-shadow-rgb: 154, 78, 43;
}
.btn-sf-outline {
  --bs-btn-bg: transparent;
  --bs-btn-color: var(--sf-charcoal);
  --bs-btn-border-color: var(--sf-charcoal);
  --bs-btn-hover-bg: var(--sf-charcoal);
  --bs-btn-hover-color: var(--sf-paper);
  --bs-btn-hover-border-color: var(--sf-charcoal);
  --bs-btn-active-bg: var(--sf-charcoal);
  --bs-btn-active-color: var(--sf-paper);
  --bs-btn-focus-shadow-rgb: 31, 29, 26;
}

.sf-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--sf-charcoal);
  text-decoration: none;
  padding-bottom: .2rem;
  background: linear-gradient(var(--sf-clay), var(--sf-clay)) left bottom / 100% 1px no-repeat;
  transition: color .3s var(--sf-ease), background-size .45s var(--sf-ease);
}
.sf-link:hover { color: var(--sf-clay); background-size: 0% 1px; background-position: right bottom; }
.sf-link .arrow { transition: transform .35s var(--sf-ease); }
.sf-link:hover .arrow { transform: translateX(4px); }

:focus-visible {
  outline: 2px solid var(--sf-clay);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.sf-section { padding-block: var(--sf-section); }
/* On the plain page background, a section after the page header or another plain
   section shares one gap instead of doubling it */
:is(.sf-page-head, .sf-section:not(.sf-section--tint, .sf-section--sand, .sf-section--dark))
  + .sf-section:not(.sf-section--tint, .sf-section--sand, .sf-section--dark) { padding-top: 0; }
/* A dark last section runs into the dark footer, so mark where one ends */
main:has(> .sf-section--dark:last-child) + .sf-footer { border-top: 1px solid rgba(249, 249, 240, .12); }
/* g-5 rows pull out 1.5rem per side but the container pads only .75rem —
   on phones that overflows the viewport, so keep the vertical gap and halve the horizontal one */
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}
.sf-section--sand { background: var(--sf-sand); }
.sf-section--tint { background: #e6e6d7; }   /* page bg, 5% darker — same as home hero */
.sf-section--dark {
  background: var(--sf-charcoal);
  color: #d9d2c5;
}
.sf-section--dark h2, .sf-section--dark h3, .sf-section--dark .sf-quote { color: var(--sf-paper); }
.sf-section--dark .sf-eyebrow { color: #a89f90; }
.sf-section--dark .sf-badge { color: #a89f90; border-color: rgba(249, 249, 240, .25); }
.sf-section--dark .btn-sf-outline,
.sf-footer .btn-sf-outline {
  --bs-btn-color: var(--sf-paper);
  --bs-btn-border-color: rgba(249, 249, 240, .5);
  --bs-btn-hover-bg: var(--sf-paper);
  --bs-btn-hover-color: var(--sf-charcoal);
  --bs-btn-hover-border-color: var(--sf-paper);
}

.sf-rule {
  border: 0;
  height: 1px;
  background: var(--sf-line);
  opacity: 1;
  margin: 0;
}

/* Hero */
.sf-hero {
  position: relative;
  background: #e6e6d7;   /* page bg #f2f2e2, 5% darker */
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
}
/* Circle — clipped at the nav line, turning slowly */
.sf-hero__circle {
  --s: min(44vw, 900px);
  position: absolute;
  inset: 6.2rem 0 0 0;   /* starts at the bottom of the nav */
  overflow: hidden;
  pointer-events: none;
}
.sf-hero__circle img {
  position: absolute;
  left: 50%;
  top: calc(var(--s) * -.27);
  width: var(--s);
  height: auto;
  animation: sf-spin 180s linear infinite;
}
@keyframes sf-spin { to { transform: rotate(360deg); } }
@media (max-width: 991.98px) {
  .sf-hero__circle { --s: 95vw; }
  /* filter, not opacity — opacity is driven by data-reveal */
  .sf-hero__circle img { left: 35%; filter: opacity(.3); }
}
.sf-hero__content { position: relative; z-index: 1; }

/* Inner page header */
.sf-page-head {
  padding-top: clamp(9rem, 18vw, 13rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.sf-page-head__art {
  position: absolute;
  right: -4%;
  top: 22%;
  width: min(42vw, 480px);
  color: #546d41;
  opacity: .55;
  pointer-events: none;
}

/* 404 — centred on a soft radial wash; "4 ◯ 4" with the turning circle as the zero */
.sf-404 {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-bottom: clamp(5rem, 10vw, 8rem);
  text-align: center;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, var(--sf-paper) 0%, var(--sf-ivory) 100%);
}
.sf-404 .sf-lead { max-width: 44ch; }
.sf-404__code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.25rem, 1.5vw, 1rem);
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--sf-display);
  font-size: clamp(6.5rem, 22vw, 13rem);
  line-height: .9;
  color: var(--sf-charcoal);
}
.sf-404__zero {
  position: relative;
  display: grid;
  place-items: center;
  width: .9em;
  aspect-ratio: 1;
  border: 1px solid #546d41;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sf-paper) 0%, var(--sf-sand) 100%);
  transform: translateY(.08em);   /* the 4s' ink sits below the line box's centre */
}
/* breathing ring, as around the meditation figure */
.sf-404__zero::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid #546d41;
  border-radius: 50%;
  animation: sf-breathe 6s ease-in-out infinite;
}
.sf-404__zero img {
  width: 88%;
  height: auto;
  opacity: .7;
  animation: sf-spin 60s linear infinite;
}

/* Pathways */
/* Home — intro: text with green rule + three-step path */
.sf-intro__text {
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
  border-left: 1px solid #546d41;
  font-size: 1.08rem;
  line-height: 1.8;
}
.sf-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  padding: 0;
}
/* connecting line — draws across when revealed */
.sf-steps::before {
  content: "";
  position: absolute;
  top: .6rem;
  left: .6rem;
  right: 0;
  height: 1px;
  background: #546d41;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2s var(--sf-ease) .5s;
}
.sf-steps.is-in::before, html:not(.js) .sf-steps::before { transform: scaleX(1); }
.sf-steps__item {
  position: relative;
  padding-top: 2.4rem;
  font-family: var(--sf-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--sf-charcoal);
}
.sf-steps__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid #546d41;
  border-radius: 50%;
  background: var(--sf-ivory);
}
.sf-steps__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #546d41;
}
@media (max-width: 767.98px) {
  .sf-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .sf-steps::before { top: .6rem; bottom: .6rem; left: .6rem; right: auto; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  .sf-steps.is-in::before, html:not(.js) .sf-steps::before { transform: scaleY(1); }
  .sf-steps__item { padding: 0 0 0 2.25rem; line-height: 1.3; }
  .sf-steps__dot { top: .25rem; }
}

/* Home — "The heart of it" quote box */
.sf-heart {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1.5rem, 6vw, 5rem);
  border: 1px solid var(--sf-line);
  border-radius: 1.75rem;
  background: radial-gradient(ellipse at 50% 40%, var(--sf-paper) 0%, var(--sf-sand) 100%);
  text-align: center;
}
.sf-heart__body { max-width: 52rem; margin-inline: auto; }
.sf-heart .sf-eyebrow { color: #546d41; }
.sf-heart__motif {
  position: absolute;
  z-index: -1;
  width: clamp(16rem, 34vw, 28rem);
  height: auto;
  opacity: .4;
  pointer-events: none;
  animation: sf-spin 200s linear infinite;
}
.sf-heart__motif--tl { top: -42%; left: -12%; }
.sf-heart__motif--br { bottom: -42%; right: -12%; animation-direction: reverse; }
@media (max-width: 767.98px) {
  .sf-heart__motif--tl { top: -20%; left: -40%; }
  .sf-heart__motif--br { bottom: -20%; right: -40%; }
}

/* Rishabh — founder intro: framed portrait + facets */
.sf-portrait {
  position: relative;
  isolation: isolate;
  margin: 0 1.25rem 1.25rem 0;
}
/* offset outline frame */
.sf-portrait::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid #546d41;
  border-radius: 1.25rem;
  z-index: -1;
  transition: transform .8s var(--sf-ease);
}
.sf-portrait:hover::before { transform: translate(-.4rem, -.4rem); }
.sf-media.sf-portrait__photo {
  border-radius: 1.25rem;
  box-shadow: 0 30px 60px -40px rgba(31, 29, 26, .6);
}
.sf-portrait__motif {
  position: absolute;
  z-index: -2;
  top: -14%;
  left: -22%;
  width: 70%;
  height: auto;
  opacity: .45;
  pointer-events: none;
  animation: sf-spin 200s linear infinite;
}
.sf-founder__lead {
  font-family: var(--sf-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  color: var(--sf-charcoal);
  max-width: 20ch;
}
.sf-facets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--sf-line);
}
.sf-facets li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .85rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--sf-ink);
}
.sf-facets .sf-paths__num { width: 2.25rem; height: 2.25rem; font-size: .85rem; }
@media (max-width: 575.98px) {
  .sf-facets { grid-template-columns: 1fr; gap: 1rem; }
  .sf-facets li { flex-direction: row; align-items: center; }
}

/* Rishabh — "In his words" quote box (extends .sf-heart) */
.sf-words { text-align: left; padding-inline: clamp(1.5rem, 8vw, 7rem); }
.sf-words__mark {
  display: block;
  height: .55em;
  margin-bottom: .25rem;
  font-family: var(--sf-display);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 1;
  color: #546d41;
}
/* A long passage — set in the text serif, not the swash display face */
.sf-words__quote {
  max-width: 62rem;
  text-wrap: pretty;
  font-family: var(--sf-serif);
  font-weight: 300;
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
  line-height: 1.4;
}
.sf-words__by {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--sf-muted);
}
.sf-words__by img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 1px solid #546d41;
  padding: 2px;
  background: var(--sf-paper);
}
.sf-words__by strong { font-weight: 600; color: var(--sf-charcoal); }

/* Rishabh — "Writings & artwork" panel with fanned artworks */
.sf-explore {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--sf-line);
  border-radius: 1.75rem;
  color: inherit;
  text-decoration: none;
  transition: border-color .5s var(--sf-ease);
}
.sf-explore:hover { color: inherit; border-color: #546d41; }
.sf-explore:hover .sf-link { color: var(--sf-clay); background-size: 0% 1px; background-position: right bottom; }
.sf-explore:hover .sf-link .arrow { transform: translateX(4px); }
.sf-explore__fan {
  position: relative;
  height: clamp(14rem, 24vw, 19rem);
}
.sf-explore__fan img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  filter: drop-shadow(0 18px 24px rgba(31, 29, 26, .18));
  transition: transform .7s var(--sf-ease);
}
.sf-explore__fan img:nth-child(1) { transform: translate(-50%, -50%) translateX(-42%) rotate(-8deg); }
.sf-explore__fan img:nth-child(2) { transform: translate(-50%, -50%); z-index: 1; }
.sf-explore__fan img:nth-child(3) { transform: translate(-50%, -50%) translateX(42%) rotate(8deg); }
.sf-explore:hover .sf-explore__fan img:nth-child(1) { transform: translate(-50%, -50%) translateX(-62%) rotate(-11deg); }
.sf-explore:hover .sf-explore__fan img:nth-child(2) { transform: translate(-50%, -54%); }
.sf-explore:hover .sf-explore__fan img:nth-child(3) { transform: translate(-50%, -50%) translateX(62%) rotate(11deg); }
@media (max-width: 767.98px) {
  .sf-explore { grid-template-columns: 1fr; }
  .sf-explore__fan { order: -1; }
}

/* Home — three pathways list + meditation figure */
.sf-paths {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sf-line);
}
.sf-paths__item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--sf-line);
}
.sf-paths__num {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid #546d41;
  border-radius: 50%;
  font-family: var(--sf-display);
  font-size: 1.05rem;
  color: #546d41;
  transition: background-color .45s var(--sf-ease), color .45s var(--sf-ease);
}
.sf-paths__item h3 { transition: transform .5s var(--sf-ease); }
.sf-paths__item:hover .sf-paths__num { background: #546d41; color: var(--sf-paper); }
.sf-paths__item:hover h3 { transform: translateX(4px); }

.sf-meditate {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 30rem;
  margin-inline: auto;
  aspect-ratio: 1;
  isolation: isolate;
}
/* soft disc */
.sf-meditate::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--sf-paper) 0%, var(--sf-sand) 100%);
  z-index: -2;
}
/* breathing ring */
.sf-meditate::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid #546d41;
  opacity: 0;
  z-index: -1;
  animation: sf-breathe 6s ease-in-out infinite;
}
@keyframes sf-breathe {
  0%   { transform: scale(1);    opacity: .45; }
  70%  { transform: scale(1.08); opacity: 0; }
  100% { transform: scale(1.08); opacity: 0; }
}
.sf-meditate img {
  width: 74%;
  height: auto;
  margin-top: 6%;
  animation: sf-float 6s ease-in-out infinite;
}
@keyframes sf-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (max-width: 991.98px) {
  .sf-meditate { max-width: 22rem; }
}

/* About — four-part orbit diagram */
.sf-orbit {
  position: relative;
  width: min(100%, 26rem);
  aspect-ratio: 1;
  margin-inline: auto;
}
.sf-orbit__ring {
  position: absolute;
  inset: 14%;
  border: 1px solid #546d41;
  border-radius: 50%;
  animation: sf-spin 16s linear infinite;
}
/* small dot travelling around the ring */
.sf-orbit__dot {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #546d41;
}
.sf-orbit__core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sf-paper) 0%, var(--sf-sand) 100%);
  border: 1px solid var(--sf-line);
  animation: sf-core 6s ease-in-out infinite;
}
@keyframes sf-core {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.sf-orbit__node {
  position: absolute;
  padding: .45rem .95rem;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  background: var(--sf-ivory);
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--sf-ink);
  transform: translate(-50%, -50%);
}
.sf-orbit__node--n { top: 14%; left: 50%; }
.sf-orbit__node--e { top: 50%; left: 86%; }
.sf-orbit__node--s { top: 86%; left: 50%; }
.sf-orbit__node--w { top: 50%; left: 14%; }
@media (max-width: 575.98px) {
  .sf-orbit__node { font-size: .8125rem; padding: .35rem .75rem; }
  .sf-orbit__node--e { left: 80%; }
  .sf-orbit__node--w { left: 20%; }
}

/* About — arched frame for line artwork */
.sf-arch {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 30rem;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--sf-line);
  border-radius: 20rem 20rem 1.5rem 1.5rem;
  background: radial-gradient(ellipse at 50% 40%, var(--sf-paper) 0%, var(--sf-sand) 100%);
}
.sf-arch img {
  width: 82%;
  height: auto;
  animation: sf-spin 180s linear infinite;
}
@media (max-width: 991.98px) {
  .sf-arch { max-width: 22rem; }
}

/* Offerings — jump nav + arched "doorway" cards */
.sf-doorways-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sf-doorways-nav a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1.1rem .55rem .55rem;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--sf-ink);
  text-decoration: none;
  transition: border-color .35s var(--sf-ease), background-color .35s var(--sf-ease);
}
.sf-doorways-nav span {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: #546d41;
  color: var(--sf-paper);
  font-family: var(--sf-display);
  font-size: .75rem;
}
.sf-doorways-nav a:hover { border-color: #546d41; background: var(--sf-paper); color: var(--sf-charcoal); }

.sf-door {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: clamp(3.5rem, 6vw, 5rem) clamp(1.75rem, 4vw, 3.25rem) clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--sf-line);
  border-radius: 20rem 20rem 1.5rem 1.5rem;   /* arched doorway */
  background: linear-gradient(180deg, var(--sf-paper) 0%, var(--sf-ivory) 70%);
  text-align: center;
  scroll-margin-top: 7rem;
  transition: border-color .5s var(--sf-ease), transform .5s var(--sf-ease), box-shadow .5s var(--sf-ease);
}
.sf-door p { max-width: 34rem; }
.sf-door .sf-link { margin-top: auto; }
.sf-door .sf-card__num { margin-bottom: 1.5rem; }
.sf-door:hover {
  transform: translateY(-6px);
  border-color: #546d41;
  box-shadow: 0 28px 50px -34px rgba(84, 109, 65, .55);
}
.sf-door:hover .sf-card__num { background: #546d41; color: var(--sf-paper); }
.sf-door:target { border-color: #546d41; }

.sf-badge {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  color: var(--sf-muted);
  vertical-align: middle;
}

/* Cards (teasers) */
.sf-offers__title {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 1.08;
  text-wrap: balance;
}
.sf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  overflow: hidden;
  padding: clamp(2rem, 3.5vw, 2.75rem);
  background: linear-gradient(160deg, var(--sf-paper) 0%, var(--sf-ivory) 100%);
  border: 1px solid var(--sf-line);
  border-radius: 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: transform .5s var(--sf-ease), border-color .5s var(--sf-ease),
              box-shadow .5s var(--sf-ease);
}
/* green bar grows along the bottom on hover */
.sf-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #546d41;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--sf-ease);
}
.sf-card .sf-link { margin-top: auto; }
.sf-card:hover {
  color: inherit;
  transform: translateY(-6px);
  border-color: #546d41;
  box-shadow: 0 28px 50px -34px rgba(84, 109, 65, .55);
}
.sf-card:hover::after { transform: scaleX(1); }
.sf-card__num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 2rem;
  border: 1px solid #546d41;
  border-radius: 50%;
  font-family: var(--sf-display);
  font-size: 1rem;
  color: #546d41;
  transition: background-color .45s var(--sf-ease), color .45s var(--sf-ease);
}
.sf-card:hover .sf-card__num { background: #546d41; color: var(--sf-paper); }

/* --------------------------------------------------------------------------
   Image / artwork slots (replace with real assets later)
   -------------------------------------------------------------------------- */
.sf-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--sf-radius);
  background: var(--sf-sand);
  aspect-ratio: var(--ratio, 4 / 5);
}
.sf-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--sf-ease);
}
a:hover .sf-media img, .sf-media:hover img { transform: scale(1.03); }
/* Artwork images that already include their frame — show uncropped */
.sf-media--framed { --ratio: 288 / 418; background: none; border-radius: 0; }

.sf-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--sf-muted);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  background:
    radial-gradient(circle at 30% 30%, rgba(154, 78, 43, .08), transparent 60%),
    var(--sf-sand);
}
.sf-placeholder svg {
  position: absolute;
  inset: 12% 12% 22%;
  width: 76%;
  height: 66%;
  color: var(--sf-clay);
  opacity: .5;
}

/* Gallery */
.sf-gallery-item .meta { font-size: .85rem; color: var(--sf-muted); }
/* Artwork card — one CSS frame (shaded edge + cream mount) around the image and its
   info, so the edge runs unbroken on all four sides */
.sf-gallery-item__frame {
  padding: 1rem;
  border: .7rem solid #ebe4c4;
  background: #faf8ec;
  box-shadow:
    inset 0 0 0 1px rgba(150, 132, 80, .25),   /* where the frame meets the mount */
    inset 0 0 10px rgba(150, 132, 80, .18),
    0 0 0 1px rgba(150, 132, 80, .18),          /* outer edge of the frame */
    0 14px 26px -18px rgba(110, 95, 50, .45);
}
/* The image files carry their own painted frame — zoom past it to show just the
   painting, and keep the card shorter than the artwork's own 288 / 418 */
.sf-gallery-item .sf-media { --ratio: 4 / 5; }
.sf-gallery-item .sf-media img { transform: scale(1.24); }
.sf-gallery-item .sf-media:hover img { transform: scale(1.28); }
.sf-gallery-item__info {
  padding-top: 1rem;
  font-family: var(--sf-serif);
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--sf-charcoal);
  text-align: left;   /* title, details and the price row share one left edge */
}
.sf-gallery-item__info h3 { margin: 0; font: inherit; color: inherit; }
.sf-gallery-item__info .meta { display: block; margin-top: .15rem; font-family: var(--sf-sans); }
.sf-gallery-item__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px solid var(--sf-line);
}
.sf-gallery-item .price {
  font-family: var(--sf-serif);
  font-size: 1.05rem;
  color: var(--sf-ink);
}
.sf-gallery-item__btn {
  font-family: var(--sf-sans);   /* not the card's serif — matches every other button */
  --bs-btn-padding-x: 1.2rem;
  --bs-btn-padding-y: .55rem;
  --bs-btn-font-size: .875rem;
  justify-content: center;
}
.sf-gallery-item__btn.is-sold {
  --bs-btn-bg: transparent;
  --bs-btn-color: var(--sf-muted);
  --bs-btn-border-color: var(--sf-line);
  cursor: default;
  pointer-events: none;
}
.sf-gallery-item.is-sold .price { color: var(--sf-muted); }
/* Click-to-enlarge — the image is a button; the dialog shows the whole artwork, frame and all */
.sf-gallery-item__zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.sf-gallery-item__zoom:focus-visible { outline: 2px solid var(--sf-clay); outline-offset: 3px; }
.sf-lightbox {
  --lb-pad: clamp(1rem, 4vw, 3rem);
  --lb-chrome: calc(2 * var(--lb-pad));   /* vertical padding, used to size the image */
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--lb-pad);
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}
.sf-lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: sf-lightbox-in .35s var(--sf-ease);
}
.sf-lightbox::backdrop {
  background: rgba(24, 22, 20, .96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
html.sf-lightbox-open { overflow: hidden; }   /* no page scroll behind the open dialog */
.sf-lightbox__img {
  /* Fill the height left after padding, caption and price row (~7.5rem), or the width on
     narrow phones; artworks are 288 / 418 */
  width: min(100%, calc((100vh - var(--lb-chrome) - 7.5rem) * 288 / 418));
  width: min(100%, calc((100dvh - var(--lb-chrome) - 7.5rem) * 288 / 418));
  height: auto;
  cursor: default;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.sf-lightbox__caption {
  margin: 0;
  font-family: var(--sf-serif);
  font-size: 1.15rem;
  color: var(--sf-paper);
  cursor: default;
}
/* Price and Shop now / Sold out under the caption — light versions for the dark backdrop */
.sf-lightbox__buy {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: -.25rem;
  cursor: default;
}
.sf-lightbox__buy .price {
  font-family: var(--sf-serif);
  font-size: 1.15rem;
  color: var(--sf-paper);
}
.sf-lightbox__buy .btn-sf-dark {
  --bs-btn-bg: var(--sf-paper);
  --bs-btn-color: var(--sf-charcoal);
  --bs-btn-border-color: var(--sf-paper);
  --bs-btn-hover-bg: var(--sf-clay);
  --bs-btn-hover-color: var(--sf-paper);
  --bs-btn-hover-border-color: var(--sf-clay);
}
.sf-lightbox__buy .sf-gallery-item__btn.is-sold {
  --bs-btn-color: rgba(249, 249, 240, .6);
  --bs-btn-border-color: rgba(249, 249, 240, .3);
}
.sf-lightbox__buy.is-sold .price { color: rgba(249, 249, 240, .6); }
.sf-lightbox__close,
.sf-lightbox__nav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(249, 249, 240, .4);
  border-radius: 50%;
  background: transparent;
  color: var(--sf-paper);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s var(--sf-ease);
}
.sf-lightbox__close:hover,
.sf-lightbox__nav:hover { background: rgba(249, 249, 240, .12); }
.sf-lightbox__close:focus,
.sf-lightbox__nav:focus { outline: none; }
.sf-lightbox__close:focus-visible,
.sf-lightbox__nav:focus-visible { outline: 2px solid var(--sf-paper); outline-offset: 3px; }
/* Previous / next — vertically centred at the sides */
.sf-lightbox__nav {
  top: 50%;
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.3rem;
  transform: translateY(-50%);
}
.sf-lightbox__nav--prev { right: auto; left: 1rem; }
.sf-lightbox__nav--next { right: 1rem; }
@media (max-width: 575.98px) {
  /* Phones: room above for × and below for the arrows, so neither covers the image or price */
  .sf-lightbox { padding: 4.25rem 1rem 5.25rem; --lb-chrome: 9.5rem; }
  .sf-lightbox__nav { top: auto; bottom: 1rem; width: 2.75rem; height: 2.75rem; transform: none; }
}
@keyframes sf-lightbox-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sf-lightbox[open] { animation: none; } }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.sf-form .form-label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sf-muted);
  margin-bottom: .35rem;
}
.sf-form .form-control,
.sf-form .form-select {
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--sf-ink);
  border-radius: 0;
  padding: .7rem 0;
  font-size: 1.1rem;
  color: var(--sf-charcoal);
  box-shadow: none;
  transition: border-color .3s var(--sf-ease);
}
.sf-form .form-select { padding-right: 2rem; background-position: right .1rem center; }
.sf-form .form-control:focus,
.sf-form .form-select:focus {
  border-bottom-color: #546d41;
  box-shadow: 0 1px 0 0 #546d41;
}
.sf-form .form-control { border-bottom-color: var(--sf-line); }
.sf-form .form-select { border-bottom-color: var(--sf-line); }
.sf-form textarea.form-control { resize: vertical; min-height: 8rem; }

/* Contact — info panel + form card */
.sf-contact-aside {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 100%;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--sf-line);
  border-radius: 1.75rem;
  background: #e6e6d7;
}
.sf-contact-aside__motif {
  position: absolute;
  z-index: -1;
  right: -30%;
  bottom: -30%;
  width: 80%;
  height: auto;
  opacity: .35;
  pointer-events: none;
  animation: sf-spin 200s linear infinite;
}
/* Social icons — round outlined buttons; the footer gets a light-on-dark version */
.sf-social {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sf-social a,
.sf-footer .sf-social a {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--sf-line);
  border-radius: 50%;
  color: var(--sf-charcoal);
  transition: background-color .35s var(--sf-ease), color .35s var(--sf-ease), border-color .35s var(--sf-ease);
}
.sf-social a:hover { background: var(--sf-charcoal); border-color: var(--sf-charcoal); color: var(--sf-paper); }
.sf-social svg { width: 1.3rem; height: 1.3rem; }
.sf-footer .sf-social { margin-top: 1.25rem; }
/* 992–1199px: the Connect column is too narrow for four 2.75rem icons on one row */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .sf-footer .sf-social { gap: .45rem; }
  .sf-footer .sf-social a { width: 2.5rem; height: 2.5rem; }
}
.sf-footer .sf-social a { border-color: rgba(249, 249, 240, .22); color: var(--sf-paper); }
.sf-footer .sf-social a:hover { background: var(--sf-paper); border-color: var(--sf-paper); color: var(--sf-charcoal); }
.sf-contact-social { margin-top: 2.5rem; }
/* On the contact card, match the green email icon beside it */
.sf-contact-social .sf-social a { width: 3rem; height: 3rem; border-color: #546d41; color: #546d41; background: var(--sf-ivory); }
.sf-contact-social .sf-social a:hover { background: #546d41; border-color: #546d41; color: var(--sf-paper); }
.sf-contact-mail { display: flex; align-items: center; gap: 1rem; }
.sf-contact-mail__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid #546d41;
  border-radius: 50%;
  color: #546d41;
  background: var(--sf-ivory);
}
.sf-contact-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--sf-line);
  border-radius: 1.75rem;
  background: var(--sf-paper);
}
.sf-contact-card .sf-confirm { padding: 0; border: 0; background: none; }
.sf-confirm__tick {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: #546d41;
  color: var(--sf-paper);
}
.sf-form .form-control.is-invalid,
.sf-form .form-select.is-invalid { border-bottom-color: #a3302a; background-image: none; }
.sf-form .invalid-feedback { color: #a3302a; }
.sf-form__error { padding: .85rem 1rem; border-left: 2px solid #a3302a; background: rgba(163, 48, 42, .06); color: #a3302a; font-size: .95rem; }
.sf-form__error a { color: inherit; }
.sf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sf-confirm {
  display: none;
  padding: 2.5rem;
  border: 1px solid var(--sf-line);
  background: var(--sf-paper);
  border-radius: var(--sf-radius);
}
.sf-confirm.is-visible { display: block; animation: sf-fade-up .8s var(--sf-ease) both; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.sf-footer {
  background: var(--sf-charcoal);
  color: #b9b1a4;
  padding-block: clamp(4rem, 8vw, 6.5rem) 2rem;
  font-size: .95rem;
}
.sf-footer .sf-brand, .sf-footer .sf-brand:hover { color: var(--sf-paper); }
/* tagline, not a heading — styled like an h2 so it doesn't repeat in every page's outline */
.sf-footer__title {
  font-family: var(--sf-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--sf-paper);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}
.sf-footer a:where(:not(.btn)) { color: #ddd6ca; text-decoration: none; transition: color .3s var(--sf-ease); }
/* Light-on-light hover is too faint to notice, so footer text links also gain an underline */
.sf-footer a:where(:not(.btn)):hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 4px; }
.sf-footer__label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a39b8e;   /* 6:1 on charcoal */
  margin-bottom: 1rem;
}
.sf-footer ul { list-style: none; padding: 0; margin: 0; }
/* Explore — six short links in two columns rather than one long list */
.sf-footer__links--cols { columns: 2; column-gap: 1.5rem; }
.sf-footer__links--cols li { break-inside: avoid; }
.sf-footer ul a, .sf-footer__legal a, .sf-footer__credit a { display: inline-block; padding-block: .6rem; }
/* Powered by Dreamscape — icon before the name */
.sf-credit__icon { width: 1.1rem; height: 1.1rem; margin-right: .35rem; vertical-align: -.25em; }
.sf-footer__bottom {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .875rem;
  color: #a39b8e;
  display: grid;
  gap: 1rem;
  align-items: center;
}
/* Brand left, Privacy · Terms centred, credit right; stacked on phones */
@media (min-width: 768px) {
  .sf-footer__bottom { grid-template-columns: 1fr auto 1fr; gap: 2rem; }
  .sf-footer__credit { justify-self: end; }
}

/* --------------------------------------------------------------------------
   Motion — subtle, purposeful, and fully disabled for reduced-motion users
   -------------------------------------------------------------------------- */
@keyframes sf-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--sf-ease), transform 1s var(--sf-ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero headline — words rise in on load (hidden until split to avoid a flash) */
.js .sf-split { visibility: hidden; }
.js .sf-split.is-split { visibility: visible; }
.js .sf-split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* room for swash tails so the clip doesn't cut them off */
  padding: .1em .15em .15em;
  margin: -.1em -.15em -.15em;
}
.js .sf-split .w > span {
  display: inline-block;
  transform: translateY(105%);
  animation: sf-rise 1.1s var(--sf-ease) forwards;
  animation-delay: calc(.15s + var(--i) * .09s);
}
@keyframes sf-rise { to { transform: none; } }

/* Line sketch draws itself */
.sf-draw path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.js .sf-draw path {
  stroke-dasharray: var(--len, 3000);
  stroke-dashoffset: var(--len, 3000);
}
.js .sf-draw.is-in path {
  animation: sf-draw 3.6s var(--sf-ease) forwards;
  animation-delay: var(--d, .3s);
}
@keyframes sf-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .sf-split .w > span { transform: none; }
  .js .sf-draw path { stroke-dashoffset: 0; }
  .sf-hero__circle img, .sf-404__zero img, .sf-404__zero::after, .sf-heart__motif, .sf-contact-aside__motif, .sf-portrait__motif, .sf-orbit__ring, .sf-orbit__core, .sf-arch img, .sf-meditate img, .sf-meditate::after { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Legal pages (privacy.html, terms.html) — contents list beside a comfortable
   reading column; the list folds into "On this page" on phones
   -------------------------------------------------------------------------- */
.sf-legal__updated {
  margin: 2rem 0 0;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sf-muted);
}

.sf-toc {
  border: 1px solid var(--sf-line);
  border-radius: 1rem;
  background: var(--sf-paper);
}
.sf-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sf-charcoal);
  cursor: pointer;
  list-style: none;
}
.sf-toc summary::-webkit-details-marker { display: none; }
.sf-toc summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; letter-spacing: 0; }
.sf-toc[open] summary::after { content: "\2212"; }
.sf-toc ol {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  list-style: none;
  counter-reset: toc;
}
.sf-toc li { counter-increment: toc; }
.sf-toc a {
  display: flex;
  gap: .6rem;
  padding: .4rem 0;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--sf-muted);
  text-decoration: none;
  transition: color .3s var(--sf-ease);
}
.sf-toc a::before { content: counter(toc) "."; min-width: 1.3rem; color: var(--sf-muted); font-variant-numeric: tabular-nums; }
.sf-toc a:hover { color: var(--sf-charcoal); }
.sf-toc a[aria-current="true"] { color: var(--sf-clay); }
.sf-toc a[aria-current="true"]::before { color: var(--sf-clay); }

/* Desktop: the list stays in view beside the text, always open, no frame */
@media (min-width: 992px) {
  .sf-toc {
    position: sticky;
    top: 7rem;
    border: 0;
    border-left: 1px solid var(--sf-line);
    border-radius: 0;
    background: none;
  }
  .sf-toc summary { padding: 0 0 .75rem 1.25rem; cursor: default; pointer-events: none; }
  .sf-toc summary::after,
  .sf-toc[open] summary::after { content: none; }
  .sf-toc ol { padding: 0 0 0 1.25rem; }
}

.sf-legal { max-width: 68ch; }
.sf-legal h2 {
  margin: 3rem 0 .9rem;
  font-family: var(--sf-serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  scroll-margin-top: 7rem;   /* clear the fixed navbar when jumped to */
}
.sf-legal h2:first-child { margin-top: 0; }
.sf-legal__num { color: var(--sf-clay); }
.sf-legal p, .sf-legal li { line-height: 1.75; color: var(--sf-ink); }
.sf-legal ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.sf-legal li { margin-bottom: .4rem; }
.sf-legal a { color: var(--sf-clay); text-underline-offset: 3px; }
.sf-legal a:hover { color: var(--sf-clay-deep); }
.sf-legal__next {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sf-line);
  font-weight: 600;
}
.sf-legal__next a { text-decoration: none; }
