/* ———————————————————————————————————————
   sound∿wjosh — refined theme
   v2 palette: same dark, calming ground, warmed through —
   forest base, eucalyptus + clay accents, oat-parchment text,
   a dusk gradient drawn from Josh's own inspiration imagery.
——————————————————————————————————————— */

:root {
  /* ground — warmer, living forest rather than cold near-black */
  --bg-hsl: 96, 18%, 10%;
  --bg: hsl(var(--bg-hsl));
  --bg-raised: hsl(94, 14%, 13%);
  --line: hsla(60, 18%, 78%, 0.13);

  /* type — warm oat/parchment instead of cold grey */
  --text: hsl(66, 9%, 70%);
  --text-soft: hsl(72, 7%, 55%);
  --heading: hsl(48, 18%, 88%);

  /* accents — eucalyptus sage + a dusty clay drawn from the rug & cushion */
  --accent: hsl(92, 18%, 62%);
  --clay: hsl(14, 34%, 63%);
  --clay-soft: hsla(14, 34%, 63%, 0.16);

  /* dusk wash — peach → clay → sage, from the palm-sunset inspiration */
  --dusk: linear-gradient(135deg,
      hsla(24, 42%, 60%, 0.22),
      hsla(8, 36%, 56%, 0.16) 40%,
      hsla(96, 20%, 30%, 0.18) 100%);

  --font-body: "Raleway", sans-serif;
  --font-display: "Space Grotesk", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.5rem, 5vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.85;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint grain so the dark ground doesn't sit flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

::selection { background: hsla(109, 20%, 40%, 0.45); color: var(--heading); }

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

a { color: inherit; text-decoration: none; transition: color 0.6s var(--ease), opacity 0.6s var(--ease); }

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 200;
  color: var(--heading);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; font-weight: 400; letter-spacing: 0.12em; }

em { font-style: italic; font-weight: 300; }

/* ——— header ——— */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--pad);
  transition: background 0.8s var(--ease), padding 0.8s var(--ease), box-shadow 0.8s var(--ease);
}

.site-header.scrolled {
  background: hsla(var(--bg-hsl), 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  box-shadow: 0 1px 0 var(--line);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--heading);
}

.wordmark .tilde {
  color: var(--accent);
  display: inline-block;
}

.site-nav { display: flex; gap: 2.2rem; }

.site-nav a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--text-soft);
  position: relative;
  padding-bottom: 0.2rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s var(--ease);
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--heading); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--heading);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  cursor: pointer;
}

/* ——— hero ——— */

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  position: relative;
  padding: clamp(8rem, 19vh, 13rem) var(--pad) 4rem;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom; /* favour Josh + the bowls, crop the sky */
  opacity: 1;            /* clean — no fade */
  filter: none;          /* clean — no colour grade */
  transform: scale(1.18);
  transform-origin: center 80%;
  animation: hero-drift 26s var(--ease) forwards;
}

/* the still sits behind the video as a fallback (autoplay-blocked, slow load) */
.hero-media .hero-fallback { z-index: 0; }
.hero-media .hero-video { z-index: 1; }

@keyframes hero-drift {
  from { transform: scale(1.24); }
  to { transform: scale(1.16); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media .hero-video { display: none; }
}

/* clean video: no colour grade. a soft pool of shade behind the text for
   legibility, a minimal blend into the page at the edges, and a gentle
   uniform dim over the whole frame (no colour shift) */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(75% 42% at 50% 40%, hsla(220, 18%, 4%, 0.5), hsla(220, 18%, 4%, 0.22) 55%, transparent 78%),
    linear-gradient(to bottom, hsla(var(--bg-hsl), 0.28) 0%, transparent 16%, transparent 86%, hsl(var(--bg-hsl)) 100%),
    hsla(0, 0%, 0%, 0.18);
}

.hero h1 {
  max-width: 17ch;
  margin-bottom: 1.6rem;
  color: hsl(48, 30%, 96%);
  text-shadow: 0 1px 2px hsla(220, 30%, 4%, 0.5), 0 2px 30px hsla(220, 30%, 4%, 0.55);
}

.hero p {
  max-width: 34rem;
  color: hsl(48, 16%, 90%);
  font-size: 1.08rem;
  text-shadow: 0 1px 2px hsla(220, 30%, 4%, 0.55), 0 1px 18px hsla(220, 30%, 4%, 0.5);
}

.hero .tilde-mark {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 2.4rem;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.45; letter-spacing: 0; }
  50% { opacity: 1; letter-spacing: 0.35em; }
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  width: 1px;
  height: 3.4rem;
  background: linear-gradient(to bottom, transparent, var(--accent));
  opacity: 0.5;
  animation: cue 3.5s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.2; }
  50% { transform: scaleY(1); opacity: 0.6; }
}

