/* branding.css: the Branding page's own placing and sizing. Components and tokens come from design\. Copper Pole's
   own colors are the --c-demo-* fills, inside its demos only. */

/* ---------- 1. the header: the brand sheet across the ground, the words and the form at the left ---------- */
.brandhead { position: relative; display: grid; min-height: calc(100svh - var(--header-h)); overflow: clip; }
.brandhead__scene { position: absolute; inset: 0; z-index: 0; }
.brandhead__wash { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(13, 13, 15, 0.94) 0%, rgba(13, 13, 15, 0.86) 36%, rgba(13, 13, 15, 0.2) 62%, rgba(13, 13, 15, 0) 100%); }
.brandhead__in { position: relative; z-index: 2; width: 100%; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: center; padding-block: 32px 380px; }
.brandhead__copy { display: grid; gap: 14px; min-width: 0; max-width: 34rem; }
.brandhead .phead__line { margin-top: 0; }
.brandhead .book { max-width: 440px; }
.brandhead > .stop { z-index: 3; top: auto; bottom: 16px; right: 16px; }
/* on a phone the stop sits at the top, in view with the sheet as the page opens */
@media (max-width: 999px) { .brandhead > .stop { top: 10px; bottom: auto; right: 10px; } .brandhead__in { padding-top: 56px; } }
@media (max-width: 999px) { .brandhead__wash { background: linear-gradient(180deg, rgba(13, 13, 15, 0.92) 0%, rgba(13, 13, 15, 0.88) 55%, rgba(13, 13, 15, 0.1) 78%); } }
@media (min-width: 1000px) {
  .brandhead__in { padding-block: 32px; grid-template-columns: minmax(0, 480px); justify-content: start; justify-items: stretch; }
  .brandhead .phead__title { font-size: min(clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem), 7vh); }
}

/* ---------- 2. what it changes: the storefront, Before and After ---------- */
.sflip .head { margin-bottom: 28px; }
.sflip__frame { position: relative; overflow: hidden; }
/* the photo's own 16:9 box, so the scene's surfaces sit on its window and sign; on a phone, wider than the screen,
   held on the window and the sign */
.sflip__box { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.sflip__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.sflip__scene { position: absolute; inset: 0; }
.sflip__frame .stop { top: auto; bottom: 14px; right: 14px; }
@media (max-width: 759px) {
  .sflip__box { width: 760px; left: 50%; margin-left: -400px; }
}

/* ---------- 3. built on the grid ---------- */
.mbuilt { --ground-x: 50%; --ground-y: 100%; }
.mbuilt .head { margin-bottom: 20px; }
.mbuilt__stage { position: relative; max-width: 1120px; margin: 0 auto; padding-top: 48px; }
.mbuilt__scene { position: relative; }
.mbuilt__stage .stop { top: 0; right: 0; bottom: auto; }

/* ---------- 4. branding first: Sean and his article ---------- */
.bpress .head { margin-bottom: 32px; }
.bpress__stage { position: relative; max-width: 980px; margin: 0 auto; padding-top: 48px; }
.bpress__stage .stop { top: 0; right: 0; bottom: auto; }
.bpress__comp { display: grid; gap: 28px; align-items: center; overflow: visible; }
@media (min-width: 800px) { .bpress__comp { grid-template-columns: 340px minmax(0, 1fr); gap: 44px; } }
.bpress__sean { margin: 0; display: grid; gap: 10px; justify-items: start; }
.bpress__sean img { width: 100%; max-width: 340px; height: auto; aspect-ratio: 1; border-radius: var(--radius-xl); object-fit: cover; box-shadow: var(--shadow-l); }
.bpress__sean figcaption { font-size: var(--fs-small); color: var(--c-ink-soft); }
.bpress__side { display: grid; gap: 20px; }
.pl-card { padding: 26px 28px; border-radius: var(--radius-l); background: var(--c-card); box-shadow: var(--shadow-m), inset 0 0 0 1px var(--c-line); }
.pl-kick { margin: 0; font: 700 var(--fs-small)/1.2 var(--font-ui); color: var(--c-brand-text); letter-spacing: 0.02em; }
.pl-hl { margin: 10px 0 0; font: 800 clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem)/1.2 var(--font-display); text-wrap: balance; }
.pl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.pl-done .x { width: 26px; height: 26px; border-radius: 7px; }
.pl-lab { font-weight: 700; margin-right: 4px; }
.pl-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-s); color: var(--c-ink); font-weight: 700; text-decoration: none; }
.pl-chip:hover { box-shadow: inset 0 0 0 2px var(--c-brand), var(--shadow-s); }
.pl-chip:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* ---------- 5. the kit on the counter ---------- */
.bkit .head { margin-bottom: 28px; }
.bkit__frame { position: relative; overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow-l); background: var(--c-night-3); }
.bkit__box { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.bkit__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bkit__scene { position: absolute; inset: 0; }
.bkit__frame .stop { top: auto; bottom: 14px; right: 14px; }
@media (max-width: 759px) {
  .bkit__frame { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .bkit__box { width: 760px; left: 50%; margin-left: -280px; }
}

/* ---------- 6. the close: the barber at work as a band, the words and the form under it ---------- */
.bclose { padding-top: 0; }
.bclose::before { display: none; }
.bclose .close__media { position: relative; inset: auto; z-index: 0; height: clamp(340px, 38vw, 560px); margin-bottom: 36px; }
.bclose .close__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 15, 0) 70%, var(--c-night) 100%); }
.bclose .close__media .bclose__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 30%; }
.bclose > .stop { top: 14px; right: 14px; bottom: auto; }
.bclose__card { position: absolute; z-index: 1; right: max(var(--gutter), 6%); bottom: 48px; }
.bclose__bc { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--c-demo-cream); }
.bclose__in { display: grid; gap: 30px; align-items: center; }
@media (min-width: 1000px) { .bclose__in { grid-template-columns: minmax(0, 520px) minmax(0, 440px); justify-content: space-between; gap: 56px; } }
.bclose__words { display: grid; gap: 16px; }
@media (max-width: 759px) {
  .bclose .close__media .bclose__clip { object-position: 55% 30%; }
  .bclose__card { right: 16px; bottom: 30px; }
}
