/* ============================================================
   RC Accounting — landing page
   ============================================================ */

:root {
  --gold:        #b8a584;
  --gold-dark:   #9c8560;
  --gold-soft:   #c9b795;
  --ink:         #3e3e43;
  --ink-deep:    #2e2e32;
  --head:        #28262b;
  --text:        #565656;
  --text-soft:   #9a9aa0;
  --line:        #ededed;
  --bg:          #ffffff;
  --bg-alt:      #f6f6f6;

  --sans: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --display: "Inter", "Montserrat", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --wrap: 1320px;
  --header-h: 74px;
  --ease: cubic-bezier(.25, .8, .25, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* a long unbroken word must not widen the layout */
  overflow-wrap: break-word;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* grid and flex children default to min-width:auto, so one long compound word
   stretches its whole track past the screen; this lets them shrink and wrap */
.steps__grid > *,
.services__grid > *,
.value__grid > *,
.benefits__grid > *,
.about__grid > *,
.goals > *,
.testimonials > *,
.contacts__grid > *,
.form__row > * { min-width: 0; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--head);
  font-weight: 500;
  line-height: 1.25;
}

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

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

svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 30px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
}
.skip-link:focus { left: 0; }

/* text that is baked into artwork — off-screen, but still in the outline */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- photography ----------
   The hero strips are still cropped out of the design screenshots. Everything
   below — the service cards, the two side panels, the goals shot and the
   portrait — is the designer's artwork, built from site/novisnimki by
   tools/build-photos.py; those files carry their text baked in, so each one
   ships per language and is never cropped through the type.
   Gradient stays behind each url() as a fallback.

   ?v= on the build-photos.py families is a cache buster. vercel.json serves
   /img/ with max-age=604800, so replacing one of these files under the same
   name leaves the CDN and every visitor's browser on the old bytes for a week.
   Bump it here AND in PHOTO_V in tools/build-i18n.mjs whenever those files are
   rebuilt with new artwork. Hero strips and service cards carry no token, so
   they are not re-downloaded for nothing. */
