/* ==========================================================================
   Qi Gong & Sound Healing — stylesheet
   Structure: fonts · tokens · base · header · sections & grid · blocks ·
   components (buttons, forms, accordion, video) · motion · responsive
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/marcellus-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --cream: #fff5d9;
  --navy: #182241;
  --slate: #536c7c;
  --mist: #7b949c;
  --deep: #213c4e;

  /* type */
  --font-head: "Marcellus", serif;
  --font-body: "Inter", sans-serif;
  --font-ui: "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --max: 1445px;
  --gutter: 3vw;
  --gutter-m: 6vw;
  --gap: 11px;
  --header-height: 127.34px;

  /* motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fluid type: each element sets --v (its size multiplier). Desktop and
   landscape scale with the viewport width, portrait phones with its height. */
.rte h1, .rte h2, .rte h3, .rte h4, .acc__title, .site-title, .btn, .mobile-menu__cta .btn, .qg-title, .qg-summary__title, .qg-shop h2, .qg-shop h3 {
  font-size: min(calc((var(--v) - 1) * 1.2vw + 1rem), max(calc((var(--v) - 1) * 0.012 * var(--max) + 1rem), calc(var(--v) * 1rem)));
}
@media screen and (max-width: 767px) and (orientation: portrait) {
  .rte h1, .rte h2, .rte h3, .rte h4, .acc__title, .site-title, .btn, .mobile-menu__cta .btn, .qg-title, .qg-summary__title, .qg-shop h2, .qg-shop h3 {
    font-size: calc((var(--v) - 1) * calc(0.012 * min(100vh, 900px)) + 1rem);
  }
}

/* ---------- Themes (section colour schemes) ---------- */
.theme-default, .theme-white {
  --bg: var(--cream); --text: var(--navy); --head: var(--navy);
  --link: var(--slate); --hlink: var(--slate);
  --btn-bg: var(--slate); --btn-fg: var(--cream); --btn2: var(--slate); --btn2-fg: var(--cream);
}
.theme-bright-inverse {
  --bg: var(--cream); --text: var(--slate); --head: var(--slate);
  --link: var(--slate); --hlink: var(--slate);
  --btn-bg: var(--slate); --btn-fg: var(--cream); --btn2: var(--slate); --btn2-fg: var(--cream);
}
.theme-bright {
  --bg: var(--slate); --text: var(--cream); --head: var(--cream);
  --link: var(--cream); --hlink: var(--cream);
  --btn-bg: var(--cream); --btn-fg: var(--slate); --btn2: var(--cream); --btn2-fg: var(--slate);
}
.theme-black, .theme-black-bold {
  --bg: var(--navy); --text: var(--cream); --head: var(--cream);
  --link: var(--cream); --hlink: var(--cream);
  --btn-bg: var(--cream); --btn-fg: var(--navy); --btn2: var(--cream); --btn2-fg: var(--navy);
}
.theme-black { --hlink: var(--mist); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }

.skip-link {
  position: absolute; left: 0; top: 0; z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--navy); color: var(--cream);
  transform: translateY(-120%);
}
.skip-link:focus-visible { transform: none; outline: 2px solid var(--cream); outline-offset: -4px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  --fg: var(--navy);
  --hbtn-bg: var(--slate); --hbtn-fg: var(--cream);
  position: absolute; top: 0; left: 0; z-index: 10;
  width: 100%;
  color: var(--fg);
}
.site-header.theme-black-bold { --fg: var(--cream); --hbtn-bg: var(--cream); --hbtn-fg: var(--navy); }

.header__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  width: calc(100% - 6vw); max-width: var(--max);
  margin: 0 auto;
  padding: 2.2vw 0;
}
.site-title {
  --v: 2.6;
  flex: none;
  color: var(--fg);
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.3;
  transition: color 0.3s var(--ease);
}
.site-nav {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  padding-left: 1.6vw;
}
.site-nav a {
  display: flex; align-items: center;
  padding: 0.1em 0;
  color: var(--fg);
  line-height: 24px;
}
.site-nav a + a { margin-left: 2.3vw; }
.site-nav a[aria-current="page"] {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: repeat-x;
  background-size: 1px 1px;
  background-position: 0 calc(100% - 0.1em);
}
.site-header .btn--header {
  --bv: 0.9;
  margin-left: 1.6vw;
  border-color: var(--hbtn-fg);
  background: var(--hbtn-bg); color: var(--hbtn-fg);
}

