/* Shared styles for every Greenhouse page. Most layout is still inline from the design comps. */
*{box-sizing:border-box}
body{margin:0}
/* No smooth scrolling: Tab jumps straight to the focused control, so its ring is on screen at once. */
html{scroll-behavior:auto}

/* Skip link: hidden until the first Tab, then shown over the header */
.gh-skip{position:absolute;left:16px;top:-200px;z-index:100;display:inline-flex;align-items:center;min-height:48px;padding:0 20px;background:#1C4A46;color:#FFFFFF;font-family:Barlow,Arial,sans-serif;font-weight:600;font-size:13px;letter-spacing:.14em;text-transform:uppercase;text-decoration:none}
.gh-skip:focus{top:18px;color:#FFFFFF}

/* Phone heading scale: each level sits below the one above (h1 stays at its own size, 40px and up) */
@media (max-width: 640px){
  main h2{font-size:32px !important;line-height:1.1 !important}
  main h3{font-size:24px !important;line-height:1.15 !important}
  main blockquote{font-size:24px !important;line-height:1.3 !important}
}
@media (max-width: 900px){.gh-nav{display:none !important}.gh-menu{display:block !important}.gh-mbar{display:flex !important}}
a{color:#1C4A46}a:hover{color:#393536}
@keyframes gh-ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.gh-ticker-track{animation:gh-ticker 40s linear infinite}
.gh-ticker:hover .gh-ticker-track{animation-play-state:paused}
@media (prefers-reduced-motion: reduce){.gh-ticker-track{animation:none}}

/* Shared details */
h1,h2,h3{text-wrap:balance}p,blockquote{text-wrap:pretty}
::selection{background:#7FCB2B;color:#393536}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #F03B1F;outline-offset:3px}
.gh-dark a:focus-visible,.gh-dark summary:focus-visible,footer a:focus-visible{outline-color:#7FCB2B}
/* The ring by ground, so it always shows (3:1 or more): lime on forest and charcoal, forest on blush, vermilion again on a light card inside a dark block */
:is([style*="background: #1C4A46"],[style*="background: #393536"]) :is(a,button,summary,input,textarea,select):focus-visible{outline-color:#7FCB2B}
[style*="background: #ECCCC4"] :is(a,button,summary,input,textarea,select):focus-visible{outline-color:#1C4A46}
:is([style*="background: #1C4A46"],[style*="background: #393536"]) :is([style*="background: #FFFFFF"],[style*="background: #F2F0ED"],[style*="background: #E0E0E0"]) :is(a,button,summary,input,textarea,select):focus-visible{outline-color:#F03B1F}
img{max-width:100%}

/* Phone menu and sticky bottom bar (every page) */
.gh-menu summary{list-style:none}.gh-menu summary::-webkit-details-marker{display:none}
.gh-menu[open] .gh-menu-panel{display:flex !important}
.gh-mbar a{flex:1 1 0}

/* Artist cards: two across on phones */
@media (max-width: 640px){
  .gh-artists{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:40px 14px !important}
  .gh-artists h3{font-size:22px !important}
  .gh-artists a[data-book],.gh-artists a[target]{white-space:normal !important;text-align:center;padding:8px 10px !important;line-height:1.3;width:100%;letter-spacing:.1em !important;min-height:54px !important}
}

/* Button states. Buttons keep their inline look; these add hover, press and disabled feedback. */
.gh-btn{transition:background-color .16s ease-out,color .16s ease-out,border-color .16s ease-out}
.gh-btn:active{transform:translateY(1px)}
.gh-btn[disabled]{opacity:.55;cursor:not-allowed}
.gh-btn--primary:hover{background:#393536 !important;border-color:#393536 !important;color:#FFFFFF !important}
.gh-btn--outline:hover{background:#1C4A46 !important;color:#FFFFFF !important}
.gh-btn--outline-light:hover{background:#FFFFFF !important;color:#1C4A46 !important}
.gh-btn--lime:hover{background:#FFFFFF !important;border-color:#FFFFFF !important;color:#393536 !important}
@media (prefers-reduced-motion: reduce){.gh-btn{transition:none}.gh-btn:active{transform:none}}

/* Text links in the header, menu and footer */
.gh-nav a:hover,.gh-menu-panel a:hover,footer a:hover{text-decoration:underline !important;text-decoration-thickness:1px;text-underline-offset:6px}
footer a:hover{color:#FFFFFF}

/* Forms */
input[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:#F03B1F !important}
.gh-form-status{grid-column:1 / -1;flex-basis:100%;margin:0;padding:12px 16px;background:#E0E0E0;color:#393536;font-size:15px;line-height:24px}
.gh-form-status.is-error{background:#ECCCC4}
.gh-form-status:empty{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gh-form-status a{color:#1C4A46}

/* Price rows (name, dotted leader, price): on a narrow phone the price drops to its own line, right-aligned, instead of running off the screen */
.gh-price-row{flex-wrap:wrap}
.gh-price-row > span:last-child{margin-left:auto}

/* Homepage artist cards: every booking button one height on phones, whether its label takes one line or two */
@media (max-width: 640px){.gh-cards a.gh-btn{min-height:54px !important}}

/* Card text links get a full-size tap area on phones */
@media (max-width: 640px){.gh-artists a:not(.gh-btn){display:inline-flex;align-items:center;min-height:44px}}
@media (max-width: 900px){a[href*="instagram.com"]:not(.gh-btn){display:inline-flex;align-items:center;min-height:44px}}

/* First-screen appear (homepage). Only runs on a page that sets html.gh-intro in its head.
   The page opens plain; each [data-appear] element rises 6px and sharpens from a 2px blur, at its own --d delay.
   Photos resolve from a 14px blur instead. js/intro.js starts it (gh-intro-go) once fonts are ready and
   ends it (gh-intro-done), which hands every element back to its normal styles. */
@media (prefers-reduced-motion: no-preference){
  .gh-intro:not(.gh-intro-done) [data-appear]{opacity:0}
  .gh-intro-go:not(.gh-intro-done) [data-appear]{animation:gh-rise .8s cubic-bezier(.16,1,.3,1) var(--d,0ms) both,gh-fade .6s cubic-bezier(.33,1,.68,1) var(--d,0ms) both}
  .gh-intro-go:not(.gh-intro-done) [data-appear="photo"]{animation:gh-photo 1s cubic-bezier(.33,1,.68,1) var(--d,0ms) both,gh-fade .7s cubic-bezier(.33,1,.68,1) var(--d,0ms) both}
}
@keyframes gh-rise{from{transform:translateY(6px);filter:blur(2px)}to{transform:none;filter:none}}
@keyframes gh-fade{from{opacity:0}to{opacity:1}}
@keyframes gh-photo{from{filter:blur(14px) saturate(.6)}to{filter:none}}
.gh-line{display:block}
.gh-split > div{overflow:hidden} /* keeps the photo blur inside each half */
.gh-split img{background:#E0E0E0} /* a placeholder if a photo is still loading */

/* Split rollover (homepage): pointing at Dre's or Chuck's photo drops a pile of haircut or tattoo prints onto it.
   Each print is a white-bordered photo, off centre (--x, --y, as a share of the frame) and tilted (--r).
   They drop in one after another (90ms apart) from a little above and a little bigger, and settle; the last
   lands on top near the middle. The photo behind dims slightly. Leaving clears the pile at once, faster.
   Mouse and trackpad only; touch screens never see it and never download the extra photos (js/rollover.js). */
.gh-roll{position:relative;overflow:hidden} /* prints never show outside the photo frame */
.gh-roll > img{transition:filter .5s cubic-bezier(.33,1,.68,1)}
.gh-roll__grid{position:absolute;inset:0;margin:0;padding:0;list-style:none;pointer-events:none}
.gh-roll__grid li{position:absolute;left:calc(50% + var(--x));top:calc(50% + var(--y));width:44%;aspect-ratio:4 / 5;box-sizing:border-box;padding:8px;background:#FFFFFF;
  box-shadow:0 2px 6px rgb(57 53 54 / .18),0 14px 32px rgb(57 53 54 / .26);
  opacity:0;transform:translate(-50%,calc(-50% - 36px)) rotate(calc(var(--r) * 1.8)) scale(1.06);
  transition:opacity .25s cubic-bezier(.33,1,.68,1),transform .25s cubic-bezier(.33,1,.68,1)}
.gh-roll__grid li:nth-child(1){--x:-14%;--y:-8%;--r:-9deg}
.gh-roll__grid li:nth-child(2){--x:13%;--y:-10%;--r:7deg}
.gh-roll__grid li:nth-child(3){--x:-6%;--y:10%;--r:4deg}
.gh-roll__grid li:nth-child(4){--x:15%;--y:9%;--r:-6deg}
.gh-roll__grid li:nth-child(5){--x:-16%;--y:6%;--r:10deg}
.gh-roll__grid li:nth-child(6){--x:3%;--y:-1%;--r:-3deg}
.gh-roll__grid img{width:100%;height:100%;object-fit:cover;display:block;background:#E0E0E0}
@media (hover: hover) and (pointer: fine){
  .gh-roll:hover > img{filter:brightness(.82) saturate(.9)}
  .gh-roll:hover .gh-roll__grid li{opacity:1;transform:translate(-50%,-50%) rotate(var(--r));
    transition:opacity .3s cubic-bezier(.33,1,.68,1) calc(var(--i) * 90ms),transform .65s cubic-bezier(.16,1,.3,1) calc(var(--i) * 90ms)}
}
@media (hover: none), (pointer: coarse){.gh-roll__grid{display:none}}
@media (prefers-reduced-motion: reduce){
  .gh-roll__grid li,.gh-roll:hover .gh-roll__grid li{transform:translate(-50%,-50%) rotate(var(--r));transition:opacity .2s linear}
}

/* The work (homepage): a full-width grid of tattoos and hair, each with its artist's name */
.gh-work{border-top:1px solid #1C4A46}
.gh-work__head{max-width:1280px;margin:0 auto;padding:96px 40px 48px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px 48px}
.gh-work__intro{display:flex;flex-direction:column;gap:14px;max-width:640px}
.gh-work__h{margin:0;font-family:Italiana,Georgia,serif;font-weight:400;font-size:52px;line-height:1.05}
.gh-work__p{margin:0;font-size:17px;line-height:28px;color:#393536}
.gh-work__grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.gh-work__grid li{position:relative;aspect-ratio:1 / 1;overflow:hidden;background:#E0E0E0}
.gh-work__grid img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.gh-work__grid li:hover img{transform:scale(1.03)}
.gh-work__who{position:absolute;left:12px;bottom:12px;padding:7px 10px;background:#F2F0ED;color:#1C4A46;font-family:Barlow,Arial,sans-serif;font-weight:600;font-size:13px;line-height:1;letter-spacing:.14em;text-transform:uppercase}
@media (max-width: 640px){
  .gh-work__head{padding:72px 40px 32px}
  .gh-work__head .gh-btn{flex:1 1 auto}
  .gh-work__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gh-work__who{left:8px;bottom:8px}
}
@media (prefers-reduced-motion: reduce){.gh-work__grid img{transition:none}}

/* Visit section (homepage): the address set large on blush, details in ruled rows beside it */
.gh-visit{background:#ECCCC4;color:#1C4A46}
.gh-visit :focus-visible{outline-color:#1C4A46}
.gh-visit__in{max-width:1280px;margin:0 auto;padding:96px 40px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:48px 96px;align-items:start}
.gh-visit__label{margin:0;font-family:Barlow,Arial,sans-serif;font-weight:600;font-size:13px;letter-spacing:.16em;text-transform:uppercase}
.gh-visit__addr{margin:18px 0 0;font-family:Italiana,Georgia,serif;font-weight:400;font-size:clamp(44px,5vw,64px);line-height:1}
.gh-visit__area{margin:14px 0 0;font-family:Italiana,Georgia,serif;font-size:28px;line-height:1.2}
.gh-visit__btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px}
.gh-visit__list{margin:0;border-bottom:1px solid #1C4A46}
.gh-visit__row{display:grid;grid-template-columns:140px minmax(0,1fr);gap:16px;padding:9px 0;border-top:1px solid #1C4A46}
.gh-visit__row dt,.gh-visit__row dd{display:flex;align-items:center;min-height:44px}
.gh-visit__row dt{font-family:Barlow,Arial,sans-serif;font-weight:600;font-size:13px;letter-spacing:.14em;text-transform:uppercase}
.gh-visit__row dd{margin:0;font-size:17px;line-height:26px;color:#393536}
.gh-visit__row dd a{display:inline-flex;align-items:center;min-height:44px;color:#1C4A46;text-decoration-thickness:1px;text-underline-offset:4px}
.gh-visit__row dd a:hover{color:#393536}
@media (max-width: 900px){
  .gh-visit__in{grid-template-columns:1fr;padding:72px 40px}
  .gh-visit__btns .gh-btn--outline{display:none !important} /* the phone bar already has Text the shop */
}
@media (max-width: 640px){
  .gh-visit__area{font-size:24px}
  .gh-visit__btns .gh-btn{flex:1 1 auto}
  .gh-visit__row{grid-template-columns:1fr;gap:0;padding:12px 0}
  .gh-visit__row dt{min-height:0}
}
