/* Shared finishing details for navigation, films and the botanical footer. */
html[data-theme] {--header-height:104px;--film-radius:24px}

/* The story sits on the same canvas as its edge flowers. */
html[data-theme] #journey {background:transparent}

/* One wordmark, with the same proportions in both locations. */
.site-header .brand-wordmark,
.garden-footer .brand-wordmark,
.botanical-loading .brand-wordmark {
  display:inline-flex;flex-direction:row;align-items:baseline;gap:7px;
  width:fit-content;white-space:nowrap;font:400 28px/1.1 var(--display);
  letter-spacing:-.025em;text-transform:uppercase;color:var(--ivory);
}
.site-header .brand-wordmark span:last-child,
.garden-footer .brand-wordmark span:last-child,
.botanical-loading .brand-wordmark span:last-child {
  margin:0;font:500 10px/1 var(--sans);letter-spacing:.14em;
}
/* The opening uses the same horizontal identity, enlarged as one unit. */
html[data-theme] .botanical-loading .brand-wordmark {
  margin:0;padding:0;font-size:clamp(38px,8vw,92px);gap:.25em;color:#fff2c8;
}
.botanical-loading .brand-wordmark span:last-child {font-size:.357143em}
.botanical-loading .loading-content {inset-block-start:28dvh}
.hero-mobile-line {display:none}
@media(max-height:450px) and (orientation:landscape) {
  .botanical-loading .loading-content {inset-block-start:18dvh}
}

/* A floating glass navigation bar, with generous, quiet controls. */
html[data-theme] .site-header,
html[data-theme] .site-header.is-scrolled,
html[data-theme]:not([data-page=home]) .site-header {
  inset:16px 24px auto;width:calc(100% - 48px);max-width:1392px;height:72px;
  margin-inline:auto;border:1px solid color-mix(in srgb,var(--ivory) 15%,transparent);
  border-radius:24px;background:color-mix(in srgb,var(--ink) 82%,transparent);
  backdrop-filter:blur(24px) saturate(125%);-webkit-backdrop-filter:blur(24px) saturate(125%);
  box-shadow:0 8px 32px #00000014;overflow:visible;
}
.site-header .nav-shell {grid-template-columns:190px 1fr auto;padding-inline:26px;gap:16px}
.site-header .desktop-nav {gap:3px}
html[data-theme] .site-header .desktop-nav a {
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:10px 15px;border-radius:14px;border:1px solid transparent;
  color:var(--text-muted);font-size:11px;letter-spacing:.055em;
}
html[data-theme] .site-header .desktop-nav a:is(.is-active,:hover) {
  color:var(--ivory);background:color-mix(in srgb,var(--purple) 21%,transparent);
  border-color:color-mix(in srgb,var(--lavender) 35%,transparent);box-shadow:none;
}
.site-header .nav-actions {gap:12px}
.site-header .language-switch {gap:0;padding:2px;border:1px solid var(--editorial-line);border-radius:14px}
.site-header .language-switch>span {display:none}
.site-header .language-switch button {min-width:48px;min-height:40px;padding:4px 8px;border-radius:11px;font-size:10px}
.site-header .language-switch button[aria-pressed=true] {background:color-mix(in srgb,var(--gold) 12%,transparent);color:var(--gold)}
.site-header .theme-toggle,.site-header .menu-toggle {width:44px;min-width:44px;height:44px;border-radius:14px;border:1px solid var(--editorial-line);background:transparent}
.site-header .theme-toggle:hover,.site-header .menu-toggle:hover {background:color-mix(in srgb,var(--ivory) 8%,transparent)}
.site-header .mobile-menu {top:calc(100% + 10px);left:0;right:0;border:1px solid var(--editorial-line);border-radius:20px;padding:12px;box-shadow:0 16px 40px #00000024}
.site-header .mobile-menu a {padding:13px 16px;min-height:48px;border:0;border-radius:12px}
html[data-theme] .site-header .mobile-menu a.is-active {padding-left:16px;border-radius:12px;background:color-mix(in srgb,var(--purple) 21%,transparent)}
.site-header :is(a,button):focus-visible {outline:2px solid var(--lavender);outline-offset:3px}

/* Rounded media only: editorial stories remain open, without card boxes. */
.film-visual,.watch-player,.watch-next-image,.watch-next a>img,
.about-video-card,.about-window-media,#media-player {
  border-radius:var(--film-radius);overflow:hidden;
}
.film-visual>img,.film-visual>video,.watch-player>video,
.watch-player>iframe,.watch-poster,.watch-poster>img,
.about-window-media>video,#media-player>video,#media-player>iframe {border-radius:inherit}
.about-video-card,.about-window-media {mask:none;-webkit-mask:none}
.hero-player {border-radius:18px}
.hero-player img {border-radius:9px}
.watch-player:fullscreen,.watch-player:fullscreen>video {border-radius:0}

