/* Preview only — founder cut-out on the restored Option A grey canvas.
   Palette from styles-noir.css (chosen Option A / v2 business-card mark),
   also present in prod-type-v8 and backup-live-6b06aaeb site-v6.css:
     page/paper #d4d7db, stock/ink #1c1c1e, muted/stone #38383a,
     brass/deboss #989b9f, ivory (hero type only) #f5f4f2, deep #141416.
   Does not touch the hero video or mountain. Not for production until VSA says yes. */

html body[data-page="home"]{
  --page:#d4d7db;
  --paper:#d4d7db;
  --sheet:#d4d7db;
  --panel:#d4d7db;
  --mist:#d4d7db;
  --offwhite:#d4d7db;
  --ivory-deep:#d4d7db;
  --highlight:#e2e4e7;
  --stock:#1c1c1e;
  --ink:#1c1c1e;
  --charcoal:#1c1c1e;
  --espresso:#1c1c1e;
  --chocolate:#1c1c1e;
  --muted:#38383a;
  --stone:#38383a;
  --graphite:#38383a;
  --deboss:#989b9f;
  --bronze:#989b9f;
  --sand:#989b9f;
  --slate:#6a6d71;
  --t-ink:#1c1c1e;
  --t-body:#38383a;
  --t-quiet:#6a6d71;
  --line:transparent;
  --line-strong:transparent;
  background-color:#d4d7db;
  color:#1c1c1e;
}

/* One grey canvas below the hero. No section colour steps, no divider lines. */
html body[data-page="home"] .example-feature,
html body[data-page="home"] section.founder,
html body[data-page="home"] .svc-band,
html body[data-page="home"] .examples,
html body[data-page="home"] .how,
html body[data-page="home"] .enquire,
html body[data-page="home"] .planned{
  background:#d4d7db !important;
  color:#1c1c1e;
  border:0 !important;
  box-shadow:none !important;
}

/* Soft fade from the hero into the grey canvas only — video and mountain stay as they are. */
html body[data-page="home"] .hero-bleed::after{
  background:linear-gradient(to top, #d4d7db 0%, rgba(212,215,219,0.72) 36%, rgba(212,215,219,0) 100%);
  pointer-events:none;
}

/* Header: no line, no shadow. Solid state uses the same grey glass. Hero-over-header stays transparent. */
html body[data-page="home"] .site-header,
html body[data-page="home"] .site-header.is-solid,
html body[data-page="home"].nav-open .site-header{
  border:0 !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}
html body[data-page="home"] .site-header.is-solid,
html body[data-page="home"].nav-open .site-header{
  background:rgba(212,215,219,0.97) !important;
  -webkit-backdrop-filter:saturate(120%) blur(10px);
  backdrop-filter:saturate(120%) blur(10px);
  color:#1c1c1e;
}

/* Kill rules, borders, hairlines on the homepage. */
html body[data-page="home"] .founder-rule,
html body[data-page="home"] .svc-rule,
html body[data-page="home"] .svc-item::before,
html body[data-page="home"] .svc-body .svc-section::before{
  display:none !important;
  background:none !important;
  height:0 !important;
  border:0 !important;
}
html body[data-page="home"] .svc-item,
html body[data-page="home"] .example-item,
html body[data-page="home"] .example-item:last-child,
html body[data-page="home"] .founder-personal,
html body[data-page="home"] .how-network,
html body[data-page="home"] .form-wrap,
html body[data-page="home"] .footer-services,
html body[data-page="home"] .footer-nav,
html body[data-page="home"] .site-footer{
  border:0 !important;
  box-shadow:none !important;
}
html body[data-page="home"] .founder-personal{
  padding-top:1.25rem;
}

/* Links: subtle underline, not a border rule. */
html body[data-page="home"] .svc-link,
html body[data-page="home"] .footer-services a,
html body[data-page="home"] .footer-nav .footer-wa-text{
  border-bottom:0 !important;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:0.22em;
  text-decoration-color:rgba(28,28,30,0.35);
}
html body[data-page="home"] .svc-link:hover,
html body[data-page="home"] .footer-services a:hover,
html body[data-page="home"] .footer-nav .footer-wa-text:hover,
html body[data-page="home"] .svc-link:focus-visible,
html body[data-page="home"] .footer-services a:focus-visible{
  text-decoration-color:#1c1c1e;
}

/* Type colours belonging to the grey palette. Do not recolour hero type on the video. */
html body[data-page="home"] h2,
html body[data-page="home"] h3,
html body[data-page="home"] .svc-title,
html body[data-page="home"] section.founder .founder-copy h2{
  color:#1c1c1e;
}
html body[data-page="home"] .founder-bio,
html body[data-page="home"] .founder-how,
html body[data-page="home"] .founder-personal,
html body[data-page="home"] .section-head p,
html body[data-page="home"] .svc-band-head p,
html body[data-page="home"] .svc-line{
  color:#38383a;
}
html body[data-page="home"] .kicker,
html body[data-page="home"] .founder-meta,
html body[data-page="home"] .role,
html body[data-page="home"] .founder-copy .kicker,
html body[data-page="home"] .founder-copy .role{
  color:#989b9f;
}

/* Founder: no frame, no box. Figure sits on the bottom edge and dissolves into the grey. */
html body[data-home="v7"] section.founder{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:#d4d7db !important;
  padding:clamp(2.4rem,5vw,4.5rem) 0 0 !important;
  min-height:min(52rem, calc(100svh - var(--header, 4.5rem)));
}
html body[data-home="v7"] section.founder::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:url("../assets/images/texture-stone-linen.png");
  background-size:180px 180px;
  opacity:0.14;
  mix-blend-mode:multiply;
  filter:grayscale(1) contrast(0.9);
}
/* Soft window-light pool from the left (his right), cool grey only — material light, not a tint. */
html body[data-home="v7"] section.founder::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 70% 80% at 18% 36%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 62%),
    radial-gradient(ellipse 50% 70% at 88% 70%, rgba(28,28,30,0.10) 0%, rgba(28,28,30,0) 70%);
  animation:founder-light-drift 28s ease-in-out infinite;
}
@keyframes founder-light-drift{
  0%,100%{transform:translate3d(0,0,0);opacity:1}
  50%{transform:translate3d(1.4%,-0.8%,0);opacity:0.88}
}
@media (prefers-reduced-motion:reduce){
  html body[data-home="v7"] section.founder::after{animation:none}
}
html body[data-home="v7"] section.founder .founder-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr;
  width:min(100% - (var(--pad,1.5rem)*2), 78rem);
  margin:0 auto;
  min-height:0 !important;
  align-items:end;
}
html body[data-home="v7"] section.founder .founder-wordmark{display:none}
html body[data-home="v7"] section.founder .founder-copy{
  position:relative;
  z-index:2;
  margin:0 !important;
  padding:0 0 3.4rem !important;
  max-width:36rem !important;
  width:auto !important;
  min-height:0 !important;
  color:#1c1c1e;
}

