/* Hamilton Neurofeedback - homepage
   Layout: Squarespace-style 24-column grid (11px gutter), content width min(1400px, 96%),
   full-bleed coloured bands, fixed white header with announcement bar above it. */

:root {
  --blue: #1470af;
  --grey: #eaeaee;
  --orange: #cc5500;
  --black: #000;
  --white: #fff;
  --input-bg: #fafafa;
  --gutter: 11px;
  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --top-h: 207px; /* announcement bar + header, refreshed by main.js */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 10px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: .01em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip-link {
  position: fixed; left: 8px; top: -60px; z-index: 100; background: #fff; color: #000;
  padding: 8px 14px; text-transform: uppercase; font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container { width: min(1400px, 96%); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- Typography ---------- */
h1 { font-size: clamp(26.1px, 6.27vw, 92.8px); line-height: 1; }
.sec-h2, .hero-h2 {
  font-size: clamp(36.28px, calc(17.2px + 2.48vw), 52.96px);
  line-height: 1.094;
}
h3 { font-size: clamp(24px, 2.28vw, 32.8px); line-height: 1.2; }
h4 { font-size: 19.36px; line-height: 1.2; }

.bg-blue { background: var(--blue); color: var(--white); }
.bg-grey { background: var(--grey); color: var(--black); }
.bg-blue a { color: var(--white); }
.bg-grey a { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 300px; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 500; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.17;
  padding: 12.8px 21.376px; color: var(--white);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.btn:active { transform: none; box-shadow: none; }
.btn-lg { min-height: clamp(43px, calc(12.4px + 4vw), 71px); padding-block: 8px; }
.btn-orange, .bg-blue a.btn-orange, .bg-grey a.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: #b34b00; }
.btn-blue, .bg-grey a.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: #105d92; }
.btn-white, .bg-blue a.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: #f1f6fa; }

/* ---------- Header ---------- */
.site-top { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.announce {
  position: relative; background: var(--black); color: var(--white); text-align: center;
  padding: 13.4px 40px; font-size: 13.76px; line-height: 1.4; font-weight: 500;
  transition: margin-top .4s var(--ease), opacity .4s var(--ease);
}
.announce-text { color: var(--white); text-decoration: none; }
.announce-text:hover { text-decoration: underline; }
.announce-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; background: none; color: var(--white);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 0;
}
.announce.is-closed { display: none; }

.header { background: var(--white); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1vw 2%;
}
.logo { display: block; flex: none; line-height: 0; }
.logo img { width: 278px; height: auto; aspect-ratio: 278 / 130; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav-list { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 51.2px); }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 1.6px 0; font-size: 16px; line-height: 1.3; font-weight: 500;
  color: var(--black); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: opacity .2s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { opacity: .65; }
.folder {
  position: absolute; top: 100%; right: -16px; z-index: 5; min-width: max-content;
  background: var(--white); padding: 8px 16px; text-align: right;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav-item.open > .folder {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
}
.folder a {
  display: block; padding: 1.6px 0; line-height: 1.3; color: var(--black); text-decoration: none; white-space: nowrap;
  transition: opacity .2s;
}
.folder a:hover { opacity: .6; }

.burger {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -6px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.burger span {
  position: absolute; left: 6px; right: 6px; height: 2px; background: var(--black);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--grey);
  display: flex; flex-direction: column; padding-top: var(--top-h);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }
.menu-open .header, .menu-open .site-top { background: var(--grey); }
.menu-open .header { background: var(--grey); }
.mm-panels { flex: 1; display: flex; align-items: center; }
.mm-list { width: 100%; padding: 0 0 0 7.5px; }
.mm-list[hidden] { display: none; }
.mm-link, .mm-back {
  display: inline-flex; align-items: center; gap: 12px; margin: .39px 19.5px; padding: 0;
  font-size: 33.15px; line-height: 33.15px; font-weight: 500; color: var(--black);
  text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left;
}
.mm-link svg { width: 12px; height: 22px; opacity: .6; flex: none; }
.mm-back { font-size: 25px; line-height: 1; padding: 8px 14px 8px 10px; margin-bottom: 14px; border: 1px solid #777; color: #777; gap: 8px; }
.mm-back svg { width: 10px; height: 18px; }
.mm-list li { display: block; }
.mm-cta { padding: 15.6px 23.4px 23.4px; }
.mm-cta .btn { display: inline-flex; }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  min-height: max(520px, 79.6vh); padding-top: var(--top-h);
  display: flex; align-items: center; justify-content: center; background: #2a2523;
}
.hero-bg, .hero-bg img, .hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img, .hero-bg video { object-fit: cover; object-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.hero-inner { position: relative; width: min(1400px, 96%); padding-block: 24px; row-gap: 0; }
.hero-h1 { grid-column: 3 / 23; text-align: center; margin-bottom: 21px; color: var(--white); }
.hero-h2 { grid-column: 6 / 20; text-align: center; margin-bottom: 31px; color: var(--white); }
.hero-btn { grid-column: 10 / 16; display: flex; }
.hero-btn .btn { flex: 1; }

/* ---------- Sections ---------- */
.sec h2 { margin-bottom: 12px; }

.sec-welcome { padding: 6.6vw 0; }
.welcome-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--gutter); }
.welcome-h2 { grid-column: 4 / 22; text-align: center; }
.welcome-text { grid-column: 3 / 16; }
.welcome-aside { grid-column: 16 / 23; display: flex; flex-direction: column; gap: var(--gutter); align-self: start; }
.welcome-text p { margin-bottom: 16px; }
.welcome-text ul { list-style: disc; padding-left: 32px; margin: 0 0 16px; }
.welcome-text li { margin-bottom: 8px; }
.welcome-text li:last-child { margin-bottom: 0; }
.welcome-text li::marker { font-size: 1em; }
.welcome-aside .cap { margin: 0; }
.cap-small { font-size: 13.76px; line-height: 1.6; padding-block: 5px; }
.ph { width: 100%; object-fit: cover; background: rgba(255,255,255,.2); }
.ph-portrait, .ph-room { aspect-ratio: 391 / 234; }
.welcome-aside .btn { width: 100%; }

.sec-services { padding: 5.63vw 0 2.9vw; }
.svc-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--gutter); }
.svc-h2 { grid-column: 7 / 19; text-align: center; }
.svc-acc { grid-column: 1 / 13; align-self: start; }
.svc-img { grid-column: 13 / 25; align-self: start; aspect-ratio: 678 / 233; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-btns { grid-column: 1 / 25; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gutter); }

.accordion { border-top: 1px solid var(--black); }
.acc-item { border-bottom: 1px solid var(--black); }
.acc-item + .acc-item { }
.acc-title { margin: 0; font-size: 19.36px; line-height: 1.2; letter-spacing: .01em; }
.acc-title button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  min-height: 52px; padding: 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: inherit; font-weight: 700; letter-spacing: inherit; color: var(--black);
}
.acc-icon { position: relative; width: 14px; height: 14px; flex: none; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; background: currentColor; transition: transform .35s var(--ease);
}
.acc-icon::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.acc-icon::after { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); }
.acc-title button[aria-expanded="true"] .acc-icon::after { transform: translateX(-50%) rotate(90deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc-panel > .acc-body { overflow: hidden; min-height: 0; }
.acc-title button[aria-expanded="true"] + * { }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-body p { padding: 0 0 18px; opacity: 0; transition: opacity .35s var(--ease); }
.acc-item.open .acc-body p { opacity: 1; transition-delay: .08s; }

.sec-nf { padding: 2.85vw 0 2.9vw; }
.nf-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--gutter); }
.nf-h2 { grid-column: 7 / 19; text-align: center; }
.nf-text { grid-column: 1 / 13; grid-row: 2; font-size: 19.36px; line-height: 1.6; align-self: start; }
.nf-text p { margin-bottom: 16px; }
.nf-img { grid-column: 13 / 25; grid-row: 2; aspect-ratio: 678 / 600; overflow: hidden; }
.nf-img img { width: 100%; height: 100%; object-fit: cover; }
.nf-btn { grid-column: 10 / 16; grid-row: 3; display: flex; }
.nf-btn .btn { flex: 1; }

