

/* Start:/local/templates/repin/assets/css/main.css?179249806632392*/
/* styles for the home page (index.html) */

@font-face {
  font-family: "Inter";
  src: url("/local/templates/repin/assets/css/../fonts/Inter-cyrillic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("/local/templates/repin/assets/css/../fonts/Inter-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "HostGrotesk";
  src: url("/local/templates/repin/assets/css/../fonts/HostGrotesk-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --x-default: clamp(16px, 4vw, 40px);
  --y-default: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #fff;
  color: rgba(255,255,255,0.9);
  font-family: "HostGrotesk", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* in the document outline and for screen readers, but not on screen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--y-default) var(--x-default);
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0));
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* blur behind the header: two layers instead of seven — a light blur over
   the lower band and a stronger one at the very top, so it still fades in
   softly. Each backdrop-filter layer is re-rendered on every scroll frame,
   and seven of them cost ~0.4s of first paint and dropped frames on weak
   phones. */
.header-blur {
  position: fixed;
  pointer-events: none;
  z-index: 25;
  top: 0;
  left: 0;
  right: 0;
  height: 130px;
}

.header-blur div {
  position: absolute;
  inset: 0;
}

.header-blur div:nth-child(1) {
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  mask: linear-gradient(to top, rgba(0,0,0,0), rgb(0,0,0) 30%, rgb(0,0,0) 60%, rgba(0,0,0,0) 80%);
}

.header-blur div:nth-child(2) {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask: linear-gradient(to top, rgba(0,0,0,0) 50%, rgb(0,0,0) 85%);
}

/* phones: no blur at all — a slightly denser header gradient keeps the
   logo and burger readable over light photos instead */
@media (max-width: 767px) {
  .header-blur { display: none; }
  header { background: none; }
  /* the header bar itself is only ~56px tall on phones, so the shade is a
     taller layer of its own, fading out well below the logo */
  header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 110px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.4) 55%, rgba(0,0,0,0));
    transition: opacity 0.3s ease;
  }
  body.menu-open header::before { opacity: 0; }
}

