/* zvyaz.com — holding page
   Palette and type are defined once here; edit these tokens to re-skin. */

:root {
  --concrete:    #DDE1DC;  /* ground — painted warehouse floor */
  --ink:         #16191A;  /* text, nodes */
  --slate:       #5C6562;  /* secondary text */
  --rule:        #BEC4BE;  /* hairlines */
  --ultramarine: #1E2A9E;  /* links, hover states */
  --hivis:       #D8F534;  /* used in exactly one place: the moving unit */

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 56px);
}

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

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

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.frame {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- top and bottom bars ---------- */

.bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  animation: fade 0.7s ease 0.05s forwards;
}

.bar--foot {
  border-bottom: 0;
  border-top: 1px solid var(--rule);
  margin-top: auto;
  animation-delay: 1s;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
}

.bar__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.bar__link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.bar__link:hover { color: var(--ultramarine); border-bottom-color: var(--ultramarine); }

/* ---------- hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(52px, 11vh, 104px) 0 clamp(44px, 9vh, 88px);
}

.eyebrow {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s forwards;
}

.headline {
  margin: 0 0 30px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.15rem, 7vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.headline__line {
  display: block;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.headline__line:nth-child(1) { animation-delay: 0.18s; }
.headline__line:nth-child(2) { animation-delay: 0.27s; }
.headline__line:nth-child(3) { animation-delay: 0.36s; }

.deck {
  max-width: 48ch;
  margin: 0 0 clamp(48px, 9vh, 84px);
  font-size: clamp(1.03rem, 1.5vw, 1.22rem);
  line-height: 1.58;
  color: #2C3230;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s forwards;
}

/* ---------- signature: the buy → store → sell line ---------- */

.chain {
  width: 100%;
  max-width: 720px;
  margin: 0 0 clamp(44px, 8vh, 76px);
}

.chain__track {
  position: relative;
  height: 20px;
  margin-bottom: 20px;
}

.chain__rule {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  transform: scaleX(0);
  transform-origin: left center;
  animation: draw 1s cubic-bezier(0.4, 0, 0.1, 1) 0.7s forwards;
}

.chain__node {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  animation: pop 0.45s cubic-bezier(0.2, 1.3, 0.4, 1) forwards;
}

.chain__node--a { left: 0;    animation-delay: 0.95s; }
.chain__node--b { left: 50%;  animation-delay: 1.1s; }
.chain__node--c { left: 100%; animation-delay: 1.25s; }

.chain__unit {
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  background: var(--hivis);
  border: 1px solid var(--ink);
  opacity: 0;
  animation: travel 14s cubic-bezier(0.65, 0, 0.35, 1) 1.5s infinite;
}

.chain__labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chain__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  animation: fade 0.6s ease forwards;
}

.chain__label:nth-child(1) { animation-delay: 1s;    text-align: left; }
.chain__label:nth-child(2) { animation-delay: 1.15s; text-align: center; }
.chain__label:nth-child(3) { animation-delay: 1.3s;  text-align: right; }

.chain__name {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chain__note {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--slate);
}

/* ---------- call to action ---------- */

.cta {
  display: flex;
  width: 100%;
  max-width: 720px;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.85s forwards;
}

.cta__button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--ink);
  color: var(--concrete);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta__button:hover { background: var(--ultramarine); }

.cta__note {
  margin: 0;
  max-width: 34ch;
  font-size: 0.92rem;
  color: var(--slate);
}

/* ---------- focus, motion ---------- */

a:focus-visible {
  outline: 2px solid var(--ultramarine);
  outline-offset: 3px;
}

@keyframes fade {
  to { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes draw {
  to { transform: scaleX(1); }
}

@keyframes pop {
  to { transform: scale(1); }
}

/* one unit of stock: received, held, shipped */
@keyframes travel {
  0%             { left: 0;    opacity: 0; }
  5%, 17%        { left: 0;    opacity: 1; }
  31%, 45%       { left: 50%;  opacity: 1; }
  59%, 84%       { left: 100%; opacity: 1; }
  92%, 100%      { left: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bar,
  .eyebrow,
  .headline__line,
  .deck,
  .chain__rule,
  .chain__node,
  .chain__label,
  .cta {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .chain__unit {
    animation: none;
    opacity: 1;
    left: 50%;
  }
}

@media (max-width: 560px) {
  .chain__note { font-size: 0.74rem; }
  .cta { gap: 12px; }
  .cta__note { max-width: none; }
}
