@font-face {
  font-family: "Alan Sans";
  src: url("https://cdn.jsdelivr.net/gh/alan-eu/Alan-Sans@main/fonts/webfonts/AlanSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alan Sans";
  src: url("https://cdn.jsdelivr.net/gh/alan-eu/Alan-Sans@main/fonts/webfonts/AlanSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root { color-scheme: dark; }

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body { min-height: 100%; }

body {
  margin: 0;
  background: #043a90;
  color: #fff;
  font-family: "Alan Sans", Arial, sans-serif;
  font-weight: 400;
}

.site-shell {
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  padding: 64px 0;
}

.atmosphere {
  background:
    linear-gradient(180deg, #033a91 0, rgba(3, 58, 145, 0) 814px),
    url("./assets/sky-background.jpg") center top / cover no-repeat,
    #043a90;
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto 64px;
  text-align: center;
  width: 400px;
}

.brand-mark { height: 64px; position: relative; width: 60px; }
.brand-mark img {
  display: block;
  filter:
    drop-shadow(0 16px 16px rgba(9, 46, 103, .04))
    drop-shadow(0 8px 8px rgba(4, 33, 76, .04))
    drop-shadow(0 4px 4px rgba(4, 33, 76, .04))
    drop-shadow(0 2px 2px rgba(4, 33, 76, .04))
    drop-shadow(0 1px 1px rgba(4, 33, 76, .04));
  height: 64px;
  width: 60px;
}

.wordmark {
  display: block;
  filter:
    drop-shadow(0 16px 16px rgba(9, 46, 103, .04))
    drop-shadow(0 8px 8px rgba(4, 33, 76, .04))
    drop-shadow(0 4px 4px rgba(4, 33, 76, .04))
    drop-shadow(0 2px 2px rgba(4, 33, 76, .04))
    drop-shadow(0 1px 1px rgba(4, 33, 76, .04));
  height: 51px;
  margin-top: 4px;
  width: 169px;
}
.hero p { color: rgba(255,255,255,.7); font-size: 18px; line-height: 1.35; margin: 0; }

.carousel-section { display: flex; flex-direction: column; gap: 16px; }
.carousel {
  display: flex;
  gap: 16px;
  margin: 0 auto;
  max-width: 100%;
  overflow-x: auto;
  padding: 0 calc((100vw - 320px) / 2);
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  width: 100%;
}
.carousel::-webkit-scrollbar { display: none; }

.slide { flex: 0 0 auto; scroll-snap-align: center; }
.slide-contact {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  color: #0b449d;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 360px;
  justify-content: center;
  padding: 32px;
  width: 320px;
}
.about-copy { align-items: center; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.about-copy p, .project-copy p { font-size: 14px; line-height: 1.45; margin: 0; }
.project-copy p { width: 256px; }
.about-copy p { text-align: center; }
.portraits { display: flex; gap: 16px; }
.portraits div { height: 112px; overflow: hidden; position: relative; width: 86px; }
.portraits img { height: 118.75%; left: -27.03%; max-width: none; position: absolute; top: -9.37%; width: 154.05%; }
.contact-meta { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.email-button {
  align-items: center;
  background: linear-gradient(180deg, #2876e8, #155fd0);
  border: 1px solid #0f54b7;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(13,43,84,.12), 0 2px 4px rgba(13,43,84,.12), 0 4px 8px rgba(13,43,84,.17), inset 0 1px 0 rgba(255,255,255,.20);
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  text-shadow: 0 1px 1px #092d65;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.email-button::before {
  background: linear-gradient(180deg, #2d7bef, #155fd0);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
}
.email-button span { position: relative; z-index: 1; }
.email-button:hover, .email-button:focus-visible {
  box-shadow: 0 3px 4px rgba(13,43,84,.12), 0 5px 8px rgba(13,43,84,.12), 0 8px 14px rgba(13,43,84,.17), inset 0 1px 0 rgba(255,255,255,.20);
  transform: translateY(-1px);
}
.email-button:hover::before, .email-button:focus-visible::before { opacity: 1; }
.email-button:active { transform: translateY(0); }
.legal { display: flex; font-size: 14px; gap: 16px; justify-content: center; line-height: 1; white-space: nowrap; }
.legal a { color: inherit; position: relative; text-decoration: none; }
.legal a::after { background: currentColor; bottom: -3px; content: ""; height: 1px; left: 0; opacity: .5; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; width: 100%; }
.legal a:hover::after, .legal a:focus-visible::after { transform: scaleX(1); }

.modal-backdrop {
  align-items: center;
  background: rgba(3, 58, 145, .48);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 24px;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 10;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.privacy-modal {
  background: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(13,43,84,.1), 0 2px 4px rgba(13,43,84,.1), 0 4px 8px rgba(13,43,84,.15);
  color: #545454;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 40px 40px;
  position: relative;
  transform: translateY(8px);
  transition: transform 180ms ease;
  width: 100%;
}
.modal-backdrop.is-open .privacy-modal { transform: translateY(0); }
.privacy-modal h1, .privacy-modal h2, .privacy-modal h3, .privacy-modal p { margin: 0; }
.privacy-modal h1, .privacy-modal h2, .privacy-modal h3 { color: #0b449d; }
.privacy-modal h2 { font-size: 24px; font-weight: 400; line-height: 1.2; }
.privacy-modal p { font-size: 14px; line-height: 1.3; margin-top: 10px; }
.policy-updated { color: rgba(84,84,84,.7); font-size: 13px !important; margin-top: 6px !important; }
.privacy-modal h3 { font-size: 18px; font-weight: 500; line-height: 1.2; margin: 22px 0 0; }
.privacy-modal h4 { font-size: 14px; font-weight: 500; line-height: 1.3; margin: 14px 0 0; }
.privacy-modal ul { font-size: 14px; line-height: 1.3; margin: 8px 0 0; padding-left: 20px; }
.privacy-modal li + li { margin-top: 3px; }
.privacy-modal a { color: inherit; }
.modal-close { align-items: center; background: transparent; border: 0; color: #0b449d; cursor: pointer; display: flex; font: 300 28px/1 Arial, sans-serif; height: 32px; justify-content: center; padding: 0; position: absolute; right: 16px; top: 16px; width: 32px; }

.slide-values { display: grid; gap: 16px; grid-template-rows: repeat(4, 1fr); height: 360px; width: 320px; }
.slide-values p {
  align-items: center;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px;
  display: flex;
  font-size: 14px;
  justify-content: center;
  line-height: 1.45;
  margin: 0;
  padding: 16px;
  text-align: center;
  text-shadow: 0 1px 1px #092d65;
}

.slide-project { align-items: stretch; background: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; color: #545454; display: flex; height: 360px; overflow: hidden; width: 677px; }
.project-copy { display: flex; flex-direction: column; gap: 16px; justify-content: center; padding: 32px 64px; width: 400px; }
.project-brand { align-items: center; display: flex; gap: 16px; }
.project-icon { border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.05), 0 4px 8px rgba(0,0,0,.05), 0 8px 16px rgba(0,0,0,.05), 0 16px 32px rgba(0,0,0,.05); height: 64px; width: 64px; }
.planeroll { height: 21.39px; width: 111.04px; }
.phone-stage { align-items: center; background: #f4f5f6; display: flex; flex: 0 0 auto; height: 360px; justify-content: center; overflow: hidden; padding: 24px 64px; width: 277px; }
.phone-frame { height: 312px; isolation: isolate; position: relative; width: 149px; }
/* Project the PNG's alpha silhouette onto the ground, anchored at its base. */
.phone-shadow {
  filter: blur(5px);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}
.phone-shadow::before,
.phone-frame::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
}
.phone-shadow::before {
  background: url('./assets/planeroll-mock.png') center / 100% 100% no-repeat;
  /* Tuck the near-right corner in before projection; preserve the far silhouette. */
  clip-path: polygon(0 0, 100% 0, 100% 82%, 80% 100%, 0 100%);
  filter: brightness(0);
  inset: 0;
  mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .45) 25%, #000 85%);
  opacity: .24;
  transform: matrix(1, .045, -.24, .16, 0, 0);
  transform-origin: 50% 100%;
}
.phone-frame::after {
  background: radial-gradient(ellipse, rgba(18, 20, 22, .40) 0%, rgba(18, 20, 22, .20) 30%, rgba(18, 20, 22, 0) 70%);
  bottom: .1%;
  height: 3.8%;
  left: 8%;
  transform: rotate(5deg);
  width: 84%;
}
.phone-frame img { display: block; height: 312px; max-width: none; position: relative; width: 149px; }

.carousel-controls { align-items: center; display: flex; gap: 8px; justify-content: center; }
.arrow { align-items: center; background: transparent; border: 0; cursor: pointer; display: flex; height: 32px; justify-content: center; padding: 0; width: 32px; }
.arrow img { display: block; height: 32px; opacity: .5; transition: opacity 180ms ease; width: 32px; }
.arrow:hover img, .arrow:focus-visible img { opacity: 1; }
.dots { display: flex; gap: 8px; }
.dot { background: rgba(255,255,255,.45); border: 0; border-radius: 50%; cursor: pointer; height: 5px; padding: 0; transition: background .2s; width: 5px; }
.dot.is-active { background: #fff; }

@media (max-width: 700px) {
  .site-shell { min-height: auto; overflow: visible; padding: 64px 12px; }
  .modal-backdrop { padding: 12px; }
  .atmosphere {
    background-attachment: fixed, fixed, fixed;
    background-position: center top, center center, center center;
    background-size: auto, cover, auto;
    position: fixed;
  }
  .hero { margin-bottom: 64px; max-width: 400px; width: 100%; }
  .hero p { max-width: 340px; }
  .carousel-section { gap: 12px; max-width: 420px; margin: 0 auto; }
  .carousel { display: flex; flex-direction: column; gap: 12px; overflow: visible; padding: 0; }
  .slide, .slide-contact, .slide-values, .slide-project { scroll-snap-align: none; width: 100%; }
  .slide-contact { height: auto; padding: 24px; }
  .slide-values { gap: 12px; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); height: auto; }
  .slide-values p { min-height: 74px; padding: 12px; }
  .slide-project { flex-direction: column; height: auto; }
  .project-copy { padding: 24px; width: 100%; }
  .project-brand { justify-content: center; }
  .project-copy p { margin-left: auto; margin-right: auto; text-align: center; width: auto; }
  .phone-stage { height: auto; min-height: 0; padding: 24px 64px; width: 100%; }
  .phone-frame { height: auto; width: 100%; }
  .phone-frame img { height: auto; width: 100%; }
  .carousel-controls { display: none; }
  .privacy-modal { padding: 48px 32px 32px; }
}

@media (max-width: 380px) { .site-shell { padding-left: 12px; padding-right: 12px; } .slide-contact { padding: 24px; } }
