/* MC Granite: added effects (edge picker, call button, footer reveal, sheen, veins) */

/* ---------- footer reveal: the page lifts away like a slab ---------- */
body { background: var(--char); }
main { position: relative; z-index: 1; background: var(--paper); clip-path: inset(0 0 0 0 round 0 0 36px 36px); }
@media (min-width: 681px) and (min-height: 560px) {
  .foot { position: sticky; bottom: 0; z-index: 0; }
}

/* ---------- polished shine across project cards ---------- */
.cat .sheen { position: absolute; top: -25%; bottom: -25%; left: 0; width: 42%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,247,230,.45) 42%, rgba(255,255,255,.8) 50%, rgba(255,247,230,.45) 58%, transparent);
  transform: translateX(-170%) skewX(-18deg); }
.cat .cat-body { z-index: 2; }
.cat:hover .sheen, .cat:focus-visible .sheen, .cat.sweep .sheen { transform: translateX(340%) skewX(-18deg); transition: transform 1s cubic-bezier(.3,.6,.2,1); }

/* ---------- gold vein that draws under each section title ---------- */
.h-vein { display: block; width: min(300px, 72%); height: auto; margin-top: 16px; overflow: visible; }
.h-vein path { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.h-vein .br { stroke-width: 1.2; opacity: .8; }
.h-vein.flip { transform: scaleX(-1); }
h2.in .h-vein path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s .35s cubic-bezier(.6,0,.2,1); }
h2.in .h-vein .br { transition-delay: 1.2s; transition-duration: .8s; }

/* ---------- edge style picker ---------- */
.edges { color: #fff; padding: 110px 0; }
.edges-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.edges .kicker { color: var(--gold); }
.edges-sub { color: #d6d3d1; margin-top: 18px; max-width: 46ch; }
.edge-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.edge-tabs button { border: 1px solid rgba(255,255,255,.28); background: rgba(42,45,50,.6); color: #fff; border-radius: 999px; padding: 10px 20px; font: 700 .95rem var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.edge-tabs button:hover { border-color: var(--gold); }
.edge-tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.edge-note { color: #e7e5e4; margin-top: 22px; min-height: 3.4em; max-width: 46ch; }
.edge-stage { position: relative; background: rgba(18,19,22,.55); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 28px; }
.edge-svg { width: 100%; height: auto; display: block; }
.cab { stroke: rgba(255,255,255,.22); stroke-width: 2; stroke-dasharray: 4 6; }
.edge-fill { fill: url(#stone); opacity: 0; transition: opacity .5s .45s; }
.edge-svg.drawn .edge-fill { opacity: 1; }
.edge-line { fill: none; stroke: var(--gold-l); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.edge-svg.drawn .edge-line { stroke-dashoffset: 0; transition: stroke-dashoffset .9s cubic-bezier(.6,0,.2,1); }
.edge-tag { position: absolute; left: 28px; top: 22px; font-size: .8rem; font-weight: 600; color: #a8a29e; }

/* ---------- floating call button (phones) ---------- */
.call-fab { display: none; }
@media (max-width: 680px) {
  .call-fab { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 85; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 999px; text-decoration: none; font-weight: 800; color: var(--on-gold);
    background: linear-gradient(135deg, var(--gold-l), var(--gold) 55%, #a9824a); box-shadow: 0 14px 30px -10px rgba(0,0,0,.5);
    transform: translateY(160%); transition: transform .45s cubic-bezier(.2,.9,.25,1.15); }
  .call-fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .call-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; }
  .fab-on .call-fab { transform: none; }
  .fab-on .call-fab::before { opacity: 1; animation: fabGlow 2.4s infinite; }
  .fab-on .wm-badge { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .wm-badge { transition: bottom .45s; }
  .edges-in { grid-template-columns: 1fr; gap: 36px; }
  .edges { padding: 72px 0; }
  .edge-stage { padding: 18px; }
  .edge-tabs button { padding: 9px 16px; font-size: .9rem; }
}
@keyframes fabGlow { 0% { box-shadow: 0 0 0 0 rgba(216,185,127,.6); } 100% { box-shadow: 0 0 0 16px rgba(216,185,127,0); } }
@media (min-width: 681px) and (max-width: 1080px) {
  .edges-in { grid-template-columns: 1fr; gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .review-glide { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
