/* SABROI — styles matched to the original Squarespace site.
   Sizes use the same fluid formula Squarespace used, so text scales
   with the window exactly like before. */

@font-face {
  font-family: "DECIMA";
  src: url("/assets/fonts/futura-medium.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #424242;  /* matches the grey margin around the device clips */
  --black-section: #181818;  /* matches the dark background inside the device clips */
  --text: #fff;
  --link: #bdb3ea;          /* paragraph links */
  --heading-link: #dfe0e1;  /* links inside headings */
  --accent: #dde166;        /* buttons */
  --form-button: #a8a6a1;
  --font: "DECIMA", "Futura", "Futura PT", "Jost", "Century Gothic", sans-serif;
  --serif: "kepler-std", Georgia, "Times New Roman", serif;
  --gutter: 4vw;
  --header-h: 88px;
}

/* Fluid type: same math as Squarespace 7.1 */
.fs, body, h1, h2, h3, h4, .sqsrte-small, .sqsrte-large, .header-nav-item a, .image-card {
  font-size: min(calc((var(--fs) - 1) * 1.2vw + 1rem), max(calc((var(--fs) - 1) * 21.6px + 1rem), calc(var(--fs) * 1rem)));
}
@media screen and (max-width: 767px) and (orientation: portrait) {
  .fs, body, h1, h2, h3, h4, .sqsrte-small, .sqsrte-large, .header-nav-item a, .image-card {
    font-size: calc((var(--fs) - 1) * calc(.012 * min(100vh, 900px)) + 1rem);
  }
}

html { font-size: 15px; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
* { box-sizing: border-box; }

body {
  --fs: 1.3;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6em;
  letter-spacing: 0;
}

img, video, iframe { display: block; max-width: 100%; }
a { color: var(--link); }
strong { font-weight: bold; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 300; letter-spacing: 0; margin: 2rem 0; }
h1 { --fs: 4.2; line-height: calc(1.3em * (1 + (1 - 4.2) / 25)); }
h2 { --fs: 2.8; line-height: calc(1.3em * (1 + (1 - 2.8) / 25)); }
h3 { --fs: 2.2; line-height: calc(1.3em * (1 + (1 - 2.2) / 25)); }
h4 { --fs: 1.5; line-height: calc(1.3em * (1 + (1 - 1.5) / 25)); }
h1 a, h2 a, h3 a, h4 a { color: var(--heading-link); }
p { margin: 1rem 0; line-height: 1.6em; }
.sqsrte-small { --fs: 1; line-height: 1.6em; }
.sqsrte-large { --fs: 1.7; line-height: 1.6em; }
ol, ul { margin: 1rem 0; padding-left: 40px; }
li > p { margin: 0; }
li:has(> .sqsrte-small) { font-size: 15px; line-height: 1.6em; }
.block h1, .block h2, .block h3, .block h4, .block p { white-space: pre-wrap; }

.skip {
  position: absolute; left: -9999px; top: 20px; z-index: 100;
  background: var(--accent); color: #000; font-size: 13.5px; font-weight: 500; letter-spacing: .02em;
  padding: .9rem 1.503rem; text-decoration: none;
}
.skip:focus { left: 20px; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  background: var(--bg);
}
.header-inner {
  display: flex; align-items: center;
  padding: 2.2vw var(--gutter);
  position: relative;
}
.header-title { flex: 1 1 0; display: flex; }
.header-title img { height: 35px; width: auto; }
.header-nav { display: flex; justify-content: center; }
.header-nav-item { margin: 0 .6vw; }
.header-nav-item a {
  --fs: 1.3;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.5;
  display: block;
  padding: .1em 0;
}
.header-nav-item.active a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: repeat-x;
  background-size: 1px 1px;
  background-position: 0 calc(100% - .1em);
}
.header-actions { flex: 1 1 0; display: flex; justify-content: flex-end; }
.social-icons { display: flex; align-items: center; }
.header-icons { gap: 1.2vw; }
.header-icons .icon, .menu-icons .icon { display: block; width: 26px; height: 26px; color: var(--text); }
.header-icons svg, .menu-icons svg { width: 26px; height: 26px; fill: currentColor; }

.burger { display: none; }
.header-menu { display: none; }

@media (max-width: 799px) {
  .header-inner { padding: 25.5px 6vw; justify-content: center; z-index: 11; }
  .header-title { flex: 0 0 auto; }
  .header-title img { height: 31px; }
  .header-nav, .header-actions { display: none; }
  .burger {
    display: block; position: absolute; right: calc(6vw + 6px); top: 50%; margin-top: -17.5px;
    width: 35px; height: 35px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--text);
  }
  .burger span {
    position: absolute; left: 5px; right: 5px; height: 1px; background: currentColor;
    transition: transform 250ms cubic-bezier(.2,.6,.3,1), top 250ms cubic-bezier(.2,.6,.3,1);
  }
  .burger span:nth-child(1) { top: 14px; }
  .burger span:nth-child(2) { top: 20px; }
  body.menu-open .burger span:nth-child(1) { top: 17px; transform: rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { top: 17px; transform: rotate(-45deg); }
  .site-header { background: transparent; }
  .header-inner { background: var(--bg); }
  body.menu-open .header-inner { background: transparent; }
  .header-menu {
    display: block; position: fixed; inset: 0; z-index: 10;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: visibility .6s cubic-bezier(.4,0,.2,1), opacity .4s cubic-bezier(.4,0,.2,1);
  }
  .header-menu[hidden] { display: block; }
  body.menu-open { overflow: hidden; }
  body.menu-open .header-menu { opacity: 1; visibility: visible; }
  .menu-nav { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; }
  .menu-item + .menu-item { margin-top: 22.5px; }
  .menu-item a {
    display: block; font-size: 2.125rem; line-height: 1; color: var(--text); text-decoration: none;
    font-weight: 500; letter-spacing: .027em;
  }
  .menu-actions { position: absolute; left: 0; right: 0; bottom: 37px; }
  .menu-icons { gap: 15px; justify-content: center; }
  .menu-icons .icon, .menu-icons svg { width: 25px; height: 25px; }
}

/* ---------------- Sections ---------------- */
main { display: flex; flex-direction: column; min-height: 100vh; }
main > .page-section:last-child { margin-top: auto; }  /* footer sits at the bottom on short pages */
.page-section {
  position: relative;
  display: flex;
  min-height: 33vh;
  align-items: center;
}
main > .page-section:first-child { padding-top: var(--header-h); }
.page-section.h-medium { min-height: 66vh; }
.page-section.h-large { min-height: 100vh; }
.page-section.h-custom { min-height: calc(var(--custom-height, 33) * 1vh); }
.page-section.v-top { align-items: flex-start; }
.page-section.v-bottom { align-items: flex-end; }

.section-bg { position: absolute; inset: 0; background: var(--bg); z-index: 0; }
.theme-black .section-bg { background: var(--black-section); }
.bg-inset .section-bg { inset: var(--gutter); }
main > .page-section.bg-inset:first-child .section-bg { top: calc(var(--header-h) + var(--gutter)); }

.content-wrapper { --vpad: 3.3vw; position: relative; z-index: 1; width: 100%; padding: var(--vpad) var(--gutter); }
.h-medium .content-wrapper { --vpad: 6.6vw; }
.h-large .content-wrapper { --vpad: 9.9vw; }
.h-custom .content-wrapper { --vpad: calc(var(--custom-height, 33) * .1vw); }
.bg-inset .content-wrapper { padding: calc(var(--vpad) + var(--gutter)) calc(var(--gutter) * 2); }
.content { margin: 0 auto; width: 100%; max-width: 1800px; }
.w-medium .content { width: 75%; }
.w-narrow .content { width: 50%; }
.a-left .content { margin-left: 0; }
.a-right .content { margin-right: 0; }

/* rows & columns (12-column grid) */
.row { display: flex; margin: 0 -17px; }
.col { min-width: 0; }
.span-1 { width: 8.3333%; } .span-2 { width: 16.6667%; } .span-3 { width: 25%; } .span-4 { width: 33.3333%; }
.span-5 { width: 41.6667%; } .span-6 { width: 50%; } .span-7 { width: 58.3333%; } .span-8 { width: 66.6667%; }
.span-9 { width: 75%; } .span-10 { width: 83.3333%; } .span-11 { width: 91.6667%; } .span-12 { width: 100%; }
.col > .row { margin: 0; }

/* ---------------- Blocks ---------------- */
.block { padding: 17px; position: relative; }
@media screen and (min-width: 768px) {
  .content > .row:first-child > .col > .block:first-child { padding-top: 0; }
}
.block.html > :first-child { margin-top: 0; }
.block.html > :last-child { margin-bottom: 0; }
.block.spacer { min-height: 68px; }
.block.hr hr { border: 0; height: 1px; background: #fff; margin: .644rem 0; }

/* image: inline (intrinsic) */
.block.image figure { margin: 0 auto; }
.block.image .media { width: 100%; height: auto; object-fit: cover; }
.block.image figure > a, .block.image .image-wrap > a { display: block; }
.layout-inline .caption p { margin: 1rem 0; }

/* image: stack / poster — full-width image */
.layout-stack figure, .layout-poster figure { width: 100%; }
/* the original site leaves stacked images 20px lower (a slide-up animation that never runs) */
.layout-stack .image-wrap > a { transform: translateY(20px); }
.layout-stack figure::after { content: ""; display: block; margin-top: 7%; }

/* image: card — image beside text, 45% / 10% gap / 45% */
.layout-card figure { display: flex; align-items: flex-start; justify-content: space-between; }
.layout-card.pos-right figure { flex-direction: row-reverse; }
.layout-card .image-wrap { width: 45%; flex: 0 0 45%; }
.layout-card .image-card { width: 45%; flex: 0 0 45%; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.layout-card .image-card { align-self: stretch; }
/* card text: Squarespace renders the title inline inside a 1.3-size serif line */
.image-card { --fs: 1.3; font-family: var(--serif); line-height: 1.6em; }
.image-title { margin-bottom: 6%; line-height: 1.68em; }
.image-title > h1, .image-title > h2, .image-title > h3, .image-title > h4, .image-title > p { display: inline; margin: 0; }
.image-subtitle { font-family: var(--font); }
.image-subtitle > :first-child { margin-top: 0; }
.image-subtitle > :last-child { margin-bottom: 0; }
.image-subtitle ol, .image-subtitle ul { margin: 0; }

/* buttons */
.block.button { text-align: center; }
.block.button.align-left { text-align: left; }
.block.button.align-right { text-align: right; }
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: normal;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: opacity .1s linear;
  -webkit-appearance: none; appearance: none;
}
.btn:hover { opacity: .8; }
.btn-medium { font-size: 15px; padding: 1rem 1.67rem; }
.btn-small { font-size: 13.5px; padding: .9rem 1.503rem; }
.btn-large { font-size: 16.5px; padding: 1.1rem 1.837rem; }
.btn-primary, .btn-secondary, .btn-tertiary { background: var(--accent); color: #000; }

/* social icon block */
.block.social .social-icons { justify-content: center; }
.block.social .icon { position: relative; display: block; color: var(--text); }
.block.social svg { position: absolute; fill: currentColor; }
.size-small { gap: 12px; }
.size-small .icon { width: 20px; height: 20px; }
.size-small svg { width: 40px; height: 40px; left: -10px; top: -10px; }
.size-medium { gap: 14px; }
.size-medium .icon { width: 24px; height: 24px; }
.size-medium svg { width: 48px; height: 48px; left: -12px; top: -12px; }
.size-large { gap: 16px; }
.size-large .icon { width: 28px; height: 28px; }
.size-large svg { width: 56px; height: 56px; left: -14px; top: -14px; }
.align-left { justify-content: flex-start; }
.align-right { justify-content: flex-end; }

/* video (YouTube) */
.video-wrap { position: relative; padding-bottom: 56.206%; height: 0; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* embed (Gumroad button lives here; gumroad.js styles it) */
.block.embed { text-align: center; }

/* form */
.sqs-form .field label { display: block; font-weight: 300; line-height: 1.6em; margin: 0; padding-bottom: 3px; }
.sqs-form .required { font-family: var(--serif); font-size: 15px; opacity: .7; margin-left: 4px; }
.sqs-form input[type="email"] {
  display: block; width: 100%; height: 52px;
  font-family: var(--font); font-size: 17px; letter-spacing: .02em; color: #fff;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.45); border-radius: 4px;
  padding: 0 16px; margin: 6px 0 0; outline: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.sqs-form input[type="email"]::placeholder { color: rgba(255,255,255,.45); }
.sqs-form input[type="email"]:hover { border-color: rgba(255,255,255,.7); }
.sqs-form input[type="email"]:focus {
  border-color: #fff; background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(221,225,102,.35);
}
.sqs-form .form-button-wrapper { text-align: center; margin-top: 1.25rem; }
.sqs-form button { background: var(--form-button); color: #fff; line-height: 20px; }
.sqs-form .form-status { text-align: center; margin: 10px 0 0; min-height: 0; font-size: 15px; }
.sqs-form .form-status:empty { display: none; }
.sqs-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* music gallery */
.gallery-section { display: block; padding-top: var(--header-h); }
.gallery-masonry {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  padding: var(--gutter);
}
.gallery-item { margin: 0; }
.gallery-item a { display: block; }
.gallery-item img { width: 100%; height: auto; }

/* ---------------- Mobile ---------------- */
@media screen and (max-width: 767px) and (orientation: portrait) {
  .content-wrapper { --vpad: 3.3vh; }
  .h-medium .content-wrapper { --vpad: 6.6vh; }
  .h-large .content-wrapper { --vpad: 9.9vh; }
  .h-custom .content-wrapper { --vpad: calc(var(--custom-height, 33) * .1vh); }
}
@media screen and (max-width: 767px) {
  .content-wrapper { padding: var(--vpad) 6vw; }
  .bg-inset .content-wrapper { padding: calc(var(--vpad) + 4vw) 10vw; }
  .bg-inset .section-bg { inset: 4vw; }
  .w-medium .content, .w-narrow .content { width: 100%; }
  .row { display: block; }
  .col { width: 100% !important; }
  .layout-card figure, .layout-card.pos-right figure { flex-direction: column; }
  .layout-card .image-wrap, .layout-card .image-card { width: 100%; flex-basis: auto; }
  .layout-card .image-card { margin-top: 10%; }
  .block.spacer { display: none; }
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); gap: 2px; padding: 6vw; }
}

/* ---------------- Motion (see assets/motion.js) ---------------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* scroll-in reveal: fade + rise, Squarespace-style "slide up" */
html.has-motion .reveal {
  opacity: 0;
  transform: translate3d(0, 56px, 0);
  transition: opacity 1s cubic-bezier(.19, 1, .22, 1), transform 1.4s cubic-bezier(.19, 1, .22, 1);
}
html.has-motion .gallery-item.reveal { transform: translate3d(0, 40px, 0) scale(.96); }
html.has-motion .reveal.in-view { opacity: 1; transform: none; }

/* parallax drift on images and device clips */
.parallax { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* gentle hover on clickable images */
.block.image a .media, .gallery-item img { transition: transform .8s cubic-bezier(.19, 1, .22, 1), filter .6s ease; }
.block.image a:hover .media { filter: brightness(1.08); }
.gallery-item a { overflow: hidden; }
.gallery-item a:hover img { transform: scale(1.05); }

/* visitors with "reduce motion" on get a plain fade, no movement */
html.has-fade .reveal { opacity: 0; transition: opacity .9s ease; }
html.has-fade .reveal.in-view { opacity: 1; }
