/* AFH PROJECT DETAIL — from High Care AFH - Project.html reference */

.pnav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
  background: rgba(19, 17, 16, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.pnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); transition: color .3s; white-space: nowrap; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.back-link:hover svg { transform: translateX(-4px); }
.pnav .brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.pnav .brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 14px var(--orange); }

.phero { padding-top: 48px; padding-bottom: 30px; }
.brand-top {
  display: inline-flex; width: max-content; max-width: 100%; align-items: center;
  background: #fff; border-radius: 16px; padding: 18px 32px;
  box-shadow: 0 2px 4px rgba(0,0,0,.18), 0 24px 54px -26px rgba(0,0,0,.7);
  margin-bottom: 28px;
}
.brand-top img { height: 74px; width: auto; display: block; max-width: 280px; object-fit: contain; }
.phero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6.5vw, 84px); letter-spacing: -0.03em; line-height: 0.98; margin-top: 20px; }
.phero h1 .o { color: var(--orange); font-style: normal; }
.phero-sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 620px; margin-top: 22px; line-height: 1.65; }
.phero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.pmeta { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 50px; padding-top: 34px; border-top: 1px solid var(--line); }
.pmeta .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.pmeta .v { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin-top: 7px; }
.pmeta .v.small { font-size: 16px; font-family: var(--sans); font-weight: 500; max-width: 280px; line-height: 1.45; }

.kit { padding: clamp(50px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.kit:first-of-type { border-top: 0; }
.kit-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.kit-head .ttl { display: flex; align-items: baseline; gap: 18px; }
.kit-head .ttl .num { font-family: var(--mono); font-size: 14px; color: var(--muted-2); letter-spacing: 0.1em; }
.kit-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.02em; }
.kit-head p { color: var(--muted); font-size: 16px; max-width: 420px; line-height: 1.65; }

.cap { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 14px; display: block; }

.web-mock {
  width: 100%;
  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  background: var(--surface); box-shadow: 0 50px 90px -45px rgba(0,0,0,0.75);
}
.web-mock.work-card:hover { transform: none; border-color: var(--line-2); }
.web-bar { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dots .r { background: #ff5f57; } .dots .y { background: #febc2e; } .dots .g { background: #28c840; }
.web-url { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 7px 20px; border-radius: 100px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.web-view {
  position: relative;
  height: clamp(280px, 72vw, 640px);
  overflow: hidden;
  background: #111;
  aspect-ratio: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.web-mock .work-shot { aspect-ratio: auto !important; background: #111; }
.web-view .ph { position: absolute; inset: 0; border: 0; z-index: 2; }
.web-view .site-shot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 100%;
  height: auto;
  max-width: none;
  z-index: 1;
  display: block;
  will-change: transform;
  transform: translateY(0);
  opacity: 1;
  pointer-events: none;
}
.web-view .site-shot:not(.loaded) { opacity: 0; }
.site-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.site-note .dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  flex-shrink: 0;
}
.website-visit {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.website-visit .btn {
  min-height: 48px;
  padding: 14px 28px;
}
.web-view .scroll-hint { top: 14px; left: 14px; right: auto; opacity: 1; transform: none; z-index: 6; pointer-events: none; }
.web-mock.work-card[data-scroll-preview].is-scrolling .site-shot.loaded { transition: transform 8s linear; }
.web-view-lightbox {
  position: absolute; bottom: 14px; right: 14px; z-index: 7;
  width: auto; height: auto; inset: auto;
  border: 0; padding: 7px 11px; margin: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); border-radius: 100px;
  background: rgba(19,17,16,0.72); border: 1px solid var(--line-2);
  cursor: zoom-in; pointer-events: auto;
}
.web-view-lightbox::after { content: "Enlarge"; }

.shot {
  position: relative; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,.18), 0 30px 62px -24px rgba(0,0,0,.62);
  transition: transform .5s var(--ease), box-shadow .5s; border: 0; padding: 0; width: 100%; cursor: zoom-in; text-align: left;
}
.shot:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 40px 80px -28px rgba(0,0,0,.7); }
.shot img { display: block; width: 100%; height: auto; }

.piece { display: flex; flex-direction: column; gap: 14px; }
.piece-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 34px); align-items: start; }
.piece-stack + .piece-stack { margin-top: clamp(20px, 2.6vw, 34px); }
.piece-full { max-width: 1000px; }

.logo-duo { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 2.6vw, 32px); align-items: stretch; }
.logo-duo:has(.piece:only-child) { grid-template-columns: 1fr; max-width: 640px; }
.logo-real {
  background: #fff; border-radius: 16px; padding: clamp(28px, 4vw, 52px);
  display: grid; place-items: center; height: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,.18), 0 30px 62px -24px rgba(0,0,0,.6);
}
.logo-real img { width: 100%; max-width: 430px; height: auto; object-fit: contain; }
.logo-real.stack img { max-width: 230px; }

.studio {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% -10%, rgba(255,106,26,0.12), transparent 55%), linear-gradient(165deg, #221d18, #15110d 75%);
  padding: clamp(28px, 5vw, 70px); display: grid; place-items: center;
}
.studio.tall { min-height: 420px; }
.mock-flyer { width: min(360px, 72%); background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 26px 50px -18px rgba(0,0,0,0.6); }
.mock-flyer img { width: 100%; height: auto; display: block; }

.afh-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 0; }
.afh-chips span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--muted);
}
.afh-chips span.lead { color: var(--orange); border-color: var(--orange); }

.pcta { padding: clamp(60px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.pcta .contact-card { text-align: center; }
.pcta .contact-card h2 { margin-top: 22px; }
.pcta .contact-actions { justify-content: center; }

body.work-page { --maxw: 1280px; }
body.work-page .site-footer-minimal { border-top: 1px solid var(--line); }

.project-brand-marquee {
  padding: clamp(72px, 9vw, 124px) 0 clamp(54px, 7vw, 92px);
  border-top: 1px solid var(--line);
}
.project-brand-marquee .wrap {
  padding-top: clamp(42px, 5vw, 68px);
}
.project-brand-marquee__head {
  width: min(900px, 100%);
  margin: 0 auto clamp(42px, 5vw, 62px);
  text-align: center;
}
.project-brand-marquee__head h2 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.project-brand-marquee__head h2 .o { color: var(--orange); }
.project-brand-marquee__head p {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  text-wrap: balance;
}

.pnav .back-link { font-size: 14px; }
.pnav .btn-sm { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 820px) {
  .piece-grid, .logo-duo { grid-template-columns: 1fr; }
  .pmeta { gap: 30px; }
  .pnav .wrap { height: 64px; gap: 12px; }
  .pnav .back-link { font-size: 13px; gap: 8px; }
  .pnav .brand { font-size: 16px; }
  .pnav .btn-sm { padding: 10px 16px; font-size: 13px; }
  .project-brand-marquee { padding: 58px 0 42px; }
  .project-brand-marquee .wrap { padding-top: 34px; }
  .project-brand-marquee__head { margin-bottom: 34px; }
  .project-brand-marquee__head h2 { font-size: clamp(32px, 10vw, 46px); }
  .project-brand-marquee__head p { margin-top: 17px; font-size: 16px; }
}
