/* ==========================================================================
   Molded by Music — site styles
   Brand palette (Espaço Ayana direction). Change a color here and it updates everywhere.
   ========================================================================== */
/* ---------- Fonts (self-hosted, open-licence: see assets/fonts/OFL-*.txt) ---------- */
@font-face { font-family: 'Fraunces'; src: url('../assets/fonts/Fraunces-Variable.woff2') format('woff2'); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../assets/fonts/Fraunces-Italic-Variable.woff2') format('woff2'); font-weight: 300 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../assets/fonts/Figtree-Variable.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  /* Brand colors */
  --deep: #153739;          /* Deep teal: main background */
  --ground: #EAE4D0;        /* Cream: light sections, text on teal */
  --accent: #F8672E;        /* Ayana orange: buttons, highlights */
  --night: #0B1F20;         /* Night teal: text on orange */

  /* Derived tones (mixes of the four brand colors) */
  --deep-alt: #224142;          /* cards on teal */
  --ground-alt: #DBD8C5;        /* slightly darker cream */
  --accent-on-dark: #FA956D;    /* small orange text on teal (readable) */
  --accent-on-light: #9F421D;   /* small orange text on cream (readable) */
  --muted-on-dark: #B7BAAC;     /* secondary text on teal */
  --muted-on-light: #556B66;    /* secondary text on cream */
  --line-dark: #334F4E;
  --line-dark-strong: #596E69;
  --line-light: #C8C8B8;
  --glow-warm: #864F34;

  /* Type */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 10vw, 140px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ground);
  background: var(--deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .78; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--light { background: var(--ground); color: var(--deep); }
.section--light-alt { background: var(--ground-alt); color: var(--deep); }
.section--accent { background: var(--accent); color: var(--night); position: relative; overflow: hidden; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-on-dark); }
.section--light .eyebrow, .section--light-alt .eyebrow { color: var(--accent-on-light); }
.section--accent .eyebrow { color: var(--night); }

.h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(50px, 7.4vw, 104px); line-height: .98; letter-spacing: -.02em; }
.h1 em { color: var(--accent-on-dark); font-weight: 300; }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -.01em; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; }
.lead { font-size: 18px; line-height: 1.65; color: var(--muted-on-dark); }
.section--light .lead, .section--light-alt .lead { color: var(--muted-on-light); }
.section-head { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head--row > div:first-child { display: flex; flex-direction: column; gap: 20px; max-width: 680px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.btn--accent { background: var(--accent); color: var(--night); }
.btn--ghost { border-color: var(--line-dark-strong); }
.btn--deep { background: var(--deep); color: var(--ground); }
.btn--cream { background: var(--ground); color: var(--deep); }
.btn--small { min-height: 48px; padding: 0 20px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--deep); border-bottom: 1px solid var(--line-dark); }
.site-header__bar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--serif); font-size: 21px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav .btn { min-height: 44px; padding: 0 22px; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--ground); align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 28px; border-top: 1px solid var(--line-dark); font-family: var(--serif); font-size: 30px; }
.mobile-nav a { padding: 10px 0; }
.mobile-nav[hidden] { display: none; }
@media (max-width: 880px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 881px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px);
  background: radial-gradient(ellipse 75% 65% at 0% 105%, var(--glow-warm) 0%, var(--deep) 100%); }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__copy .lead { max-width: 460px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero__visual { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* The 3D handpan: stacked discs tilted in perspective, slowly turning and floating */
.handpan { --hp: min(500px, 82vw); position: relative; width: var(--hp); height: calc(var(--hp) * .74); perspective: 1300px; perspective-origin: 50% 20%; }
.handpan__burst { position: absolute; left: 50%; top: 45%; width: calc(var(--hp) * 1.12); aspect-ratio: 1; transform: translate(-50%, -50%); color: var(--accent); }
.handpan__burst svg { width: 100%; height: 100%; opacity: .55; animation: turn 160s linear infinite; }
.handpan__shadow { position: absolute; left: 12%; right: 12%; bottom: 0; height: 13%; border-radius: 50%; background: #071313; filter: blur(16px); animation: breathe 9s ease-in-out infinite; }
.handpan__float { position: absolute; inset: 0; transform-style: preserve-3d; animation: float 8s ease-in-out infinite; }
.handpan__body { position: absolute; left: 0; top: calc(var(--hp) * -.17); width: var(--hp); height: var(--hp); transform-style: preserve-3d; transform: rotateX(62deg); animation: spin 70s linear infinite; }
.handpan__slice { position: absolute; border-radius: 50%; }
.handpan__face { position: absolute; inset: 0; transform: translateZ(1px); }
.handpan__face svg { width: 100%; height: 100%; }
.handpan__ripple { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent-on-dark); transform: translateZ(2px); animation: ripple 7.5s ease-out infinite; }
.handpan__ripple--2 { animation-delay: 2.5s; }
.handpan__ripple--3 { animation-delay: 5s; }
.glow-ring { opacity: 0; transition: opacity .25s; }
.glow-ring.is-on { opacity: 1; }

.notes { margin-top: calc(min(500px, 82vw) * .1); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.notes__label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-on-dark); }
.notes__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 520px; }
.note { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark-strong); background: transparent; color: var(--ground); font-size: 14px; font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.note.is-on { background: var(--accent); border-color: var(--accent); color: var(--night); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin { from { transform: rotateX(62deg) rotateZ(0); } to { transform: rotateX(62deg) rotateZ(360deg); } }
@keyframes ripple { 0% { transform: translateZ(2px) scale(.62); opacity: .6; } 100% { transform: translateZ(2px) scale(1.75); opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.06); opacity: .9; } }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px); }
.about__photo { flex: 1 1 340px; min-width: 0; max-width: 480px; aspect-ratio: 4 / 5; border-radius: 240px 240px 24px 24px; background: var(--ground-alt); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted-on-light); overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo span { font-size: 14px; font-weight: 500; }
.about__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.about__copy .lead { line-height: 1.7; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-top: 12px; border-top: 1px solid var(--line-light); }
.facts div { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; }
.facts strong { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.facts span { font-size: 14px; color: var(--muted-on-light); }

/* ---------- Listen ---------- */
.stack { display: flex; flex-direction: column; gap: 48px; }
.listen { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); }
.release { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.release__cover { aspect-ratio: 1; border-radius: 20px; background: var(--deep-alt); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.release__cover img { width: 100%; height: 100%; object-fit: cover; }
.release__ring { width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--accent-on-dark); animation: breathe 9s ease-in-out infinite; }
.release__ring2 { position: absolute; width: 44%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-dark-strong); }
.release__dot { position: absolute; width: 14%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.release__note { position: absolute; bottom: 20px; left: 20px; font-size: 13px; color: var(--muted-on-dark); }
.release__meta { display: flex; flex-direction: column; gap: 6px; }
.release__kicker { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-on-dark); }
.release__title { font-family: var(--serif); font-size: 36px; line-height: 1.1; }
.release__sub { font-size: 15px; color: var(--muted-on-dark); }
.platforms { flex: 1.3 1 420px; min-width: 0; display: flex; flex-direction: column; }
.platform { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; padding: 0 4px; border-bottom: 1px solid var(--line-dark); }
.platform__name { display: flex; flex-direction: column; gap: 4px; }
.platform__name strong { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); }
.platform__name span { font-size: 14px; color: var(--muted-on-dark); }
.platform__arrow { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--line-dark-strong); display: flex; align-items: center; justify-content: center; }

