@import url("/controls.css");

:root{color-scheme:dark;--cyan:#87d4ff;--ink:#11191f;--white:#f8fafc;font-family:Roboto,Arial,sans-serif;scroll-behavior:smooth}*{box-sizing:border-box}body{margin:0;color:var(--white);background:#131920;min-height:100vh}a{color:inherit;text-decoration:none}button,summary{font:inherit;cursor:pointer}button{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid white;outline-offset:5px}img{display:block;max-width:100%}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.skip:focus{position:fixed;top:10px;left:10px;padding:12px;background:#000;z-index:20}.backdrop{position:fixed;inset:0 0 auto; height:100vh;height:100lvh;z-index:-2;background:#1b252d;overflow:hidden}.slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.5s ease}.slide.active{opacity:1}.backdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.06) 0%,rgba(0,0,0,.17) 48%,rgba(0,0,0,.48) 100%)}.topbar{position:absolute;inset:0 0 auto;z-index:3;padding:24px 3.5%;display:flex;align-items:flex-start;justify-content:space-between}.brand{display:none;width:112px}.brand img,.hero-logo img{width:100%;aspect-ratio:1;object-fit:contain;animation:rotate 90s linear infinite}.menu{position:relative;margin-left:auto}.menu summary{list-style:none;text-transform:uppercase;letter-spacing:2px;font-size:.75rem;font-weight:700;border:2px solid var(--cyan);border-radius:999px;background:rgba(7,15,24,.5);padding:10px 22px;backdrop-filter:blur(5px)}.menu summary::-webkit-details-marker{display:none}.menu nav{position:absolute;right:0;top:calc(100% + 10px);width:225px;border:2px solid var(--cyan);border-radius:14px;background:rgba(7,15,24,.94);padding:12px;display:grid;gap:2px}.menu nav a{padding:13px 10px;border-radius:6px}.menu nav a:hover{background:#ffffff22}.home .topbar{display:none}.hero{min-height:100svh;position:relative;display:flex;align-items:center;justify-content:center;padding:3.5% 5.8%}.hero-logo{display:none}.hero-links{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2.3%;margin-top:5vh}.pill{display:flex;align-items:center;justify-content:center;text-align:center;min-height:56px;border:3px solid var(--cyan);border-radius:999px;padding:12px 15px;background:rgba(0,0,0,.5);font-weight:700;font-size:clamp(.74rem,1vw,.98rem);text-transform:uppercase;letter-spacing:1.5px;text-shadow:0 1px 4px #000;transition:transform .35s,background .35s,box-shadow .35s}.pill:hover{transform:scale(.97);background:rgba(0,0,0,.72);box-shadow:0 0 24px #87d4ff66}.small{width:max-content;max-width:100%;min-height:42px;font-size:.84rem;letter-spacing:1px;text-transform:none;margin:20px auto 0;padding:10px 24px}.pause{position:absolute;bottom:26px;right:3.5%;width:38px;height:38px;border:1px solid #ffffff80;border-radius:50%;background:#0006}.gallery{width:91%;margin:0 auto;scroll-margin-top:12px}.ribbon{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;margin:0 0 12px;min-height:clamp(65px,7.2vw,138px);border-radius:8px;overflow:hidden;color:white;background:#1b333c;font-weight:400;font-size:clamp(1.35rem,2.45vw,3rem);text-transform:uppercase;letter-spacing:.7em;text-indent:.7em;text-shadow:0 2px 8px #000}.photo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.photo{border:0;background:#17252e;padding:0;display:block;aspect-ratio:1;overflow:hidden;position:relative;transition:transform .3s}.photo img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.photo:hover img{transform:scale(1.035)}.photo:hover{transform:scale(.98)}.photo:after{content:'';position:absolute;inset:0;border:1px solid #ffffff15;pointer-events:none}.end-ribbon{margin:12px 0 0}.fine{font-size:.75rem;color:#d1dbe2;line-height:1.5;text-align:center;text-shadow:0 1px 5px #000}.footer{text-align:center;padding:46px 20px 24px;text-shadow:0 1px 5px #000}.footer p{margin:4px 0}.hashtag{font-size:.9rem;letter-spacing:2px}.social{display:flex;justify-content:center;gap:34px;margin:18px 0}.social a{font-size:3rem;font-weight:700;line-height:1;transition:color .25s,transform .25s}.social a:first-child{color:#80a9d8}.social a:last-child{color:#ff8bbd}.social a:hover{color:white;transform:scale(1.08)}.footer .fine{margin-top:24px}dialog{border:0;padding:0;background:#10151b;color:white;width:min(94vw,1000px);max-width:94vw;border-radius:14px;box-shadow:0 15px 90px #000b}dialog::backdrop{background:#000d}.viewer-inner{position:relative;display:grid;grid-template-columns:45px minmax(0,1fr) 45px;align-items:center;min-height:200px;padding:44px 12px 20px}.viewer-inner figure{margin:0;text-align:center}.viewer-inner img{margin:auto;max-height:70vh;width:auto;object-fit:contain}.viewer-inner figcaption{font-size:1rem;padding:12px 0 4px}.viewer-inner button{border:0;background:none;font-size:2.4rem}.close{position:absolute;top:5px;right:14px}.subpage .brand{display:block}.subpage .backdrop:after{background:#0009}.inner{width:min(100% - 32px,1050px);margin:0 auto;padding:155px 0 32px}.inner h1{text-align:center;font-weight:400;font-size:clamp(2rem,4vw,3rem);margin:20px 0}.line{height:2px;background:var(--cyan);margin:24px 0 32px}.panel{background:#111a22c9;border:1px solid #ffffff22;border-radius:15px;padding:clamp(20px,3vw,40px);line-height:1.75}.panel p{margin:0 0 1.15em}.panel p:last-child{margin-bottom:0}.panel h2{font-weight:400;color:var(--cyan)}.split{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center}.split img{width:100%;border-radius:6px}.story-cover{width:100%;max-height:420px;object-fit:cover;margin-bottom:24px;border-radius:6px}.panel .fine{text-align:left}.panel p:first-of-type:first-letter{font-size:2.1em;line-height:1;font-weight:400}@keyframes rotate{to{transform:rotate(360deg)}}@media(min-width:738px) and (max-width:1050px){.hero-links{gap:10px}.pill{letter-spacing:.7px;padding:10px 8px}}@media(max-width:737px){.home .topbar{display:flex;padding:15px 16px}.topbar .menu{width:100%}.menu summary{text-align:center;background:#70bde5d9;border:0;font-size:.86rem;padding:14px}.menu nav{width:100%;left:0;right:0}.hero{min-height:0;display:flex;flex-direction:column;padding:112px 16px 40px;gap:30px}.hero-logo{display:block;width:clamp(125px,34vw,240px);margin:0 auto 6px}.hero-links{grid-template-columns:1fr;gap:14px;margin:0}.pill{min-height:52px;font-size:.89rem;letter-spacing:1.3px}.pause{position:relative;bottom:auto;right:auto;margin-top:-12px;width:32px;height:32px}.gallery{width:calc(100% - 28px)}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ribbon{letter-spacing:.45em;text-indent:.45em;min-height:52px}.footer{padding:32px 14px}.subpage .topbar{align-items:center;gap:20px}.subpage .brand{width:64px;flex-shrink:0}.inner{padding-top:112px}.split{grid-template-columns:1fr}.viewer-inner{grid-template-columns:30px minmax(0,1fr) 30px;padding:44px 5px 20px}.viewer-inner button{font-size:2rem}.small{min-height:40px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Mōna landing navigation restoration
   Sources: legacy Landing Page CSS 2/3 and Entire Site CSS 2/3/4.
   Keep the standalone layout, links and reduced-motion support. */
.home .hero-links > .pill {
  position: relative;
  overflow: hidden;
  min-height: 60px;
  border: 4px solid #87d4ff;
  border-radius: 30px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  text-shadow: none;
  transition: transform .5s ease-in-out, background .5s ease-in-out, box-shadow .5s ease-in-out;
}
.home .hero-links {
  animation: mona-nav-reveal 1.5s linear 2.5s both;
}
/* Legacy Landing Page CSS 2: individual scale overshoot,
   with a 2.3s delay and a shared 1.5s content reveal. */
.home .hero-links > .pill {
  scale: 1;
  animation: mona-button-enter var(--mona-enter-duration, 2s) ease-out 2.3s both;
}
.home .hero-links > .pill:nth-child(2) { --mona-enter-duration: 2.2s; }
.home .hero-links > .pill:nth-child(3) { --mona-enter-duration: 2.4s; }
.home .hero-links > .pill:nth-child(4) { --mona-enter-duration: 2.6s; }
@keyframes mona-nav-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mona-button-enter {
  0% { scale: .5; }
  70% { scale: 1.05; }
  100% { scale: 1; }
}
@keyframes mona-button-hue {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}
@media (min-width: 738px) {
  .home .hero { padding-inline: 4.5%; }
  .home .hero-links {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 21vw));
    gap: 2vw;
    justify-content: center;
  }
  .home .hero-links > .pill {
    height: 60px;
    padding: 0 8px;
    white-space: nowrap;
    line-height: 1;
    font-size: min(16.5px, 1.35vw);
    font-weight: 200;
  }
  .home .hero-links > .pill:is(:hover,:active,:focus-visible) {
    transform: scale(.97);
    background: rgba(0,0,0,.3);
    box-shadow: 0 1px 40px 5px #0ff;
    /* Keep the entrance on its own animation channel when hovered. */
    animation-name: mona-button-enter, mona-button-hue;
    animation-duration: var(--mona-enter-duration, 2s), 1.5s;
    animation-delay: 2.3s, 0s;
    animation-timing-function: ease-out, linear;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: both, none;
  }
}
@media (min-width: 738px) and (max-width: 1100px) {
  .home .hero-links > .pill { font-size: 1.3vw; letter-spacing: 1px; }
}
@media (max-width: 737px) {
  .home .hero { padding-inline: 2.5vw; }
  .home .hero-links { width: 95vw; gap: 24px; }
  .home .hero-links > .pill:nth-child(3) { --mona-enter-duration: 2.2s; }
  .home .hero-links > .pill:nth-child(4) { --mona-enter-duration: 2.4s; }
  .home .hero-links > .pill {
    min-height: 60px;
    font-size: clamp(15px, 3.5vw, 20px);
    font-weight: 700;
    letter-spacing: 2px;
  }
  .home .hero-links > .pill:is(:hover,:active,:focus-visible) {
    background: rgba(0,0,0,.3);
    transform: scale(.99);
    box-shadow: none;
  }
  .home .hero-links > .pill::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 50%;
    width: 30vw;
    border-radius: 15px;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.5) 50%, rgba(128,186,232,0) 99%, rgba(125,185,232,0) 100%);
    transform: translateX(-150%);
    opacity: 0;
    pointer-events: none;
    animation: mona-button-shine 15s ease-in-out infinite;
  }
  .home .hero-links > .pill:nth-child(1)::after { animation-delay: .2s; }
  .home .hero-links > .pill:nth-child(2)::after { animation-delay: .4s; }
  .home .hero-links > .pill:nth-child(3)::after { animation-delay: .6s; }
  .home .hero-links > .pill:nth-child(4)::after { animation-delay: .8s; }
  .home .menu summary {
    min-height: 40px;
    border-radius: 20px;
    background: rgba(135,212,255,.8);
    font-family: Roboto, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
  }
  .home .menu nav {
    border: 0;
    background: transparent;
    padding: 0;
    gap: 5px;
    border-radius: 20px;
  }
  .home .menu nav a {
    border-radius: 20px;
    text-align: center;
    font-size: 18px;
    background: rgba(135,212,255,.7);
  }
  .home .menu nav a:hover { background: rgba(135,212,255,.9); }
}
@keyframes mona-button-shine {
  0% { opacity: 0; transform: translateX(-150%); }
  10%, 90% { opacity: .6; }
  100% { opacity: 0; transform: translateX(50%); }
}
/* Keyboard users can reveal navigation immediately. */
.home .hero-links:focus-within { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  .home .hero-links, .home .hero-links > .pill,
  .home .hero-links > .pill::after {
    animation: none !important;
    scale: 1;
  }
  .home .hero-links { opacity: 1; }
}