/* burger (mobile only) */
.burger {
  display: none;
  flex: none;
  width: 50px; padding: 1px 6px;
  background: none; border: 0;
  color: var(--fg);
  justify-content: flex-end;
}
.burger__box { position: relative; display: block; width: 35px; height: 35px; }
.burger__bar {
  position: absolute; left: 0; top: 50%;
  width: 100%; height: 1px; margin-top: -0.5px;
  background: currentColor;
  transition: transform 0.25s cubic-bezier(0.2, 0.6, 0.3, 1);
}
.burger__bar--top { transform: translateY(-5.5px); }
.burger__bar--mid { transform: scale(0); }
.burger__bar--bottom { transform: translateY(5.5px); }
.menu-open .burger__bar--top { transform: rotate(45deg); }
.menu-open .burger__bar--bottom { transform: rotate(-45deg); }
.menu-open .burger__bar--top, .menu-open .burger__bar--bottom { left: 15%; width: 70%; }

/* mobile menu overlay */
.mobile-menu {
  position: fixed; top: 0; left: 0; z-index: 0;
  width: 100%; height: 100%; height: 100dvh;
  padding-top: var(--header-height);
  display: none; flex-direction: column;
  background: var(--cream); color: var(--navy);
  text-align: center;
  visibility: hidden; opacity: 0;
  transition: visibility 0.6s var(--ease), opacity 0.4s var(--ease);
}
.mobile-menu__nav {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  transform: translateY(20px);
  transition: transform 0.6s var(--ease);
}
.mobile-menu__nav a {
  display: block; padding: 0 3vw;
  font-size: 8.5vw; line-height: 1;
  margin: 3vw 5vw;
  color: var(--navy);
  transition: opacity 0.25s var(--ease);
}
@media (min-width: 481px) { .mobile-menu__nav a { font-size: 6.6vw; } }
@media (min-width: 768px) { .mobile-menu__nav a { font-size: 6vw; } }
.mobile-menu__cta {
  --v: 1.2;
  padding: 4vw 6vw 6vw;
  transform: translateY(100%);
  transition: transform 0.6s var(--ease);
}
.mobile-menu__cta .btn { min-width: 210px; background: var(--slate); color: var(--cream); font-size: 1.2rem; }
.menu-open .mobile-menu { visibility: visible; opacity: 1; }
.menu-open .mobile-menu__nav, .menu-open .mobile-menu__cta { transform: none; }
.menu-open .site-header { --fg: var(--navy); }
.menu-open { overflow: hidden; }

@media (max-width: 799px), (pointer: coarse) and (max-width: 1024px) {
  .header__inner { width: 100%; padding: clamp(14px, 5vw, 28px) 6vw; max-width: none; }
  /* wordmark: sized by width so it stays on one line (≈11.7em wide) beside the burger from 320px up */
  .site-header .site-title { font-size: clamp(1.15rem, 5.9vw, 1.75rem); white-space: nowrap; flex: 0 1 auto; }
  .site-header .site-nav, .site-header .btn--header { display: none; }
  .site-header .burger { display: flex; margin-left: auto; }
  .site-header .mobile-menu { display: flex; }
}

/* ---------- Sections & fluid grid ---------- */
.section {
  position: relative;
  display: flex; align-items: center;
  min-height: 33vh;
  background: var(--bg);
  color: var(--text);
}
.section.is-medium { min-height: 66vh; }
.section.is-custom { min-height: 1vh; }
.section[data-first] { padding-top: var(--header-height); }