/* The photograph itself — no rectangular media box. */
html body[data-home="v7"] section.founder .founder-media{
  position:relative !important;
  inset:auto !important;
  width:100%;
  max-width:none;
  max-height:none !important;
  height:auto !important;
  aspect-ratio:auto !important;
  margin:0 0 0.4rem;
  overflow:visible !important;
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
  pointer-events:none;
}
html body[data-home="v7"] section.founder .founder-media picture{display:block}
html body[data-home="v7"] section.founder .founder-photo{
  display:block;
  width:100%;
  height:auto;
  max-height:min(42rem, 88svh);
  object-fit:contain;
  object-position:center bottom;
  filter:none;
  /* Soft falloff on every side so there is no visible rectangle; face stays in the clear centre. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 78%, transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 78%, transparent 100%);
  mask-composite:intersect;
  -webkit-mask-size:100% 100%;
  mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
}
html body[data-home="v7"] section.founder .founder-media::after{display:none}

@media (min-width:860px){
  html body[data-home="v7"] section.founder{
    min-height:min(56rem, calc(100svh - var(--header, 4.5rem)));
    padding:0 !important;
  }
  html body[data-home="v7"] section.founder .founder-inner{
    min-height:min(56rem, calc(100svh - var(--header, 4.5rem))) !important;
    grid-template-columns:minmax(20rem, 0.92fr) minmax(22rem, 1.08fr);
    column-gap:clamp(1.5rem, 4vw, 4rem);
    align-items:stretch;
  }
  html body[data-home="v7"] section.founder .founder-copy{
    grid-column:1;
    grid-row:1;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:6rem 0 5.5rem !important;
  }
  html body[data-home="v7"] section.founder .founder-media{
    grid-column:2;
    grid-row:1;
    margin:0;
    align-self:end;
    width:calc(100% + var(--pad, 1.5rem));
    justify-self:end;
  }
  html body[data-home="v7"] section.founder .founder-photo{
    max-height:min(56rem, calc(100svh - var(--header, 4.5rem)));
    width:100%;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 6%, #000 96%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 82%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0%, #000 6%, #000 96%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 82%, transparent 100%);
  }
}

/* Soft descent into the existing dark footer — no hard edge. Leave footer artwork alone. */
html body[data-page="home"] .enquire{
  padding-bottom:clamp(4rem, 8vw, 7rem);
  background:
    linear-gradient(to bottom, #d4d7db 0%, #d4d7db 62%, #1b1b1d 100%) !important;
}
html body[data-page="home"] .site-footer{
  border-top:0 !important;
}

/* Preview ribbon — not shown in production (this stylesheet is preview-only). */
.founder-preview-note{
  position:fixed;
  z-index:80;
  left:50%;
  bottom:0.85rem;
  transform:translateX(-50%);
  margin:0;
  padding:0.45rem 0.85rem;
  max-width:min(92vw, 40rem);
  background:rgba(28,28,30,0.88);
  color:#f5f4f2;
  font-family:var(--sans), sans-serif;
  font-size:0.68rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  text-align:center;
  pointer-events:none;
}
