:root {
  --bg: #f1f4ee;
  --bg-soft: #e7ece4;
  --surface: #ffffff;
  --surface-2: #f8faf6;
  --line: rgba(20, 20, 19, .13);
  --ink: #141413;
  --muted: #6b6963;
  --lead: #3a3936;
  --teal: #2f6e56;
  --teal-soft: rgba(47, 110, 86, .08);
  --violet: #bd6a4f;
  --violet-soft: rgba(189, 106, 79, .09);
  --success: #2f6e56;
  --danger: #b25245;
  --display: 'Golos Text', 'Arial Black', sans-serif;
  --body: 'Onest', 'Manrope', sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 12%, rgba(47,110,86,.08), transparent 24rem),
    var(--bg);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #74ad92, var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

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

.container { width: min(var(--max), calc(100% - 64px)); }
.section, .case { border-bottom: 1px solid var(--line); }
.section.soft, .case.soft { background: var(--bg-soft); }

.nav {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: transparent;
  backdrop-filter: none;
}
.nav-inner { min-height: 86px; }
.brand { color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-color: var(--teal);
  color: var(--teal);
}
.brand-mark::after { background: var(--bg); border-color: var(--violet); }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--teal); }
.nav-badge {
  margin-left: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.hero {
  min-height: auto;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.hero-inner { padding: 74px 0 100px; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(48px, 7vw, 94px);
  align-items: center;
}
.hero-main { min-width: 0; }
.hero .eyebrow { margin-bottom: 24px; }
.eyebrow { color: var(--teal); }
.hero h1 {
  max-width: 800px;
  font-size: clamp(50px, 7.4vw, 102px);
  line-height: .96;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.hero h1 span { color: var(--teal); }
.hero-copy {
  display: block;
  max-width: 720px;
  margin-top: 34px;
}
.hero-copy .lead { max-width: 680px; }
.hero-note {
  margin-top: 28px;
  max-width: 620px;
  color: var(--muted);
  border-left: 3px solid var(--violet);
  padding-left: 20px;
}
.hero-actions { margin-top: 30px; }
.button {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255,255,255,.5);
  border-radius: 999px;
}
.button.primary { color: #fff; background: var(--teal); border-color: var(--teal); }
.button:hover { color: var(--teal); border-color: var(--teal); }
.button.primary:hover { color: #fff; background: #1f4b3b; }
.hero-portrait { position: relative; }
.hero-portrait-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  background: #d9ddd5;
  box-shadow: 0 38px 75px rgba(20,20,19,.18);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.hero-seal {
  position: absolute;
  left: -42px;
  bottom: -42px;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border: 7px solid var(--bg);
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  text-align: center;
  font-family: var(--display);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.js.motion-ready .hero .eyebrow,
.js.motion-ready .hero h1,
.js.motion-ready .hero-copy > *,
.js.motion-ready .hero-portrait {
  animation: heroEnter .8s cubic-bezier(.16,1,.3,1) both;
}
.js.motion-ready .hero h1 { animation-delay: .08s; }
.js.motion-ready .hero-copy .lead { animation-delay: .16s; }
.js.motion-ready .hero-actions { animation-delay: .24s; }
.js.motion-ready .hero-note { animation-delay: .32s; }
.js.motion-ready .hero-portrait { animation-delay: .12s; }
.js.motion-ready .hero-seal { animation: sealPulse 5.5s ease-in-out .9s infinite; }

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sealPulse {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.045); }
}

.metric-strip {
  background: #fff;
  border-color: var(--line);
}
.metric { border-color: var(--line); }
.metric strong { color: var(--ink); }
.metric span { color: var(--muted); }

.section-head { grid-template-columns: .7fr 1.3fr; }
.story-grid { background: var(--line); border-color: var(--line); box-shadow: 0 18px 50px rgba(20,20,19,.06); }
.story-panel { background: #fff; }
.story-panel.after { background: var(--surface-2); }
.story-label { color: var(--violet); }
.story-panel p { color: var(--lead); }
.story-panel blockquote { color: var(--ink); }

.case-number { color: var(--teal); font-weight: 700; }
.case-summary h2 { text-wrap: balance; }
.case-facts { border-color: var(--line); background: var(--line); box-shadow: 0 14px 38px rgba(20,20,19,.05); }
.fact { background: #fff; }
.fact dt { color: var(--muted); }
.fact dd { color: var(--ink); }
.problem, .solution, .result {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(20,20,19,.055);
}
.case-body h4 { color: var(--teal); }
.case-body p, .case-body li { color: var(--lead); }
.result { background: var(--teal-soft); border-color: rgba(47,110,86,.22); box-shadow: none; }
.result h4 { color: var(--ink); }
.case-metric { background: rgba(255,255,255,.7); border-color: var(--line); }
.case-metric strong { color: var(--teal); }
.case-metric span { color: var(--muted); }

.shot { border-color: var(--line); background: #fff; box-shadow: 0 12px 32px rgba(20,20,19,.08); }
.shot figcaption { color: #fff; background: rgba(22,40,31,.9); }
.gallery-head p { color: var(--muted); }
.summary-sample { background: #fff; border-color: var(--line); box-shadow: 0 12px 34px rgba(20,20,19,.05); }
.summary-sample .sample-head { border-color: var(--line); }
.summary-sample .sample-head span { color: var(--teal); }
.summary-columns h4 { color: var(--ink); }
.summary-columns p { color: var(--muted); }

.small-card { background: #fff; border-color: var(--line); box-shadow: 0 12px 34px rgba(20,20,19,.05); }
.small-card span { color: var(--violet); }
.small-card p { color: var(--muted); }
.platform-showcase {
  margin-top: 38px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 48px rgba(20,20,19,.07);
}
.platform-copy h3 { margin: 12px 0 18px; font-size: clamp(25px, 3vw, 36px); }
.platform-copy p, .platform-copy li { color: var(--lead); }
.platform-copy ul { margin: 22px 0 0; padding-left: 20px; }
.platform-copy li + li { margin-top: 10px; }
.platform-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.platform-shot { min-height: 0; margin: 0; aspect-ratio: 16 / 9; border-radius: 12px; }
.platform-shot:first-child { grid-column: 1 / -1; }
.platform-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.platform-shot figcaption { font-size: 11px; }
.services-list { border-color: var(--line); }
.service { border-color: var(--line); }
.service b { color: var(--teal); }
.service p { color: var(--muted); }

.closing {
  padding: 108px 0;
  color: #f1f4ee;
  background: linear-gradient(145deg, #2f6e56 0%, #16281f 72%);
  text-align: left;
}
.closing-inner {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 64px;
  align-items: start;
}
.closing .eyebrow { color: rgba(241,244,238,.65); }
.closing h2 { max-width: 880px; margin: 0; color: #fff; }
.closing p { max-width: 780px; margin: 26px 0 0; color: rgba(241,244,238,.78); }
.closing .closing-sign {
  display: block;
  margin-top: 34px;
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); }
.footer a { color: var(--teal); }
.lightbox { background: rgba(15,23,18,.94); }
.lightbox button { color: #fff; background: #22342b; border-color: rgba(255,255,255,.2); }

.js .reveal {
  opacity: 0;
  transform: translateY(34px) scale(.99);
  filter: blur(5px);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1), filter .7s ease;
}
.js .reveal.visible { opacity: 1; transform: none; filter: none; }
.js .stagger-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .75s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--motion-delay, 0ms);
}
.js .stagger-item.motion-visible { opacity: 1; transform: translateY(0); }
.small-card, .platform-shot, .problem, .solution, .result {
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.small-card:hover, .platform-shot:hover {
  transform: translateY(-7px);
  border-color: rgba(47,110,86,.34);
  box-shadow: 0 22px 48px rgba(20,20,19,.12);
}
.hero-portrait img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .js.motion-ready .hero .eyebrow,
  .js.motion-ready .hero h1,
  .js.motion-ready .hero-copy > *,
  .js.motion-ready .hero-portrait,
  .js.motion-ready .hero-seal { animation: none !important; }
  .js .reveal, .js .stagger-item { opacity: 1; transform: none; filter: none; transition: none; }
  .small-card:hover, .platform-shot:hover { transform: none; }
}

@media (max-width: 900px) {
  .container { width: min(var(--max), calc(100% - 40px)); }
  .nav-inner { min-height: 72px; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 360px; margin: 0 auto; }
  .hero-seal { width: 96px; height: 96px; left: -24px; bottom: -28px; font-size: 10px; }
  .hero h1 { font-size: clamp(46px, 12vw, 76px); }
  .section-head, .case-hero, .services, .closing-inner, .platform-showcase { grid-template-columns: 1fr; }
  .closing-inner { gap: 24px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav-inner { min-height: 64px; }
  .brand span:last-child { display: none; }
  .nav-badge { margin-left: auto; font-size: 10px; }
  .hero-inner { padding: 36px 0 72px; }
  .hero-portrait { max-width: 270px; }
  .hero h1 { font-size: clamp(40px, 14vw, 58px); }
  .hero-copy { margin-top: 24px; }
  .metric-strip { background: #fff; }
  .platform-showcase { padding: 22px; }
  .platform-shots { grid-template-columns: 1fr; }
  .platform-shot:first-child { grid-column: auto; }
  .closing { padding: 76px 0; }
}
