/* Docktails landing page (2026-11-13). Same lake and clouds as the main site's hero; name dead center. */
:root {
  --blue: #0a46e0;
  --blue-deep: #06267f;
  --white: #ffffff;
  --head: "Bevan", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Name width: 35% wider than the main site's hero name (1.25 x its logo width), never wider than the screen or about 135% of its height. */
  /* The last term keeps the whole stack (wordmark, tagline, address) on screen with the wordmark's shorter shape: it needs about 0.38 x W below center. */
  --W: min(calc(1.6875 * min(72vw, 800px, (100svh - 124px) / 1.04)), 96vw, 135svh, calc((100svh - 80px) / 0.76));
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { font-family: var(--body); color: var(--white); background: #3d93ec; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Background (copied from the main site) ---------- */
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #3d93ec; }
.lake { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 62%;
  transform-origin: 50% 62%; animation: lake-in 1.2s ease-out both, lake-breathe 48s ease-in-out 1.2s infinite alternate; }
@keyframes lake-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lake-breathe { from { transform: scale(1); } to { transform: scale(1.07); } }
.shimmer { position: absolute; left: 0; right: 0; top: 62%; bottom: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .55;
  background:
    repeating-linear-gradient(176deg, rgba(255,255,255,0) 0 22px, rgba(255,255,255,.55) 26px, rgba(255,255,255,0) 32px 58px),
    repeating-linear-gradient(184deg, rgba(255,255,255,0) 0 40px, rgba(255,255,255,.4) 46px, rgba(255,255,255,0) 54px 96px);
  background-size: 240px 100%, 360px 100%;
  animation: shimmer 60s linear infinite; }
@keyframes shimmer { from { background-position: 0 0, 0 0; } to { background-position: 480px 0, -720px 0; } }
.cloud { position: absolute; height: auto; pointer-events: none; will-change: transform; }
.cloud-a { width: max(78vw, 640px); left: 4vw; top: 7%; opacity: .78; filter: blur(.6px); animation: drift-a 91.7s ease-in-out infinite alternate; }
.cloud-b { width: max(54vw, 460px); right: 2vw; top: 33%; opacity: .6; filter: blur(.8px); transform: scaleX(-1); animation: drift-b 125s ease-in-out infinite alternate; }
.cloud-c { width: min(max(58vw, 380px), 880px); aspect-ratio: 2150 / 230; object-fit: cover; object-position: 50% 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40%); mask-image: linear-gradient(to bottom, transparent 0, #000 40%); left: -3vw; top: 46%; opacity: .72; filter: blur(.5px); animation: drift-c 85s ease-in-out infinite alternate; }
.cloud-d { width: min(max(34vw, 240px), 520px); aspect-ratio: 2150 / 230; object-fit: cover; object-position: 50% 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40%); mask-image: linear-gradient(to bottom, transparent 0, #000 40%); left: 17vw; top: 39%; opacity: .55; filter: blur(.6px); transform: scaleX(-1); animation: drift-d 65s ease-in-out infinite alternate; }
@keyframes drift-c { from { transform: translateX(-4vw); } to { transform: translateX(14vw); } }
@keyframes drift-d { from { transform: scaleX(-1) translateX(-8vw); } to { transform: scaleX(-1) translateX(10vw); } }
@keyframes drift-a { from { transform: translateX(-9vw); } to { transform: translateX(11vw); } }
@keyframes drift-b { from { transform: scaleX(-1) translateX(-10vw); } to { transform: scaleX(-1) translateX(9vw); } }

/* ---------- The lockup: wordmark dead center, everything else hangs below it ---------- */
.lockup { position: fixed; left: 50%; top: 50%; width: var(--W);
  transform: translate(-50%, calc(var(--W) * -0.1975)); /* half the wordmark's height (632/1600 x W / 2), so the WORDMARK is centered */
  display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 10px 22px rgba(0, 30, 110, .38)); }
.part { max-width: none; }
.name { width: 100%; height: auto; position: relative; z-index: 2; }
/* The tagline is stretched to the full length of the logo letters (about 96% of the name width). */
.tagline { width: 96%; height: auto; margin-top: calc(var(--W) * .05); overflow: visible; display: block; }
.tagline text { font-family: var(--head); fill: var(--white); stroke: var(--blue-deep); stroke-width: 7px; paint-order: stroke fill; stroke-linejoin: round; }
.address { margin: calc(var(--W) * .012) 0 0; font-weight: 700; font-size: clamp(14px, calc(var(--W) * .03), 30px); letter-spacing: .06em; text-align: center; text-shadow: 0 2px 8px rgba(0, 30, 110, .75), 0 0 2px rgba(0, 30, 110, .9); }

/* Intro: the wordmark drops in from above, then the tagline and address fade in. Only with JS. */
.js .part { opacity: 0; }
.js .name { transform: translateY(-110vh); }
.js.go .part { opacity: 1; }
.js.go .name { animation: drop 1.9s cubic-bezier(.22,.8,.3,1) both; }
.js.go .tagline, .js.go .address { animation: fade-in 1s ease-out 1.4s both; }
@keyframes drop { 0% { transform: translateY(-110vh); } 72% { transform: translateY(1.2%); } 86% { transform: translateY(-.5%); } 100% { transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.js .tagline, .js .address { opacity: 0; }
.js.go .tagline, .js.go .address { opacity: 1; }

/* ---------- The banner plane ---------- */
.flyer { --u: clamp(10px, 1.15vw, 16px); --hook: 5.7em; font-size: var(--u); position: fixed; left: 0; top: clamp(14px, 6vh, 64px); z-index: 20; width: max-content;
  display: flex; align-items: flex-start; pointer-events: none; will-change: transform; filter: drop-shadow(0 6px 10px rgba(0, 30, 110, .3)); }
.flyer-a { transform: translateX(-130%); }
.flyer-b { transform: translateX(100vw); }
.fly .flyer-a { animation: fly-a var(--dur, 22s) linear both; }
.fly .flyer-b { animation: fly-b var(--dur, 22s) linear var(--dur, 22s) both; }
@keyframes fly-a { from { transform: translateX(-100%); } to { transform: translateX(100vw); } }
@keyframes fly-b { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

.bob { animation: bob 3.2s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-.35em); } to { transform: translateY(.45em); } }
/* David's own plane picture (assets/plane-body.png, nose at the right; the blades are cut out into plane-prop.png so they can spin).
   Percentages are positions inside the body picture: the hub is at about 97.6% across and 53% down. */
.plane { position: relative; width: 19em; aspect-ratio: 1430 / 730; display: block; }
.plane.flip { transform: scaleX(-1); }
.plane img { display: block; position: absolute; }
.plane .pb { left: 0; top: 0; width: 100%; height: 100%; }
.plane .pp { left: 94.06%; top: 17.81%; width: 6.29%; height: 71.23%; transform-origin: 50% 49%; animation: prop .09s linear infinite alternate; }
.plane .disc { position: absolute; left: 95.2%; top: 20%; width: 3.6%; height: 66%; border-radius: 50%; background: rgba(62, 68, 76, .3); filter: blur(.12em); animation: disc .13s linear infinite alternate; }
@keyframes prop { from { transform: scaleY(1); } to { transform: scaleY(.1); } }
@keyframes disc { from { opacity: .55; } to { opacity: 1; } }

/* The tow rope meets the plane's tail hook (about 55% down the plane); the banner is centered on the rope. */
.rope { width: 3.2em; height: 0; margin-top: var(--hook); border-top: .16em solid #06267f; flex: none; }

/* ---------- Static line for people who prefer no motion ---------- */
.static-soon { display: none; }

/* ---------- 4M credit stamp, bottom right, as on our other sites ---------- */
.by-4m { position: fixed; right: 12px; bottom: 10px; z-index: 30; font: 12px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
.by-4m a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; opacity: .85; text-shadow: 0 1px 4px rgba(0, 30, 110, .8); }
.by-4m a:hover { opacity: 1; }
.by-4m img { height: 24px; width: auto; padding: 3px 8px; background: #F6EFDF; border-radius: 4px; }

/* ---------- Employment Opportunities button, bottom left (same look as the main site's .btn: Bevan, uppercase, blue fill, white text, 6 px corners) ---------- */
.emp { position: fixed; left: 16px; bottom: 14px; z-index: 30; display: inline-block; padding: 10px 20px; border-radius: 6px; background: var(--white); color: var(--blue); text-decoration: none; font-family: var(--head); font-weight: 400; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; border: 2px solid var(--white); box-shadow: 0 6px 16px rgba(0, 30, 110, .4); -webkit-tap-highlight-color: transparent; transition: transform .15s ease, background .15s ease; }
.emp:hover { background: #e8f0ff; border-color: #e8f0ff; color: var(--blue-deep); transform: translateY(-1px); }
.emp:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
.js .emp { opacity: 0; }
.js.go .emp { opacity: 1; animation: fade-in 1s ease-out 1.4s both; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  :root { --W: min(96vw, 135svh); }
  .emp { left: 10px; bottom: 46px; font-size: .85rem; padding: 9px 16px; }
  .by-4m { right: 8px; bottom: 8px; font-size: 11px; }
  .by-4m img { height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .lake, .shimmer, .cloud-a, .cloud-b, .cloud-c, .cloud-d { animation: none !important; }
  .cloud-b, .cloud-d { transform: scaleX(-1); }
  .js .part { opacity: 1; transform: none !important; animation: none !important; }
  .js .emp { opacity: 1; animation: none !important; }
  .flyer { display: none; }
  .static-soon { display: block; position: fixed; left: 0; right: 0; top: 4vh; text-align: center; margin: 0; font-family: var(--head); font-size: clamp(16px, 2.6vw, 30px); color: #fff; text-shadow: 0 2px 10px rgba(0, 30, 110, .8); }
}

/* Banner: an SVG flag that landing.js sizes to its text and ripples like cloth; the ripple travels from the plane to the free end. */
.banner { display: block; flex: none; overflow: visible; }
.banner text { font-family: var(--head); fill: var(--blue-deep); }
/* The tail hook sits about 1.6em inside the plane drawing, so the rope tucks in to meet it. */
.flyer-a .bob { margin-left: -1.6em; }
.flyer-b .bob { margin-right: -1.6em; }
