/* ---------------------------------------------------------------------------
   Gib-San V2 · revision 5 — heavy glass
   Owner direction 2026-09-23: bring back the original V2 homepage, replace the
   square edges with a heavy, modern glass finish. Palette, type, photography
   and page structure are unchanged; only edge geometry and surface change.
   Loaded last on every page so one file carries the whole finish.
   --------------------------------------------------------------------------- */

:root {
  --radius:        14px;   /* was 0 — every component reading the token rounds */
  --radius-lg:     28px;   /* photo doors, hero plate */
  --radius-md:     20px;   /* glass plates inside the doors */
  --radius-pill:   999px;

  /* heavy glass: thick frost, a lit top rim, a cyan floor light, deep shadow */
  --hg-dark:       rgba(23,20,21,.40);
  --hg-dark-solid: rgba(23,20,21,.78);
  --hg-light:      rgba(255,255,255,.58);
  --hg-light-solid:#F7FAFE;
  --hg-rim:        rgba(255,255,255,.26);
  --hg-rim-lt:     rgba(255,255,255,.85);
  --hg-edge-lt:    rgba(35,31,32,.10);
  --hg-blur:       blur(26px) saturate(170%);
  --hg-spec:       inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 0 rgba(255,255,255,.06);
  --hg-spec-lt:    inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(35,31,32,.05);
  --hg-shadow:     0 30px 60px -30px rgba(23,20,21,.70), 0 10px 22px -14px rgba(23,20,21,.45);
  --hg-shadow-lt:  0 24px 48px -28px rgba(23,20,21,.40), 0 6px 16px -10px rgba(23,20,21,.18);
}

/* ============================================================ hero plate */
.home-v2 .hero { padding-block: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem) clamp(3.25rem, 2.2rem + 4.8vw, 5.75rem); }
.home-v2 .hero__scrim { background: linear-gradient(90deg, rgba(23,20,21,.55), rgba(23,20,21,.08) 70%); }
.home-v2 .hero__field img { filter: saturate(1) contrast(1.03) brightness(.80); }
.home-v2 .pane--photo.pane--hero {
  position: relative;
  max-width: 44rem;
  padding: clamp(1.4rem, 1rem + 1.8vw, 2.4rem) clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--hg-dark-solid);
  border: 1px solid var(--hg-rim);
  box-shadow: var(--hg-shadow), var(--hg-spec);
}
.home-v2 .pane--photo.pane--hero h1 { margin-bottom: 0; }
/* the lit rim — a hairline gradient drawn on the plate's own edge */
.home-v2 .pane--photo.pane--hero::before {
  content: ""; display: block; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,.55), rgba(255,255,255,.04) 42%, rgba(0,174,239,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.home-v2 .pane--photo.pane--hero::after { display: none; }

/* ================================================================ doors */
.home-v2 .fork { gap: clamp(1rem, .6rem + 1.2vw, 1.75rem); }
.home-v2 .door {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.14);
  padding: clamp(.75rem, .5rem + .8vw, 1.1rem);
  box-shadow: var(--hg-shadow);
  transition: transform 520ms var(--ease-out), box-shadow 520ms var(--ease-out);
}
/* the meaning colour becomes a lit edge along the top rim, not a square bar */
.home-v2 .door::before {
  inset: 0 0 auto 0; height: 100%; z-index: 1; pointer-events: none;
  border-radius: inherit;
  background: none;
  box-shadow: inset 0 3px 0 var(--secondary), inset 0 1px 0 rgba(255,255,255,.25);
}
.home-v2 .door--build::before { background: none; box-shadow: inset 0 3px 0 var(--accent), inset 0 1px 0 rgba(255,255,255,.25); }
.home-v2 .door::after {
  background: linear-gradient(180deg, rgba(23,20,21,0) 0%, rgba(23,20,21,.10) 45%, rgba(23,20,21,.45) 100%);
}
.home-v2 .door__img { border-radius: inherit; }
.home-v2 .door__img img { transition: transform 1100ms var(--ease-out); }