/* ---------- Instagram ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 16px); }
.insta-grid a { aspect-ratio: 1; border-radius: clamp(8px, 1.4vw, 18px); display: flex; align-items: flex-end; justify-content: space-between; padding: clamp(8px, 1.4vw, 18px); font-size: 13px; overflow: hidden; position: relative; }
.insta-grid a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-1 { background: var(--deep); color: var(--ground); }
.tile-2 { background: var(--accent); color: var(--night); }
.tile-3 { background: var(--ground-alt); color: var(--night); }
.tile-4 { background: #7B4D34; color: var(--ground); }
.tile-5 { background: var(--night); color: var(--ground); }
.tile-6 { background: #EEBE9F; color: var(--night); }

/* ---------- Lessons ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 380px; min-width: 0; border-radius: 28px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.card--light { background: var(--ground); color: var(--deep); }
.card--dark { background: var(--deep); color: var(--ground); }
.card p { font-size: 17px; line-height: 1.65; color: var(--muted-on-light); }
.card--dark p { color: var(--muted-on-dark); }
.card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.card li { padding-top: 12px; border-top: 1px solid var(--line-light); }
.card--dark li { border-top-color: var(--line-dark); }
.card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Handpans ---------- */
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-dark-strong); }
.toggle button { min-height: 48px; padding: 0 28px; border-radius: 999px; border: 0; background: transparent; color: var(--ground); font-weight: 600; font-size: 15px; }
.toggle button[aria-pressed="true"] { background: var(--ground); color: var(--deep); }
.pans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.pan { border-radius: 28px; background: var(--deep-alt); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.pan__art { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.pan__art svg, .pan__art img { width: 74%; height: auto; overflow: visible; }
.pan__meta { display: flex; flex-direction: column; gap: 6px; }
.pan__finish { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-on-dark); }
.pan__name { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.pan__scale { font-size: 15px; color: var(--muted-on-dark); }
.pan__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-dark); }
.pan__price { font-size: 17px; font-weight: 600; }
.pan__foot .btn { border-color: var(--line-dark-strong); }

/* ---------- Newsletter ---------- */
.newsletter__burst { position: absolute; right: -16vw; top: 50%; width: 52vw; aspect-ratio: 1; transform: translateY(-50%); color: var(--night); pointer-events: none; }
.newsletter__burst svg { width: 100%; height: 100%; opacity: .35; animation: turn 160s linear infinite; }
.newsletter { position: relative; display: flex; flex-direction: column; gap: 24px; }
.newsletter .h2 { font-size: clamp(44px, 6.2vw, 84px); line-height: 1; }
.newsletter p { max-width: 520px; font-size: 18px; line-height: 1.6; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; padding-top: 8px; }
.newsletter__form input { flex: 1 1 260px; min-width: 0; min-height: 56px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--night); background: transparent; color: var(--night); font-size: 16px; }
.newsletter__form input::placeholder { color: var(--night); opacity: .72; }
.newsletter__form button { min-height: 56px; padding: 0 30px; border-radius: 999px; border: 0; background: var(--night); color: var(--ground); font-weight: 600; font-size: 15px; }
.newsletter__thanks { font-family: var(--serif); font-size: 30px; padding-top: 8px; }
.newsletter__small { font-size: 14px !important; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.site-footer__brand img { width: 136px; height: 136px; margin-bottom: 8px; }
.site-footer__brand strong { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.site-footer__brand span { font-size: 15px; line-height: 1.6; color: var(--muted-on-dark); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: 15px; }
.site-footer__cols > * { display: flex; flex-direction: column; gap: 14px; }
.site-footer__cols .eyebrow { font-size: 12px; letter-spacing: .2em; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--muted-on-dark); }

/* ---------- Scroll reveal ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
}
@supports not (animation-timeline: view()) {
  .js .reveal { opacity: 0; transform: translateY(48px); transition: opacity .9s ease, transform .9s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* Respect people who turn off motion in their device settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
