/* The aircraft, lettering and controls share the available space on every phone. */
body.drone-home { --home-hero-min-height:560px; }
body.drone-home .wind-hero {
  isolation:isolate;
  height:100svh;
  min-height:var(--home-hero-min-height);
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  gap:20px;
  padding:calc(var(--site-header-height,83px) + 20px) max(var(--pad),env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(var(--pad),env(safe-area-inset-left));
}
body.drone-home .wind-video-background::after {
  content:"";
  display:block;
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(23,43,70,.18),rgba(23,43,70,.06) 35%,rgba(23,43,70,.12) 65%,rgba(23,43,70,.4));
}
.home-composition {
  position:relative;
  width:min(900px,100%);
  height:100%;
  max-height:660px;
  min-height:0;
  margin:auto;
  pointer-events:none;
  color:#fff;
}
.home-ink {
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:clamp(12px,2.5svh,24px);
  width:100%; height:100%;
  text-align:center;
}
.home-copy { position:relative; z-index:1; min-width:0; }
.home-line {
  margin:0;
  margin-inline:auto;
  width:fit-content;
  max-width:100%;
  font:300 clamp(21px,2.2vw,31px)/1.25 Outfit,sans-serif;
  letter-spacing:.035em;
  text-shadow:0 1px 5px rgba(23,43,70,.65);
}
.home-line + .home-line { margin-top:5px; }
.home-word { display:inline-block; white-space:nowrap; }
.home-glyph { display:inline-block; white-space:pre; }
.home-js .home-glyph { opacity:0; transform:translateX(-5px); }
.home-js .home-line { clip-path:inset(0 100% 0 0); }
.home-js .home-copy { will-change:transform; }
.home-settled .home-copy { will-change:auto; }
.home-aircraft {
  display:block;
  align-self:center;
  width:100%; height:100%; min-height:0;
  margin:0; border:0;
  opacity:0;
  transition:opacity .6s ease;
}
.home-drone-started .home-aircraft { opacity:1; }
.home-signature {
  display:grid;
  grid-template-columns:1fr 40px 1fr;
  align-items:center;
  gap:24px;
  width:min(350px,100%);
  margin:20px auto 0;
  font:400 11px/1.55 Outfit,sans-serif;
  letter-spacing:.06em;
  text-shadow:0 1px 4px rgba(23,43,70,.6);
  opacity:0;
  transition:opacity .8s ease;
}
.home-signature p { margin:0; }
.home-signature img { display:block; width:40px; height:auto; }
.home-split .home-signature { opacity:1; }
.home-restarting .home-signature,.home-restarting .home-aircraft { opacity:0; transition:none; }
.home-wind-field { position:absolute; inset:0; z-index:3; width:100%; height:100%; pointer-events:none; }
.home-controls { display:grid; grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr); gap:4px 16px; width:100%; align-items:center; z-index:4; }
body.drone-home .home-controls .hero-coordinate { position:static; grid-column:1; grid-row:1; max-width:none; font-size:.65rem; line-height:1.5; letter-spacing:.08em; }
.home-replay {
  grid-column:1; grid-row:2; justify-self:start;
  min-height:44px;
  border:0; padding:8px 0;
  color:#fff; background:transparent;
  font:400 .75rem Outfit,sans-serif;
  cursor:pointer; text-shadow:0 1px 4px #172b46;
  opacity:0; visibility:hidden; transition:opacity .4s ease;
}
.wind-complete .home-replay { opacity:1; visibility:visible; }
.home-replay:hover { text-decoration:underline; text-underline-offset:4px; }
.home-replay:focus-visible { outline:2px solid #fff; outline-offset:4px; border-radius:2px; }
.home-replay:disabled { opacity:.4; cursor:wait; }
.home-video-credit { position:relative; grid-column:3; grid-row:2; justify-self:end; width:44px; height:44px; opacity:0; visibility:hidden; }
.wind-complete .home-video-credit { opacity:1; visibility:visible; }
.home-video-credit summary { display:grid; place-items:center; width:44px; height:44px; padding:0; color:#fff; cursor:pointer; list-style:none; border-radius:50%; }
.home-video-credit summary::-webkit-details-marker { display:none; }
.home-video-credit summary svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; }
.home-video-credit summary:hover,.home-video-credit[open] summary { background:rgba(255,255,255,.12); }
.home-video-credit summary:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.home-credit-panel { position:absolute; right:0; bottom:calc(100% + 10px); width:min(280px,calc(100vw - 40px)); padding:12px 16px 6px; border:1px solid rgba(23,43,70,.18); border-radius:12px; color:#172b46; background:#fff; box-shadow:0 6px 24px rgba(23,43,70,.18); text-align:left; }
.home-credit-panel p { margin:0; font:400 .6875rem/1.4 Outfit,sans-serif; }
.home-credit-panel a { display:flex; align-items:center; min-height:44px; color:inherit; font:400 .8125rem/1.5 Outfit,sans-serif; text-decoration:underline; text-underline-offset:3px; }
.home-credit-panel a:focus-visible { outline:2px solid #172b46; outline-offset:2px; }
body.drone-home .home-controls .wind-scroll-chevron { position:static; grid-column:2; grid-row:2; transform:none; width:48px; min-height:48px; margin:0; }
body.drone-home .home-controls .video-play-toggle { position:static; grid-column:1/-1; grid-row:3; justify-self:center; transform:none; min-height:44px; font-size:.8125rem; white-space:normal; }
@media(min-width:1600px) { .home-composition { width:min(1000px,100%); } }
@media(max-width:700px) {
  body.drone-home { --home-hero-min-height:480px; }
  body.drone-home .wind-hero { padding-top:calc(var(--site-header-height,67px) + 20px); gap:16px; }
  .home-composition { max-height:600px; }
  .home-line { font-size:clamp(18px,5.25vw,25px); letter-spacing:.015em; }
  .home-signature { width:min(300px,100%); gap:16px; margin-top:16px; font-size:11px; }
  .home-controls { grid-template-columns:minmax(0,1fr) 48px 44px; column-gap:12px; }
  body.drone-home .home-controls .hero-coordinate { grid-column:1/-1; font-size:.625rem; }
  .home-replay { grid-row:2; }
  body.drone-home .home-controls .wind-scroll-chevron { grid-row:2; }
  body.drone-home .home-controls .video-play-toggle { grid-row:3; }
}
@media(max-height:500px) and (max-width:1024px) and (orientation:landscape) {
  body.drone-home { --home-hero-min-height:320px; }
  body.drone-home .wind-hero { padding-top:calc(var(--site-header-height,67px) + 12px); gap:12px; padding-bottom:max(8px,env(safe-area-inset-bottom)); }
  .home-ink { grid-template-columns:minmax(0,1fr) minmax(0,1.55fr) minmax(0,1fr); grid-template-rows:1fr; gap:12px; align-items:center; }
  .home-line { font-size:clamp(16px,2.4vw,21px); letter-spacing:.01em; }
  html[lang="de-CH"] .home-line { font-size:clamp(12px,2.25vw,21px); }
  .home-signature { display:none; }
  .home-controls { grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr); gap:0 12px; }
  body.drone-home .home-controls .hero-coordinate { grid-column:1; font-size:.5625rem; }
  .home-replay { grid-row:2; }
  body.drone-home .home-controls .wind-scroll-chevron { grid-row:2; }
  body.drone-home .home-controls .video-play-toggle { grid-column:3; grid-row:1; justify-self:end; min-height:44px; padding:6px 12px; font-size:.6875rem; }
}
@media(prefers-reduced-motion:reduce) {
  .home-signature,.home-aircraft { transition:none; }
  .home-replay { display:none; }
}
