:root {
  --ink: #101820;
  --muted: #49617a;
  --sky: #069cdf;
  --glass: rgba(244, 251, 255, 0.78);
  --glass-strong: rgba(249, 253, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 48px rgba(8, 89, 139, 0.14);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--sky);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-color: var(--sky);
  background-image: url("/assets/sky-mobile.jpg");
  background-position: center top;
  background-size: cover;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 128, 205, 0.03), rgba(130, 214, 250, 0.06));
}

a,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(4, 77, 128, 0.85);
  outline-offset: 3px;
}

.page-shell {
  width: min(100%, 720px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 62px 18px 30px;
  opacity: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

.is-leaving .page-shell {
  opacity: 0;
  transform: translateY(7px);
}

.hero {
  text-align: center;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 92, 150, 0.16);
}

.faces {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 102px;
  margin-bottom: 17px;
  gap: clamp(15px, 5vw, 34px);
}

.face {
  --drop-delay: 0ms;
  --float-delay: 3070ms;
  width: clamp(66px, 19vw, 94px);
  height: auto;
  filter: drop-shadow(0 8px 13px rgba(0, 86, 140, 0.22));
  transform-origin: 50% 55%;
  animation-name: face-drop, float-face;
  animation-duration: 1350ms, 4.2s;
  animation-timing-function: cubic-bezier(0.2, 0.82, 0.25, 1), ease-in-out;
  animation-delay: var(--drop-delay), var(--float-delay);
  animation-iteration-count: 1, infinite;
  animation-fill-mode: both, none;
}

.face-one {
  --drop-delay: 0ms;
  --float-delay: 3070ms;
}

.face-two {
  --drop-delay: 360ms;
  --float-delay: 3290ms;
}

.face-three {
  --drop-delay: 720ms;
  --float-delay: 3510ms;
}

@keyframes face-drop {
  0% {
    opacity: 0;
    transform: translateY(-42vh) rotate(-5deg) scale(0.86);
  }
  72% {
    opacity: 1;
    transform: translateY(7px) rotate(1deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes float-face {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(0.5deg); }
}

h1,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 7px;
  font-size: clamp(1.95rem, 8.4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: uppercase;
  white-space: nowrap;
  word-spacing: 0.16em;
}

.motto {
  margin-bottom: 10px;
  padding-left: 0.32em;
  font-size: clamp(0.72rem, 3.2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.intro {
  margin-bottom: 22px;
  font-size: clamp(0.98rem, 4vw, 1.15rem);
  font-weight: 400;
}

.socials {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
  gap: 14px;
}

.social-button {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  color: #07131b;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(229, 247, 255, 0.76);
  box-shadow: 0 8px 25px rgba(6, 105, 163, 0.12);
  backdrop-filter: blur(13px);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.social-button:hover {
  transform: translateY(-3px);
  background: rgba(249, 253, 255, 0.94);
  box-shadow: 0 12px 28px rgba(6, 91, 147, 0.2);
}

.social-button:active {
  transform: translateY(0) scale(0.96);
}

.social-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-button .social-envelope {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-card {
  position: relative;
  display: grid;
  min-height: 92px;
  padding: 10px 17px 10px 10px;
  grid-template-columns: 70px 1fr 24px;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  border-radius: 21px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(19px) saturate(112%);
  -webkit-backdrop-filter: blur(19px) saturate(112%);
  transition: transform 190ms ease, background-color 190ms ease, box-shadow 190ms ease, opacity 500ms ease;
}

a.link-card:hover {
  transform: translateY(-3px);
  background: var(--glass-strong);
  box-shadow: 0 22px 55px rgba(7, 90, 142, 0.2);
}

a.link-card:active {
  transform: translateY(0) scale(0.99);
}

.link-card.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.link-card.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-art {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  flex: none;
  overflow: hidden;
  border-radius: 13px;
}

.raya-art {
  background: #fff;
}

.raya-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cloud-art {
  color: rgba(255, 255, 255, 0.92);
  background-color: rgba(58, 158, 218, 0.28);
  background-image: url("/assets/sky-mobile.jpg");
  background-position: left bottom;
  background-size: 250%;
}

.cloud-art span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  font-size: 0.83rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.contact-art {
  color: white;
  background: linear-gradient(145deg, rgba(11, 70, 113, 0.9), rgba(10, 157, 219, 0.68));
}

.contact-art svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.card-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.card-copy strong {
  overflow: hidden;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.disabled {
  cursor: not-allowed;
  opacity: 0.76;
}

.soon-mark {
  color: #42627a;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.glass-footer {
  display: grid;
  min-height: 84px;
  margin-top: 20px;
  place-items: center;
  color: white;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(9px);
}

.glass-footer span,
.contact-footer {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.contact-page {
  padding-top: 28px;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  padding: 0 15px 0 10px;
  align-items: center;
  gap: 5px;
  color: white;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(235, 249, 255, 0.2);
  backdrop-filter: blur(12px);
  transition: background-color 180ms ease, transform 180ms ease;
}

.back-link:hover {
  transform: translateX(-2px);
  background: rgba(246, 252, 255, 0.33);
}

.back-link svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.contact-header {
  padding: 22px 10px 21px;
  color: white;
  text-align: center;
}

.single-face {
  height: 104px;
}

.single-face img {
  width: 74px;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 86, 140, 0.22));
  animation: float-face 4.2s ease-in-out infinite;
}

.eyebrow {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.contact-header h1 {
  margin: 0 0 8px;
  font-size: clamp(2.8rem, 14vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.contact-header > p:last-child {
  max-width: 420px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-form {
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  background: rgba(244, 251, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(112%);
  -webkit-backdrop-filter: blur(20px) saturate(112%);
}

.form-grid {
  display: grid;
  gap: 17px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label > span {
  padding-left: 2px;
  font-size: 0.83rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid rgba(27, 89, 127, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.73);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input {
  height: 51px;
  padding: 0 15px;
}

.contact-form textarea {
  min-height: 150px;
  padding: 14px 15px;
  line-height: 1.5;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #668198;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 103, 171, 0.58);
  outline: none;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(2, 139, 209, 0.12);
}

.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #b63142;
}

.message-field {
  position: relative;
}

.message-field small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #637b8e;
  font-size: 0.7rem;
}

.trap-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  margin-top: 19px;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border: 0;
  border-radius: 15px;
  background: #101a23;
  box-shadow: 0 12px 28px rgba(8, 62, 99, 0.19);
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  background: #172b3c;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.submit-button.loading .button-label {
  display: none;
}

.submit-button.loading .button-loader {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status {
  min-height: 21px;
  margin: 12px 0 0;
  font-size: 0.85rem;
  font-weight: 650;
  text-align: center;
}

.form-status.success {
  color: #096834;
}

.form-status.error {
  color: #9b2032;
}

.contact-footer {
  padding: 28px 0 4px;
  color: white;
  text-align: center;
}

@media (min-width: 580px) {
  .page-shell {
    padding-right: 24px;
    padding-left: 24px;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 700px) {
  body::before {
    background-image: url("/assets/sky-desktop.jpg");
  }

  .page-shell {
    padding-top: 76px;
    padding-bottom: 42px;
  }

  .faces {
    height: 118px;
    margin-bottom: 20px;
  }

  .socials {
    gap: 17px;
  }

  .social-button {
    width: 58px;
    height: 58px;
  }

  .link-list {
    gap: 12px;
  }

  .link-card {
    min-height: 104px;
    padding: 11px 20px 11px 11px;
    grid-template-columns: 80px 1fr 24px;
    gap: 18px;
    border-radius: 24px;
  }

  .card-art {
    width: 80px;
    height: 80px;
    border-radius: 15px;
  }

  .card-copy strong {
    font-size: 1.3rem;
  }

  .card-copy > span {
    font-size: 1.03rem;
  }

  .contact-page {
    padding-top: 35px;
  }

  .contact-form {
    padding: 28px;
  }
}

@media (max-width: 370px) {
  .page-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .link-card {
    min-height: 84px;
    grid-template-columns: 62px 1fr 20px;
    gap: 11px;
  }

  .card-art {
    width: 62px;
    height: 62px;
  }

  .card-copy strong {
    font-size: 1.05rem;
  }

  .card-copy > span {
    font-size: 0.84rem;
  }

  .soon-mark {
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
