/* KOD DUSHI — responsive refinements, 28 Oct 2026.
   Keeps approved imagery, font families and palette unchanged. */

/* Clear, responsive breathing room between masthead navigation and big KOD DUSHI. */
@media (min-width:761px) {
  body:not(.locked) .header.wrap,
  .header.wrap {
    position:relative;
    z-index:9;
    min-height:84px;
    height:clamp(84px,6.5vw,102px);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:clamp(14px,2vw,35px);
  }
  .header.wrap .brand {
    flex:0 0 auto;
    min-width:max-content;
    white-space:nowrap;
    font-size:clamp(17px,1.6vw,25px);
    gap:clamp(5px,1vw,12px);
  }
  .header.wrap .brand-mark {
    width:clamp(29px,2.8vw,42px);
    height:clamp(29px,2.8vw,42px);
  }
  .header.wrap nav {
    flex:0 1 auto;
    min-width:0;
    gap:clamp(12px,1.8vw,34px);
    font-size:clamp(12px,1vw,15px);
    white-space:nowrap;
    display:flex;
    align-items:center;
  }
  .header.wrap nav>a {flex:none}
  .header.wrap nav .pill {
    flex:none;
    white-space:nowrap;
    padding-inline:clamp(12px,1.4vw,22px);
  }
  /* JS derives inline top from the hero headline, but this responsive
     floor ensures the giant word never rises into the navigation row. */
  #home-page #main-content .watermark {
    top:clamp(68px,6.8vw,118px)!important;
    pointer-events:none;
    max-width:min(1450px,96vw);
  }
}
@media (min-width:761px) and (max-width:920px) {
  .header.wrap {padding-inline:clamp(19px,3vw,28px)}
  .header.wrap nav {gap:11px}
  .header.wrap nav .pill {font-size:12px;padding:10px 11px;min-height:42px}
  .header.wrap .brand {font-size:16px}
  #home-page #main-content .watermark {top:82px!important}
}
@media (min-width:1920px) {
  #home-page #main-content .watermark {
    top:clamp(118px,7vw,174px)!important;
    max-width:1600px;
  }
}
@media (max-width:760px) {
  /* Keep mobile logo clear; reduce very large headline collisions. */
  #home-page #main-content .watermark {
    top:clamp(52px,14vw,84px)!important;
    font-size:clamp(65px,17.9vw,136px);
  }

  /* Each of the four tiles must fit *inside* the circular glass sphere.
     Previous 145px sphere + 16px labels caused overlaps on narrow iPhones. */
  .cloud-journey .journey-visual {
    height:clamp(295px,79vw,329px);
    min-height:295px;
    top:8px;
    padding:12px 0 14px;
    margin-bottom:14px;
    overflow:visible;
  }
  .cloud-journey .journey-sphere {
    width:clamp(212px,62vw,238px);
    height:clamp(212px,62vw,238px);
    flex-shrink:0;
  }
  .cloud-journey .sphere-content.sphere-directions {
    inset:11%;
    width:auto;
    min-width:0;
    gap:9px;
    padding:0;
  }
  .cloud-journey .sphere-directions .sphere-kicker {
    display:block;
    text-align:center;
    font-size:clamp(12px,3.4vw,14px);
    line-height:1.2;
    font-weight:650;
    white-space:normal;
    overflow-wrap:normal;
  }
  .cloud-journey .sphere-directions .sphere-tiles {
    width:100%;
    max-width:none;
    min-width:0;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:clamp(5px,1.5vw,8px);
    align-content:center;
    justify-items:stretch;
  }
  .cloud-journey .sphere-directions .sphere-tiles > span {
    box-sizing:border-box;
    min-width:0;
    width:100%;
    min-height:53px;
    padding:7px 3px;
    border-radius:12px;
    font-size:clamp(11px,3.2vw,13px);
    line-height:1.17;
    font-weight:650;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    white-space:normal;
    overflow-wrap:normal;
    word-break:normal;
    hyphens:none;
  }
  .cloud-journey .sphere-directions .sphere-tiles svg {display:none}
  .cloud-journey .sphere-status {
    width:max-content;
    max-width:calc(100% - 26px);
    margin-top:12px;
    padding:7px 18px;
    line-height:1.2;
    border-radius:18px;
  }
  .cloud-journey .sphere-status span {font-size:13px}
  .cloud-journey .sphere-status strong {
    font-size:clamp(13px,3.8vw,16px);
    white-space:normal;
    text-wrap:balance;
  }
}
@media (max-width:360px) {
  .cloud-journey .journey-sphere {width:210px;height:210px}
  .cloud-journey .journey-visual {min-height:285px;height:292px}
  .cloud-journey .sphere-directions .sphere-tiles > span {
    font-size:11px;min-height:51px;
  }
}
/* On short phones the compact overrides must not shrink the sphere back to 145px. */
@media (max-width:760px) and (max-height:680px) {
  .cloud-journey .journey-visual {height:295px;min-height:295px}
  .cloud-journey .journey-sphere {
    width:clamp(205px,60vw,224px);
    height:clamp(205px,60vw,224px);
  }
  .cloud-journey .sphere-directions>.sphere-kicker {display:block}
}

