/* Orie King — Throne
   Palette drawn from the album artwork: ivory, sheer veil, warm gold, umber.
*/
:root {
  --ivory: #f2ece3;
  --veil: #e5d9c8;
  --sand: #d4c3a6;
  --gold: #b48f4a;
  --gold-deep: #8d6c2f;
  --umber: #2b221b;
  --umber-soft: #5d5047;
  --white: #fffdf9;
  --rail: 232px;
  --gutter: clamp(20px, 5vw, 64px);
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light only; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--umber);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.05; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header / nav ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.site-head > * { pointer-events: auto; }
.wordmark, .menu-btn { position: relative; z-index: 50; }
.wordmark {
  font-size: 1.35rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 500;
  padding-left: .32em; /* balance trailing tracking */
}
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.05rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 0;
}
.menu-btn .bars { position: relative; width: 26px; height: 12px; display: block; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 10px; }
body.menu-open .menu-btn .bars::before { top: 5px; transform: rotate(45deg); }
body.menu-open .menu-btn .bars::after { top: 5px; transform: rotate(-45deg); }
body.menu-open .menu-btn .label-open { display: none; }
.menu-btn .label-close { display: none; }
body.menu-open .menu-btn .label-close { display: inline; }

.nav {
  position: fixed; inset: 0; z-index: 30;
  background: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 48px; padding: 96px var(--gutter) 48px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s;
}
body.menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
body.menu-open { overflow: hidden; }
.nav-main { text-align: center; }
.nav-main a {
  display: block; font-size: clamp(2.2rem, 8vw, 3.4rem); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 300; padding: .18em 0; transition: color .25s;
}
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--gold-deep); }
.nav-main a[aria-current="page"] { font-style: italic; }
.nav-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.nav-social a { display: inline-flex; padding: 6px; color: var(--umber-soft); }
.icon { width: 22px; height: 22px; display: block; fill: currentColor; }
.icon-lg { width: 28px; height: 28px; }
.icon-mask { background: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.icon-deezer { -webkit-mask-image: url(../img/icons/deezer.png); mask-image: url(../img/icons/deezer.png); }
.icon-amazonmusic { -webkit-mask-image: url(../img/icons/amazonmusic.png); mask-image: url(../img/icons/amazonmusic.png); }
.service-name { display: inline-flex; align-items: center; gap: 14px; }
.service-name .icon { width: 20px; height: 20px; color: var(--umber-soft); flex: none; }
.service-name .icon-amazonmusic { width: 36px; height: 26px; margin: 0 -8px; color: var(--umber); }
.nav-social a:hover { color: var(--gold-deep); }

/* ---------- Footer ---------- */
.site-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  padding: 28px var(--gutter) 32px; font-size: .95rem; letter-spacing: .08em; color: var(--umber-soft);
}
.site-foot a { transition: color .25s; }
.site-foot a:hover { color: var(--gold-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 38px; border-radius: 999px;
  border: 1px solid var(--umber); background: var(--umber); color: var(--ivory);
  font-size: 1.15rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn { text-shadow: none; }
.btn-ghost { background: rgba(255,253,249,.6); color: var(--umber); border-color: var(--umber); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--umber); color: var(--ivory); border-color: var(--umber); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: url(../img/hero-poster.jpg) center 20% / cover no-repeat; }
.hero-media video { pointer-events: none; }
.hero-media.is-still video { visibility: hidden; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-content {
  position: relative; z-index: 1; width: 100%;
  padding: 0 var(--gutter) 40px; text-align: center;
}
.hero-panel { max-width: 100%; }
.hero-kicker { font-size: 1.1rem; letter-spacing: .3em; text-transform: uppercase; color: var(--umber); font-weight: 600; margin: 0 0 10px; }
.hero-title {
  font-size: clamp(2.6rem, 12.5vw, 6rem); font-weight: 300; letter-spacing: .3em; text-transform: uppercase;
  padding-left: .3em; line-height: .95; margin: 0; white-space: nowrap;
}
.hero-title { margin-bottom: 26px; }
.hero-title span { display: inline-block; opacity: 0; transform: translateY(.1em); animation: rise 1.1s var(--ease) forwards; }
.hero-title span:nth-child(2){animation-delay:.08s}.hero-title span:nth-child(3){animation-delay:.16s}
.hero-title span:nth-child(4){animation-delay:.24s}.hero-title span:nth-child(5){animation-delay:.32s}
.hero-title span:nth-child(6){animation-delay:.4s}
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-sub { font-size: 1.35rem; font-style: italic; margin: 14px 0 26px; color: var(--umber); }
.hero-cta { display: inline-block; max-width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-services { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; color: var(--umber); }
.hero-services a { display: inline-flex; padding: 6px; opacity: .92; transition: opacity .25s, transform .25s var(--ease); }
.hero-services a:hover { opacity: 1; transform: translateY(-2px); }
.hero-services a:hover { color: var(--gold-deep); }

/* ---------- Inner pages ---------- */
.page { padding: 104px var(--gutter) 40px; max-width: 1180px; margin: 0 auto; overflow-x: clip; }
/* On inner pages the header scrolls away with the page (phone and tablet) */
@media (max-width: 1023px) { body:not(.page-home) .site-head { position: absolute; } }
.page-title {
  font-size: clamp(2.6rem, 9vw, 4.4rem); font-weight: 300; letter-spacing: .2em; text-transform: uppercase;
  padding-left: .2em; text-align: center; margin-bottom: 10px;
}
.page-lede { text-align: center; font-style: italic; font-size: 1.3rem; color: var(--umber-soft); max-width: 36em; margin: 0 auto 48px; }

/* Music */
.album { display: grid; gap: 40px; align-items: start; }
.album-cover { position: relative; margin: 0; }
.album-cover img { width: 100%; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(43,34,27,.45); }
.album-cover figcaption { font-size: 1rem; color: var(--umber-soft); margin-top: 12px; text-align: center; font-style: italic; }
.album-head h2 { font-size: clamp(2.4rem, 7vw, 3.6rem); letter-spacing: .3em; text-transform: uppercase; font-weight: 300; padding-left: .3em; }
.album-meta { font-size: 1.1rem; color: var(--umber-soft); margin: 6px 0 24px; font-style: italic; }
.tracklist { border-top: 1px solid var(--sand); margin-top: 28px; }
.tracklist li {
  display: grid; grid-template-columns: 2.4em 1fr auto; gap: 12px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--veil); font-size: 1.15rem;
}
.tracklist .n { color: var(--gold); font-variant-numeric: tabular-nums; }
.tracklist .note { font-size: 1rem; font-style: italic; color: var(--umber-soft); }
.tracklist-bonus { margin-top: 26px; font-size: 1.05rem; letter-spacing: .22em; text-transform: uppercase; color: var(--umber-soft); }
.album-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.album-back { margin: 0; }
.album-back img { width: 100%; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(43,34,27,.45); }
.album-back p { font-style: italic; color: var(--umber-soft); margin-top: 12px; }

/* Services list (used in listen dialog and connect page) */
.service-list { border-top: 1px solid var(--sand); }
.service-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 4px; border-bottom: 1px solid var(--veil);
  font-size: 1.25rem; letter-spacing: .06em; transition: padding-left .3s var(--ease), color .25s;
}
.service-list a:hover { padding-left: 14px; color: var(--gold-deep); }
.service-list a small { font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; color: var(--umber-soft); }

/* Listen dialog */
.listen {
  border: 0; padding: 0; background: transparent; max-width: none; max-height: none;
  width: 100%; height: 100%; inset: 0; margin: 0;
}
.listen::backdrop { background: rgba(43,34,27,.5); backdrop-filter: blur(6px); }
.listen-panel {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto;
  width: min(100%, 560px); max-height: 92vh; max-height: 92dvh; overflow: auto;
  background: var(--ivory); border-radius: 22px 22px 0 0; padding: 28px var(--gutter) 36px;
  transform: translateY(24px); opacity: 0; transition: transform .4s var(--ease), opacity .3s;
}
.listen[open] .listen-panel { transform: none; opacity: 1; }
.listen-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.listen-head h2 { font-size: 1.1rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; }
.listen-close { font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--umber-soft); padding: 6px 0; }
.listen-close:hover { color: var(--gold-deep); }
.listen-album { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.listen-album img { width: 72px; height: 72px; border-radius: 4px; }
.listen-album strong { display: block; font-weight: 400; font-size: 1.5rem; letter-spacing: .2em; text-transform: uppercase; }
.listen-album span { font-style: italic; color: var(--umber-soft); }

/* Videos */
.video-feature { margin-bottom: 40px; text-align: center; }
.video-grid { display: grid; grid-template-columns: 1fr; gap: 28px 24px; }
.video-card { text-align: left; width: 100%; }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; background: var(--veil); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video-card:hover .video-thumb img { transform: scale(1.03); }
.video-thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; border: 1px solid var(--white); background: rgba(43,34,27,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fffdf9' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E");
  background-size: 32px; background-position: center; background-repeat: no-repeat;
}
.video-card h3 { font-size: 1.3rem; margin-top: 12px; font-weight: 500; }
.video-card p { margin: 2px 0 0; font-style: italic; color: var(--umber-soft); font-size: 1.05rem; }

.player { border: 0; padding: 0; background: transparent; width: 100%; height: 100%; max-width: none; max-height: none; inset: 0; margin: 0; }
.player::backdrop { background: rgba(43,34,27,.88); }
.player-inner { position: absolute; inset: 0; display: grid; place-items: center; padding: 56px var(--gutter); }
.player-frame { width: min(100%, 1080px); aspect-ratio: 16/9; background: #000; border-radius: 4px; overflow: hidden; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }
.player-close { position: absolute; top: 18px; right: var(--gutter); color: var(--ivory); font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; }

/* Gallery */
.gallery { columns: 2; column-gap: 14px; }
.gallery button { display: block; width: 100%; margin-bottom: 14px; break-inside: avoid; border-radius: 4px; overflow: hidden; background: var(--veil); }
.gallery img { width: 100%; transition: transform .6s var(--ease), filter .4s; }
.gallery button:hover img { transform: scale(1.02); }
.lightbox { border: 0; padding: 0; background: transparent; width: 100%; height: 100%; max-width: none; max-height: none; inset: 0; margin: 0; }
.lightbox::backdrop { background: rgba(43,34,27,.9); }
.lightbox-inner { position: absolute; inset: 0; display: grid; place-items: center; padding: 56px var(--gutter); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); border-radius: 4px; }
.lightbox-nav { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 8px; pointer-events: none; }
.lightbox-nav button { pointer-events: auto; color: var(--ivory); font-size: 2.6rem; font-weight: 300; padding: 20px 14px; }
.lightbox-close { position: absolute; top: 18px; right: var(--gutter); color: var(--ivory); font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; }

/* Connect */
.connect { display: grid; gap: 48px; max-width: 760px; margin: 0 auto; }
.connect h2 { font-size: 1.1rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; color: var(--umber-soft); }
.connect-note { font-style: italic; color: var(--umber-soft); border-top: 1px solid var(--sand); padding-top: 16px; margin: 0; }
.connect-note a { color: var(--umber); font-style: normal; text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .25s, text-decoration-color .25s; }
.connect-note a:hover { color: var(--gold-deep); text-decoration-color: var(--gold-deep); }

/* ---------- Tablet (landscape) and laptop ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail); }
  .site-head {
    inset: 0 auto 0 0; width: var(--rail); flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 36px 0 32px 40px; pointer-events: auto;
  }
  .wordmark { font-size: 1.2rem; margin-bottom: 56px; }
  .menu-btn { display: none; }
  .nav {
    position: static; inset: auto; background: transparent; opacity: 1; visibility: visible; transform: none;
    align-items: flex-start; justify-content: space-between; flex: 1; padding: 0; gap: 32px; transition: none;
  }
  .nav-main { text-align: left; }
  .nav-main a { font-size: 1.55rem; letter-spacing: .2em; padding: .25em 0; }
  .nav-social { flex-direction: row; gap: 4px; margin-left: -6px; }
  .nav-social .icon { width: 19px; height: 19px; }

  .hero { align-items: center; }
  .hero-media {
    left: auto; width: 44%; min-width: 440px;
  }
  .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to right, var(--ivory) 0%, rgba(242,236,227,.5) 2.5%, rgba(242,236,227,0) 7%);
  }
  .hero-media video, .hero-media img { object-position: center center; }
  .hero-content { width: 56%; padding: 80px var(--gutter) 80px 6vw; text-align: left; }
  .hero-title { font-size: clamp(4.2rem, 5.4vw, 7.5rem); padding-left: 0; margin-left: -.03em; }
  .hero-actions { justify-content: flex-start; }
  .hero-media { background-position: center center; }
  .page { padding-top: 72px; }
  .page-title { text-align: left; padding-left: 0; }
  .page-lede { margin-left: 0; text-align: left; }
  .album { grid-template-columns: minmax(300px, 460px) 1fr; gap: 40px 64px; grid-template-rows: auto 1fr; }
  .album-cover { grid-column: 1; grid-row: 1; }
  .album-details { grid-column: 2; grid-row: 1 / span 2; }
  .album-back { grid-column: 1; grid-row: 2; align-self: start; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 3; column-gap: 18px; }
  .gallery button { margin-bottom: 18px; }
  .listen-panel { bottom: auto; top: 50%; transform: translateY(calc(-50% + 20px)); border-radius: 22px; }
  .listen[open] .listen-panel { transform: translateY(-50%); }
  .site-head { padding-bottom: 62px; }
  .site-foot {
    position: fixed; left: 40px; bottom: 30px; z-index: 41; width: calc(var(--rail) - 40px);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 0; font-size: .9rem; letter-spacing: .1em;
  }
}
@media (min-width: 1360px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .album { grid-template-columns: minmax(260px, 380px) 1fr; gap: 32px 40px; grid-template-rows: auto 1fr; }
  .album-cover { grid-column: 1; grid-row: 1; }
  .album-details { grid-column: 2; grid-row: 1 / span 2; }
  .album-back { grid-column: 1; grid-row: 2; align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title span { animation: none; opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
}

@media (min-width: 1024px) { .video-feature { text-align: left; } }

@media (max-width: 479px) {
  .btn { padding: 0 26px; font-size: 1.05rem; letter-spacing: .18em; white-space: nowrap; }
}

/* ---------- Home hero on phone and tablet: white type, dark foot ---------- */
@media (max-width: 1023px) {
  .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(43,34,27,.4) 0%, rgba(43,34,27,0) 14%),
                linear-gradient(to top, rgba(43,34,27,.78) 0%, rgba(43,34,27,.45) 26%, rgba(43,34,27,0) 52%);
  }
  .hero-content { padding-bottom: 36px; color: var(--white); text-shadow: 0 1px 12px rgba(43,34,27,.55); }
  .hero-kicker, .hero-sub, .hero-services, .hero-title { color: var(--white); }
  .hero-services .icon { filter: drop-shadow(0 1px 6px rgba(43,34,27,.45)); }
  .hero-sub { margin-bottom: 22px; }
  .hero .btn { background: var(--white); border-color: var(--white); color: var(--umber); text-shadow: none; }
  .hero .btn:hover { background: var(--ivory); border-color: var(--ivory); color: var(--umber); }
  .hero .btn-ghost { background: rgba(43,34,27,.25); border-color: rgba(255,253,249,.85); color: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero .btn-ghost:hover { background: rgba(255,253,249,.18); }
  .page-home .site-head { color: var(--white); text-shadow: 0 1px 10px rgba(43,34,27,.6); }
  .page-home.menu-open .site-head { color: var(--umber); text-shadow: none; }
}


/* Secret note page */
.note-page { max-width: 760px; text-align: center; }
.note-photo { margin: 0 auto 32px; max-width: 420px; }
.note-photo img { width: 100%; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(43,34,27,.45); }
.note-kicker { font-size: 1.05rem; letter-spacing: .3em; text-transform: uppercase; color: var(--umber-soft); margin: 0 0 10px; }
.note-title { font-size: clamp(2.8rem, 9vw, 4.6rem); font-weight: 300; letter-spacing: .12em; margin-bottom: 18px; }
.note-body { font-size: 1.45rem; font-style: italic; line-height: 1.5; max-width: 26em; margin: 0 auto; }
.note-sign { margin-top: 28px; font-size: 1.5rem; font-style: italic; color: var(--gold-deep); }
.note-body em { font-style: normal; letter-spacing: .18em; text-transform: uppercase; font-size: .9em; }
@media (min-width: 1024px) { .note-page { text-align: left; } .note-photo { margin-left: 0; } .note-body { margin-left: 0; } }