/* Give photo collections the same soft frame as the film artwork. */
.folder-collage,.collection-photo,.gallery-dialog {border-radius:var(--film-radius)}
.folder-count,.collection-photo>span,.about-film-mark {border-radius:999px}
.gallery-dialog .gallery-preview {border-radius:var(--film-radius)}
#gallery-preview #gallery-image,#gallery-preview .gallery-video {border-radius:16px}
#gallery-preview .gallery-video:fullscreen {border-radius:0}
.collection-folder {border-radius:var(--film-radius);overflow:visible}
.collection-folder:focus-visible {outline:2px solid var(--lavender);outline-offset:7px}
.collection-photo:focus-visible {outline:2px solid var(--lavender);outline-offset:-4px}

/* A compact glass pill keeps the film invitation clear of native controls. */
.about-film .about-video-start {
  inset:auto 16px 68px;width:fit-content;max-width:calc(100% - 32px);
  margin-inline:auto;padding:9px 16px 9px 9px;min-height:56px;
  border-radius:999px;gap:10px;flex-wrap:nowrap;
}
.about-film .about-video-start>span {flex:0 0 36px;width:36px;height:36px;line-height:0}
.about-film .about-video-start>span .ui-icon {display:block;width:16px;height:16px;margin:0}
.about-film .about-video-start>b {min-width:0;line-height:1.45}
.about-film .about-video-start>small {flex:none;white-space:nowrap}
.about-film .about-video-start:focus-visible {outline:2px solid var(--lavender);outline-offset:4px}

