/* On Command — Blackwolf-inspired direction: the care board.
   A navy board with chalk rules, Instrument Serif headings and the grooming room from
   On Command's own TV spot shown at its native size. Services are chosen from a vertical
   board list; inner pages read as a two-column ledger. */
@font-face{font-family:'Space Mono';src:url('../fonts/space-mono-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Figtree';src:url('../fonts/figtree-600.woff2') format('woff2');font-weight:600 700;font-display:swap}
:root{--display:'Direction',Georgia,serif;--chalk:rgba(245,246,248,.28);--chalk-strong:rgba(245,246,248,.55);--board-ease:cubic-bezier(.16,1,.3,1)}
h1,h2,h3,h4{font-weight:400;letter-spacing:-.01em;line-height:1.02}
h2.xl{font-size:clamp(40px,5.2vw,80px);letter-spacing:-.015em}
.nav .phone-extra{display:none}
.service-entry[hidden]{display:none}

/* living background: slow aurora ribbons in navy and gold behind the open board */
html{background-color:#16233a}
body{background:transparent;isolation:isolate;color:var(--on-dark)}
html.no-bg{background-color:#16233a;background-image:linear-gradient(160deg,#1f3150 0%,#16233a 45%,#121c30 100%),radial-gradient(ellipse at 80% 20%,rgba(247,195,95,.12) 0,rgba(247,195,95,0) 50%)}
/* the bars are already 90% opaque; a backdrop blur over the live layer re-filters every frame */
.header,.callbar{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(22,35,58,.94)}

/* ---------- home opening: headline layered beside the framed grooming-room photograph ---------- */
.version-hero{grid-row:1;grid-column:1;position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:56px;align-items:center;
  min-height:min(860px,100svh);padding:calc(var(--header) + var(--header-gap) + 56px) var(--gutter) 64px;background:rgba(22,35,58,.55)}
.opening-copy{position:relative;z-index:2;order:1}
.opening-copy .label{color:var(--sun)}
.version-hero h1{font-size:clamp(54px,6.4vw,104px);color:#fff;margin-bottom:30px;margin-right:-12%}
.version-hero h1 span{display:block}
.version-hero h1 span+span{color:var(--sun)}
.version-hero .hero-row{display:block;border-top:1px solid var(--chalk-strong);padding-top:24px}
.version-hero .hero-copy{font-size:19px;color:rgba(255,255,255,.88);max-width:42ch;margin:0}
.version-hero .actions{margin-top:28px}
.version-hero .btn-primary{background:#fff;color:var(--night)}
.version-hero .btn-primary:hover{background:var(--sun)}
.opening-photo{order:2;width:100%;max-width:800px;height:auto;aspect-ratio:16/9;object-fit:cover;justify-self:end;
  border:1px solid var(--chalk-strong);outline:1px solid var(--chalk);outline-offset:14px;box-shadow:0 40px 90px -30px rgba(0,0,0,.6);
  animation:board-in 1.4s var(--board-ease) both}
@keyframes board-in{from{transform:translateX(24px) rotate(.6deg);opacity:0}to{transform:none;opacity:1}}

/* ---------- the board: services listed down the left, one card on the right ---------- */
.service-book{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-areas:"head list" "pick list" "foot foot";
  gap:0 64px;max-width:calc(var(--max) + 2 * var(--gutter));margin:0 auto;padding:var(--section) var(--gutter);color:var(--on-dark)}
.service-book .care-head{grid-area:head;padding:0}
.service-book .care-head h2{color:#fff;max-width:13ch;margin-bottom:20px}
.service-book .label{color:var(--sun)}
.service-book .care-head .lede{color:var(--on-dark-2);font-size:17.5px}
.care-picker{grid-area:pick;align-self:start;margin-top:36px}
.care-choices{display:flex;flex-direction:column;border-top:1px solid var(--chalk)}
.care-choices button{display:flex;justify-content:space-between;align-items:center;min-height:68px;padding:10px 4px;border:0;border-bottom:1px solid var(--chalk);
  background:none;color:var(--on-dark-2);font-family:var(--display);font-size:clamp(28px,2.6vw,40px);text-align:left;cursor:pointer;transition:color var(--t-fast),padding var(--t-med) var(--board-ease)}
.care-choices button::after{content:"→";font-family:var(--text);font-size:20px;opacity:0;transition:opacity var(--t-fast)}
.care-choices button[aria-pressed="true"]{color:#fff;padding-left:16px;box-shadow:inset 3px 0 0 var(--sun)}
.care-choices button[aria-pressed="true"]::after{opacity:1;color:var(--sun)}
@media (hover:hover) and (pointer:fine){.care-choices button:hover{color:#fff}}
.service-list{grid-area:list;display:flex;flex-direction:column;gap:28px}
.service-entry{display:flex;flex-direction:column;border:1px solid var(--chalk-strong);background:rgba(18,28,48,.78)}
.service-entry{min-width:0}
/* min-height:0 cancels the shared 70vh band floor, which the aspect ratio would turn into a ~950px minimum width */
.service-entry .care-photo{position:relative;margin:0;min-height:0;aspect-ratio:16/10;overflow:hidden;border-bottom:1px solid var(--chalk)}
.service-entry .care-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--pos,50% 40%)}
.service-entry[data-selected="true"]{animation:board-card .6s var(--board-ease) both}
@keyframes board-card{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.service-entry .care-body{padding:32px 34px 36px}
.service-entry .care-num{display:block;font-family:var(--mono);font-size:12.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--sun);margin-bottom:12px}
.service-entry h3{font-size:clamp(44px,4.4vw,68px);color:#fff;margin-bottom:14px}
.service-entry .care-body>p{color:var(--on-dark-2);max-width:48ch}
.service-entry .facts{border-color:var(--chalk)}
.service-entry .facts li{border-color:var(--chalk);color:rgba(255,255,255,.84)}
.service-entry .facts li span:last-child{color:#fff}
.service-entry .btn-ghost{margin-top:24px;color:#fff;border-color:var(--chalk-strong)}
.service-entry .btn-ghost:hover{background:#fff;color:var(--night)}
.service-book .care-foot{grid-area:foot;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;margin-top:56px;padding-top:28px;border-top:1px solid var(--chalk)}
.service-book .care-foot .note{color:var(--on-dark-2);margin:0}
.service-book .care-foot .btn-primary{background:#fff;color:var(--night)}

/* ---------- light notes pinned to the board ---------- */
.section.warm,.section.pale{margin:0 clamp(12px,2vw,32px);border-radius:6px;color:var(--ink)}
.section.warm :is(p,li,td,dd,summary),.section.pale :is(p,li,td,dd,summary){color:var(--ink)}
.inside-card{border-radius:6px}
.inside-photo{border-radius:4px}
.inside-photo img{width:100%;object-position:50% 50%}
.film{background:rgba(22,35,58,.82)}
.film-frame{border-radius:4px;border:1px solid var(--chalk-strong)}
.film .play-film{font-family:var(--display);font-size:24px;font-weight:400}
.proof dd{font-weight:400}
.closer h2{font-weight:400}
.footer{background:rgba(14,22,38,.9)}
.footer .brand span{font-family:var(--display);font-weight:400;font-size:30px}
.btn{border-radius:6px}
.header-enroll,.seg,.header-cta{border-radius:var(--pill)}

/* ---------- inner pages: broad title beside a framed photograph, then a ledger ---------- */
.route-opening{grid-row:1;grid-column:1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:48px;align-items:center;
  padding:calc(var(--header) + var(--header-gap) + 48px) var(--gutter) 64px;background:rgba(22,35,58,.55)}
.route-opening .page-hero{grid-row:auto;grid-column:auto;min-height:0;background:none!important;display:block}
.route-opening .page-hero .wrap{padding:0;margin:0;max-width:none}
.route-opening .page-hero h1{font-size:clamp(44px,5vw,76px);max-width:15ch}
.route-opening .page-plate{grid-row:auto;grid-column:auto;position:relative;min-height:0;aspect-ratio:5/4;overflow:hidden;
  border:1px solid var(--chalk-strong);outline:1px solid var(--chalk);outline-offset:12px;background:var(--night-2)}
.route-opening .page-plate img{position:absolute;inset:0;width:100%!important;height:100%;left:0;right:auto;object-fit:cover;object-position:var(--pos,60% 35%);-webkit-mask-image:none;mask-image:none}
.route-opening .page-plate--studio{background:#fff}
.route-opening .page-plate--studio img{object-fit:contain;object-position:50% 50%}
.route-body{grid-row:2;grid-column:1}
.route-body>.section:not(.warm):not(.pale){background:transparent;color:var(--on-dark)}
.route-body>.section:not(.warm):not(.pale)>.wrap{border-top:1px solid var(--chalk-strong);padding-top:48px}
.route-body>.section:not(.warm):not(.pale) :is(h2,h3,.lede,.note,p,li,summary,td){color:var(--on-dark)}
.route-body>.section:not(.warm):not(.pale) h2{font-size:clamp(36px,3.8vw,56px)}
.route-body>.section:not(.warm):not(.pale) .ticks li{border-bottom-color:var(--chalk)}
.route-body>.section:not(.warm):not(.pale) .ticks li::before{border-color:var(--sun)}
.route-body>.section:not(.warm):not(.pale) .table td,.route-body>.section:not(.warm):not(.pale) .table th{border-color:var(--chalk);color:var(--on-dark)}
.route-body>.section:not(.warm):not(.pale) details{border-color:var(--chalk)}
.route-body>.section:not(.warm):not(.pale) summary::after{border-color:var(--chalk-strong)}
.route-body>.section:not(.warm):not(.pale) .steps li{border-top-color:var(--chalk)}
.route-body>.section:not(.warm):not(.pale) .steps li::before{color:var(--sun)}
.route-body>.section:not(.warm):not(.pale) .answer{color:var(--on-dark-2)}
.route-body>.section:not(.warm):not(.pale) .card{background:rgba(245,246,248,.97);color:var(--ink)}
.route-body>.section:not(.warm):not(.pale) .card :is(h2,h3,p,li){color:var(--ink)}
.route-body>.section:not(.warm):not(.pale) .card .ticks li{border-bottom-color:var(--line)}
.route-body>.section:not(.warm):not(.pale) .card .ticks li::before{border-color:var(--night)}
.route-body>.section:not(.warm):not(.pale) a:not(.btn){color:#fff}
.route-body>.section:not(.warm):not(.pale) .card a:not(.btn){color:var(--night)}
.route-body>.section:not(.warm):not(.pale) .btn-primary{background:#fff;color:var(--night)}
.route-body>.section:not(.warm):not(.pale) .btn-ghost{color:#fff;border-color:var(--chalk-strong)}
.route-body>.section:not(.warm):not(.pale) .crumbs,.route-body>.section:not(.warm):not(.pale) .label{color:var(--sun)}
.route-body .locations{background:rgba(22,35,58,.82)}
.card{border-radius:6px}

/* ---------- shared controls ---------- */
.play-film{position:absolute;inset:0;z-index:1;display:flex;align-items:flex-end;gap:14px;width:100%;padding:28px;border:0;cursor:pointer;color:#fff;font-weight:600;font-size:17px;text-align:left;
  background:linear-gradient(0deg,rgba(22,35,58,.85),rgba(22,35,58,0) 55%),url(media/grooming-work.webp) 0 0/cover no-repeat}
.play-film::before{content:"";flex:none;width:64px;height:64px;border-radius:50%;background:var(--sun) no-repeat 54% 50%/22px 22px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 1l7 4-7 4z' fill='%2316233a'/%3E%3C/svg%3E");transition:transform var(--t-fast) var(--ease)}
.play-film:hover::before,.play-film:focus-visible::before{transform:scale(1.08)}
.gallery-link{display:block;height:100%;cursor:zoom-in}
#photo-dialog{max-width:min(960px,calc(100vw - 32px));padding:0;border:1px solid var(--chalk-strong);border-radius:6px;background:var(--night);color:#fff}
#photo-dialog::backdrop{background:rgba(14,22,38,.86)}
#photo-dialog img{width:100%;height:auto}
#photo-dialog button{position:absolute;top:12px;right:12px;min-height:44px;padding:0 18px;border-radius:6px;border:0;background:#fff;color:var(--night);font-weight:600;cursor:pointer}
#care-answer{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@supports (animation-timeline:view()){
  html:not(.noanim) .care-photo img,html:not(.noanim) .closer>img,html:not(.noanim) .hours-band>img,html:not(.noanim) .day-panel-media img{animation:board-drift linear both;animation-timeline:view();animation-range:entry 0% exit 100%}
  @keyframes board-drift{from{transform:translateY(-4%) scale(1.08)}to{transform:translateY(4%) scale(1.08)}}
}

.no-js .care-picker{display:none}
.no-js .nav{display:block!important}
.no-js .nav .phone-extra{display:list-item}
.no-js .menu-btn{display:none!important}
.no-js .header{position:relative;border-radius:24px}
.no-js .header-in{flex-wrap:wrap;height:auto;padding:12px 18px}
.no-js .nav ul{flex-wrap:wrap}
html.noanim *{animation:none!important;scroll-behavior:auto!important}

@media (max-width:1023px){
  .version-hero{grid-template-columns:1fr;gap:36px;min-height:0}
  .opening-photo{order:0;justify-self:stretch;max-width:none}
  .version-hero h1{margin-right:0}
  .service-book{grid-template-columns:1fr;grid-template-areas:"head" "pick" "list" "foot";gap:0}
  .service-list{margin-top:28px}
  .route-opening{grid-template-columns:1fr;gap:32px}
}
@media (max-width:767px){
  /* phone: the graded photograph first, the heading and action directly under it */
  .version-hero{padding:calc(var(--header) + var(--header-gap) + 14px) var(--gutter) 36px;gap:22px}
  .opening-photo{outline-offset:6px;aspect-ratio:16/10}
  .version-hero h1{font-size:clamp(40px,12vw,50px);margin-bottom:16px}
  .opening-copy .label{font-size:11.5px;margin-bottom:10px}
  .version-hero .hero-row{padding-top:14px}
  .version-hero .hero-copy{font-size:16px}
  .version-hero .actions{margin-top:18px}
  .version-hero .actions .btn{width:100%}
  .version-hero .seg{width:100%}
  .version-hero .seg a{flex:1;justify-content:center;flex-direction:column;gap:0;padding:0 8px;min-height:52px;font-size:14px}
  .care-choices button{min-height:56px;font-size:28px}
  .service-entry .care-body{padding:24px 20px 28px}
  .route-opening{padding:calc(var(--header) + var(--header-gap) + 14px) var(--gutter) 40px;gap:24px}
  .route-opening .page-plate{order:-1;aspect-ratio:16/10;outline-offset:6px}
  .route-opening .page-plate img{object-position:var(--pos-m,var(--pos,60% 30%))}
  .route-opening .page-hero h1{font-size:clamp(34px,10vw,44px)}
  .section.warm,.section.pale{margin:0 8px}
}
@media (prefers-reduced-motion:reduce){.opening-photo,.service-entry,.care-photo img,.closer>img,.hours-band>img,.day-panel-media img{animation:none!important}}