/* faint travelling sine wave behind hero text */
.wave-line {
  position: absolute;
  left: 0;
  width: 200%;
  z-index: -1;
  opacity: 0.10;
  animation: wave-travel 40s linear infinite;
}

@keyframes wave-travel {
  to { transform: translateX(-50%); }
}

/* ——— sections ——— */

section { padding: clamp(4rem, 9vw, 7.5rem) var(--pad); }

.measure {
  max-width: 42rem;
  margin-inline: auto;
}

.measure-wide {
  max-width: 64rem;
  margin-inline: auto;
}

.section-mark {
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 1.3rem;
  opacity: 0.6;
  margin-bottom: 3rem;
}

.kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clay);
  opacity: 0.85;
  margin-bottom: 1.4rem;
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 200;
  color: var(--heading);
  line-height: 1.75;
}

.divider {
  border: none;
  height: 1px;
  background: var(--line);
  max-width: 64rem;
  margin: 0 auto;
}

p + p { margin-top: 1.4rem; }

/* ——— three pillars (home) ——— */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
  margin-top: 4.5rem;
}

.pillar { text-align: center; }

.pillar .glyph {
  font-size: 1.4rem;
  color: var(--accent);
  display: block;
  margin-bottom: 1.4rem;
  opacity: 0.7;
}

.pillar h3 { margin-bottom: 1rem; text-transform: lowercase; }

.pillar p { font-size: 0.95rem; color: var(--text-soft); }

.pillar a.more {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.6s var(--ease);
}

.pillar a.more:hover { border-color: var(--accent); }

/* ——— image bands ——— */

.image-band {
  height: clamp(20rem, 50vh, 32rem);
  overflow: hidden;
  position: relative;
}

.image-band img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  opacity: 1;          /* clean — no fade */
  filter: none;        /* clean — no colour grade */
  will-change: transform;
}

/* just a soft edge-blend into the page — no colour grade */
.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 70px 28px hsl(var(--bg-hsl));
}

.image-band--tall {
  height: clamp(28rem, 82vh, 46rem);
}

/* ——— clean video band: full-width, soft fade in/out top & bottom ——— */
.video-band {
  position: relative;
  height: clamp(28rem, 86vh, 50rem);
  overflow: hidden;
}

.video-band .band-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* clean — no colour grade */
}

/* fade gently into the page at the top and bottom, clean through the middle */
.video-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    hsl(var(--bg-hsl)) 0%,
    hsla(var(--bg-hsl), 0) 20%,
    hsla(var(--bg-hsl), 0) 80%,
    hsl(var(--bg-hsl)) 100%
  );
}

/* dim variant: small top/bottom fade + a gentle uniform dim (no colour shift) */
.video-band--dim::after {
  background:
    linear-gradient(
      to bottom,
      hsl(var(--bg-hsl)) 0%,
      hsla(var(--bg-hsl), 0) 12%,
      hsla(var(--bg-hsl), 0) 88%,
      hsl(var(--bg-hsl)) 100%
    ),
    hsla(0, 0%, 0%, 0.24);
}

/* this grove shot earns more light — let it breathe */
.image-band--tall img { opacity: 0.92; filter: saturate(0.96) brightness(1.02); }

.image-band .band-line,
.video-band .band-line {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: clamp(2.5rem, 6vw, 4.5rem);
  margin-inline: auto;
  max-width: 40rem;
  padding: 0 var(--pad);
  text-align: center;
  font-weight: 200;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  letter-spacing: 0.06em;
  color: hsl(48, 24%, 94%);
  text-shadow: 0 1px 30px hsla(var(--bg-hsl), 0.8);
}

/* ——— balance: light & dark, held together by the wave ——— */
/* the duality is felt, never named */

.balance {
  padding: 0;
  position: relative;
}

.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(26rem, 78vh, 46rem);
}

.balance-half {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.balance-half img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}

/* yang — light, open, luminous */
.balance-half.light img { opacity: 1; filter: saturate(0.98) brightness(1.08); }
.balance-half.light::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, hsla(var(--bg-hsl), 0.72), hsla(var(--bg-hsl), 0) 42%, transparent);
}

/* yin — dark, quiet, deepened, but still legible */
.balance-half.dark img { opacity: 0.9; filter: saturate(0.72) brightness(0.82); }
.balance-half.dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, hsla(var(--bg-hsl), 0.78), hsla(var(--bg-hsl), 0.12) 55%, transparent),
    hsla(var(--bg-hsl), 0.28);
}

