/* New sections of the Walton Pools home page. Everything is scoped to .nx so
   it cannot restyle the original header and hero (css/style.css) above it. */
.nx { background: var(--lime); color: var(--ink); font: 400 17px/1.55 var(--sans); }
.nx h2 { max-width: none; font-weight: 400; text-wrap: balance; }
.nx h3 { font-weight: 500; }
.nx { --stone: #d9cdb6;
  --stone-2: #cbbd9f;
  --lime: #f2eee6;
  --paper: #faf8f3;
  --ink: #0a1e2e;
  --ink-2: #44525d;
  --azure: #147aec;
  --deep: #062339;
  --deeper: #03131f;
  --aqua: #5fd0e6;
  --line: rgba(10, 30, 46, 0.14);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gut: clamp(14px, 3.2vw, 46px);
  --bar: clamp(68px, 9vh, 92px);
  --deck: clamp(172px, 25vh, 230px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1); }
.nx img { display: block; max-width: 100%; height: auto; }
.nx a { color: inherit; }
.nx h1, .nx h2, .nx h3 { margin: 0; font-weight: 400; }
.nx p { margin: 0; }
.nx .mono { font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(95, 208, 230, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 208, 230, 0); } }
.nx .btn { position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: color 0.4s var(--ease); }
.nx .btn svg, .nx .btn-label { position: relative; z-index: 1; }
.nx .btn-fill { position: absolute; z-index: 0; left: -40%; width: 180%; aspect-ratio: 1;
  top: 115%; border-radius: 43%;
  background: var(--azure);
  animation: swirl 7s linear infinite;
  transition: top 0.9s var(--ease); }
.nx .btn:hover .btn-fill, .nx .btn:focus-visible .btn-fill { top: -95%; }
@keyframes swirl { to { transform: rotate(360deg); } }
.nx .btn-big { min-height: 64px; padding: 0 34px; font-size: 17px; }
.nx main > section { position: relative; }
.nx h2 { font: 400 clamp(34px, 5vw, 76px)/1.02 var(--serif);
  letter-spacing: -0.02em; }
.nx h3 { font: 500 20px/1.25 var(--sans); }
.nx [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.nx [data-reveal].in { opacity: 1; transform: none; }
.nx .statement { padding: clamp(96px, 16vh, 180px) var(--gut) clamp(64px, 9vh, 110px); max-width: 1500px; margin: 0 auto; }
.nx .statement-kicker { color: var(--ink-2); margin-bottom: 30px; }
.nx .statement-text { font: 400 clamp(28px, 4.1vw, 64px)/1.13 var(--serif);
  letter-spacing: -0.018em;
  max-width: 26ch; }
.nx .statement-text .w { opacity: 0.14; transition: opacity 0.5s linear; }
.nx .statement-text .w.lit { opacity: 1; }
.nx .wl { padding: 0 var(--gut) clamp(90px, 14vh, 170px); max-width: 1500px; margin: 0 auto; }
.nx .wl-head { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: end; margin-bottom: 34px; }
.nx .wl-head .mono { grid-column: 1 / -1; color: var(--ink-2); }
.nx .wl-head h2 { max-width: 15ch; }
.nx .wl-help { color: var(--ink-2); font-size: 15px; }
.nx .wl-frame { position: relative; aspect-ratio: 16 / 9; max-height: 86vh; width: 100%; overflow: hidden; border-radius: 6px;
  background: #23302a; touch-action: none; cursor: ns-resize; user-select: none; }
.nx .wl-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nx .wl-after-wrap { position: absolute; inset: 0; clip-path: inset(0 0 50% 0); }
.nx .wl-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nx .wl-line path { fill: none; stroke: rgba(255, 255, 255, 0.95); stroke-width: 2; vector-effect: non-scaling-stroke; }
.nx .wl-handle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); font-size: 20px; cursor: grab;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); }
.nx .wl-handle:active { cursor: grabbing; }
.nx .wl-tag { position: absolute; left: 18px; padding: 7px 10px; border-radius: 4px; background: rgba(3, 19, 31, 0.6); color: #fff; }
.nx .wl-tag-after { top: 16px; }
.nx .wl-tag-before { bottom: 16px; }
.nx .services { padding: clamp(90px, 14vh, 170px) var(--gut); background: var(--paper); }
.nx .svc-head { max-width: 1500px; margin: 0 auto 50px; display: grid; gap: 18px; }
.nx .svc-head .mono { color: var(--ink-2); }
.nx .svc-head h2 { max-width: 19ch; }
.nx .svc-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1500px; border-top: 1px solid var(--line); }
.nx .svc-list li { display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr); align-items: baseline; gap: 20px;
  padding: clamp(20px, 3vh, 30px) 0; border-bottom: 1px solid var(--line);
  transition: color 0.4s; }