.logo {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg { width: 22px; height: auto; fill: #fff; transition: fill 0.3s ease; }

.logo span {
  font-size: 20px;
  font-weight: 400;
}

/* desktop nav (>=640px) */
.desktop-nav {
  display: none;
}

@media (min-width: 640px) {
  .desktop-nav { display: flex; }
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(24px, 3vw, 48px);
}

.desktop-nav a {
  position: relative;
  display: inline-block;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  opacity: 1;
}

/* letter-wipe hover: the visible word slides out letter by letter while
   an identical copy slides in from the left underneath it, staggered */
.nav-word {
  position: relative;
  display: inline-flex;
}

.nav-word.is-duplicate {
  position: absolute;
  top: 0;
  left: 0;
}

.nav-word .letter {
  display: inline-block;
  overflow: hidden;
}

.nav-word .letter span {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 0.035s);
}

.nav-word.is-duplicate .letter span {
  transform: translateX(-100%);
}

@media (hover: hover) {
  .desktop-nav a:hover .nav-word:not(.is-duplicate) .letter span,
  .see-all-work:hover .nav-word:not(.is-duplicate) .letter span,
  .hero-cta:hover .nav-word:not(.is-duplicate) .letter span,
  .menu nav a:hover .nav-word:not(.is-duplicate) .letter span {
    transform: translateX(100%);
  }

  .desktop-nav a:hover .nav-word.is-duplicate .letter span,
  .see-all-work:hover .nav-word.is-duplicate .letter span,
  .hero-cta:hover .nav-word.is-duplicate .letter span,
  .menu nav a:hover .nav-word.is-duplicate .letter span {
    transform: translateX(0%);
  }
}

.burger {
  position: relative;
  z-index: 10;
  width: 28px;
  height: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  height: 1px;
  width: 100%;
  background: #fff;
  transition: transform 0.4s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}

.burger span:nth-child(3) { width: 50%; align-self: flex-end; }

body.menu-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) {
  width: 100%;
  transform: translateY(-4.5px) rotate(-45deg);
}
body.menu-open .burger span { background: #000; }
body.menu-open .logo svg { fill: #000; }
body.menu-open .logo span { color: #000; }
body.menu-open header { background: transparent; }
body.menu-open .desktop-nav { display: none; }

/* ---------- overlay menu ---------- */

.menu {
  position: fixed;
  z-index: 35;
  top: 0;
  left: 0;
  right: 0;
  height: 100svh;
  min-height: fit-content;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  color: #000;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  padding: var(--x-default);
  padding-top: 90px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.menu-open .menu { transform: translateY(0); }

.menu nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.menu nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 1020px) {
  .menu nav ul { gap: 40px; }
}

.menu nav a {
  position: relative;
  display: block;
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 13px;
  text-transform: uppercase;
  opacity: 0.7;
}

.menu-footer .lang { display: flex; gap: 6px; }
.menu-footer .lang span:first-child { opacity: 1; font-weight: 600; }
.menu-footer .social { display: flex; gap: 16px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.18);
  animation: hero-zoom-out 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform;
}

@keyframes hero-zoom-out {
  to { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 45%),
    linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 25%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 100px var(--x-default) var(--y-default);
}

.hero-heading-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.hero h1 {
  width: 100%;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  font-size: clamp(38px, min(12vw, calc((100svh - 80px) / 2)), 280px);
}

.hero h1 .line-mask {
  display: block;
  overflow: hidden;
}

.hero h1 .line-mask:not(:last-child) {
  margin-bottom: 0.12em;
}

.hero h1 .line-mask span {
  display: block;
  transform: translateY(110%);
  animation: line-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 .line-mask:nth-child(1) span { text-align: left; animation-delay: 0.15s; }
.hero h1 .line-mask:nth-child(2) span { text-align: right; animation-delay: 0.25s; }

@keyframes line-reveal {
  to { transform: translateY(0); }
}

/* bottom row of the first screen: description on the left, call to action
   on the right */
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
}

.hero-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.55s;
}

/* from tablets up it sits top right, in the same place as "Обсудить проект"
   on the projects page (120px section padding + 0.6em offset) */
@media (min-width: 768px) {
  .hero-cta {
    position: absolute;
    top: 131px;
    right: var(--x-default);
  }
}

.hero-cta svg { width: 12px; height: 12px; }
.hero-cta .letter-wipe { position: relative; display: inline-block; }

@media (max-width: 767px) {
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-cta { font-size: 15px; }
}

.tagline {
  max-width: 400px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
  color: rgba(255,255,255,0.95);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  /* slides in but is visible from the first frame: it is the page's LCP.
     Chrome ignores the full-screen hero image, and the heading and the
     button start hidden — with an opacity fade here PageSpeed sometimes
     finds no LCP at all (NO_LCP error) */
  transform: translateY(16px);
  animation: slide-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.45s;
}

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  to { transform: translateY(0); }
}

/* header fade in, staggered */
header .logo,
header .burger,
header .desktop-nav {
  opacity: 0;
  transform: translateY(-16px);
  animation: fade-down 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

header .logo { animation-delay: 0.05s; }
header .desktop-nav { animation-delay: 0.1s; }
header .burger { animation-delay: 0.1s; }

@keyframes fade-down {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- our story ---------- */

.our-story {
  padding: clamp(50px, 8vw, 90px) var(--x-default);
  background: #000;
  display: flex;
  flex-direction: column;
}

/* palominoprod.com's OUR STORY section carries a fixed min-height
   (md:min-h-225 = 900px) on desktop — that's what actually gives the
   image its height, since it stretches to fill the section */
@media (min-width: 1020px) {
  .our-story { min-height: 760px; }
}

.our-story-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(24px, 4vw, 40px);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.our-story-heading .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.our-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
}

@media (min-width: 1020px) {
  .our-story-grid {
    flex: 1;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--x-default);
    align-items: stretch;
  }

  /* same 4/8 split as .projects-header / .projects-grid */
  .our-story-content { grid-column: span 4; }
  /* image is capped at the width of a .project-card.wide (5 of the
     8-col .projects-grid) and centered in its 8-col area */
  .our-story-image-wrap {
    grid-column: span 8;
    justify-self: center;
    width: calc((100% - 7 * var(--x-default)) / 8 * 5 + 4 * var(--x-default));
  }
}

.our-story-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

@media (min-width: 1020px) {
  .our-story-image-wrap { aspect-ratio: auto; min-height: 100%; }
}

/* same clip-path inset(50%) -> inset(0%) unfold/refold as the services
   images — folds back on scroll-out, unfolds again on re-entry */