.balance-half .label {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(2rem, 5vw, 4rem);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--heading);
  text-shadow: 0 1px 24px hsla(var(--bg-hsl), 0.7);
}
.balance-half.dark .label { text-align: right; color: var(--text); }
.balance-half.light .label { color: hsl(48, 24%, 94%); }

/* the wave seam down the middle */
.balance-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.balance-seam::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.balance-seam span {
  font-size: 1.5rem;
  color: var(--heading);
  background: hsl(var(--bg-hsl));
  border-radius: 50%;
  width: 3.2rem; height: 3.2rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  animation: breathe 7s ease-in-out infinite;
}

/* rotating dualities beneath */
.dualities {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad);
}
/* 3-column grid: the ∿ holds the centre, words hug it from each side and
   never shift it as their length changes */
.dualities .pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  column-gap: 0.5em;
  font-weight: 200;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  color: var(--heading);
  min-height: 1.3em;
}
.dualities .pair .sep {
  color: var(--accent);
  /* fixed — the still point the words move around */
}
.dualities .word {
  display: inline-block;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.dualities .word:first-child { text-align: right; }  /* left word hugs the ∿ */
.dualities .word:last-child  { text-align: left; }   /* right word hugs the ∿ */

/* float out before the swap, float back in after */
.dualities .pair.swapping .word:first-child { opacity: 0; transform: translateX(-0.5em); }
.dualities .pair.swapping .word:last-child  { opacity: 0; transform: translateX(0.5em); }

@media (max-width: 700px) {
  .balance-grid { grid-template-columns: 1fr; }
  .balance-half { min-height: 60vh; }
  .balance-half.dark .label { text-align: left; }
  .balance-seam { display: none; }
}

/* ——— about ——— */

.about-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.about-grid figure {
  position: sticky;
  top: 7rem;
}

.about-grid figure img {
  border-radius: 2px;
  opacity: 0.85;
  filter: saturate(0.8);
}

.about-grid figcaption {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  text-align: right;
}

.signoff {
  margin-top: 2.4rem;
  color: var(--heading);
  font-weight: 200;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

/* training list */

.training {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.training li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  transition: padding-left 0.6s var(--ease), color 0.6s var(--ease);
}

.training li:hover { padding-left: 0.8rem; color: var(--heading); }

.training li span:last-child {
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
  align-self: center;
}

/* ——— why sound grid ——— */

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3.5rem;
}

.benefit {
  background: var(--bg);
  padding: 2.2rem 2rem;
  transition: background 0.8s var(--ease);
}

.benefit:hover { background: var(--bg-raised); }

.benefit h3 {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.8rem;
  text-transform: lowercase;
  color: var(--accent);
}

.benefit p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.75; }

/* ——— offerings ——— */

.offering {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.offering:last-of-type { border-bottom: 1px solid var(--line); }

.offering h3 {
  text-transform: lowercase;
  letter-spacing: 0.1em;
  font-size: 1.15rem;
  font-weight: 300;
}

.offering .num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.7rem;
  opacity: 0.7;
}

.offering p { font-size: 0.97rem; color: var(--text); }

.offering .detail {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

/* ——— buttons ——— */

.btn {
  display: inline-block;
  margin-top: 2.6rem;
  padding: 0.95rem 2.6rem;
  border: 1px solid hsla(80, 14%, 70%, 0.3);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: lowercase;
  color: var(--heading);
  position: relative;
  overflow: hidden;
  transition: border-color 0.7s var(--ease), color 0.7s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--clay-soft);
  transform: translateY(101%);
  transition: transform 0.7s var(--ease);
}

.btn:hover { border-color: var(--clay); }
.btn:hover::before { transform: translateY(0); }

/* ——— contact ——— */

.contact-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  padding-top: 10rem;
}

.contact-links {
  margin-top: 3rem;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-links .btn { margin-top: 0; }

/* ——— footer ——— */

.site-footer {
  padding: 3.5rem var(--pad) 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}

.site-footer a:hover { color: var(--heading); }

.footer-tilde { color: var(--accent); }

/* ——— reveal on scroll ——— */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

.reveal[data-delay="1"] { transition-delay: 0.15s; }
.reveal[data-delay="2"] { transition-delay: 0.3s; }
.reveal[data-delay="3"] { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ——— responsive ——— */

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; gap: 3rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid figure { position: static; max-width: 26rem; }
  .benefits { grid-template-columns: 1fr; }
  .offering { grid-template-columns: 1fr; gap: 1rem; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: hsla(var(--bg-hsl), 0.96);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease);
  }

  .site-nav.open { opacity: 1; pointer-events: auto; }
  .site-nav a { font-size: 1.05rem; }
  .nav-toggle { display: block; position: relative; z-index: 101; }
}