/* Scalable Instagram camera mark, aligned with the existing social icons. */
.social a { display: inline-flex; align-items: center; justify-content: center; }
.social a svg { display: block; width: .88em; height: .88em; flex-shrink: 0; }

/* Our Story & Mission — legacy Story & Mission HTML, CSS 1 and screenshot restoration.
   Scoped to the Story page; no changes to the landing or Experiences layouts. */
body.story { isolation: isolate; }
.story .backdrop {
  background: #292d33 url('assets/backgrounds/Reverie.webp') center / cover no-repeat;
  animation: story-background-blur 1.2s ease-out .15s both;
}
.story .backdrop::after {
  background: rgba(0,0,0,.3);
}
@keyframes story-background-blur {
  from { filter: blur(0); }
  to { filter: blur(.9px); }
}
.story-desktop-nav {
  display: grid;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  gap: 0;
  padding: 8px 14px;
  border: 3px solid var(--cyan);
  background: rgba(0,0,0,.27);
  border-radius: 18px;
}
.story-desktop-nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  font-size: 16px;
  line-height: 1.25;
  transition: color .3s;
}
.story-desktop-nav a span { font-size: 16px; width: 19px; text-align: center; }
.story-desktop-nav a:hover, .story-copy a:hover { color: var(--cyan); }
.story .story-social { gap: 42px; align-items: center; margin: 0; }
.story .story-social a { font-size: 44px; }
.story .story-social a:nth-child(2) { color: #287fc1; }
.story .story-social a:last-child { color: #ff1493; }
.story .story-social a:hover { color: white; }
.story-brand { display: block; }
.story-brand img { width: 100%; height: auto; animation: rotate 90s linear infinite; }
.story-mobile-menu { display: none; }
.story-content {
  width: 74%;
  max-width: 1800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.65;
}
.story-content h1 {
  margin: 0 0 24px;
  font-size: 45px;
  font-weight: 400;
  text-align: center;
  line-height: 1.2;
}
.story-separator {
  border: 0;
  height: 2px;
  background: var(--cyan);
  margin: 24px 0;
  animation: mona-button-hue 3s linear infinite;
}
.story-intro-cover { width: 100%; height: auto; }
.story-copy { min-width: 0; text-shadow: 0 1px 3px #0008; }
/* Shared editorial body rhythm; keep each page's distinct presentation. */
.story .story-copy, .experiences .panel.split > div {
  font-size: 1rem;
  line-height: 1.65;
}
.story-copy p, .experiences .panel.split > div > p { margin: 0 0 1em; }
.story-copy p:last-child, .experiences .panel.split > div > p:last-child { margin-bottom: 0; }
/* Side-by-side portraits need a more compact editorial rhythm. Keep the
   roomier shared typography when the portraits stack on narrow screens. */
@media (min-width: 738px) {
  .story .story-copy { font-size: 16px; line-height: 1.4; }
  .story .story-person:not([aria-label="Our mission and origins"]) .story-copy {
    font-size: 14px;
    line-height: 1.5;
  }
  .story .story-copy p { margin-bottom: 12px; }
  .story .story-copy p:last-child { margin-bottom: 0; }
}

.story-intro-cover + .story-copy { margin-top: 18px; }
.story-initial { font-size: 44px; line-height: .85; }
.story-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.story-portrait {
  width: var(--portrait-width, 100%);
  justify-self: center;
  margin: 0;
}
.story-portrait img { width: 100%; height: auto; }
.story-copy a { color: var(--cyan); text-decoration: underline; }
.story-footer { padding-top: 54px; }
.story-footer .story-follow { font-size: 24px; }
.story-footer .story-social { margin: 24px 0 40px; }
.story-footer .small {
  width: 200px;
  border-radius: 15px;
  border: 2px solid #69a6c7;
  background: rgba(255,255,255,.1);
  letter-spacing: 2px;
  font-weight: 200;
}
.story-footer .small:hover { background: rgba(0,0,0,.3); }

@media (min-width: 738px) and (max-width: 1050px) {
  .story-desktop-nav { padding-inline: 8px; }
  .story-desktop-nav a { font-size: 14px; }
  .story .story-social { gap: 20px; }
  .story-content { width: 86%; }
}
@media (max-width: 737px) {
  .story-desktop-nav { display: none; }
  .story-mobile-menu { display: block; width: 100%; margin: 0; z-index: 3; }
  .story-mobile-menu summary { background: rgba(135,212,255,.8); border-radius: 20px; font-size: 20px; font-weight: 400; letter-spacing: 0; }
  /* Portrait composition of Reverie, dedicated to mobile screens. */
  .story .backdrop { background-image: url('assets/backgrounds/ReverieMobile.webp'); }
  .story .backdrop::after { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.35) 100%); }
  .story-content { width: calc(100% - 32px); }
  .story-content h1 { font-size: clamp(28px, 6.3vw, 38px); margin-bottom: 16px; }
  .story-person { grid-template-columns: 1fr; gap: 16px; }
  .story-portrait { width: 100%; }
  .story-separator { margin: 22px 0; }
  .story-footer .story-social { margin: 22px 0 30px; gap: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .story .backdrop, .story .backdrop::after, .story-header, .story-content, .story-footer, .story-brand img, .story-separator { animation: none !important; opacity: 1; }
}


/* Shared site navigation — legacy Entire Site CSS 1, 3 and 4.
   Use inline vector versions of the original menu symbols, not SmugMug URLs. */
.site-home-header { display: none; }
.site-subpage-header {
  display: grid;
  grid-template-columns: 20% 60% 20%;
  width: 94%; margin: 0 auto;
  padding-top: 30px; align-items: start;
  position: relative; z-index: 4;
}
.site-subpage-header :is(.brand, .story-brand) { grid-column: 3; justify-self: end; width: min(210px,100%); }
/* A continuously rotated square logo expands its CSS overflow bounds.
   Clip that transparent rotation overflow so it cannot create a horizontal
   page scrollbar or change the fixed background's cover crop. */
.site-subpage-header .brand, .story-brand { overflow: clip; }
.site-menu { display: none; }
.site-nav { color: #fff; font-family: Roboto, Arial, sans-serif; font-weight: 400; }
.site-nav-item {
  display: flex; align-items: center; gap: 5px;
  font: inherit; color: #fff; text-decoration: none;
  cursor: pointer; background: transparent;
}
.site-nav-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.site-nav-coffee .site-nav-icon { width: 17px; height: 17px; flex-basis: 20px; }
.site-nav-contact .site-nav-icon { width: 25px; height: 25px; flex-basis: 25px; }
.site-contact > summary, .site-menu > summary { list-style: none; }
.site-contact > summary::-webkit-details-marker, .site-menu > summary::-webkit-details-marker { display: none; }
.site-contact-indicator::before { content: '+'; }
.site-contact[open] > summary .site-contact-indicator::before { content: '−'; }
.site-contact { position: relative; }
.site-contact-indicator { margin-left: auto; }
@media (min-width: 738px) {
  .site-nav--desktop {
    position: relative; z-index: 5;
    justify-self: start; width: max-content; max-width: none; min-width: 167px;
    padding: 20px; border: 4px solid #87d4ff; border-radius: 20px;
    background: rgba(0,0,0,.3);
    /* Five subpage navigation rows, preserving the original row spacing. */
    display: grid; grid-template-rows: repeat(5, 28px); align-content: space-between;
    height: 245px; gap: 0;
    font-size: 16px; line-height: 1.25;
    transition: background 1.5s ease .1s, box-shadow .3s ease;
  }
  .site-nav--desktop > .site-nav-item, .site-nav--desktop > .site-contact > summary {
    min-height: 28px; padding: 3px 0; white-space: nowrap;
    transition: transform .5s ease;
    animation: site-nav-slide var(--site-entry-time,.95s) ease-out .2s both;
  }
  .site-nav--desktop > .site-nav-item:first-child { animation-name: site-nav-drop; --site-entry-time:1.4s; }
  .site-nav--desktop > .site-nav-item:nth-child(3) { --site-entry-time:1.1s; }
  .site-nav--desktop > .site-nav-item:nth-child(4) { --site-entry-time:1.2s; }
  .site-nav--desktop > .site-contact > summary { --site-entry-time:1.3s; }
  .site-nav--desktop:hover, .site-nav--desktop:focus-within {
    box-shadow: 0 1px 40px 5px #0ff;
    animation: mona-button-hue 1.5s linear infinite;
  }
  .site-nav--desktop .site-nav-item:hover { transform: translateX(3px); }
  .site-nav--desktop .site-contact-indicator { display: none; }
  /* Anchor to the outer navigation panel, not the narrower Contact Us row.
     The legacy offsets were YUI-relative; reproduce the final 20px gap
     and matching bottom edges directly in the standalone layout. */
  .site-nav--desktop > .site-contact { position: static; }
  .site-nav--desktop .site-contact-links {
    position: absolute; left: calc(100% + 24px); bottom: -4px; z-index: 6;
    box-sizing: border-box; width: 175px; min-width: 165px; max-width: 210px;
    height: 156px; padding: 12px 20px; border: 5px solid #87d4ff;
    border-radius: 20px; background: rgba(0,0,0,.3);
    box-shadow: 0 1px 40px 5px #0ff;
    display: grid; grid-template-rows: repeat(3, 28px); align-content: space-between;
  }
  .site-nav--desktop .site-contact:not([open]) .site-contact-links { display: none; }
  .site-nav--desktop .site-contact[open] .site-contact-links {
    /* The entrance is restarted explicitly on each toggle in script.js. */
    animation: mona-button-hue 1.5s linear infinite;
  }
  .site-nav--desktop .site-contact-links .site-nav-item { padding: 3px 0; white-space: nowrap; transition: transform .5s ease; }
}
@media (min-width: 1500px) { .site-nav--desktop { font-size: 1vw; } }
@media (min-width: 738px) and (max-width: 1050px) {
  .site-nav--desktop { font-size: 14px; padding: 12px; min-width: 0; }
  .site-subpage-header { grid-template-columns: 30% 40% 30%; }
}
@keyframes site-nav-drop {
  0% { transform: translateY(-1000%); }
  60% { transform: translateY(20%); } 70% { transform: translateY(-17%); }
  80% { transform: translateY(13%); } 90% { transform: translateY(-8%); }
  95% { transform: translateY(5%); } 100% { transform: translateY(0); }
}
@keyframes site-nav-slide {
  0% { transform: translateX(-1000%); }
  80% { transform: translateX(13%); } 90% { transform: translateX(-8%); }
  95% { transform: translateX(5%); } 100% { transform: translateX(0); }
}
@media (max-width: 737px) {
  .site-home-header { display: block; position: relative; z-index: 4; padding: 16px 2.5vw; }
  .home .hero { padding-top: 40px; }
  .site-nav--desktop { display: none; }
  .site-subpage-header { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 16px; }
  .site-subpage-header :is(.brand, .story-brand) { width: clamp(125px,34vw,210px); }
  .site-menu { display: block; width: 100%; position: relative; z-index: 5; }
  .site-menu > summary {
    display: flex; justify-content: center; align-items: center; min-height: 40px;
    padding: 8px 12px; border-radius: 20px;
    background: rgba(135,212,255,.8); color: white;
    text-transform: uppercase; font: 400 23px/1.15 Roboto, Arial, sans-serif;
  }
  .site-nav--mobile { display: grid; gap: 5px; margin-top: 5px; }
  .site-nav--mobile .site-nav-item {
    justify-content: center; min-height: 40px; padding: 10px 14px;
    border-radius: 20px; background: rgba(135,212,255,.7);
    font-size: 20px; line-height: 1.2;
  }
  .site-nav--mobile .site-nav-contact { position: relative; }
  .site-nav--mobile .site-contact-indicator { position: absolute; right: 18px; }
  .site-nav--mobile .site-contact-links { display: grid; gap: 5px; margin-top: 5px; }
  .site-nav--mobile .site-contact:not([open]) .site-contact-links { display: none; }
  .site-nav--mobile .site-nav-item:hover { background: rgba(135,212,255,.9); }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav--desktop, .site-nav--desktop .site-nav-item,
  .site-nav--desktop .site-contact-links { animation: none !important; transition: none !important; }
}


/* Match the Story header's Facebook, Instagram and Flickr composition in every footer. */
.footer .social a:nth-child(2) { color: #ff8bbd; }
.story .story-footer .story-social a:nth-child(2) { color: #ff1493; }
.footer .social a:nth-child(2):hover, .story .story-footer .story-social a:nth-child(2):hover { color: white; }
.footer .social .story-flickr:hover circle { fill: white; }

/* Legacy logo hover: replace the rotation with the colour cycle.
   This intentionally snaps the logo upright and restarts rotation on exit. */
@media (hover: hover) {
  :is(.brand, .hero-logo, .story-brand):hover img {
    transform: rotate(0deg);
    animation: mona-button-hue 3s linear infinite;
  }
}

/* Experiences: retain the cover/introduction and separate five-photo gallery. */
/* Separate, understated gallery panel using the same translucent surface
   and horizontal padding as the cover/introduction above. */
.experiences-gallery { width: 100%; min-width: 0; margin: 20px 0 0; padding-block: clamp(16px, 2vw, 26px); }
.experiences-gallery .photo-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.experiences-gallery .photo { border-radius: 5px; }
@media (max-width: 737px) {
  .experiences-gallery .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .experiences-gallery .photo[data-photo-key="skXm9v3"] { display: none; }
}

/* Immersive landing: fit the visible mobile viewport rather than inheriting
   the body's larger 100vh minimum. Allow genuine content overflow on
   unusually short or enlarged-text screens instead of clipping controls. */
.home { isolation: isolate; }
.home .hero { min-height: 100svh; }
@media (max-width: 737px) {
  /* Keep native pull-to-refresh and browser overscroll gestures available. */
  body.home { min-height: 0; }
  .home .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding: 16px 2.5vw;
    gap: clamp(12px, 2.5dvh, 24px);
    overflow: clip;
  }
  .home .hero-logo {
    width: clamp(100px, 30vw, 180px);
    margin: 0;
    overflow: clip;
    flex-shrink: 0;
    animation: mona-nav-reveal .45s ease-out 2.15s both;
  }
  .home .hero-links { width: 100%; gap: clamp(10px, 2.2dvh, 24px); flex-shrink: 0; }
  .home .hero-links > .pill { min-height: 52px; }
  .home .pause {
    margin-top: 0;
    flex-shrink: 0;
    animation: mona-nav-reveal .6s ease-out 2.5s both;
  }
  .home .hero-logo:focus-visible, .home .pause:focus-visible { opacity: 1 !important; }
}
@media (max-width: 737px) and (prefers-reduced-motion: reduce) {
  .home .hero-logo, .home .pause { animation: none !important; opacity: 1; }
}
/* Purpose-built star-trail landscape. Keep the high ridgeline anchored
   near the header and preserve the darker lower field behind the grid. */
.featured-page { isolation: isolate; }
.featured-page .backdrop { background: #050d1b url('assets/backgrounds/Serendipity.webp') center top / cover no-repeat; }
.featured-page .backdrop::after { background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.22) 45%, rgba(0,0,0,.28)); }
/* Matching translucent bookends frame the photographs without repeating them. */
.featured-page .ribbon {
  margin-top: 0;
  background: linear-gradient(110deg, rgba(9,20,36,.82), rgba(25,43,64,.72) 50%, rgba(12,20,36,.84));
  box-shadow: inset 0 0 22px rgba(135,212,255,.055), inset 0 0 0 1px rgba(135,212,255,.34);
}
.featured-page .end-ribbon { margin-top: 12px; }

/* Dedicated Experiences backdrop; retain the original cover photograph. */
.experiences { isolation: isolate; }
.experiences .backdrop { background: #080b15 url('assets/backgrounds/Elysium.webp') center top / cover no-repeat; }
.experiences .backdrop::after { background: linear-gradient(180deg, rgba(0,0,0,.24), rgba(0,0,0,.38) 50%, rgba(0,0,0,.48)); }

/* A common subpage frame and short entrance. These timings are decorative,
   not a wait for network requests. Keep each page's own image and layout. */
.subpage > main { padding-top: 42px; }
.subpage > main > h1 { margin-top: 0; }
@media (max-width: 737px) {
  .subpage > main { padding-top: 24px; }
}
@keyframes subpage-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.subpage > .backdrop::after { animation: subpage-reveal .75s ease-out .1s both; }
.subpage > .site-subpage-header { animation: subpage-reveal .65s ease-out .15s both; }
.subpage > main, .subpage > .footer { animation: subpage-reveal .9s ease-out .35s both; }
.subpage > .site-subpage-header:focus-within,
.subpage > main:focus-within,
.subpage > .footer:focus-within { opacity: 1 !important; }
@media (min-width: 738px) {
  .site-nav--desktop:focus-within > .site-nav-item,
  .site-nav--desktop:focus-within > .site-contact > summary { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .subpage > .backdrop::after, .subpage > .site-subpage-header,
  .subpage > main, .subpage > .footer { animation: none !important; opacity: 1; }
}

/* Fourteen photographs form seven complete mobile rows; desktop retains all fifteen. */
@media (max-width: 737px) {
  .featured-page .photo[data-photo-key="little-beach"] { display: none; }
}

/* The fixed artwork uses the large viewport height, so mobile browser
   toolbar transitions cannot resize its cover crop. Foreground content
   keeps its own responsive sizing and native scrolling gestures. */

/* Suppress native touch tap highlights site-wide; retain keyboard focus outlines. */
@media (any-pointer: coarse) {
  * { -webkit-tap-highlight-color: transparent; }
}

/* Client-facing gallery directory. The owner-only media viewer is unchanged. */
.client-directory .gallery-heading { margin-bottom: 36px; }
.client-directory .gallery-heading > p:last-child { max-width: 38rem; margin: 12px auto 0; line-height: 1.6; text-wrap: balance; }
.client-directory-empty { width: min(100%, 660px); margin: 0 auto; padding: clamp(28px, 5vw, 60px) clamp(18px, 4vw, 48px); border: 1px solid #87d4ff50; border-radius: 16px; background: #081019b8; text-align: center; }
.client-directory-empty > svg { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--cyan); }
.client-directory-empty h2 { font-size: clamp(1.2rem, 3vw, 1.55rem); font-weight: 400; margin: 0 0 16px; }
.client-directory-empty p { max-width: 36rem; margin: 0 auto; line-height: 1.65; }
.client-directory-empty a { text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:737px){.client-directory .gallery-heading{margin-bottom:24px}.client-directory-empty{padding:28px 18px}}

/* Listed client albums: approved blurred derivatives only. */
.client-gallery-search { max-width: 520px; margin: 0 auto 16px; }
.client-gallery-search label { text-align: left; font-size: .86rem; margin: 0 0 8px; }
.client-gallery-search > div { display: flex; gap: 10px; align-items: stretch; }
.client-gallery-search input { min-width: 0; flex: 1; }
.client-gallery-search button { flex: 0 0 auto; }
.client-gallery-notice { text-align: center; font-size: .85rem; margin: 0 auto 24px; }
.client-album-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
.client-album-card { display: block; overflow: hidden; border-radius: 10px; background: #081019db; border: 1px solid #87d4ff40; color: #f8fafc; text-decoration: none; }
.client-album-card:hover { border-color: var(--cyan); }
.client-album-cover { aspect-ratio: 4/3; display: grid; place-items: center; background: #182a38; overflow: hidden; }
.client-album-cover img { width: 100%; height: 100%; object-fit: cover; }
.client-album-cover svg { width: 44px; height: 44px; color: #87d4ffa0; }
.client-album-card > span, .client-album-card > small { display: block; padding: 0 12px; overflow-wrap: anywhere; }
.client-album-card > span { padding-top: 12px; font-size: 1rem; }
.client-album-card > small { padding-top: 5px; padding-bottom: 12px; color: #b5c7d3; font-size: .73rem; }
.private-gallery .client-login { margin: 0 auto; }
.private-gallery .client-login h1 { font-size: clamp(1.6rem,4vw,2.3rem); letter-spacing: .04em; overflow-wrap: anywhere; }
@media(max-width:1050px){.client-album-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:737px){.client-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.client-gallery-search button{padding:12px 16px}}
