/* =========================================================================
   ChainAdoption — Editorial Black & White (light)
   White / light-gray ground · near-black ink · muted gold accent line.
   Single committed light theme. Framework-free.
   ========================================================================= */

:root {
  --bg:      #FFFFFF;   /* white ground */
  --bg-2:    #F4F5F7;   /* light gray panel */
  --bg-3:    #E9EBEF;   /* deeper light panel */
  --ink:     #111111;   /* charcoal — primary reading */
  --muted:   #4E555F;   /* mid gray — secondary reading */
  --dim:     #6B7280;   /* faint gray — micro-labels (AA on light) */
  --faint:   rgba(17, 17, 17, 0.05);
  --line:    rgba(17, 17, 17, 0.12);
  --line-2:  rgba(17, 17, 17, 0.20);

  --accent:  #1E3A2B;   /* deep money green — sparing highlight (Artem color spec) */
  --accent-soft: #EAF2ED;   /* mint tint — subtle fill */

  --serif: "Inter Tight", system-ui, sans-serif;      /* display */
  --sans:  "Inter", system-ui, -apple-system, sans-serif;
  --mono:  "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --pad:  clamp(1.25rem, 4vw, 3rem);
  --sec:  clamp(5rem, 11vw, 8.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: rgba(20, 23, 28, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(120% 70% at 50% -6%, rgba(20, 23, 28, 0.04), transparent 60%);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

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

.skip { position: fixed; left: 1rem; top: -3rem; z-index: 200; background: var(--ink); color: #fff; padding: .5rem .9rem; border-radius: 6px; transition: top .2s; }
.skip:focus { top: 1rem; }

/* blueprint grid overlay (faint hairlines on white) */
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--faint) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 26%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 26%, transparent 78%);
}
.nav, main, .foot { position: relative; z-index: 1; }

/* film grain overlay (Artem: "цвета и фото зернистое немного", ref ndstudio.gov) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 150; pointer-events: none;
  opacity: .1; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
}
@media (prefers-reduced-motion: reduce) { body::after { opacity: .07; } }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.4rem; display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--accent); border-radius: 2px; }
.sec-head { max-width: 46ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sec-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -0.022em; color: var(--ink); text-wrap: balance; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: #fff; padding: .95rem 1.55rem; border-radius: 8px;
  font-family: var(--serif); font-weight: 600; letter-spacing: .005em; line-height: 1;
  border: 1px solid var(--accent);
  box-shadow: 0 8px 26px -12px var(--shadow);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px var(--shadow); }
.btn--sm { padding: .6rem 1.05rem; font-size: .9rem; border-radius: 7px; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }
.btn--pill { border-radius: 100px; }
.btn--ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); box-shadow: none; }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: none; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 80px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
.nav__links { display: flex; gap: 2rem; margin-left: auto; font-size: .93rem; color: var(--muted); }
.nav__links a { position: relative; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--accent); transition: width .3s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: .25rem; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 10px; margin-left: auto; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mobile { position: fixed; inset: 80px 0 auto 0; z-index: 90; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.mobile.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile__links { display: flex; flex-direction: column; padding: 1rem var(--pad) 1.75rem; }
.mobile__links a { padding: .85rem 0; font-size: 1.12rem; border-bottom: 1px solid var(--faint); }
.mobile__cta { color: var(--ink) !important; font-weight: 600; border-bottom: 0 !important; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 100px 0 2.4rem; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; filter: grayscale(1) contrast(1.04); opacity: .5; animation: kenburns 26s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,.8) 84%, var(--bg) 100%),
    linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.4) 55%, transparent 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__title { font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 6.6vw, 5.1rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; color: var(--ink); }
.hero__lede { max-width: 56ch; color: var(--muted); margin: 1.4rem 0 0; font-size: 1.05rem; }
.hero__actions { display: flex; align-items: center; gap: 1rem 1.1rem; flex-wrap: wrap; margin-top: 1.9rem; }
.hero__ticker { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin-top: 2.1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero__ticker li { display: flex; flex-direction: column; gap: .3rem; }
.hero__ticker b { font-family: var(--mono); font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2rem); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.hero__ticker span { font-size: .82rem; color: var(--muted); letter-spacing: .01em; }

/* ---------- services ---------- */
.services { padding-block: var(--sec); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 720px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .35s var(--ease);
}
.svc:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 26px 50px -30px var(--shadow); }
.svc__tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.svc__name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.12; letter-spacing: -0.02em; margin: 1rem 0 .7rem; color: var(--ink); }
.svc__desc { color: var(--muted); max-width: 46ch; }

/* ---------- leadership (photo left / text right) ---------- */
.founder { padding-block: var(--sec); border-top: 1px solid var(--line); }
.founder .sec-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.founder__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 880px) { .founder__grid { grid-template-columns: 340px 1fr; } }
.founder__photo { margin: 0; max-width: 340px; }
.founder__photo img { display: block; width: 100%; height: 440px; object-fit: cover; object-position: center 22%; border-radius: 16px; filter: grayscale(1) contrast(1.04); border: 1px solid var(--accent); background: var(--bg-2); }
.founder__name { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; color: var(--ink); }
.founder__role { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: .5rem 0 0; }
.founder__bio { color: var(--muted); margin: 1.25rem 0 0; max-width: 62ch; }
.founder__bio b { color: var(--ink); font-weight: 500; }
.founder__btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.founder__btns .btn--ghost { padding: .8rem 1.3rem; border-radius: 100px; font-size: .92rem; }