.our-story-image-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(50%);
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.our-story-image-clip.in-view {
  clip-path: inset(0%);
}

.our-story-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* heading + text stay grouped at the top, the link sits pinned to the
   bottom of the column — same block the image sits next to on
   palominoprod.com's OUR STORY section, not two separate stacked pieces */
.our-story-content {
  display: flex;
  flex-direction: column;
}

.our-story-name {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.our-story-name span {
  font-weight: 300;
  color: rgba(255,255,255,0.7);
}

.our-story-text {
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
}

/* key terms as a compact two-column table: label on the left, value on
   the right, thin dividers between rows */
.our-story-facts {
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.our-story-facts div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 15px;
  line-height: 1.35;
}

.our-story-facts dt {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding-top: 2px;
}

.our-story-facts dd { color: rgba(255,255,255,0.85); }

.our-story-cases {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

/* h3 in the markup; h4 kept for the Bitrix "about" infoblock text until it is updated */
.our-story-case h3,
.our-story-case h4 {
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255,255,255,0.9);
  margin-bottom: 6px;
}

.our-story-case p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
}

.our-story-content .see-all-work {
  display: flex;
  width: auto;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: clamp(24px, 4vw, 40px);
}

/* ---------- services ---------- */

.services {
  position: relative;
  padding: clamp(50px, 8vw, 90px) var(--x-default) 0;
  background: #000;
}

.services-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.services-heading .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: var(--x-default);
}

/* each service card sticks a little lower than the one before it —
   as the next card's sticky offset is reached it slides over and
   covers the previous one, which is nudged into scaling down and
   dimming behind it (see updateServiceStack() in the script below) —
   same stacked-cards technique as palominoprod.com's SERVICES section */
.service-card {
  position: sticky;
  top: calc(100px + (var(--i, 0) * 18px));
  transform-origin: top center;
  background: #111;
  padding: 24px;
  min-height: 400px;
}
/* stack position of each card, set in markup as data-i="N" */
.service-card[data-i="1"] { --i: 1; }
.service-card[data-i="2"] { --i: 2; }
.service-card[data-i="3"] { --i: 3; }
.service-card[data-i="4"] { --i: 4; }
.service-card[data-i="5"] { --i: 5; }
.service-card[data-i="6"] { --i: 6; }
.service-card[data-i="7"] { --i: 7; }
.service-card[data-i="8"] { --i: 8; }
.service-card[data-i="9"] { --i: 9; }

/* invisible marker at the bottom of the page that triggers the footer reveal */
#footerRevealSentinel { height: 1px; }

@media (min-width: 1020px) {
  .service-card { min-height: 600px; padding: 32px; }
}

/* phones and tablets: no stacking effect — the cards are taller than the
   screen, so pinning them made the page scroll twice (the card itself and
   the page). They just follow each other as normal blocks. */
@media (max-width: 1019px) {
  .service-card {
    position: relative;
    top: auto;
    transform: none !important;
    margin-bottom: 16px;
  }

  .service-card:last-child { margin-bottom: 0; }
  .service-card-overlay { display: none; }
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.service-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  height: 100%;
}

@media (min-width: 1020px) {
  .service-card-inner { grid-template-columns: 4fr 8fr; }
}

/* the image carries the index number + title overlaid on it (with a
   dark gradient for legibility) instead of sitting on plain background —
   same as palominoprod.com's SERVICES cards */
.service-card-image {
  position: relative;
  overflow: hidden;
  height: 260px;
}

@media (min-width: 1020px) {
  .service-card-image { height: 100%; }
}

/* clip-path reveal on scroll-in — same inset(50%) -> inset(0%) technique
   as .project-card-clip; the clip lives on this inner wrapper (not the
   observed .service-card-image itself) because an IntersectionObserver
   target whose own clip-path collapses its box to zero area never
   reports as intersecting */
.service-card-image-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(50%);
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-image-clip.in-view {
  clip-path: inset(0%);
}

.service-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0) 55%);
}

.service-index {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.service-title {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-family: "HostGrotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.1;
  color: rgba(255,255,255,0.9);
}

.service-card-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-tagline {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255,255,255,0.9);
}

.service-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 46rem;
  list-style: none;
}

.service-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
}

.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

