/* ============================================================
   Opscentrium — editorial stylesheet
   ============================================================ */

:root {
  --paper: #fbfaf8;
  --paper-2: #f4f2ed;
  --paper-3: #eeece5;
  --ink: #12161c;
  --ink-2: #2c333d;
  --muted: #6c7480;
  --muted-2: #9aa1ab;
  --line: #e3dfd7;
  --line-2: #cdc7bb;
  --accent: #0e5c4f;
  --accent-ink: #0a443b;
  --radius: 3px;
  --maxw: 1140px;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.06;
}

em { font-style: italic; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 4px;
}

/* ---------- Shared type ---------- */

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 26px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn--text {
  padding: 15px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
}
.btn--text span { transition: transform 0.25s ease; }
.btn--text:hover { border-bottom-color: var(--ink); }
.btn--text:hover span { transform: translateX(4px); }

.btn--sm { padding: 11px 20px; font-size: 12.5px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
}
.nav__links > a:not(.btn) {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.28s ease;
}
.nav__links > a:not(.btn):hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 1.4px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.2px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.2px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { padding: 96px 0 0; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr);
  gap: 72px;
  align-items: end;
  padding-bottom: 72px;
}

.hero h1 {
  font-size: clamp(3rem, 7.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin-bottom: 34px;
}
.hero h1 em {
  color: var(--accent);
}

.lede {
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 40px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.hero__aside { padding-bottom: 6px; }

.meta {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.meta > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.meta dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.meta dd {
  font-size: 13.5px;
  color: var(--ink);
  text-align: right;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.stats > div {
  padding: 30px 0 34px;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
.stats > div:last-child { border-right: 0; }
.stats > div:not(:first-child) { padding-left: 28px; }
.stats dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.stats dd {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--ink);
  line-height: 1;
}

/* ---------- Strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.strip__inner {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
  padding-block: 24px;
}
.strip .label { margin: 0; white-space: nowrap; }
.strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

/* ---------- Sections ---------- */

.section { padding: 116px 0; }
.section--alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 720px;
  margin-bottom: 64px;
}
.section__head .label { margin-bottom: 22px; }

.section h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.04;
  margin-bottom: 22px;
}

.section__sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
}

/* ---------- Services list ---------- */

.services { border-bottom: 1px solid var(--line); }

.service {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.35s ease, background 0.35s ease;
}
.service:hover {
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(14, 92, 79, 0.035), transparent 70%);
}

.service__num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--muted-2);
  padding-top: 6px;
}

.service h3 {
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.service__outcome {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
}

.service__detail > p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.72;
  padding-top: 4px;
}

.deliverables {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.deliverables li {
  position: relative;
  padding-left: 18px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-2);
}
.step {
  padding: 32px 28px 0 0;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 28px; }

.step__num {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.step h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.step p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Cases ---------- */

.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.case {
  padding: 34px 32px 0 0;
  border-right: 1px solid var(--line);
}
.case:last-child { border-right: 0; }
.case:not(:first-child) { padding-left: 32px; }

.case__metric {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.case__metric span {
  font-size: 0.42em;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-left: 4px;
}

.case h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
.case p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.case__meta {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10.5px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2) !important;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: 88px;
  align-items: start;
}

.about h2 { margin-bottom: 24px; }

.about__lede {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 34px;
}

.checks {
  display: grid;
  gap: 0;
  margin-bottom: 40px;
  border-top: 1px solid var(--line);
}
.checks li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.quote {
  margin: 0;
  padding: 44px 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quote blockquote {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.quote blockquote em { color: var(--accent); }

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.quote__avatar {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.quote figcaption strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.quote figcaption small {
  color: var(--muted-2);
  font-size: 0.82rem;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 88px;
  align-items: start;
}

.contact h2 { margin-bottom: 24px; }

.contact__lede {
  color: var(--muted);
  font-size: 1rem;
  max-width: 420px;
  margin-bottom: 40px;
}

.contact__list {
  display: grid;
  border-top: 1px solid var(--line);
}
.contact__list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.contact__list dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.contact__list dd {
  font-size: 14px;
  color: var(--ink);
  text-align: right;
}
.contact__list a {
  color: var(--accent);
  border-bottom: 1px solid rgba(14, 92, 79, 0.3);
  transition: border-color 0.2s ease;
}
.contact__list a:hover { border-bottom-color: var(--accent); }

.form {
  display: grid;
  gap: 26px;
  padding: 40px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field { display: grid; gap: 8px; }
.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 0;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  transition: border-color 0.22s ease;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field input:user-invalid,
.field textarea:user-invalid { border-bottom-color: #b4463c; }

.form .btn { margin-top: 6px; }

.form__note {
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: center;
  margin: 0;
}
.form__note.is-ok { color: var(--accent); }
.form__note.is-err { color: #b4463c; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: #b9bfc8;
  padding-top: 76px;
}
.footer .brand { color: var(--paper); }
.footer .brand__name { color: var(--paper); }

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 64px;
  padding-bottom: 56px;
}
.footer__brand p {
  margin-top: 18px;
  max-width: 280px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #8b929c;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer__cols h4 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f7681;
  margin-bottom: 18px;
}
.footer__cols a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #b9bfc8;
  transition: color 0.2s ease;
}
.footer__cols a:hover { color: var(--paper); }

.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #6f7681;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service, .nav__links a { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .hero__aside { max-width: 460px; }
  .service { grid-template-columns: 44px minmax(0, 1fr); gap: 24px 28px; }
  .service__detail { grid-column: 2; }
  .service__detail > p { padding-top: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { padding: 28px 24px 28px 0; }
  .step:nth-child(2n) { border-right: 0; padding-left: 24px; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cases { grid-template-columns: 1fr; }
  .case { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .case:not(:first-child) { padding-left: 0; }
  .case:last-child { border-bottom: 0; }
  .about,
  .contact__inner { grid-template-columns: 1fr; gap: 56px; }
  .footer__inner { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 32px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a:not(.btn) {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 20px; align-self: flex-start; }

  .hero { padding-top: 64px; }
  .hero__grid { padding-bottom: 56px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding: 24px 20px 26px 0; }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stats > div:not(:first-child) { padding-left: 0; }
  .stats > div:nth-child(2n) { padding-left: 24px; }
  .section { padding: 76px 0; }
  .section__head { margin-bottom: 44px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 22px; }
  .nav__links { padding-inline: 22px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 26px 0; border-right: 0; }
  .step:not(:first-child) { padding-left: 0; }
  .step:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .service { grid-template-columns: 1fr; gap: 14px; }
  .service__detail { grid-column: 1; }
  .service__num { padding-top: 0; }
  .form { padding: 26px; }
  .quote { padding: 30px 26px; }
  .quote blockquote { font-size: 1.3rem; }
  .contact__list > div { flex-direction: column; gap: 4px; }
  .contact__list dd { text-align: left; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip__list { gap: 10px 26px; font-size: 1.05rem; }
  .strip__inner { gap: 20px; }
}
