/* ElbWay motion: quiet content, fluid controls and a moving river edge. */
:root { --motion-ease: cubic-bezier(.22, .8, .25, 1); }

/* Reversible, locally rendered scroll entrances. Only opacity and transform move;
   no layout animation, scroll locking, blur, or perpetual JavaScript loop. */
.reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity .9s var(--motion-ease) var(--reveal-delay, 0ms),
              transform 1.15s var(--motion-ease) var(--reveal-delay, 0ms);
}
.reveal.pending {
  opacity: 0;
  transform: translate3d(var(--reveal-x, 0px), var(--reveal-y, 48px), 0) scale(var(--reveal-scale, .98));
  transition-duration: .5s, .75s;
  transition-delay: 0s;
}
.reveal:focus-within { opacity: 1; transform: none; transition: none; }
.reveal-anchor:focus-within .reveal { opacity: 1; transform: none; transition: none; }
main { overflow-x: clip; }
.service-image.reveal { --reveal-x: max(-420px, -36vw); --reveal-y: 0px; --reveal-scale: 1; }
.service-copy.reveal { --reveal-x: min(420px, 36vw); --reveal-y: 0px; --reveal-scale: 1; }
.team-main.reveal { --reveal-x: -44px; --reveal-y: 35px; --reveal-scale: .94; }
.team-small.reveal { --reveal-x: 36px; --reveal-y: 48px; --reveal-scale: .94; }
.team-copy .slogan-line { display: block; transform-origin: 0 55%; --reveal-y: 28px; --reveal-scale: 1.12; }
.team-copy h2 .slogan-line:not(.accent) { color: inherit; }
.team-copy > .eyebrow.reveal { --reveal-scale: 1.08; transform-origin: 0 50%; }
.gallery-image.reveal { --reveal-y: 58px; --reveal-scale: .97; }
.gallery-caption.reveal { --reveal-y: 26px; --reveal-scale: 1; }
@media (max-width: 650px) {
  .reveal { --reveal-y: 30px; }
  .service-image.reveal { --reveal-x: -28vw; --reveal-y: 0px; }
  .service-copy.reveal { --reveal-x: 28vw; --reveal-y: 0px; }
  .gallery-image.reveal { --reveal-y: 40px; }
}
html[data-motion='paused'] .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
}
.button, .round-link, .back-button, .service-tabs button, .service-options label > span { position: relative; isolation: isolate; }
.button, .round-link, .service-tabs button, .service-options label > span { overflow: hidden; }
.button { transition: background .35s, color .35s, box-shadow .4s, transform .4s var(--motion-ease); }
.button svg, .round-link svg, .text-link svg, .text-link > span, .tab-arrow { transition: transform .45s var(--motion-ease); }
.button:hover svg, .button:focus-visible svg { transform: translateX(4px); }
.button:active { transform: translateY(0) scale(.975); transition-duration: .12s; }
.round-link { transition: background .35s, color .35s, border-color .35s, transform .4s var(--motion-ease); }
.round-link:active { transform: scale(.92); }
.text-link { transition: color .3s; }
.text-link:hover > span { transform: translate(3px, -3px); }
.back-button { transition: color .3s, transform .35s var(--motion-ease); }
.back-button:hover { transform: translateX(-3px); }
.service-options label > span { transition: background .35s, border-color .35s, box-shadow .35s, transform .4s var(--motion-ease); }
.service-options label:active > span { transform: scale(.98); }
.service-options b { transition: color .35s, transform .45s var(--motion-ease); }
.service-options input:checked + span b { transform: translateY(-2px) rotate(-6deg); }
.click-wave { position: absolute; z-index: 3; display: block; width: 1px; height: 1px; border-radius: 50%; pointer-events: none; background: #79b9f333; transform: translate(-50%, -50%); }
.button .click-wave { background: #ffffff29; }
.service-tabs { position: relative; }
.service-tabs.motion-ready button[aria-selected='true'] { border-bottom-color: transparent; }
.service-tabs button:hover .tab-arrow { transform: translate(2px, -2px); }
.service-tab-indicator { position: absolute; z-index: 2; bottom: 0; left: 0; height: 2px; width: var(--tab-width, 0px); transform: translateX(var(--tab-left, 0px)); background: var(--blue); border-radius: 2px; pointer-events: none; transition: transform .5s var(--motion-ease), width .5s var(--motion-ease); }
.service-image .service-photo-outgoing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.is-resizing { overflow: clip; }
.faq-list summary { transition: color .3s; }
.faq-list summary:hover { color: var(--blue); }
.faq-list summary svg { transition: transform .45s var(--motion-ease); }
.faq-list details.is-closing summary svg { transform: rotate(0); }

/* The photographs remain intact; only the surrounding frame floats gently. */
.hero-photo { animation: photo-float 8s ease-in-out infinite alternate; animation-play-state: paused; }
.hero.in-view .hero-photo { animation-play-state: running; }
.hero .blue-dot { position: relative; }
.hero .blue-dot::after { content: ''; position: absolute; inset: -7px; border: 1px solid #69ace67a; border-radius: 50%; animation: dot-breathe 4.5s ease-in-out infinite; animation-play-state: paused; }
.hero.in-view .blue-dot::after { animation-play-state: running; }
.river-motion { opacity: .95; }
.river-shape { animation-duration: 11s; }
@keyframes photo-float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -7px, 0); } }
@keyframes dot-breathe { 0%, 100% { transform: scale(.7); opacity: .25; } 50% { transform: scale(1.15); opacity: .75; } }
@keyframes river-drift { from { transform: translate3d(-28px, -9px, 0); } to { transform: translate3d(26px, 20px, 0); } }
.team-section { background: linear-gradient(180deg, #fff, #eef6fc 16%, #eef6fc 80%, #fff); }

/* White opens into pale-blue ribbons, then into the dark, readable request area. */
.enquiry-section { position: relative; isolation: isolate; overflow: clip; background: #0b3c67; padding-top: 205px; padding-bottom: 175px; }
.enquiry-grid { position: relative; z-index: 2; }
.enquiry-tide { position: absolute; left: -10%; width: 120%; height: 180px; top: -1px; display: block; pointer-events: none; fill: none; stroke: none; }
.enquiry-tide-bottom { top: auto; bottom: -1px; height: 115px; }
.tide-ribbon { animation: tide-drift 14s ease-in-out infinite alternate; animation-play-state: paused; }
.tide-ribbon.second { animation-duration: 19s; animation-delay: -8s; }
.tide-ribbon.third { animation-duration: 17s; animation-delay: -5s; }
.enquiry-section.in-view .tide-ribbon { animation-play-state: running; }
.enquiry-current { position: absolute; z-index: 0; inset: 180px 0 70px; overflow: hidden; pointer-events: none; mask-image: linear-gradient(transparent, #000 90px, #000 calc(100% - 80px), transparent); }
.enquiry-current::before, .enquiry-current::after { content: ''; position: absolute; width: 72%; height: 90%; border-radius: 50%; background: radial-gradient(ellipse, #2996d34d 0, #2280bd17 42%, transparent 70%); animation: current-drift 18s ease-in-out infinite alternate; animation-play-state: paused; }
.enquiry-current::before { left: -25%; top: 5%; }
.enquiry-current::after { right: -30%; top: -30%; opacity: .65; animation-delay: -9s; }
.enquiry-section.in-view .enquiry-current::before, .enquiry-section.in-view .enquiry-current::after { animation-play-state: running; }
@keyframes tide-drift { from { transform: translate3d(-32px, 0, 0); } to { transform: translate3d(32px, 0, 0); } }
@keyframes current-drift { from { transform: translate3d(-20px, 0, 0) scale(.95); } to { transform: translate3d(42px, 25px, 0) scale(1.06); } }
.page-hidden .hero-photo, .page-hidden .blue-dot::after, .page-hidden .tide-ribbon, .page-hidden .enquiry-current::before, .page-hidden .enquiry-current::after { animation-play-state: paused !important; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #1673df26; }
  .button:active { transform: translateY(0) scale(.975); }
  .round-link:hover { transform: translateY(-2px); }
  .round-link:active { transform: scale(.92); }
}
@media (max-width: 900px) {
  .enquiry-section { padding-top: 165px; padding-bottom: 140px; }
  .enquiry-tide { height: 145px; }
  .enquiry-tide-bottom { height: 100px; }
  .enquiry-current { inset-block: 145px 60px; }
}
@media (max-width: 650px) {
  .enquiry-section { padding-top: 130px; padding-bottom: 110px; }
  .enquiry-tide { height: 105px; }
  .enquiry-tide-bottom { height: 75px; }
  .enquiry-current { inset-block: 105px 50px; }
  .enquiry-current::before, .enquiry-current::after { width: 120%; height: 50%; }
  .hero-photo { animation-name: photo-float-mobile; }
  @keyframes photo-float-mobile { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -4px, 0); } }
}

/* Flowing water: transform fallback, with local SVG shape morphing when supported.
   The existing visibility observer and motion preference pause every layer. */
.river-shape {animation-name:river-sway;animation-duration:9s;transform-box:view-box;transform-origin:50% 100%;}
.river-shape.second {animation-duration:12s;animation-delay:-5s;}
@keyframes river-sway {
  from {transform:translate3d(-42px,8px,0) scaleY(.94);}
  to {transform:translate3d(42px,-12px,0) scaleY(1.07);}
}
.tide-ribbon {animation-name:tide-sway;animation-duration:8s;transform-box:view-box;transform-origin:50% 100%;}
.tide-ribbon.second {animation-duration:11s;animation-delay:-4s;}
.tide-ribbon.third {animation-duration:13s;animation-delay:-8s;}
@keyframes tide-sway {
  from {transform:translate3d(-52px,0,0) scaleY(.94);}
  to {transform:translate3d(52px,0,0) scaleY(1.08);}
}
@supports (d:path("M0 0L1 1")) {
  .river-band {animation:river-swell 8s ease-in-out infinite alternate;animation-play-state:paused;}
  .river-band.second {animation-name:river-swell-second;animation-duration:11s;animation-delay:-4s;}
  .hero.in-view .river-band {animation-play-state:running;}
  .enquiry-tide:not(.enquiry-tide-bottom) .tide-ribbon {animation-name:tide-swell;}
  .enquiry-tide:not(.enquiry-tide-bottom) .tide-ribbon.second {animation-name:tide-swell-second;}
  .enquiry-tide:not(.enquiry-tide-bottom) .tide-ribbon.third {animation-name:tide-swell-third;}
  .enquiry-tide-bottom .tide-ribbon {animation-name:tide-swell-bottom;}
  .enquiry-tide-bottom .tide-ribbon.second {animation-name:tide-swell-bottom-second;}
  @keyframes river-swell {
    from {d:path("M-260 480C280 50 600 660 1700 140V410C600 800 260 170-260 560Z");}
    to {d:path("M-260 510C310 640 760 30 1700 320V480C760 180 310 760-260 590Z");}
  }
  @keyframes river-swell-second {
    from {d:path("M-260 540C480 160 830 640 1700 220V360C800 730 430 260-260 600Z");}
    to {d:path("M-260 460C450 620 960 100 1700 380V490C960 230 450 740-260 560Z");}
  }
  @keyframes tide-swell {
    from {d:path("M-100 42C260 130 440 0 760 68S1180 132 1540 38V230H-100Z");}
    to {d:path("M-100 80C260 0 440 145 760 54S1180 0 1540 90V230H-100Z");}
  }
  @keyframes tide-swell-second {
    from {d:path("M-100 80C250 18 590 150 900 84S1260 52 1540 102V230H-100Z");}
    to {d:path("M-100 50C250 156 590 14 900 108S1260 150 1540 50V230H-100Z");}
  }
  @keyframes tide-swell-third {
    from {d:path("M-100 110C290 190 560 56 920 112S1290 160 1540 95V230H-100Z");}
    to {d:path("M-100 138C290 64 560 194 920 96S1290 66 1540 145V230H-100Z");}
  }
  @keyframes tide-swell-bottom {
    from {d:path("M-100 72C300 140 540 22 880 78S1280 128 1540 62V150H-100Z");}
    to {d:path("M-100 100C300 20 540 138 880 68S1280 28 1540 108V150H-100Z");}
  }
  @keyframes tide-swell-bottom-second {
    from {d:path("M-100 45C290 110 510 10 840 56S1250 110 1540 28V150H-100Z");}
    to {d:path("M-100 70C290 4 510 118 840 40S1250 10 1540 78V150H-100Z");}
  }
}
.page-hidden .river-band {animation-play-state:paused!important;}

/* The city belongs to the page, with feathered edges instead of a photo card. */
.hero .hero-photo {
  border:0;border-radius:0;background:transparent;box-shadow:none;animation:none;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 87%,transparent),linear-gradient(0deg,transparent,#000 16%,#000 83%,transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 12%,#000 87%,transparent),linear-gradient(0deg,transparent,#000 16%,#000 83%,transparent);
  mask-composite:intersect;
}
.hero .hero-photo img {border-radius:0;}
.hero .photo-note {padding-top:4px;padding-inline:12px;}

/* A recognisable call action, with a large tap target and keyboard focus. */
.enquiry-phone {
  position:relative;isolation:isolate;overflow:hidden;
  display:inline-flex;gap:16px;width:max-content;max-width:100%;
  padding:16px 20px 16px 16px;border:1px solid #a5d7ff99;border-radius:16px;
  background:linear-gradient(120deg,#ffffff1f,#ffffff0b);
  box-shadow:0 8px 24px #052a502e;color:#fff;text-decoration:none;
  transition:background .3s,border-color .3s,box-shadow .3s,transform .3s var(--motion-ease);
}
/* Soft, separate reflections: every edge fades to transparent and each reset
   happens outside the clipped control. No repeated gradient tile or join. */
:is(.enquiry-phone,.hero-contact)::before,
:is(.enquiry-phone,.hero-contact)::after {
  content:"";position:absolute;top:-50%;left:-100%;width:100%;height:200%;
  z-index:0;pointer-events:none;border-radius:50%;
  background:radial-gradient(ellipse 50% 50% at center,#ffffffed 0%,#ffffffa3 18%,#ffffff47 38%,#ffffff14 55%,#ffffff00 78%);
  opacity:.5;transform:translate3d(0,0,0);
  animation:contact-gloss 7.2s linear infinite;
  transition:opacity .4s ease;
}
:is(.enquiry-phone,.hero-contact)::after {animation-delay:-3.6s;}
:is(.enquiry-phone,.hero-contact) > * {position:relative;z-index:1;}
:is(.enquiry-phone,.hero-contact):is(:hover,:focus-visible)::before,
:is(.enquiry-phone,.hero-contact):is(:hover,:focus-visible)::after {opacity:.9;}
/* A broad, full-height light pass on the two glass controls. Transparent
   margins are wider than the diagonal's offset, so no rectangular edge shows. */
.hero-contact::before,
.hero-contact::after {
  border-radius:0;
  background:linear-gradient(108deg,#ffffff00 18%,#ffffff06 24%,#ffffff1a 31%,#ffffff45 38%,#ffffff94 45%,#ffffffeb 50%,#ffffff94 55%,#ffffff45 62%,#ffffff1a 69%,#ffffff06 76%,#ffffff00 82%);
  opacity:.86;
  animation-duration:6.4s;
}
.hero-contact::after {animation-delay:-3.2s;}
.hero-contact:is(:hover,:focus-visible)::before,
.hero-contact:is(:hover,:focus-visible)::after {opacity:1;}
.hero-whatsapp::before {animation-delay:-1.6s;}
.hero-whatsapp::after {animation-delay:-4.8s;}
@keyframes contact-gloss {
  from {transform:translate3d(0,0,0);}
  to {transform:translate3d(200%,0,0);}
}
/* A second copy of the icon catches a narrow, independent highlight. */
.hero-contact .contact-icon-glint {
  color:#fff;opacity:.9;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 35%,#000 50%,transparent 65%);
  mask-image:linear-gradient(90deg,transparent 35%,#000 50%,transparent 65%);
  -webkit-mask-size:300% 100%;mask-size:300% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:100% 50%;mask-position:100% 50%;
  animation:contact-icon-gloss 5.6s linear infinite;
  animation-delay:-1.4s;
}
.hero-whatsapp .contact-icon-glint {animation-duration:6.4s;animation-delay:-4.1s;}
@keyframes contact-icon-gloss {
  from {-webkit-mask-position:100% 50%;mask-position:100% 50%;}
  to {-webkit-mask-position:0% 50%;mask-position:0% 50%;}
}
.page-hidden :is(.enquiry-phone,.hero-contact)::before,
.page-hidden :is(.enquiry-phone,.hero-contact)::after,
.page-hidden .contact-icon-glint {animation-play-state:paused;}
html[data-motion='paused'] :is(.enquiry-phone,.hero-contact)::before,
html[data-motion='paused'] :is(.enquiry-phone,.hero-contact)::after,
html[data-motion='paused'] .contact-icon-glint {display:none;}
@media(prefers-reduced-motion:reduce) {
  :is(.enquiry-phone,.hero-contact)::before,
  :is(.enquiry-phone,.hero-contact)::after,
  .contact-icon-glint {display:none;animation:none;}
}
.enquiry-phone .call-icon {display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:#c0e6ff;color:#12496c;flex-shrink:0;}
.enquiry-phone .call-icon svg {width:24px;height:24px;color:inherit;transition:transform .35s var(--motion-ease);}
.enquiry-phone small {font-size:12px;color:#d0e9fc;letter-spacing:.01em;margin-bottom:5px;}
.enquiry-phone strong {display:block;font-size:clamp(18px,2vw,25px);letter-spacing:-.3px;font-weight:650;}
.enquiry-phone .call-arrow {width:20px;height:20px;margin-left:12px;color:#c0e6ff;transition:transform .3s;}
.enquiry-phone:hover {background:#ffffff25;border-color:#c0e6ff;transform:translateY(-2px);box-shadow:0 12px 28px #052a5040;}
.enquiry-phone:hover .call-icon svg {transform:rotate(-10deg);}
.enquiry-phone:hover .call-arrow {transform:translateX(3px);}
.enquiry-phone:focus-visible {outline:3px solid #d0eeff;outline-offset:5px;}
.enquiry-phone:active {transform:translateY(0);}
.service-options b {display:flex;align-items:center;min-height:28px;}
.service-options b svg {display:block;width:27px;height:27px;stroke-width:1.6;}
@media(max-width:650px) {
  .enquiry-phone {gap:12px;padding:13px 15px;}
  .enquiry-phone .call-icon {width:42px;height:42px;}
  .enquiry-phone .call-arrow {margin-left:2px;width:18px;}
  .hero .hero-photo {-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent),linear-gradient(0deg,transparent,#000 14%,#000 85%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent),linear-gradient(0deg,transparent,#000 14%,#000 85%,transparent);}
}