/* ---------- portfolio (rounded-square logo tiles) ---------- */
.portfolio { padding-block: var(--sec); border-top: 1px solid var(--line); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.4vw, 2rem); border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); color: inherit; transition: border-color .3s, transform .3s var(--ease), box-shadow .35s; }
.pcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 26px 50px -30px var(--shadow); }
.pcard__logo { width: 52px; height: 52px; border-radius: 13px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; margin-bottom: 1.2rem; box-shadow: 0 2px 8px -4px var(--shadow); }
.pcard__logo img { width: 32px; height: 32px; object-fit: contain; }
.pcard__name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); }
.pcard__desc { color: var(--muted); font-size: .93rem; margin: .6rem 0 1.2rem; flex: 1; }
.pcard__backers { font-family: var(--mono); font-size: .76rem; color: var(--ink); padding-top: 1rem; border-top: 1px solid var(--faint); }
.pcard__backers span { display: block; color: var(--dim); text-transform: uppercase; letter-spacing: .16em; font-size: .62rem; margin-bottom: .35rem; }

/* ---------- testimonials — flex-style photo stack ---------- */
.voices { padding-block: var(--sec); border-top: 1px solid var(--line); background: var(--bg-2); }
.quotes { position: relative; max-width: 1040px; margin-inline: auto; padding-left: 320px; min-height: 420px; }
.qstack { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 250px; height: 340px; }
.qcard {
  position: absolute; top: 0; left: 0; width: 240px; height: 320px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, var(--bg), var(--bg-3)); border: 1px solid var(--line-2);
  box-shadow: 0 30px 55px -30px var(--shadow);
  transition: transform .6s var(--ease), opacity .6s var(--ease); will-change: transform, opacity;
}
.qcard::before { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 3.6rem; color: var(--dim); background: var(--bg-3); }
.qcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); }
.qcard b { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.5rem 1rem .9rem; font-family: var(--mono); font-weight: 500; letter-spacing: .04em; color: #fff; background: linear-gradient(0deg, rgba(8,10,14,.92), transparent); }
.qcard__nm { display: block; font-size: .72rem; text-transform: uppercase; }
.qcard__co { display: block; margin-top: .22rem; font-size: .64rem; letter-spacing: .02em; color: rgba(255,255,255,.72); }
.quotes__viewport { overflow: hidden; }
.quotes__track { display: flex; align-items: stretch; transition: transform .55s var(--ease); }
.quote { flex: 0 0 100%; min-width: 100%; padding-bottom: 4rem; }
.quote blockquote { font-family: var(--serif); font-weight: 500; font-size: clamp(1.12rem, 2.05vw, 1.5rem); line-height: 1.42; letter-spacing: -0.01em; margin: 0; color: var(--ink); text-wrap: pretty; }
.quote blockquote::before { content: "\201C"; color: var(--accent); }
.quote blockquote::after { content: "\201D"; color: var(--accent); }
/* name + company live on the photo card (desktop); the beside-the-quote copy is
   visually hidden but KEPT in the a11y tree (the card caption is aria-hidden), and
   shown normally on mobile where the card is hidden — avoids Artem's duplication */
.quote__by { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.quote__avatar { display: none; }
.quote__who strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.quote__who span { font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: .03em; }
.quotes__nav { position: absolute; z-index: 5; bottom: 4px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); font-size: 1.05rem; display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.quotes__nav:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.quotes__nav--prev { left: 320px; }
.quotes__nav--next { left: 372px; }
.quotes__dots { position: absolute; bottom: 20px; right: 4px; display: flex; gap: .5rem; }
.quotes__dots button { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: transform .25s, background .25s; }
.quotes__dots button.is-active { background: var(--ink); transform: scale(1.55); }
@media (max-width: 820px) {
  .quotes { padding-left: 0; min-height: 0; }
  .qstack { display: none; }
  .quotes__nav--prev { left: 0; }
  .quotes__nav--next { left: 52px; }
  .quotes__dots { bottom: 24px; right: 0; }
  .quote { padding-bottom: 4.5rem; }
  .quote__by { position: static; width: auto; height: auto; margin: 1.7rem 0 0; overflow: visible; clip-path: none; white-space: normal; display: flex; align-items: center; gap: .8rem; }
}

/* ---------- CTA ---------- */
.cta { padding-block: var(--sec); border-top: 1px solid var(--line); }
.cta__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 1fr 1.05fr; } }
.cta__title { font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em; margin: .3rem 0 0; color: var(--ink); }
.cta__lede { color: var(--muted); margin: 1.3rem 0 2rem; max-width: 40ch; }
.cta__cal { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-height: 640px; box-shadow: 0 30px 60px -34px var(--shadow); }
.cta__cal iframe { width: 100%; height: 660px; border: 0; display: block; }

/* ---------- footer ---------- */
.foot { background: #000; color: #fff; padding-top: clamp(3rem, 7vw, 4.5rem); padding-bottom: 2rem; }
.foot__inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 700px) {
  .foot__inner { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .foot__cols { justify-content: flex-end; text-align: right; }  /* contacts sit cleanly on the right, balancing the brand */
}
.foot__brand img { height: 28px; }
.foot__brand p { color: rgba(255,255,255,.62); margin: 1.1rem 0 0; max-width: 32ch; }
.foot__cols { display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; }
.foot__cols > div { min-width: 0; }
.foot__cols h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 500; margin-bottom: 1rem; }
.foot__cols a { display: block; color: rgba(255,255,255,.72); padding: .3rem 0; transition: color .2s; overflow-wrap: anywhere; }
.foot__cols a:hover { color: #fff; }
.foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; }
}

/* ---------- responsive nav ---------- */
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}
