/* RIBORN — Clearscale palette & typography */

:root {
  --stone: #e0e0d8;
  --stone-deep: #d4d4cb;
  --ink: #0a0a0a;
  --ink-soft: #333333;
  --muted: #666666;
  --muted-2: #888888;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --line: #c8c8bf;
  --line-soft: #d8d8d0;
  --danger: #b42318;
  --ok: #1f6b3a;

  --font-display: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", Helvetica, Arial, sans-serif;
  --font-ui: "DM Sans", Helvetica, Arial, sans-serif;

  --container: 1100px;
  --header-h: 76px;
  --radius: 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink-soft);
  margin: 0 0 0.55em;
  letter-spacing: -0.02em;
}

h3 {
  font-weight: 400;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.5rem;
  border-radius: 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  opacity: 1;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn--primary:hover {
  background: #222;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn--light:hover {
  background: var(--stone);
  border-color: var(--stone);
  color: var(--ink);
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--stone);
  transition: box-shadow 0.25s ease;
}

.header.is-scrolled,
.header--solid {
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.logo:hover {
  opacity: 1;
  color: var(--ink);
}

.logo__mark img {
  width: 28px;
  height: 28px;
}

.logo__text {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.nav__link:hover {
  opacity: 0.65;
  color: var(--ink-soft);
}

.nav__cta {
  padding: 0.65rem 1.1rem;
  background: var(--ink);
  color: #fff !important;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav__cta:hover {
  opacity: 1 !important;
  background: #222;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  margin: 6px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

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

.section {
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

.section__head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section__head--light .section__title {
  color: #fff;
}

.section__head--light .section__lead {
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1rem;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.7);
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
}

.section__lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 50ch;
}

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

.hero {
  position: relative;
  padding: calc(var(--header-h) + 2.75rem) 0 0;
  background: var(--stone);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-bottom: 3.25rem;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0.85rem 0.85rem 1.1rem;
}

.hero__visual-back {
  position: absolute;
  inset: 1.35rem 0 0 1.35rem;
  border-radius: 22px;
  background: var(--ink);
  opacity: 0.08;
}

.hero__visual-frame {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.12);
  background: #d8d8d0;
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.1);
}

.hero__visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__visual-fade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.55) 100%);
  pointer-events: none;
}

.hero__visual-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero__visual-caption span {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 10, 10, 0.45);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
}

.hero__visual-chip {
  position: absolute;
  z-index: 3;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  box-shadow: 0 8px 20px rgba(10, 10, 10, 0.08);
}

.hero__visual-chip--top {
  top: 0;
  left: 1.6rem;
}

.hero__visual-chip--side {
  right: 0;
  bottom: 18%;
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink);
  padding: 0.95rem 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee__group {
  display: flex;
  gap: 2.25rem;
  padding-right: 2.25rem;
  white-space: nowrap;
}

.marquee__group span {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.marquee__group span::after {
  content: "·";
  margin-left: 2.25rem;
  color: rgba(255, 255, 255, 0.28);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.55rem 0.9rem;
  margin: 0 0 1.75rem;
}

.reveal-hero,
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

.reveal-hero.is-in,
.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-hero,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 3.5rem);
  font-weight: 300;
  color: var(--ink-soft);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 14ch;
  line-height: 1.12;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Problem ---------- */

.problem {
  background: var(--surface);
}

.problem__layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.problem__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 20px 48px rgba(10, 10, 10, 0.12);
}

.problem__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem__list {
  display: grid;
  gap: 0.75rem;
}

.pain {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--stone);
  transition: transform 0.3s var(--ease), border-color 0.25s ease;
}

.pain:hover {
  transform: translateX(4px);
  border-color: var(--ink);
}