/* A tinted garden with a continuous, flush lower edge. */
html[data-theme] .site-footer.garden-footer {
  border-radius:34px;background:#142420!important;
  border-color:color-mix(in srgb,var(--ivory) 20%,transparent);
}
html[data-theme=light] .site-footer.garden-footer {background:#e3e6cd!important;border-color:#79846b66}
.garden-footer .footer-introduction {padding-top:8px}
.garden-footer .footer-line {margin-top:20px}
.garden-footer .botanical-music-lines {opacity:.55}

/* Notes stay inside the garden, instead of flying beyond a clipped viewport. */
html .site-footer.garden-footer .footer-sky {
  display:block;inset:auto 10% clamp(110px,12vw,180px);width:auto;height:105px;
  overflow:visible;container-type:inline-size;
}
.garden-footer .footer-flight {position:absolute;inset:0;display:block}
html[data-theme] .garden-footer .flying-note {
  display:block;position:absolute;left:5%;top:25%;width:48px;height:48px;
  scale:1;opacity:.8;color:var(--gold);padding:6px;
  animation:garden-note-drift 11s ease-in-out -3s infinite alternate;
}
html[data-theme] .garden-footer .flying-note:nth-child(2) {left:27%;top:60%;color:var(--lavender);animation-duration:14s;animation-delay:-8s}
html[data-theme] .garden-footer .flying-note:nth-child(3) {left:49%;top:6%;animation-duration:12s;animation-delay:-5s}
html[data-theme] .garden-footer .flying-note:nth-child(4) {left:72%;top:48%;color:var(--lavender);animation-duration:15s;animation-delay:-10s}
html[data-theme] .garden-footer .flying-note:nth-child(5) {left:92%;top:0;animation-duration:13s;animation-delay:-7s}
html[data-theme] .garden-footer .flying-note:nth-child(6) {display:none}
html[data-theme] .garden-footer .flying-note:is(:hover,:focus-visible,.is-ringing) {opacity:1;color:var(--ivory);animation-play-state:paused}
html[data-theme] .garden-footer:not(.notes-awake) .flying-note {animation-play-state:paused}
@keyframes garden-note-drift {from{transform:translate(-5px,7px) rotate(-7deg)}to{transform:translate(7px,-9px) rotate(7deg)}}

@media(max-width:1100px) {
  .site-header .nav-shell {grid-template-columns:170px 1fr auto;padding-inline:20px;gap:10px}
  html[data-theme] .site-header .desktop-nav a {padding-inline:10px}
  .site-header .nav-actions {gap:8px}
}
@media(max-width:900px) {
  .site-header .nav-shell {grid-template-columns:1fr auto}
  .site-header .desktop-nav {display:none}
}
@media(max-width:600px) {
  html[data-theme] {--header-height:88px;--film-radius:18px}
  html[data-theme] .site-header,html[data-theme] .site-header.is-scrolled,
  html[data-theme]:not([data-page=home]) .site-header {
    inset:10px 10px auto;width:calc(100% - 20px);height:64px;border-radius:20px;
  }
  .site-header .nav-shell {padding-inline:10px;gap:6px}
  .site-header .brand-wordmark {font-size:22px;gap:4px}
  .site-header .brand-wordmark span:last-child {font-size:7px;letter-spacing:.08em}
  .site-header .nav-actions {gap:4px}
  .site-header .language-switch {border:0;padding:0;gap:0}
  .site-header .language-switch button {min-width:38px;padding:2px;font-size:9px;min-height:44px}
  .site-header .theme-toggle,.site-header .menu-toggle {width:44px;min-width:44px;height:44px;border-radius:12px}
  .site-header .mobile-menu {top:calc(100% + 8px)}
  .hero .hero-copy>.eyebrow,.hero .hero-desktop-name,
  .hero .hero-copy>.hero-line,.hero .hero-divider {display:none}
  .hero .hero-mobile-line {display:inline}
  html[lang=en] .hero .hero-copy h1 {
    font-size:clamp(38px,10vw,54px)!important;line-height:1.08;
    letter-spacing:-.035em;max-width:390px;margin:0 auto 24px;
  }
  html[lang=gu] .hero .hero-copy h1 {
    font-size:clamp(30px,8vw,42px);line-height:1.45;
    letter-spacing:0;max-width:390px;margin:0 auto 22px;
  }
  .hero .hero-intro {max-width:300px;line-height:1.7}
  .hero .hero-inner {padding-top:34px}
}
@media(max-width:680px) {
  html[data-theme] .site-footer.garden-footer {border-radius:24px}
  html .site-footer.garden-footer .footer-sky {inset:auto 8% 110px;height:90px}
  html[data-theme] .garden-footer .flying-note {left:2%;top:25%;width:44px;height:44px}
  html[data-theme] .garden-footer .flying-note:nth-child(2) {left:43%;top:60%}
  html[data-theme] .garden-footer .flying-note:nth-child(3) {left:82%;top:6%}
  html[data-theme] .garden-footer .flying-note:nth-child(n+4) {display:none}
}
@media(max-width:360px) {
  .site-header .brand-wordmark {font-size:19px;gap:3px}
  .site-header .nav-shell {padding-inline:7px;gap:3px}
  .site-header .nav-actions {gap:2px}
}
@media(prefers-reduced-motion:reduce) {
  html[data-theme] .garden-footer .flying-note {animation:none!important;transform:none}
  .site-header :is(a,button) {transition:none}
}

/* Focused libraries, with short editorial previews on the homepage. */
html[data-page=music] main>#music,
html[data-page=gallery] main>#gallery {
  display:block;padding-top:calc(var(--header-height) + 60px);min-height:80svh;
}
html[data-page=music] #music-title,html[data-page=gallery] #photos-title {
  max-width:12ch;font-size:clamp(54px,7.4vw,112px);line-height:.95;
  letter-spacing:-.04em;color:var(--ivory);margin:0;
}
html[data-page=music] .music .section-heading,
html[data-page=gallery] .photos .section-heading {margin-bottom:64px}
html[data-page=home] :is(#instagram-profile-snapshot,.collection-toolbar) {display:none}
html[data-page=home] .music .section-heading,
html[data-page=home] .photos .section-heading {margin-bottom:40px}
html[data-page=home] #performances .editorial-film {padding-block:32px;gap:clamp(32px,7vw,100px);grid-template-columns:minmax(200px,.65fr) 1.35fr}
html[data-page=home] #performances .film-visual {max-width:260px;margin-inline:auto}
html[data-page=home] #performances .film-story h3 {font-size:clamp(36px,4vw,56px);max-width:17ch}
html[data-page=home] #performances .film-story>p:not(.eyebrow) {font-size:15px;max-width:52ch}
.media-preview-link {display:flex;width:fit-content;align-items:center;gap:24px;margin-top:40px;min-height:48px;padding:10px 0;border-bottom:1px solid var(--lavender)}
.media-preview-link>span:last-child {transition:translate .25s}
.media-preview-link:hover>span:last-child {translate:3px -3px}
@media(max-width:680px) {
  html[data-page=music] main>#music,html[data-page=gallery] main>#gallery {padding-top:calc(var(--header-height) + 40px)}
  html[data-page=music] #music-title,html[data-page=gallery] #photos-title {font-size:clamp(46px,12vw,68px);line-height:1.02}
  html[data-page=music] .music .section-heading,html[data-page=gallery] .photos .section-heading {margin-bottom:36px}
  html[data-page=home] #performances .editorial-film {grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:20px;padding-block:24px}
  html[data-page=home] #performances .film-visual {width:100%;max-width:none}
  html[data-page=home] #performances .film-story h3 {font-size:clamp(25px,7vw,36px);line-height:1.08;margin:12px 0 16px}
  html[data-page=home] #performances .film-story>p:not(.eyebrow) {display:none}
  html[data-page=home] #performances .film-story .eyebrow {font-size:8px;letter-spacing:.12em}
  html[data-page=home] #performances .film-story>a {font-size:10px;min-height:44px;display:inline-flex;align-items:center;margin:0;gap:12px}
  .media-preview-link {margin-top:28px;font-size:12px}
}
html[lang=gu][data-page=music] #music-title,
html[lang=gu][data-page=gallery] #photos-title {line-height:1.4;letter-spacing:0}

/* A compact, crawlable index also makes a specific film easy to find. */
.film-index{margin-top:40px;border-top:1px solid var(--line, #96734655);padding:22px 0;color:var(--text, #FFF2C8)}
.film-index summary{cursor:pointer;padding:12px 0;font-size:15px;min-height:44px}
.film-index nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 24px;padding:16px 0}
.film-index a{padding:10px 0;font-size:14px;line-height:1.6;text-decoration:underline;text-underline-offset:5px;text-decoration-color:color-mix(in srgb,currentColor 30%,transparent)}
.film-index a:hover{color:var(--gold,#FFBE38)}
@media(max-width:700px){.film-index nav{grid-template-columns:1fr}}