.sec-questions { padding: 5.3vw 0; }
.q-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.q-text { grid-column: 2 / 12; }
.q-h2 { margin-bottom: 24px !important; }
.q-p { font-style: italic; margin-bottom: 14px; }
.q-btn { display: flex; justify-content: center; margin-top: 2px; }
.q-btn .btn { width: 44.4%; min-width: 200px; }
.form { grid-column: 14 / 24; display: flex; flex-direction: column; gap: 25px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { padding: 0; font-size: 16px; line-height: 1.6; margin-bottom: 4px; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.field label { font-size: 16px; line-height: 1.6; margin-bottom: 4px; }
.field .sub { font-size: 13px; }
.req { font-size: 13px; opacity: .85; font-weight: 500; }
.sub + .req { margin-left: 2px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--black); background: var(--input-bg);
  border: 1px solid var(--black); border-radius: 0; padding: 10px; min-height: 48px;
  transition: box-shadow .2s var(--ease), background-color .2s;
}
.field textarea { min-height: 100px; resize: vertical; display: block; }
.field input:focus, .field textarea:focus { outline: 0; background: #fff; box-shadow: 0 0 0 2px var(--blue); }
.field.invalid input, .field.invalid textarea { box-shadow: 0 0 0 2px #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; margin-top: -4px; }
.form-status { margin: 0; font-size: 14px; }

.sec-podcast { padding: 6.6vw 0 10vw; background: var(--white); }
.pod-heads { display: flex; flex-direction: column; gap: 32px; margin-bottom: 20px; }
.pod-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.pod-video { grid-column: 1 / 9; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.pod-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.pod-text { grid-column: 9 / 25; }
.pod-text a { color: var(--blue); }

.footer { padding: 3.3vmax 0; }
.foot-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 0; text-align: center; }
.foot-grid p { margin-bottom: 16px; }
.foot-grid > div > p:last-child { margin-bottom: 0; }
.foot-grid a { overflow-wrap: anywhere; }
.f-h { margin-bottom: 11px; min-height: 30px; }
.f-h-loc { grid-column: 6 / 12; grid-row: 1; }
.f-ham { grid-column: 2 / 8; grid-row: 2 / span 3; }
.f-bur { grid-column: 10 / 16; grid-row: 2 / span 3; min-height: calc(7 * var(--fr) + 66px); }
.f-h-con { grid-column: 17 / 25; grid-row: 1; }
.f-btn { grid-column: 18 / 24; grid-row: 2; display: flex; margin-top: 40px; }
.f-btn .btn { flex: 1; }
.f-contact { grid-column: 17 / 25; grid-row: 3; margin-top: 52px; }

/* ---------- Promo lightbox ---------- */
.promo { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.promo[hidden] { display: none; }
.promo-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.3); animation: fade .35s var(--ease) both; }
.promo-box {
  position: relative; width: min(100%, 615px); min-height: 450px; background: #fff; color: #222;
  padding: 56px 66px 54px; text-align: center; font-family: Helvetica, Arial, sans-serif;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  animation: rise .45s var(--ease) both;
}
.promo-box h2 { font-family: inherit; font-size: 36px; line-height: 1.12; letter-spacing: 0; margin: 0 0 24px; color: #222; }
.promo-box p { font-size: 16px; line-height: 1.45; margin: 0 0 40px; color: #222; }
.promo-btn {
  display: inline-block; background: #000; color: #fff; text-decoration: none; padding: 16px 62px;
  font-size: 14px; letter-spacing: .02em; transition: background-color .2s;
}
.promo-btn:hover { background: #333; }
.promo-close {
  position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: #555; cursor: pointer; font-family: Arial, sans-serif;
}
.promo-close:hover { color: #000; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

/* ---------- Motion ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].in { opacity: 1; transform: none; will-change: auto; }

.js .hero-bg img, .js .hero-bg video { animation: heroZoom 2.2s var(--ease) both; }
.js .hero-inner > * { animation: heroUp 1s var(--ease) both; }
.js .hero-inner > :nth-child(2) { animation-delay: .12s; }
.js .hero-inner > :nth-child(3) { animation-delay: .24s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: none } }
@keyframes heroZoom { from { transform: scale(1.05) } to { transform: none } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .hero-bg img, .js .hero-inner > *, .promo-backdrop, .promo-box { animation: none; }
  .acc-panel, .acc-body p, .acc-icon::before, .acc-icon::after, .folder, .btn, .burger span, .mobile-menu { transition: none; }
}

/* ---------- Burger header (tablet + phone) ---------- */
@media (max-width: 1179px) {
  .nav { display: none; }
  .burger { display: block; }
}

/* ---------- Phone / small tablet layout ---------- */
@media (max-width: 799px) {
  :root { --top-h: 195px; }
  .container, .hero-inner { width: calc(100% - max(46px, 12vw)); }
  .announce { padding: 12px 40px; }
  .header-inner { padding: 23.5px 23.4px 23.5px 23.4px; }
  .logo img { width: 183.5px; }
  .hero { min-height: max(560px, 72vh); }
  .hero-inner { display: flex; flex-direction: column; align-items: center; }
  .hero-h1 { width: 100%; margin-bottom: 21px; }
  .hero-h2 { width: 100%; }
  .hero-btn { display: block; }
  .btn-lg { min-height: 59px; min-width: 167px; padding: 10px 21.4px; }
  .hero-btn .btn, .nf-btn .btn, .f-btn .btn { flex: none; }

  .sec-welcome { padding: 60.7px 0; }
  .welcome-grid, .svc-grid, .nf-grid, .q-grid, .pod-grid, .foot-grid { display: flex; flex-direction: column; row-gap: 0; }
  .welcome-grid { gap: 11px; }
  .welcome-h2 { margin-bottom: 12px; }
  .welcome-aside { align-self: stretch; margin-top: 11px; align-items: stretch; }
  .welcome-aside .btn { width: 167px; align-self: center; }
  .welcome-aside .btn + .btn { margin-top: 0; }

  .sec-services { padding: 46px 0 40px; }
  .svc-grid { gap: 11px; }
  .svc-h2, .nf-h2 { text-align: center; }
  .svc-btns { order: 3; display: flex; flex-direction: column; align-items: center; gap: 11px; margin-top: 4px; }
  .svc-btns .btn { width: 167px; }
  .svc-img { order: 4; aspect-ratio: 328 / 133; }
  .svc-acc { align-self: stretch; }
  .acc-title { font-size: 18.16px; }

  .sec-nf { padding: 46px 0; }
  .nf-grid { gap: 11px; }
  .nf-img { order: 1; aspect-ratio: 328 / 291; }
  .nf-text { order: 2; font-size: 19.36px; }
  .nf-btn { order: 3; justify-content: center; }

  .sec-questions { padding: 60px 0; }
  .q-grid { gap: 24px; }
  .q-btn .btn { width: 167px; min-width: 0; }
  .form { width: 100%; gap: 22px; }

  .sec-podcast { padding: 60px 0 70px; }
  .pod-grid { gap: 20px; }
  .pod-video { width: 100%; }
  .pod-heads { gap: 22px; }

  .footer { padding: 3.3vmax 0; }
  .foot-grid { gap: 11px; }
  .f-h { margin-bottom: 0; min-height: 24px; line-height: 24px; }
  .f-ham { margin-bottom: 0; min-height: 164px; }
  .f-bur { min-height: 269px; }
  .f-h-con { margin-top: 0; }
  .f-btn { justify-content: center; margin: 0; }
  .f-btn .btn { width: 74.3%; min-width: 0; padding-inline: 8px; }
  .f-contact { margin-top: 0; min-height: 94px; }

  .promo-box { padding: 48px 24px 40px; min-height: 0; }
  .promo-box h2 { font-size: 30px; }
}
@media (min-width: 600px) and (max-width: 799px) {
  .sec-h2, .hero-h2 { font-size: 36.28px; }
}
@media (max-width: 599px) {
  .sec-h2, .hero-h2 { font-size: 39.76px; }
  h3 { font-size: 26px; }
}

/* =====================================================================
   INNER PAGES: /schedule, /bookingconfirmation, /neurofeedback
   (prefix pg-). Shared by every page rebuilt after the homepage.
   ===================================================================== */
:root { --row: clamp(43px, calc(12.4px + 4vw), 71px); } /* one "grid row" of the live Squarespace layout */

/* Current-page marker in the desktop nav (live site underlines it) */
.nav-item.is-active > .nav-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Title banner (schedule, bookingconfirmation) ---------- */
.pg-banner { --pad: clamp(36px, 5vw, 77px); position: relative; overflow: hidden; background: #000; color: var(--white); padding: calc(var(--top-h) + var(--pad)) 0 var(--pad); }
.pg-banner-book { --pad: clamp(56px, 5.6vw, 86px); }
.pg-banner-bg { position: absolute; inset: 0; }
.pg-banner-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pg-banner-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.34); }
.pg-banner-inner { position: relative; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--gutter); container-type: inline-size; }
.pg-h1 { grid-column: 4 / 22; text-align: center; color: var(--white); font-size: min(74.8px, calc(18px + 3.94vw)); line-height: 1.032; }
.pg-banner-book .pg-h1 { font-size: 7.31cqw; line-height: 1; }
.js .pg-banner-bg img { animation: heroZoom 2.2s var(--ease) both; }
.js .pg-banner-inner > * { animation: heroUp 1s var(--ease) both; }

/* ---------- Generic section + text blocks ---------- */
.pg-sec { padding: 6.6vmax 0; background: var(--white); color: var(--black); }
.pg-sec.bg-grey { background: var(--grey); }
.pg-first { padding-top: calc(var(--top-h) + 6.6vmax); }
.pg-text { font-size: 18.16px; }
.pg-text > :first-child { margin-top: 0; }
.pg-text > :last-child { margin-bottom: 0; }
.pg-text a { color: var(--blue); text-decoration: underline; }
.pg-text strong { font-weight: 700; }
.pg-list { list-style: disc; padding-left: 40px; margin: 16px 0; }
.pg-list li { display: list-item; }
.pg-list li p { margin: 8px 0; font-size: 16px; }
.pg-list-lg li p { font-size: inherit; }
.pg-h2 { min-height: var(--row); margin: 0; text-align: left; }
.pg-h2-in { margin: 0 0 32px; text-align: left; }
.pg-h2w { min-height: var(--row); }
.pg-fit-wrap { container-type: inline-size; min-width: 0; }
.pg-h2-fit { font-size: var(--k, 4.9cqw); line-height: 1; margin: 0; white-space: nowrap; text-align: left; }
.pg-h2-fit.pg-h2-in { margin-bottom: 32px; }
.pg-h1-fit { font-size: 8.08cqw; line-height: 1; text-align: center; white-space: nowrap; margin: 0; }
.pg-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gutter); container-type: inline-size; }
.pg-stack { display: flex; flex-direction: column; gap: var(--gutter); }
.pg-col { display: flex; flex-direction: column; gap: var(--gutter); }
.pg-media { position: relative; overflow: hidden; aspect-ratio: 328 / 234; }
.pg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pg-m1 { aspect-ratio: 328 / 479; }
.pg-sessions .pg-media { aspect-ratio: 328 / 409; }
.pg-ins .pg-media { aspect-ratio: 328 / 304; }
.pg-btn { display: flex; justify-content: center; }
.pg-btn .btn { width: 159px; min-width: 0; padding-inline: 10px; }
.pg-video { padding-bottom: 49px; }
.pg-video-frame { position: relative; aspect-ratio: 16 / 9; background: #111; }
.pg-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pg-combo { padding: 102px 0; }

/* schedule: TidyCal embed */
.pg-embed { min-height: 700px; padding-bottom: 8px; }
.pg-embed iframe { display: block; }

/* bookingconfirmation */
.pg-book-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.pg-book-text { font-size: 18.16px; }
.pg-book-text > :last-child { margin-bottom: 0; }
.pg-book-text a { color: var(--blue); text-decoration: underline; }

/* ---------- Desktop / tablet (two-column) ---------- */
@media (min-width: 800px) {
  .pg-text, .pg-book-text { font-size: clamp(17.92px, calc(15.97px + .244vw), 19.36px); }
  .pg-split { grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--gutter); }
  .pg-media, .pg-m1, .pg-sessions .pg-media, .pg-ins .pg-media { aspect-ratio: auto; }
  .pg-btn .btn { width: 49.3%; }
  .pg-video { padding-bottom: 8px; }
  .pg-combo { padding: 12.2vw 0; }
  .pg-book-text { grid-column: 3 / 23; }
  .pg-book-grid { grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--gutter); }

  /* 1. What is neurofeedback: text left, tall photo right, buttons underneath */
  .pg-h1-fit { grid-column: 1 / -1; grid-row: 1; }
  .pg-nf1 .pg-l { grid-column: 1 / 13; grid-row: 2; }
  .pg-nf1 .pg-m1 { grid-column: 13 / 25; grid-row: 2; }
  .pg-nf1 .pg-b-l { grid-column: 1 / 13; grid-row: 3; }
  .pg-nf1 .pg-b-r { grid-column: 13 / 25; grid-row: 3; }

  /* image left, heading + text right */
  .pg-img-left > .pg-h2, .pg-img-left > .pg-h2w { grid-column: 13 / 25; grid-row: 1; }
  .pg-img-left > .pg-media { grid-column: 1 / 13; grid-row: 1 / 3; }
  .pg-img-left > .pg-t { grid-column: 13 / 25; grid-row: 2; }
  .pg-img-left > .pg-t-narrow { grid-column: 13 / 23; }
  /* image right, heading + text left */
  .pg-img-right > .pg-h2, .pg-img-right > .pg-h2w { grid-column: 1 / 13; grid-row: 1; }
  .pg-img-right > .pg-media { grid-column: 13 / 25; grid-row: 1 / 3; }
  .pg-img-right > .pg-t { grid-column: 1 / 13; grid-row: 2; }
  .pg-ins-grid > .pg-b-l { grid-column: 1 / 13; grid-row: 3; }
  .pg-ins-grid > .pg-b-r { grid-column: 13 / 25; grid-row: 3; }

  /* 7. Learn more */
  .pg-more-grid > .pg-h2 { grid-column: 1 / -1; grid-row: 1; }
  .pg-more-grid > .pg-video { grid-column: 1 / 13; grid-row: 2; }
  .pg-more-grid > .pg-t { grid-column: 13 / 25; grid-row: 2; }
}

/* ---------- Phone / small tablet ---------- */
@media (max-width: 799px) {
  :root { --row: 59px; }
  .pg-banner { --pad: 44px; padding-top: calc(var(--top-h) + 9px); }
  .pg-banner-book { padding-top: calc(var(--top-h) + 56px); padding-bottom: 94px; }
  .pg-h1 { grid-column: 1 / -1; font-size: min(53.8px, 13.4vw); line-height: 1.032; }
  .pg-banner-book .pg-h1 { font-size: 9.77cqw; }
  .pg-btn .btn { width: 159px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .pg-banner-bg img, .js .pg-banner-inner > * { animation: none; }
}

/* =====================================================================
   INNER PAGES 2: /rentals, /psychotherapy, /vielight, /in-home-sessions
   (prefix ip-). Squarespace-style grid: 24 columns, 11px gutter. Row unit --u
   is half of the "grid row" (--row) plus half the gutter, so a block that is
   N units tall is calc(N * --u - 11px) (set per block with style="--n:N").
   Heights are min-heights only: text may grow, never clipped.
   ===================================================================== */
:root { --u: calc((var(--row) + 11px) / 2); --p1: clamp(17.92px, calc(15.97px + .244vw), 19.36px); }

/* section padding (live: 6.6vmax = the larger of viewport width/height x 6.6%) */
.pg-sec[class*="ip-"] { padding-block: 6.6vmax; }
.pg-first[class*="ip-"] { padding-top: calc(var(--top-h) + 6.6vmax); }
.pg-sec.ip-small { padding-bottom: 3.3vmax; }
.pg-first.ip-small { padding-top: calc(var(--top-h) + 3.3vmax); }
.pg-sec.bg-blue { background: var(--blue); color: var(--white); }
.bg-blue .ip-text a { color: var(--white); }

.ip-grid { display: flex; flex-direction: column; gap: var(--gutter); container-type: inline-size; }
.ip-b, .ip-img { min-width: 0; }
.ip-img { position: relative; overflow: hidden; }
.ip-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* titles that fit the container width (Squarespace "fit text") */
.ip-h1, .ip-h2-fit { font-size: var(--k); line-height: 1; white-space: nowrap; margin: 0; }
.ip-h2-fit.ip-h2-in { margin-bottom: 32px; }
.ip-center { text-align: center; }
.ip-h2 { margin: 0; }
.ip-h2.ip-h2-in { margin: 0 0 32px; }
.ip-h2-fit.ip-h2-16 { margin-bottom: 16px; }
.ip-note { margin: 16px 0 0; font-size: 16px; text-align: center; }
.ip-ital { font-style: italic; }

/* text blocks: paragraph 1 style by default, .t2 = 16px, .t3 = 13.76px (live list text on /vielight) */
.ip-text { font-size: var(--p1); }
.ip-text > :first-child { margin-top: 0; }
.ip-text > :last-child { margin-bottom: 0; }
.ip-text a { color: var(--blue); text-decoration: underline; }
.ip-text .t2 { font-size: 16px; }
.ip-text .pg-list li p.t3 { font-size: 13.7632px; }
.ip-text p.c { text-align: center; }
.ip-text h3 { margin: 32px 0; font-size: clamp(24px, 2.28vw, 32.8px); line-height: 1.152; }
.ip-text .pg-list { margin: 16px 0; font-size: 16px; }
.ip-text .pg-list.s14 { font-size: 13.7632px; }

/* rentals testimonial */
.ip-quote { display: flex; align-items: center; padding-inline: 6%; }
.ip-quote figure { margin: 0; width: 100%; }
.ip-quote blockquote { margin: 0; font-size: var(--p1); }
.ip-quote figcaption { margin: 0; text-align: right; text-transform: uppercase; font-size: 13.7632px; line-height: .8; }

/* vielight videos (YouTube) */
.ip-video-frame { position: relative; aspect-ratio: 1 / .565; background: #111; }
.ip-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* buttons */
.ip-btn .btn { width: 159px; min-width: 0; padding-inline: 10px; }

/* ---------- phone / small tablet ---------- */
@media (max-width: 799px) {
  .ip-h2b, .ip-h2b.ip-b { min-height: var(--row); }
  .ip-h2 { font-size: 37.12px; }
  .ip-rt-img { aspect-ratio: 328 / 199; }
  .ip-pt-img { aspect-ratio: 328 / 199; }
  .ip-ih-img { aspect-ratio: 328 / 339; }
  .ip-vl-hero { aspect-ratio: 328 / 479; }
  .ip-vl-man { aspect-ratio: 328 / 409; }
  .ip-vl-i1, .ip-vl-i2 { aspect-ratio: 159 / 269; }
  .ip-quote { min-height: 374px; }
  .ip-pt-comb { min-height: 374px; }
  .ip-video { min-height: 234px; }
  .pg-sec.ip-pt2 { padding-block: 77px; }
  .pg-sec.ip-vl6 { padding-top: 88px; }
  .ip-rt-th2 { min-height: 122px; }
  .ip-vl5 .ip-h2b { min-height: 94px; }
  .ip-vl6 .ip-h2b { min-height: 129px; }
  .ip-vl2 .ip-grid, .ip-vl4 .ip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
  .ip-vl2 .ip-grid > .ip-b, .ip-vl2 .ip-grid > .ip-btn, .ip-vl4 .ip-grid > .ip-b, .ip-vl4 .ip-grid > .ip-video { grid-column: 1 / -1; }
  .ip-vl4 .ip-grid > .ip-btn .btn { width: min(159px, 100%); }
}
@media (min-width: 600px) and (max-width: 799px) { .ip-h2 { font-size: 36.28px; } }

/* ---------- desktop / tablet (two-column) ---------- */
@media (min-width: 800px) {
  .ip-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--gutter); }
  .ip-b, .ip-img { min-height: calc(var(--n, 0) * var(--u) - 11px); }
  .ip-title, .ip-h2b { grid-column: 1 / -1; }
  .ip-text { font-size: var(--p1); }
  .ip-btn .btn { width: 49.3%; }
  .ip-btn .btn { min-width: 0; }
  .ip-video { --n: 10; }

  /* rentals */
  .ip-rt1 .ip-grid { grid-template-rows: auto auto auto; }
  .ip-rt-text { grid-column: 1 / 13; grid-row: 2; }
  .ip-rt-img { grid-column: 13 / 25; grid-row: 2 / 4; }
  .ip-rt-b1 { grid-column: 1 / 13; grid-row: 3; }
  .ip-rt-th2 { grid-column: 1 / -1; grid-row: 4; margin-top: calc(var(--u) + 1px); }
  .ip-quote { grid-column: 1 / -1; grid-row: 5; }
  .ip-rt2 .ip-faq, .ip-wide { grid-column: 1 / -1; }
  .ip-wide .btn { width: 24.43%; }

  /* psychotherapy */
  .ip-pt-text { grid-column: 1 / 16; grid-row: 2 / 5; }
  .ip-pt-img { grid-column: 16 / 25; grid-row: 2; }
  .ip-pt-cap { grid-column: 16 / 25; grid-row: 3; }
  .ip-pt-b { grid-column: 16 / 25; grid-row: 4; align-self: start; }
  .ip-pt-b { margin-top: -6px; }
  .ip-pt-b .btn { width: 54.6%; }
  .ip-pt-comb { grid-column: 1 / -1; }
  .pg-sec.ip-pt2 { padding-block: 13.3vw; }

  /* in-home */
  .ip-ih-img { grid-column: 1 / 7; grid-row: 2; }
  .ip-ih-text { grid-column: 7 / 25; grid-row: 2; }

  /* vielight */
  .ip-vl-intro { grid-column: 1 / 13; grid-row: 2; }
  .ip-vl-hero { grid-column: 13 / 25; grid-row: 2 / 4; }
  .ip-vl-b1 { grid-column: 1 / 13; grid-row: 3; }
  .ip-vl2 .ip-grid { grid-template-rows: auto auto 1fr; }
  .ip-vl-i1 { grid-column: 1 / 7; grid-row: 1; }
  .ip-vl-i2 { grid-column: 7 / 13; grid-row: 1; }
  .ip-vl-pers { grid-column: 1 / 13; grid-row: 2; }
  .ip-vl-b2 { grid-column: 1 / 13; grid-row: 3; align-self: start; }
  .ip-vl-how { grid-column: 13 / 25; grid-row: 1 / 4; }
  .ip-vl3 .ip-h2b { grid-column: 1 / 13; grid-row: 1; }
  .ip-vl-man { grid-column: 13 / 25; grid-row: 1 / 3; }
  .ip-vl-ben { grid-column: 1 / 13; grid-row: 2; }
  .ip-vl-vp { grid-column: 1 / -1; }
  .ip-v1 { grid-column: 1 / 13; }
  .ip-v2 { grid-column: 13 / 25; }
  .ip-vl-vb1 { grid-column: 1 / 13; }
  .ip-vl-vb2 { grid-column: 13 / 25; }
  .ip-vl5 .ip-text, .ip-vl6 .ip-text { grid-column: 1 / -1; }
  .pg-sec.ip-vl6 { padding-block: 12.2vw; }
}

/* =====================================================================
   INNER PAGES 3: /hamiltonclinic, /burlingtonclinic, /about, /contact
   (prefix fe-). Squarespace "fluid engine" grid: 24 columns, 11px gutter,
   rows min --fr (live: 0.02172 x container width, max 30.4px) that grow with
   their content. Blocks are placed with --a (grid-area: row / col / row / col).
   Live section padding: 6.6vmax (larger of viewport width/height x 6.6%).
   ===================================================================== */
:root { --fr: min(30.1px, 2.064vw); --fp: 18.16px; } /* live row = 0.0215 x container width (container 96vw, max 1400px) */
.fe-sec { padding-block: 6.6vmax; background: var(--white); color: var(--black); }
.fe-sec.fe-g, .fe-sec.fe-s0, .fe-sec.fe-s2 { background: var(--grey); }
.fe-sec.fe-s0 { padding-top: calc(var(--top-h) + 6.6vmax); }
.fe-sec.fe-s0.fe-top { padding-top: calc(var(--top-h) + 3.3vmax); padding-bottom: 64.7px; }
.fe-sec.fe-s2 { padding-block: max(101.8px, 13.74vw); }
.fe-sec.fe-s1, .fe-sec.fe-s3 { background: var(--white); }
.fe-grid { display: flex; flex-direction: column; gap: var(--gutter); container-type: inline-size; }
.fe-b { min-width: 0; }
.fe-text { font-size: 16px; line-height: 1.6; }
.fe-text > :first-child { margin-top: 0; }
.fe-text > :last-child { margin-bottom: 0; }
.fe-text p { margin: 16px 0; }
.fe-text p.lg { font-size: var(--fp); line-height: 1.6; }
.fe-text a { color: var(--blue); text-decoration: underline; }
.fe-text .note { text-align: center; margin: 16px 0 0; }
.fe-note p { text-align: center; }
.fe-fit { font-size: var(--k); line-height: 1; white-space: nowrap; margin: 0; }
/* live headings scale with the viewport: 16px + k x vmax on phones, vw from 768px up */
.fe-h2 { margin: 0; font-size: min(52.96px, calc(16px + 2.64vmax)); line-height: 1.094; }
.fe-text h3 { margin: 0 0 32px; font-size: min(32.8px, calc(16px + 1.2vmax)); line-height: 1.152; }
.fe-list { list-style: disc; padding-left: 40px; margin: 0 0 16px; }
.fe-list + .fe-list { margin-top: 16px; }
.fe-list .fe-list { list-style: circle; margin: 8px 0; }
.fe-list li { display: list-item; }
.fe-list li > p { margin: .5em 0; }
.fe-text > .fe-list:last-child { margin-bottom: 0; }
.fe-img { position: relative; overflow: hidden; }
.fe-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.fe-map { position: relative; background: #e5e3df; }
.fe-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fe-btn { display: flex; }
.fe-btn .btn { width: 100%; height: 100%; min-height: 59px; padding: 8px 10px; }
.fe-formb .form { gap: 20px; width: 100%; }
.fe-formb .form-foot { margin-top: 0; }
.fe-formb textarea { height: 100px; min-height: 100px; }
.fe-formb .name-row .sub { font-size: 12px; }

/* phone / small tablet: single column, live block heights */
@media (max-width: 799px) { .fe-sec .container { width: calc(100% - 48.6px); } }
@media (max-width: 767px) {
  .fe-s0 .fe-title { min-height: 59px; }
  .fe-s0 .fe-title:has(.note) { min-height: 146px; }
  .fe-i-ham { aspect-ratio: 341 / 269; }
  .fe-i-bur { aspect-ratio: 341 / 339; }
  .fe-i-nigel { aspect-ratio: 341 / 304; }
  .fe-i-stamp { aspect-ratio: 341 / 199; }
  .fe-i-stamp img { object-fit: contain; }
  .fe-i-logo { aspect-ratio: 165 / 269; width: 48.4%; align-self: center; }
  .fe-map { aspect-ratio: 341 / 339; }
  .fe-dirh { min-height: 59px; }
  .fe-abh { min-height: 94px; }
  .fe-btn { align-self: center; width: 74.2%; height: 59px; }
  .fe-btn.fe-btn-full { width: 100%; }
  .fe-s2 .fe-text { min-height: 390px; }
  .fe-text[style*="--mh"] { min-height: var(--mh); }
}

/* desktop / tablet */
@media (min-width: 768px) {
  .fe-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--gutter); grid-auto-rows: minmax(var(--fr), auto); }
  .fe-b { grid-area: var(--a); }
  .fe-fit { font-size: var(--kd, var(--k)); }
  .fe-text { font-size: 16px; }
  .fe-text p.lg { font-size: clamp(17.92px, calc(15.97px + .244vw), 19.36px); }
  .fe-h2 { font-size: min(52.96px, calc(16px + 2.64vw)); }
  .fe-text h3 { font-size: min(32.8px, calc(16px + 1.2vw)); }
  .fe-sec.fe-s0:not(.fe-top) { padding-top: calc(var(--top-h) + 6.6vmax); }
  .fe-sec.fe-s0.fe-top { padding-bottom: max(25px, 3.3vw); }
  .fe-btn { width: auto; }
  .fe-img img { object-fit: cover; }
  .fe-s2 .fe-text { min-height: 0; }
  .fe-cth .fe-h2 { margin-bottom: 32px; }
}
.fe-cth .fe-h2 { margin-bottom: 32px; }

