/* Homepage only: shared public navigation, campaigns and video keep their own controllers. */
.home-experience { --home-muted: var(--divers-muted, #536670); --home-line: var(--appearance-line, #cdd5d7); }
.home-experience .home-hero { display: block; }
.home-hero .hero-photo { inset: 0; }
.home-hero .hero-photo img { object-position: 50% 44%; }
.home-hero .hero-photo::after { display: block; background: linear-gradient(90deg, #061923f5 0%, #061923d9 37%, #0619233d 76%), linear-gradient(0deg, #071d2b80, transparent 65%); }
.home-hero .ocean-light { inset: 0; }
.home-hero .hero-inner { min-height: clamp(590px, 76svh, 820px); display: grid; grid-template-columns: 1.15fr 1fr; gap: 4%; padding-block: 48px 70px; }
.home-hero .hero-copy { width: auto; padding: 0; position: relative; z-index: 2; }
.home-hero .hero-copy h1 { font-size: clamp(76px, 7.5vw, 124px); line-height: 1.04; }
.home-hero .hero-copy > p { max-width: 470px; }
.home-hero .hero-actions { gap: 20px 26px; }
.home-hero .home-voucher { display: block; max-width: 490px; margin-top: 28px; padding: 16px 20px; border: 1px solid #b9e3ec55; border-left: 3px solid #a1e2ef; border-radius: 4px; background: #071d2b80; color: #fff; text-decoration: none; }
.home-voucher strong { display: block; font: 700 16px/1.5 Arial, sans-serif; }
.home-voucher > span { display: block; margin-top: 5px; font: 13px/1.6 Arial, sans-serif; color: #c4e8f0; }
.home-voucher > span > span { display: inline-block; margin-left: 8px; }
.home-hero .home-voucher:focus-visible { outline: 3px solid #a1e2ef; outline-offset: 4px; }
.home-hero .home-voucher:active { background: #164353; }
@media (hover: hover) and (pointer: fine) {
  .home-hero .home-voucher:hover { background: #164353; border-color: #a1e2ef; color: #fff; }
}
.home-emblem-stage { min-width: 0; width: 100%; max-width: 520px; justify-self: center; perspective: 1100px; }
.home-emblem { position: relative; display: block; width: 100%; aspect-ratio: 1; transform-style: preserve-3d; transform: rotateY(-13deg) rotateX(6deg) rotateZ(-5deg); outline-offset: 14px; border-radius: 50%; }
.home-emblem > img { position: relative; width: 100%; height: 100%; object-fit: contain; transform: translateZ(9px); filter: drop-shadow(12px 25px 18px #0008); }
.home-emblem-depth { position: absolute; inset: 0; background: url("https://divers.cz/media/assets/ada717fd03b66fe58d3921f8480a6c4c9a026c6ce895dfb6e716fce2f828d2b5.webp.asset") center / contain no-repeat; transform: translate3d(3px, 4px, -8px); filter: brightness(.38); }
.home-emblem-shine { position: absolute; inset: 0; pointer-events: none; transform: translateZ(10px); mask: url("https://divers.cz/media/assets/ada717fd03b66fe58d3921f8480a6c4c9a026c6ce895dfb6e716fce2f828d2b5.webp.asset") center / contain no-repeat; mask-mode: alpha; background: linear-gradient(115deg, transparent 26%, #ffffff45 43%, transparent 59%); background-size: 230% 100%; background-position: var(--emblem-shine, 55%) center; opacity: .6; }
.home-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 24px; border-bottom: 1px solid var(--home-line); }
.home-shortcuts a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 28px; border-right: 1px solid var(--home-line); font: 30px/1.1 DiversDisplay, sans-serif; }
.home-shortcuts a:first-child { padding-left: 0; }
.home-shortcuts a:last-child { border: 0; padding-right: 0; }
.home-school, .home-services { padding-block: 90px; }
.home-experience .glass-campaigns + .home-school { padding-top: 40px; }
.home-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.home-heading h2 { font-size: clamp(46px, 4.8vw, 76px); max-width: 950px; }
.home-heading > p { flex-shrink: 0; color: var(--home-muted); font-size: 15px; }
.home-heading > a { flex-shrink: 0; }
.home-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; align-items: start; }
.home-path-visual { position: sticky; top: 110px; height: min(620px, 73svh); overflow: hidden; border-radius: 0 50px 0 0; background: #103746; }
.home-path-frame { position: absolute; inset: 0; opacity: 0; }
.home-path-frame.is-current { opacity: 1; z-index: 1; }
.home-path-frame img { width: 100%; height: 100%; object-fit: cover; }
.home-path-frame:first-child img { object-position: 58% center; }
.home-path-frame > span { position: absolute; bottom: 22px; left: 24px; color: white; background: #071d2bcc; padding: 7px 12px; font-size: 11px; letter-spacing: .18em; }
.home-path { position: relative; display: grid; grid-template-columns: 38px 1fr; align-content: center; gap: 20px; min-height: 360px; padding-block: 42px; border-bottom: 1px solid var(--home-line); scroll-margin-top: 100px; }
.home-path:first-child { padding-top: 12px; }
.home-path:last-child { border-bottom: 0; }
.home-path-number { font: 30px/1.2 DiversDisplay, sans-serif; color: var(--home-muted); }
.home-path h3 { font-size: clamp(34px, 3.1vw, 48px); line-height: 1.1; }
.home-path p { font-size: 16px; line-height: 1.75; color: var(--home-muted); margin-top: 20px; max-width: 450px; }
.home-path-links { display: flex; gap: 10px 26px; flex-wrap: wrap; margin-top: 20px; }
.home-experience .home-path-links .text-link { font-size: 13px; }
.home-experience .text-link .divers-owned-marker { position: static; flex: 0 0 18px; }
.home-path-mobile { display: none; }
.home-school-bottom { border-top: 1px solid var(--home-line); margin-top: 32px; padding-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-school-bottom p { color: var(--home-muted); font-size: 14px; }
.home-places { padding-block: 90px; background: #071d2b; color: #fff; overflow: clip; }
.home-places .home-heading > p { color: #b9d1dc; }
.home-place-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.home-place { display: block; min-width: 0; }
.home-place-borek { margin-top: 90px; }
.home-place-image { height: clamp(280px, 32vw, 490px); overflow: hidden; }
.home-place-image img { height: 100%; width: 100%; object-fit: cover; }
.home-place-pit .home-place-image { border-radius: 0 48px 0 0; }
.home-place-borek .home-place-image { border-radius: 48px 0 0; }
.home-place-copy { padding-top: 24px; max-width: 490px; }
.home-place-copy h3 { font-size: clamp(38px, 4vw, 60px); margin-top: 6px; }
.home-place-copy p { font-size: 15px; color: #c2d4dd; margin-top: 18px; }
.home-place-copy > p:first-child { margin: 0; font-size: 12px; }
.home-place-copy .text-link { margin-top: 20px; color: #a1e2ef; }
.home-experience .home-store { align-items: center; padding: 70px 5vw 40px; gap: 5%; }
.home-store .store-copy { padding: 25px 0; }
.home-store .store-image { height: auto; aspect-ratio: 16/9; width: 100%; border-radius: 0 42px 0 0; }
.home-store .store-image video { object-fit: contain; }
.home-experience .gear-discovery { padding-bottom: 70px; }
/* The shared home icon rule also hides SVG photo cutouts; restore these photographs only. */
.home-experience .gear-discovery .gear-cutout { display: block; }
.home-services { padding-top: 10px; }
/* Three windows into the existing rental, workshop and underwater-work pages. */
.home-service-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;align-items:stretch}
.home-experience .home-service-list>a{position:relative;display:flex;flex-direction:column;min-width:0;padding:0 0 30px;overflow:hidden;border:1px solid #bad1d433;border-radius:22px;background:#102f3b;color:white;text-decoration:none}
.home-experience .home-service-list>a[data-home-service=service]{background:#372d2a}
.home-experience .home-service-list>a[data-home-service=work]{background:#172a44}
.home-service-visual{position:relative;height:290px;overflow:hidden;background:#e5efed}
.home-service-visual img{width:100%;height:100%;object-fit:cover}
[data-home-service=rental] .home-service-visual img{object-position:center top}
[data-home-service=work] .home-service-visual{background:#e1e7ed}
[data-home-service=work] .home-service-visual img{object-position:center 42%}
.home-service-caption{position:absolute;left:16px;bottom:16px;padding:7px 10px;border-radius:4px;background:#071d2be6;color:#e0f4f5;font-size:10px;font-weight:700;letter-spacing:.08em}
.home-service-number{margin:26px 28px 12px;font-size:12px;letter-spacing:.15em;color:#bcdde4}
.home-service-list h3{margin:0 28px;font-size:clamp(34px,3.2vw,46px);line-height:1.08}
.home-service-list p{margin:18px 28px 26px;color:#d3e0e4;font-size:14px;line-height:1.75}
.home-service-action{align-self:flex-start;margin:auto 28px 0;padding:10px 0 3px;border-bottom:1px solid #b8e8ee90;font-size:13px;font-weight:700;color:#d0f4f5}
.home-experience .home-service-list>a:focus-visible{outline:3px solid var(--home-focus);outline-offset:5px}
.home-experience .home-service-list>a:is(:hover,:focus-visible) .home-service-action{border-color:white;color:white}
@media(prefers-reduced-motion:no-preference){
 .home-motion-active .home-service-visual img{transition:transform 700ms cubic-bezier(.2,.7,.2,1)}
 .home-experience.home-motion-active .home-service-list>a[data-home-reveal]{transition:opacity 700ms ease,transform 700ms cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--service-index)*100ms)}
 .home-motion-active .home-service-list>a.home-service-pending{opacity:0;transform:translateY(45px)}
 .home-motion-active .home-service-list>a.home-service-pending:focus-within{opacity:1;transform:none;transition-delay:0ms}
}
@media(hover:hover) and (pointer:fine){.home-motion-active .home-service-list>a:hover .home-service-visual img{transform:scale(1.045)}}
.home-trips { background: #071d2b; color: white; padding-block: 100px; overflow: clip; }
.home-trips-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 6%; }
.home-trips h2 { font-size: clamp(60px, 6vw, 94px); }
.home-trips h2 em { color: #a1e2ef; }
.home-trips .lead { color: #c2d4dd; max-width: 400px; font-size: 17px; }
.home-travel-photos { position: relative; min-width: 0; height: 560px; }
.home-travel-main { position: absolute; top: 22px; left: 0; width: 94%; transform: rotate(-4deg); }
.home-travel-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.home-travel-detail { position: absolute; width: 36%; right: 0; bottom: 0; transform: rotate(7deg); box-shadow: 0 20px 38px #0005; border: 7px solid #f5f5f2; }
.home-travel-detail img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.home-people { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 7%; padding-block: 100px 70px; }
.home-people h2 { font-size: clamp(55px, 5.5vw, 84px); }
.home-team-photo { overflow: hidden; border-radius: 0 48px 0 0; }
.home-team-photo img { width: 100%; height: auto; }
.home-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 24px 70px; gap: 30px; }
.home-help a { border-top: 1px solid var(--home-line); padding: 24px 30px 10px 0; position: relative; }
.home-help span { display: block; color: var(--home-muted); font-size: 12px; }
.home-help strong { font: 28px/1.15 DiversDisplay, sans-serif; display: block; margin-top: 8px; }
.home-help svg { position: absolute; right: 0; top: 46px; }
/* One interaction language: a subtle fill travels from the left, without underlines. */
.home-experience { --home-hover: #66879817; --home-focus: #1589a8; }
.home-experience :is(.home-hero, .home-places, .home-trips) { --home-hover: #c0e8f01f; --home-focus: #a1e2ef; }
html[data-theme=dark] .home-experience { --home-hover: #b4dbea17; --home-focus: #a1e2ef; }
.home-experience .text-link { border: 0; border-radius: 4px; padding: 10px 12px; gap: 8px; min-height: 44px; line-height: 1.45; color: inherit; text-decoration: none; box-shadow: none; background: linear-gradient(var(--home-hover), var(--home-hover)) left / 0% 100% no-repeat; transition: background-size 360ms ease; }
.home-experience .text-link:is(:hover, :focus-visible) { color: inherit; text-decoration: none; }
.home-path-links { margin-left: -12px; }
.home-experience :is(.home-shortcuts a, .home-help a) { color: inherit; text-decoration: none; background: linear-gradient(var(--home-hover), var(--home-hover)) left / 0% 100% no-repeat; transition: background-size 360ms ease; }
.home-experience .home-place :is(h3, .text-link), .home-experience .home-service-list h3 { text-decoration: none; }
.home-experience .button { color: white; background: linear-gradient(#0003, #0003) left / 0% 100% no-repeat var(--action-red, #d70012); border-color: transparent; box-shadow: 0 3px 9px #071d2b20; text-decoration: none; transform: none; transition: background-size 360ms ease; }
.home-experience :is(.text-link, .home-shortcuts a, .home-service-list > a, .home-help a, .button):focus-visible { background-size: 100% 100%; outline: 3px solid var(--home-focus); outline-offset: 4px; }
.home-experience .home-place:focus-visible .text-link { background-size: 100% 100%; }
.home-experience :is(.text-link, .home-shortcuts a, .home-service-list > a, .home-help a):active { background-size: 100% 100%; }
.home-experience :is(a, button):active { box-shadow: none; }
.home-experience .button:active { background-size: 100% 100%; box-shadow: inset 0 2px 5px #071d2b40; }
@media (hover: hover) and (pointer: fine) {
  .home-experience :is(.text-link, .home-shortcuts a, .home-service-list > a, .home-help a, .button):hover { background-size: 100% 100%; }
  .home-experience .home-place:hover .text-link { background-size: 100% 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-motion-active .home-emblem { transform: translateY(var(--emblem-y, 0px)) rotateX(var(--emblem-rx, 6deg)) rotateY(var(--emblem-ry, -13deg)) rotateZ(var(--emblem-rz, -5deg)); transition: transform 550ms cubic-bezier(.2,.7,.2,1); }
  .home-motion-active .home-emblem-stage.is-in-view { animation: home-emblem-float 7s ease-in-out infinite; }
  @keyframes home-emblem-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
  .home-motion-active .home-path-frame { transition: opacity 500ms ease; }
  .home-motion-active .home-path-frame img { transform: scale(1.035); transition: transform 800ms ease; }
  .home-motion-active .home-path-frame.is-current img { transform: scale(1); }
  .home-motion-active .home-path[data-current] .home-path-number { color: var(--red); }

  .home-experience.home-motion-active [data-home-reveal] { transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1), background-size 360ms ease; }
  .home-motion-active [data-home-reveal]:focus-within { opacity: 1; transform: none; }
  .home-motion-active .home-place-pit .home-place-image img { transform: scale(1.22) rotate(calc(-10deg + var(--place-progress, .5)*20deg)); }
  .home-motion-active .home-place-borek .home-place-image img { transform-origin: 60% 46%; transform: scale(calc(1 + var(--place-progress, 0)*.22)); }

  .home-motion-active .home-travel-main { transform: translateX(calc((1 - var(--home-progress, 1))*8%)) rotate(calc(-4deg + (1 - var(--home-progress, 1))*8deg)); }
  .home-motion-active .home-travel-detail { transform: translateY(calc((1 - var(--home-progress, 1))*65px)) rotate(calc(7deg - (1 - var(--home-progress, 1))*16deg)); }
}
@media (max-width: 1050px) {
  .home-hero .hero-inner { grid-template-columns: 1.15fr 1fr; min-height: 570px; gap: 20px; }
  .home-hero .hero-copy h1 { font-size: clamp(64px, 7.6vw, 78px); }
  .home-shortcuts a { font-size: 25px; padding-inline: 18px; }
  .home-paths { gap: 5%; }
  .home-path { gap: 12px; grid-template-columns: 28px 1fr; min-height: 390px; }
  .home-path h3 { font-size: 35px; }
  .home-travel-photos { height: 440px; }
}
@media (max-width: 760px) {
  .home-hero .hero-inner { display: flex; flex-direction: column; min-height: 0; gap: 20px; padding-block: 40px 74px; align-items: stretch; }
  .home-hero .hero-photo { position: absolute; height: auto; inset: 0; order: initial; }
  .home-hero .hero-photo::after { background: linear-gradient(180deg, #071d2be6 0%, #071d2b9c 50%, #071d2b30); }
  .home-hero .hero-copy h1 { font-size: clamp(58px, 12.5vw, 86px); }
  .home-hero .hero-copy > p { font-size: 16px; margin-block: 20px 24px; max-width: 500px; }
  .home-hero .hero-actions { gap: 14px 20px; }
  .home-hero .hero-actions .button { font-size: 13px; padding: 14px 18px; }
  .home-emblem-stage { width: 64%; max-width: 330px; align-self: center; margin-block: 4px 0; }
  .home-shortcuts { grid-template-columns: 1fr 1fr; padding-block: 12px; }
  .home-shortcuts a { font-size: 25px; padding: 16px 14px; }
  .home-shortcuts a:nth-child(odd) { padding-left: 0; }
  .home-shortcuts a:nth-child(even) { border-right: 0; padding-right: 0; }
  .home-school, .home-services { padding-block: 55px; }
  .home-heading { flex-direction: column; align-items: flex-start; margin-bottom: 30px; gap: 22px; }
  .home-heading h2 { font-size: clamp(39px, 8.8vw, 62px); }
  .home-heading > p { flex-shrink: 1; }
  .home-paths { display: block; }
  .home-path-visual { display: none; }
  .home-path { min-height: 0; padding-block: 30px; grid-template-columns: 26px 1fr; gap: 18px 12px; }
  .home-path-mobile { display: block; grid-column: 1 / -1; overflow: hidden; border-radius: 0 30px 0 0; }
  .home-path-mobile img { width: 100%; height: 290px; object-fit: cover; }
  .home-path:first-child { padding-top: 0; }
  .home-path h3 { font-size: 34px; }
  .home-path p { font-size: 15px; margin-top: 14px; }
  .home-path-links { gap: 8px 20px; margin-top: 14px; }
  .home-school-bottom { align-items: flex-start; flex-direction: column; margin-top: 0; }
  .home-places { padding-block: 55px; }
  .home-place-grid { grid-template-columns: 1fr; gap: 42px; }
  .home-place-borek { margin-top: 0; }
  .home-place-image { height: 330px; }
  .home-place-copy h3 { font-size: 45px; }
  .home-place-copy p { margin-top: 12px; }
  .home-experience .home-store { grid-template-columns: 1fr; gap: 24px; padding-block: 45px 20px; }
  .home-store .store-copy { padding: 0; }
  .home-store .store-copy h2 { font-size: 55px; }
  .home-experience .gear-discovery { padding-bottom: 15px; }
  .home-trips { padding-block: 55px; }
  .home-trips-grid { grid-template-columns: 1fr; gap: 34px; }
  .home-trips h2 { font-size: 64px; }
  .home-travel-photos { height: 370px; }
  .home-travel-main { left: 3%; width: 90%; }
  .home-travel-detail { right: 3%; width: 38%; border-width: 5px; }
  .home-people { grid-template-columns: 1fr; gap: 32px; padding-block: 55px 32px; }
  .home-people h2 { font-size: 58px; }
  .home-people .lead { font-size: 16px; }
  .home-help { grid-template-columns: 1fr; gap: 12px; padding-block: 0 45px; }
  .home-help a { padding-block: 20px; }
  .home-motion-active .home-place-borek { transform: none; }
}
@media (max-width: 380px) {
  .home-hero .hero-copy h1 { font-size: clamp(48px, 15.2vw, 58px); }
  .home-shortcuts a { font-size: 22px; gap: 10px; }
  .home-path h3 { font-size: 30px; }
  .home-path-mobile img { height: 240px; }
  .home-travel-photos { height: 315px; }
}
@media (prefers-reduced-motion: reduce) {
  html .home-experience.home-page *, html .home-experience.home-page *::before, html .home-experience.home-page *::after { animation: none; transition: none; }
}
html[data-motion-paused] .home-experience *, html[data-motion-paused] .home-experience *::before, html[data-motion-paused] .home-experience *::after { animation: none; transition: none; }
html[data-motion-paused] { scroll-behavior: auto; }

/* One hero motion controller. Keep the masked highlight and photo raster stable. */
.home-hero .ocean-light{display:block;position:absolute;pointer-events:none;background:radial-gradient(ellipse at 65% 0%,#80e9ff20,transparent 58%)}
.home-motion-active .home-emblem-stage.is-in-view{animation:none}
.home-emblem-shine{background-position:55% center}
.home-motion-active .home-emblem{transition:transform 180ms ease-out}
@media(prefers-reduced-motion:reduce){.home-motion-active .home-emblem{transition:none}}

.home-place-image { position: relative; }
.home-place-image .home-place-map { position: absolute; inset: 0; opacity: 0; object-fit: cover; }
.home-place-map-label { position: absolute; bottom: 16px; left: 16px; padding: 8px 12px; background: #071d2be6; color: white; font: 12px/1.5 Arial,sans-serif; }
@media (prefers-reduced-motion: no-preference) {
 .home-motion-active .home-place-borek .home-place-map { opacity: clamp(0, calc((var(--place-progress, 0) - .48)*4), 1); transform: scale(calc(1.12 - var(--place-progress, 0)*.12)); }
}

@media(max-width:1050px) and (min-width:761px){.home-service-list{gap:16px}.home-service-visual{height:230px}.home-service-list h3{font-size:34px;margin-inline:20px}.home-service-list p,.home-service-number,.home-service-action{margin-inline:20px}}
@media(max-width:760px){.home-service-list{grid-template-columns:1fr;gap:24px}.home-service-visual{height:280px}.home-service-list h3{font-size:40px}.home-experience.home-motion-active .home-service-list>a[data-home-reveal]{transition-delay:0ms}}