.service-result {
  max-width: 46rem;
  margin-top: auto;
  padding-top: 12px;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.service-result span {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- footer ---------- */

/* main sits above the footer (higher z-index) and scrolls off in the
   normal document flow; the footer underneath is pinned with
   position:sticky so it's already there, revealed as main clears the
   viewport. Additionally, main scales in horizontally (scaleX only) the
   closer its bottom edge gets to the footer, driven by scroll */
.page-main {
  position: relative;
  z-index: 20;
  background: #000;
  transform-origin: center top;
  transition: transform 0.1s linear;
}

.site-footer {
  position: sticky;
  bottom: 0;
  overflow: hidden;
  background: #fff;
  color: #000;
  width: 100%;
  height: 88svh;
  padding: 200px var(--x-default) 0;
  /* not painted until main.js adds .is-ready on the first interaction, so it
     can't become the LCP element (see the top of main.js); without JS,
     css/noscript.css (linked in <noscript>) shows it. No timer fallback on
     purpose: a footer that appears by itself after N seconds becomes the
     LCP at N seconds. */
  visibility: hidden;
}
.site-footer.is-ready { visibility: visible; }

.footer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* the original: flex-col stacked on mobile, a real 12-col grid from the
   xs breakpoint up — same column spans per section, per breakpoint */
.footer-columns {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer-columns { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
}

.footer-col h2 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.6; /* ≥4.5:1 on the white footer */
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  text-transform: uppercase;
}

.footer-col p, .footer-col li {
  font-size: 14px;
  padding: 2px 0;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.footer-col a { display: block; color: inherit; }

/* hovering the list dims every item, then the hovered one snaps to full
   opacity — same "dim the rest, spotlight one" behaviour as the original */
@media (hover: hover) {
  .footer-col ul:hover li { opacity: 0.3; }

  .footer-col ul li:hover { opacity: 1; }
}

.footer-col-infos { grid-column: span 12; }
@media (min-width: 640px) { .footer-col-infos { grid-column: span 5; } }
@media (min-width: 768px) { .footer-col-infos { grid-column: span 4; } }
@media (min-width: 1024px) { .footer-col-infos { grid-column: span 3; } }

.footer-col-pages,
.footer-col-socials {
  grid-column: span 4;
}
@media (min-width: 640px) {
  .footer-col-pages,
  .footer-col-socials { grid-column: span 2; }
}

/* sits above the big wordmark, whose letters can rise into this row */
.footer-col-legals { grid-column: span 4; position: relative; z-index: 2; }
@media (min-width: 640px) { .footer-col-legals { grid-column: span 2; } }
/* wide enough for the document links to stay on one line */
@media (min-width: 768px) { .footer-col-legals { grid-column: span 4; } }
@media (min-width: 1024px) {
  .footer-col-legals { grid-column: span 5; }
  .footer-col-legals a { white-space: nowrap; }
}

.footer-word-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 calc(var(--x-default) * -1);
}

.footer-word {
  position: absolute;
  bottom: -0.08em;
  left: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  /* the letters are solid red (.footer-letter); the old photo texture
     clipped to the text showed through as a strip above them */
  color: transparent;
  pointer-events: auto;
  user-select: none;
}

.footer-word .footer-letter {
  display: inline-block;
  color: #c1001a;
  /* letters sit lowered by default and rise up into place on hover —
     same idea as metabole.studio's CONTACT wordmark */
  --rest-y: 0.18em;
  --hover-y: 0.07em;
  transform: translateY(var(--rest-y)) scale(0.4);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  transition-delay: calc(var(--i) * 0.07s);
  transform-origin: 50% 100%;
}

.footer-word.in-view .footer-letter {
  transform: translateY(var(--rest-y)) scale(1);
  opacity: 1;
}

@media (hover: hover) {
  .footer-inner:hover .footer-word.in-view .footer-letter {
    transform: translateY(var(--hover-y)) scale(1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i) * 0.08s);
  }
}


/* ---------- our clients ---------- */

.clients {
  position: relative;
  padding: clamp(50px, 8vw, 90px) 0;
  background: #000;
  overflow: hidden;
}

.clients::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  background-color: #000;
  background-image: url("/local/templates/repin/assets/css/../images/noise.webp");
  background-repeat: repeat;
  background-size: 50px;
}