.door__glass {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(1.1rem, .8rem + 1.1vw, 1.6rem);
  border-radius: var(--radius-md);
  background: var(--hg-dark-solid);
  border: 1px solid var(--hg-rim);
  box-shadow: 0 18px 40px -22px rgba(23,20,21,.8), var(--hg-spec);
  transition: background 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.door__glass::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(165deg, rgba(255,255,255,.50), rgba(255,255,255,.03) 45%, rgba(255,255,255,.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.door__glass .door__line { margin-bottom: 1.1rem; }
.home-v2 .door__go {
  border-radius: var(--radius-pill);
  padding: 0 1.3rem;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.home-v2 .door--build .door__go {
  background: linear-gradient(180deg, #FFC45A, var(--accent));
  border-color: rgba(23,20,21,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 20px -12px rgba(23,20,21,.7);
}

@media (hover: hover) and (pointer: fine) {
  .home-v2 .door:hover { transform: translateY(-6px); box-shadow: 0 44px 80px -36px rgba(23,20,21,.75), 0 14px 28px -16px rgba(23,20,21,.5); }
  .home-v2 .door:hover .door__img img { transform: scale(1.06); }
  .home-v2 .door:hover .door__glass { background: rgba(23,20,21,.62); }
  .home-v2 .door:hover .door__go { background: var(--ink-inverse); color: var(--ink-page); border-color: var(--ink-inverse); }
  .home-v2 .door--build:hover .door__go { background: linear-gradient(180deg, #FFCB6B, var(--accent-press)); color: var(--ink-page); border-color: rgba(23,20,21,.18); }
}
.home-v2 .door:focus-visible { outline-offset: 4px; }

/* ====================================================== buttons, site-wide */
.btn { border-radius: var(--radius-pill); }
.btn--primary, .footer .btn--primary, .pane--photo .btn--primary, .on-dark .btn--primary {
  background: linear-gradient(180deg, #FFC45A, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(23,20,21,.08), var(--shadow-btn);
}
.btn--primary:hover { background: linear-gradient(180deg, #FFCB6B, var(--accent-press)); }
.btn--outline, .btn--onink { backdrop-filter: none; }

/* ======================================================== the header glass */
.slab { border-bottom: 1px solid var(--hg-edge-lt); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset; }
.slab.is-lifted { box-shadow: 0 18px 40px -30px rgba(23,20,21,.45); }
.slab__toggle { border-radius: 12px; }
.slab__nav a { border-radius: 10px; }
@media (min-width: 62rem) {
  .slab__nav a { border-radius: 0; }
}

/* ============================================== quick links as glass chips */
.home-v2 .quicklinks { gap: .6rem; padding-block: 1.25rem .5rem; }
.home-v2 .quicklinks a {
  gap: .75rem; min-height: 46px; padding: 0 1.1rem;
  border: 1px solid var(--hg-edge-lt);
  border-radius: var(--radius-pill);
  background: var(--hg-light-solid);
  box-shadow: var(--hg-shadow-lt), var(--hg-spec-lt);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.home-v2 .quicklinks a:hover { border-color: rgba(0,121,168,.45); transform: translateY(-2px); }

/* ====================================== proof strip as frosted glass tiles */
.proofstrip li {
  padding: 1.1rem 1.2rem;
  border-left: 0;
  border: 1px solid var(--hg-edge-lt);
  border-radius: var(--radius-md);
  background: var(--hg-light-solid);
  box-shadow: var(--hg-shadow-lt), var(--hg-spec-lt);
  position: relative; overflow: hidden;
}
.proofstrip li::before {
  content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: 0; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--secondary);
}

/* ========================================= cards, panes and misc surfaces */
.pane, .card, .route, .badges li, .config-choice, .work .work__frame, .pool-plan,
.faq details, .enquiry-design { border-radius: var(--radius-md); }
.card, .route, .badges li { overflow: hidden; }
.field input, .field select, .field textarea, .config-group select { border-radius: 12px; }

/* ========================================================= mobile action bar */
@media (max-width: 48.99rem) {
  .actionbar {
    inset: auto 12px calc(10px + env(safe-area-inset-bottom)) 12px;
    padding: 6px; gap: 6px; padding-bottom: 6px;
    border: 1px solid var(--hg-edge-lt);
    border-radius: 22px;
    box-shadow: 0 20px 40px -18px rgba(23,20,21,.55), var(--hg-spec-lt);
  }
  .actionbar a { min-height: 50px; border-radius: 16px; }
  .actionbar a + a { background: linear-gradient(180deg, #FFC45A, var(--accent)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
  .gsa-launch { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ================================================ assistant launcher/panel */
.gsa-launch {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(23,20,21,.22);
  background: linear-gradient(180deg, #FFC45A, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), var(--hg-shadow-lt);
}
.gsa { border-radius: 22px; border-width: 1px; }

/* ======================= the frost itself, only where the browser can blur */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home-v2 .pane--photo.pane--hero,
  .door__glass {
    background: var(--hg-dark);
    -webkit-backdrop-filter: var(--hg-blur);
    backdrop-filter: var(--hg-blur);
  }
  .home-v2 .quicklinks a,
  .proofstrip li {
    background: var(--hg-light);
    -webkit-backdrop-filter: var(--hg-blur);
    backdrop-filter: var(--hg-blur);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-v2 .door, .home-v2 .door__img img, .door__glass, .home-v2 .quicklinks a { transition: none; }
  .home-v2 .door:hover, .home-v2 .quicklinks a:hover { transform: none; }
}