/* =====================================================================
   INNER PAGES 4: /speaking, /speaking-inquiries, /newsletter-signup, /unsubscribe
   (fe- grid as above). Banner with looping video, YouTube embeds, form variants.
   ===================================================================== */
/* title banner with video background (live: video darkened to 55% brightness) */
.fe-ban { position: relative; overflow: hidden; background: #000; color: var(--white); padding-top: calc(var(--top-h) + 2vw); padding-bottom: 6.6vmax; }
.fe-bg { position: absolute; inset: 0; background: #000; }
.fe-bg video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: brightness(.55); }
.fe-ban .fe-grid { position: relative; }
.fe-ban h1 { color: var(--white); }

/* live "medium" sections are at least 66vh tall, content centred vertically */
.fe-mid { min-height: 66vh; display: flex; flex-direction: column; justify-content: center; }
.fe-mid > .container { flex: none; }

/* YouTube embeds (live: 56.5% padding-bottom wrapper) */
.fe-vid { min-width: 0; }
.fe-vframe { position: relative; height: 0; padding-bottom: 56.5%; background: #111; }
.fe-vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* form variants */
.fe-formb .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--black); background-color: var(--input-bg);
  border: 1px solid var(--black); border-radius: 0; padding: 10px 32px 10px 10px; min-height: 48px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: box-shadow .2s var(--ease), background-color .2s;
}
.fe-formb .field select:has(option[value=""]:checked) { color: rgba(0,0,0,.55); }
.fe-formb .field select option { color: var(--black); }
.fe-formb .field select:focus { outline: 0; background-color: #fff; box-shadow: 0 0 0 2px var(--blue); }
.fe-formb .field.invalid select { box-shadow: 0 0 0 2px #b3261e; }
.fe-formb .field .desc { margin: 0 0 4px; padding-bottom: 1em; font-size: 14.272px; line-height: 1.6; opacity: .7; }
.fe-formb .fe-done { margin: 0; font-size: 16px; line-height: 1.6; }
.fe-formb .fe-done a { color: var(--blue); text-decoration: underline; }

@media (max-width: 767px) {
  .fe-ban .fe-grid { padding-block: 70px 35px; } /* the two empty rows above and one below the title (live grid) */
  .fe-vid[style*="--mh"], .fe-formb[style*="--mh"] { min-height: var(--mh); }
  .fe-formb .field .desc { font-size: 14.987px; }
  .fe-btn.fe-btn-74 { width: 74.2%; }
}

/* "combining ..." sections on several pages: live they are medium sections, i.e. at least 66vh tall with
   the content centred and the standard 6.6vmax padding (replaces the earlier hand-tuned padding) */
.pg-sec.pg-combo, .pg-sec.ip-pt2, .pg-sec.ip-vl6, .fe-sec.fe-s2 {
  min-height: 66vh; display: flex; flex-direction: column; justify-content: center; padding-block: 6.6vmax;
}
@media (max-width: 799px) { .pg-sec.ip-vl6 { padding-top: 88px; } }

/* =====================================================================
   BLOG: /blog (list, prefix bl-) and /blog/<slug> (posts, prefix bp-)
   Live: Squarespace "side by side" blog list and single-post pages.
   ===================================================================== */
.bl-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bl-sec { padding: calc(var(--top-h) + 2vw) 0 calc(2vw + 35px); background: var(--white); color: var(--black); }

/* --- list --- */
.bl-list { width: calc(min(100%, 1400px) - 4vw); margin-inline: auto; }
.bl-item { margin-bottom: 35px; }
.bl-img { position: relative; }
.bl-imglink { display: block; position: relative; padding-bottom: 100%; overflow: hidden; }
.bl-imglink img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.js .bl-imglink img { animation: blFade .8s var(--ease) both; }
@keyframes blFade { from { opacity: 0 } to { opacity: 1 } }
.bl-sum { text-align: left; }
.bl-date { display: block; margin-bottom: 20px; font-size: 13.7632px; line-height: .8; text-transform: uppercase; }
.bl-title { margin: 0 0 30px; font-size: min(52.96px, calc(16px + 2.64vmax)); line-height: 1.2; letter-spacing: .01em; }
.bl-title a { color: inherit; text-decoration: none; }
.bl-ex p { margin: 16px 0; }
.bl-more { display: block; margin-top: 20px; line-height: 26px; color: var(--blue); text-decoration: none; width: max-content; }
.bl-more::after { content: ""; display: block; height: 1px; background: currentColor; }
@media (max-width: 767px) {
  .bl-list, .bp-wrap { width: 88vw; }
  .bl-sec { padding-bottom: 6vw; }
  .bl-img { margin-bottom: 5vw; }
  .bl-noimg .bl-img { margin-bottom: 0; }
}
@media (min-width: 768px) {
  .bl-item { display: flex; align-items: center; }
  .bl-img { flex: 0 0 40%; }
  .bl-sum { flex: 0 0 54%; margin-left: 6%; }
  .bl-title { font-size: min(52.96px, calc(16px + 2.64vw)); }
}

/* --- single post --- */
.bp-wrap { width: min(1400px, 100% - 4vw); margin-inline: auto; }
.bp-top { margin-bottom: 50px; }
.bp-title { margin: 0 0 19.5px; font-size: min(74.8px, calc(16px + 4.2vmax)); line-height: 1.2; letter-spacing: .01em; overflow-wrap: break-word; }
.bp-meta { display: flex; font-size: 14.272px; line-height: .8; text-transform: uppercase; }
.bp-date::after { content: "\2022"; padding: 0 .5em; }
.bp-by a { color: inherit; text-decoration: none; }
.bp-body { margin-inline: -17px; }
.bp-body::after { content: ""; display: block; clear: both; }
.bp-blk { padding: 17px; }
.bp-body > .bp-blk:first-child { padding-top: 0; }
.bp-txt { font-size: 16px; line-height: 1.6; overflow-wrap: break-word; }
.bp-txt p { margin: 16px 0; }
.bp-txt > :first-child { margin-top: 0; }
.bp-txt > :last-child { margin-bottom: 0; }
.bp-txt p.lg { font-size: clamp(17.92px, calc(15.97px + .244vmax), 19.36px); line-height: 1.6; }
.bp-txt a { color: var(--blue); text-decoration: underline; }
.bp-txt h2 { margin: 32px 0 0; font-size: min(52.96px, calc(16px + 2.64vmax)); line-height: 1.094; letter-spacing: .01em; }
.bp-txt h2 + p { margin-top: 32px; }
.bp-txt blockquote { margin: 16px 40px; }
.bp-txt blockquote > :first-child { margin-top: 0; }
.bp-txt blockquote > :last-child { margin-bottom: 0; }

/* image blocks (classic image layout: inline, caption below / on hover / hidden; some float right) */
.bp-fig { margin: 0 auto; position: relative; }
.bp-box { position: relative; overflow: hidden; }
.bp-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.js .bp-box img { animation: blFade .8s var(--ease) both; }
.bp-cap-below figcaption p { margin: 16px 0; }
.bp-cap-overlay-hover figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 17px; background: rgba(0,0,0,.7); opacity: 0; transition: opacity .1s ease-out; pointer-events: none; }
.bp-cap-overlay-hover:hover figcaption, .bp-cap-overlay-hover:focus-within figcaption { opacity: 1; }
.bp-cap-overlay-hover .bp-capin { margin-bottom: -5px; }
.bp-cap-overlay-hover figcaption p { margin: 16px 0; font-size: 16px; line-height: 1.68; color: #bbb; }
.bp-r6, .bp-r5 { float: right; }
.bp-r6 { width: 50%; }
.bp-r5 { width: 41.6667%; }
.bp-vframe { position: relative; height: 0; }
.bp-vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bp-cardfig { margin: 0; display: flex; justify-content: space-between; }
.bp-cardimg { flex: 0 0 54%; }
.bp-cardimg img { width: 100%; height: auto; object-fit: contain; }
.bp-cardcap { flex: 0 0 42%; display: flex; align-items: center; }
.bp-cardcap p { margin: 0; }
.bp-cardt { margin-bottom: clamp(8px, calc(2.5vw - 2px), 34px) !important; line-height: 26px; }
@media (max-width: 767px) {
  .bp-top { margin-bottom: 50px; }
  .bp-body > .bp-blk:first-child { padding-top: 17px; }
  .bp-r6, .bp-r5 { float: none; width: auto; }
}
@media (min-width: 768px) {
  .bp-txt p.lg { font-size: clamp(17.92px, calc(15.97px + .244vw), 19.36px); }
  .bp-title { font-size: min(74.8px, calc(16px + 4.2vw)); margin-bottom: 32px; }
  .bp-txt h2 { font-size: min(52.96px, calc(16px + 2.64vw)); }
}
@media (prefers-reduced-motion: reduce) { .js .bl-imglink img, .js .bp-box img { animation: none; } }

/* post footer: author name + previous/next links (live: item-pagination) */
.bp-sec { padding-bottom: 0; }
.bp { padding: 0; }
.bp-wrap { padding-bottom: 0; }
.bp-body { margin-bottom: 3vw; }
.bp-author { margin: 3vw 0 calc(3vw + 2vw); font-size: 13.7632px; line-height: 22px; }
.bp-author a { display: block; padding-top: 17px; color: inherit; text-decoration: none; width: max-content; }
.bp-pager { display: flex; padding: 3vw 2vw; }
.bp-pg { flex: 1 1 50%; min-width: 0; display: flex; align-items: center; color: inherit; text-decoration: none; }
.bp-pager > span:empty { flex: 1 1 50%; }
.bp-pg-prev { text-align: left; }
.bp-pg-next { text-align: right; justify-content: flex-end; }
.bp-pgt { flex: 1 1 auto; min-width: 0; }
.bp-pgh { overflow-wrap: anywhere; display: block; font-size: min(32.8px, calc(16px + 1.2vmax)); line-height: 1; font-weight: 700; letter-spacing: .01em; }
.bp-pgi { flex: none; display: block; line-height: 0; }
.bp-pg-prev .bp-pgi { padding-right: 25px; }
.bp-pg-next .bp-pgi { padding-left: 25px; }
.bp-pg { position: relative; }
.bp-vh { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bp-pg:hover .bp-pgh, .bp-pg:focus-visible .bp-pgh { opacity: .65; }
@media (min-width: 768px) { .bp-pgh { font-size: min(32.8px, calc(16px + 1.2vw)); } }
@media (max-width: 767px) { .bp-pager { padding: 3vw 6vw; } .bp-pg { padding-right: 0; } .bp-author { font-size: 14.9872px; line-height: 24px; } }
.bp-txt p:empty::before { content: "\200b"; }
.bp-body > .bp-txt:last-child > :last-child { margin-bottom: 0; }
.bp-body > .bp-blk:only-child { padding-bottom: 0; }
@media (max-width: 767px) {
  .bp-wrap { width: 88vw; }
  .bp-sec { padding-top: calc(var(--top-h) + 6vw); }
}
