/* Annona Trade — compact one-page site.
   Brand: gold #C27A0E from the final logo, navy/graphite ground. */

@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-lat.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-lat.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-lat.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #c27a0e;
  --gold-hi: #d89a34;
  --navy: #122436;
  --ink: #0e1116;
  --ink-2: #1a1f26;
  --fg: #ece9e3;
  --fg-2: #b6b2aa;
  --muted: #8d8a83;
  --line: rgba(236, 233, 227, 0.12);
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  /* печатный слой (стиль mono-color): гравюрный штрих двумя красками со сдвигом приводки */
  --print-lines:
    /* ширина линии дробная: край мягкий, на DPR 1 не «звенит» пиксельной сеткой */
    repeating-linear-gradient(24deg, rgba(236, 233, 227, 0.11) 0 1.2px, transparent 1.2px 3.6px),
    repeating-linear-gradient(24deg, rgba(194, 122, 14, 0.13) 0 1.2px, transparent 1.2px 7.2px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.hdr.is-pinned {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--ink) 94%, transparent);
}
.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
.hdr__logo img {
  height: clamp(26px, 3.2vw, 34px);
  width: auto;
}
.hdr__nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-family: var(--mono);
  font-size: clamp(0.62rem, 1.6vw, 0.72rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.hdr__nav a {
  white-space: nowrap;
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hdr__nav a:hover,
.hdr__nav a:focus-visible {
  color: var(--gold-hi);
  border-bottom-color: var(--gold);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 12vh, 132px) clamp(56px, 9vh, 104px);
  background-color: var(--ink);
  background-image:
    var(--print-lines),
    radial-gradient(120% 90% at 78% 0%, rgba(18, 36, 54, 0.9) 0%, transparent 58%),
    linear-gradient(180deg, #0f1318 0%, var(--ink) 62%);
  /* fixed у штриха: рисунок «прибит» к вьюпорту, поэтому в прелоадере и hero он совпадает */
  background-position: 0 0, 2.2px 0.8px, 0 0, 0 0;
  background-attachment: fixed, fixed, scroll, scroll;
}
.hero__glow {
  position: absolute;
  inset: -30% -20% auto auto;
  width: 72vw;
  height: 72vw;
  background: radial-gradient(circle at 62% 42%, rgba(194, 122, 14, 0.22), transparent 60%);
  pointer-events: none;
}
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    to right,
    rgba(236, 233, 227, 0.05) 0 1px,
    transparent 1px 25%
  );
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}
.hero__in {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.tick {
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex: 0 0 auto;
}

.hero__title {
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.6vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18em;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-hi);
}

.hero__lead {
  margin: clamp(20px, 2.6vw, 30px) 0 0;
  max-width: 52ch;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  color: var(--fg-2);
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- sections ---------- */

.sec {
  padding-block: clamp(64px, 9vw, 116px);
  border-top: 1px solid var(--line);
}
.sec--lines {
  background: linear-gradient(180deg, rgba(18, 36, 54, 0.35), transparent 70%);
}

.label {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.sec__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.sec__lead {
  margin: 18px 0 0;
  max-width: 56ch;
  color: var(--fg-2);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
}
@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

.card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(236, 233, 227, 0.045), rgba(236, 233, 227, 0.012));
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover {
  border-color: rgba(194, 122, 14, 0.5);
  transform: translateY(-2px);
}
.card__num {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.card h3 {
  margin: 10px 0 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}
.card__sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.card li {
  position: relative;
  padding-left: 16px;
  font-size: 0.97rem;
  color: var(--fg-2);
}
.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}
.card__dir {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-hi);
}

/* ---------- lanes ---------- */

.lanes {
  display: grid;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
}
.lane {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lane__from {
  color: var(--fg);
}
.lane__to {
  color: var(--gold-hi);
  text-align: right;
}
.lane__arrow {
  position: relative;
  width: clamp(48px, 14vw, 160px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(194, 122, 14, 0.15));
}
.lane__arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: rotate(45deg);
}
.lane--rev .lane__arrow {
  background: linear-gradient(90deg, rgba(194, 122, 14, 0.15), var(--gold));
}
.lane--rev .lane__arrow::after {
  right: auto;
  left: 0;
  transform: rotate(-135deg);
}

.modes {
  margin: clamp(24px, 3vw, 34px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--fg-2);
}
.modes li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.97rem;
}
.dot {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-2px);
}

/* ---------- contact ---------- */

.sec--contact {
  border-bottom: 1px solid var(--line);
}
.mail {
  display: inline-block;
  margin-top: clamp(22px, 3vw, 30px);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1px solid rgba(194, 122, 14, 0.55);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
  word-break: break-word;
}
.mail:hover,
.mail:focus-visible {
  color: var(--gold-hi);
  border-color: var(--gold-hi);
}

/* ---------- footer ---------- */

.ftr {
  padding-block: 30px;
}
.ftr__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ftr__in img {
  height: clamp(22px, 3vw, 28px);
  width: auto;
  opacity: 0.75;
}
.ftr p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ftr__legal {
  display: flex;
  gap: clamp(10px, 1.6vw, 20px);
  flex-wrap: wrap;
}
.ftr__legal a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}
.ftr__legal a:hover,
.ftr__legal a:focus-visible {
  color: var(--gold-hi);
}

@media (max-width: 420px) {
  .hdr__in {
    min-height: 58px;
    gap: 14px;
  }
  .hdr__nav {
    gap: 12px;
    letter-spacing: 0.08em;
  }
  .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }
  .hero {
    padding-block: clamp(44px, 10vh, 72px) clamp(44px, 8vh, 70px);
  }
  .hero__foot {
    gap: 8px 20px;
  }
}

@media (max-width: 560px) {
  .hero__foot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 18px;
  }
  .hero__foot span {
    padding-left: 12px;
    position: relative;
  }
  .hero__foot span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.66em;
    width: 5px;
    height: 1px;
    background: var(--gold);
  }
  .hero {
    padding-block: 40px 48px;
  }
  .sec {
    padding-block: 56px;
  }
}

/* ---------- preloader ---------- */

.pre {
  position: fixed;
  inset: 0;
  z-index: 200;
  animation: pre-autohide 0.6s ease 13.7s forwards;
  display: grid;
  place-items: center;
  background-color: #0a0d11;
  background-image:
    var(--print-lines),
    radial-gradient(90% 70% at 50% 42%, rgba(18, 36, 54, 0.85) 0%, transparent 62%);
  background-position: 0 0, 2.2px 0.8px, 0 0;
  background-attachment: fixed, fixed, scroll;
  /* камушки разлетаются в WebGL-слое, тёмная подложка уходит следом */
  /* логотип тает в канвасе, подложка уходит следом */
  transition: opacity 1.5s ease-out 0.7s;
  will-change: opacity;
}
.pre--out {
  opacity: 0;
  pointer-events: none;
}
.pre__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.pre__fallback {
  display: none;
  width: min(58vw, 320px);
  height: auto;
  opacity: 0.9;
}
.pre.no-webgl .pre__canvas {
  display: none;
}
.pre.no-webgl .pre__fallback {
  display: block;
}
.pre__mark {
  position: absolute;
  bottom: clamp(22px, 5.5vh, 52px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(240px, 56vw);
}
.pre__name {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-hi);
  opacity: 0.9;
}
.pre__track {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(236, 233, 227, 0.16);
  overflow: hidden;
}
.pre__bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

@keyframes pre-autohide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pre {
    animation-delay: 0.4s;
  }
}
