/*
  Trium Platform coming soon page.
  Palette is the four brand colors plus navy/white mixes of them.
  Dark teal (#0E7C6D) on navy is 3.05:1, so it is never used for text, only for the CTA fill and decoration.
*/

:root {
  --navy: #14243d;
  --teal: #0e7c6d;
  --teal-light: #4ba99b;
  --white: #ffffff;

  /* White mixed toward navy. Both stay well above 4.5:1 on navy. */
  --text-muted: #d0d3d8;
  --text-subtle: #a6acb5;
  --line: rgba(255, 255, 255, 0.1);

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Faint engineering grid, faded out toward the edges */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}

/* Slow teal glow in the upper right */
body::after {
  content: "";
  position: fixed;
  top: -30vmax;
  right: -25vmax;
  z-index: -1;
  width: 80vmax;
  height: 80vmax;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(14, 124, 109, 0.32) 0%,
    rgba(75, 169, 155, 0.08) 40%,
    rgba(20, 36, 61, 0) 70%
  );
  animation: drift 28s ease-in-out infinite alternate;
}

::selection {
  background-color: var(--teal);
  color: var(--white);
}

p,
h1 {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

/* Layout */

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(72rem, 100% - 2 * var(--gutter));
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
}

.site-header {
  padding-block: clamp(1.5rem, 4vh, 2.5rem);
  animation: fade 0.9s var(--ease-out) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: auto;
  height: clamp(2.5rem, 2rem + 1.5vw, 3rem);
}

/* Empty until the official vector wordmark is supplied */
.wordmark-slot:empty {
  display: none;
}

/* Hero */

.hero {
  align-self: center;
  max-width: 52rem;
  padding-block: clamp(2.5rem, 7vh, 5rem);
}

.hero > * {
  animation: rise 0.9s var(--ease-out) both;
}

.hero > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero > :nth-child(5) {
  animation-delay: 0.32s;
}

.hero-rule {
  display: block;
  width: 3rem;
  height: 2px;
  margin-bottom: clamp(1.25rem, 3.5vh, 2rem);
  background: linear-gradient(to right, var(--teal-light), var(--teal));
  border-radius: 1px;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  max-width: 38rem;
  margin-top: clamp(1.5rem, 4vh, 2rem);
  color: var(--text-muted);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.supporting {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--text-subtle);
  font-size: 1rem;
  text-wrap: pretty;
}

/* Contact */

.contact {
  margin-top: clamp(2.25rem, 6vh, 3.5rem);
}

.contact-message {
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 500;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.25rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.875rem 1.625rem;
  border-radius: 0.5rem;
  background-color: var(--teal);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(14, 124, 109, 0.8);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.cta::after {
  /* Decorative arrow, hidden from screen readers where alt text syntax is supported */
  content: "\2192";
  content: "\2192" / "";
  transition: transform 0.2s ease;
}

/* Light teal with navy text keeps 5.5:1 on hover */
.cta:hover {
  background-color: var(--teal-light);
  color: var(--navy);
  box-shadow: 0 14px 34px -12px rgba(75, 169, 155, 0.7);
  transform: translateY(-1px);
}

.cta:hover::after {
  transform: translateX(3px);
}

.cta:active {
  transform: translateY(0);
}

.contact-email {
  color: var(--teal-light);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(75, 169, 155, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.contact-email:hover {
  color: var(--white);
  text-decoration-color: currentColor;
}

/* Footer */

.site-footer {
  display: grid;
  gap: 0.25rem;
  padding-block: 1.75rem clamp(1.75rem, 4vh, 2.5rem);
  border-top: 1px solid var(--line);
  color: var(--text-subtle);
  font-size: 0.875rem;
  animation: fade 0.9s var(--ease-out) 0.4s both;
}

.footer-name {
  color: var(--text-muted);
  font-weight: 600;
}

.footer-legal {
  margin-top: 0.75rem;
}

@media (min-width: 48em) {
  .site-footer {
    grid-template-columns: auto auto 1fr;
    align-items: baseline;
    gap: 1.5rem;
  }

  .footer-legal {
    margin-top: 0;
    text-align: right;
  }
}

/* Motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-6vmax, 4vmax, 0) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
