/* TIESART interface typography: self-hosted, SIL OFL 1.1.
   The TIESART wordmark is outlined SVG artwork, so no display font is loaded here. */
@font-face {
  font-family: "TIESART Sans";
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Joulino-derived palette (D-089) */
  --carbon: #1a1a1a;
  --paper: #f5f7ff;
  --signal: #ff9f0a;
  --signal-ink: #92400e;
  --cobalt: #5b5bd6;
  --cobalt-deep: #4338ca;
  --pollen: #fbbf24;
  --mineral: #dde0ee;
  --muted: #4b4f63;
  --line: rgba(26, 26, 26, 0.14);
  /* Joulino type scale (D-092) */
  --t-display: clamp(2.4rem, 4.4vw, 3.6rem);
  --t-lead:    clamp(1.1rem, 1.35vw, 1.6rem);
  --t-body:    1.17rem;
  --t-small:   1rem;
  --t-label:   0.72rem;
  --sans: "TIESART Sans", Manrope, Inter, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

em { font-style: normal; font-weight: 700; }

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(91, 91, 214, 0.08), transparent 25rem),
    var(--paper);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

.site-shell {
  width: min(100%, 118rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 3rem) clamp(1.3rem, 4vw, 4.5rem) clamp(1.2rem, 2.5vw, 2.3rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  width: clamp(9.6rem, 13vw, 12.4rem);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: var(--t-label);
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0.32rem rgba(255, 159, 10, 0.16);
  animation: breathe 2.8s ease-in-out infinite;
}

.hero {
  min-width: 0;
  padding: clamp(3.5rem, 7vh, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 10rem);
}

.hero-copy {
  min-width: 0;
  max-width: 61rem;
}

.eyebrow {
  margin: 0 0 clamp(2rem, 5vh, 4.5rem);
  color: var(--cobalt);
  font-size: var(--t-label);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 em {
  color: var(--cobalt);
  font-style: normal;
  font-weight: 700;
}

.lede {
  max-width: 44rem;
  margin: clamp(2rem, 4vh, 3.4rem) 0 0;
  color: #4b4f63;
  font-size: var(--t-lead);
}

.launch-note {
  max-width: 44rem;
  margin-top: clamp(2.2rem, 4vh, 3.5rem);
  padding-top: 1.15rem;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.4rem;
  border-top: 1px solid var(--line);
}

.launch-note span {
  color: var(--cobalt);
  font-size: var(--t-label);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.launch-note p {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-small);
}

.brand-signal {
  position: relative;
  width: min(100%, 35rem);
  justify-self: end;
  aspect-ratio: 0.84;
  overflow: hidden;
  background: var(--carbon);
  color: white;
  box-shadow: clamp(0.8rem, 2vw, 1.6rem) clamp(0.8rem, 2vw, 1.6rem) 0 var(--mineral);
}

.signal-grid {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.23) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.23) 1px, transparent 1px);
  background-size: 3.4rem 3.4rem;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.signal-symbol {
  position: absolute;
  top: clamp(2.2rem, 5vw, 4.4rem);
  left: clamp(2rem, 5vw, 4rem);
  display: block;
  width: clamp(5rem, 11vw, 9rem);
  height: auto;
}

.signal-index {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.13em;
}

.signal-fold {
  position: absolute;
  top: 0;
  right: -8%;
  width: 48%;
  height: 71%;
  background: linear-gradient(145deg, var(--cobalt) 0 58%, var(--cobalt-deep) 58% 100%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 75%);
}

.signal-fold::after {
  position: absolute;
  right: 19%;
  bottom: 17%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--pollen);
  box-shadow: 0 0 0 0.45rem rgba(251, 191, 36, 0.18);
  content: "";
}

.signal-steps {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  background: rgba(23, 23, 23, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(0.8rem);
}

.signal-steps li {
  min-width: 0;
  min-height: 8.4rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.signal-steps li:last-child {
  border-right: 0;
}

.signal-steps span {
  color: var(--pollen);
  font-size: var(--t-label);
  font-weight: 800;
}

.signal-steps strong {
  margin-top: auto;
  font-family: var(--sans);
  font-size: clamp(1.3rem, 1.75vw, 1.72rem);
  font-weight: 700;
}

.signal-steps small {
  color: rgba(255, 255, 255, 0.54);
  font-size: .82rem;
  line-height: 1.3;
}

.site-footer {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.75); opacity: 0.62; }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .brand-signal {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    aspect-ratio: 1.35;
  }

  .signal-symbol {
    width: clamp(5.5rem, 18vw, 9rem);
  }

  .signal-fold {
    width: 42%;
  }
}

@media (max-width: 620px) {
  .site-shell {
    padding: 1.3rem 1.25rem 1.1rem;
  }

  .status {
    gap: 0.48rem;
    font-size: var(--t-label);
    letter-spacing: 0.09em;
  }

  .status span {
    width: 0.45rem;
    height: 0.45rem;
  }

  .hero {
    padding: 4.2rem 0 3.5rem;
    gap: 3.8rem;
  }

  .eyebrow {
    margin-bottom: 2.3rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.2rem, 9vw, 2.9rem);
    line-height: 0.94;
  }

  .launch-note {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .brand-signal {
    min-height: 31rem;
    aspect-ratio: auto;
  }

  .signal-symbol {
    top: 2.2rem;
    left: 2rem;
    width: 6.6rem;
  }

  .signal-fold {
    width: 49%;
    height: 68%;
  }

  .signal-steps li {
    min-height: 7.5rem;
    padding: 0.8rem;
  }

  .signal-steps strong {
    font-size: 1.15rem;
  }

  .signal-steps small {
    font-size: var(--t-label);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status span {
    animation: none;
  }
}