.pain h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.pain p {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.services {
  background: var(--stone);
}

.section__head--center {
  text-align: center;
  margin-inline: auto;
}

.section__head--center .section__lead {
  margin-inline: auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.service {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  padding: 0;
  background: var(--surface);
  color: inherit;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 0;
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.25s ease;
}

.service:hover {
  transform: translateY(-5px);
  border-color: rgba(10, 10, 10, 0.28);
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.12);
  color: inherit;
  opacity: 1;
  background: var(--surface);
}

.service--plain {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.6rem 1.45rem 1.45rem;
  grid-template-rows: none;
}

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.95rem;
  flex-shrink: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0.85;
}

.service__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.service:hover .service__icon {
  opacity: 1;
}

.service--wide {
  grid-column: 1 / -1;
}

.service--plain.service--wide {
  grid-template-columns: none;
}

.service__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d8d8d0;
}

.service__media--wide {
  aspect-ratio: auto;
  min-height: 220px;
  height: 100%;
}

.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.service:hover .service__media img {
  transform: none;
}

.service__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem 1.35rem 1.4rem;
}

.service__label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.55rem;
}

.service h3 {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.service p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.service__link {
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
}

.service:hover .service__link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Advantages ---------- */

.advantages {
  background: var(--surface);
}

.advantages__hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 320px;
  margin-bottom: 1.5rem;
  box-shadow: 0 20px 48px rgba(10, 10, 10, 0.12);
}

.advantages__hero img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.advantages__hero-copy {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.78) 100%);
  color: rgba(255, 255, 255, 0.85);
}

.advantages__hero-copy h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 300;
  margin-bottom: 0.45rem;
  max-width: 18ch;
}

.advantages__hero-copy p:last-child {
  margin: 0;
  max-width: 42ch;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.advantage {
  padding: 1.4rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--stone);
  min-height: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.25s ease;
}

.advantage:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 14px 30px rgba(10, 10, 10, 0.08);
}

.advantage__n {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 0.7rem;
}

.advantage h3 {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.advantage p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Audience ---------- */

.audience {
  background: var(--stone);
  border-block: 1px solid var(--line-soft);
}

.audience__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.audience__media {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.1);
}

.audience__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audience__list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.audience__list li {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.audience__list strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
}

.audience__list span {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Process ---------- */

.process {
  background: var(--surface-2);
}

.process__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process__step {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  margin: 0;
}

.process__n {
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 0.85rem;
}

.process__step h3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.process__step p {
  color: var(--muted);
  font-size: 0.95rem;
}

.process__step {
  transition: background 0.25s ease, transform 0.35s var(--ease);
}

.process__step:hover {
  background: var(--stone);
  transform: translateY(-2px);
}

/* ---------- Principles ---------- */

.principles {
  background: var(--surface);
}

.principles__top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.75rem;
}

.principles__media {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 16px 36px rgba(10, 10, 10, 0.1);
}

.principles__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.principle {
  background: var(--stone);
  padding: 1.7rem 1.45rem;
  transition: background 0.25s ease;
}

.principle:hover {
  background: var(--surface);
}

.principle h3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.principle p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Commitments ---------- */

.commitments {
  background: var(--ink);
}

.commitments .section__title {
  color: #fff;
}

.commitments .section__lead {
  color: rgba(255, 255, 255, 0.68);
}

.commitments .eyebrow,
.commitments .eyebrow--light {
  color: rgba(255, 255, 255, 0.55);
}

.commitments__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.commitments__intro .section__lead {
  margin-bottom: 1.5rem;
}

.commitments__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.commitment {
  padding: 1.45rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.35s var(--ease);
}

.commitment:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}

.commitment h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.commitment p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

/* ---------- Company ---------- */

.company {
  background: var(--surface);
}

.office-carousel {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 18px 44px rgba(10, 10, 10, 0.12);
  background: #1a1a1a;
}

.office-carousel__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

.office-carousel__track {
  position: absolute;
  inset: 0;
}