.section__bg { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
.section__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.section__overlay { position: absolute; inset: 0; background: var(--bg); }

.section__inner {
  position: relative;
  display: flex; justify-content: center;
  width: 100%;
  padding: 3.3vmax 0;
}
.is-medium .section__inner { padding: 6.6vmax 0; }
.is-custom .section__inner { padding: calc(1vmax / 10) 0; }

.fluid {
  --edge: calc(var(--gutter-m) - var(--gap));
  --cell: calc((var(--max) - (var(--gap) * 7)) / 8);
  position: relative;
  display: grid;
  width: 100%;
  grid-template-rows: repeat(var(--rows-m), minmax(24px, auto));
  grid-template-columns: minmax(var(--edge), 1fr) repeat(8, minmax(0, var(--cell))) minmax(var(--edge), 1fr);
  gap: var(--gap);
  overflow-x: clip;
}
@media (min-width: 768px) {
  .fluid {
    --edge: calc(var(--gutter) - var(--gap));
    --cell: calc((var(--max) - (var(--gap) * 23)) / 24);
    --container: min(var(--max), calc(100vw - var(--gutter) * 2));
    grid-template-rows: repeat(var(--rows), minmax(calc(var(--container) * 0.0215), auto));
    grid-template-columns: minmax(var(--edge), 1fr) repeat(24, minmax(0, var(--cell))) minmax(var(--edge), 1fr);
  }
}

/* ---------- Blocks ---------- */
.block {
  position: relative;
  grid-area: var(--m);
  z-index: var(--zm, var(--z, auto));
  display: flex; flex-direction: column; justify-content: flex-start;
  min-width: 0;
}
@media (min-width: 768px) {
  .block { grid-area: var(--d); z-index: var(--z, auto); }
  .block.is-sticky { position: sticky; top: var(--stick); }
  .block[data-va="center"] { justify-content: center; }
  .block[data-va="end"] { justify-content: flex-end; }
}
.block--button, .block--image, .block--shape, .block--hr, .block--map, .block--stack { justify-content: center; }
.block--inline { grid-area: auto; z-index: auto; width: 100%; }
.block--text { background: var(--bb, transparent); border-radius: var(--br, 0); }
.has-scale { transform: scale(var(--sc)); }

/* text */
.rte { width: 100%; }
.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }
.rte p { margin: 5px 0 0; }
.rte h1, .rte h2, .rte h3, .rte h4, .acc__title {
  margin: 2rem 0;
  color: var(--head);
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 0;
}
.rte h1 { --v: 4.5; line-height: calc(1.3 * (1 + (1 - var(--v)) / 25)); }
.rte h2 { --v: 3.3; line-height: calc(1.3 * (1 + (1 - var(--v)) / 25)); }
.rte h3 { --v: 1.8; line-height: calc(1.3 * (1 + (1 - var(--v)) / 25)); }
.rte h4, .acc__title { --v: 1.2; line-height: calc(1.3 * (1 + (1 - var(--v)) / 25)); }
.rte a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.rte h1 a, .rte h2 a, .rte h3 a, .rte h4 a { color: var(--hlink); }
.rte strong { font-weight: 700; }
.rte ul { margin: 1rem 0 0; padding: 0 0 0 40px; }
.rte li p { margin: 0.5rem 0; }
.tc-cream { color: var(--cream); }
.tc-navy { color: var(--navy); }

/* buttons */
.btn-wrap { width: 100%; text-align: center; }
.btn-wrap.is-stretched { height: 100%; }
.btn {
  --bv: 1;
  --v: var(--bv);
  display: inline-block;
  padding: 1.5rem 2.2rem;
  border: 0 solid var(--btn-fg);
  border-radius: 300px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: normal;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.1s linear;
}
.btn:hover { opacity: 0.8; }
.btn:active { opacity: 0.65; }
.btn--secondary {
  --bv: 1.1;
  padding: calc(1.5rem - 2px) calc(2.2rem - 2px);
  border: 2px solid var(--btn2);
  background: transparent; color: var(--btn2);
  transition: background-color 0.1s linear, color 0.1s linear;
}
.btn--secondary:hover { opacity: 1; background: var(--btn2); color: var(--btn2-fg); }
.btn--secondary:active { opacity: 0.85; }
.is-stretched .btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  padding-top: 0; padding-bottom: 0;
}