.ph {
  position: relative;
  background-color: #d8d5cf;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(200deg, #cfcabf 0%, #a9a49b 45%, #7d7a75 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ph[data-ph="office"]  { background-image: url("/img/photo/hero-office.jpg"),  linear-gradient(160deg, #c8c2b5, #8f8b83 60%, #5f5d5a);
  background-image: image-set(url("/img/photo/hero-office.webp") type("image/webp"),
                              url("/img/photo/hero-office.jpg") type("image/jpeg")),  linear-gradient(160deg, #c8c2b5, #8f8b83 60%, #5f5d5a); }
.ph[data-ph="meeting"] { background-image: url("/img/photo/hero-meeting.jpg"), linear-gradient(160deg, #c8c2b5, #8f8b83 60%, #5f5d5a);
  background-image: image-set(url("/img/photo/hero-meeting.webp") type("image/webp"),
                              url("/img/photo/hero-meeting.jpg") type("image/jpeg")), linear-gradient(160deg, #c8c2b5, #8f8b83 60%, #5f5d5a); }
.ph[data-ph="team"]    { background-image: url("/img/photo/hero-team.jpg"),    linear-gradient(215deg, #bdb6a7, #86827a 55%, #56555a);
  background-image: image-set(url("/img/photo/hero-team.webp") type("image/webp"),
                              url("/img/photo/hero-team.jpg") type("image/jpeg")),    linear-gradient(215deg, #bdb6a7, #86827a 55%, #56555a); }

.ph[data-ph="registration"] { background-image: url("/img/photo/svc-registration.jpg"), linear-gradient(140deg, #d7d1c4, #b0a996 55%, #8b8578);
  background-image: image-set(url("/img/photo/svc-registration.webp") type("image/webp"),
                              url("/img/photo/svc-registration.jpg") type("image/jpeg")), linear-gradient(140deg, #d7d1c4, #b0a996 55%, #8b8578); }
.ph[data-ph="consulting"]   { background-image: url("/img/photo/svc-consulting.jpg"),   linear-gradient(140deg, #d3cfc8, #aaa59a 55%, #83807b);
  background-image: image-set(url("/img/photo/svc-consulting.webp") type("image/webp"),
                              url("/img/photo/svc-consulting.jpg") type("image/jpeg")),   linear-gradient(140deg, #d3cfc8, #aaa59a 55%, #83807b); }
.ph[data-ph="bookkeeping"]  { background-image: url("/img/photo/svc-bookkeeping.jpg"),  linear-gradient(140deg, #dcd8cf, #b6b0a3 55%, #8e8880);
  background-image: image-set(url("/img/photo/svc-bookkeeping.webp") type("image/webp"),
                              url("/img/photo/svc-bookkeeping.jpg") type("image/jpeg")),  linear-gradient(140deg, #dcd8cf, #b6b0a3 55%, #8e8880); }
.ph[data-ph="payroll"]      { background-image: url("/img/photo/svc-payroll.jpg"),      linear-gradient(140deg, #d5cec0, #ada694 55%, #857f72);
  background-image: image-set(url("/img/photo/svc-payroll.webp") type("image/webp"),
                              url("/img/photo/svc-payroll.jpg") type("image/jpeg")),      linear-gradient(140deg, #d5cec0, #ada694 55%, #857f72); }
.ph[data-ph="closing"]      { background-image: url("/img/photo/svc-closing.jpg"),      linear-gradient(140deg, #d0ccc5, #a7a29a 55%, #7f7c78);
  background-image: image-set(url("/img/photo/svc-closing.webp") type("image/webp"),
                              url("/img/photo/svc-closing.jpg") type("image/jpeg")),      linear-gradient(140deg, #d0ccc5, #a7a29a 55%, #7f7c78); }
.ph[data-ph="admin"]        { background-image: url("/img/photo/svc-admin.jpg"),        linear-gradient(140deg, #dad4c6, #b3ac99 55%, #8a8477);
  background-image: image-set(url("/img/photo/svc-admin.webp") type("image/webp"),
                              url("/img/photo/svc-admin.jpg") type("image/jpeg")),        linear-gradient(140deg, #dad4c6, #b3ac99 55%, #8a8477); }

/* The two side panels and the goals shot carry their headline, sub-line and
   paragraph baked into the artwork, so nothing is drawn over them and `cover`
   must never crop through the type. tools/build-photos.py builds every language
   variant of one family to a single ratio — 3:2 for the panels, 1:1 for the
   goals shot — and the boxes below are given that ratio, so stacked the file
   fits its box exactly: full bleed, no letterbox strip, nothing lost. */
.ph[data-ph="handshake"]  { background-image: url("/img/photo/panel-value.jpg?v=2"),  linear-gradient(150deg, #f2ece5, #e6ddd4 45%, #d3c9bf);
  background-image: image-set(url("/img/photo/panel-value.webp?v=2") type("image/webp"),
                              url("/img/photo/panel-value.jpg?v=2") type("image/jpeg")),  linear-gradient(150deg, #f2ece5, #e6ddd4 45%, #d3c9bf); }
.ph[data-ph="handshake2"] { background-image: url("/img/photo/panel-quotes.jpg?v=2"), linear-gradient(150deg, #f2ece5, #e6ddd4 45%, #d3c9bf);
  background-image: image-set(url("/img/photo/panel-quotes.webp?v=2") type("image/webp"),
                              url("/img/photo/panel-quotes.jpg?v=2") type("image/jpeg")), linear-gradient(150deg, #f2ece5, #e6ddd4 45%, #d3c9bf); }

.ph[data-ph="portrait"] {
  /* cut out, no backdrop of its own — the webp keeps the alpha so the section
     shows through; the jpeg fallback is flattened onto --bg-alt at build time,
     so that colour has to stay in step with the .about background */
  background-image: url("/img/photo/about-portrait.jpg?v=2");
  background-image: image-set(url("/img/photo/about-portrait.webp?v=2") type("image/webp"),
                              url("/img/photo/about-portrait.jpg?v=2") type("image/jpeg"));
  background-color: transparent;
  background-size: contain;
  background-position: center;
}
.ph[data-ph="desk"] {
  background-image: url("/img/photo/goals-desk.jpg?v=2");
  background-image: image-set(url("/img/photo/goals-desk.webp?v=2") type("image/webp"),
                              url("/img/photo/goals-desk.jpg?v=2") type("image/jpeg"));
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 16px 42px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.55);
  background: transparent;
}
.btn--ghost:hover { background: #fff; color: var(--head); border-color: #fff; }
.btn--solid {
  color: var(--head);
  background: transparent;
  border-color: var(--line);
}
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--gold {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--outline-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,.45);
}
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn[hidden] { display: none; }

.link-cta {
  align-self: flex-start;
  margin-top: auto;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--head);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-cta:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- header: transparent, overlays the hero (matches the design) ---------- */
.header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 26px 0;
  font-size: 11px;
  letter-spacing: .01em;
  min-height: 38px;
  border-bottom: 1px dotted rgba(255,255,255,.28);
  flex-wrap: wrap;
}
.topbar__item { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.92); transition: color .3s var(--ease); }
.topbar__item:hover { color: var(--gold-soft); }
.topbar__sep { width: 26px; height: 1px; background: rgba(255,255,255,.4); transform: rotate(-70deg); }
.ico { width: 14px; height: 14px; flex: none; }
.ico--gold { color: var(--gold); width: 18px; height: 18px; }

.navrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 200px;
}

.brand {
  position: absolute;
  left: 34px;
  display: inline-flex;
  align-items: center;
}
/* the whole lockup, wordmark included, at the artwork's own 296x240 — height
   leads, width follows. 60px is what the 75px navrow holds without the
   absolutely positioned brand spilling over the topbar. */
.brand__pic { display: flex; flex: none; }
.brand__mark { width: auto; height: 60px; }
.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}
.nav__link {
  position: relative;
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-soft);
  transition: width .35s var(--ease);
}
.nav__link:hover { color: var(--gold-soft); }
.nav__link:hover::after { width: 100%; }
.nav__link--boxed {
  border: 1px solid rgba(255,255,255,.55);
  padding: 8px 15px;
}
.nav__link--boxed::after { display: none; }
.nav__link--boxed:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- mobile menu: burger + slide-in drawer ---------- */
.burger {
  display: none;
  position: absolute;
  right: 22px;
  width: 26px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.burger span {
  display: block;
  height: 1.6px;
  background: #fff;
  margin: 6px 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.burger span:first-child { margin-top: 0; }
.burger.is-open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 300;
  width: min(84vw, 340px);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0,0,0,.25);
}
.drawer[hidden] { display: none; }
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--ink-deep);
  color: #fff;
}
.drawer__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.drawer__close {
  width: 30px; height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.drawer__close svg { width: 100%; height: 100%; stroke-width: 1.5; }
.drawer__nav { padding: 12px 26px 6px; text-align: center; }
.drawer__nav a {
  display: block;
  padding: 17px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--head);
}
.drawer__nav a + a { border-top: 1px solid var(--line); }
.drawer__nav a:hover, .drawer__nav a:focus-visible { color: var(--gold); }
.drawer__lang {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .14em;
}
.drawer__lang .lang__link { color: var(--text-soft); }
.drawer__lang .lang__link.is-active { color: var(--gold); }
.drawer__lang .lang__link + .lang__link { padding-left: 10px; border-left: 1px solid var(--line); }
.drawer__meta {
  display: grid;
  gap: 8px;
  padding: 0 26px 26px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text);
}
.drawer__backdrop {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(24,24,28,.55);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.drawer__backdrop[hidden] { display: none; }
.drawer__backdrop.is-open { opacity: 1; }
body.is-locked { overflow: hidden; }
/* the drawer has its own close button — hide the burger behind it */
body.is-locked .burger { opacity: 0; pointer-events: none; }
.burger { transition: opacity .25s var(--ease); }

.lang {
  position: absolute;
  right: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .14em;
}
.lang__link {
  color: rgba(255,255,255,.55);
  transition: color .3s var(--ease);
}
.lang__link + .lang__link { padding-left: 9px; border-left: 1px solid rgba(255,255,255,.28); }
.lang__link:hover { color: #fff; }
.lang__link.is-active { color: #fff; }

/* ---------- hero ----------
   Geometry and type sizes measured off the design screenshots at a 1374x654
   viewport: eyebrow 30px serif, headline cap-height 33px (~47px), 49.5px
   leading, serif 18px lead paragraph, 205x37 button. */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink-deep);
}
.hero__slides { position: relative; min-height: inherit; }
.hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
/* two layers over the photo: an even vertical wash for the header and dots,
   plus a soft pool behind the headline so it reads over bright desks too */
.hero__slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,28,32,.56), rgba(28,28,32,.46) 45%, rgba(28,28,32,.6));
  z-index: 1;
}
.hero__slide::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(64% 54% at 50% 48%, rgba(16,16,20,.58), rgba(16,16,20,0) 76%);
  z-index: 1;
}
.hero__content {
  position: relative;
  /* above both overlays — ::after is the last child, so without this the
     radial layer paints over the headline and dims it */
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  padding: 129px 28px 56px;
}
.hero__eyebrow {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.3;
  color: var(--gold-soft);
  margin: 0 0 17px;
}
.hero__title {
  font-family: var(--display);
  font-weight: 300;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .005em;
  word-spacing: -3px;
  font-size: clamp(26px, 3.3vw, 45px);
  line-height: 1.1;
  margin: 0 0 14px;
}
.hero__title-accent {
  display: inline;
}
.orn {
  display: inline-block;
  width: .82em;
  height: .48em;
  margin: 0 .05em;
  vertical-align: .2em;
  color: #fff;
}
.orn--flip { transform: scaleX(-1); }
.orn path { stroke-linecap: butt; }
.hero__text {
  max-width: 700px;
  margin: 0 auto 32px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 25px;
  color: rgba(255,255,255,.97);
}
.hero .btn--ghost { padding: 12px 30px; font-size: 11px; letter-spacing: .19em; line-height: 1.2; }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 60px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.1);
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: background-color .3s var(--ease), opacity .3s var(--ease);
}
.hero:hover .hero__arrow,
.hero__arrow:focus-visible { opacity: 1; }
.hero__arrow:hover { background: rgba(255,255,255,.24); }
.hero__arrow svg { width: 22px; height: 22px; }
.hero__arrow--prev { left: 0; }
.hero__arrow--next { right: 0; }

.dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 5;
}
.dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.dots button.is-active { background: #fff; transform: scale(1.3); }
.dots--dark { bottom: 22px; }
.dots--dark button { background: rgba(0,0,0,.2); }
.dots--dark button.is-active { background: var(--gold); }

/* ---------- steps ---------- */
.steps { padding: 96px 0; }
/* the design runs this grid edge to edge, with the dividers between columns */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1500px;
  padding: 0;
}
.step { padding: 0 66px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; padding-left: 60px; }
.step__num {
  display: block;
  font-family: var(--serif);
  font-size: 84px;
  line-height: .95;
  color: var(--gold);
  margin-bottom: 30px;
}
.step__title {
  font-size: 14px;
  letter-spacing: .01em;
  margin-bottom: 23px;
  color: var(--head);
  font-weight: 600;
}
.step p { font-size: 12.8px; line-height: 25.4px; }

/* ---------- generic section ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 70px 0; }
.section__head { text-align: center; margin-bottom: 62px; }
.section__title {
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--head);
}
.section__rule {
  display: block;
  width: 78px;
  height: 1px;
  margin: 22px auto 0;
  background: var(--gold);
}

/* ---------- services ---------- */
.services { background: #fff; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  /* every card carries the same side padding so the square media is identical in
     each column; the negative margin puts the outer edges back on the wrap edge.
     It matches .wrap's own padding, so the grid never spills past the viewport. */
  margin: 0 -30px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 0 30px 8px;
  border-left: 1px solid var(--line);
}
.card:nth-child(3n+1) { border-left: 0; }
.card:nth-child(n+4) { margin-top: 62px; }
.card__media {
  aspect-ratio: 1 / 1;
  margin-bottom: 26px;
  filter: grayscale(.15);
  transition: filter .5s var(--ease), transform .6s var(--ease);
}
.card:hover .card__media { filter: grayscale(0); transform: translateY(-4px); }
.card__text { font-size: 13.5px; line-height: 2; margin-bottom: 26px; }

/* ---------- value (what clients get) ---------- */
.value {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.value__aside {
  position: relative;
}

.value__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.feature {
  position: relative;
  min-height: 250px;
  padding: 46px 40px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  overflow: hidden;
  outline-offset: -3px;
}
.feature:nth-child(2n+1) { border-left: 0; }
.feature:nth-last-child(-n+2) { border-bottom: 0; }
.feature__face, .feature__back {
  transition: opacity .4s var(--ease), transform .45s var(--ease);
}
.feature__ico { width: 30px; height: 30px; color: var(--head); margin-bottom: 22px; }
.feature h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.feature__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-soft);
}
.feature__back {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 40px;
  background: var(--bg-alt);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}
.feature__back p { font-size: 13px; line-height: 1.95; }
.feature:hover .feature__face,
.feature:focus-within .feature__face { opacity: 0; transform: translateY(-14px); }
.feature:hover .feature__back,
.feature:focus-within .feature__back { opacity: 1; transform: translateY(0); }

/* ---------- benefits ---------- */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1400px;
  margin: 0 auto;
}
.benefit {
  padding: 74px 52px;
  text-align: center;
}
.benefit__ico { width: 34px; height: 34px; margin: 0 auto 22px; }
.benefit h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.benefit p { font-size: 13.5px; line-height: 2; }
.benefit--light { background: #fff; color: var(--text); }
.benefit--light .benefit__ico { color: var(--gold); }
.benefit--gold { background: var(--gold); }
.benefit--gold h3 { color: #fff; }
.benefit--gold p { color: rgba(255,255,255,.9); }
.benefit--gold .benefit__ico { color: #fff; }
.benefit--dark { background: var(--ink); }
.benefit--dark h3 { color: #fff; }
.benefit--dark p { color: rgba(255,255,255,.82); }
.benefit--dark .benefit__ico { color: var(--gold-soft); }

/* ---------- about ---------- */
.about { background: var(--bg-alt); }
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: start;
}
.about__kicker {
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--head);
  margin-bottom: 2px;
}
.about__kicker-sub {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: .16em;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 34px;
}
.about__quote {
  position: relative;
  margin: 0;
  padding-left: 44px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  line-height: 2.05;
  color: #5f5f65;
}
.about__quote::before {
  content: "\201C";
  position: absolute;
  left: 0; top: 6px;
  font-family: var(--serif);
  font-size: 62px;
  line-height: .8;
  color: var(--gold);
  opacity: .55;
}
.about__figure { position: relative; }
.about__photo {
  position: relative;
  /* the gold frame is part of the artwork, so the box keeps the file's ratio */
  aspect-ratio: 1;
  width: 100%;
}

/* ---------- goals ---------- */
.goals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
}
.goals__media {
  position: relative;
}
.goals__body { padding: 80px 8vw 80px 60px; align-self: center; }
.goals__title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.goals__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--gold);
  margin-bottom: 26px;
}
.goals__list { margin: 0 0 28px; }
.goals__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 13.5px;
}
.goals__list li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.goals__memberships-title { font-size: 13.5px; margin-bottom: 18px; }
.goals__memberships li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.75;
}

/* ---------- clients ---------- */
.clients { background: #fff; }
.clients__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.clients__cell {
  flex: 0 0 16.6666%;
  display: grid;
  place-items: center;
  padding: 26px;
  min-height: 140px;
  margin: -1px 0 0 -1px;
  border: 1px solid var(--line);
}
.clients__cell img {
  max-height: 82px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .4s var(--ease), opacity .4s var(--ease);
}
.clients__cell:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.testimonials__slider {
  position: relative;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  padding: 100px 96px;
}
.testimonials__track { position: relative; width: 100%; max-width: 560px; }
.quote {
  margin: 0;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity .5s var(--ease), visibility .5s;
}
.quote.is-active { position: relative; opacity: 1; visibility: visible; }
.quote blockquote {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 2;
  color: #5f5f65;
}
.quote__mark {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 12px;
}
.quote figcaption strong {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--head);
  margin-bottom: 4px;
}
.quote figcaption span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--text-soft);
}

.q-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: transparent;
  border: 0;
  color: var(--head);
  cursor: pointer;
  transition: color .3s var(--ease);
}
.q-arrow:hover { color: var(--gold); }
.q-arrow svg { width: 24px; height: 24px; }
.q-arrow--prev { left: 22px; }
.q-arrow--next { right: 22px; color: var(--gold); }

.testimonials__aside {
  position: relative;
}

/* ---------- contacts ---------- */
.contacts { background: #fff; }
.contacts__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
}
.contacts__title {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .28em;
  margin-bottom: 40px;
}
.contacts__item { margin-bottom: 26px; }
.contacts__item h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contacts__item p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  margin: 0;
}
.contacts__item a:hover { color: var(--gold); }

.socials { display: flex; gap: 0; margin-top: 34px; }
.social {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-left: 0;
  color: var(--head);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.social:first-child { border-left: 1px solid var(--line); }
.social svg { width: 18px; height: 18px; }
.social.is-primary, .social:hover {
  background: var(--head);
  border-color: var(--head);
  color: #fff;
}

/* ---------- form ---------- */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--head);
  background: var(--bg-alt);
  border: 1px solid transparent;
  padding: 16px 18px;
  resize: vertical;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-soft); }
.field input:not([type="checkbox"]):focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #b3403a;
}
.field.has-error input,
.field.has-error textarea { border-color: #d3766f; background: #fdf6f5; }
.field.has-error .field__error { display: block; animation: error-in .3s var(--ease) both; }

/* An error the reader may already be looking at has to announce itself, so the
   field nudges once when a message lands. main.js adds .is-shake and drops it
   on animationend, which is what lets it replay on a second failed submit —
   re-adding .has-error would not, it is already there. The reduced-motion
   block at the end of the file cuts every animation duration, this one too. */
@keyframes error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@keyframes error-shake {
  0%, 100% { transform: translateX(0); }
  16% { transform: translateX(-5px); }
  33% { transform: translateX(4px); }
  50% { transform: translateX(-3px); }
  66% { transform: translateX(2px); }
  83% { transform: translateX(-1px); }
}
.field.is-shake input:not([type="checkbox"]),
.field.is-shake textarea,
.field.is-shake .check,
.form__note.is-shake { animation: error-shake .5s var(--ease); }

.field--check { margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; cursor: pointer; }
.check input {
  appearance: none;
  padding: 0;
  width: 17px; height: 17px;
  flex: none;
  margin-top: 3px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.check input:checked {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 3px #fff;
}
.field.has-error .check input { border-color: #d3766f; }

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.form__note { margin: 0; font-size: 12.5px; color: var(--text-soft); }
.form__note.is-ok { color: var(--gold-dark); }
.form__note.is-error { color: #b3403a; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink-deep);
  color: rgba(255,255,255,.62);
  font-size: 12.5px;
  padding: 34px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer p { margin: 0; }

/* ---------- to top ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--head);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- cookie consent ---------- */
.footer__link {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.35);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer__link:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--ink-deep);
  color: rgba(255,255,255,.78);
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 -14px 40px rgba(0,0,0,.28);
  transform: translateY(100%);
  transition: transform .45s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie.is-open { transform: translateY(0); }
.cookie__inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.cookie__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}
.cookie__text { font-size: 13px; line-height: 1.85; margin: 0; max-width: 760px; }

.cookie__settings {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.cookie__settings[hidden] { display: none; }
.cookie__cat { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.cookie__cat input {
  appearance: none;
  flex: none;
  width: 17px; height: 17px;
  margin: 3px 0 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.cookie__cat input:checked {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 3px var(--ink-deep);
}
.cookie__cat input:disabled { cursor: default; opacity: .65; }
.cookie__cat span { font-size: 12.5px; line-height: 1.7; }
.cookie__cat strong {
  display: block;
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 2px;
}

.cookie__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 210px;
}
.cookie__actions .btn { padding: 13px 26px; text-align: center; }
.cookie__actions #ckSave { order: 1; }
.cookie__actions #ckToggle { order: 2; }
.cookie__link {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.cookie__link[hidden] { display: none; }
.cookie__link:hover { color: var(--gold-soft); }

/* the banner spans the full width — hide the back-to-top under it */
.cookie.is-open ~ .to-top { opacity: 0; pointer-events: none; }

@media (max-width: 900px) {
  /* burger replaces the inline menu */
  .burger { display: block; }
  .nav { display: none; }
  .lang { display: none; }
  .navrow { justify-content: flex-start; padding: 14px 20px; }
  .brand { position: static; }

  /* services + client-value turn into swipeable, auto-advancing sliders */
  .services__grid,
  .value__grid {
    display: flex;
    margin: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services__grid::-webkit-scrollbar,
  .value__grid::-webkit-scrollbar { display: none; }
  .services__grid > .card,
  .value__grid > .feature {
    flex: 0 0 100%;
    scroll-snap-align: start;
    margin-top: 0 !important;
  }
  .services__grid > .card { padding: 0 0 8px; border-left: 0; }
  /* one card fills the slide, so cap the square media instead of letting it
     grow to the full tablet width */
  .card__media { width: 100%; max-width: 420px; align-self: center; }
  .m-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    padding-top: 26px;
  }
  .m-dots button {
    width: 8px; height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.18);
    cursor: pointer;
    transition: background-color .3s var(--ease), transform .3s var(--ease);
  }
  .m-dots button.is-active { background: var(--gold); transform: scale(1.3); }
  .value .m-dots { padding: 22px 0 30px; }
}

@media (max-width: 700px) {
  .cookie__inner { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .cookie__actions { min-width: 0; }
  .cookie__text { font-size: 12.5px; }
  .cookie { max-height: 88vh; overflow-y: auto; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .steps__grid, .services__grid, .benefits__grid { grid-template-columns: 1fr 1fr; }
  .steps__grid { padding: 0 30px; }
  .step { padding: 0 40px; }
  .step:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .step:nth-child(2n) { padding-right: 0; }
  .step:nth-child(n+3) { margin-top: 54px; }
  .card:nth-child(3n+1) { border-left: 1px solid var(--line); }
  .card:nth-child(2n+1) { border-left: 0; }
  .card:nth-child(n+3) { margin-top: 54px; }
  .clients__cell { flex-basis: 25%; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__figure { max-width: 420px; }
  .goals__body { padding: 64px 28px; }

  /* Below this the half-width column is narrower than it is tall, and the
     artwork these three sections carry is landscape — side by side it would sit
     as a thin strip in a deep band. Stacked it runs the full width at the ratio
     tools/build-photos.py builds it to, so `cover` fits it exactly. */
  .value, .goals, .testimonials { grid-template-columns: 1fr; }
  .value__aside, .testimonials__aside { aspect-ratio: 3 / 2; }
  /* goals: photo after the text, testimonials: quotes under the panel */
  .goals__media { aspect-ratio: 1; order: 2; }
  .goals__body { order: 1; }
  .testimonials__aside { order: 1; }
  .testimonials__slider { order: 2; }
}

/* Side by side the column is taller than the artwork, so these three swap to
   the -fill copies: the same picture padded above and below with a stretched
   copy of its own outermost row. `cover` then bleeds the column full width and
   eats that padding instead of the artwork — no strip, nothing cropped.
   The padding runs out at a 0.58 ratio, narrower than any column the layout
   makes (0.65 at 1101px, the first width with two columns).
   min-height guards the other end: a column wider than the artwork's ratio
   would crop it vertically instead. The column is half the viewport, so 33.4vw
   holds the panels at or below 3:2 and 50vw holds the goals shot at 1:1. */
@media (min-width: 1101px) {
  .ph[data-ph="handshake"]  { background-image: url("/img/photo/panel-value-fill.jpg?v=2"),  linear-gradient(150deg, #f2ece5, #e6ddd4 45%, #d3c9bf);
    background-image: image-set(url("/img/photo/panel-value-fill.webp?v=2") type("image/webp"),
                                url("/img/photo/panel-value-fill.jpg?v=2") type("image/jpeg")),  linear-gradient(150deg, #f2ece5, #e6ddd4 45%, #d3c9bf); }
  .ph[data-ph="handshake2"] { background-image: url("/img/photo/panel-quotes-fill.jpg?v=2"), linear-gradient(150deg, #f2ece5, #e6ddd4 45%, #d3c9bf);
    background-image: image-set(url("/img/photo/panel-quotes-fill.webp?v=2") type("image/webp"),
                                url("/img/photo/panel-quotes-fill.jpg?v=2") type("image/jpeg")), linear-gradient(150deg, #f2ece5, #e6ddd4 45%, #d3c9bf); }
  .ph[data-ph="desk"] { background-image: url("/img/photo/goals-desk-fill.jpg?v=2");
    background-image: image-set(url("/img/photo/goals-desk-fill.webp?v=2") type("image/webp"),
                                url("/img/photo/goals-desk-fill.jpg?v=2") type("image/jpeg")); }

  .value__aside, .testimonials__aside { min-height: 33.4vw; }
  .goals__media { min-height: 50vw; }
}

@media (max-width: 900px) {
  .navrow { padding: 14px 20px; flex-wrap: wrap; gap: 14px; }
  .nav__list { gap: 22px; }
  .lang { position: static; }

  .testimonials__slider { padding: 76px 62px; }
  .benefits__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 700px) {
  .section, .steps { padding: 68px 0; }
  .section__head { margin-bottom: 44px; }
  .section__title { letter-spacing: .2em; }
  .steps__grid { grid-template-columns: 1fr; padding: 0 30px; }
  .step { border-left: 0; padding: 0; }
  .step:nth-child(n+2) { margin-top: 46px; padding-top: 46px; border-top: 1px solid var(--line); }
  .card { border-left: 0 !important; padding: 0 !important; }
  .card:nth-child(n+2) { margin-top: 46px; }
  .feature { border-left: 0; min-height: 0; padding: 34px 28px; }
  .feature:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: 0; }
  .feature__back { position: static; opacity: 1; transform: none; padding: 16px 0 0; background: transparent; }
  .feature:hover .feature__face, .feature:focus-within .feature__face { opacity: 1; transform: none; }
  .feature__lead { display: none; }
  .clients__cell { flex-basis: 50%; }
  .form__row { grid-template-columns: 1fr; }
  .testimonials__slider { padding: 62px 22px 76px; }
  /* keep the arrows inside the viewport — at -4px they widened the document */
  .q-arrow--prev { left: 0; }
  .q-arrow--next { right: 0; }
  .hero__arrow { width: 36px; height: 52px; }
  .nav__list { gap: 14px; }
  .brand { position: static; left: auto; }
  .brand__mark { height: 44px; }
  .nav__link { font-size: 10.5px; letter-spacing: .12em; }
  .nav__link--boxed { padding: 6px 11px; }
  /* phone left, email right */
  .topbar__inner {
    justify-content: space-between;
    gap: 8px;
    font-size: 10.5px;
    padding: 6px 18px 0;
    flex-wrap: nowrap;
  }
  .topbar__item { min-width: 0; }
  .topbar__item:last-child { justify-content: flex-end; }
  .topbar__sep { display: none; }
  .footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