.nx .svc-n { color: var(--ink-2); }
.nx .svc-list h3 { font: 400 clamp(26px, 3.1vw, 46px)/1.05 var(--serif); letter-spacing: -0.01em; transition: transform 0.6s var(--ease), color 0.4s; }
.nx .svc-list p { color: var(--ink-2); max-width: 40ch; }
@media (hover: hover) and (pointer: fine) {
.nx .svc-list:hover li { color: rgba(10, 30, 46, 0.35); }
.nx .svc-list:hover li p, .nx .svc-list:hover li .svc-n { color: rgba(10, 30, 46, 0.3); }
.nx .svc-list li:hover, .nx .svc-list li:hover p { color: var(--ink); }
.nx .svc-list li:hover h3 { transform: translateX(14px); font-style: italic; color: var(--azure); }
}
.nx .svc-peek { position: fixed; left: 0; top: 0; z-index: 20; margin: 0;
  width: clamp(220px, 22vw, 340px); aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
  box-shadow: 0 30px 70px rgba(6, 35, 57, 0.28); }
.nx .svc-peek img { width: 100%; height: 100%; object-fit: cover; }
.nx .svc-peek.on { opacity: 1; }
@media (hover: none), (pointer: coarse) {
.nx .svc-peek { display: none; }
}
.nx .bleed { padding: 0; overflow: hidden; background: var(--deep); }
.nx .bleed-media { height: clamp(420px, 92vh, 980px); overflow: hidden; }
.nx .bleed-media img { width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.04); will-change: transform; }
.nx .bleed-caption { position: absolute; left: var(--gut); bottom: clamp(18px, 4vh, 40px);
  max-width: 34ch; color: #fff; font: italic 400 clamp(18px, 1.8vw, 26px)/1.25 var(--serif);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.nx .how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 110px);
  padding: clamp(90px, 14vh, 170px) var(--gut);
  max-width: 1500px; margin: 0 auto; }
.nx .how-sticky { position: relative; }
.nx .how-gauge { position: sticky; top: 16vh; }
.nx .section-svg { width: 100%; height: auto; overflow: visible; }
.nx .how-read { margin-top: 18px; color: var(--ink-2); }
.nx .how-head { margin-bottom: 40px; display: grid; gap: 18px; }
.nx .how-head .mono { color: var(--ink-2); }
.nx .how-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.nx .how-steps li { padding: 34px 0 34px 0; border-top: 1px solid var(--line);
  display: grid; gap: 10px; opacity: 0.38; transition: opacity 0.6s var(--ease); }