.office-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.office-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.office-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.office-carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  padding-bottom: 3.4rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.78) 100%);
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.office-carousel__caption h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  margin: 0 0 0.35rem;
}

.office-carousel__caption p:last-child {
  margin: 0;
}

.office-carousel__controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.office-carousel__btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  background: rgba(10, 10, 10, 0.55);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.office-carousel__btn:hover {
  background: rgba(10, 10, 10, 0.7);
  border-color: rgba(255, 255, 255, 0.7);
}

.office-carousel__dots {
  display: flex;
  gap: 0.35rem;
  padding: 0 0.2rem;
}

.office-carousel__dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.office-carousel__dot.is-active {
  background: #fff;
}

.company__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: start;
}

.company__panel {
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.85rem 1.65rem;
}

.company__facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem 1.5rem;
}

.company__facts dt {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.3rem;
}

.company__facts dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 400;
}

.company__facts a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.company__facts a:hover {
  opacity: 0.65;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--ink);
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(0.2) contrast(1.05);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.62) 100%);
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 42ch;
  margin: 0;
}

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

.contact {
  background: var(--stone);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: start;
}

.contact__direct {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.contact__direct span {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.25rem;
}

.contact__direct a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.contact__direct a:hover {
  opacity: 0.65;
}

.contact__direct p {
  margin: 0;
  color: var(--ink-soft);
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.85rem 1.65rem;
  box-shadow: none;
}

.form__row {
  margin-bottom: 1.1rem;
}

.form__row label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.optional {
  font-weight: 400;
  color: var(--muted-2);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: none;
}

.form__row.is-invalid input {
  border-color: var(--danger);
}

.form__error {
  min-height: 1.1em;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--danger);
}

.form__status {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.form__status.is-success {
  color: var(--ok);
}

.form__status.is-error {
  color: var(--danger);
}

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

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 3rem 0 2.25rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer .logo__text {
  color: #fff;
}

.footer__brand p {
  margin-top: 0.85rem;
  max-width: 32ch;
  font-size: 0.95rem;
}

.footer__meta {
  text-align: right;
  font-size: 0.9rem;
}

.footer__meta p {
  margin-bottom: 0.35rem;
}

.footer__meta a {
  color: #fff;
}

.footer__meta a:hover {
  opacity: 0.7;
}

.footer__copy {
  margin-top: 0.85rem !important;
  opacity: 0.7;
}

/* ---------- Legal pages ---------- */

.page-legal {
  background: var(--stone);
}

.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}

.legal-page__inner {
  max-width: 720px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 300;
  color: var(--ink-soft);
}

.legal-page__updated {
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 2rem;
  color: var(--ink);
}

.legal-page ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.legal-page li {
  margin-bottom: 0.4rem;
}

.legal-page a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  opacity: 0.7;
}

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

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__content {
    max-width: none;
  }

  .hero__visual {
    max-width: 560px;
  }

  .hero__visual-chip--side {
    bottom: 12%;
    right: 0.4rem;
  }

  .problem__layout,
  .principles__top,
  .advantages__grid,
  .principles__grid,
  .commitments__layout,
  .audience__grid,
  .service--wide {
    grid-template-columns: 1fr;
  }

  .service--wide {
    grid-template-rows: auto auto;
  }

  .service__media--wide {
    min-height: 200px;
  }

  .process__grid,
  .commitments__grid,
  .company__grid,
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__meta {
    text-align: left;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--stone);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link,
  .nav__cta {
    padding: 0.85rem 0.25rem;
  }

  .nav__cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service--wide {
    grid-column: auto;
  }

  .company__facts,
  .problem__layout,
  .process__grid,
  .commitments__grid,
  .commitments__layout,
  .advantages__grid,
  .principles__grid,
  .audience__grid,
  .services__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 0;
  }

  .hero__visual-chip--top {
    left: 0.8rem;
  }

  .hero__visual-caption span {
    font-size: 0.64rem;
    padding: 0.35rem 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
