/* Visual layer only. Hero layout and sticky/scroll rules stay in style.css. */
main { --portfolio-background: #0a0a0a; }

.hero-gradient {
  filter: none;
  background:
    linear-gradient(to bottom,
      rgba(10,10,10,0) 0%,
      rgba(10,10,10,0) 60%,
      rgba(10,10,10,.14) 74%,
      rgba(10,10,10,.7) 90%,
      var(--portfolio-background) 100%),
    linear-gradient(90deg,
      rgba(5,5,5,.96) 0%,
      rgba(5,5,5,.78) 38%,
      rgba(5,5,5,.2) 72%,
      rgba(5,5,5,.08) 100%);
}

:is(.projects, .services, .process-section, .about, .trust, .contact) {
  --ink: #f1f1ee;
  --muted: #9b9b96;
  --paper: var(--portfolio-background);
  --soft: #101010;
  --line: rgba(255, 255, 255, .08);
  --blue: #288385;
  --blue-dark: #216d70;
  --accent: #288385;
  color: var(--ink);
  background: var(--portfolio-background);
  color-scheme: dark;
}

:is(.projects, .services, .process-section, .about, .trust, .contact) .container-xl {
  border-color: var(--line);
}

:is(.projects, .services, .process-section, .about, .trust, .contact) h2 {
  color: #f1f1ee;
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-transform: none;
}

:is(.projects, .services, .process-section, .about, .trust, .contact) .eyebrow {
  color: #288385;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
}

.editorial-heading { display: flex; align-items: center; gap: 20px; }
.editorial-heading h2 { flex: 0 0 auto; margin: 0; }
.editorial-heading > span { width: 42px; border-top: 1px solid #288385; }
.projects .section-heading h2::after,
.process-section .process-heading h2::after {
  display: inline-block;
  width: 42px;
  margin: 0 0 .3em 18px;
  border-top: 1px solid #288385;
  content: "";
}

/* Work: keep the existing project layout, ordering and filter behavior. */
.projects { padding-block: 90px 112px; }
.projects .section-heading { margin-bottom: 22px; }
.projects .section-heading h2 { font-size: clamp(31px, 3.3vw, 48px); }
.projects-intro { color: #9b9b96; }
.projects .filter-btn {
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px;
  background: transparent;
  color: #b6b6b0;
  box-shadow: none;
  font-size: 12px;
  letter-spacing: .055em;
}
.projects .filter-btn:hover,
.projects .filter-btn:focus-visible { border-color: rgba(40,131,133,.65); background: #102021; color: #f1f1ee; }
.projects .filter-btn.active,
.projects .filter-btn.active:hover,
.projects .filter-btn.active:focus-visible { border-color: #288385; background: #288385; color: #0a0a0a; }
.projects .project-index {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.projects .project-index-count { color: #5fb1b3; font-family: "Archivo", Arial, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .09em; }
.projects .project-index-title { color: #a8a8a2; font-size: 12px; line-height: 1.35; }
.projects .project-row { border-color: var(--line); }
.projects .project-row h3 { color: #f1f1ee; }
.projects .project-row p:not(.project-type) { max-width: 42ch; color: #b9b9b3; font-size: 16px; line-height: 1.64; }
.projects .project-type { color: #288385 !important; letter-spacing: .07em; }
.projects .project-tools-label { color: #d4d3cf; }
.projects .mini-tool-cards { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.projects .project-tools .tool-card {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  background: rgba(255,255,255,.02);
  box-shadow: none;
  transform: none;
}
.projects .project-tools .tool-card:hover { border-color: rgba(40,131,133,.55); background: rgba(40,131,133,.08); transform: none; }
.projects .project-tools .tool-icon { display: block; flex: 0 0 22px; width: 22px; height: 22px; border: 0; border-radius: 3px; background: transparent; object-fit: contain; }
.projects .project-tools .tool-icon-text { display: grid; place-items: center; border: 1px solid rgba(40,131,133,.45); color: #8fc9ca; font-size: 9px; font-weight: 700; letter-spacing: -.02em; }
.projects .project-tools .tool-copy { display: block; min-width: 0; }
.projects .project-tools .tool-name { display: block; overflow: visible; color: #e8e8e4; font-size: 11px; font-weight: 600; line-height: 1.1; text-overflow: clip; white-space: nowrap; }
.projects .project-tools small { display: block; margin: 2px 0 0; color: #999994; font-size: 8.5px; font-weight: 400; letter-spacing: 0; line-height: 1.1; text-align: left; text-transform: none; white-space: nowrap; }
.projects .project-video-frame { background: #151515; }
/* Website footage and its still posters include a white browser-capture margin. */
.projects .project-row[data-category~="web"] .project-video-frame { overflow: hidden; border-radius: 3px; }
.projects .project-row[data-category~="web"] :is(.project-video-poster, .project-video) {
  inset: -6%;
  width: 112%;
  height: 112%;
  border-radius: 0;
  object-fit: cover;
}
.projects .video-hint { background: rgba(10,10,10,.9); color: #f1f1ee; box-shadow: none; }
.projects .event-materials-gallery,
.projects .real-life-gallery { gap: 14px; }
.projects :is(.event-materials-thumb, .real-life-thumb) { overflow: hidden; border-radius: 2px; background: #141414; }
.projects :is(.event-materials-thumb, .real-life-thumb):hover img { filter: brightness(1.09); }
.projects :is(.event-materials-copy, .real-life-copy) h3 { color: #f1f1ee; }
.projects :is(.event-materials-copy, .real-life-copy) h3::after { display: inline-block; width: 38px; margin: 0 0 .25em 14px; border-top: 1px solid #288385; content: ""; }
.projects .gallery-load-more,
.projects .back-to-filters { border-color: #288385; border-radius: 2px; background: transparent; color: #80c4c5; box-shadow: none; }
.projects .gallery-load-more:hover,
.projects .back-to-filters:hover { background: #288385; color: #0a0a0a; }

/* Services: six numbered editorial rows, then four compact tool columns. */
.services { padding: 76px 0 98px; }
.services .services-sticky h2 { font-size: clamp(30px, 3vw, 43px); }
.services .services-sticky h2::after { display: inline-block; width: 40px; margin: 0 0 .3em 16px; border-top: 1px solid #288385; content: ""; }
.services .services-rail p:not(.eyebrow) { color: #9b9b96; }
.services .services-grid { display: block; margin: 0; }
.services .services-grid .service-item {
  display: grid;
  grid-template-columns: 28px minmax(155px, 32%) minmax(0, 1fr);
  align-items: baseline;
  column-gap: 15px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 13px 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: transparent;
}
.services .services-grid .service-item:first-child { border-top: 1px solid var(--line); }
.services .service-item i { display: none; }
.service-number { color: #288385; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.services .service-item h3 { margin: 0; color: #f1f1ee; font-family: "Archivo", Arial, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: -.015em; line-height: 1.5; }
.services .service-item p { margin: 0; color: #9b9b96; font-size: 13px; line-height: 1.55; }
.services .services-tools { margin-top: 38px; padding-top: 27px; border-top: 1px solid var(--line); background: transparent; }
.services .services-tools h2 { font-size: clamp(25px, 2.5vw, 34px); }
.services .selected-tool-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 26px); margin-top: 25px; }
.services .selected-tool-group,
.services .selected-tool-group:last-child { min-width: 0; margin: 0; padding: 0; border: 0; }
.services .selected-tool-group + .selected-tool-group { border-left: 1px solid var(--line); padding-left: clamp(10px, 1.4vw, 20px); }
.services .selected-tool-group h3 { margin: 0 0 10px; color: #77babc; font-family: "Archivo", Arial, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .06em; line-height: 1.4; text-transform: none; }
.services .tool-card-grid { display: block; margin: 0; }
.services .tool-card { display: flex; align-items: center; gap: 8px; min-height: 43px; margin: 0; padding: 5px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.services .tool-card:hover { background: transparent; transform: none; }
.services .tool-card .tool-icon { display: block; flex: 0 0 29px; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 0; background: transparent; object-fit: contain; }
.services .tool-copy { display: block; min-width: 0; }
.services .tool-card .tool-name { display: block; overflow: visible; color: #f1f1ee; font-size: 12px; font-weight: 600; line-height: 1.25; text-overflow: clip; white-space: normal; }
.services .tool-card small { display: block; margin: 2px 0 0; color: #898983; font-size: 10px; font-weight: 400; letter-spacing: 0; line-height: 1.25; text-align: left; text-transform: none; }
.services .tool-card:hover .tool-name { color: #9cd6d6; }

/* Process and About retain their content and sequence. */
.process-section { padding-block: 82px; }
.process-section .process-heading { margin-bottom: 38px; }
.process-section .process-list { gap: 22px; }
.process-section .process-list li { min-height: 0; padding: 22px 0 8px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.process-section .process-list .process-number { margin-bottom: 21px; color: #288385; font-size: 30px; font-weight: 400; letter-spacing: -.03em; }
.process-section .process-list h3 { color: #f1f1ee; font-family: "Archivo", Arial, sans-serif; font-size: 17px; font-weight: 500; }
.process-section .process-list p { color: #9b9b96; }
.about { padding-block: 78px 90px; }
.about .about-panel { grid-template-columns: minmax(230px, 26%) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); padding-top: 34px; }
.about .about-visual { min-width: 0; }
.about .editorial-heading h2 { font-size: clamp(27px, 2.8vw, 38px); }
.about .portrait { width: min(100%, 270px); aspect-ratio: 3 / 4; margin-top: 27px; border-radius: 2px; background: #0a0a0a; }
.about .portrait img { position: relative; inset: auto; display: block; width: 100%; height: 100%; border-radius: 2px; object-fit: contain; object-position: center; filter: grayscale(1) contrast(1.05); }
.about .about-copy { padding-top: 6px; }
.about .about-copy .about-lead { max-width: 32ch; margin: 0 0 18px; color: #f1f1ee; font-size: clamp(20px, 2.2vw, 30px); font-weight: 400; letter-spacing: -.025em; line-height: 1.3; }
.about .about-copy > p:not(.about-lead) { max-width: 760px; margin: 0 0 12px; color: #a6a6a1; font-size: 14px; line-height: 1.65; }
.about .about-stats { gap: 12px 26px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.about .about-stats span { color: #9b9b96; font-size: 11px; font-weight: 400; }
.about .about-stats i { color: #288385; font-size: 15px; }
.about .about-cv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: #288385;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
}
.about .about-cv-link span { font-size: 16px; line-height: 1; }
.about .about-cv-link:hover,
.about .about-cv-link:focus-visible { color: #9cd6d6; }
.trust { padding-block: 54px 76px; }
.trust .logo-carousel { grid-template-columns: 42px minmax(0, 1fr) 42px; }
.trust .logo-scroll-wrapper { position: relative; min-width: 0; overflow: hidden; }
.trust .logo-scroll-wrapper::before,
.trust .logo-scroll-wrapper::after { position: absolute; top: 0; bottom: 0; z-index: 1; width: 28px; content: ""; pointer-events: none; transition: opacity .15s ease; }
.trust .logo-scroll-wrapper::before { left: 0; background: linear-gradient(to right, #0a0a0a, rgba(10,10,10,0)); opacity: var(--logo-fade-left, 0); }
.trust .logo-scroll-wrapper::after { right: 0; background: linear-gradient(to left, #0a0a0a, rgba(10,10,10,0)); opacity: var(--logo-fade-right, .5); }
.trust .logo-track { gap: 24px; padding: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: none; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab; }
.trust .logo-track.is-dragging { scroll-behavior: auto; cursor: grabbing; user-select: none; }
.trust .logo-track.is-wheel-scrolling { scroll-behavior: auto; }
.trust .logo-track img { user-select: none; -webkit-user-drag: none; }
.trust .logo-track img { filter: url(#logo-background-knockout); opacity: .74; }
.trust .logo-track img:hover { filter: url(#logo-background-knockout); opacity: .94; transform: none; }
.trust .logo-control { border-color: var(--line); background: #101010; color: #77babc; }
.trust .logo-control:hover { border-color: #288385; background: #122729; color: #f1f1ee; }

/* Contact is the site's footer-like final chapter. */
.contact { padding-block: 66px 94px; }
.contact .row { --bs-gutter-x: 0; }
.contact h2 { max-width: none; font-size: clamp(32px, 4vw, 55px); }
.contact p { max-width: 620px; color: #9b9b96; font-size: 14px; }
.contact .contact-data { display: grid; grid-template-columns: 1.4fr 1fr .75fr 1fr; gap: 0; margin-top: 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact .contact-data > * { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 74px; padding: 13px 14px; color: #f1f1ee; font-size: 12px; font-weight: 500; text-decoration: none; }
.contact .contact-data > :first-child { padding-left: 0; }
.contact .contact-data > * + * { border-left: 1px solid var(--line); }
.contact .contact-data > * > span { display: block; min-width: 0; color: inherit; font-weight: inherit; }
.contact .contact-data small { display: block; margin-bottom: 3px; color: #777772; font-size: 9px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.contact .contact-data i { color: #288385; font-size: 15px; }
.contact .contact-data a:hover { color: #a4dadb; }
.contact .contact-actions { margin-top: 22px; }
.contact .contact-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; min-height: 40px; padding: 10px 15px; border: 1px solid #288385; border-radius: 2px; background: transparent; color: #80c4c5; box-shadow: none; font-size: 11px; line-height: 1.2; vertical-align: middle; }
.contact .contact-actions .btn i { display: block; margin: 0; font-size: 13px; line-height: 1; }
.contact .contact-actions .btn:hover { background: #288385; color: #0a0a0a; }
.back-to-top { background: #288385; color: #0a0a0a; }
.back-to-top:hover { background: #80c4c5; color: #0a0a0a; }

@media (max-width: 1199.98px) {
  .projects .project-index { display: none; }
  .services .selected-tool-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .services .selected-tool-group + .selected-tool-group { border-left: 0; padding-left: 0; }
}
@media (max-width: 767.98px) {
  .trust .logo-carousel { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .projects { padding-block: 54px 68px; }
  .services, .process-section, .about { padding-block: 54px 62px; }
  .services .services-grid .service-item { grid-template-columns: 28px minmax(0, 1fr); gap: 3px 10px; }
  .services .service-item p { grid-column: 2; font-size: 12px; }
  .services .selected-tool-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .about .about-panel { grid-template-columns: 1fr; gap: 24px; }
  .about .portrait { width: min(100%, 240px); margin-top: 22px; }
  .contact .contact-data { grid-template-columns: 1fr 1fr; }
  .contact .contact-data > * { min-height: 66px; padding: 12px; }
  .contact .contact-data > :nth-child(odd) { border-left: 0; }
  .contact .contact-data > :nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .services .selected-tool-groups { grid-template-columns: 1fr; gap: 20px; }
  .services .tool-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .contact .contact-data { grid-template-columns: 1fr; }
  .contact .contact-data > * { padding-left: 0; border-left: 0 !important; border-top: 1px solid var(--line); }
  .contact .contact-data > :first-child { border-top: 0; }
}

@media (max-width: 767.98px) {
  .projects .project-filters-scroll {
    position: relative;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .projects .project-filters-scroll::-webkit-scrollbar { display: none; }
  .projects .project-filters-scroll::before,
  .projects .project-filters-scroll::after {
    position: absolute;
    top: 0;
    bottom: 8px;
    z-index: 1;
    width: 16px;
    content: "";
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
  }
  .projects .project-filters-scroll::before {
    left: 0;
    background: linear-gradient(to right, #0a0a0a, rgba(10,10,10,0));
    opacity: var(--filter-fade-left, 0);
  }
  .projects .project-filters-scroll::after {
    right: 0;
    background: linear-gradient(to left, #0a0a0a, rgba(10,10,10,0));
    opacity: var(--filter-fade-right, 0);
  }
  .projects .project-filters-scroll .project-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 9px;
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
    padding: 0 32px 8px 0;
    overflow: visible;
    scroll-snap-type: x proximity;
  }
  .projects .project-filters-scroll .filter-btn {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 12px 16px;
    font-size: 13px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .projects .filter-scroll-progress {
    position: relative;
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 1px;
    background: rgba(255,255,255,.1);
    pointer-events: none;
    visibility: hidden;
  }

  .projects .filter-scroll-progress.is-visible { visibility: visible; }

  .projects .filter-scroll-progress > span {
    display: block;
    width: 26%;
    height: 2px;
    border-radius: 999px;
    background: #288385;
    transform: translateX(var(--filter-progress-shift, 0%));
    transform-origin: left center;
  }
}

/* Keep every What I Do service name at regular weight. */
#uslugi .services-grid .service-item h3 {
  font-weight: 400;
}

/* Match the requested heading treatment for Exhibition & 3D only. */
#uslugi .services-grid .service-item:nth-child(5) h3 {
  color: #f1f1ee;
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-transform: none;
}

#uslugi .services-grid .service-item h3 {
  font-weight: 400;
}

/* Compact preview cards only where the project filters request card grids. */
@media (min-width: 1024px) {
  .projects .project-grid.is-two-column-view:not(.is-three-column-view) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
  }

  .projects .project-grid.is-two-column-view:not(.is-three-column-view) .project-video-frame,
  .projects .project-grid.is-two-column-view:not(.is-three-column-view) .project-art {
    aspect-ratio: 16 / 10;
  }
}

/* What I Do: editorial service labels, scoped to this section only. */
@media (min-width: 1024px) {
  #uslugi .services-grid .service-item {
    padding-block: 24px;
  }

  #uslugi .services-grid .service-item h3 {
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  #uslugi .service-number {
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    line-height: 1.2;
  }

  #uslugi .service-item p {
    max-width: 34rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  #uslugi .services-grid .service-item {
    padding-block: 22px;
  }

  #uslugi .services-grid .service-item h3 {
    font-size: clamp(1.3rem, 2.3vw, 1.6rem);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  #uslugi .service-number {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  #uslugi .service-item p {
    max-width: 30rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 767.98px) {
  #uslugi .services-grid .service-item h3 {
    font-size: clamp(1.15rem, 5vw, 1.3rem);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.015em;
  }

  #uslugi .service-number {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  #uslugi .service-item p {
    max-width: 34rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Final What I Do heading weight override. */
#uslugi .services-grid .service-item h3 { font-weight: 400; }

/* Desktop-only ambient cursor light for dark sections below Hero. */
.cursor-spotlight {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-spotlight {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(
      800px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
      rgba(40, 131, 133, .12),
      transparent 52%
    );
    transition: opacity .25s ease;
  }

  .cursor-spotlight.is-active { opacity: 1; }

  main > section > .container-xl {
    position: relative;
    z-index: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-spotlight { display: none; }
}

/* Shared animated outline for the two primary utility actions only. */
.projects .back-to-filters.animated-outline-button,
.contact .contact-actions .animated-outline-button {
  position: relative;
  overflow: visible;
  border-color: rgba(40, 131, 133, .35);
  background: transparent;
  color: #f1f1ee;
  transform: none;
  transition: background 1s ease-in-out;
}

.animated-outline-button .button-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.animated-outline-button .animated-border {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  fill: none;
  pointer-events: none;
  overflow: visible;
}

.animated-outline-button .animated-border polyline {
  stroke: #288385;
  stroke-width: 1.5px;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-dasharray: 150 480;
  stroke-dashoffset: 150;
  transition: stroke-dashoffset 1s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
  .projects .back-to-filters.animated-outline-button:hover,
  .projects .back-to-filters.animated-outline-button:focus-visible,
  .contact .contact-actions .animated-outline-button:hover,
  .contact .contact-actions .animated-outline-button:focus-visible {
    background: rgba(40, 131, 133, .14);
    color: #f1f1ee;
    transform: none;
  }

  .animated-outline-button:hover .animated-border polyline,
  .animated-outline-button:focus-visible .animated-border polyline {
    stroke-dashoffset: -480;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animated-outline-button,
  .animated-outline-button .animated-border polyline { transition: none; }
}

/* Project-level CTAs use a lighter interaction than the two primary actions. */
.projects .gallery-load-more,
.projects .zortrax-gallery-hint {
  position: relative;
}

.projects .gallery-load-more::after,
.projects .zortrax-gallery-hint::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: #288385;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}

.projects .zortrax-gallery-hint {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  color: #f1f1ee;
  padding-inline: 0;
}

.projects .gallery-load-more i,
.projects .zortrax-gallery-hint i {
  display: inline-block;
  transition: transform 250ms ease, color 250ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .projects .gallery-load-more:hover,
  .projects .gallery-load-more:focus-visible {
    background: transparent;
    color: #288385;
    transform: none;
  }

  .projects .gallery-load-more:hover::after,
  .projects .gallery-load-more:focus-visible::after,
  .projects .zortrax-gallery-trigger:hover .zortrax-gallery-hint::after,
  .projects .zortrax-gallery-trigger:focus-visible .zortrax-gallery-hint::after {
    transform: scaleX(1);
    transition: transform 325ms ease;
  }

  .projects .gallery-load-more:hover i,
  .projects .gallery-load-more:focus-visible i {
    color: #288385;
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .projects .gallery-load-more i,
  .projects .zortrax-gallery-hint i,
  .projects .gallery-load-more::after,
  .projects .zortrax-gallery-hint::after { transition: none; }
}

/* Mobile Hero: keep the video visible while giving the copy priority. */
@media (max-width: 767.98px) {
  .hero-bg-video,
  .hero-bg-video.is-ready {
    opacity: .6;
    filter: saturate(.55) contrast(1.02) brightness(.8) blur(1px);
  }

  .hero-gradient {
    background:
      linear-gradient(
        to bottom,
        rgba(10,10,10,0) 0%,
        rgba(10,10,10,.08) 52%,
        rgba(10,10,10,.68) 86%,
        var(--portfolio-background) 100%
      ),
      linear-gradient(
        to right,
        rgba(0,0,0,.88) 0%,
        rgba(0,0,0,.72) 35%,
        rgba(0,0,0,.45) 65%,
        rgba(0,0,0,.25) 100%
      );
  }
}
