/* Homepage hero: "Drop your number in". Still water at first light, in four planes
   (sky, water, rings, reeds), with the price shown as ripples on the water. */
.hx{position:relative;overflow:hidden;background:#cfe3df;color:var(--marine);min-height:max(100svh,860px);isolation:isolate;}
.hx-scene,.hx-scene img,.hx-scene picture{position:absolute;inset:0;}
.hx-scene{z-index:0;bottom:auto !important;height:max(100svh,860px);}
.hx{--stage:max(100svh,860px);background:#10272c !important;}
.hx-sky img,.hx-sky{width:100%;height:100%;object-fit:cover;object-position:50% 50%;}
.hx-water{top:auto !important;bottom:0;width:100%;height:50.5% !important;object-fit:cover;object-position:50% 0;}
.hx-mist{position:absolute;left:-10%;right:-10%;top:44%;height:14%;background:radial-gradient(60% 50% at 50% 50%,rgba(244,241,234,.55),rgba(244,241,234,0) 70%);filter:blur(6px);}
.hx-sky,.hx-water,.hx-mist,.hx-pond,.hx-reeds{will-change:transform;}

/* copy sits in the sky */
.hx-top{position:relative;z-index:5;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:52px;align-items:start;padding-top:clamp(112px,11vw,136px);padding-bottom:40px;}
.hx-copy{position:relative;z-index:3;}
.hx .ey{color:#167f79;}
.hx h1{color:var(--marine);font-size:clamp(36px,4.3vw,58px);max-width:17ch;margin-top:18px;}
.hx h1 em{font-style:italic;color:#167f79;font-weight:500;}
.hx-lead{font-size:19px;line-height:1.6;color:#2c4a50;max-width:46ch;margin-top:22px;}

/* the pond: rings drawn on the water, anchored to the water plane */
.hx-pond{position:absolute;z-index:2;left:max(1vw,calc((100vw - 1140px)/2 - 30px));top:calc(var(--stage) * .975 - min(48vw,640px) * .386);width:min(48vw,640px);aspect-ratio:1000/360;pointer-events:none;}
.hx-pond svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;}
.hx-r{fill:none;stroke:#F4F1EA;stroke-width:1.6;vector-effect:non-scaling-stroke;}
.hx-r1{stroke-opacity:.95;}.hx-r2{stroke-opacity:.8;}.hx-r3{stroke-opacity:.55;}
.hx-cash{fill:rgba(31,163,156,.38);stroke:#7FC4BD;stroke-width:1.2;vector-effect:non-scaling-stroke;}
.hx-wake{fill:none;stroke:#F4F1EA;stroke-width:1.2;vector-effect:non-scaling-stroke;opacity:0;}
.hx-stone{fill:#F4F1EA;}
.hx-stone-shadow{fill:rgba(7,26,32,.35);}
.hx-tag{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;background:rgba(244,241,234,.94);color:var(--marine);border-radius:999px;padding:5px 12px 5px 11px;font-size:13.5px;line-height:1.2;box-shadow:0 6px 18px -10px rgba(7,26,32,.55);display:flex;gap:8px;align-items:baseline;transition:opacity .5s var(--ease);}
.hx-tag b{font-family:'Fraunces',serif;font-weight:600;font-size:15.5px;}
.hx-tag i{font-style:normal;color:#46555A;font-size:12px;letter-spacing:.04em;}
.hx-tag.cash{background:#0E2A33;color:#F4F1EA;}
.hx-tag.cash i{color:#9fd3cd;}
.hx-cap{position:absolute;left:50%;top:-6%;transform:translateX(-50%);font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:#F4F1EA;text-shadow:0 1px 10px rgba(7,26,32,.35);white-space:nowrap;}
.hx-pond.fade .hx-tag,.hx-pond.fade .hx-cap{opacity:0;}

/* near plane */
.hx-reeds{position:absolute;z-index:4;left:-2%;right:-2%;top:calc(var(--stage) * .905);width:104%;height:calc(var(--stage) * .11);object-fit:cover;object-position:50% 100%;pointer-events:none;}

/* the card floats on the water, between the rings and the reeds in reading order */
.hx-low{position:relative;z-index:5;justify-self:end;width:100%;max-width:470px;}
.hx-card{width:min(470px,100%);background:rgba(10,33,40,.80);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);border:1px solid rgba(127,196,189,.22);border-radius:22px;padding:28px 28px 24px;color:#C7D6D4;box-shadow:0 30px 60px -30px rgba(7,26,32,.7);}
.hx-card-h{font-family:'Fraunces',serif;font-weight:600;font-size:22px;color:var(--mist);line-height:1.2;}
.hx-card-p{font-size:14.5px;line-height:1.55;margin-top:6px;color:#a9bfbd;}
.hx-f{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;margin-top:18px;align-items:end;}
.hx-f label{display:flex;flex-direction:column;gap:7px;font-size:13.5px;font-weight:500;color:#C7D6D4;line-height:1.3;}
.hx-f label.full{grid-column:1/-1;}
.hx-lt{display:flex;align-items:baseline;justify-content:space-between;gap:8px;white-space:nowrap;}
.hx-lt em{font-style:normal;font-weight:400;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:#7e9698;}
.hx-f select,.hx-f input{font:inherit;font-size:15.5px;font-weight:400;color:var(--marine);background:#fff;border:1px solid rgba(127,196,189,.4);border-radius:10px;padding:0 12px;width:100%;height:48px;}
.hx-money{position:relative;display:block;}
.hx-money::before{content:'S$';position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#7e9698;font-size:15px;pointer-events:none;}
.hx-money input{padding-left:36px;}
.hx-f input::placeholder{color:#9aa8ab;}
.hx-f select:focus,.hx-f input:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(31,163,156,.3);}
.hx-go{margin-top:18px;}
.hx-go .btn{border:0;cursor:pointer;font-family:inherit;width:100%;height:50px;justify-content:center;padding:0 20px;border-radius:12px;}
.hx-go .btn .arr{width:28px;height:28px;font-size:15px;}
.hx-priv{font-size:12.5px;color:#7e9698;line-height:1.4;margin-top:10px;text-align:center;}
.hx-err{font-size:13.5px;color:#E7B9A6;margin-top:10px;}
.hx-err:empty{display:none;}
.hx-out{margin-top:16px;padding-top:16px;border-top:1px solid rgba(127,196,189,.2);}
.hx-out[hidden]{display:none;}
.hx-range{font-family:'Fraunces',serif;font-weight:600;color:var(--mist);font-size:27px;line-height:1.15;}
.hx-sub{font-size:14px;line-height:1.55;color:#a9bfbd;margin-top:6px;}
.hx-sub strong{color:var(--mist);font-weight:600;}
.hx-sub a,.hx-more a{color:var(--aqua);text-decoration:underline;text-underline-offset:3px;}
.hx-more{font-size:13.5px;margin-top:8px;}
.hx-trust{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;align-items:start;margin-top:20px;padding-top:16px;border-top:1px solid rgba(127,196,189,.2);font-size:12.5px;line-height:1.35;color:#a9bfbd;}
.hx-trust div{display:flex;flex-direction:column;gap:2px;}
.hx-trust b{font-family:'Fraunces',serif;color:var(--mist);font-weight:600;font-size:20px;line-height:1.1;}
.hx-trust a{grid-column:1/-1;color:var(--aqua);font-size:13.5px;font-weight:500;text-decoration:underline;text-underline-offset:3px;}

/* report widget (shared with the calculator pages) */
.hx .rp{margin-top:16px;padding-top:16px;border-top:1px solid rgba(127,196,189,.2);}
.hx .rp-h{font-size:12px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--aqua);}
.hx .rp-p{margin-top:6px;font-size:13.5px;color:#a9bfbd;line-height:1.5;}
.hx .rp-btns{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:12px;}
.hx .rp-btns .btn{border:0;cursor:pointer;font-family:inherit;}
.hx .rp-wa{color:var(--aqua);font-size:14.5px;font-weight:500;text-decoration:underline;text-underline-offset:3px;}
.hx .rp-form[hidden]{display:none;}
.hx .rp-form{display:flex;flex-direction:column;gap:12px;margin-top:14px;}
.hx .rp-form label{display:flex;flex-direction:column;gap:6px;font-size:13.5px;color:#C7D6D4;}
.hx .rp-form label span{color:#7e9698;}
.hx .rp-form input[type=text],.hx .rp-form input[type=email],.hx .rp-form input[type=tel]{font:inherit;font-size:15px;color:var(--marine);background:#fff;border:1px solid rgba(127,196,189,.4);border-radius:10px;padding:10px 12px;}
.hx .rp-form input:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(31,163,156,.25);}
.hx .rp-form .rp-consent{flex-direction:row;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;}
.hx .rp-form .rp-consent input{margin-top:3px;accent-color:var(--teal);}
.hx .rp-form .rp-consent span{color:#a9bfbd;}
.hx .rp-form .rp-consent a{color:var(--aqua);text-decoration:underline;}
.hx .rp-form .btn{border:0;cursor:pointer;font-family:inherit;align-self:flex-start;}
.hx .rp-form .btn[disabled]{opacity:.6;cursor:default;}
.hx .rp-hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden;}
.hx .rp-status{font-size:13.5px;color:#E7B9A6;min-height:1em;}
.hx .rp-done{font-size:14.5px;color:var(--mist);}

/* nav sits on a light sky until the page scrolls */
body.hx-page .nav:not(.scrolled) .mn-top,body.hx-page .nav:not(.scrolled) .logo .wm{color:var(--marine);}
body.hx-page .nav:not(.scrolled) .mn-top:hover{background:rgba(14,42,51,.07);}
body.hx-page .nav:not(.scrolled) .mn-burger span{background:var(--marine);}

/* desktop: the card floats lower-left on the water, the pond lower-right */
@media (max-width:960px){
  .hx{min-height:0;}
  .hx-sky img{object-position:50% 50%;}
  .hx-water{display:none;}
  .hx-mist{top:47%;}
  .hx{display:flex;flex-direction:column;}
  .hx-top{display:contents;}
  .hx-copy{order:1;padding:108px 20px 0;}
  .hx-low{order:3;justify-self:auto;max-width:none;padding:28px 20px 48px;}
  .hx-lead{font-size:17px;}
  .hx-pond{order:2;position:relative;right:auto;bottom:auto;left:auto;top:auto;margin:34px auto 0;width:min(calc(100% - 24px),560px);}
  .hx-card{width:100%;}
  .hx-reeds{display:none;}
  .hx-tag{font-size:12px;padding:4px 9px;}
  .hx-tag b{font-size:13.5px;}
  .hx-tag i{font-size:11px;}
}
@media (max-width:520px){
  .hx-f{grid-template-columns:1fr;}
  .hx-tag i{display:none;}
}
@media (prefers-reduced-motion:reduce){
  .hx-sky,.hx-water,.hx-mist,.hx-pond,.hx-reeds{transform:none !important;will-change:auto;}
}
@media (max-width:960px){
  .hx{background:#12292e;}
  .hx-scene{height:min(1060px,260vw) !important;}
  .hx-sky{-webkit-mask-image:linear-gradient(#000 82%,transparent);mask-image:linear-gradient(#000 82%,transparent);}
  .hx-mist{top:43%;height:10%;}
}
@media (max-width:960px){
  .hx-cap{white-space:normal;width:92%;text-align:center;top:-14%;line-height:1.5;font-size:11px;letter-spacing:.14em;}
}
@media (max-width:520px){ .hx-tag.cash i{display:inline;} }
/* long sector names: wrap the caption inside the pond's width, growing upwards */
@media (min-width:961px){
  .hx-cap{white-space:normal;width:max-content;max-width:100%;text-align:center;line-height:1.5;transform:translate(-50%,calc(-100% + 1.5em));}
}

.hx-back{margin:14px 0 0;padding:10px 12px;border-radius:10px;background:rgba(31,163,156,.16);border:1px solid rgba(127,196,189,.3);font-size:13.5px;line-height:1.5;color:#C7D6D4;}
.hx-back strong{color:var(--mist);}
.hx-back button{background:none;border:0;padding:0;margin-left:4px;font:inherit;font-weight:500;color:var(--aqua);text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