/* images */
/* Images are absolutely positioned so their natural size never stretches grid rows */
.img-wrap { position: relative; flex: 1 1 0; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.img-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.img { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: var(--r, 0); }
.img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.img--fit { width: auto; max-width: 100%; aspect-ratio: var(--ar); }
.img--fit img { object-fit: contain; }

/* shapes, rules, stacks, map */
.shape { width: 100%; height: 100%; background: var(--fill); border-radius: var(--r, 0); }
.rule { width: 100%; height: 1px; margin: 8px 0; border: 0; background: var(--text); }
.stack { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.stack__item { display: flex; }
.map { position: relative; display: block; width: 100%; height: 100%; }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .map img { object-fit: none; object-position: 50% 46%; } }

/* ---------- Accordion ---------- */
.acc { margin: 0; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.acc__item { border-bottom: 1px solid currentColor; }
.acc__title { margin: 0; padding: 0; }
.acc__title button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 30px 0;
  background: none; border: 0;
  color: inherit; font: inherit; line-height: normal; letter-spacing: inherit; text-align: left;
}
.acc__title button > span:first-child { padding-right: 24px; }
.acc__icon { position: relative; flex: none; width: 24px; height: 24px; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 0; top: 11.5px;
  width: 100%; height: 1px; background: currentColor;
  transition: transform 0.25s;
}
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon::after { transform: rotate(0); }
.acc__panel { overflow: hidden; }
.acc__body { padding: 24px 0 16px; }

/* ---------- Form ---------- */
.form { width: 100%; }
.field-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.field-title { padding: 0 0 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
.field { position: relative; display: flow-root; margin: 0 0 20px; }
.field label:not(.check) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 11px; padding: 0 0 4px; cursor: pointer; }
.field-group .field label { gap: 0 7.79px; padding: 0 0 2px; margin-top: 4px; font-size: 0.892rem; line-height: 1.5; cursor: default; }
.label-text { white-space: nowrap; }
.req { font-size: 0.892rem; line-height: 1.5; opacity: 0.7; }
.field-group .req { line-height: 1; }
.control { position: relative; display: block; }
.control .wpcf7-form-control-wrap { display: block; }
.control input, .control textarea {
  display: block; width: 100%;
  padding: 5px 10px;
  border: 1px solid transparent; border-radius: 10px;
  background: rgba(255, 245, 217, 0.8); color: var(--navy);
  font-weight: 300; line-height: 24px;
  transition: background-color 0.15s cubic-bezier(0.33, 1, 0.68, 1);
}
.control input:focus, .control textarea:focus { background: rgba(255, 245, 217, 0.95); }
.control input { height: 36px; }
.control textarea { height: 100px; min-height: 100px; resize: vertical; }
.control input:focus-visible, .control textarea:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.control .wpcf7-not-valid, .control .wpcf7-not-valid:focus { background: rgba(255, 225, 217, 0.95); box-shadow: 0 0 0 1px #c0392b; }
.wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 0.892rem; line-height: 1.4; color: var(--cream); }

.option { height: 22.58px; margin: 6px 0 4px; font-size: 0.892rem; line-height: 1.5; }
.option .wpcf7-form-control-wrap, .option .wpcf7-checkbox, .option .wpcf7-list-item { display: block; margin: 0; }
.option label { display: inline-flex; align-items: center; gap: 11px; padding-right: 4px; cursor: pointer; }
.option input[type="checkbox"] { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.option .wpcf7-list-item-label { position: relative; display: inline-flex; align-items: center; gap: 11px; }
.option .wpcf7-list-item-label::before {
  content: ""; flex: none; box-sizing: border-box; width: 13px; height: 13px; margin: 1px;
  border: 1px solid rgba(24, 34, 65, 0.55); border-radius: 50%;
}
.option .wpcf7-list-item-label::after {
  content: ""; position: absolute; left: 3.4px; top: 50%; width: 8.25px; height: 8.25px; margin-top: -4.125px;
  border-radius: 50%; background: var(--cream); transform: scale(0); transition: transform 0.15s;
}
.option input:checked + .wpcf7-list-item-label::after { transform: scale(1); }
.option input:focus-visible + .wpcf7-list-item-label::before { outline: 2px solid var(--cream); outline-offset: 2px; }

/* Contact Form 7 states */
.wpcf7 { width: 100%; }
.wpcf7 form { width: 100%; }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.wpcf7 form .wpcf7-response-output { display: none; margin: 16px 0 0; padding: 0; border: 0; }
.wpcf7 form.sent .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output { display: block; }
.wpcf7 .wpcf7-spinner, .wpcf7 .hidden-fields-container { display: none; }
.wpcf7 form.submitting .btn--submit { opacity: 0.6; pointer-events: none; }
.btn--submit { margin: 0; line-height: 1.3; }


/* ---------- Video ---------- */
/* Control sizes follow the player's width, like the source's player (small < ~500px, large above) */
.video { position: relative; width: 100%; aspect-ratio: var(--ar); background: #000; overflow: hidden; container-type: inline-size; }
.video video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.video__play {
  --size: 44px; --glyph: 26px;
  position: absolute; left: 50%; top: 50%;
  width: var(--size); height: var(--size); transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border: 0; border-radius: 100%;
  background: rgba(0, 0, 0, 0.5); color: #fff; opacity: 0.9;
  transition: opacity 0.2s, background-color 0.2s;
}
.video__play:hover { opacity: 1; background: rgba(0, 0, 0, 0.7); }
.video__play svg { width: var(--glyph); height: var(--glyph); margin-left: 2px; }
.video.is-playing .video__play { opacity: 0; pointer-events: none; }

.video__bar {
  --pad-x: 10px; --pad-b: 3.5px;
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 72px var(--pad-x) var(--pad-b);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  color: #fff;
  font-family: var(--font-ui); font-size: 12px; font-weight: 400; line-height: 20.4px;
  transition: opacity 0.25s;
}
.video.is-playing:not(:hover):not(:focus-within) .video__bar { opacity: 0; }
.video__row { display: flex; align-items: center; margin-bottom: 3px; }
.video__time { font-variant-numeric: tabular-nums; }
.video__sep { margin: 0 4px; }
.video__spacer { flex: 1; }
.video__btn { display: grid; place-items: center; width: 24px; height: 24px; margin-left: 20px; padding: 0; border: 0; border-radius: 4px; background: none; color: #e7e7e7; }
.video__btn svg { width: 24px; height: 24px; }
.video__btn:hover { color: #fff; }
.video__btn:active { opacity: 0.7; }

@container (min-width: 500px) {
  .video__play { --size: 80px; --glyph: 37px; }
  .video__bar { --pad-x: 20px; --pad-b: 16.5px; }
}
.video__seek {
  display: block; width: 100%; height: 14px; margin: 0; padding: 0;
  appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer;
}
.video__seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, #fff var(--p, 0%), rgba(255, 255, 255, 0.35) var(--p, 0%)); }
.video__seek::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); }
.video__seek::-moz-range-progress { height: 3px; border-radius: 2px; background: #fff; }
.video__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 0; height: 0; }
.video__seek::-moz-range-thumb { width: 0; height: 0; border: 0; }
.video__menu {
  position: absolute; right: 20px; bottom: 58px;
  min-width: 140px; margin: 0; padding: 6px;
  list-style: none;
  border-radius: 6px; background: rgba(24, 24, 24, 0.92);
  font-weight: 400;
}
.video__menu button { display: block; width: 100%; padding: 6px 10px; border: 0; border-radius: 4px; background: none; color: #fff; text-align: left; font: inherit; }
.video__menu button:hover, .video__menu button[aria-checked="true"] { background: rgba(255, 255, 255, 0.16); }

/* ---------- Motion ---------- */
/* hero calligraphy: gentle looping drift (matches the source's 2s ease-in-out-quart loop) */
@keyframes drift {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(20%) scale(0.95); }
}
.block[data-motion] { animation: drift 2s cubic-bezier(0.78, 0, 0.22, 1) infinite alternate; }

.js .reveal { opacity: 0; transition: opacity 0.6s ease; }
.js .reveal--slide { transform: translate(0, 30%); transition: transform 0.6s ease, opacity 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .block[data-motion] { animation: none; }
  .js .reveal, .js .reveal--slide { opacity: 1; transform: none; transition: none; }
  .mobile-menu, .mobile-menu__nav, .mobile-menu__cta, .acc__icon::before, .acc__icon::after { transition: none; }
}

/* ---------- Generic pages: posts, search, 404, cart / checkout / account wrappers ---------- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: var(--cream); color: var(--navy); }

.qg-content { width: calc(100% - 6vw); max-width: var(--max); min-width: 0; }
@media (max-width: 767px) { .qg-content { width: calc(100% - 12vw); } }
.qg-title {
  --v: 4.5;
  margin: 0 0 0.6em;
  color: var(--head);
  font-family: var(--font-head); font-weight: 400; letter-spacing: 0;
  line-height: calc(1.3 * (1 + (1 - var(--v)) / 25));
}
.qg-meta { margin: -0.4rem 0 1.5rem; opacity: 0.7; font-size: 0.892rem; }
.qg-list { display: grid; gap: 2rem; margin: 2rem 0; }
.qg-summary__title { --v: 1.8; margin: 0 0 0.5rem; font-family: var(--font-head); font-weight: 400; line-height: 1.3; }
.qg-summary__title a:hover { opacity: 0.7; }
.entry > :first-child { margin-top: 0; }
.entry img { max-width: 100%; height: auto; border-radius: 20px; }
.navigation.pagination { margin: 2rem 0 0; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.navigation.pagination a, .navigation.pagination span { display: inline-block; min-width: 40px; padding: 8px 14px; border: 1px solid rgba(83, 108, 124, 0.55); border-radius: 300px; text-align: center; }
.navigation.pagination .current { background: var(--slate); color: var(--cream); border-color: var(--slate); }

.qg-search { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.5rem 0; max-width: 560px; }
.qg-search__field { flex: 1 1 220px; min-width: 0; }
.qg-search .btn { padding: 0.85rem 1.8rem; font-size: 1rem; }
.qg-404 .qg-search { margin-bottom: 2rem; }

/* inputs on light pages */
.qg-content input[type="text"], .qg-content input[type="email"], .qg-content input[type="tel"], .qg-content input[type="url"],
.qg-content input[type="password"], .qg-content input[type="number"], .qg-content input[type="search"],
.qg-content select, .qg-content textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid rgba(83, 108, 124, 0.6); border-radius: 10px;
  background: rgba(255, 255, 255, 0.45); color: var(--navy);
  font-weight: 300; line-height: 24px;
}
.qg-content input:focus-visible, .qg-content select:focus-visible, .qg-content textarea:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.qg-content textarea { min-height: 120px; resize: vertical; }
.qg-content ::placeholder { color: rgba(24, 34, 65, 0.55); }




.qsh-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.qsh-blog-card {
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qsh-blog-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.qsh-blog-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.qsh-blog-card:hover .qsh-blog-image img {
    transform: scale(1.04);
}

.qsh-blog-content {
    padding: 22px;
}

.qsh-blog-content h2 {
    font-size: 23px;
    line-height: 1.35;
    margin: 0 0 12px;
}

.qsh-blog-content h2 a {
    color: inherit;
    text-decoration: none;
}

.qsh-blog-content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.qsh-blog-read-more {
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 767px) {
    .qsh-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .qsh-blog-content {
        padding: 15px;
    }

    .qsh-blog-content h2 {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .qsh-blog-grid {
        grid-template-columns: 1fr;
    }
}




/* Single Blog Detail Page */
.single-post .site-main,
.single-post main,
.single-post .content-area {
    min-width: 0;
}

.single-post .entry-header {
    max-width: 900px;
    margin: 0 auto 35px;
    padding: 45px 24px 0;
    text-align: center;
}

.single-post .entry-title {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 18px;
    color: #33302d;
}

.single-post .entry-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 25px;
}

.single-post .post-thumbnail {
    display: block;
    max-width: 1000px;
    margin: 0 auto 35px;
    padding: 0 24px;
}

.single-post .post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
}

.single-post .entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 60px;
    color: #4b4844;
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.single-post .entry-content p {
    margin: 0 0 24px;
}

.single-post .entry-content h2 {
    font-size: 30px;
    line-height: 1.35;
    margin: 40px 0 18px;
    color: #33302d;
}

.single-post .entry-content h3 {
    font-size: 23px;
    line-height: 1.4;
    margin: 30px 0 14px;
    color: #33302d;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    padding-left: 26px;
    margin: 0 0 24px;
}

.single-post .entry-content li {
    margin-bottom: 10px;
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.single-post .entry-content blockquote {
    margin: 30px 0;
    padding: 18px 24px;
    border-left: 3px solid #b8a28b;
    background: #f8f5f1;
    font-size: 19px;
}

.single-post .entry-content a {
    text-underline-offset: 4px;
}

@media (max-width: 767px) {
    .single-post .entry-header {
        padding: 30px 18px 0;
        margin-bottom: 25px;
    }

    .single-post .entry-title {
        font-size: 32px;
    }

    .single-post .post-thumbnail {
        padding: 0 18px;
        margin-bottom: 25px;
    }

    .single-post .entry-content {
        padding: 0 20px 40px;
        font-size: 16px;
        line-height: 1.8;
    }

    .single-post .entry-content h2 {
        font-size: 25px;
        margin-top: 30px;
    }

    .single-post .entry-content h3 {
        font-size: 21px;
    }
}



/* Single Blog Layout */
.qg-single-blog {
    padding-top: 55px;
    padding-bottom: 70px;
}

.qg-single-blog .section__inner {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.qg-single-blog .qg-blog-article {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.qg-single-blog .qg-blog-header {
    max-width: 850px;
    margin: 0 auto 32px;
    text-align: center;
}

.qg-single-blog .qg-blog-eyebrow {
    margin: 0 0 16px;
    color: #8b755f;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.qg-single-blog .qg-title {
    margin: 0 0 18px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    font-weight: 600;
}

.qg-single-blog .qg-meta {
    margin: 0;
    font-size: 14px;
    opacity: .7;
}

.qg-single-blog .qg-blog-featured-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 42px;
    overflow: hidden;
    border-radius: 10px;
}

.qg-single-blog .qg-featured-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
}

.qg-single-blog .qg-blog-entry {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.qg-single-blog .qg-blog-entry p {
    margin-bottom: 24px;
}

.qg-single-blog .qg-blog-entry h2 {
    margin: 42px 0 18px;
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.35;
}

.qg-single-blog .qg-blog-entry h3 {
    margin: 30px 0 14px;
    font-size: 23px;
    line-height: 1.4;
}

.qg-single-blog .qg-blog-entry img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.qg-single-blog .qg-blog-entry ul,
.qg-single-blog .qg-blog-entry ol {
    padding-left: 26px;
    margin-bottom: 25px;
}

.qg-single-blog .qg-blog-entry li {
    margin-bottom: 10px;
}

.qg-single-blog .qg-blog-entry blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 3px solid #b7a18a;
    background: #f7f4f0;
}

.qg-single-blog .qg-blog-back {
    max-width: 780px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid #e7e1da;
}

.qg-single-blog .qg-blog-back a {
    font-weight: 600;
    text-decoration: none;
}

.qg-single-blog .qg-blog-back a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .qg-single-blog {
        padding-top: 30px;
        padding-bottom: 45px;
    }

    .qg-single-blog .section__inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .qg-single-blog .qg-blog-header {
        margin-bottom: 25px;
    }

    .qg-single-blog .qg-blog-featured-image {
        margin-bottom: 28px;
        border-radius: 6px;
    }

    .qg-single-blog .qg-blog-entry {
        font-size: 16px;
        line-height: 1.8;
    }

    .qg-single-blog .qg-blog-entry h2 {
        margin-top: 32px;
    }
}