.clients-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--x-default);
  margin-bottom: clamp(30px, 6vw, 56px);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.clients-heading .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.clients-track-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 28s linear infinite;
}

@media (hover: hover) {
  .clients-track:hover { animation-play-state: paused; }
}

.clients-track span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 clamp(24px, 4vw, 48px);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

@keyframes clients-scroll {
  to { transform: translateX(-50%); }
}

/* ---------- selected projects ---------- */

.projects {
  position: relative;
  padding: clamp(50px, 8vw, 90px) var(--x-default);
  background: #000;
  overflow: hidden;
}

.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  background-color: #000;
  background-image: url("/local/templates/repin/assets/css/../images/noise.webp");
  background-repeat: repeat;
  background-size: 50px;
}

.projects-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(30px, 6vw, 56px) var(--x-default);
}

.projects-header,
.projects-grid {
  grid-column: span 12;
}

.projects-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.projects-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.projects-heading .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.projects-desc {
  max-width: 32rem;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
}

.see-all-work {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.9);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.see-all-work .letter-wipe {
  position: relative;
  display: inline-block;
}

.see-all-work svg { width: 12px; height: 12px; flex-shrink: 0; }

@media (min-width: 1020px) {
  .see-all-work { display: flex; }

  .projects-header {
    grid-column: span 4;
    grid-row: span 2;
  }

  .projects-grid {
    grid-column: span 8;
    grid-row: span 2;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--x-default);
}

.project-card {
  position: relative;
  grid-column: span 8;
  height: 350px;
  overflow: hidden;
  display: block;
}

@media (min-width: 640px) {
  .project-card { height: 450px; }
  .project-card.wide { grid-column: span 5; }
  .project-card.narrow { grid-column: span 3; }
}

/* the clip-path reveal lives on an inner wrapper, not on .project-card
   itself — IntersectionObserver in this environment treats an element
   clipped down to a zero-area rect (inset(50%)) as never intersecting,
   so the element being observed for scroll-in must stay unclipped */
.project-card-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(50%);
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.in-view .project-card-clip {
  clip-path: inset(0%);
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .project-card:hover img { transform: scale(1.1); }
}

.project-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0));
}

.project-card-caption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 60px 20px 20px 40px;
  color: #fff;
  /* dark fade under the text so it stays readable on light photos */
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .project-card:hover .project-card-caption,
  .project-card:focus-visible .project-card-caption {
    transform: translateY(0);
  }
}

/* touch screens have no hover, so the project name is always shown there */
@media (hover: none) {
  .project-card-caption { transform: translateY(0); }
}

.project-card-caption h3 {
  position: relative;
  font-size: 20px;
  font-weight: 500;
}

.project-card-caption h3::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

.project-card-caption p {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
}

/* phones and tablets: the footer is only as tall as its content instead of
   88% of the screen, which on tablets left a huge empty gap above the big
   wordmark. The wordmark is bottom aligned and about 14vw tall once fitted
   to the width, so the box under the links is never shorter than that
   (80px floor for very narrow screens) — that keeps it off the last link. */
@media (max-width: 1199px) {
  .site-footer {
    height: auto;
    min-height: 0;
    padding-top: clamp(56px, 8vw, 96px);
  }

  .footer-inner { height: auto; }

  .footer-word-wrap {
    flex: 0 0 auto;
    min-height: max(80px, 14vw);
    margin-top: clamp(24px, 4vw, 48px);
  }
}

/* small tablets: four columns in one row were too narrow (headings and the
   document links wrapped), so the documents move to a second row */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-col-infos { grid-column: span 6; }
  .footer-col-pages,
  .footer-col-socials { grid-column: span 3; }
  .footer-col-legals { grid-column: span 12; }
}

/* End */


/* Start:/local/templates/repin/assets/css/projects.css?17924870067379*/
/* projects listing page (projects/index.html) — loaded after main.css,
   which provides the header, menu, footer, fonts and spacing variables */

.page-projects .page-main { background: #000; }

.work {
  position: relative;
  padding: 120px var(--x-default) clamp(80px, 10vw, 160px);
  background: #000;
  color: rgba(255,255,255,0.9);
}

/* same film-grain texture as the dark sections on the home page */
.work::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  background: url("/local/templates/repin/assets/css/../images/noise.webp") repeat;
  background-size: 50px;
  pointer-events: none;
}