/* Glass bubble sitting on the water: barely visible radiating reflections. */
#intro .kd-intro-water-ripples {
  position:absolute;
  z-index:5;
  pointer-events:none;
  left:var(--bubble-x,50%);
  top:calc(var(--bubble-y,48%) + var(--bubble-radius,34vh) - 8px);
  width:clamp(136px,32vw,470px);
  height:clamp(14px,2.7vw,32px);
  transform:translate(-50%,-50%) perspective(300px) rotateX(40deg);
  border-radius:50%;
  background:radial-gradient(ellipse,rgba(255,248,235,.16),transparent 70%);
  opacity:.66;
  filter:drop-shadow(0 2px 9px rgba(255,241,221,.16));
}
#intro .kd-intro-water-ripples::before,
#intro .kd-intro-water-ripples::after {
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(255,252,245,.65);
  border-radius:50%;
  box-shadow:0 0 12px rgba(255,244,224,.13);
  transform:scaleX(.68) scaleY(.54);
  opacity:0;
  animation:kd-intro-water-wave 10s ease-out infinite;
}
#intro .kd-intro-water-ripples::after {animation-delay:5s}
@keyframes kd-intro-water-wave {
  0%{transform:scaleX(.55) scaleY(.5);opacity:0}
  15%{opacity:.58}
  65%{opacity:.17}
  100%{transform:scaleX(1.6) scaleY(1.4);opacity:0}
}
@media(max-width:760px) {
  #intro .kd-intro-water-ripples {
    width:clamp(136px,65vw,280px);
    height:clamp(12px,4vw,24px);
    top:calc(var(--bubble-y,53%) + var(--bubble-radius,21vh) - 3px);
    opacity:.48;
  }
}
@media (prefers-reduced-motion:reduce) {
  #intro .kd-intro-water-ripples::before,
  #intro .kd-intro-water-ripples::after {
    animation:none!important;
    opacity:.18;
    transform:scaleX(1.1) scaleY(.7);
  }
}

/* Blend the embedded surname section into the opening blue of Four Steps. */
#home-page .ancestral-live,
#home-page .ancestral-live iframe {
  background:#ccdde6;
}

/* Mobile hero: place KOD DUSHI behind and below the print headline, not across its baseline. */
@media(max-width:760px){
 #home-page #main-content .watermark{top:clamp(136px,35vw,180px)!important;font-size:clamp(56px,16.5vw,110px)!important;line-height:1!important;opacity:.27!important;z-index:0!important}
 #home-page #main-content .hero-copy{position:relative;z-index:6!important;transform:none!important}
 #home-page #main-content .hero-copy h1{position:relative;z-index:7!important}
 #home-page #main-content .hero-copy h1 .hero-print{position:relative;z-index:8!important}
 #home-page #main-content .hero-copy h1 .script{position:relative;z-index:9!important}
}
