/* Homepage layout — product-sky hero (QuickLatch Halo) + work sections. */
.refined-homepage .shell { width:min(1464px,calc(100% - 8.5vw)); }
.refined-homepage .site-header { padding-block:26px; min-height:104px; z-index:5; }
.refined-homepage .brand { width:254px; }
.refined-homepage .site-header nav { gap:40px; }
.refined-homepage .site-header nav a { font-size:14px; }
.refined-homepage .site-header nav a:last-child { display:flex; justify-content:space-between; align-items:center; border:1px solid var(--cc-control-border); border-radius:100px; padding:11px 24px; min-width:212px; margin-left:58px; }

.refined-homepage.product-sky-hero .site-header { position:relative; z-index:6; background:transparent; }
.refined-homepage.product-sky-hero .hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  width:100%;
  max-width:none;
  margin-top:-104px;
  padding:104px 0 48px;
  min-height:100svh;
  background:#050708;
}
.refined-homepage.product-sky-hero .opening-layout {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  position:relative;
  z-index:2;
  width:min(1464px,calc(100% - 8.5vw));
  min-height:calc(100svh - 160px);
  margin-inline:auto;
}
.refined-homepage.product-sky-hero .opening-main { position:relative; max-width:40%; }
.refined-homepage.product-sky-hero .opening-main::before {
  content:"";
  position:absolute;
  z-index:-1;
  left:-14%;
  right:-70%;
  top:4%;
  bottom:8%;
  background:linear-gradient(90deg,rgba(5,7,8,.94) 0%,rgba(5,7,8,.88) 36%,rgba(5,7,8,.62) 58%,rgba(5,7,8,.22) 78%,transparent 100%);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 52%,transparent 100%);
  mask-image:linear-gradient(90deg,#000 0%,#000 52%,transparent 100%);
  pointer-events:none;
}
.refined-homepage.product-sky-hero .product-tag {
  margin:0;
  font:500 11px/1.4 var(--cc-font-meta);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--cc-signal);
}
.refined-homepage.product-sky-hero .product-name {
  margin:10px 0 0;
  font:500 15px/1.4 var(--cc-font-body);
  color:var(--cc-text-secondary);
  letter-spacing:-.01em;
}
.refined-homepage.product-sky-hero .product-name strong {
  font-weight:600;
  color:var(--cc-text);
}
.refined-homepage .hero h1 {
  font-size:clamp(42px,3.9vw,62px);
  line-height:1.13;
  letter-spacing:-.035em;
  margin-top:22px;
  max-width:none;
  font-weight:400;
}
.refined-homepage .headline-lead { font-weight:800; color:var(--cc-text); }
.refined-homepage .headline-rest { font-weight:400; color:#D0D6DA; }
.refined-homepage.product-sky-hero .hero h1 { text-shadow:0 1px 0 rgba(5,7,8,.35),0 12px 40px rgba(5,7,8,.55); }
.refined-homepage .opening-description {
  max-width:420px;
  margin-top:24px;
  color:var(--cc-text);
  font-size:20px;
  line-height:1.55;
}
.refined-homepage .hero .actions { margin-top:36px; gap:20px; }
.refined-homepage .hero .actions a {
  border-radius:100px;
  min-height:60px;
  min-width:202px;
  justify-content:space-between;
  padding:14px 25px;
  font-size:16px;
}
.refined-homepage .hero .actions .quiet-link { border:1px solid var(--cc-control-border); }

/* Dimmed Halo & Gestures settings photo — craft proof behind the copy */
.refined-homepage.product-sky-hero .product-sky {
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.refined-homepage.product-sky-hero .product-sky img {
  position:absolute;
  right:-12%;
  top:50%;
  transform:translateY(-50%) scale(1.02);
  width:min(68vw,1080px);
  height:auto;
  border-radius:0;
  box-shadow:none;
  opacity:.78;
  filter:saturate(.96) contrast(1.05) brightness(.86);
}
.refined-homepage.product-sky-hero .product-sky::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg,#050708 0%,#050708 22%,rgba(5,7,8,.88) 38%,rgba(5,7,8,.4) 52%,transparent 70%),
    linear-gradient(180deg,rgba(5,7,8,.35) 0%,transparent 16%,transparent 78%,rgba(5,7,8,.4) 100%);
}

/* Halo bar — the product moment over the gesture map */
.refined-homepage.product-sky-hero .halo-accent {
  position:absolute;
  z-index:4;
  right:max(4%,calc((100% - min(1464px,100% - 8.5vw)) / 2 + 2%));
  top:32%;
  width:min(52vw,680px);
  pointer-events:none;
}
.refined-homepage.product-sky-hero .halo-accent .glow {
  position:absolute;
  inset:-55% -30%;
  background:radial-gradient(ellipse at center,rgba(255,255,255,.06),transparent 58%);
  filter:blur(36px);
  opacity:.75;
}
.refined-homepage.product-sky-hero .halo-accent img {
  position:relative;
  display:block;
  width:100%;
  height:auto;
  transform:rotate(-1deg) scale(1.03);
  filter:drop-shadow(0 28px 60px rgba(0,0,0,.65));
  animation:halo-float 14s ease-in-out infinite alternate;
}
.refined-homepage.product-sky-hero .sky-caption { display:none; }

@keyframes halo-float {
  from { transform:rotate(-1deg) scale(1.03) translateY(0); }
  to { transform:rotate(-1deg) scale(1.03) translateY(-8px); }
}
@media(prefers-reduced-motion:reduce) {
  .refined-homepage.product-sky-hero .halo-accent img { animation:none !important; }
  .refined-homepage * { scroll-behavior:auto; }
}

.refined-homepage .work-index { padding-block:18px 30px; }
.refined-homepage .work-index .eyebrow { font-size:11px; }
.refined-homepage .work-pair { gap:36px; }
.refined-homepage .project-heading { margin-bottom:18px; }
.refined-homepage .project-heading h3 { font-size:25px; font-weight:400; }
.refined-homepage .project-number { display:none; }
.refined-homepage .project-category { font-size:11px; letter-spacing:.01em; }
.refined-homepage .work-visual { aspect-ratio:1.72; border-radius:19px; background:var(--cc-surface-raised); }
.refined-homepage .quicklatch-visual { padding:12px; }
.refined-homepage .quicklatch-visual img { width:auto; max-width:100%; height:100%; object-fit:contain; border-radius:9px; box-shadow:none; }
.refined-homepage .molina-visual { padding:12px; }
.refined-homepage .molina-visual img { width:100%; height:100%; object-fit:contain; border-radius:9px; }
.refined-homepage .project-caption { display:flex; justify-content:space-between; align-items:baseline; gap:20px; margin-top:14px; }
.refined-homepage .project-caption h4 { font-size:15px; line-height:1.5; letter-spacing:0; color:var(--cc-text-secondary); }
.refined-homepage .project-summary-link { min-height:44px; display:inline-flex; align-items:center; gap:10px; flex-shrink:0; font-size:13px; text-decoration:none; }
.refined-homepage .project-note { margin-top:8px; }
.refined-homepage .project-note > p { margin-top:0; }
.refined-homepage .work-project .inspect-label { opacity:0; }
.refined-homepage .work-visual:hover .inspect-label,
.refined-homepage .work-visual:focus-visible .inspect-label { opacity:1; }

@media(min-width:1801px) {
  .refined-homepage .hero h1 { font-size:66px; }
}
@media(max-width:1200px) and (min-width:901px) {
  .refined-homepage .site-header nav { gap:26px; }
  .refined-homepage .site-header nav a:last-child { min-width:170px; margin-left:14px; }
  .refined-homepage .brand { width:225px; }
  .refined-homepage .hero h1 { font-size:clamp(40px,4.2vw,54px); }
  .refined-homepage .opening-description { font-size:18px; max-width:390px; }
  .refined-homepage .hero .actions a { min-width:174px; min-height:53px; padding:12px 20px; font-size:14px; }
  .refined-homepage .work-pair { gap:25px; }
  .refined-homepage .project-category { max-width:110px; text-align:right; }
}
@media(max-width:1000px) and (min-width:901px) {
  .refined-homepage .brand { width:205px; }
  .refined-homepage .site-header nav { gap:18px; }
  .refined-homepage .site-header nav a { font-size:12px; }
  .refined-homepage .site-header nav a:last-child { min-width:142px; margin-left:0; padding:10px 14px; }
  .refined-homepage .project-heading { align-items:flex-start; gap:4px; }
  .refined-homepage .project-category { max-width:none; text-align:left; margin-left:0; }
  .refined-homepage .project-heading h3 { font-size:22px; }
}
@media(max-width:900px) {
  .refined-homepage.product-sky-hero .hero {
    display:flex;
    flex-direction:column;
    width:100%;
    margin-top:0;
    min-height:0;
    padding:28px 22px 0;
  }
  .refined-homepage.product-sky-hero .opening-layout {
    order:1;
    width:100%;
    min-height:0;
  }
  .refined-homepage.product-sky-hero .opening-main { max-width:100%; }
  .refined-homepage.product-sky-hero .opening-main::before { display:none; }
  .refined-homepage .hero h1 { margin-top:28px; font-size:clamp(36px,8vw,52px); text-shadow:none; }
  .refined-homepage .opening-description { font-size:18px; }
  .refined-homepage.product-sky-hero .product-sky { display:none; }
  .refined-homepage.product-sky-hero .halo-accent {
    order:2;
    position:relative;
    right:auto;
    top:auto;
    width:min(92vw,420px);
    margin:28px auto 40px;
    transform:none;
  }
  .refined-homepage.product-sky-hero .halo-accent .glow { display:none; }
  .refined-homepage.product-sky-hero .halo-accent img { transform:none; animation:none; }
}
@media(max-width:760px) {
  .refined-homepage .shell { width:calc(100% - 44px); }
  .refined-homepage .site-header { min-height:82px; padding-block:20px; }
  .refined-homepage .brand { width:196px; }
  .refined-homepage .site-header nav { gap:0; }
  .refined-homepage .site-header nav a { font-size:16px; }
  .refined-homepage .site-header nav a:last-child {
    margin:0;
    border:0;
    border-radius:0;
    min-width:0;
    padding:15px 0;
    display:flex;
    justify-content:flex-start;
  }
  .refined-homepage .hero .actions { margin-top:27px; gap:12px; }
  .refined-homepage .hero .actions a { min-height:50px; min-width:0; padding:12px 19px; font-size:14px; gap:17px; }
  .refined-homepage .hero .actions a span { margin-left:4px; }
  .refined-homepage .work-pair { grid-template-columns:1fr; gap:30px; }
  .refined-homepage .work-index { padding-block:16px 22px; }
  .refined-homepage .work-index .eyebrow { font-size:11px; }
  .refined-homepage .project-heading { flex-wrap:nowrap; align-items:center; margin-bottom:13px; }
  .refined-homepage .project-heading > div { width:auto; }
  .refined-homepage .project-category { max-width:115px; margin:0; text-align:right; font-size:11px; }
  .refined-homepage .project-heading h3 { font-size:22px; }
  .refined-homepage .work-visual { aspect-ratio:1.46; }
  .refined-homepage .project-caption { margin-top:11px; gap:12px; }
  .refined-homepage .project-caption h4 { font-size:13px; }
  .refined-homepage .project-summary-link { font-size:12px; gap:6px; }
  .refined-homepage .quiet-pace { grid-template-columns:1fr; }
}
@media(max-width:380px) {
  .refined-homepage .shell { width:calc(100% - 36px); }
  .refined-homepage .brand { width:172px; }
  .refined-homepage .hero h1 { font-size:35px; }
  .refined-homepage .hero .actions { gap:10px; }
  .refined-homepage .hero .actions a { font-size:12px; padding:12px 14px; gap:10px; }
  .refined-homepage .project-caption { flex-wrap:wrap; gap:0; }
}