.work > * { position: relative; z-index: 1; }

/* the view switch and the empty state use the hidden attribute; keep it
   stronger than the display rules below */
.work [hidden] { display: none !important; }

/* ---------- top: huge title + call to action ---------- */

.work-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.work-title {
  font-size: clamp(64px, 13.5vw, 220px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.work-title .line-mask { display: block; overflow: hidden; padding-bottom: 0.04em; }

.work-title .line-mask > span {
  display: block;
  transform: translateY(105%);
  animation: work-line-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

@keyframes work-line-up { to { transform: translateY(0); } }

.work-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.6em;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.work-cta svg { width: 12px; height: 12px; }
.work-cta .letter-wipe { position: relative; display: inline-block; }

@media (hover: hover) {
  .work-cta:hover .nav-word:not(.is-duplicate) .letter span { transform: translateX(100%); }

  .work-cta:hover .nav-word.is-duplicate .letter span { transform: translateX(0%); }
}

@media (max-width: 767px) {
  .work-top { flex-direction: column; }
  .work-cta { margin-top: 0; font-size: 15px; }
}

/* ---------- description, view switch ---------- */

.work-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: clamp(40px, 7vw, 90px) 0 clamp(40px, 6vw, 80px);
}

.work-desc {
  max-width: 400px;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(255,255,255,0.6);
}

.work-view button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.work-view {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
}

.work-view span { margin-right: 6px; }

.work-view button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease;
}

.work-view button svg { width: 16px; height: 16px; }
.work-view button[aria-pressed="true"] { background: #fff; color: #000; }

@media (min-width: 1020px) {
  .work-bar {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 20px;
    align-items: end;
  }

  .work-desc { grid-column: 1 / span 4; align-self: start; }


  .work-view { grid-column: 11 / span 2; justify-self: end; }
}

/* ---------- grid view: one card per row, alternating sides, rows
   overlapping vertically so the cards read as a staggered column ---------- */

.work-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vw, 64px);
}

.work-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;
}

.work-row .work-card { grid-column: 1 / span 10; }
.work-row.is-right .work-card { grid-column: 3 / span 10; }

@media (min-width: 768px) {
  .work-grid { gap: 0; }
  .work-row + .work-row { margin-top: calc(-1 * clamp(40px, 6vw, 90px)); }
  .work-row .work-card { grid-column: 1 / span 6; }
  .work-row.is-right .work-card { grid-column: 7 / span 6; }
}

.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  /* unfolds from the centre once its image has loaded (see projects.js) */
  clip-path: inset(50%);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card.in-view { clip-path: inset(0%); }

.work-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transform: scale(1.2);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card.in-view .work-card-media img { transform: scale(1); }
@media (hover: hover) {
  .work-card:hover .work-card-media { transform: scale(1.1); }
}

.work-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0));
}

.work-card-caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 20px 20px 40px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .work-card:hover .work-card-caption,
  .work-card:focus-visible .work-card-caption { transform: translateY(0); }
}

@media (hover: none) {
  .work-card-caption { transform: translateY(0); }
}

.work-card-caption h2 { position: relative; font-size: 20px; font-weight: 500; }

.work-card-caption h2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

.work-card-caption p { margin-top: 8px; font-size: 14px; opacity: 0.6; }

/* ---------- list view ---------- */

.work-list-head,
.work-list-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.work-list-head {
  display: none;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
}

.work-list-row {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s ease;
}

.work-list-row .wl-client {
  order: -1;
  font-family: "HostGrotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

@media (hover: hover) {
  .work-list-row:hover { color: #fff; }
}

@media (min-width: 1020px) {
  .work-list-head,
  .work-list-row {
    grid-template-columns: 3fr 4fr 2fr 3fr;
    align-items: center;
    gap: 20px;
  }

  .work-list-head { display: grid; }
  .work-list-row { padding: 36px 0; }
  .work-list-row .wl-client { order: 0; }
  .work-list-head .wl-work,
  .work-list-row .wl-work { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .work-title .line-mask > span { animation: none; transform: none; }
  .work-card { clip-path: none; transition: none; }
  .work-card-media img { transform: none; transition: none; }
}

/* End */
/* /local/templates/repin/assets/css/main.css?179249806632392 */
/* /local/templates/repin/assets/css/projects.css?17924870067379 */