.nx .how-steps li.active, .nx .how-steps li.done { opacity: 1; }
.nx .how-steps li .mono { color: var(--azure); }
.nx .how-steps li h3 { font: 400 clamp(26px, 2.6vw, 38px)/1.1 var(--serif); }
.nx .how-steps li p { color: var(--ink-2); max-width: 46ch; }
.nx .how-steps li img { margin-top: 14px; border-radius: 6px; aspect-ratio: 3 / 2; object-fit: cover; }
.nx .gallery { padding: clamp(80px, 12vh, 150px) 0 clamp(90px, 14vh, 170px); background: var(--deep); color: #eaf3f7; }
.nx .gal-head { padding: 0 var(--gut); max-width: 1500px; margin: 0 auto 40px; display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; align-items: end; }
.nx .gal-head .mono:first-child { grid-column: 1 / -1; color: var(--aqua); }
.nx .gal-help { color: rgba(234, 243, 247, 0.6); }
.nx .gal-track { display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; overscroll-behavior-x: contain;
  padding: 0 var(--gut) 10px; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.nx .gal-track::-webkit-scrollbar { display: none; }
.nx .gal-track.drag { cursor: grabbing; scroll-snap-type: none; }
.nx .gal-track figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.nx .gal-track img { height: clamp(260px, 56vh, 560px); width: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px;
  -webkit-user-drag: none; user-select: none; transition: transform 0.8s var(--ease); }
.nx .gal-track figure.tall img { aspect-ratio: 3 / 4; }
.nx .gal-track figure:hover img { transform: scale(0.985); }
.nx .gal-track figcaption { margin-top: 12px; color: rgba(234, 243, 247, 0.72); }
.nx .talk { position: relative; overflow: hidden; background: var(--deeper); color: #fff;
  padding: clamp(110px, 18vh, 210px) var(--gut); }
.nx .talk::before { content: ""; position: absolute; inset: -10%;
  background: url("../assets/img/ai-underwater.webp") center / cover;
  opacity: 0.38; animation: drift 26s ease-in-out infinite alternate; }
.nx .talk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 19, 31, 0.9), rgba(3, 19, 31, 0.35) 55%, rgba(3, 19, 31, 0.85)); }
@keyframes drift { to { transform: scale(1.12) translate3d(-2%, 1.5%, 0); } }
.nx .talk-surface { display: none; }
.nx .talk-inner { position: relative; z-index: 1; max-width: 1500px; margin: 0 auto; display: grid; gap: 26px; }
.nx .talk-inner > .mono { color: var(--aqua); }
.nx .talk-title { font: 400 clamp(46px, 8.6vw, 140px)/0.96 var(--serif); letter-spacing: -0.03em; max-width: 12ch; }
.nx .talk-sub { max-width: 46ch; color: rgba(255, 255, 255, 0.82); font-size: 18px; }
.nx .talk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; margin-top: 12px; }
.nx .talk .btn { background: #fff; color: var(--ink); }
.nx .talk .btn:hover { color: #fff; }
.nx .talk-link { font-family: var(--mono); font-size: 14px; color: rgba(255, 255, 255, 0.85); text-underline-offset: 5px; }
.nx .foot { background: #020d16; color: rgba(255, 255, 255, 0.82); padding: 70px var(--gut) 34px; }
.nx .foot-grid { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 34px; align-items: start; }
.nx .foot-logo { height: 72px; width: auto; }
.nx .foot-label { color: var(--aqua); margin-bottom: 10px; }
.nx .foot a { text-decoration: none; }
.nx .foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nx .foot-small { max-width: 1500px; margin: 56px auto 0; color: rgba(255, 255, 255, 0.45); }
@media (max-width: 900px) {
.nx { --deck: clamp(250px, 38vh, 300px); --bar: 64px; }
.nx .wl-head { grid-template-columns: 1fr; }
.nx .wl-frame { aspect-ratio: 4 / 3; }
.nx .svc-list li { grid-template-columns: 44px minmax(0, 1fr); }
.nx .svc-list li p { grid-column: 2; }
.nx .how { grid-template-columns: 1fr; }
.nx .how-sticky { display: none; }
.nx .foot-grid { grid-template-columns: 1fr 1fr; }
.nx .foot-logo { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
.nx .btn { min-height: 50px; padding: 0 20px; }
.nx .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
.nx [data-reveal] { opacity: 1; transform: none; }
.nx .statement-text .w { opacity: 1; }
}
.nx .wl-note { margin-top: 14px; font-size: 13px; color: var(--ink-2); max-width: 62ch; }
.nx > section { position: relative; }
